Skip to content

fix(check): repair the buildcache and boxload beds (Closes #1138) - #1357

Merged
github-actions[bot] merged 3 commits into
mainfrom
fix/vol-cdi-loader-gate-beds
Dec 2, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
fix/vol-cdi-loader-gate-beds

Conversation

@aitrawog

@aitrawog aitrawog commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Two check beds were red on main for reasons in the beds themselves, not in the loader they gate. That kept the loader roster of #1340 and #1024 from going green. This change repairs both.

Head fdc1838c1bc517d54c6994795f849a4cdf54cef4. It is c689588c335c2527026add35ed725def2e1c1a7f (the change, cut on main 40648c6279cff31483c60ded0b3dc8dc04246c06) plus a gh pr update-branch merge of main; none of the merged main commits touches either bed, and the change set against main is unchanged (charly.yml, +14/−2).

$ git log --format='%H %s' origin/main..HEAD
c689588c335c2527026add35ed725def2e1c1a7f fix(check): resolve the buildcache bed's real go, and count only successful builds
b1e315b55c009e4f1ad775e96912c360f29a531f chore(check): pin check-boxload-app's nested-podman-socket to v2026.336.0447
$ git diff --stat origin/main...HEAD
 charly.yml | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)
File Change
charly.yml check-plugin-buildcache-local: the shim's real_go is $(go env GOROOT)/bin/go; the cold arm fails when its plugin build failed
charly.yml check-boxload-app: pod-nested-podman-socket v2026.273.1858 → v2026.336.0447

How tested

The defects, on unchanged main

Both beds on charly main (/tmp/cs/charly-main, its own bootstrapped binary). The buildcache bed fails its warm arm:

$ grep -m2 -E "^charly check run check-plugin-buildcache-local: (PASS|FAIL)|\] FAIL" /tmp/cs/ctl2-check-plugin-buildcache-local.log | cut -c1-200
charly check run check-plugin-buildcache-local: [check-live] FAIL after 3m39.28s: exit 2: charly subcommand exited 2 (log: .check/check-plugin-buildcache-local/2026.336.0645/check-live.log)
charly check run check-plugin-buildcache-local: FAIL (steps=5)
$ L=/tmp/cs/charly-main/.check/check-plugin-buildcache-local/2026.336.0645/check-live.log; grep -m1 -oE 'FAIL: the second build[^\\"]*' $L | cut -c1-160
FAIL: the second build of UNCHANGED source re-ran 'go build' (27 -> 54) — the store did not hit)

The "builds" it counted were failed attempts. The same bed script, extracted and run by hand, gives the shim's recursion error. (On this host command -v go is mise's shim; see the spike below.)

$ grep -m1 -oE 'mise ERROR shim fallback recursion[^"]{0,110}' /tmp/tmp.xF9C0TnTth/arm-cold.log
mise ERROR shim fallback recursion detected for go: /tmp/tmp.xF9C0TnTth/shim/go keeps resolving back through mise. Set a version for go, or remo

The boxload bed fails at image build, in the nesting layer's materialize step:

$ grep -m3 -E "^charly check run check-boxload-pod: (PASS|FAIL)|^charly check run check-boxload-pod: \[[a-z-]+\] FAIL" /tmp/cs/ctl-check-boxload-pod.log | sed -E 's/ \(log:.*//' | cut -c1-200
charly check run check-boxload-pod: [image-build] FAIL after 3m23.7s: exit 1: charly subcommand exited 1
charly check run check-boxload-pod: FAIL (steps=1)
$ f=/tmp/cs/charly-main/.check/check-boxload-pod/2026.336.0250/image-build.log; grep -m6 -E '^\s*#22 ' $f | cut -c1-200
               #22 [stage-3 12/15] RUN --mount=type=bind,from=container-nesting,source=/,target=/ctx --mount=type=cache,id=charly-var-cache-charly-npm-cache-uid1000,dst=/var/cache/charly/npm-cache,uid
               #22 0.112 Error: no such file or directory
               #22 ERROR: process "/bin/sh -c sh -c 'SH=/bin/sh; [ -x /bin/bash ] && SH=/bin/bash; exec \"$SH\"' sh <<'OVCMD'\nBUILD_ARCH=$(uname -m)\ncase \"$BUILD_ARCH\" in\n  x86_64) ARCH=amd64 ;;\
               #22 [stage-3 12/15] RUN --mount=type=bind,from=container-nesting,source=/,target=/ctx --mount=type=cache,id=charly-var-cache-charly-npm-cache-uid1000,dst=/var/cache/charly/npm-cache,uid
               #22 0.112 Error: no such file or directory
               #22 ERROR: process "/bin/sh -c sh -c 'SH=/bin/sh; [ -x /bin/bash ] && SH=/bin/bash; exec \"$SH\"' sh <<'OVCMD'\nBUILD_ARCH=$(uname -m)\ncase \"$BUILD_ARCH\" in\n  x86_64) ARCH=amd64 ;;\

