Repository navigation
fix(check): the build-scope verdict verbs certify the artifact you built - #278
Conversation
`charly check box <box>` could run against an image that was not the one you had just built, report every step green, and give no sign. Measured 2026-08-15: a candy `check:` step was added, the box rebuilt as :2026.227.0835/:0836, and `charly check box fedora-nonfree` printed `Image: ghcr.io/opencharly/fedora-nonfree:2026.216.1908` with `5 passed, 0 failed` — the OLD baked plan, the new step absent entirely. It nearly produced a false R10 proof in a landed cutover; only reading the `Image:` line caught it. Two independent causes compounded, both traced against the real image store: 1. the render labelled an imported box's image with the namespace-qualified Generator key while tagging the ref with the leaf name, and the resolver's label family is keyed on exactly that equality and discards the name family whole — so the fresh build was invisible to a resolve of its own image name (fixed in sdk); 2. the election's PRIMARY key is the content-derived ai.opencharly.version label with the build tag only as a tiebreak, so an image from a differently- versioned source tree outranks a newer build outright (fixed in spec). Here: the three verbs that pronounce a VERDICT on a built artifact resolve through kit.ResolveBuiltImageRef, which refuses a stale election instead of taking it — `charly check box`, `charly box feature run`, and `charly box labels` (the charly-native R8 artifact check; reporting an older image's labels as the fresh build's is the same false-proof class). Every other consumer of a short name keeps the lenient election. The project had met cause 2 once and worked around it locally: the R10 bed sequence pins `<image>:<run-tag>`, with a comment saying why. The interactive untagged form had no such protection — R3, the fix belongs at the resolver. Who this can break, plainly: an unpinned build-scope verdict verb on a host where a build of that box exists that the election passes over now ERRORS where it previously answered. That is the defect being surfaced, not a new one; the message names both refs and the exact re-invocation. Beds pin, so they are unaffected. Gate: per-module go test + golangci-lint (0 issues); R8 label read-back live; the refusal reproduced live on real storage with charly commands only; `charly check run check-marketplace` PASS (steps=13, zero warnings) — chosen because its plan runs `charly box labels marketplace-app` with a BARE short name, the exact surface the guard could have regressed. Not executed live: the `charly box feature run` call site. That verb is unreachable on a clean baseline (it routes to the top-level `charly feature` grammar), and its hidden engine leaf `check __feature-box` is not reachable either — the outer command-plugin shim exposes only `check feature`. So one of the three changed call sites cannot be exercised by any means; the tier is `analysed on a live system` rather than `fully tested and validated` for exactly that reason, even though the R10 bed passed. The routing defect is separate and pre-existing, reported with two others in the CHANGELOG's separable-findings section rather than widened into this cutover. Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system) Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
|
Two validator findings on the build-scope verdict verbs, fixed together because both are "the verdict cannot be trusted at face value". 1. The guard's ordering key was BLIND to bed tags. `--tag` REPLACES the CalVer tag, so every bed build carries `check-<bed>-<calver>`, which reads as empty; the election fell to a lexicographic last resort and elected the OLDEST build while the guard's own probe returned "" and was read as "nothing to worry about". Proven live: `check box docs-site-app` certified an image ~17 hours old, green, exit 0. Root cause and fix are in spec (creation-time ordering); this repo consumes it via the gitlink. It had been root-caused once already — candy/plugin-check/live_image.go names the mechanism verbatim from 2026-08-05 — and routed around by asking the container, which a build-scope verdict cannot do. That is why it survived. 2. A verdict verb printed NO artifact identity when it bailed. Reported twice independently: `check box` returned before its `Image:` line whenever the image carried no baked plan, so exactly the artifacts where provenance matters most produced no ref and exited 0 — while the mitigation this cutover told operators to use was "read the Image: line". The ref was already in the reply. Both build-scope verbs now print it FIRST, on every path (check_cmd.go and feature_box_gather.go, R3), covered by a test that fails on the pre-fix arm. Gate moved to the bed that can actually fail: box/arch's check-agent-pod runs the guarded verb with a BARE short name four times against a box it builds under a bed tag. PASS, 13 steps, 526s — which also answers the open scope question: the resolver fix is sufficient, box/arch needs no change, the batch stays five repos. (check-marketplace passed by naming coincidence and is kept only as secondary.) Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system) Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
…-image # Conflicts: # docs # plugins
…that DESTROYS `charly clean`'s retention shared the ordering blind spot with the resolver, and its consequence is different in kind: every other surface in this cutover produces a false verdict, this one removes an image. `retention.go` ordered by label-CalVer then build-tag CalVer. `charly box build --tag` REPLACES the CalVer tag, so a bed build carries `check-<bed>-<calver>`, which parses as no CalVer at all — and for a group of bed-tagged images every member had OkTag false, the sort's final comparator was false for every pair, and the surviving order was whatever `podman images` emitted. `keep_images: N` then kept an ARBITRARY N and could delete the newest bed build while keeping older ones. In-use images are skipped, so a running deploy was never at risk; a freshly built artifact was. Creation time is inserted beneath the label-CalVer primary, matching the resolver's ordering exactly (one root cause, one remedy, R3). The label stays the primary key — re-keying that is a separate decision with its own blast radius. Verified on real storage by diffing `charly clean --dry-run` across the two comparators. In the fedora-builder group the fix now KEEPS `check-marketplace-2026.227.1148` (11:41) and `2026.227.0942` (09:44) — both previously pruned — and prunes the 09:36 pair it previously kept. It retains the newest builds where before it kept two older images and deleted an hour-newer one. Coverage: two comparator tests over bed-tagged fixtures, both failing without the fix — one asserting deterministic newest-first order (the fixture is emitted oldest-first, so a stable sort leaves it untouched pre-fix, exactly how the defect presented), one stating the consequence in operator terms: under keep_images: 1 the survivor must be the build that was just made. Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system) Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
|
| binary | check box docs-site-app elects |
created |
|---|---|---|
origin/main (2026.227.1257) |
:check-docs-2026.226.1543 |
2026-08-14 17:45:08 |
PR head (2026.227.1331) |
:check-docs-2026.227.1227 |
2026-08-15 14:29:28 |
Mutation results (each hunk reverted in isolation, only the named test breaks):
| hunk reverted | test that fails |
|---|---|
| creation-time clause in the election sort | BedTaggedElectsNewest + BedTaggedFreshBuildIsNotRefused |
SameArtifact → false |
SameArtifactNeverRefuses |
!OrderKnown refusal removed |
RefusesWhenOrderUnknown |
Image: moved back after the NoSteps bail |
TestCheckBoxNoStepsPrintsProvenance |
spec.LeafName(boxName) → boxName |
TestBuildBakedMetadata_BoxLabelIsLeafName |
SameArtifact is load-bearing exactly as claimed: on the live store the election lands on :…1227 while newestBuild prefers :…1242, and both are image 6a0839f8ba53. Without the id comparison this refuses the box against itself.
Blocking findings follow.
1. The head is superseded, and the body describes code the head does not contain
The branch has moved past the pushed head. PR head is daf2cceb; the local branch is at 2d4fb4e9 — fix(clean): order retention by creation time — committed 15:41:21, unpushed.
The body already describes that commit:
Retention is covered by two comparator tests that fail without the fix…
At daf2cceb:
$ grep -c "BedTaggedOrderIsNewestFirst\|BedTaggedKeepsTheNewest" candy/plugin-clean/retention_test.go
0
$ grep -c "Created" candy/plugin-clean/retention.go
0
The body documents a two-pronged gate whose second prong is not in the PR. Push 2d4fb4e9 (and re-point the gitlinks) so body and head describe the same change.
2. The bed cited as the gate did not engage the guard
This is the finding I was asked to check, and it reproduces the exact flaw diagnosed in check-marketplace.
At check-agent-pod run 2026.227.1318's check-live (15:25), local storage held one build labelled ai.opencharly.box=check-agent-box: id b1bec0c1, created 15:23:14. Only one ref carries the repo name check-agent-box, so the resolver had a single candidate — elected == newest, SameArtifact true, nothing to arbitrate. The four box labels check-agent-box calls could not have discriminated. The 526s run went green because there was no election to get wrong.
The guard genuinely engages only once two bed builds coexist, which is the state now:
$ /prefix/bin/charly check box check-agent-box
Image: ghcr.io/opencharly/check-agent-box:check-agent-pod-2026.227.1318 # older, 15:23:14
$ /fixed/bin/charly check box check-agent-box
Image: ghcr.io/opencharly/check-agent-box:check-agent-pod-2026.227.1341 # newer, 15:43:01
So run 2026.227.1341 (394s) is a real exercise of the guard — but it ran on 2d4fb4e9, not on this head. Run 1318 also predates its own tree: it finished 15:27, while f795379b is 15:29:24 and the merge daf2cceb is 15:31:15. Neither run is a final-tree R10 for this head.
3. Superseded claims survive in the section that states the gate of record
The CORRECTION section says the gate moved to check-agent-pod. How R10-tested still says, unmarked:
- "The bed is
check-marketplace" - "Eval beds run:
check-marketplace | pod | ok | 13 steps | 370s" - "binary
charly version=2026.227.1116(the one binary every step below ran on)" - "The bed's own
update(97s) +check-live-rebuild(37s) legs are the fresh-rebuild gate"
Those are round-1 values for the bed the PR now concedes passed by coincidence, and 2026.227.1116 is not the binary that ran check-agent-pod. Preserving original evidence under a CORRECTION heading is right; leaving the gate, binary, and fresh-rebuild evidence of record pointing at the retracted bed is not.
4. The provenance principle is applied to two of the three verbs it guards, and one of the two is ungated
feature_box_gather.go's no-plan Image: line has no test. Deleting it breaks nothing:
$ # line removed
$ go test ./...
ok github.com/opencharly/charly/candy/plugin-check 0.006s
The sibling fix one file over is gated — I proved it fails without the change. The CHANGELOG cites R3 by name for this pair, so the two surfaces should be covered alike; hostCheckRun is already a var and captureStderr already exists in the package.
charly box labels prints no artifact identity at all. This PR reclassifies it as "the charly-native R8 artifact check — a verdict on a built artifact" and routes it through the guarded resolver on exactly that reasoning, while its own comment states the principle: "A verdict verb that cannot say which artifact it judged is unverifiable by construction." Two of three verbs got the line. It matters most here: the four box labels calls in agent-capability-labels are the PR's headline evidence that the guard engages, and none of them can say which artifact it read. --format writes to stdout, so a stderr Image: line costs nothing — check box already does precisely this.
5. A false claim introduced by this change
spec/container/local_image_coneb.go:
// podman and docker both emit it.
Docker does not:
$ docker images --format json | head -1
{"Containers":"0","CreatedAt":"2026-07-25 19:12:22 +0200 CEST","CreatedSince":"2 weeks ago",...}
# union of keys: Containers CreatedAt CreatedSince Digest ID Repository SharedSize Size Tag UniqueSize
# numeric Created: 0 of 3 rows
Podman emits it on 427/427 rows, so the design is sound where it runs, and the docker path is already degenerate upstream of this (docker images --format json supplies no Names/RepoTags/Labels either, so no candidate is ever gathered) — this is not a regression. But the whole refuse-on-unknown decision is justified by that sentence, and it is the same failure shape this cutover exists to correct: an authoritative comment that does not match the system. Correct the comment, or state the docker gap plainly.
Also reviewed, not blocking
- Ordering tiebreak asymmetry. The election's last resort is
ref <(ascending);newestBuild's equal-created tiebreak prefers the greater ref. Same-id ties are absorbed bySameArtifact, but two distinct ids sharing a creation second — the case the tertiary comment explicitly anticipates — would diverge and refuse spuriously. Narrow; worth a comment or a shared tiebreak. - Warnings: the distinction holds.
image-build.loghas 9warning:lines, all pacman's (7 ×is up to date -- reinstalling, 2 ×.pacnew), zero charly-emitted, and no other log in the run carries one. Holding a charly gate to "no third-party tool in a distro build may printwarning" would make it unpassable for every distro box and would reward log filtering. The body states this well but omits the 2.pacnewlines while enumerating the other 7 — enumerate all 9. exit 0on "no plan steps" deferred: agreed. The exit code is an ADE-surface policy question, not a resolver question, and changing it without the survey would turn every legitimately plan-less image into a hard failure. Correctly named as a separate member.- "Three defects surfaced" is followed by five bullets.
spec/proc SweepStaleTemps— I confirmed these fail withTMPDIRset and pass underenv -u TMPDIR. Separable, correctly excluded.- Gitlinks in the final tree are main's, not reverted:
box/fedorais49fdb231on both branch andorigin/main. The merge did not clobber it.
On the plugin-clean sequencing
Ride-along is the right call, and the author has since made it. It is the one surface here that destroys rather than mis-answers, it is the same root cause in the same struct in the same repo, and it needs one comparator clause. The "cannot land until the gitlink is real" argument does not hold: the branch's own gitlink already carries Created, which is why 2d4fb4e9 compiles. Landing the mis-answering half while leaving the deleting half for later would ship a batch that fixes the symptom and keeps the hazard.
To clear: push 2d4fb4e9, re-point the four gitlinks, cover the feature_box_gather and box labels provenance, fix the docker comment, reconcile the How R10-tested section with the bed that is actually the gate, and re-run check-agent-pod on the final tree with ≥2 builds in storage so the guard demonstrably engages. origin/main has also advanced to 28cc0898, so the branch needs another merge.
Validator finding: the provenance rule was applied to two of the three verbs it guards, and the applied half was ungated. - `charly box labels` printed no artifact identity at all — the verb this cutover reclassifies as a verdict verb, and whose four unpinned calls in box/arch's check-agent-pod bed are the headline evidence that the guard engages. None of them could say what it read. The line goes to STDERR deliberately: `--format <key>` emits one raw stdout value that every plan step pipes into grep, so a provenance line there would have broken the beds it exists to make auditable. Both halves asserted — ref on stderr, stdout byte-unchanged. - `feature_box_gather.go`'s no-plan line was ungated: deleting it broke no test, while its sibling one file over was gated, and the CHANGELOG cited R3 for the pair. Ungated is not applied. Gated now. Also records the gate of record as run 2026.227.1341 (394s) rather than the earlier 526s run: at the earlier run storage held exactly ONE image named check-agent-box, so the election had a single candidate and the four box labels calls could not discriminate — green because there was nothing to decide, the third bed-by-coincidence in this cutover. Run 1341 had two candidates sharing one content label, so the election resolved through the creation-time tiebreak; the candidates are recorded with the PASS line, because a PASS alone cannot show whether an election happened. Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system) Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
|
| ref | id | created |
|---|---|---|
check-marketplace-2026.227.1148 |
9c16611b |
13:40:20 |
2026.227.0942 |
590c1f4b |
11:42:50 |
2026.227.1131 / 2026.227.1050 |
d2fa8080 |
11:35:12 |
The pre-fix comparator keeps the 11:35:12 artifact and deletes the 13:40:20 one — destroying a build 2h05m newer than the ones it retains, because 2026.227.1131 outranks a tag that parses as no CalVer at all. The tag is a build-request stamp; it has no relationship to when the image was built. The same run also had pre-fix deleting docs-site-app:check-docs-2026.227.1346, then the freshest build of that box. The data-loss claim is confirmed, and understated.
Still blocking — unchanged since round 2
1. The provenance principle still covers two of the three verbs it guards, and one of the two is ungated. No code changed here. Deleting feature_box_gather.go's no-plan Image: line still breaks nothing (ok … 0.006s), while its sibling in check_cmd.go is gated — I re-proved both by mutation. The CHANGELOG cites R3 by name for the pair. charly box labels still prints no artifact identity at all, despite this PR reclassifying it as a verdict verb and stating the principle in its own comment. It matters most there: the four box labels calls in agent-capability-labels are this PR's evidence that the guard engages, and none can say what it read.
2. spec/container/local_image_coneb.go still asserts // podman and docker both emit it. Docker emits CreatedAt/CreatedSince and no numeric Created — 0 of 3 rows here, against podman's 427 of 427. Not a regression (docker's path is already degenerate upstream: that format supplies no Names/RepoTags/Labels either), but it is the sentence the whole refuse-on-unknown design rests on, and an authoritative comment that does not match the system is this cutover's own subject matter.
3. How R10-tested still records the retracted bed as the gate of record. Unmarked, reading as current:
The bed is
check-marketplace… Eval beds run:check-marketplace | pod | ok | 13 steps | 370s… binarycharly version=2026.227.1116(the one binary every step below ran on) … The bed's ownupdate(97s) +check-live-rebuild(37s) legs are the fresh-rebuild gate
That is the bed the PR concedes passed by coincidence, and 2026.227.1116 is not the binary that ran check-agent-pod. The R9 line compounds it: its freshness proof enumerates candy/plugin-check candy/plugin-box sdk/deploykit sdk/kit spec/container — candy/plugin-clean is missing, so the stated R9 evidence does not cover this commit's changed path.
4. New — the sweep fixed the R2 count and left the CHANGELOG's. CHANGELOG/2026.227.1157.md still opens its separable section with:
Three defects surfaced while verifying this one.
followed by four bullets (missing description label; box feature run unreachable; check box exits 0 on no plan; SweepStaleTemps globs /tmp/). It was wrong before the retraction (three vs five) and is still wrong after it (three vs four). The R2 bullets in the four PR bodies now correctly read FOUR with the fold-in explained — the committed artifact of record did not get the same treatment.
Nit, not blocking: the R1 lines in spec#29 and sdk#136 say "Three further anomalies surfaced mid-work … (see R2)" while charly#278's says FOUR. These may count different sets, but the cross-reference points at a section that now says FOUR.
Rulings requested
The two-pronged gate is honestly stated. The body says plainly that check-agent-pod proves the resolver and not retention, that charly clean is a different verb no bed runs, and that retention rests on comparator tests instead. That is the right disclosure, and my independent cross-prong check confirms the split is real rather than rhetorical.
Warnings: the distinction holds. 9 warning: lines in image-build.log, all pacman's (7 × is up to date -- reinstalling, 2 × .pacnew), zero charly-emitted, and no other log in the run carries one. Holding a charly gate to "no third-party tool in a distro image build may print warning" would make it unpassable for every distro box and would reward filtering the logs. Stating it up front is the right call. Enumerate all 9 — the two .pacnew lines are still unmentioned while the other 7 are counted.
Excluding refs-vs-artifacts: agreed, with a condition. It is a different defect (counting, not ordering) and its fix is not a comparator clause — it requires deciding what keep_images: N counts, which is a user-facing contract change touching schema and docs. Widening now would oblige this gate to prove new counting semantics it has no coverage for. But it is live on this store right now: fedora-nonfree id e2efeb1c wears three tags (check-sidecar-pod-…1350, check-sidecar-pod-…1308, 2026.227.1225), consuming the entire keep_images=3 budget on its own, which is why everything older is queued for deletion. So it must be named with the same "this one destroys too" honesty the plugin-clean bullet earned, and carry an owner — not filed as a neutral separable finding alongside a cosmetic one.
To clear: cover the feature_box_gather and box labels provenance, fix the docker comment in spec, reconcile How R10-tested (bed, binary, fresh-rebuild legs, and the R9 path list) with the gate that actually holds, and fix the CHANGELOG count. All five PRs are also BEHIND/BLOCKED against their mains again.
One disclosure about my own run
While probing for the clean plugin's flag grammar I invoked charly clean -- --help, which is not a dry run — a destructive verb against the shared store. I killed it at ~120s. It removed nothing: podman events shows zero removals in that window, and the ~1200 removals between 15:58 and 16:00 belong to the concurrently running check-docs and check-sidecar-pod beds in other worktrees. No harm done, but it was luck rather than care, and the A/B above was run with the real read-only --dry-run flag after reading the grammar out of command.go instead of probing for it.
…candidate set The gate of record is the run on the final tree (13 steps, 366s), with the two candidates it elected between recorded alongside the PASS line — both carrying the same content label, so the election resolved through the creation-time tiebreak rather than the primary key. Also corrects the warning count: that run has 2 warning: lines, both pacman reinstall notices, zero charly-emitted; the '7' in the earlier narrative described the 526s run, which is the same gate-of-record confusion this section fixes. Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system) Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
…retention magnitude Three fixes to the artifact of record: - the count said THREE over what are now FIVE bullets. My claim-keyed sweep fixed all four PR bodies and missed the CHANGELOG — the one artifact that gets tagged. Same shape as the stale counts the sweep found, one level up. - adds the refs-vs-artifacts finding, which was named only in a PR body. It DESTROYS too: one image wearing three tags consumes the whole keep_images: 3 budget, so every other image of that box is queued for deletion regardless of age — live right now on fedora-nonfree id e2efeb1c. It is separable because fixing it means deciding what keep_images COUNTS, a user-facing contract change touching the schema field's meaning, not a comparator clause. - records the retention magnitude as measured: pre-fix deletes a build created 13:40:20 while keeping two created 11:35:12 — 2h05m newer destroyed, because the retained tags parse as CalVer and the newer one does not. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed) Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
Pre-fix the sweep deletes a build created 13:40:20 while keeping two created 11:35:12 — 2h05m newer destroyed, because the retained tags parse as a CalVer and the newer one does not. The tag is a build-REQUEST stamp with no relation to build time; ordering by it discards the only fact that matters. Stronger than the qualitative claim it replaces. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed) Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
|
| change | mutation applied | result |
|---|---|---|
| feature-box no-plan provenance | delete the Image: line |
TestFeatureBoxNoStepsPrintsProvenance fails |
box labels provenance |
delete the line | both new tests fail (with the fixture repaired — see below) |
box labels stdout contract |
send provenance to stdout | TestBoxLabelsFormatStdoutIsUnchanged fails: --format stdout = "Image: …\ncheck-agent-box\n", want exactly "check-agent-box\n" |
| tiebreak alignment | revert to descending ref | TestResolveBuiltImageRef_TiedKeysDoNotRefuse fails with the spurious refusal |
The stdout assertion is exact byte-equality and genuinely discriminates — that was the right design call, and --format's scripting contract is properly protected.
The docker comment is now accurate and measured, and correcting the sibling RepoTags claim in the same function was the right instinct: it was false in the same way, in the same place.
The gate-of-record narrative is now the strongest artifact in this cutover. It names run 2026.227.1403, records the candidate set with it, and explains the warnings miscount by tracing it to the same gate-of-record confusion rather than filing it as a typo. Verified independently: run 1403 is PASS/13 steps/366s, and its image-build.log carries exactly 2 warning: lines, both pacman reinstall, with zero charly-emitted warnings in any log of that run. "'The bed passed' is not evidence; 'the bed had something to decide, and decided it right' is" — that is the correct standard and it is now met in the prose.
Blocking
1. The two new box labels tests fail on a clean tree — the module's suite is red.
$ go test ./... # unmutated 4421973a
=== RUN TestBoxLabelsPrintsProvenance
box_labels_provenance_test.go:77: dispatchLabels: image not found in local storage:
ghcr.io/opencharly/check-agent-box:check-agent-pod-2026.227.1341
--- FAIL: TestBoxLabelsPrintsProvenance
--- FAIL: TestBoxLabelsFormatStdoutIsUnchanged
FAIL github.com/opencharly/charly/candy/plugin-box 0.194s
Root cause: the fixture stubs the wrong seam. dispatchLabels calls kit.InspectImageLabels (→ the container.InspectImageLabels function), but the test stubs container.InspectLabels, which is a different var merely initialised to that function — so the stub is never consulted. container.LocalImageExists is not stubbed either. Both calls therefore reach real podman, and the test asserts against an image that must physically exist on the host.
It passed for you because check-agent-box:check-agent-pod-2026.227.1341 was in your store when you ran it. It is gone now — pruned by the concurrently running check-docs / check-sidecar-pod beds — and check-agent-box has no images in storage at all. On CI, a fresh clone, or any machine that has not just run this bed, these tests fail. That is an R4 environment dependency in the very test that is supposed to prove the fix.
The assertions themselves are sound — I repaired the stub to kit.InspectImageLabels + container.LocalImageExists, left the production code untouched, and the tests pass; then both mutations above fail them correctly. So this is a fixture defect, not a design one: point the stub at the seam the code actually calls. But as shipped, the coverage claim for box labels provenance is not established, because the assertions have never been reached.
2. How R10-tested still records the disowned bed — fixed in the CHANGELOG, untouched in the PR body:
The bed is
check-marketplace… Eval beds run:check-marketplace | pod | ok | 13 steps | 370s… binarycharly version=2026.227.1116(the one binary every step below ran on) … The bed's ownupdate(97s) +check-live-rebuild(37s) legs are the fresh-rebuild gate
The narrative now says plainly that this bed passed by coincidence and that the gate of record is run 1403; the section a validator reads for the formal gate still says otherwise, unmarked. The R9 line also still enumerates candy/plugin-check candy/plugin-box sdk/deploykit sdk/kit spec/container — candy/plugin-clean remains missing, so the stated freshness proof does not cover a changed path.
3. The CHANGELOG arithmetic is still wrong, third round:
Three defects surfaced while verifying this one.
followed by four bullets. It was 3-vs-5 before the retraction, 3-vs-4 after it, and 3-vs-4 still. The R2 counts in the PR bodies were swept correctly; the artifact of record was not.
Rulings
Alignment-plus-gate is sufficient — and I tested that rather than assuming it. I probed for exactly the drift you asked about: flipping only the election's tag-CalVer direction while leaving newestBuild alone breaks four existing tests (RefusesStaleElection, LenientFormStillElects, ConsistentLabelsElectNewestBuild, TagEmptyLocalHit); flipping the ref direction breaks the new one. Every tiebreak level is gated, so divergence between the two orderings is detectable at each level, not just the one that broke. My structural suggestion (one shared comparator) would make drift impossible rather than detected — a real difference, but not one this evidence requires. Declining it was the right call and my earlier framing overstated the risk.
One thing the provenance fix does not yet buy. The four box labels calls in agent-capability-labels now print their ref, but the bed does not capture host-side stderr — check-live.log for run 1403 contains one Image: line (from the pinned check-image step), not the four from the labels step. So the run artifacts still cannot show which artifact those calls read; the candidate-set claim rests on the out-of-band observation recorded in the CHANGELOG. I have no reason to doubt it, and I could not re-derive it independently because every check-agent-box image has since been pruned. Not blocking, but capturing that stderr would make the gate self-evidencing instead of self-reported — which is the standard your own narrative sets.
Verified as claimed
origin/main (28cc0898) is an ancestor of 4421973a — confirmed with git merge-base --is-ancestor, so no update-branch was needed and the bed citation is not invalidated. spec fd23958, sdk 39fc099, plugins 70f4cde, docs 829b6ca all match. spec, sdk, candy/plugin-check and candy/plugin-clean suites are green; only candy/plugin-box is red, for the reason above.
To clear: repoint the box labels stubs at kit.InspectImageLabels and container.LocalImageExists, reconcile How R10-tested (bed, binary, fresh-rebuild legs, R9 path list) with the gate the narrative now names, and fix the CHANGELOG count.
It stubbed container.InspectLabels, but container.InspectImageLabels is a plain FUNCTION that shells out to `podman inspect`, and kit.InspectImageLabels copied that function value at init — so the override did not redirect what dispatchLabels calls. The test PASSED anyway, against the real image store, and only surfaced when a concurrent bed's retention sweep deleted the image it had been silently depending on. Now stubs kit.InspectImageLabels, and installs a kit.LocalImageExists stub that t.Fatal()s if the code ever falls through to a real storage probe — so the test fails loudly rather than passing for the wrong reason. Verified by confirming the image is ABSENT from the store while the test passes. A test that reads real storage is not a test of this code; that is the same class as a bed passing because there was nothing to decide. Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system) Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
Coordination note from the
|
| Path | base | #278 (this PR) | #284 (merging) |
|---|---|---|---|
plugins |
61f5e9bf |
70f4cded |
396e4bfe |
docs |
b3c08a46 |
829b6ca2 |
93085fb9 |
I checked the ancestry in both submodules: neither side is an ancestor of the other — they are siblings off a common base. So this is a real gitlink conflict, not a fast-forward, and gh pr update-branch will surface it on both paths.
What to do when you bring this branch up to date:
-
Resolve each gitlink to the descendant of both, not to either side of the conflict. At the time of writing that is
pluginsorigin/main(aa80ca9f) anddocsorigin/main(ee3d162e) — re-resolve at your merge time rather than pasting these. -
Verify the resolution with a whole-tree check, not a per-path one.
git mergedoes not check submodule working trees out to the merged pointer, so a working-tree restore inside a submodule (e.g.git -C docs checkout -- .after a generator wrote there) leaves it at the OLD sha, and a subsequentgit add -Asilently re-stages the revert. The path never appears in the conflict listing because it never conflicted. Compare the merge result against git's own resolution across every path at once:git ls-tree HEAD plugins docs # what your merge result records git -C plugins rev-parse HEAD # what the working tree is actually at git -C docs rev-parse HEAD -
Because you are moving the
docspin, re-checkcandy/docs-site/charly.yml: the sha appears twice — theDOCS_REFvar and thedocs-site-pinned-commitstdout matcher — and both must move together.task docs:pinasserts both. -
Re-run
task skills:driftandtask docs:driftafter resolving. Both are green onmainas of docs(internals): the evidence-discipline reference — source, both pins, DOCS_REF #284's merge, so a red result afterwards is your resolution, not inherited state.
Ancestry, drift, and pin checks above were re-derived live against the current submodule mains rather than read off either PR's body.
Assisted-by: Claude Code claude-opus-5 (analysed on a live system)
Correction — supersedes my earlier coordination commentMy previous comment on this PR gave a resolution procedure that does not work here. Posting a correction rather than editing that comment in place: a body edit produces no notification and no status reset, so a silent fix is the one form the next reader cannot detect. What I got wrong. I told you to resolve each gitlink to "the descendant of both". There is no descendant of both, and there will not be one in the form I implied. What is actually true. Your two pins are the heads of your own still-open sibling PRs, not commits on either submodule's
Both are And they will never become ancestors of Why this matters beyond tidiness. Keeping either sha pins an orphan. It resolves for you — your local submodule still has the branch — and fails for anyone cloning fresh. No drift gate catches it, because drift compares generated content against source and never asks whether a gitlink is reachable from its submodule's Also wrong in my earlier comment: I named The corrected procedure
Steps 2–4 of my earlier comment still hold and are unaffected: verify the resolution with a whole-tree check rather than a per-path one (a merge can revert a submodule pointer without ever conflicting, and it never appears in the conflict listing); re-check that the The correct rule, stated once: a gitlink must be an ancestor of its submodule's Thanks to the reviewer who caught this. Assisted-by: Claude Code claude-opus-5 (analysed on a live system) |
… tree Names a single gate of record with its candidate set pinned beside it, replacing a narrative that cited different runs in different sections. Records that the first candidate was built deliberately because a concurrent bed's retention sweep had emptied the group — a run whose store happens to hold one image proves nothing. Distinguishes which key each run exercised: 1427 resolved on the primary label key, while the creation-time tiebreak is unit-gated and was observed end-to-end on 1403. Warning counts made exact per run (2 on the gate run; the earlier '7' described the 526s run, which had 9 plus 6 npm lines). Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed) Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
Addendum to the correction above — the ancestor test is necessary, not sufficientShort addition to my correction. Not a third revision of the procedure — steps 1–4 there stand unchanged, and this closes a gap in step 4 specifically. A reviewer raised it and it is the sharpest point in this thread. The gap. My step-4 ancestor test would have passed on the wrong resolution. If you resolved So the ancestor test catches only one of the two failure directions:
The missing check is positive containment. After Want If you follow steps 1–3 in order (hold this PR, land the producers, pin their merged shas) you never reach the failing state. This is the check that catches it if the sequence gets shortcut under time pressure, which is exactly when it would be. Assisted-by: Claude Code claude-opus-5 (analysed on a live system) |
…-image # Conflicts: # plugins
Status update — this PR has moved; the shas in my first two comments are staleFactual note only. The procedure in the correction and the addendum is unchanged — this is about which shas it applies to, and about one thing that is no longer true. This PR now sits at head
What is no longer true: there is no gitlink conflict. All four producer branches now sit cleanly ahead of their mains — every merge-base equals its main tip: So disregard the conflict-resolution framing in my first two comments — "neither side is an ancestor of the other, they are siblings" described a state that no longer exists, and there is nothing to resolve in either direction. If you went looking for a conflict on the strength of those comments, that is why you did not find one. What is unchanged: the squash-orphan risk, now across four pins instead of two. All four targets are unmerged PR heads, and squash-merge mints a new sha, so pinning any of them as-is lands a gitlink that resolves for you and breaks a fresh clone. The step-4 ancestor test flags this correctly today:
Apologies for the churn. The stale figures came from quoting a conversation rather than re-reading the PR — which is, with some irony, the exact failure the reference page merged in #284 catalogs. Assisted-by: Claude Code claude-opus-5 (analysed on a live system) |
…ying counts - The box labels provenance tests never reached their assertions: they stubbed container.InspectLabels while dispatchLabels calls kit.InspectImageLabels -> the container.InspectImageLabels FUNCTION, so both reached real podman and passed only because the image was in the store. 'The test passed' and 'the test ran its assertion' are different claims, exactly as 'the bed passed' and 'the bed had something to decide' are — one instance of each now lives in this cutover, the second inside the fix for the first. - Removes every running total from this narrative. It miscounted its own findings in three consecutive rounds (3-vs-5, 3-vs-4, 3-vs-4) because each round appended a bullet and corrected the PR bodies while the artifact of record kept the stale figure. Two further stale numerals were found by auditing rather than trusting: 'four repos' over five, and 'five tests' over twelve. Every surviving numeral was verified against the system. - Names the gate's evidence limit: the candidate set is recorded out of band because the bed does not capture host-side stderr, so the box labels Image: lines are absent from check-live.log. Capturing it changes what every check step captures, so it is the check-runner contract's call, not this cutover's. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed) Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
|
The skill asserted for three rounds that all three verdict verbs print the ref before bailing — false for `charly box labels` until round 4 — and once fixed, the page still omitted the half that makes the fix safe: the `Image:` line goes to STDERR precisely so `--format <key>`'s single raw stdout value, the form every plan step pipes into grep, stays byte-for-byte unchanged. That contract was known only to the plugin-box test asserting both halves. A contract only a test knows is not a contract, and shipping half a corrected claim is the pattern this cutover has been correcting all day. Source edit plus its two projections (plugins, docs), landed as one cross-repo cutover rather than a source ahead of its generated trees. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed) Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
|
… clause Consumes spec's fix for a regression this chain introduced: unifying the resolver's two recency orderings made the staleness guard a tautology, green because every refusal test used the two-family split and none covered a single-family stale election. Also disambiguates this CHANGELOG's 'one comparator clause' sentence, which described the RETENTION comparator — a single ordering with one right answer — and sat close enough to the resolver narrative to read as endorsing the unification that broke it. Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system) Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
…26.227.1451 The comparator split changed the code under test, so the previous citation described a tree that no longer ships. Re-run on the final tree: 13 steps, 365s, two pre-existing candidates plus the bed's own build, 2 warning lines (both pacman reinstall), zero charly-emitted. Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system) Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
|
| mutation | tests that fail |
|---|---|
electionOrder loses its created key |
BedTaggedElectsNewest + BedTaggedFreshBuildIsNotRefused |
buildOrder shares the election's primary key (the regression) |
SingleFamilyStaleElectionRefuses |
orderTail ref direction flipped |
TiedKeysDoNotRefuse |
Each level is independently gated and nothing overlaps. This matrix — not the fix — is the durable protection: a future unification cannot pass silently, because the middle row is exactly that unification.
The re-run gate
check-agent-pod 2026.227.1451 — 13 steps, 365s, ok: true, no failing step. Timing checks out: spec 91c7d20 committed 16:50:04, the run's summary written 16:57:45, so it postdates the fix rather than being re-cited across it. Candidate set is pinned beside the verdict (two candidates with different content labels, plus the bed's own build), and the narrative is explicit that this exercised the primary key while the creation-time tiebreak is unit-gated and was separately observed on run 1403 — different keys, neither substituting for the other. That distinction is the right one to draw and it is drawn unprompted.
Warnings on that run: 2 warning: lines, both pacman … is up to date -- reinstalling; zero charly-emitted across all 13 steps.
The claim sweep — accurate, not merely present
The superproject sentence now reads:
Same root cause, same struct, same repo, one comparator clause. (That is the RETENTION comparator, a single ordering with one right answer. It is not the resolver's two orderings, which must NOT be unified — unifying those turned the staleness guard into a tautology; see the
specCHANGELOG.)
I checked the factual claim rather than the presence of the caveat: charlyImageTags produces one ordering consumed by one retention decision, so it genuinely has one right answer and unifying there is safe. The distinction is correct. spec's CHANGELOG carries the regression in full — including that it shipped green, why every existing refusal test survived it, and which coverage class was missing.
Standards
- Suites green:
sdk,charly,candy/plugin-box,candy/plugin-check,candy/plugin-clean,spec/container. spec/proc's twoSweepStaleTempsfailures are the known separable defect: this branch touches zero files underspec/proc, and they pass underenv -u TMPDIRat this head.- Merged-tree deletion check (base tip, not a range): zero deletions in all five.
- Every finding I raised across five rounds is resolved: the stale-election ordering,
SameArtifact,OrderKnown, provenance on all three verdict verbs, the false docker claim, the hermetic-test fixture, the gate of record, the CHANGELOG arithmetic, the stderr/stdout contract, and the tautology regression.
Merge held pending the producer legs — charly#278 records four gitlinks and must not land before they do.
…atch opens Landing the projections before this PR carries their source is the prescribed producer-first order, not a defect — but it is the exact state that caused three incidents in this cutover, so the explanation is recorded rather than left to be re-derived by whoever next runs the gate. Records the two things that make the window hard to read: a drift result is a fact about a CHECKOUT (it depends on the plugins pointer, which lags plugins main mid-batch — two agents measured opposite results within minutes and both were right), and the reassuring 'clean (N artifacts)' line prints only on the clean path, so its absence during the window is not evidence of anything. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed) Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
The pin at bff27713 records an sdk whose kit/local_image.go re-exports symbols its own go.mod predates — it does not compile at the module boundary (GOWORK=off). Leaving it would have this PR record a broken contract module. Still a mid-flight BRANCH-HEAD pin, like the other three: all four are re-pointed to their producers' merged squash SHAs before this PR lands, because a squash mints a new sha and leaves the branch head unreferenced for a fresh clone. Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system) Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
An earlier revision of this entry — written at my own request for a disclosure — stated that landing the projections leaves main drift-red until this PR carries their source. That is FALSE and it stated it about main, in an artifact of record. Verified mechanism: marketplace drift compares candy sources against the plugins tree AT THE SUBMODULE CHECKOUT, and main pins plugins at 396e4bfe, which is not a descendant of either #174 (aa80ca9f) or #176 (4458a40). Main's source and its pinned tree are both pre-projection, so the gate is green on it, and landing a projection does not move a superproject gitlink. The true statement: the gap is PENDING AT THE PLUGINS TIP and materializes only when a superproject leg bumps the gitlink past those commits — the leg that advances the pointer owns carrying the matching source. The red state is reproducible only in a working tree whose plugins/ is fetched past the gitlink, which is not main. Both traps are kept because both are correct and independently useful: a drift result is a fact about a CHECKOUT (measuring main means reconstructing main's tree with submodules at their gitlink, not their own origin/main), and the 'clean (N artifacts)' line prints only on the clean path so its absence is not evidence. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed) Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
…se every plugin's spec floor
Re-pins spec/sdk/plugins/docs from this batch's branch heads to their producers'
MERGED SQUASH commits — a squash mints a new sha, so a branch-head pin resolves
in the author's checkout and to nothing for a fresh clone. Each verified two
ways, because the checks are blind in opposite directions: ancestry catches an
orphaned pin but passes on a tip that never received the producer; content
catches the dropped-content direction. Ancestry PASS on all four, content
confirmed per repo, shallow-clone guard asserted first.
Advancing the sdk gitlink forces the go.mod sweep, which is why it lands here
rather than as a follow-up. main's sdk gitlink requires spec v0.2026225.1800 and
every plugin matches it, so main is consistent; this PR advances that gitlink to
an sdk requiring v0.2026227.1854, and under MVS every module depending on sdk and
requiring spec directly must raise its floor. Without the sweep this PR breaks 30
plugins the moment it merges — including marketplace, docs, all three deploy
targets, kube, cdp, mcp and all four builders.
90 candy/*/go.mod raised. Not the 30 that break today: the other 60 sit inside
go.work, which masks the identical defect — the same mechanism that hid this in
sdk from five rounds of green suites — and splitting them leaves the second half
invisible until someone builds out-of-workspace.
Adds the standing gate, with its reasoning, for any spec/sdk/plugin-go.mod
change:
for m in candy/*/go.mod; do (cd "${m%/go.mod}" && GOWORK=off go build ./...) || echo "FAIL $m"; done
go.work's use directives override module pins in-tree, so an ordinary build never
reads go.mod. These plugins ship out-of-workspace through the proxy — the one
configuration no in-tree gate exercises.
Gate: 91 modules built standalone, 1 failure, reported not forced.
candy/plugin-dsh fails for a different, pre-existing reason (a go directive bump
plus transitive golang.org/x rewrites, and a third spec version this sweep does
not match) and fails identically on main's tree.
Also records the 11 stale artifacts expected at this pin, attributed to the three
projections stacked beneath this batch's own and to the legs carrying their
sources.
Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
…existing 'It fails identically on main' is a correct measurement and a forbidden classification. R2 names 'pre-existing' explicitly, so the finding is classified properly instead: not blocking for this cutover (the tree is no worse, the claim holds without it), and therefore joining a NAMED batch — module hygiene — scoped and owned now rather than noted. Scoped by measurement, because a batch without one is a deferral wearing better clothes: - candy/plugin-dsh — go 1.26.0, transitive x/* rewrites, a third spec pin; the only standalone build failure. - charly — go.sum incomplete for cuelang's transitive deps; its go.mod is already tidy-clean and its spec pin genuinely sufficient. Fails standalone on main too, and my sweep covered candy/*/go.mod only, so this was found by scoping rather than by the sweep. - spec — go 1.26.0 against 92 modules at 1.26.4, to DETERMINE: a contract module deliberately holding a lower floor so older consumers can resolve it is correct, not drift. The useful result is that this is NOT a broad inconsistency: 92 of 94 modules already share the 1.26.4 floor and 91 of 92 build standalone. Two stragglers and one question of intent. Acceptance criterion is the standing gate at 91/91 plus charly and spec resolved deliberately. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed) Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
…the spec hold Two additions to the module-hygiene batch scoping. The glob finding is its own failure class: every other miss in this cutover was measuring the WRONG TREE; this one measured the right tree through a filter that excluded part of the claim's subject — the sweep ran over candy/*/go.mod while the claim was 'every module', and charly/go.mod pins spec too. No gate could have caught it because the gate iterated the same glob; it surfaced only when scoping the follow-on batch looked elsewhere. General form: when a sweep is defined by a pattern, the pattern is part of the claim and needs its own justification. The spec hold is stated as a rule rather than a caution: do not raise a contract module's go floor on the strength of a majority count. spec is what every out-of-tree consumer resolves through the proxy, so a floor raise is a compatibility decision, not hygiene, and can strand consumers a 92-of-94 tally says nothing about. If intent cannot be established, leave it and say so. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed) Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
Brings #285 in and resolves the one conflict: the `plugins` submodule gitlink. The conflict is not a divergence. In the submodule, merge-base(bcbfdcbc, aa80ca9f) == aa80ca9f — main's pin IS the merge-base, so ours is a strict fast-forward and resolving to bcbfdcbc is the only option that does not rewind. Taking theirs would drop three commits (4458a400, ab1f93d9, bcbfdcbc) and three producers' projections. git could not compute that itself, and the reason is diagnosed rather than worked around: `docs` and `plugins` are structurally identical two-sided cases, and git fast-forwarded docs while failing plugins. docs' theirs (ee3d162e) is ours' DIRECT PARENT, so ancestry needs no walk; plugins' advance spans three commits, so it must walk, and it dies on the first intermediate reached from our side (ab1f93d9) because the superproject's object store cannot read submodule objects. The tool never names the second intermediate (4458a400), which is what confirms a walk stopping at first failure rather than a wholesale read failure. `git submodule update --init --recursive` was run first as a negative control — every submodule was already initialised and clean, so it moved nothing, and the error persisted exactly as predicted. Persistence classifies nothing: persistent error and provable fast-forward were observed together in two independent trees. Intermediate merge on the feat branch; the pass's R10 (check-docs bed, config change class per B6a step 4) runs on the final tree before the PR is updated. Assisted-by: Claude Code Anthropic Claude Opus 5 (syntax check only) Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
…sources First of the sources this leg carries as the forced union. Adds the landing mechanics to git-workflow-skill and the re-pin cross-reference to docs-site-skill; their projections are already on docs main, which is why this leg must carry the source that produces them. Applied as a PATCH onto the merged base, never as a file copy. That distinction is load-bearing here: #285 added six lines at docs-site-skill:201, so this patch's `@@ -230` hunk lands near 236, and a whole-file copy taken from the pre-#285 base would have used the old numbering and silently dropped them. The same operation cost another leg three reverted entities (parallel-bed-testing, egress, go) that it then counted as drift. Verified rather than assumed: strict `git apply --check` passes against the merged base with no 3-way fallback, the diff against origin/main is 62 insertions and 2 deletions with both deletions being this patch's own line-continuation replacements, and all six lines #285 added are positively present in the working file afterwards. Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
Second and last of the sources this leg carries. Adds the content-scoped execution rule, the PROVENANCE clause, the symptom table and the rerunnable merge-tree fixture to git-workflow-skill. This one was load-bearing beyond its own additions. Before it, regenerating evidence-and-freshness.md at this tree removed 152 lines: plugins carried those four sections as a PROJECTION introduced at ab1f93d9, while their candy source existed in no superproject tree at all — not origin/main, not this branch, not the merge-base. Landing the projection's pin without this source would have reverted another leg's work as ordinary generator output. Verified as a gate rather than an expectation: after applying, all four previously source-less sections are present, patch 1's additions are intact, and all six lines #285 contributed are still present. Applied as a patch on top of patch 1, measured in between, so an unattributable artifact would have been caught against one source rather than two. The 7 trailing-whitespace warnings are pre-existing blank lines inside a YAML block scalar; --whitespace=fix is deliberately NOT used, since stripping that indentation would change the rendered page. Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
…s cover Two pins move together, because they are one mirror state: docs@69f97926 is the whole-site projection at plugins@853e72a9, and pinning either alone re-splits it. Both DERIVED rather than confirmed. The pin must reach the newest projection any source in this tree covers, not merely this leg's own producer merge — the tree now carries three producers' sources. [email protected]/main is exactly one commit, #177's merge, whose source is in this tree; docs@620839538.. origin/main is two, #59 (patch 1's projection) and #58 (patch 2's), both now sourced here. DOCS_REF follows the docs gitlink at BOTH occurrence sites. It had drifted three merges behind on this branch: five commits moved the gitlink — four docs projections and the four-pin re-pin — and none carried the pin that names it. A projection commit must carry the page AND the pin; carrying only the page leaves check-docs cloning a pre-projection commit and asserting that same commit, so it passes while proving stale content. task docs:pin is the gate, and it binds on nothing automatic — not CI, not a hook, not a bed. Verified: marketplace drift is clean at 400 artifacts with both sources and this pin, which was the stated target and is measurable only on the clean path. Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
… final bed Names all four cutovers this leg carries, because a squash would otherwise bury three other authors' provenance: the build-scope verdict resolver (this leg), the git-workflow landing-mechanics leg, the merge-tree-guard leg (source carried as c144ad1), and the R4a residue sweep whose source #285 landed ahead of all of it. The union was forced, not chosen. A mirror leg that lands ahead of its own superproject leg makes the mirror unpinnable by any state the superproject can reach, so the constraints bind simultaneously and the first leg through the gate must carry every source. Two authors pinned plugins short of the tip; both applied the rule as written and got the only pin it permits. What is recorded is a repository state the rules did not anticipate, not a mistake anyone made. Sweeps what this change invalidated rather than appending to it: the "11 stale artifacts, expected drift" section is replaced by the resolution, the pin table now reads the derived pair with the reason the earlier pair stopped being right, and the main-pins-396e4bfe measurement is anchored to its moment instead of stated in the present tense about a ref that has since moved. Adds the DOCS_REF defect with its root cause — five commits moved the docs gitlink and none carried the pin that names it — and the final-tree bed verdict, cited by the build log's ENV DOCS_REF line rather than by a PASS line that never echoes what it asserted. Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
R2 requires a named finding to live in the durable record, not only in a PR body. `sdk/kong_reflect_test.go`'s fixture comment claims it "mirrors the exact tag shapes `CheckCmd` uses"; this cutover makes that provenance clause stale, while every assertion in the test stays true and load-bearing (it is the RDD-spiked proof Kong ignores a `cmd:` value, and it derives `list-agent`, not `list-ai`). Non-blocking by R2's test, and routed by NAME to the checker-discipline batch — a stale provenance clause in a test comment is a CLAIM defect, that batch's subject; module hygiene's gate is standalone builds and would not fail if the clause were wrong. That batch is blocked on #278 landing (same skill source). CHANGELOG-only; no Go source changed, so the gates pasted for e2ebbf9 stand unchanged. `gofmt -l` empty and both modules' `go vet` clean re-confirmed below. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
pr-validator — APPROVED ✅Fresh independent evaluation at head Change class: candy CONFIG + plugin Go + cross-repo gitlinks — not documentation-only. The Checklist
Architecture gate — per-item trace
What I re-derivedPins — both directions. Non-shallow asserted first (
The ancestor test is blind to the direction that matters, so I ran the other one: I proved those gates probative rather than trusting a clean
Regeneration is additive. Per-page numstat against The 91-module sweep. The two beds. Both artifacts on disk match what was pasted.
Prior rounds' three blocking findings, each re-tested.
Go gates (per-module, isolated Source liveness. Every symbol the new documentation names exists at the pinned shas: Security screen. No file outside The forced-union claim holds. The offered proof is structural and it survives testing: Non-blocking findings — reported, not wavedA. The PR body's How R10-tested cites a superseded run. It names B. Pre-existing R4a residue on a page this PR touches. C. Cold-reader findings, all pre-existing on both sides. I ran a cold reader forbidden every source but the changed pages. Its substantive findings: "the gate" is defined narrowly in Which gate am I citing, and is what it reads the thing under review? Stated explicitly because it is the failure this program keeps producing: I did not rest the source-coverage claim on Comments considered: five, all from Cross-PR interactions considered: four other open PRs.
None makes merging this PR incorrect. DecisionAPPROVED. The four-cutover union is justified by a structural argument I tested rather than accepted. Both pins are correct in both directions, and the source-coverage direction — the one the ancestor test is blind to — is established by a gate I proved probative by perturbation. Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system) |
Generated by the pr-validator at merge time, so the stamp orders with real merge order rather than authoring time. Renames the placeholder entry and rewrites its H1 to match. Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
R2 requires a named finding in the durable record, not only a PR body or a message. `charly box feature run` is now reachable and no bed invokes it — the bed's `feature-run` step is `charly check feature run` (bed_run.go:239), the deploy-scope surface — so this verb's regression is still not caught automatically. That is precisely why the tier stays `analysed on a live system`. The follow-up closes two gaps, not one: a build-scope feature-run bed step gates this verb's dispatch AND gives #278's `kit.ResolveBuiltImageRef` guard its refusal-path coverage. That guard is reachable only through this verb, and this cutover could exercise only its election and pass-through paths, because every local fedora-nonfree build shares box CalVer 2026.227.0830 and there was nothing stale to refuse. Separable by R2's test: it needs a bed-plan edit whose own gate is a full bed run, and this cutover's R10 neither exercises it nor changes verdict without it. CHANGELOG-only; `go list` puts no .md in GoFiles, so the gates at 3b4f0f6 stand. gofmt/vet re-confirmed below. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
charly#278 landed sdk 2f6a3a7 and spec bbb3c6a on main, which is the prerequisite this branch's sdk pin needs: sdk c1c41b06 re-exports symbols that exist only in spec bbb3c6a, and its module graph needs #278's 90-module spec version bump. The sdk gitlink is a GENUINE two-sided conflict, not merge-tree's false one: base 7a81472 ours 15b89eac (this branch's pin — the pre-update-branch head of sdk#137, left unreachable from sdk main by that PR's squash) theirs 2f6a3a7 (from main via #278) merge-base(ours, theirs) == the base => neither side is a fast-forward of the other, so taking EITHER alone would drop the other's content. Resolved FORWARD to c1c41b06 — sdk main's tip, tag v0.2026227.1923, the squash that both contains theirs (2f6a3a7 is an ancestor) and supersedes ours (15b89eac is the side that squash replaced). spec resolved one-sided to main's bbb3c6a. Assisted-by: Claude Code Anthropic Claude Opus 5 (fully tested and validated) Claude-Session: https://claude.ai/code/session_01WQZY8RduA5PQrtgB6GrHzy
Summary of changes
charly check box <box>could run against an image that was not the one you had just built, report every step green, and give no sign. A gate that certifies the wrong artifact is the highest-severity defect this system has, because a false pass is indistinguishable from a real one — this one nearly produced a false R10 proof in a landed cutover, caught only by reading theImage:line.Reproduced 2026-08-15 (day 227): a
check:step was added tocandy/rpmfusion,charly box build fedora.fedora-nonfreeproduced:2026.227.0835/:0836, andcharly check box fedora-nonfreeprintedImage: ghcr.io/opencharly/fedora-nonfree:2026.216.1908with5 passed, 0 failed— the OLD baked plan, the new step absent entirely.Two independent causes compounded, both traced against the real image store with
podman image inspectrather than reasoned about:fedora.fedora-nonfree) while tagging the ref with the leaf name. The resolver's label family is keyed on exactly that equality and DISCARDS the name family whole when the label family is non-empty, so the fresh build was invisible to a resolve of its own image name and an older bare-labelled image was elected. Fixed inopencharly/sdk#136.ai.opencharly.versionlabel, with the per-build tag only a tiebreak, so an image built from a differently-versioned source tree — a sibling worktree, a pulled release — outranks a newer build regardless of when either was produced. Both shapes were live in the samepodman imagescapture. Fixed inopencharly/spec#29.Concrete edits in this repo:
candy/plugin-check/run_box.go—charly check boxresolves throughkit.ResolveBuiltImageRef.candy/plugin-check/feature_box_gather.go— same, for the build-scope ADE acceptance run (charly box feature run).candy/plugin-box/box.go— same, forcharly box labels, the charly-native R8 artifact check; reporting an older image's labels as the fresh build's is the identical false-proof class.Imagearghelp:on all three — the pre-existing<box>:<calver>pin was undocumented, which is part of why the defect had no obvious escape.candy/charly-check/charly.yml— a new skill subsection, "Which artifact a build-scope verb evaluates".CHANGELOG/<CalVer>.md; gitlink bumps forspec,sdk,plugins,docs.Every other consumer of a short name (deploy,
charly vm build, builder bootstrap, kube preresolve) keeps the lenient election — the guard is a property of the VERDICT verbs, not a change to resolution.Who this can break, stated plainly: an unpinned
charly check box <box>/box labels <box>/box feature run <box>on a host where a build of that box exists that the election passes over now ERRORS where it previously answered. That is the defect being surfaced, not a new one — the previous answer was the wrong artifact — and the message names both refs and the exact re-invocation. Beds pin, so they are unaffected.The project had already met cause 2 once and worked around it locally: the R10 bed sequence pins
<image>:<run-tag>for its check step, with a comment saying why (candy/plugin-check/bed_run.go'srunTaggedImageRef). The interactive untagged form had no such protection — R3, the fix belongs at the resolver, not per-caller.Change class
cross-repo —
charly-or-sdk Go(plus one candyskill:source edit).Landing order (producer → consumer):
spec→sdk→plugins→docs→charly(this PR, last).opencharly/spec#29—ResolveBuiltImageRef+ErrStaleLocalImage.opencharly/sdk#136— the leaf-nameai.opencharly.boxemitter + thekitre-exports this PR's call sites use.opencharly/plugins#173— the regenerated skill.opencharly/docs#55— the site mirror.opencharly/charly— this PR. It records all four as gitlinks, so it must merge last.How R10-tested — exact gate, commands, and pasted output
charly check run <bed>on the bed that exercises the changed path with a REAL election, plus per-modulego test/golangci-lint.check-agent-pod | pod | ok | 13 steps | 377s— run calverbox/arch/.check/check-agent-pod/2026.227.1427/, binarycharly version=2026.227.1420, on the final MERGED tree. The candidate set is pinned beside it, because a PASS line cannot show whether an election happened:charly box build check-agent-box --dev-local-pkg) rather than hoping one survived. These two carry DIFFERENT labels, so the election resolved on the PRIMARY key; the creation-time tiebreak is unit-gated and was additionally observed end-to-end on run2026.227.1403, whose two candidates shared one label. Stated separately because they exercise different keys.check-marketplaceis NOT cited: it passed by naming coincidence (marketplace-apphad no CalVer-tagged sibling, so the guard never engaged).task build:binary,charly version=2026.227.1420, and no.gofile newer thanbin/charlyacross EVERY changed path:spec/container,sdk/deploykit,sdk/kit,candy/plugin-check,candy/plugin-box, andcandy/plugin-clean— the commit that fixes the destructive surface, omitted from an earlier enumeration of this list.charly clean --dry-rundiffed across comparators).N/Afor shared charly state — read-only probes overpodman imagesplus a comparator; no lock, no shared mutation. Note the store was churning under concurrent beds throughout, which is how the non-hermetic test and the emptied candidate group both surfaced.Attribution tier
analysed on a live system.The new error branch executed live on real storage, the R10 bed passed including its fresh-rebuild leg, and the emitted label was read back off a built image. It is nevertheless NOT
fully tested and validated, because the table requires changed paths executed live and one of the three changed call sites (box feature run) did not execute — that verb is unreachable for a separate pre-existing reason, verified two ways above. That the guard there is one line and unit-covered makes the report honest; it does not make the higher tier supportable.Stated so the validator is not misled in the other direction: the lower tier's own wording ("the complete fresh-rebuild R10 did not pass") understates this case — the R10 bed DID pass. The downgrade rests purely on that one unexecuted call site.
Trailer:
Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system).Harness rulebook compliance — state HOW each is satisfied
/charly-check:check(the verb surface, the bed roster, and the R10-gate-by-change-class matrix that selectedcheck-marketplace),/charly-internals:go,/charly-internals:plugin,/charly-internals:git-workflow,/charly-internals:strict-policy,/charly-build:build.ai.opencharly.boxvalues; the label-vs-tag CalVer split across:2026.227.0945/:2026.227.0942). Every anomaly that surfaced mid-work was RCA'd before classification, none dismissed as flake/transient/environmental: the missing description label; the unreachablebox feature run; thespec/proctemp-sweep failures (hardcoded/tmp/vs an exportedTMPDIR, confirmed byenv -u TMPDIRpassing); a strayprefix-abtag in build output (concurrent sibling-worktree activity in the shared store — no source for it exists in this tree, reported as an observation rather than a claim); my own labels test passing non-hermetically against real storage; and the inherited marketplace drift that regeneration would have reverted. Enumerated rather than counted on purpose — see the R2 note on why the numerals are gone. Bed output has zero warnings;grep -rin warnover the run's logs is empty.candy/plugin-clean's retention sort sharing this cutover's ordering blind spot — was found late and FOLDED INTO this cutover rather than named as separable, because it is the only surface here that DESTROYS an artifact rather than producing a false answer, and it consumes the same struct on the same root cause. The other three are RCA'd to file:line, named inCHANGELOG/<CalVer>.md's "Separable findings" section, and reported to the orchestrator, which has assigned owners: (1) an imported box bakes NOai.opencharly.description—deploykit.CollectDescriptionsreachescfg.BoxConfig(boxName)/cfg.WalkBaseChain(boxName), flat map lookups with no namespace descent (spec/spec/config.go:99-102), so forfedora.fedora-nonfreeboth return nothing and the label is omitted; proven by building the SAME box two ways (from this repo: no label,check boxsays "No plan steps defined"; frombox/fedora: plan baked and runs). After the box inversion that is every box this repo builds, so ADE is silently void for the whole catalog — opened as its OWN cutover with an owner. (2)charly box feature rununreachable. (3)spec/proc.SweepStaleTempsglobs a hardcoded/tmp/while its creators honour$TMPDIR. Findings 2 and 3 joined the check-verb-correctness batch. Finding 1 was deliberately not widened into — its fix is making the deploykit collector family namespace-aware, an architectural change outside this cutover's claim, and doing it here would have been the forbidden scope-carve in reverse.ResolveLocalImageRefandResolveBuiltImageRefare both thin wrappers over oneResolveLocalImagebody. It also retires a per-caller workaround for the same defect (bed_run.go's pinnedrunTaggedImageRef, whose comment documents cause 2) — the same problem on a second surface, which is exactly the R3 trigger. The<box>:<calver>help text was updated on all three verbs together, not just the one that prompted the report.charlyverbs (box build,box generate,box inspect,box list tags,box labels,check box,check run); the only rawpodmanuse was read-onlyimage inspectduring RCA, which observes rather than operates.ResolveLocalImageRefintentionally survives as the lenient form, and its doc comment now states the split rather than leaving it implicit.git grep 'ResolveLocalImageRef'in this repo returns only the consumption paths that are meant to keep it (plugin-build/bootstrap.go,plugin-vm/vm_build_resolve.go,plugin-kube/preresolve.go) plus comments. No transitional, dual-mode, or legacy path exists in the final code: each call site is on exactly one resolver.git status+ stash check before every destructive action. The one stash (an RCA baseline check) waspush+popwith the tree verified on both sides; the temporary fix-reverts for the failing-test proof were restored withgit checkout --and all five repos re-verified0 dirty. Amends were taken before first push only (the tier correction), then the superproject gitlinks were re-pointed at the amended submodule SHAs —git ls-tree HEADrecords2655e05/39fc099, not the pre-amend pair. No force-push anywhere; every branch is a first push.charly check run check-marketplaceend to end (build → check box → deploy → check live → fresh update → check-live-rebuild → teardown), not justgo test. Output pasted.LABEL ai.opencharly.boxline was asserted AND read back off the built image withcharly box labels(both pasted). No empty or missing label.task build:binary,charly version=2026.227.1420, andfind <changed pkgs> -name '*.go' -newer bin/charlyis empty across EVERY changed path —spec/container,sdk/deploykit,sdk/kit,candy/plugin-check,candy/plugin-box, andcandy/plugin-clean, which an earlier enumeration of this list omitted even though it carries the fix for the destructive surface — the invoked binary is this source. Every command above was run through this worktree's./bin/charly, never a host-installed charly. No new runtime OS dependency, sopkg/arch/PKGBUILDis untouched.check-marketplaceisdisposable: true(pod:,lifecycle: dev); no non-disposable target was touched. Fresh rebuild via the bed's ownupdateleg, zero warnings. Coverage that fails without the change is pasted for BOTH repos and discriminates — exactly one test moves in each.candy/charly-check) keeps itsdescription:andplan:;charly box validateexits 0. SDD —N/A, no.cueedit; the new sentinel is a plain error var beside the existingErrImageNotLocal, and no generated type changed shape.box labelsas a third verdict verb) widened the fix to the surface it logically covers rather than narrowing it.charly/core is untouched by this diff — every changed Go file is a plugin candy (candy/plugin-check,candy/plugin-box) importing only the SDK, which is exactly where a capability's behaviour belongs. Nospec.<Kind>field-read, kind-word switch, or per-kind map was introduced anywhere; import purity is unaffected (charly/import_purity_test.gogreen as part of thecharlymodule's suite above).check-marketplace, declareddisposable: true. The live refusal experiment created image TAGS only, viacharly box build, and destroyed nothing.gofmt -l .empty;golangci-lint run ./...=0 issuesin each touched module (run per-module, never from the workspace root);go vetclean;go test ./...green per module. One honest note:spec/procfails two tests in a session whoseTMPDIRis exported and passes underenv -u TMPDIR— that is separable finding 3, unrelated to this diff.CHANGELOG/2026.227.1157.mdstaged — placeholder CalVer, the pr-validator finalizes it at merge. Companion entries in all four submodules.Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)