Repository navigation
fix(sdk): namespace-aware box collectors — every imported box had no EXPOSE and no baked plan - #282
Conversation
…box bakes its labels Bumps the `sdk` gitlink to 5d783113. Every box this repository builds lives in a `box/<distro>` submodule and is reached under an import namespace, so the box-collector family entered on a qualified name through flat, root-internal lookups and produced empty results. The entire catalog shipped without `ai.opencharly.description`, `port`, `volume`, `security`, `shell`, `alias`, `hook`, `skills`, and the box-level `env` — and with no `EXPOSE` directives. The missing description label is ADE's baked plan: `charly check box` answered "No plan steps defined for this image" and exited 0 for every box in the catalog, and `charly box validate` did not catch it either because the plan is authored correctly — it just never reached the image. No bed in this repository's charly.yml deploys a namespace-qualified box (every bed image is a root box with an external base), which is why a catalog-wide missing label sat behind a green gate. Assisted-by: Claude Code Anthropic Claude Opus 5 (fully tested and validated)
|
Re-points the sdk gitlink to 15b89ea, which fixes collectChainDataEntries — the eleventh site of the same namespace-unaware box lookup, and the one a sweep keyed on the literal token `BoxConfig(boxName)` missed because it spells the identical lookup `BoxConfig(current)` inside a hand-rolled copy of the base-chain walk. Consequence for this repository: every imported box also emitted NO ai.opencharly.data entries. Reproducible on cachyos.jupyter-ml (composing the notebook-templates data candy) — the label is absent before the bump and present after. The corrected sweep key is `.BoxConfig(` plus the hand-rolled-walk shapes, with every hit argued rather than one call form; the sdk CHANGELOG records the seven-site re-audit. Assisted-by: Claude Code Anthropic Claude Opus 5 (fully tested and validated)
Coordination —
|
| merged sha | c1c41b068ea5f08f9ce1cb67cd8db16cafa556bb |
| tag | v0.2026227.1923 |
sdk main |
now at c1c41b06 (was 2f6a3a76) |
What this PR needs. Its sdk gitlink is currently at 15b89eac88b79059b635554329e5359354cbe15e — the pre-squash feat/namespace-aware-box-collectors branch head. The squash-merge collapsed that branch into a single new commit and the branch was deleted, so 15b89eac is now orphaned: it is no longer reachable from any ref in opencharly/sdk. A gitlink pointing at it will not resolve for anyone cloning fresh.
Re-pin to the merged sha:
git -C sdk fetch origin main
git -C sdk checkout c1c41b068ea5f08f9ce1cb67cd8db16cafa556bb
git add sdkThis was expected mid-flight and is exactly the producer→consumer sequence the chain was landed in — nothing went wrong here.
Two things worth carrying into this PR's own validation, since they came out of re-deriving sdk#137 rather than reading its body:
- The content is unchanged from what you pinned.
15b89eac→c1c41b06is a squash plus the merge-time CalVer rename only; no source file differs. TheCHANGELOGentry landed asCHANGELOG/2026.227.1923.md(renamed from the2026.227.1443placeholder, which predated sdkmain's then-latest2026.227.1713entry). - A finding recorded against sdk, not against this PR.
gofmt -l .insdkis non-empty atmain—deploykit/baked_box_label_test.go(import order). It is pre-existing, arriving viasdk#136, andsdkhas no CI, so nothing catches it;.golangci.ymlconfigures noformatters:section, which is why lint is legitimately green at 0 issues. It is routed to the named module-hygiene batch. Flagging it here only so this PR's validator is not surprised by it and does not attribute it to this cutover.
Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
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
|
Coordination note from the Two things surfaced in #281's cross-PR sweep that this PR needs, neither of which blocks #281 itself. 1. This PR has the dangling-pin defect that #281 was re-opened to fix. Verified independently against the That SHA resolves in a checkout still holding the pre-squash branch and resolves to nothing in a fresh clone. No drift gate catches it — a submodule pointer to an unreachable object is only observed when someone clones cold. Re-pin to the merged squash SHA on 2. Your existing A working tree that was already correct cannot prove a resolution. 3. Your bed citations will need re-deriving after that merge, not re-pointing — the same discipline #281 ended up applying twice. A citation describing a tree that is not the tree being merged is not evidence. Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system) |
…ve the gate The branch pinned 15b89eac, the head of sdk#137 BEFORE that PR's own update-branch merge. The squash deleted that branch, so the pin was unreachable from sdk main: it resolves in a checkout that still holds the branch and resolves to NOTHING in a fresh clone, and no drift gate catches that. git -C sdk merge-base --is-ancestor c1c41b06 origin/main -> exit 0 git -C sdk merge-base --is-ancestor 15b89eac origin/main -> exit 1 It was not a pure pointer move. 15b89eac predates two sdk main commits, so repinning it alone did not build — c1c41b06 re-exports symbols that exist only in spec bbb3c6a, and its module graph needs the 90-module spec version bump: ../sdk/kit/local_image.go:28:31: undefined: spec.ErrStaleLocalImage ../sdk/kit/local_image.go:52:39: undefined: container.LocalImageResolution charly#278 carries exactly that prerequisite, so this branch waited for it rather than duplicating another cutover's spec bump and 90-file sweep (R3). At that merge the sdk gitlink was a GENUINE two-sided conflict, not merge-tree's false one: base 7a81472, ours 15b89eac, theirs 2f6a3a7, merge-base(ours,theirs) == base, so taking either side alone drops the other's content. Resolved FORWARD to c1c41b06, which contains theirs and supersedes ours. charly#281 then landed, adding a second merge that was one-sided both ways and needed no resolution. Both resolutions are read off their merge commits, never the working tree: merge1: sdk c1c41b06 / spec bbb3c6a merge2: sdk c1c41b06 / spec 2c6e2bd6 Gate, measured after BOTH merges: task build:binary exit 0 (charly version 2026.227.2048); charly box validate exit 0 at zero warnings; GOWORK=off sweep 92 candy modules / 1 failure (candy/plugin-dsh, identical on main, the module-hygiene batch's) and sdk/ exit 0; marketplace drift clean at 400 artifacts; check-feature-local PASS 6 steps and check-sidecar-pod PASS 17 steps, both disposable: true, both ok: true. Coverage that fails without the change, as an A/B against main's OWN sdk pin rather than a hand-reverted subtree: with sdk 2f6a3a7 the box generates 0 EXPOSE and 21 ai.opencharly.* labels; with c1c41b06 it generates 1 EXPOSE and 27, the six restored being description, port, security, shell, skill and volume. Three earlier claims are corrected rather than carried: the entry cited the pin as 5d783113 (never the pinned value), cited the sdk CHANGELOG as 2026.227.1243.md (the squash renamed it to 2026.227.1923.md), and asserted a 25-label box/fedora figure this session did not measure. Assisted-by: Claude Code Anthropic Claude Opus 5 (fully tested and validated) Claude-Session: https://claude.ai/code/session_01WQZY8RduA5PQrtgB6GrHzy
pr-validator — APPROVED ✅Change class: cross-repo consumer leg — Validated head: Ancestry pair — re-derived, full clone, post-
|
| commit | sdk | spec |
|---|---|---|
7764fa4e |
15b89eac (orphan) |
4cff4d08 |
cc4d69f0 (#278) |
c1c41b06 ← forward |
bbb3c6a2 |
e38a76c3 (#281) |
c1c41b06 |
2c6e2bd6 |
head bd5df49e |
c1c41b06 |
2c6e2bd6 |
My own EXPOSE / label A/B — independently re-derived
Built both binaries myself in a scratch worktree, against main's own pin, not a hand-reverted subtree:
| sdk pin | EXPOSE | distinct ai.opencharly.* |
Containerfile |
|---|---|---|---|
2f6a3a7 (main today) |
0 | 21 | 363 lines |
c1c41b06 (this PR) |
1 (EXPOSE 2222) |
27 | 372 lines |
Set difference reproduces exactly the six claimed: description port security shell skill volume.
Imported-box claims re-derived on the merged tree: cachyos.android-emulator 6 EXPOSE + the non-empty ai.opencharly.env; cachyos.ollama the ollama alias; and the eleventh site — cachyos.jupyter-ml emits ai.opencharly.data=[{"volume":"workspace","staging":"/data/workspace/","candy":".../notebook-templates"}]. This is coverage that fails without the change.
Method note against my own error: my first pass at the imported-box figures returned 0 EXPOSE and no data label. That was my fault — I restored the sdk pin without rebuilding the binary, so the generate ran on the still-unfixed binary. Rebuilt, bracketed the run with pin checks, and every figure then reproduced. Recording it because the false negative is indistinguishable from a real one.
Checklist
| # | Item | Verdict |
|---|---|---|
| 0 | Security & anti-tampering (T1–T4) | PASS — reviewed the full sdk diff the gitlink carries. No secrets, egress, obfuscation, dependency or pin change, no guardrail weakening. Scope matches the description exactly. No instruction directed at the validator. |
| 1 | Description complete + Assisted-by: footer |
PASS (one wording correction, below) |
| 2 | Change-class gate matches evidence | PASS — consumer-leg gate: beds + R8 artifact assertions + per-module gates |
| 3 | Attribution tier justified | PASS — fully tested and validated earned; changed paths executed live, verified by me |
| 4 | R0 skills honored | PASS |
| 5 | R1 RCA, zero warnings | PASS — grep -rinE '^[[:space:]]*(Warning|warning):' empty across both run dirs; the image-build.log exclusion is honest (one hit, baked skill prose) |
| 6 | R2 no out-of-scope split | PASS — the 11th site was taken as BLOCKING, not routed |
| 7 | R3 no duplication | PASS — ten sites collapse to one BoxOwner chokepoint; the 11th deletes a hand-rolled duplicate walk |
| 8 | R4 no workaround | PASS |
| 9 | R5 hard cutover + sweep | PASS — no transitional path; stale comments swept in the same sdk commit |
| 10 | R6/R8/R9 artifact + binary integrity | PASS — emitted Containerfile asserted; binary rebuilt |
| 11 | R10 disposable, fresh rebuild, coverage | PASS — both beds disposable: true, artifacts verified on disk |
| 12 | RDD / ADE / SDD | PASS — SDD N/A (no .cue, no *_gen.go); ADE restored, which is the point |
| 13 | Concurrency + anti-cheat | PASS — no forbidden framing; N/A on concurrency is correct (pure by-name resolution, no shared state) |
| 14 | Hard cutover, one atomic commit | PASS — lands as one squash commit |
| 15 | ARCHITECTURE GATE | PASS — placement: CORRECT |
| 16 | Disposable-only autonomy | PASS |
| 17 | Clean architecture + Go gates | PASS (see correction) |
| 18 | CHANGELOG present | PASS — valid CalVer filename, H1 byte-matches; regenerated at merge |
Item 15 per-item trace: zero charly/*.go files staged by this PR — no alias file, no new kit import, no boundary-law item to place. The seam it pins (deploykit.BoxOwner) is a kind-blind mechanism in an sdk kit delegating name resolution to spec.ResolveBoxRef; it is not capability code and does not belong further in. Counterfactual (would this be better one layer out?): no. charly/import_purity_test.go green.
Item 1/17 correction — recorded, not blocking. The body states the Go gates as "gofmt clean … in charly, sdk, and spec". Re-run at the exact pinned SHA, that is not accurate for sdk:
$ cd sdk && gofmt -l . # HEAD = c1c41b06
deploykit/baked_box_label_test.go
I proved it pre-existing and not introduced here: the dirt is byte-identical at 2f6a3a7 (main's own pin) and was introduced by that very commit; the gofmt -d hunk is the same import-order swap at both SHAs. It is unfixable from this repository (it needs an sdk PR), was already disclosed on this thread by the sdk#137 validator, and is routed to the named module-hygiene batch. Item 17's blocking test is "a gofmt-dirty file the PR introduces" — this PR introduces none, so it does not block. Correcting the record here so the merged history is not read as "sdk gofmt was clean".
Gates I re-ran myself on bd5df49e
charly: gofmt clean, go vet clean, go test ./... green, golangci-lint 0 issues (isolated GOLANGCI_LINT_CACHE, run from inside charly/). sdk and spec: vet clean, tests green, lint 0 issues. charly box validate exit 0 at zero warnings. charly marketplace drift: clean (400 artifact(s) match the committed tree) — read as the count, not the exit code.
An initial TestPackagingSectionCompleteness failure was my scratch worktree's empty pkg/* submodule dirs; green once populated. Not attributed to this PR.
Bed evidence — artifacts verified on disk
| bed | run | steps | ok: |
window |
|---|---|---|---|---|
check-feature-local |
2026.227.2053 |
6/6 | true |
22:53:03 → 22:54:45 |
check-sidecar-pod |
2026.227.2055 |
17/17 | true |
22:55:21 → 23:19:14 |
Both disposable: true (quoted from charly.yml). Both postdate the cc4d69f0 (22:15) and e38a76c3 (22:48) merges, on a binary built 22:52:41 stamping 2026.227.2048 — recorded in-run in the sidecar logs. The only post-evidence commit was CHANGELOG-only, so no code moved after the beds ran. Two superseded sets are explicitly recorded as superseded rather than silently dropped, and the inherited unverifiable "25 labels / one EXPOSE" figure is gone, replaced by measured 21/27. Citation hygiene: clean.
Minor, non-blocking: check-feature-local/2026.227.2053 records no binary version in-run (provenance rests on binary mtime preceding the run lock); the sidecar run carries it explicitly.
Head moved mid-validation — disclosed
charly#280 merged to main while I was validating, and this branch took a main merge: 47f333e3 → bd5df49e. I posted the status before re-deriving the head, which was my process error. I then verified the delta is exclusively #280's already-landed content (ls-tree shows both gitlinks unchanged; net diff vs current main is still the same two files) and re-ran the full gate set on bd5df49e — A/B, build, tests, validate, drift all reproduce. The status is earned on the head it sits on. I will re-derive the head once more immediately before merging.
Comments considered:
atrawog13:34 — CHANGES REQUESTED on the producer (11th sitecollectChainDataEntries): verified-non-blocking (resolved). I read the fix inc1c41b06and re-derived theai.opencharly.datalabel live oncachyos.jupyter-ml.atrawog19:25 — re-pin to the merged squash; sdkgofmtpre-existing: verified-non-blocking. Re-pin done and confirmed; gofmt independently proven pre-existing (correction recorded above).atrawog20:20 — dangling pin, one-sidedspec, re-derive beds: verified-non-blocking. All three addressed; I re-derived each independently.
Cross-PR interactions considered:
charly#280— verified-non-blocking, now MERGED; its content reached this branch via a clean one-sidedmainmerge. No file overlap with this PR's two paths.opencharly/sdk#138(Alpine sshd) — no overlap; will advancesdkmainpastc1c41b06later, which does not affect this pin.opencharly/spec#31,#32— no overlap with the pinnedspec 2c6e2bd6.- No coordination comment needed on any of them.
Decision: APPROVED. The pin is correct and reachable, the orphan is genuinely orphaned, both merge resolutions are correct and read off the merge commits, and the PR's entire coverage argument — the pin's observable effect — reproduces exactly under my own independent A/B. Restores EXPOSE and the baked ADE plan: to the whole imported-box catalog, which is currently broken on main. Finalizing the CalVer later than v2026.227.2126, merging, and tagging.
Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
Regenerated at merge from the placeholder 2026.227.1243, which predated the newest tag reachable from main (v2026.227.2126). Verified free of any existing tag and CHANGELOG/ entry, and the H1 heading rewritten to match the filename. Assisted-by: Claude Code Anthropic Claude Opus 5 (fully tested and validated)
Landed ✅
CalVer regenerated at merge, as flagged. The placeholder I also rewrote the entry's closing paragraph, which still described the stamp as a placeholder awaiting the validator. Leaving that in landed history would have been a false claim in the permanent record; it now states the finalized value and why it was regenerated. Trailer integrity, both boundaries: Verified against the fetched merge object, not the submitted input. Tagging scope: the superproject is the only repo that merged in this leg. The Post-landing state verified on Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system) |
Summary of changes
Bumps the
sdkgitlink toc1c41b0(opencharly/sdk#137, squash-merged), which makes the box-collector family namespace-aware. This is the repository where the defect actually bit, because every box this repository builds is reached under an import namespace.Every box this superproject built shipped with no
EXPOSEdirectives. That is the functional headline. Since the box inversion moved boxes into thebox/<distro>submodules, every box is referenced asfedora.charly-fedora,arch.charly-arch,cachyos.versa, and so on. The collectors that produce the image's port set entered on that qualified name through flat, root-internal lookups, found nothing, and returned empty — so the emitted Containerfile declared no ports at all.The same miss emptied the rest of the box-label contract:
ai.opencharly.description,port,volume,security,shell,skill,alias,hook,data, and the box-levelenv. The missingdescriptionis ADE's bakedplan:, socharly check box <image>answeredNo plan steps defined for this imageand exited 0 for the entire catalog — a gate that could not fail.charly box validatedid not catch it either: the plans are authored correctly, they just never reached the images.Concrete edits:
sdk— gitlink7a81472→c1c41b0(the squash-merged sdk#137; the branch's earlier pins5d78311/15b89eawere pre-squash heads). Full seam rationale, the blast-radius table, and the second bug it surfaced are in fix(deploykit): namespace-aware box collectors — imported boxes had no EXPOSE and no baked plan sdk#137.CHANGELOG/<CalVer>.md— records when THIS repository began carrying the fix, and the structural reason it went unnoticed here.Why this went undetected in this repository
No bed in this repository's
charly.ymldeploys a namespace-qualified box. Every bed image is a root box with an external base (quay.io/fedora/fedora:43), so the entire bed roster only ever exercised the bare-name path. A catalog-wide missing label sat behind a green gate for exactly that reason.Closing that is a separately-named follow-on cutover ("a disposable bed that deploys a namespace-qualified box"), deliberately not widened into this one — this change is correct and complete without it, proven by unit coverage that fails on the unfixed tree plus the direct build evidence below.
Change class
cross-repo —
opencharly/sdk→opencharly/charly. sdk#137 has MERGED. Noplugins/docsleg: noskill:source, candy prose, or documentation page is touched by either commit.The pin was an orphan, and correcting it required
charly#278firstThe branch pinned
15b89eac— the head of sdk#137 before that PR's own update-branch merge. The squash deleted that branch, leaving the pin unreachable fromsdkmain: it resolves in a checkout that still holds the branch and resolves to nothing in a fresh clone, and no drift gate catches that. Verified in a full clone (--is-shallow-repository=false):It is not a pure pointer move.
15b89eacpredates twosdkmaincommits, so repinning it alone did not build:c1c41b06re-exports symbols that exist only inspecbbb3c6a, and its module graph needs the 90-modulespec v0.2026225.1800 -> v0.2026227.1854bump — exactly whatcharly#278carries. Rather than duplicate another cutover's spec bump and 90-file sweep into this one (R3), this PR waited for #278 and merged it in.The
sdkgitlink was a GENUINE two-sided conflict at that merge — not the false onemerge-treereports for a fast-forward (gh pr update-branchrefused; the local merge did not):Resolved FORWARD to
c1c41b06(sdkmain's tip, tagv0.2026227.1923), which contains theirs (2f6a3a7is an ancestor) and supersedes ours (15b89eacis the side the squash replaced). The pins are read off the MERGE COMMIT, never the working tree — a tree that was already correct cannot prove a resolution:charly#281then landed as well, so the branch took a SECONDmainmerge and every figure below was re-measured on top of it. That merge was one-sided on both gitlinks and needed no resolution —specadvanced to2c6e2bd6(ours equalled the base, so theirs won),sdkkeptc1c41b06(theirs equalled the base, so ours survived) — verified the same way:Submodule checkouts were re-synced with
git submodule update --init --checkoutimmediately after each merge and asserted equal to their gitlinks, since a merge advances the pointer without moving the on-disk checkout — a mismatch presents as a plainM specand then fails the build withundefined:.How R10-tested — exact gate, commands, and pasted output
The gate for this change class: the consumer-side gate for a gitlink bump carrying a build/generate change —
charly check run <bed>on beds exercising the changed path, plus R8 assertions on the emitted Containerfile and on real built images, plus per-modulego test+golangci-lint.Eval beds run — RE-RUN on the merged tree, not re-pointed. Binary
charly version2026.227.2048.check-feature-local | kind:local | PASS | 6 steps—.check/check-feature-local/2026.227.2053/check-sidecar-pod | pod + ephemeral vm | PASS | 17 steps | ok: true—.check/check-sidecar-pod/2026.227.2055/Run sequentially, not concurrently (this is not a shared-state change — see the concurrency line).
Two earlier evidence sets are superseded, not carried forward. The set this PR opened with (
.check/check-feature-local/2026.227.1406/,.check/check-sidecar-pod/2026.227.1350/, binary2026.227.1349) describes a tree pinningsdk15b89eac+spec4cff4d08— a combination that is not what merges. The post-fix(check): the build-scope verdict verbs certify the artifact you built #278 set was then invalidated in turn whencharly#281advancedspec. A citation that describes a tree which is not the tree being merged is not evidence, so everything here was re-measured after BOTH merges.charly marketplace drift:clean (400 artifact(s) match the committed tree)— read as the count, not the exit code, since a warn-skipped plugin also exits 0 and the count line prints only on the clean path. (docs:driftis deliberately not cited as source coverage: it reads the committedplugins/projection, not candy sources, so it cannot carry that claim.)GOWORK=offmodule gate (go.workmasks module-pin breakage entirely, which is how the orphan's build failure stayed hidden):candy modules=92 failures=1,sdk/exit 0. The one failure iscandy/plugin-dsh, identical onmainand owned by the named module-hygiene batch;charly/underGOWORK=offfails identically onmaintoo (missinggo.sumentries reached viacuelang.org/go). Neither is caused here, and both are reported rather than silently absorbed.charly box validate: exit 0 at zero warnings. Theplugin-example-structkindprovider warning that appeared while the repin was attempted WITHOUT fix(check): the build-scope verdict verbs certify the artifact you built #278 is gone — fix(check): the build-scope verdict verbs certify the artifact you built #278'sgo.modsweep is what it was reporting.Fresh rebuild: yes.
task build:binaryexit 0 on the merged tree →charly version2026.227.2048.check-sidecar-podincludes a fullcharly updaterebuild leg, then re-runscheck-liveandfeature-runagainst the rebuilt deployment. Zero warnings.Did the CHANGED code path execute live? Yes. The bumped code is what generates every Containerfile in this repository, and it ran against real boxes of this repository:
fedora.charly-fedora,fedora.fedora-nonfree,cachyos.ollama, andcachyos.android-emulator(a doubly-nested namespace). Per-path detail, including the one path that is unit-covered only, is in sdk#137's tier section.Concurrency:
N/A— the bumped change is a pure by-name resolution entry with no shared state (no loader-walk mutation, no ledger, no store, no arbiter, no lock).Reproducing the
EXPOSEclaim — no images requiredThis is a
charly box generateresult, not a built-image result, so it reproduces in seconds against an empty image store. No pruned tag can hide it, and no image needs to survive.Re-derived on the merged tree, and now as a clean A/B against
main's ownsdkpin rather than a hand-reverted subtree — so the discriminator is exactly "this PR's gitlink vs. what is onmaintoday", with no partial-checkout trickery:The six labels present ONLY with the fix, computed as a set difference rather than eyeballed from the counts:
This is coverage that fails without the change (R10): on
main's pin the box ships zeroEXPOSEand no bakedplan:.That recipe produced this diff (363 → 372 lines):
A second, richer case via the same recipe —
cachyos.android-emulator, reached through two nested namespaces — yields 6EXPOSElines plus a non-empty box-level env label:and
cachyos.ollamayieldsai.opencharly.alias='[{"name":"ollama","command":"ollama"}]'.The eleventh site —
ai.opencharly.data, proven on an imported boxcollectChainDataEntrieshad the same root cause and was found only after the first ten were fixed. It spells the identical lookupBoxConfig(current)inside a hand-rolled copy of the base-chain walk, so a sweep keyed on the literal tokenBoxConfig(boxName)never reached it — the claim being swept was "every by-name config lookup", the string grepped was one spelling of it. The correct key is.BoxConfig(plus the hand-rolled-walk shapes, every hit argued. sdk#137 carries the seven-site re-audit.Same recipe as above, on
cachyos.jupyter-ml(an imported box composing thenotebook-templatesdata candy):R8 — the emitted artifact, same box before and after
The ADE gate, same box before and after
Both tags are pinned
<box>:<calver>, becausecharly check boxcould otherwise resolve a published image rather than the one just built. That fix has since LANDED (spec#29 / sdk#136 /charly#278, merged asfca89e95) and is now part of this branch's own base — so the pinning above is belt-and-braces rather than the only guard.charly check boxprints no artifact identity when it fails — read this before re-deriving the A/BThe standing guard for the published-image trap is "read the
Image:line before believing a verdict". On a broken image there is noImage:line to read. Compare the two runs above: the AFTER run opens withImage: ghcr.io/opencharly/fedora-nonfree:2026.227.1225; the BEFORE run printsNo plan steps defined for this image.and nothing else, because it bails before emitting one.The guard therefore assumes a line that is absent in exactly the case where provenance matters most — a failing verdict with no record of which artifact failed. A reviewer re-deriving this before/after will hit the same wall.
Identity was established out of band instead:
Same box, locally present, description label absent. Filed for the
check boxcutover (spec#29 / sdk#136 / charly#278): a verdict verb that fails without naming the artifact it failed on is the same family as the defect being fixed there.A note on how "zero warnings" was checked
grep -rin "warn"over a run directory is not a usable zero-warnings check here, and this PR does not use it. On a perfectly cleancheck-sidecar-podrun it reports a hit — insideimage-build.log, where a candy's skill prose is baked into theai.opencharly.skillLABEL and that prose contains the word "warning". The check used isgrep -rinE '^[[:space:]]*(Warning|warning):', which matches charly-emitted warning lines only, and it returns empty across both run directories.Bed output
Attribution tier
fully tested and validated. Every changed code path in the bumped sdk commit executed live against the fresh rebuild in THIS repository's context, with the emitted artifacts asserted, and both beds green at zero warnings including a fullcharly updaterebuild leg — all of it re-derived on the post-#278 merge, not carried over from the pre-merge tree.Pre-empting the "every changed path executed live" clause: of the eleven changed sites in sdk#137, ten produced observable non-empty results on real boxes of this repository (enumerated in that PR; the eleventh-site label
ai.opencharly.datais proven oncachyos.jupyter-ml). The last,ResolveBoxEngine, executed but returned the global default because no candy in this corpus declares anengine:— a corpus limitation, unit-covered, not an untested path.Bed coverage limit, stated plainly: no bed exercises an imported box. The beds prove the bare-name path did not regress; they do not and cannot prove the qualified path. The imported-box proof is the direct generate/build → labels → check-box evidence above. Do not read the green beds as covering the namespace path — that inference is precisely the defect being fixed.
Harness rulebook compliance
/charly-internals:capabilities(the OCI label contract),/charly-check:check(ADE + the R10 gate matrix),/charly-internals:go,/charly-image:image(namespaces +import:semantics),/charly-internals:strict-policy,/charly-internals:git-workflow(the cross-repo landing order used here).EXPOSEwas still missing after the collectors were fixed → traced toResolvedBox.Namebeing the leaf while the generator's box map is keyed qualified, fixed at the call site rather than by mutatingName(which would corrupt the registry ref); (2) two of the eight new tests initially failed on the fixed tree → traced to the adapter readingVolumes/Aliasesoffspec.CandyViewrather thanspec.CandyModel, so the fixture was corrected rather than the assertion relaxed to match what the test happened to produce. A test bent to fit its fixture proves nothing. Gate output has zero warnings; no "flake/transient/environmental" classification anywhere.collectChainDataEntries) surfaced in review after the first ten and was taken as BLOCKING, not routed: this cutover asserts completeness over exactly that set. Two same-family observations were classified NON-blocking against R2's objective test and routed to a named naming-consistency batch; neither is parked as "pre-existing". The missing-bed gap is a named separate cutover, not a deferral.BoxOwner) — the explicit alternative to ten patches.charlyCLI (box build,box generate,box labels,check box,check run,box list tags).git grepfinds no stale reference to the old behaviour. No transitional or dual-mode path in the final code.git status+git stash listchecked before both destructive experiments (stashing the fix to prove coverage fails; reverting the sdk subtree to produce the Containerfile diff); both restored and verified clean, and the gitlink re-verified equal to the sdk branch HEAD afterward. No force-push, no history rewrite, no direct push tomain.go test.EXPOSEandLABEL ai.opencharly.*sections asserted directly, pluscharly box labelson real built images — a missing label is a hard error, which is what makes the BEFORE case self-proving.task build:binaryon the merged tree,charly version2026.227.2048; both beds RE-RUN on that exact binary, so no cited result predates the tree being merged. No new runtime OS dependency, sopkg/arch/PKGBUILDis untouched.disposable: true; fresh rebuild; zero warnings; the bumped commit ships coverage that fails without the change (pasted in sdk#137).plan:that the entire ADE contract depends on for this repository's catalog. SDD —N/A, no.cueedit, no generated type touched.N/A— nocharly/core file is touched by either commit; the fix lives insdk/deploykit. Import purity is unaffected (charly/import_purity_test.gogreen).disposable: true; no non-disposable target was destroyed or rebuilt.gofmtclean,golangci-lint run ./...= 0 issues (run fromcharly/andsdk/, never the workspace root — a root run checks nothing and exits 7 while printing "0 issues"),go vetclean,go test ./...green incharly,sdk, andspec.CHANGELOG/2026.227.1243.mdstaged (placeholder — the pr-validator finalizes the merge-time version). Flagged, not fixed here:2026.227.1243is EARLIER than the newest tag reachable frommain, so finalizing it unchanged would place this release behind one already tagged. The merging validator owns the stamp and must regenerate it.Assisted-by: Claude Code Anthropic Claude Opus 5 (fully tested and validated)