Spike

Buildcache candidates:

  • (1) Exec the toolchain binary, $(go env GOROOT)/bin/go (implemented). go env GOROOT is answered by the real toolchain even through a manager's shim, and the binary under it is no wrapper.
  • (2) Strip version-manager shim dirs from PATH inside the shim. Rejected: it names each manager (mise, asdf, goenv), and a new one breaks it again.
  • (3) Pin a go version for mise in the bed. Rejected: it fixes one manager on one host, not the bed.

Candidate (1) was spiked by extracting the bed's exact script from this tree's charly.yml, deriving the old-shim variant with one sed, and running both against this tree's binary. The old shim fails, now at the new cold-arm control. The new shim passes every arm:

The extractor:

$ cat /tmp/cs/bc-extract.py
import sys, yaml
doc = yaml.safe_load(open(sys.argv[1]))
def walk(o):
    if isinstance(o, str):
        if 'real_go=' in o: yield o
    elif isinstance(o, dict):
        for v in o.values(): yield from walk(v)
    elif isinstance(o, list):
        for v in o: yield from walk(v)
s = list(walk(doc['check-plugin-buildcache-local']))
assert len(s) == 1, len(s)
sys.stdout.write(s[0])
$ python3 /tmp/cs/bc-extract.py charly.yml > /tmp/cs/bc-fixed.sh; sed 's#real_go="$(go env GOROOT)/bin/go"#real_go="$(command -v go)"#' /tmp/cs/bc-fixed.sh > /tmp/cs/bc-oldshim.sh; grep -n 'real_go=' /tmp/cs/bc-fixed.sh /tmp/cs/bc-oldshim.sh; command -v go; go env GOROOT
/tmp/cs/bc-fixed.sh:16:real_go="$(go env GOROOT)/bin/go"
/tmp/cs/bc-oldshim.sh:16:real_go="$(command -v go)"
/home/atrawog/.local/share/mise/shims/go
/usr/lib/go
$ grep -c 'CHARLY_BIN' /tmp/cs/bc-fixed.sh; for v in oldshim fixed; do s=$(date +%s); TMPDIR=/tmp/cs CHARLY_BIN=$PWD/bin/charly bash /tmp/cs/bc-$v.sh > /tmp/cs/bc2-$v.log 2>&1; echo "ARM $v rc=$? $(( $(date +%s)-s ))s"; done
3
ARM oldshim rc=1 1s
ARM fixed rc=0 9s
$ for v in oldshim fixed; do echo "== $v"; grep -m3 -E 'FAIL|ARMS-OK|mise ERROR' /tmp/cs/bc2-$v.log | cut -c1-220; done
== oldshim
FAIL: the COLD arm's plugin build FAILED, so it is no positive control:
== fixed
BUILDCACHE-ARMS-OK cold_builds=1 warm_builds=1 edited_builds=2 override_builds=1 blobs=3 views=2 linked=2 override_views=1

