CI: build the akh-medu crate, and stop running every job twice #296
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/wi-019fdd21-ci-never-builds-the-akh-medu-crate-it-on"
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?
Anima work item
019fdd21-7c12-7500-84ef-5f7278c2af15.The problem
.forgejo/workflows/ci.ymlruns exactly one build command:cargo check -p seshat.seshatis a sibling crate. The rootakh-meducrate — wheresrc/bin/akhomed.rs,src/acp/,src/agent/,src/message.rsand essentially all agent work lives — is never compiled by CI at all, and no tests are ever run.The workflow's own comment documents this as a deliberate OOM workaround (the full build exhausted the runner), so this is a known trade-off that was never revisited. It has now become the single most expensive defect in the pipeline.
Why this is critical
Every akh implementer session treats "CI green" as its correctness signal, and the
ci_greencompletion condition gates the exit bar. Both are lying. Verified on 2026-08-07 across one review wave:296ae33f) — CI reported green on the push run.cargo check --features serverlocally fails with two hard errors (E0277 and E0283) in the file the PR adds. The work item's thread shows roughly 15 sessions each declaring "Implementation Verification Complete" after reading the file, never once building it.bf8377aa) — Forgejo runs #7580 and #7581 both report success. Locally the crate fails with 7 errors (E0027 ×4, E0063 ×3) because a new struct field was added without updating its match and construction sites.74010c26) — merged, and genuinely fine, but its round-1 blocked revision63a6df26was equally green while the entire feature was dead, unregistered code. CI could not tell the difference.An agent that cannot compile its own work, and whose CI will not compile it either, has no feedback loop. That is the root cause behind several multi-round session churns on this board, not agent incompetence.
What to build
Restore a real compile signal for the root crate without reintroducing the OOM:
cargo check --features server, ideallycargo clippy --features server -- -D warnings.CARGO_BUILD_JOBS,-C codegen-units,CARGO_PROFILE_DEV_DEBUG=0— debug info is a large share of peak RSS for this workspace);sccache, which is already the global rustc wrapper on the build hosts, so dependency compilation is cached across runs;cargo test --features server) if it fits the memory budget. Note that on developer machines the--features server --liblink step has repeatedly hit ENOSPC because the binary is enormous — budget disk on the runner accordingly, and prefer--features postgresfor lib tests if that reproduces the same coverage more cheaply.ci_greencompletion condition depend on the step that actually builds the root crate, so a green exit bar means something.Acceptance
cargo check --features serveris reported red by CI. Verify this directly by pushing one of the two known-bad SHAs above (296ae33forbf8377aa) to a scratch branch and confirming CI fails on it.cargo check -p seshat, so "CI green" is not evidence the code compilescargo check -p seshat, so "CI green" is not evidence the code compilesWIP: CI never builds the akh-medu crate — it only runsto CI: build the akh-medu crate, and stop running every job twicecargo check -p seshat, so "CI green" is not evidence the code compiles