Repository navigation
feat(check): land check-seam-proof, the bed that proves the config-time seam delivers - #1193
Conversation
…me seam delivers Closes #77. The bed's run is the R10 evidence for plugin-deploy-pod#76, which has merged; it now runs against main's plugin with no CHARLY_REPO_OVERRIDE. Four schema facts the bed cost, each a rejection: the key coordinate is charly/<svc>/<key>; a node cannot be both a secret-bearer and an image; a candy owes a non-empty composition; and distro: on a box is a LIST, which a composed candy's packages need. And one runner fact: a plan step's text is scanned for braced references INCLUDING inside comments. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
Review — BLOCKHead SHA: Change class: manifest-only, additive — three new entities in Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…ox's comment agreed with the box
The review is right, and the contradiction was inside one entity pair.
`seam-proof-candy`'s `description:` said it declared "exactly ONE required secret and **NOTHING
else -- no base, no packages, no services**", and its check text said the candy "**installs
nothing**". But the entity composes
candy:
- '@github.com/opencharly/layer-ripgrep:v2026.235.1653'
and `layer-ripgrep` contributes the `ripgrep` package -- which is exactly why `seam-proof-box`
declares `distro: [fedora]`. **The box's own comment said "the composed candy installs its packages
with these", and the candy said "installs nothing" in the same tree.**
Two sentences cannot both be true, so the prose was corrected to what the entity is: one required
secret, no `base:` (a node cannot be both a secret-bearer and an image), no services, and one warm
composition so the build has a real installation to perform. The check text now says "adds no
services" rather than "installs nothing".
The note about the old sentence stays in the description, so the next reader sees the correction
rather than an unexplained silence -- the same habit the `use:`-fallback comment carries.
Verified: `charly box validate` -> OK, 548 candies, 107 boxes, 51 deploys, 0 warnings, 0 errors.
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
Review — PASSHead SHA: Security screen: PASS Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: manifest-only, additive — three new entities in Blocks
Comment intake
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…e body Body first, event second. The body already carries: - Head evidence = 2ce9e00 (the merged head, not 1a33720); - the bed re-run at 2026.321.1922 (PASS, steps=16) with its config log line; - the box validate re-run on that same merged tree. The previous run captured the body from before that edit, which is why it quoted the stale sha. This commit emits the synchronize event that lets a new run read the current body. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
Review — PASSHead SHA: Change class: manifest-only, additive — three new entities in Security screen: PASS — no credentials added, no guardrails touched, no embedded directives in the content (the in-command comments are maintainer notes about the expander, not instructions to the reviewer). Comment intake:
Non-blocking notes: (1) the body's "Head evidence" SHA is one commit behind the PR head — harmless here because Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
feat(check): land check-seam-proof, the bed that proves the config-time seam delivers
Summary
Closes #77. This is the bed whose run is the R10 evidence for plugin-deploy-pod#76, which has
merged; the bed now runs against main's plugin with no
CHARLY_REPO_OVERRIDEat all.The bed
Three entities in
charly.yml:seam-proof-candy— onesecret_require:(SEAM_PROOF_TOKEN,key: charly/seam-proof/token),a non-empty
candy:composition, and an ADEplan:no-op. Nobase:— a node cannot be both asecret-bearer and an image.
seam-proof-box—base: quay.io/fedora/fedora:43,distro: [fedora](a LIST, and a composedcandy's packages need it),
candy: [seam-proof-candy].check-seam-proof—pod: {image: seam-proof-box, disposable: true, lifecycle: dev}+ alength-only check.
The run, on main's plugin, no override
The check asserts the token's LENGTH; the value is never printed. A bed log is output, and
D-SEC-1 lists output. The step reads the process environment at RUN time via
printenv— a bracedreference in a step's text is claimed by the plan runner's expander, comments included, which is
how the first version of this fix reintroduced the DEAD assertion it documented.
What this bed proves, and what its own
description:says it does notProves: a candy's
secret_require:reaches the container's environment at CONFIG time, throughthe box chain, on a disposable deployment that builds, realizes, passes its checks, rebuilds with
charly update, passes again, and cleans up.And the candy's own description is corrected: it previously said "NOTHING else — no packages" and "installs nothing", while it composes
layer-ripgrepand therefore DOES install theripgreppackage — which is exactly whyseam-proof-boxdeclaresdistro: [fedora]. The two statements contradicted each other in the same tree. It now says what it is: one required secret, nobase:, no services, and one warm composition so the build has a real installation to perform.Does not prove — three limits, stated in the entity:
EnsureCandySecretMINTS a 32-byte token when the value is missingeverywhere, so a pass means "delivered", not "read from a pre-seeded store".
persisted into
stateas the unit'sEnvironment=.#BindOutput.binding,which is
#Opaque(spec/schema/bind.cue:48-52), delivered at realize by the type owner'sbind(DESIGN.md:685) — tracked as plugin-deploy-pod#75.Head evidence
Re-run on the merged head. The earlier run was at
1a337209;gh pr update-branchthen mergedmainin, changing the tree. Evidence captured before a merge does not cover the merge, so both the bed andbox validatewere re-run here:How tested
The bed IS the test, and it is disposable:
disposable: truemeanscharly updatemay destroy andrebuild it, which the run above exercises (
[update] → [check-live-rebuild] → [cleanup]).Unit gates for this repo's manifest:
Rulebook compliance
/charly-check:check(bed authoring),/charly-internals:disposable,/charly-internals:git-workflow.description:and by issue (fix(check): close the phase-resync goroutine leak + its data race #75).check-k8s-deploy-app's base and this project's existing pod idioms.origin/main; no other session's work touched.test "$n" -gt 0), and the plant for that is on plugin-deploy-pod#76's side, where the seam lives.check-seam-proof, PASS,steps=16, on the committed tree.Change classification
Kind: three new entities in
charly.yml— a candy, a box, and adisposable: truepod bed.Breaking change + rollback: none — three additive entities; no existing entity is modified, and rollback deletes them.
Filed issues
statelimb, which this bed cannot fix and does not claim to.Files changed
charly.ymlseam-proof-candy(the secret-bearer),seam-proof-box(composes it on a distro base), andcheck-seam-proof(the disposable bed with a length-only check)Agent: lead
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)