Repository navigation
Conversation
…ies the FileStep
P07 unit 3. Pins: `github.com/opencharly/sdk` v0.2026320.617 -> v0.2026321.1237 and
`github.com/opencharly/spec` v0.2026320.16 -> v0.2026321.1215 (the two producer merges).
## The change
`candy/plugin-deploy-pod/overlay.go` no longer resolves credentials into `OpStep.Op.Env`:
- candyList := deploykit.SelectCandiesForPlans(plans, dg.Candies)
- secretEnv := deploykit.ResolveSecretForCandy(candyList, deploykit.CredentialAccessViaExecutor(ctx, exec))
- deploykit.InjectSecretsIntoPlans(plans, secretEnv)
and the twelve-line comment above it that explained the env mechanism. Secrets are delivered as
FILES: `BuildDeployPlan` compiles one `FileStep{Source, Dest, Mode: 0600}` per `use: secret:` entry
(sdk/deploykit/compile_secret_steps.go), `kit.walkFile` reads the host source at realize, and
`DeployExecutor.PutFile` writes it into the venue. The value therefore never enters the plan, the
ledger, or the rendered script — which is what D-SEC-1 requires (DESIGN.md:2511, and DESIGN.md:2983:
"a value reaches a consumer as a `secret:` need, never as text").
Comment beside the deletion records why the env route is gone rather than merely unused.
## Measured, before and after
The string the edit had to remove is gone:
$ grep -c 'InjectSecretsIntoPlans\|ResolveSecretForCandy\|SelectCandiesForPlans' \
candy/plugin-deploy-pod/overlay.go
0
The two helpers now have zero call sites outside their own definitions and their own tests:
$ git -C sdk grep -n 'SelectCandiesForPlans(' origin/main -- '*.go' # only candy_for_plans.go:18 (the def)
$ git -C sdk grep -n 'ResolveSecretForCandy(' origin/main -- '*.go' # only secret_candy_resolve.go:101 (the def)
Their deletion is opencharly/sdk#552, filed separately — one cutover per PR, and they are in
another repo.
Nothing in the tree authors a `use: secret:` entry yet (`git -C charly grep -n 'use: secret:'
origin/main` and the same grep over this repo both return nothing relevant), so removing the env
injection cannot regress a live deployment: the mechanism has no consumer until the first candy
adopts §8, and by then the delivery path above is the one that exists.
## R10 — NAMED BLOCK, not run for this tree
This repo has five `disposable: true` entries, but **none exercises the overlay path this diff
touches**: they run `charly config` on pod entities (`check-pod-ensure-gate`,
`check-pod-secret-diagnostic`), never a pod deploy that builds an overlay.
I ran the closest one anyway:
$ charly -C <worktree> check run check-pod-ensure-gate
PASS pe-ensure-dispatch-runs
FAIL pe-config-path-completes (ghcr.io/opencharly/check-firecracker-app:2026.287.1522:
HTTP 403 Forbidden — the private-image block the manifest
itself names; pullability is plugin-deploy-pod#65)
check run: FAIL (exit 2)
and the run's own log names a LOCAL OVERRIDE at ANOTHER session's checkout
(`.worktrees/wave-script/plugin-deploy-pod`, still carrying `InjectSecretsIntoPlans`), so the
passing arm cannot be attributed to this tree either. The plugin also has no unit harness that
drives `buildOverlay`.
So: no R10 evidence is claimed for this diff. What IS proven: the module builds, vets and tests on
the bumped pins, and the replacement's own path is proven in sdk — the plan carries the `FileStep`
(sdk TestBuildDeployPlan_CarriesTheSecretDeliveryStep) and a compiled step lands the file with mode
0600 and nowhere else (sdk TestACompiledSecretStepLandsTheFileAndOnlyThere).
Gates on the final tree (`candy/plugin-deploy-pod/` module): go build ./... rc=0, go vet ./... rc=0,
go test ./... -count=1 rc=0 with 0 failures, golangci-lint 0 issues, gofmt -l empty.
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: code/config — a plugin-side deletion in Blocks
Notes (non-blocking)
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…Step and leaks no env value Review round on #67. The previous commit removed the env injection; this one proves the behaviour it left behind, because "a deletion has no new behaviour to assert" was true of the deletion and false of the CHANGE: a plugin that used to inject values into `OpStep.Op.Env` now relies on `FileStep`s the host compiler already placed in `reply.Plans`. ## The test `candy/plugin-deploy-pod/overlay_secret_test.go` is the overlay path's first behavioural test — until it, no test and no bed covered `buildOverlay` (#68). - the fixture compiles the plan with the SAME `deploykit.BuildDeployPlan` the host calls, so the compiler half and the overlay half meet on one fixture; - the candy carries the authored `use: secret:` AND the old env-shaped `secret_require:` — without the latter the env assertion would have nothing to fail on, i.e. it would be vacuous; - a synthetic `OpStep` is the entry point the removed injection wrote into; - the only substitutions are the host RPCs the renderer needs: `HostBuild("step-emit", …)` returns a canned fragment, and the single venue command at the function's tail (the overlay `build -f …`) answers success. The assertion is about the PLAN, never the image, so no container engine is faked. Assertions: the compiled `FileStep` survives `buildOverlay`; no `OpStep.Op.Env` carries the secret's bytes, and none carries the `secret_require` KEY — the key is the store-independent half, because the removed injection set `env[<name>]` whether or not the store resolved a value (a required entry auto-generates a token). Both directions planted, run, and reverted: PLANT A (the injection put back): --- FAIL: OpStep "command" env carries the secret_require name "LAB_KEY" — the env injection is back PLANT B (the FileStep stripped from the input plans): --- FAIL: the overlay lost the compiled FileStep: []*spec.FileStep(nil) RESTORED: --- PASS ## R10 — the bed exists, and it cannot be attributed to this tree `check-pod-overlay` (charly core's charly.yml:1438) IS the overlay bed: a `pod:` deploy with `add_candy: [rg]` that forces real overlay Containerfile synthesis. I started it from the charly checkout, and its own resolution log names plugin plugin-deploy-pod: using LOCAL OVERRIDE …/.worktrees/wave-script/plugin-deploy-pod — ANOTHER session's checkout, which still contains `InjectSecretsIntoPlans`. A PASS would be about their tree and a FAIL about their tree; neither is evidence for this one. The run was also still resolving 193 repos when stopped, and touching that checkout is out of bounds. No R10 evidence is claimed. The behavioural proof above is what this diff has, and the bed gap is written into #68. Gates on the final tree (`candy/plugin-deploy-pod/` module): go build ./... rc=0, go vet ./... rc=0, go test ./... -count=1 rc=0 with 0 failures, golangci-lint 0 issues, gofmt -l empty. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: code/config — plugin-side deletion in Security screen: PASS — no secrets/exfiltration, no weakened guardrails, no suspicious dependencies (pins move to named merged tags), no embedded instructions. The body's "the reviewer should weigh it as such" is rhetorical framing, not a directive. Blocks
Notes (non-blocking)
Comments considered
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…r is "analysed on a live system" The prior footer claimed "fully tested and validated", which requires the change-class gate to have passed on the final tree. It has not: no bed exercised the overlay path against this worktree. The tier is downgraded rather than the claim defended. Measured, and it is why there is no evidence: the bed was started with CHARLY_REPO_OVERRIDE pointed explicitly at this worktree (so attribution was not the blocker) and produced no run directory in 40 minutes -- it was still provisioning plugins and resolving the projects ~193 pinned repos when stopped. The overlay path now has its first unit test (both plants proven), and the replacements D-SEC-1 property is proven end-to-end in sdk#551. What is NOT proven is a pod deploy. Filed as plugin-deploy-pod#68. Also corrected two countable notes from the review: the removed comment block is ELEVEN lines, not twelve, and sdk#552 covers THREE functions, not two. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
Review — BLOCKHead SHA: Change class: code/config — plugin-side deletion in Blocks
Notes (non-blocking)
Comments considered
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…nd the PR is the pin bump only
The first revision deleted the SelectCandiesForPlans -> ResolveSecretForCandy -> InjectSecretsIntoPlans
triple on the reasoning that BuildDeployPlan now compiles use: secret: entries into FileSteps, so the
injection was redundant. That reasoning was wrong.
The removed path does not consume use:. It consumes the env-shaped secret_require:/secret_accept:
declarations from box metadata, and those have REAL authored consumers:
./layer-qdrant/charly.yml:33 secret_require: [{name: QDRANT__SERVICE__API_KEY}]
./charly/box/fedora/box/openwebui-qdrant/charly.yml
./distro-fedora/box/openwebui-qdrant/charly.yml
./plugin-deploy-pod/charly.yml
That API key reaches a qdrant deployment ONLY through the injection. Deleting it would start the deploy
and leave qdrant with no admin key -- a regression, not a cleanup.
The PR's own test proved the path was live: the harness set SecretRequire so the env assertion had
something to fail on, which demonstrated that the removed call wrote an env entry for a secret_require
name. A test built to show the injection ran is also the proof that removing it changes behaviour.
So: overlay.go is restored to origin/main byte-identically, the harness is removed (it asserted a removal
that no longer happens), and this PR is the pin bump only -- sdk v0.2026320.617 -> v0.2026321.1237 and spec
v0.2026320.16 -> v0.2026321.1215, both merged tags. The plugin now builds against the sdk that ships
CompileSecretSteps so the migration can use it.
The deletion is filed as plugin-deploy-pod#70, blocked on migrating secret_require to use: secret:.
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: config — two dependency pin bumps ( Security screen: PASS — no secrets/exfiltration, no weakened guardrails, pins move to named module versions (no new module paths), no embedded instructions. Blocks
Notes (non-blocking)
Comments considered
I independently re-derived the surviving gap against the current pin-bump state (Blocks 1–2), which the prior deletion-round comments do not cover. Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
RESOLVED — closing, because the pin bump has no consumer and that is the honest reading The sweep the review asked for, now run properly: $ find . -name 'charly.yml' -not -path '*/.build/*' -not -path '*/.check/*' | wc -l
15670
$ find . -name 'charly.yml' -not -path '*/.build/*' -not -path '*/.check/*' | xargs grep -l '^\\s*use:' | wc -l
015,670 manifests, zero with an authored And that measurement is why I am closing this PR rather than pushing a fifth time. If no manifest declares Block 2 (A3, the tier) is the same fact from the other side: the new The branch is left in place, unpushed-of-changes: What is left behind, and it is worth more than the PR: And the finding this PR produced is recorded in the ledger: a grep for the shape you are ADDING is not a grep for the shape you are REMOVING. Agent: lead |
Summary
A pin bump, and the measurement that stopped a regression.
The intent of this branch was to delete the
SelectCandiesForPlans→ResolveSecretForCandy→InjectSecretsIntoPlanstriple, on the reasoning thatdeploykit.BuildDeployPlannow compilesuse: secret:entries intoFileSteps so the injection is redundant. That reasoning was wrong, and the validator caught it. This PR is now only the pin bump; the deletion waits for a migration that must happen first.Why the deletion would have been a regression
The body of the first revision claimed the removed call "was a no-op on every current deployment — it resolved an empty set and injected nothing", supported by
grep 'use:'returning 0. That grep answers the wrong question. The removed path does not consumeuse:; it consumes the env-shapedsecret_require:/secret_accept:declarations from box metadata:Those are live, authored consumers.
layer-qdrant/charly.yml:33:That key reaches a qdrant deployment only through
InjectSecretsIntoPlans→OpStep.Op.Env. Deleting the call removes the only path that delivers it: the deploy would start and qdrant would have no admin API key.And the PR's own test proved the path was live. The harness set
candyModel.SecretRequire = []spec.EnvDependency{{Name: "LAB_KEY"}}precisely so the env assertion had something to fail on — i.e. it demonstrated that the removed call wrote an env entry for asecret_require:name. A test built to show the injection ran is also the proof that removing it changes behaviour. That is the finding, and it is why the harness and the deletion are both gone from this diff.What remains
candy/plugin-deploy-pod/go.mod/go.sum:sdk v0.2026320.617 → v0.2026321.1237,spec v0.2026320.16 → v0.2026321.1215. Both tags are merged. The plugin now builds against thesdkthat shipsCompileSecretSteps, so the next change can use it — andBuildDeployPlan's newFileStepslot is inert for every candy that declares nouse:, which is all of them today.No production behaviour changes. The injection is untouched;
overlay.gois byte-identical toorigin/main.How tested
Run in the module, not the repo root —
go build ./...at the root reports "directory prefix . does not contain main module", which is a setup failure rather than a pass.No R7 pair is claimed, and none is needed: this diff changes two pin lines and regenerates the sums. There is no behaviour to assert. That is exactly the change class where a pasted
go test → okis the whole proof — and where claiming more would be the inflation the previous revision was blocked for.R10 honesty, premise and exit status pasted
Five beds exist; none is required here, because nothing in this diff runs at deploy time — the pins move and
overlay.godoes not change. The bed that would prove anoverlay.gochange (check-pod-overlay) was measured as not runnable to completion in this environment: started withCHARLY_REPO_OVERRIDEpointed explicitly at the worktree, it produced no run directory in 40 minutes while provisioning plugins and resolving ~193 pinned repos. That is recorded inplugin-deploy-pod#68and is why theoverlay.godeletion is not in this PR.Rulebook compliance
/charly-internals:plugin(this plugin's contract),/charly-internals:git-workflow(producer-first pins).plugin-deploy-pod#70.secret_require:keeps its env path until it is migrated;use: secret:has its file path. Two shapes, two paths, no duplication while both are authored.overlay.gois byte-identical toorigin/main.origin/main67533a8; no other session's checkout touched.go.modlines, so no service boundary is crossed and nothing is mocked.#68.Change classification
Kind: two pin bumps in
candy/plugin-deploy-pod.Breaking change + rollback: none —
overlay.gois byte-identical toorigin/main, and the pins move to already-merged tags. Rollback reverts twogo.modlines and regenerates the sums.Filed issues
secret_require:/secret_accept:reach a deployment only throughInjectSecretsIntoPlans→OpStep.Op.Env, which puts the secret VALUE in the IR (D-SEC-1). Migrating those declarations touse: secret:is the prerequisite for deleting the injection. Names the live consumers measured above.sdk, whose deletion is that migration's other half.Files changed
candy/plugin-deploy-pod/go.modsdkv0.2026320.617→v0.2026321.1237,specv0.2026320.16→v0.2026321.1215candy/plugin-deploy-pod/go.sumAgent: lead
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)