Skip to content

feat(check): land check-seam-proof, the bed that proves the config-time seam delivers - #1193

Merged
github-actions[bot] merged 4 commits into
mainfrom
feat/seam-proof-bed
Nov 17, 2026
Merged

github-actions[bot] merged 4 commits into
mainfrom
feat/seam-proof-bed

Conversation

@aitrawog

@aitrawog aitrawog commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

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_OVERRIDE at all.

The bed

Three entities in charly.yml:

  • seam-proof-candy — one secret_require: (SEAM_PROOF_TOKEN, key: charly/seam-proof/token),
    a non-empty candy: composition, and an ADE plan: no-op. No base: — a node cannot be both a
    secret-bearer and an image.
  • seam-proof-box — base: quay.io/fedora/fedora:43, distro: [fedora] (a LIST, and a composed
    candy's packages need it), candy: [seam-proof-candy].
  • check-seam-proof — pod: {image: seam-proof-box, disposable: true, lifecycle: dev} + a
    length-only check.

The run, on main's plugin, no override

$ charly -C charly check run check-seam-proof
[image-build] PASS · [check-image] PASS · [deploy-add] PASS · [config] PASS
[start] PASS · [wait-ready] PASS · [check-live] PASS · [feature-run] PASS
[update] · [check-live-rebuild] PASS · [cleanup] PASS
charly check run check-seam-proof: PASS (steps=16)

$ grep 'seam-proof-token' .check/check-seam-proof/2026.321.1922/config.log
  charly-check-seam-proof-seam-proof-token → created (from config)

$ grep 'seam-proof-token-delivered' .check/check-seam-proof/2026.321.1922/check-live.log
  PASS  check the container's environment carries SEAM_PROOF_TOKEN (non-zero length;
        the value is never printed)  [seam-proof-token-delivered]  exit=0

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 braced
reference 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 not

Proves: a candy's secret_require: reaches the container's environment at CONFIG time, through
the 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-ripgrep and therefore DOES install the ripgrep package — which is exactly why seam-proof-box declares distro: [fedora]. The two statements contradicted each other in the same tree. It now says what it is: one required secret, no base:, no services, and one warm composition so the build has a real installation to perform.

Does not prove — three limits, stated in the entity:

  1. Delivery, not retrieval. EnsureCandySecret MINTS a 32-byte token when the value is missing
    everywhere, so a pass means "delivered", not "read from a pre-seeded store".
  2. The IR limb only. The value is absent from the plan and the rendered script; it is still
    persisted into state
    as the unit's Environment=.
  3. A green bed is not a compliance claim. The handle-shaped answer is #BindOutput.binding,
    which is #Opaque (spec/schema/bind.cue:48-52), delivered at realize by the type owner's
    bind (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-branch then merged main in, changing the tree. Evidence captured before a merge does not cover the merge, so both the bed and box validate were re-run here:

$ git rev-parse HEAD
2ce9e0072ee8673b68e609c5836b995a6d38f1d9

How tested

The bed IS the test, and it is disposable: disposable: true means charly update may destroy and
rebuild it, which the run above exercises ([update] → [check-live-rebuild] → [cleanup]).

Unit gates for this repo's manifest:

$ charly -C . box validate
charly box validate: OK — checked 548 candies, 107 boxes, 51 deploys, 6 distros, 7 builders;
                             0 warnings, 0 errors

Rulebook compliance

  • R0 — /charly-check:check (bed authoring), /charly-internals:disposable, /charly-internals:git-workflow.
  • R1 — this PR closes docs(changelog): align 2026.193.1611 H1 with its filename #77, the issue that tracked it. The three limits it cannot prove are named in the entity's own description: and by issue (fix(check): close the phase-resync goroutine leak + its data race #75).
  • R2 — no duplication: the bed reuses check-k8s-deploy-app's base and this project's existing pod idioms.
  • R3 — no sleep, no retry: the check reads the environment and counts bytes.
  • R4 — the product gains a proof; the prose follows it.
  • R5 — N/A: nothing legacy deleted.
  • R6 — fresh worktree branch off origin/main; no other session's work touched.
  • R7 — the assertion fails if the seam delivers nothing (test "$n" -gt 0), and the plant for that is on plugin-deploy-pod#76's side, where the seam lives.
  • R8 — N/A: no live external service; the credential store is the operator's own.
  • R9 — the run used the worktree-local binary.
  • R10 — check-seam-proof, PASS, steps=16, on the committed tree.

Change classification

Kind: three new entities in charly.yml — a candy, a box, and a disposable: true pod bed.

Breaking change + rollback: none — three additive entities; no existing entity is modified, and rollback deletes them.

Filed issues

Files changed

file what changed
charly.yml three new entities: seam-proof-candy (the secret-bearer), seam-proof-box (composes it on a distro base), and check-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)

…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)
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 74cf1b7b72df7b09d33e4f22048fcec35ada4b40 (branch: feat/seam-proof-bed)

Change class: manifest-only, additive — three new entities in charly.yml (a candy, a box, a disposable pod bed); the bed run is the R10 evidence.