Boxload: there is one candidate: fix the producer and repin. A charly-side workaround (overriding the nesting layer's step from the fixture) would leave every other consumer of the nesting layer broken. The producers landed first, as noted in the summary.

The change — both beds on the committed tree

Bootstrapped from this worktree (charly 2026.336.1052), then each bed run end to end:

$ export TMPDIR=/tmp/cs GOTMPDIR=~/.cache/go-tmp && bash scripts/bootstrap-charly.sh > /tmp/cs/beds2-boot.log 2>&1; echo "BOOT rc=$? $(./bin/charly version)"; for b in check-plugin-buildcache-local check-boxload-pod; do s=$(date +%s); ./bin/charly check run $b > /tmp/cs/beds2-$b.log 2>&1; echo "BEDS2 $b rc=$? $(( $(date +%s)-s ))s :: $(grep -m1 -E "^charly check run $b: (PASS|FAIL)" /tmp/cs/beds2-$b.log | cut -c1-80)"; done
BOOT rc=0 2026.336.1052
BEDS2 check-plugin-buildcache-local rc=0 1597s :: charly check run check-plugin-buildcache-local: PASS (steps=6)
BEDS2 check-boxload-pod rc=0 3507s :: charly check run check-boxload-pod: PASS (steps=16, skipped_checks=13) — check-i

The nested container check that failed on main at build time now runs in both live phases. Each line pair below is one phase's report: 38 steps in that phase, 6 of them skipped (the bed-level skipped_checks=13 above counts unrun declared checks across all phases; it is a different counter):

$ for p in check-live check-live-rebuild; do grep -m1 -E 'nested-podman-run' .check/check-boxload-pod/2026.336.1122/$p.log | cut -c1-140; grep -m1 -E '[0-9]+ steps: ' .check/check-boxload-pod/2026.336.1122/$p.log | cut -c1-120; done
  PASS  check a fresh nested rootless container runs from the build-baked OCI layout (no network, no prior state)  [nested-podman-run]  exit
38 steps: 32 passed, 0 failed, 6 skipped
  PASS  check a fresh nested rootless container runs from the build-baked OCI layout (no network, no prior state)  [nested-podman-run]  exit
38 steps: 32 passed, 0 failed, 6 skipped

Rulebook compliance

$ git grep -n 'real_go="$(command -v go)"\|pod-nested-podman-socket:v2026.273.1858' -- charly.yml; echo "matches rc=$?"
matches rc=1

Plan conformance

Winning candidate: (1) exec $(go env GOROOT)/bin/go; boxload: producer fix plus repin.

Planned change Requirement Disposition
The buildcache bed's positive control counts only successful builds D-VAL-1 conforms — "A candy's checks, when it has them, are its acceptance" (a bed whose control cannot fail accepts nothing)

The fixture pin move is no DESIGN-governed surface: a check fixture advances to the producer's fixed tag, landed producer-first under AGENTS.md "Commit, push, land" ("Cross-repo work is producer-first: producer PR → merge → tag → consumer ff → umbrella PR").

Change classification

Check-bed configuration only; no Go source and no product behaviour change.

Filed issues

Agent: vol-cdi · Claude Code session 8daa865c-d43e-447b-90b3-7d16ccc921d7
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

aitrawog and others added 2 commits December 2, 2026 11:52
…36.0447

The fixture pinned pod-nested-podman-socket v2026.273.1858, whose
layer-container-nesting still ran a build-time podman pull that the
sandboxed BuildKit worker denies, so check-boxload-pod failed its build on
main. v2026.336.0447 carries the fixed nesting layer
(pod-nested-podman-socket#8, layer-container-nesting#23).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Tvdn3smn7hhJAPbCPEE5dH
Agent: vol-cdi · Claude Code session 8daa865c-d43e-447b-90b3-7d16ccc921d7
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)
…essful builds

check-plugin-buildcache-local's observation shim delegated to
`command -v go`. On a host whose go is a version manager's shim (mise
here), that shim re-resolved go through PATH, found the bed's shim first,
and failed every build with a recursion error. The loader warn-skipped the
failed kind, box validate still exited 0, and the cold arm counted the
failed attempts as builds, so the bed reported 'the store did not hit' for a
store that was never written. The shim now delegates to
$(go env GOROOT)/bin/go, and the cold arm fails if the plugin build failed.

Closes #1138.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Tvdn3smn7hhJAPbCPEE5dH
Agent: vol-cdi · Claude Code session 8daa865c-d43e-447b-90b3-7d16ccc921d7
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: c689588c335c2527026add35ed725def2e1c1a7f (branch: fix/vol-cdi-loader-gate-beds)

