Skip to content

fix(sdk): namespace-aware box collectors — every imported box had no EXPOSE and no baked plan - #282

Merged
atrawog merged 8 commits into
mainfrom
feat/namespace-aware-descriptions
Aug 15, 2026
Merged

atrawog merged 8 commits into
mainfrom
feat/namespace-aware-descriptions

Conversation

@atrawog

@atrawog atrawog commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary of changes

Bumps the sdk gitlink to c1c41b0 (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 EXPOSE directives. That is the functional headline. Since the box inversion moved boxes into the box/<distro> submodules, every box is referenced as fedora.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-level env. The missing description is ADE's baked plan:, so charly check box <image> answered No plan steps defined for this image and exited 0 for the entire catalog — a gate that could not fail. charly box validate did not catch it either: the plans are authored correctly, they just never reached the images.

Concrete edits:

Why this went undetected in this repository

No bed in this repository's charly.yml deploys 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. No plugins/docs leg: no skill: source, candy prose, or documentation page is touched by either commit.

The pin was an orphan, and correcting it required charly#278 first

The 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 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. Verified in a full clone (--is-shallow-repository = false):

git -C sdk merge-base --is-ancestor c1c41b06 origin/main   -> exit 0   (reachable)
git -C sdk merge-base --is-ancestor 15b89eac origin/main   -> exit 1   (ORPHAN)

It is not a pure pointer move. 15b89eac predates two sdk main commits, so repinning it alone did not build:

../sdk/kit/local_image.go:28:31: undefined: spec.ErrStaleLocalImage
../sdk/kit/local_image.go:52:39: undefined: container.LocalImageResolution
task: Failed to run task "build:binary": exit status 1

c1c41b06 re-exports symbols that exist only in spec bbb3c6a, and its module graph needs the 90-module spec v0.2026225.1800 -> v0.2026227.1854 bump — exactly what charly#278 carries. 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 sdk gitlink was a GENUINE two-sided conflict at that merge — not the false one merge-tree reports for a fast-forward (gh pr update-branch refused; the local merge did not):

base   7a81472
ours   15b89eac    (this branch's orphaned pin)
theirs 2f6a3a7     (from main via #278)
merge-base(ours, theirs) == base  => neither side is a fast-forward of the other;
                                     taking EITHER alone drops the other's content

Resolved FORWARD to c1c41b06 (sdk main's tip, tag v0.2026227.1923), which contains theirs (2f6a3a7 is an ancestor) and supersedes ours (15b89eac is 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:

git ls-tree <merge> sdk   ->  c1c41b06
git ls-tree <merge> spec  ->  bbb3c6a      (one-sided, taken from main)

charly#281 then landed as well, so the branch took a SECOND main merge and every figure below was re-measured on top of it. That merge was one-sided on both gitlinks and needed no resolution — spec advanced to 2c6e2bd6 (ours equalled the base, so theirs won), sdk kept c1c41b06 (theirs equalled the base, so ours survived) — verified the same way:

git ls-tree <merge2> sdk   ->  c1c41b06
git ls-tree <merge2> spec  ->  2c6e2bd6

Submodule checkouts were re-synced with git submodule update --init --checkout immediately 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 plain M spec and then fails the build with undefined:.

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-module go test + golangci-lint.

  • Eval beds run — RE-RUN on the merged tree, not re-pointed. Binary charly version 2026.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/, binary 2026.227.1349) describes a tree pinning sdk 15b89eac + spec 4cff4d08 — 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 when charly#281 advanced spec. 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:drift is deliberately not cited as source coverage: it reads the committed plugins/ projection, not candy sources, so it cannot carry that claim.)

  • GOWORK=off module gate (go.work masks 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 is candy/plugin-dsh, identical on main and owned by the named module-hygiene batch; charly/ under GOWORK=off fails identically on main too (missing go.sum entries reached via cuelang.org/go). Neither is caused here, and both are reported rather than silently absorbed.

  • charly box validate: exit 0 at zero warnings. The plugin-example-structkind provider 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's go.mod sweep is what it was reporting.

  • Fresh rebuild: yes. task build:binary exit 0 on the merged tree → charly version 2026.227.2048. check-sidecar-pod includes a full charly update rebuild leg, then re-runs check-live and feature-run against 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, and cachyos.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 EXPOSE claim — no images required

This is a charly box generate result, 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 own sdk pin rather than a hand-reverted subtree — so the discriminator is exactly "this PR's gitlink vs. what is on main today", with no partial-checkout trickery:

# WITH this PR  (sdk c1c41b06):
task build:binary                                   # charly version 2026.227.2048
rm -rf .build/fedora.charly-fedora
./bin/charly box generate fedora.charly-fedora
grep -c '^EXPOSE' .build/fedora.charly-fedora/Containerfile                                   # -> 1   (EXPOSE 2222)
grep -o 'ai\.opencharly\.[a-z_.]*' .build/fedora.charly-fedora/Containerfile | sort -u | wc -l # -> 27

# WITHOUT it   (sdk 2f6a3a7 — main's pin, i.e. the tree this PR merges into):
git -C sdk checkout --detach 2f6a3a7 && task build:binary
rm -rf .build/fedora.charly-fedora
./bin/charly box generate fedora.charly-fedora
grep -c '^EXPOSE' .build/fedora.charly-fedora/Containerfile                                   # -> 0
grep -o 'ai\.opencharly\.[a-z_.]*' .build/fedora.charly-fedora/Containerfile | sort -u | wc -l # -> 21

# Restore:
git -C sdk checkout --detach c1c41b06 && task build:binary

The six labels present ONLY with the fix, computed as a set difference rather than eyeballed from the counts:

ai.opencharly.description  ai.opencharly.port      ai.opencharly.security
ai.opencharly.shell        ai.opencharly.skill     ai.opencharly.volume

This is coverage that fails without the change (R10): on main's pin the box ships zero EXPOSE and no baked plan:.

That recipe produced this diff (363 → 372 lines):

--- pre-fix  .build/fedora.charly-fedora/Containerfile
+++ post-fix .build/fedora.charly-fedora/Containerfile
@@ -1 +1,2 @@
-(no EXPOSE lines at all)
+64:# Exposed ports
+65:EXPOSE 2222

# structural diff over EXPOSE + LABEL ai.opencharly.* lines only:
0a1
> EXPOSE 2222
10a12
> LABEL ai.opencharly.port
11a14,17
> LABEL ai.opencharly.volume
> LABEL ai.opencharly.security
> LABEL ai.opencharly.description
> LABEL ai.opencharly.shell
17a24
> LABEL ai.opencharly.skill

A second, richer case via the same recipe — cachyos.android-emulator, reached through two nested namespaces — yields 6 EXPOSE lines plus a non-empty box-level env label:

ai.opencharly.env='{"EMULATOR_API_LEVEL":"36","EMULATOR_DEVICE":"pixel_9a","EMULATOR_NAME":"charly_avd_36"}'

and cachyos.ollama yields ai.opencharly.alias='[{"name":"ollama","command":"ollama"}]'.

The eleventh site — ai.opencharly.data, proven on an imported box

collectChainDataEntries had the same root cause and was found only after the first ten were fixed. It spells the identical lookup BoxConfig(current) inside a hand-rolled copy of the base-chain walk, so a sweep keyed on the literal token BoxConfig(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 the notebook-templates data candy):

=== PRE-FIX (11th site broken) ai.opencharly.data ===
(label ABSENT — no data entries collected)

=== POST-FIX ai.opencharly.data ===
ai.opencharly.data='[{"volume":"workspace","staging":"/data/workspace/","candy":"github.com/opencharly/charly/candy/notebook-templates"}]'

R8 — the emitted artifact, same box before and after

=== NEW image (built with the fix) ===
$ charly box labels ghcr.io/opencharly/fedora-nonfree:2026.227.1225 --format ai.opencharly.description
{"candy":[{"origin":"candy:github.com/opencharly/charly/candy/rpmfusion","description":"Enables the RPM Fusion free and nonfree Fedora repositories. …

=== OLD image (built before the fix, same box) ===
$ charly box labels ghcr.io/opencharly/fedora-nonfree:2026.227.0836 --format ai.opencharly.description
charly: error: command "labels": label "ai.opencharly.description" not present on
ghcr.io/opencharly/fedora-nonfree:2026.227.0836 — an empty or missing capability label is a failure (CLAUDE.md R8)

The ADE gate, same box before and after

########## BEFORE (image built pre-fix) ##########
$ charly check box ghcr.io/opencharly/fedora-nonfree:2026.227.0836
No plan steps defined for this image.
exit=0

########## AFTER (image built with the fix) ##########
$ charly check box ghcr.io/opencharly/fedora-nonfree:2026.227.1225
Image: ghcr.io/opencharly/fedora-nonfree:2026.227.1225
  SKIP  run import the RPM Fusion keys … skipped — verify-only mode (mutating step)
  PASS  check the RPM Fusion free signing key is in the rpm database …  [rpmfusion-key-imported]  exit=0
  PASS  check the RPM Fusion free repo definition file is present on disk
  PASS  check the rpmfusion-free-release package is recorded in the rpm database  installed
  PASS  check the RPM Fusion nonfree repo definition file is present on disk
  PASS  check the rpmfusion-nonfree-release package is recorded in the rpm database  installed
  PASS  check the free repo file declares the rpmfusion-free repository section header

7 steps: 6 passed, 0 failed, 1 skipped
exit=0

Both tags are pinned <box>:<calver>, because charly check box could otherwise resolve a published image rather than the one just built. That fix has since LANDED (spec#29 / sdk#136 / charly#278, merged as fca89e95) 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 box prints no artifact identity when it fails — read this before re-deriving the A/B

The standing guard for the published-image trap is "read the Image: line before believing a verdict". On a broken image there is no Image: line to read. Compare the two runs above: the AFTER run opens with Image: ghcr.io/opencharly/fedora-nonfree:2026.227.1225; the BEFORE run prints No 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:

$ charly box labels ghcr.io/opencharly/fedora-nonfree:2026.227.0836
ai.opencharly.box=fedora.fedora-nonfree
ai.opencharly.version=2026.227.0830

Same box, locally present, description label absent. Filed for the check box cutover (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 clean check-sidecar-pod run it reports a hit — inside image-build.log, where a candy's skill prose is baked into the ai.opencharly.skill LABEL and that prose contains the word "warning". The check used is grep -rinE '^[[:space:]]*(Warning|warning):', which matches charly-emitted warning lines only, and it returns empty across both run directories.

Bed output

charly check run check-feature-local: PASS (steps=6)
FEATURE_EXIT=0

charly check run check-sidecar-pod: [check-image] PASS after 21.853s
charly check run check-sidecar-pod: [deploy-add] PASS after 24.613s
charly check run check-sidecar-pod: [config] PASS after 18.723s
charly check run check-sidecar-pod: [start] PASS after 16.278s
charly check run check-sidecar-pod: [feature-run-rebuild] PASS after 20.667s
charly check run check-sidecar-pod: [cleanup] PASS after 8.273s
charly check run check-sidecar-pod: [cleanup-members] PASS after 0s
charly check run check-sidecar-pod: PASS (steps=17)
SIDECAR_EXIT=0

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 full charly update rebuild 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.data is proven on cachyos.jupyter-ml). The last, ResolveBoxEngine, executed but returned the global default because no candy in this corpus declares an engine: — 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

  • R0 skills: loaded /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).
  • R1 RCA + zero warnings: every anomaly root-caused before remediation; details in sdk#137. Two are worth naming here because they shaped the evidence: (1) EXPOSE was still missing after the collectors were fixed → traced to ResolvedBox.Name being the leaf while the generator's box map is keyed qualified, fixed at the call site rather than by mutating Name (which would corrupt the registry ref); (2) two of the eight new tests initially failed on the fixed tree → traced to the adapter reading Volumes/Aliases off spec.CandyView rather than spec.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.
  • R2 no out-of-scope: the blast radius was measured before a seam was chosen, and all eleven affected sites are fixed in the bumped commits — not just the reported one. The eleventh (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.
  • R3 no duplication: ten sites that each re-resolved a box by name now share ONE entry (BoxOwner) — the explicit alternative to ten patches.
  • R4 no workaround: no sleeps, retries, magic numbers, or env shims. Every operation against charly-managed resources went through the charly CLI (box build, box generate, box labels, check box, check run, box list tags).
  • R5 hard cutover + grep: no identifier removed, so the claim-keyed variant applies: two comments that still described the flat entry were swept in the same sdk commit. This repository's diff is a gitlink + a CHANGELOG entry; git grep finds no stale reference to the old behaviour. No transitional or dual-mode path in the final code.
  • R6 git safety: git status + git stash list checked 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 to main.
  • R7 runtime gate: two beds run end to end, not just go test.
  • R8 artifact invariants: the emitted Containerfile's EXPOSE and LABEL ai.opencharly.* sections asserted directly, plus charly box labels on real built images — a missing label is a hard error, which is what makes the BEFORE case self-proving.
  • R9 binary == source: task build:binary on the merged tree, charly version 2026.227.2048; both beds RE-RUN on that exact binary, so no cited result predates the tree being merged. No new runtime OS dependency, so pkg/arch/PKGBUILD is untouched.
  • R10 disposable + coverage: both beds are disposable: true; fresh rebuild; zero warnings; the bumped commit ships coverage that fails without the change (pasted in sdk#137).
  • RDD / ADE / SDD: RDD — the high-risk assumption (entry-descent plus the flat shared candy map yields correct labels) was proven on real generated artifacts before the seam was settled; the blast radius was measured, not inferred. ADE — no candy added or changed; this restores the baked plan: that the entire ADE contract depends on for this repository's catalog. SDD — N/A, no .cue edit, no generated type touched.
  • Hard cutover: one atomic commit in this repo; no TODO, phase 2, or deferred work in scope.
  • Kernel/plugin boundary law: N/A — no charly/ core file is touched by either commit; the fix lives in sdk/deploykit. Import purity is unaffected (charly/import_purity_test.go green).
  • Disposable-only autonomy: both beds carry disposable: true; no non-disposable target was destroyed or rebuilt.
  • Clean architecture + Go gates: gofmt clean, golangci-lint run ./... = 0 issues (run from charly/ and sdk/, never the workspace root — a root run checks nothing and exits 7 while printing "0 issues"), go vet clean, go test ./... green in charly, sdk, and spec.
  • CHANGELOG: CHANGELOG/2026.227.1243.md staged (placeholder — the pr-validator finalizes the merge-time version). Flagged, not fixed here: 2026.227.1243 is EARLIER than the newest tag reachable from main, 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)

…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)
@atrawog

atrawog commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

charly/pr-validator: BLOCKED — CHANGES REQUESTED on the producer

This PR is a gitlink bump only, and it is correct on its own terms: the gitlink is at 5d783113, matching the sdk PR's head, and the CHANGELOG entry accurately records the consequence for this repository.

It is blocked because opencharly/sdk#137 received CHANGES REQUESTED — full review at opencharly/sdk#137 (comment).

Summary of the producer defect: the collector sweep missed an 11th site with the identical root cause. deploykit/render_prep.go:428 collectChainDataEntries still walks g.Config.BoxConfig(current) flat, so ai.opencharly.data is absent on every imported box in this repository's catalog, and deploy-time data provisioning silently no-ops for them. Reproduced here on this exact tree:

binary: 2026.227.1259  sdk=5d78311  super=cd255d79  status=''
$ charly box generate cachyos.jupyter-ml
data-candy staged into the image (COPY): 1
ai.opencharly.data label emitted:        0

The headline claim this PR carries does reproduce independently — fedora.charly-fedora goes 21 → 27 unique ai.opencharly.* labels and 0 → 1 EXPOSE across the sdk revert. That part is solid.

Nothing to change in this repository. Once sdk#137 is fixed and re-validated, re-point the gitlink to its merged squash SHA (not the feat-branch SHA) and this PR can land behind it.


Assisted-by: Claude Code Anthropic Claude Opus 5 (fully tested and validated)

atrawog and others added 2 commits August 15, 2026 15:49
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)
@atrawog

atrawog commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

Coordination — opencharly/sdk#137 has landed; re-pin the sdk gitlink

Posted by the sdk#137 validator. This is a heads-up on an interaction, not a verdict on this PR.

sdk#137 (fix(deploykit): namespace-aware box collectors) was validated and squash-merged:

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 sdk

This 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:

  1. The content is unchanged from what you pinned. 15b89eac → c1c41b06 is a squash plus the merge-time CalVer rename only; no source file differs. The CHANGELOG entry landed as CHANGELOG/2026.227.1923.md (renamed from the 2026.227.1443 placeholder, which predated sdk main's then-latest 2026.227.1713 entry).
  2. A finding recorded against sdk, not against this PR. gofmt -l . in sdk is non-empty at main — deploykit/baked_box_label_test.go (import order). It is pre-existing, arriving via sdk#136, and sdk has no CI, so nothing catches it; .golangci.yml configures no formatters: 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
@atrawog

atrawog commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

Coordination note from the pr-validator on opencharly/charly#281.

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 sdk remote, not inferred by analogy:

sdk pin at PR head:  15b89eac88b79059b635554329e5359354cbe15e
git -C sdk merge-base --is-ancestor 15b89eac origin/main   ->  exit 1   UNREACHABLE

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 sdk main, and confirm with merge-base --is-ancestor before pushing rather than by eye.

2. #281 is about to move the spec gitlink forward. It pins spec 2c6e2bd6 (a descendant of main's bbb3c6a). This PR does not touch spec, so after #281 merges your spec gitlink is one-sided and your update-branch should take main's value cleanly — no conflict expected on that path.

Your existing DIRTY state is on the sdk gitlink against charly#278, and it is independent of #281. When you resolve it, resolve forward and read the result off the merge commit, never the working tree:

git ls-tree <merge> sdk     # must be the descendant, not rewound
git ls-tree <merge> spec    # after #281: expect 2c6e2bd6 from main

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
@atrawog

atrawog commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: cross-repo consumer leg — sdk gitlink re-pin + CHANGELOG. No Go, CUE, candy, or charly/ core file in this repository's diff.

Validated head: bd5df49e (see "head moved mid-validation" below).
Net contribution over current main: exactly CHANGELOG/2026.227.1243.md + sdk, 181 insertions / 1 deletion.

Ancestry pair — re-derived, full clone, post-fetch

git -C sdk rev-parse --is-shallow-repository → false; git -C sdk fetch origin run first; object 15b89eac confirmed present locally, so the negative result is a real answer and not a missing-object artifact.

merge-base --is-ancestor c1c41b06 origin/main   -> exit 0   REACHABLE  (= sdk main tip, tag v0.2026227.1923)
merge-base --is-ancestor 15b89eac origin/main   -> exit 1   ORPHAN
merge-base --is-ancestor 2f6a3a7  c1c41b06      -> exit 0   fix CONTAINS main's pin
git ls-remote sdk refs/heads/feat/namespace-aware-box-collectors -> empty (branch deleted)

Resolutions read off the merge commits, never the working tree — the genuine two-sided sdk conflict resolved FORWARD, and #281's one-sided spec advance:

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:

  • atrawog 13:34 — CHANGES REQUESTED on the producer (11th site collectChainDataEntries): verified-non-blocking (resolved). I read the fix in c1c41b06 and re-derived the ai.opencharly.data label live on cachyos.jupyter-ml.
  • atrawog 19:25 — re-pin to the merged squash; sdk gofmt pre-existing: verified-non-blocking. Re-pin done and confirmed; gofmt independently proven pre-existing (correction recorded above).
  • atrawog 20:20 — dangling pin, one-sided spec, 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-sided main merge. No file overlap with this PR's two paths.
  • opencharly/sdk#138 (Alpine sshd) — no overlap; will advance sdk main past c1c41b06 later, which does not affect this pin.
  • opencharly/spec#31, #32 — no overlap with the pinned spec 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)
@atrawog
atrawog merged commit 55d250c into main Aug 15, 2026
@atrawog
atrawog deleted the feat/namespace-aware-descriptions branch August 15, 2026 21:46
@atrawog

atrawog commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

Landed ✅

merge commit 55d250c0367d344a67ed860b6195a9d21a14d59b (squash)
tag v2026.227.2145 — verified on the remote, peels to 55d250c0
CHANGELOG CHANGELOG/2026.227.1243.md → CHANGELOG/2026.227.2145.md
sdk gitlink on main 2f6a3a7 → c1c41b06
spec gitlink on main 2c6e2bd6 (unchanged)
branch deleted

CalVer regenerated at merge, as flagged. The placeholder 2026.227.1243 predated main's newest tag v2026.227.2126, so landing it unchanged would have placed this release behind one already tagged. Regenerated to 2026.227.2145, verified later than that tag and free of any existing tag or CHANGELOG/ entry. The rename carried its H1 with it — git show --stat reported {2026.227.1243.md => 2026.227.2145.md} | 12 ++++++------, i.e. 6 insertions / 6 deletions, not | 0 — and the committed object's first line reads # 2026.227.2145 — carry the namespace-aware box collectors.

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:

pre-merge   git interpret-trailers --parse  ->  Assisted-by: Claude Code Anthropic Claude Opus 5 (fully tested and validated)
merged 55d250c0  same parse                 ->  Assisted-by: Claude Code Anthropic Claude Opus 5 (fully tested and validated)

Verified against the fetched merge object, not the submitted input.

Tagging scope: the superproject is the only repo that merged in this leg. The sdk producer was tagged v0.2026227.1923 by its own validator (confirmed present on the remote); plugins, docs, pkg/*, and the box/* submodules are untouched by this cutover, so no tag is owed there.

Post-landing state verified on main: sdk = c1c41b06, spec = 2c6e2bd6, CHANGELOG/2026.227.2145.md present, 55d250c0 is main's tip. Scratch validator worktree removed; the author's worktree was never written to.

Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant