Skip to content

chore(runtime): sweep post-seam cruft from C1-C5 - #101

Merged
mfw78 merged 9 commits into
mainfrom
seam/c6-cruft
Aug 6, 2026
Merged

chore(runtime): sweep post-seam cruft from C1-C5#101
mfw78 merged 9 commits into
mainfrom
seam/c6-cruft

Conversation

@mfw78

@mfw78 mfw78 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

What

Strips dead and inert code left over from the C1-C5 seam work: unconsumed derives, unused From impls, an inert allow, and a private-visibility tightening on supervisor Health/LifecycleState, plus a share of the retry-bump/sleep logic behind a common backoff_pause helper and a revert restoring the downstream-visible ModuleId and test-utils conversions.

Why

Part of #94

The seam stack accumulated small pockets of cruft (unused derives, dead From impls, an inert allow, duplicated retry/sleep logic) as each carve landed independently; this pass sweeps them up before the runtime seam is considered converged.

Testing

Independent gate on a fresh clone of nullislabs/nexum-runtime, detached at origin/seam/c6-cruft = e1e9d8b.
Base confirmed via merge-base against origin/seam/c5-load-convergence: clean 9-commit fast-forward stack on top of C5, no drift, no merge.
Diff over the base range: 16 files, +122/-162, all under crates/nexum-runtime.
CI-parity battery run inside nix develop, exit codes captured explicitly: cargo fmt --all -- --check (0), cargo clippy --workspace --all-targets --all-features --locked -- -D warnings (0, zero warning/error matches), just build for wasm32-wasip2 release (0), CI=1 cargo nextest run --workspace --all-features --locked (0, 656/656 passed), cargo test --doc --workspace --all-features --locked (0), RUSTDOCFLAGS='-D warnings' cargo doc --workspace --no-deps --locked (0), just test-e2e (0, 11/11 passed).
Commit hygiene over the 9-commit range: all commits authored and committed by mfw78 mfw78@nxm.rs with good signatures, no AI-attribution footers, and zero em-dashes in added lines or commit messages.

AI Assistance

Implemented by claude-fable-5, red-teamed by claude-opus-5, PR opened by claude-sonnet-5.

@mfw78
mfw78 force-pushed the seam/c5-load-convergence branch from c84f78c to c19a510 Compare August 6, 2026 07:32
@mfw78
mfw78 force-pushed the seam/c5-load-convergence branch from c19a510 to eb1478c Compare August 6, 2026 07:36
@mfw78
mfw78 force-pushed the seam/c5-load-convergence branch from eb1478c to 5c03068 Compare August 6, 2026 07:51
@mfw78
mfw78 changed the base branch from seam/c5-load-convergence to main August 6, 2026 07:57
mfw78 added 9 commits August 6, 2026 07:57
LifecycleState, Role, and FilterError never convert to &'static str;
the crate manifest rationale now states the pub-enum surface only.

AI Assistance: Fable 5 used for cruft analysis and implementation
…ives

poisoned_count is pub, so dead_code cannot fire; DispatchOutcome is
consumed only through matches!, never compared.

AI Assistance: Fable 5 used for cruft analysis and implementation
Neither is referenced outside supervisor/; LifecycleState never leaves
lifecycle.rs.

AI Assistance: Fable 5 used for cruft analysis and implementation
The cfg(test) use ladder and TestTypes lattice lived in supervisor/mod.rs
only to feed the tests glob; preset::CoreRuntime already provides the
identical core-only lattice, so the bespoke test types collapse into it.

AI Assistance: Fable 5 used for cruft analysis and implementation
Entry keeps TestManifest/String/PathBuf conversions and ManifestSource
keeps TestManifest/String/PathBuf; the by-reference and pass-through
variants convert nowhere in the tree.

AI Assistance: Fable 5 used for cruft analysis and implementation
as_str and Borrow<str> cover every string read; nothing calls as_ref.

AI Assistance: Fable 5 used for cruft analysis and implementation
AI Assistance: Fable 5 used for cruft analysis and implementation
The five event_loop retry sites keep their own log lines and fields;
only the attempt bump, backoff computation, and sleep converge.

AI Assistance: Fable 5 used for cruft analysis and implementation
…sions

AsRef<str> on ModuleId and the by-reference and pass-through From impls
on Entry and ManifestSource are published API, so they stay until the
downstream consumer audit clears them.

AI Assistance: Opus 5 used for red-team review and the restore
@mfw78
mfw78 merged commit 7439808 into main Aug 6, 2026
4 checks passed
@mfw78
mfw78 deleted the seam/c6-cruft branch August 6, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant