Post-audit cleanup: stale src/, canonical CI, README, lints, version, inspector feature #43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Bundled cleanup items from the #41 §2 audit. Each is small + independent; bundled here so one agent can sweep them in one pass.
Reference snapshots:
hero_proc@f0ba646,hero_service@518448c. Apply againstmain.Tasks
B1 — Add canonical
.forgejo/workflows/lab-publish.yamlCopy from
hero_proc/.forgejo/workflows/lab-publish.yamlverbatim. Keep existingbuild-linux.yamlfor now per hero_proc's transition plan (it only fires onv*tags so it won't race with the push-to-main publish path).B2 — Delete stale
src/logic/at repo root/src/logic/{rpc.rs, rpc_generated.rs, types.rs, types_generated.rs, osis_server_generated.rs}exists at the repo root, not a workspace member, no Cargo.toml references it, and same files are duplicated undercrates/hero_logic_server/src/logic/{core,server}/. Leftover from4158f97crate split.git rm -r src/from the repo root.B4 — Update
PURPOSE.mdto use canonicalhero_logic(not short aliaslogic)PURPOSE.mdsayslab service logic --installetc. — change everylab service logicreference tolab service hero_logic. (Matcheshero_proc/PURPOSE.mdstyle.)B5 — Add
README.mdMinimal README pointing to
PURPOSE.md+ listing thelab service hero_logiclifecycle commands. Usehero_proc/README.mdorhero_service/README.mdas model.B7 — Add
[workspace.lints.clippy]block + clean dead codeCopy
hero_proc's[workspace.lints.clippy]allow block intohero_logic/Cargo.toml. Then either remove dead code or#[allow]it:backend_online,play_detail_handler,pretty_json_or_string,rpc_call(and others — currently 8 unused-code warnings).B8 — Set
[workspace.package].versionAdd
version = "0.1.0"to[workspace.package]; change each crate'sversion = "0.1.0"toversion.workspace = true.B10 — Drop
inspectorfeature onhero_rpc_servercrates/hero_logic_server/Cargo.toml: removefeatures = ["inspector"]from thehero_rpc_serverdep. The admin already serves the admin UI onadmin.sockwith<hero-api-docs>embedded — the inspector HTML atGET /on rpc.sock is dead weight. Savesrust-embed+mime_guessdeps. Verify nothing in admin proxies through it first.Out of scope (separate issues)
lab SERVICE_MAPentry → hero_skills follow-uphero_logic_examplescrate → low priority, deferAcceptance
cargo build --workspacecleanlab infocheck0 findingsBundled all 7 cleanups into PR #45 — branch
issue-43-audit-cleanup, one commit (2f79912).Acceptance met:
cargo build --workspaceclean, 0 warningslab infocheck— 3 crates clean, 0 findingsNotes per item:
git rm -r src/removed 5 stale duplicate files (-1456 lines).lab service logic→lab service hero_logicin PURPOSE.md.[workspace.lints.clippy]allow block (verbatim from hero_proc) and#[allow(dead_code)]'d the 8 staged-but-not-yet-wired symbols (instead of deleting them; they look like in-progress UI scaffolding). One extraIndexTemplate.backend_onlinefield surfaced after silencing the cascade — also allowed.[workspace.package].version = "0.1.0"; 4 crates switched toversion.workspace = true.features = ["inspector"]dropped. Verified nothing else in the repo references the inspector path; admin lives onadmin.sockindependently.rust-embed+mime_guessfall out of the server's dep tree (Cargo.lock diff).Review + merge whenever — bundle is small (+162/-1467) and all items are independent if you'd rather cherry-pick.