Security screen: PASS — bed-internal config + a documented producer pin bump; no secrets, no scope mismatch, no guardrail weakening, no unexpected supply-chain target (the new tag is the producer's fixed tag, validated by the passing bed run).

Checklist: All applicable rules PASS or NA. Notes on the two judgment calls:

  • COORD: the #1340/#1024 mention is unblocking-context (this PR fixes main's red beds so those rosters can go green) — the PR is the remedy, not a blocker gating another item, so no WAITING/HOLDING comment is owed. Body carries the required *Agent: …* then *Assisted-by: …* footer order.
  • C3: the single conformance row covers the new positive-control mechanism (D-VAL-1); the real_go fix is named in the **Winning candidate:** and the pin move is dispositioned as not DESIGN-governed — adequate for a bed-config change.

C1/C2 evidence is coherent and reproducible-in-principle (buildcache: 3 candidates with pasted output, winner implemented, old-shim arm fails / fixed arm passes; boxload: single candidate + why-no-other, spike-equivalent shown by old-pin FAIL vs new-pin PASS). C6 grep self-test matches the diff; C11 both changed beds pass on the committed tree (2026.336.1052); no forbidden framing present. Comment thread is empty.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: fdc1838c1bc517d54c6994795f849a4cdf54cef4 (branch: fix/vol-cdi-loader-gate-beds)

Change class: check-bed configuration only (charly.yml, +14/−2) — no Go source, no product behaviour, no docs.

Blocks

  1. COORD — missing WAITING/HOLDING coordination comment. The body explicitly states this PR's fix is what makes another open item green: "That kept the loader roster of loader: the kind-connect pass re-runs (2 full project loads) at every walk boundary for a declared kind word that never connects — 106 of 110 loads in one charly config #1340 and charly check run spends 5-9+ min in full-project resolution before reaching a step #1024 from going green. This change repairs both." That is a body-shown dependency — this PR gates loader: the kind-connect pass re-runs (2 full project loads) at every walk boundary for a declared kind word that never connects — 106 of 110 loads in one charly config #1340 and charly check run spends 5-9+ min in full-project resolution before reaching a step #1024 (they cannot go green until this bed fix lands), i.e. "this PR blocks another open item." The rulebook requires a WAITING/HOLDING comment naming both sides on both threads; there is no such comment on this PR's thread (only the bot PASS review). The prior reviewer's "it's the remedy, not a blocker" is the unsound distinction the rulebook forbids — a fix another open item is waiting on is a blocker for it. Fix: post a WAITING (or HOLDING) comment naming loader: the kind-connect pass re-runs (2 full project loads) at every walk boundary for a declared kind word that never connects — 106 of 110 loads in one charly config #1340 and charly check run spends 5-9+ min in full-project resolution before reaching a step #1024 and this PR, and ensure the reciprocal comment exists on the loader: the kind-connect pass re-runs (2 full project loads) at every walk boundary for a declared kind word that never connects — 106 of 110 loads in one charly config #1340/charly check run spends 5-9+ min in full-project resolution before reaching a step #1024 threads.

Comment disposition

Reviewed, non-blocking

  • C3 — the single D-VAL-1 row covers the substantive behavioural change (the cold-arm positive control); the real_go resolution and the fixture tag bump are test-harness internals, not DESIGN-governed architectural surfaces, so the "no DESIGN-governed surface" disposition for the pin is accepted for a check-config change. (Noting for transparency: if the project later treats fixture pins as DESIGN-governed "dependency" surfaces, this would need a row — a rulebook-scope question, not a defect here.)
  • C2 — candidates (2) and (3) are named with decisive structural rejections; the explicit C2 blocker ("spiked one and names no other plausible one, nor why none exists") is not met. The winner (1) is spiked with pasted output (oldshim rc=1, fixed rc=0, BUILDCACHE-ARMS-OK), internally consistent with the counter semantics.
  • Head-composition sentence is slightly imprecise (says head = c689588 + merge, omitting the pin commit b1e315b), but the pasted git log and the summary table both show b1e315b, and the diff stat matches +14/−2; not a truthfulness defect.
  • Security screen S1–S4: no secrets/egress, no guardrail weakening, no scope mismatch; the pin target is the producer's fixed tag (v2026.336.0447) validated by the passing check-boxload-pod run.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@aitrawog

aitrawog commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

HOLDING

This PR blocks #1340 (the kind-connect memo) and #1024 (the project loaded once per scan). Their gate, check-loader-roster, includes check-plugin-buildcache-local and check-boxload-pod, and both are red on main until this lands. All three items are vol-cdi's. #1340's branch is stacked on this one and holds its push until this merges. CLEARED follows on the merge.

Agent: vol-cdi · Claude Code session 8daa865c-d43e-447b-90b3-7d16ccc921d7
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: fdc1838c1bc517d54c6994795f849a4cdf54cef4 (branch: fix/vol-cdi-loader-gate-beds)

Security screen: PASS — bed-internal config plus a producer pin bump to the fixed tag; no secrets/egress, no scope mismatch, no guardrail weakening, no unexpected supply-chain target.

Comment dispositions:

Checklist: All applicable rules PASS or NA — diff matches the body (+14/−2, both hunks accounted for), both changed beds pass on the committed tree (2026.336.1052) with the pin exercised via check-boxload-pod; C2 spike/candidates/winner coherent and the boxload spike-equivalent (old pin FAIL on main vs new pin PASS) is pasted; C6 grep self-test matches the diff; C3 single D-VAL-1 row plus the pin dispositioned as not DESIGN-governed is adequate for a check-config change; C11 coverage proven by the old-shim arm failing at the new cold-arm control. Minor note (non-blocking): the head-composition sentence ("c689588 + merge") omits b1e315b, but the pasted git log and summary table both show it, so no truthfulness defect.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot merged commit a45b886 into main Dec 2, 2026
8 of 9 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Dec 2, 2026
@aitrawog

aitrawog commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

CLEARED

Merged as a45b8864cd124de5c1de26247ae0c85f75861efd. The bed block on #1340 and #1024 is cleared.

Agent: vol-cdi · Claude Code session 8daa865c-d43e-447b-90b3-7d16ccc921d7
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

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.

check-plugin-buildcache-local fails its cache-hit assertion on unmodified main (27 -> 54 go builds on an unchanged rebuild)

1 participant