Blocks

  1. R1 / T3 — seam-proof-candy's own documentation contradicts the diff and its sibling entity. In charly.yml:

    • seam-proof-candy's description: says "Declares exactly ONE required secret and NOTHING else — no base, no packages, no services".
    • Its seam-proof-declared check text says "…and installs nothing".
    • But the entity actually carries a candy: [ '@github.com/opencharly/layer-ripgrep:v2026.235.1653' ] composition and a plan: block — so "NOTHING else" is already false.
    • Worse, seam-proof-box's own inline comment states distro: [fedora] # …the composed candy installs its packages with these, i.e. the composed candy (seam-proof-candy, via layer-ripgrep) does bring packages. The candy's "no packages"/"installs nothing" and the box's "the composed candy installs its packages" cannot both be true in the same tree.

    This is a documentation↔reality divergence (R1) and a description↔code mismatch (T3): the description omits/contradicts the candy: composition and plan that the diff plainly contains. Fix: rewrite seam-proof-candy's description: and the seam-proof-declared check text to accurately state that the candy composes one warm layer (layer-ripgrep) and therefore brings packages, and drop the "NOTHING else / no packages / installs nothing" claims.

Verdict: BLOCK


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

View action run

…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)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 1a3372091b4ddedb7c29e4d5286fa2c86733ca59 (branch: feat/seam-proof-bed)

Security screen: PASS
Checklist: All applicable rules PASS or NA.
Comment intake: @github-actions[bot] BLOCK at 74cf1b7b — stale-superseded: its finding (candy description/check text claiming "NOTHING else / no packages / installs nothing" contradicting the layer-ripgrep composition and the box's distro: comment) is resolved in the current diff by commit 1a337209, which rewrites the description to state the warm composition and the box's distro dependency, and rewrites the check text to "adds no services … no-op that must pass"; the box comment and candy description are now consistent.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 17, 2026 19:09
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 2ce9e0072ee8673b68e609c5836b995a6d38f1d9 (branch: feat/seam-proof-bed)

Change class: manifest-only, additive — three new entities in charly.yml (a candy, a box, a disposable pod bed).

Blocks

  1. R10 / body-truthfulness — the proof is on a stale head, not the committed tree. The body's "Head evidence" pastes git rev-parse HEAD = 1a3372091b4d…, but the actual head is 2ce9e0072ee8… — the newest commit in the list is "Merge branch 'main' into feat/seam-proof-bed". Both the bed run (charly check run check-seam-proof PASS, steps=16) and charly box validate (0 warnings, 0 errors) were produced at 1a337209, before main was merged in. The merge changed the tree after the evidence was generated, so the pasted proof does not cover the current head — and the body's own git rev-parse HEAD output now contradicts the real HEAD. Fix: re-run the bed and charly box validate on 2ce9e007 (the merged head) and paste that output, and correct the "Head evidence" SHA.

Comment intake

  • @github-actions[bot] BLOCK at 74cf1b7b — stale-superseded: its finding (candy description/check text claiming "NOTHING else / no packages / installs nothing" while composing layer-ripgrep) is resolved in the current diff by 1a337209, which rewrites the description to state the warm composition and the box's distro: dependency, and rewrites the check text to "adds no services … no-op that must pass".
  • @github-actions[bot] PASS at 1a337209 — stale-superseded: it validated the pre-merge tree; the head has since moved to 2ce9e007 (merge), so that PASS does not cover the current head and grants nothing (independence clause).

Verdict: BLOCK


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

View action run

…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)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: a703faeb720786b9952f7a18c0ec8f52c74716cc (branch: feat/seam-proof-bed)

Change class: manifest-only, additive — three new entities in charly.yml (candy / box / disposable pod bed).

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).
Checklist: All applicable rules PASS or NA.

Comment intake:

  • @github-actions[bot] BLOCK @ 74cf1b7b — stale-superseded: the current seam-proof-candy description: states the layer-ripgrep warm composition and the box's distro: dependency, and the seam-proof-declared check text no longer claims "installs nothing"; the box comment and candy description are now consistent in the same tree.
  • @github-actions[bot] PASS @ 1a337209 — stale-superseded: it validated the pre-merge tree; grants nothing either way (independence clause).
  • @github-actions[bot] BLOCK @ 2ce9e007 — verified-non-blocking (resolved): its finding was that the proof predated the main merge. The current body carries a re-run at the merged head (git rev-parse HEAD = 2ce9e007), both the bed (steps=16, [update] → [check-live-rebuild]) and box validate (0 warnings, 0 errors), plus a causal RCA paragraph (pre-merge evidence does not cover the merge). Head has since moved to a703faeb by the "re-trigger" commit, which adds no file change (the diff is still exactly the three entities), so the 2ce9e007 evidence covers the shipped tree.

Non-blocking notes: (1) the body's "Head evidence" SHA is one commit behind the PR head — harmless here because a703faeb is an empty re-trigger, but naming that in the body would remove the ambiguity; (2) the Summary's bare "Closes #77" resolves in-repo to opencharly/charly#77 while ## Filed issues names opencharly/plugin-deploy-pod#77 — use the full owner/repo#n form in the Summary to avoid closing the wrong issue.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot merged commit 0e76268 into main Nov 17, 2026
6 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 17, 2026
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.

1 participant