Repository navigation
fix(pod): a rebuild tolerates a check SKIP, and its bed arm asserts the real header and the update exit - #112
Conversation
…the update's exit status rebuild-builds-a-declared-box grepped for '--- Building overlay-base ---' while the generator emits '--- Building overlay-base (base ...; builders none) ---', so the arm reported 'did not build' on a run where both build stages are in the log (opencharly/charly#1327). It also ignored the update's exit status: with the prefix fixed alone it would have gone green over a rebuild that failed after building. The arm now asserts both. Assisted-by: Claude Code deepseek-v4.1-flash:cloud (syntax check only)
rebuild ran 'charly check box <box>' after 'box build' and returned ANY error, so a box whose plan resolves nothing — a deliberate SKIP recorded as exit 3 (opencharly/plugin-check#110) — aborted 'update --build' AFTER the build had succeeded. Measured on the check-pod-rebuild-build bed: 'charly: error: command "update": ... charly check box overlay-base: charly subcommand exited 3' (opencharly/charly#1327). Only the skip status is tolerated; every other non-zero exit stays fatal. Assisted-by: Claude Code deepseek-v4.1-flash:cloud (syntax check only)
Review — PASSHead SHA: Security screen: PASS — no secrets/egress, no weakened guardrails (the tolerance is scoped to the single Non-blocking, tool-limited note (no re-run possible): the Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Two halves of one defect (
opencharly/charly#1327), proven together on the bed that reported it.1. The rebuild no longer fails on a non-result.
plugin-deploy-podrancharly check box <box>after
box buildand returned ANY error — including the deliberate SKIP status3thatopencharly/plugin-check#110defines as "this phase asserted nothing". A project whose boxes carry noplan steps therefore could not be rebuilt at all, after the build had already succeeded:
Only the skip status is tolerated; every other non-zero exit stays fatal.
2. The bed arm now asserts what the generator emits, and that the update succeeded. It grepped for
--- Building overlay-base ---while the build emits--- Building overlay-base (base …; builders none) ---, so it reported "did not build" on a run where both stages were in the log; and it ignored theupdate's exit status, so fixing only the pattern would have turned it green over a rebuild that failed.
How tested
The bed, GREEN, on the disposable target with the
charly#1324head's stamped binary(
2026.332.1120) — the changed arm executing at the real boundary:The changed arm, at STEP level, from the same run's
check-livelog(
.check/check-pod-rebuild-build/2026.332.1510/check-live.log) — the six bracketed names above are therunner's PHASES; these are the steps inside
check-live:Provenance — the changed source is the PLUGIN, and the run proves it recompiled this branch. The bed
ran against this checkout, and the loader's view hash differs from main's cached view:
The
charlybinary (2026.332.1120, thecharly#1324head) is the check RUNNER; the changedlifecycle.gois compiled into the plugin the bed loaded.The discriminator — the same bed BEFORE these two halves, on the same host:
Same arm, same target: red before, green after.
Spike
Candidates for "a rebuild must not die on a check that asserted nothing", each measured:
check boxexit 3 in the rebuild path (this diff)3 steps: 3 passed, 0 failed, 0 skipped) andgo test ./...greencharly check boxexit 0 when a phase skipsB is exactly that 3 → 0 rewrite | rejected: every skip would read as an assertion in every bed |
| C | drop the post-build
check boxaltogether | spiked on the same call against a box that HAS steps:that verification is what C deletes | rejected |
Winner: A — the rebuild keeps its verification, and only the non-result stops being fatal.
Rulebook compliance
/charly-internals:plugin,/charly-check:check,/charly-internals:strict-policy,/charly-internals:git-workflow.opencharly/charly#1327.feat/branch, append-only commits, no destructive git.2026.332.1120built from thecharly#1324head.check-pod-rebuild-buildon itsdisposable: truetarget, fresh,PASS (steps=6).Plan conformance
Winning candidate: A — tolerate only the skip status; assert the real header prefix and the update's exit status.
No DESIGN-governed surface.
Change classification
No breaking change. A rebuild gains tolerance for a status that means "nothing was asserted"; the
bed's assertion becomes stricter.
Filed issues
update --buildfails after the build succeeds (fixed by this PR; closed on merge).Agent:
cdi-audit· Claude Code sessionf760307f-53b4-4f48-87da-00f95e5300edAssisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)