Skip to content

docs(build,internals): the cmd emitter is a heredoc, and two named helpers do not exist - #73

Merged
atrawog merged 9 commits into
mainfrom
feat/emit-quoting-doc-drift
Aug 17, 2026
Merged

atrawog merged 9 commits into
mainfrom
feat/emit-quoting-doc-drift

Conversation

@atrawog

@atrawog atrawog commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary of changes

This is a REGENERATION, not an authored edit. All five artifacts carry a
GENERATED by … — DO NOT EDIT header; the source is the skill: entities in
candy/charly-build/charly.yml and candy/charly-internals/charly.yml, landing as
opencharly/charly#297.

This PR must merge BEFORE charly#297 — a projection lands ahead of the source that pins it.

The prose said The code does
emitCmd emits bash -c $'…\n…' (ANSI-C quoting) EmitCmd emits a single-quoted heredoc <<'OVCMD', behind a bash-preferred / POSIX-fallback prefix
shellAnsiQuote(s) does that quoting No such symbol — git grep returns nothing in *.go, either module
shellSingleQuote(s) quotes LABEL and env values The helper is spec.ShellQuote. A different, unrelated shellSingleQuote exists in candy/plugin-adb — same name, no relationship
stageInlineContent(...) Exported and relocated: StageInlineContent, sdk/deploykit/tasks_stage.go
tasks.go holds "all task emission logic" A thin shim to deploykit.Generator.EmitTasks; the emitters live in sdk/deploykit

The ANSI-C form was abandoned, not renamed: $'…' is a bashism, so it made every candy shell step
unbuildable on a busybox base. The sdk leg replaced it with a heredoc behind BuildStepShellDashC() /
BuildStepShellHeredoc(); the documentation never caught up.

Why the replacement names a mechanism, not a helper. A reader searching for shellAnsiQuote finds
nothing and cannot tell whether it was renamed, relocated, or removed — the text offers no way to
recover the truth by inspection. The new prose names <<'OVCMD' and explains why the single-quoted
delimiter matters (the outer shell performs no expansion, so an author's $(cmd) and ${VAR} reach
the inner shell intact), so it survives future renames. It also states that the ANSI-C form is gone
and why, rather than silently dropping it — a reader arriving from the old text needs the retraction.

Change class

Documentation-only, cross-repo. Two candy skill: sources here, plus their regenerated
projections. Projection-before-source landing order:

plugins#198  ─┐
docs#73      ─┼─→  charly#297 (this PR; pins both gitlinks)

Both gitlinks currently name unmerged branch heads — the normal mid-flight state. They must be
re-derived from each submodule's origin/main
before this merges: the CalVer commit and the squash
both move the ref. That trap has already cost this program a round on box/arch.

How R10-tested — exact gate, commands, and pasted output

  • Gate for this change class: the non-runtime standards. No bed applies — no code or config changed.
  • Eval beds run: none. N/A (documentation-only).
  • Fresh rebuild: binary rebuilt from this tree via task build:binary → 2026.229.1922, and the
    validate/generate gates below ran on it (R9).
  • Did the CHANGED code path execute live? No code changed. The claims were verified live — see below.
  • Concurrency: N/A.
$ ./bin/charly version                 2026.229.1922   (rebuilt from this tree)
$ ./bin/charly box validate            exit 0, 0 warning lines
$ ./bin/charly marketplace generate    my 5 artifacts in sync
$ task docs:sync                       my 5 pages in sync

The claims were verified against the code and then against a live build, not by reading alone:

alpine:3.20 (no /bin/bash), heredoc form  -> /bin/sh; single quotes, double quotes,
                                             $HOME, backticks, embedded newlines intact   exit 0
alpine:3.20, the pre-fix `bash -c` form   -> /bin/sh: bash: not found                     exit 127
debian:13-slim, heredoc form              -> /bin/bash 5.2.37(1)-release                  exit 0
alpine:3.20, the `-c` ($1-passing) form   -> sq='x' dq="y"  arith=42  home=/root          exit 0

The counterfactual is what makes this evidence rather than a demonstration: the form the old prose
documented fails on the base the new form exists for.

Drift — and a measurement rather than an assumption

charly marketplace generate from this tree also rewrites nine further artifacts — pr-validator.md,
the four git-workflow references, core/skills/clean, the two ollama skills — and deletes
ollama/skills/ollama-cli/SKILL.md. All nine were reverted. task docs:sync likewise rewrites
thirteen pages and adds an ollama-cli page; those were reverted too.

That they are not mine was measured, not asserted. Reverting both candy edits and regenerating
from unmodified main produces the identical nine:

BASELINE (my edits absent, submodules at main):  9 changed  ← same files, same deletion
WITH my edits, filtered:                         5 changed  ← all attributable to these symbols

They are projections whose sources sit in other in-flight PRs (charly#289, and the ollama orphan
the open ollama leg — docs#70 carries the projected page; an earlier revision of this body cited charly#291, which does not resolve). Regenerating them here would land those PRs' projection halves without their source
halves — the inversion that has already cost this program a round, and the exact hazard the #289
validator flagged on #296.

Consequence, stated plainly: charly marketplace drift still exits 1 on this tree — at the same
nine artifacts it exits 1 on for main today. This leg adds none and removes none. I am flagging
it rather than letting a validator discover it, because the rule at
candy/charly-internals/charly.yml — "a validator will not put a release tag on a tree whose gate
exits 1"
— would otherwise read as blocking. If you judge that it does block, the fix is landing
#289 and the ollama leg, not regenerating their artifacts from here.

Attribution tier

documentation reviewed. Documentation-only change class, every non-runtime standard passed. The
supporting live build is evidence for the claims, not a runtime gate for this diff — no code or
config changed, so a higher tier is not available and is not claimed.

Harness rulebook compliance

  • R0 skills: /charly-build:generate and /charly-internals:generate-source (the emitter),
    /charly-internals:go (the source map), /charly-internals:skills (generated-vs-authored),
    /charly-internals:git-workflow (projection-before-source order).
  • R1 RCA + zero warnings: a documentation divergence is an incident. Root cause: the sdk leg
    replaced the ANSI-C form with a heredoc and the candy prose was never swept. box validate reports
    zero warnings.
  • R2 no out-of-scope: the finding arrived as "the shellAnsiQuote cross-reference is dangling."
    Checking rather than fixing only what was reported found four more stale claims in the same
    passages, including a second non-existent helper and a whole rationale paragraph. All are fixed here.
  • R3 no duplication: the claim was fixed at both sources and every projection, not at the one site
    where it surfaced.
  • R4 / R4a: the code was already correct; only the prose was wrong, which is the one case where a
    documentation-only fix is legitimate. No caveat was added in place of a fix.
  • R5 delete legacy completely: git grep over both candy sources returns shellAnsiQuote twice
    and shellSingleQuote once — all three are deliberate past-tense retractions ("both are gone",
    "the former pair"). stageInlineContent returns zero.
  • R6 git safety: no destructive action. One near-miss worth recording: saving both edited files to
    one directory collided on the basename charly.yml and lost one copy before a deliberate revert.
    Recovered — the larger edit survived, the lost one was a single line reproduced exactly, and the
    restored tree was re-verified symbol by symbol.
  • R7 runtime gate: N/A — documentation-only. No runtime path changed.
  • R8 artifact invariants: the projections were regenerated by their generators and verified in
    sync, never hand-edited.
  • R9 binary == source: rebuilt via task build:binary → 2026.229.1922; all gates ran on it.
  • R10: documentation-only gate, above. No bed applies.
  • RDD / ADE / SDD: N/A — no candy authored, no .cue edit.
  • Hard cutover: one atomic commit per repo.
  • Kernel/plugin boundary law: N/A — no Go.

What is NOT proven

  • The nine drifting artifacts are not repaired here, deliberately, and marketplace drift exits 1
    as a result. Measured identical to main's baseline.
  • The live build exercised the emitted directive, not the emitter. I built the exact strings
    BuildStepShellDashC()/BuildStepShellHeredoc() return and the real EmitCmd/EmitDownload
    output, but did not run a full charly box build end to end — that belongs to the sdk leg's gate,
    which already ran.

Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)

…I-C quoting

Regeneration of five pages whose source prose described a mechanism the
emitter no longer uses and named two symbols that exist nowhere in the tree.

  emitCmd + $'...' ANSI-C quoting  ->  EmitCmd + a single-quoted <<'OVCMD' heredoc
  shellAnsiQuote(s)                ->  gone; the ANSI-C form required bash
  shellSingleQuote(s)              ->  spec.ShellQuote
  stageInlineContent(...)          ->  StageInlineContent (sdk/deploykit)

Source: the skill: entities in candy/charly-build/charly.yml and
candy/charly-internals/charly.yml. Ground truth read out of
sdk/deploykit/tasks_emit.go and confirmed by a live podman build of the emitted
directive on a busybox base, with the pre-fix bash -c form as the counterfactual
(exit 127).

Regenerated on origin/main and filtered to the attributable files. A wholesale
regeneration also rewrites unrelated pages and ADDS an ollama-cli page;
those are drift from candy sources not yet on superproject main, and reverting
them is deliberate.

Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
@atrawog

atrawog commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — CHANGES REQUESTED ❌

Change class: documentation-only (generated projection). No bed applies; the gate is the non-runtime standards. Tier ceiling documentation reviewed.

Measured against — evidence in this program decays, so every claim below is anchored:
docs@693890ee4dd978e0aa44865f5db82a6f780f0130 (PR head) · docs main@982b5946 · charly main@ca76c354 · charly#297 head@d320fe48 · sdk main@1e038a0 · sibling plugins#198.


What I verified as TRUE (re-derived, not taken on your word)

Claim My re-derivation Verdict
shellAnsiQuote exists nowhere in *.go, either module git grep shellAnsiQuote origin/main -- '*.go' → zero in superproject and sdk ✅ true
EmitCmd emits a single-quoted heredoc, not bash -c $'…' sdk/deploykit/tasks_emit.go:347-385 — fmt.Fprintf(b, "%s <<'OVCMD'\n", BuildStepShellHeredoc()), then BuildArchExports(), env exports, set -e, body, OVCMD ✅ true
The prefix string in your new table row BuildStepShellHeredoc() (tasks_emit.go:338-340) returns byte-for-byte sh -c 'SH=/bin/sh; [ -x /bin/bash ] && SH=/bin/bash; exec "$SH"' sh ✅ exact
The quoting helper is spec.ShellQuote EmitDownload tasks_emit.go:317 quotes the whole command, :253-254 the env; EmitCmd:376 the env ✅ true
StageInlineContent exported; stageInlineContent gone sdk/deploykit/tasks_stage.go:17; lowercase form → zero hits ✅ true
The five pages are a faithful projection, not a hand-edit Diffed charly#297's candy hunks against this PR's page hunks — byte-identical modulo the generator's /charly-x:y → […](/recipes/…/) rewriting ✅ no hand-editing

Nothing here is a hand-edited generated page, and the headline thesis is correct. The problem is that the sweep stopped short, and the replacement text introduces a new instance of the very defect this PR exists to remove.


BLOCKING findings

1. The replacement text names a shim that does not exist — the PR's own defect class, reproduced

recipes/internals/go/source-map.md (line 252, a line this PR edits):

| tasks.go | A thin shim to deploykit.Generator.EmitTasks, kept for the pod-overlay deploy path …

and again in the sdk/deploykit row (also edited by this PR):

emitTasks in charly/tasks.go is a thin shim to deploykit.Generator.EmitTasks that stays for the pod-overlay

Measured at charly main@ca76c354:

$ git show origin/main:charly/tasks.go | wc -l
64
$ git show origin/main:charly/tasks.go | grep -nE "^func |EmitTasks|emitTasks"
45:func invokeOpEmitFragmentOpt(ctx context.Context, prov Provider, word string, params []byte, buildEnv spec.BuildEnv, allowEmpty bool) (string, error)
$ git grep -n "\.EmitTasks(" origin/main -- 'charly/*.go' | grep -v _test
(no output)

charly/tasks.go is 64 lines and defines exactly one function — invokeOpEmitFragmentOpt, the build-context OpEmit fragment seam. There is no emitTasks symbol anywhere in the superproject (every hit is prose in a comment or a test comment), and no file in charly/ calls Generator.EmitTasks outside tests. A reader who greps for the shim you point them at finds nothing — which is precisely the failure mode your PR body describes for shellAnsiQuote.

The file's own header comment already holds the accurate wording ("the per-verb Containerfile-line emitters live in sdk/deploykit (tasks_emit.go)"), and what actually remains in tasks.go is the OpEmit fragment seam. That is what the row should say.

2. The file you are fixing still teaches the abandoned bash -c form, four lines below an edited line

recipes/internals/generate-source/task-emission.md:31, inside the same fenced pipeline block whose line 27 you changed:

       case "command":  emitCmd         (RUN bash -c 'set -e; ...' + /ctx bind)

Your own corrected table 30 lines below emits sh -c 'SH=/bin/sh; …' sh <<'OVCMD', and your new paragraph says "both are gone — that form required bash, which a busybox base does not have." The page now asserts both. A reader on a busybox base is still taught the form this PR exists to retract.

3. The same false claim your body lists as FIXED survives in two pages this PR edits

Your body's table row — "tasks.go holds 'all task emission logic'" → "A thin shim…" — was applied to source-map.md only:

  • task-emission.md:12 (opening sentence of the edited section): "All install-task logic lives in a single file: charly/tasks.go (~380 lines) — but emitTasks there is a thin shim…"
  • build/generate.md (the line immediately after one you edited): "charly/tasks.go (~430 lines, emitTasks shim → deploykit)"

Actual: 64 lines, no emitTasks. Two different wrong line counts (~380 and ~430), ~6× off, in pages this PR touches.

4. The emitter table was half-swept — six sibling rows still name symbols with zero referents, and one contradicts your new helper row

Only the emitCmd row was promoted. Its siblings keep the lowercase names and the retired parameter type:

Row as it ships Reality at sdk main@1e038a0
emitVarsEnv(b, vars) EmitVarsEnv (tasks_emit.go:88)
emitMkdirBatch(b, []Task, img) EmitMkdirBatch(b, []vmshared.Op, …) (:110)
emitCopy(b, Task, layerStage, img) EmitCopy(b, vmshared.Op, …) (:137)
emitWrite(b, Task, srcPath, img) EmitWrite (:153)
emitLinkBatch(b, []Task, img) EmitLinkBatch (:169)
emitSetcapBatch(b, []Task, img) EmitSetcapBatch (:184)
emitDownload(b, Task, img) → bash -c '… curl …' EmitDownload (:237) emits BuildStepShellDashC() = sh -c 'SH=/bin/sh; …'

Every lowercase name has zero function definitions in either module, and Task is now vmshared.Op — you applied exactly that correction to one row. The emitDownload row is worse than stale: it contradicts the helper row you add two lines below it, which states EmitDownload uses the bash-probe -c prefix. Same for resolveUserSpec(t.User, img) in the flow block (real: deploykit.ResolveUserSpec).

5. Your edit falsified the un-edited heading directly above it

task-emission.md:64-66 still reads:

Shell-quoting helpers (charly/tasks.go)

Two helpers in tasks.go handle the two shell-quoting problems…

The rows you put under it name spec.ShellQuote (package spec) and BuildStepShellDashC/BuildStepShellHeredoc (sdk/deploykit/tasks_emit.go). Neither lives in tasks.go. The heading was defensible before this edit and is false after it.

6. The PR body has no attribution footer, and the commit trailer claims a tier the change class cannot support

The body does not end with the mandatory italicized *Assisted-by: <Harness> <Provider Full Model Name> (<confidence>)* line. Separately, the commit trailer reads Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system) while the body's Attribution tier section claims documentation reviewed. For a documentation-only diff there is no changed runtime path to have run live; documentation reviewed is the ceiling, and the two statements must agree.


Where the fix belongs

Not here. These are generated pages. Fix at the source in charly#297 and regenerate all three projections. Source lines at charly#297@d320fe48:

  • candy/charly-internals/charly.yml:3369 — the "~380 lines / emitTasks thin shim" sentence (finding 3)
  • :3379 — resolveUserSpec(...) (finding 4)
  • :3388 — case "command": emitCmd (RUN bash -c 'set -e; ...') (finding 2)
  • :3413-3417 — the emitter-table sibling rows incl. emitDownload's bash -c (finding 4)
  • :3420-ish — the ### Shell-quoting helpers (charly/tasks.go) heading + "Two helpers in tasks.go" (finding 5)
  • :5480 and :5481 — the tasks.go row and the sdk/deploykit row's shim sentence (finding 1)
  • candy/charly-build/charly.yml generate-skill — "charly/tasks.go (~430 lines, emitTasks shim → deploykit)" (finding 3)

Findings 2-5 are also live in plugins#198 (internals/skills/generate-source/references/task-emission.md:5,24; build/skills/generate/SKILL.md:282) — verified there directly; that leg needs the same regeneration.

On "pre-existing": findings 2-5 are older text, and that does not soften them. Each sits in a page this PR edits, in the same claim family the PR is fixing, and finding 4's emitDownload row plus finding 5's heading are contradicted by lines this PR adds. A contradiction whose either half is in the diff is blocking, and R2 bars routing them out.

Non-blocking, verified, for the record

  • Your reverted-13 / ollama-cli routing is right. It names a real, advancing exit rather than a vague deferral: docs#70 (ollama regeneration, OPEN, carries recipes/ollama/ollama-cli.md) and charly#289 (OPEN). Regenerating them here would land those PRs' projections without their sources. I did not re-run task docs:sync — that needs a binary built from the tree and would touch shared checkouts. Instead I derived attribution from the source diff, which discriminates the dangerous direction: charly#297 touches exactly four skill: entities, whose projections are exactly your five pages, so nothing attributable to this change was reverted.
  • charly#291 (cited in your body as the ollama orphan) does not exist — Could not resolve to a PullRequest. The ollama leg is docs#70.
  • Body inaccuracy, not shipped: shellSingleQuote in candy/plugin-adb is not "unrelated" — install.go:92-93 is var shellSingleQuote = spec.ShellQuote, literally an alias of the same function, annotated "the shared kit helper (FU-11 — formerly duplicated in core + plugins)."
  • CHANGELOG clean: 2026.229.0000.md matches ^\d{4}\.\d{3}\.\d{4}\.md$, H1 byte-equals # 2026.229.0000 — …, and neither the file nor tag v2026.229.0000 exists on docs main.
  • No hand-edited generated page, no security/anti-tampering finding, no supply-chain or guardrail change, no Go — the architecture gate is N/A for this diff.

Comments considered: none — the PR carried no comments.

Cross-PR interactions considered: docs#69, docs#70 — both OPEN, both touch recipes/index.md + reference/providers.md, neither touches any of these five pages: no overlap, non-blocking. plugins#198 (sibling projection) and charly#297 (source) carry the same residues: coordination comments posted on both. Landing order confirmed — this PR must merge before charly#297, whose gitlinks must then be re-derived from each submodule's origin/main.

Decision: CHANGES REQUESTED. Fix findings 1-6 at the candy sources in charly#297, regenerate docs#73 + plugins#198, push; the status resets and I re-run.

Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)

@atrawog

atrawog commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — addendum: cold-reader pass (supplements the CHANGES REQUESTED verdict above)

I ran the mandatory cold reader — a fresh agent given only these two pages (recipes/internals/generate-source/task-emission.md and recipes/build/generate.md at this PR's head), forbidden every source file, skill and search. Its job is to detect what I structurally cannot: I have read the emitter, so I repair every gap from memory without noticing.

It independently reproduced findings 2-5 without being told they existed — it named the bash -c line as the first thing it read, called the emitter table's mixed emitX/EmitCmd casing unreadable, and flagged the ~380/~430 spread as "a 13% spread on a number whose only purpose is to be checkable." Asked what a cmd: step emits, it answered: "The pages give me two different answers, and I cannot tell which is real." That is the shipped state of the page this PR fixes.

It also surfaced two further false claims I then verified against the code. Both are in generate.md, which this PR edits, and both contradict task-emission.md, which this PR also edits:

7. generate.md:125 — the download: row claims a pipe; the code writes a content-addressed cache file.

Shipped: RUN --mount=type=cache,dst=/tmp/downloads <shell-probe> 'export BUILD_ARCH=$(uname -m); curl -fsSL <url> | <extractor>'

sdk/deploykit/tasks_emit.go:276 builds curl -fsSL "$__u" -o "$__c.part" && mv -f "$__c.part" "$__c" into /tmp/downloads/$(… sha256sum …), then cmd := fetch + " && " + extractCmd where the extractor reads "$__c". There is no pipe anywhere. task-emission.md's own row has the cache form right — so the two edited pages disagree, and the one a reader hits first is the wrong one.

8. generate.md — the write: row emits a --from=<layer-stage> the code never writes.

Shipped: COPY --from=<layer-stage> --chmod=<mode> [--chown=] .build/<image>/_inline/<layer>/<sha256> <dest>

EmitWrite (tasks_emit.go:153-165) emits COPY --chmod=<mode> [--chown=<u:g>] <srcPath> <dest> — no --from=, which is right, because the source is a build-context path. The reader caught this by pure internal logic: a .build/… context path and --from=<layer-stage> cannot both be true. (Flag order also differs across the two pages; the code emits --chmod= first, so task-emission.md's [--chown=] --chmod= is the wrong ordering.)

Reader-reported, not independently verified by me — worth handling at the source since you are regenerating anyway: Op in the corrected EmitCmd(b, Op, …) row is defined nowhere on the page while every sibling row says Task (this is my finding 4 seen from the other side — the fix is naming vmshared.Op once); case "plugin" has no counterpart in the Task struct's eight documented fields, so by the page's own "exactly one of" rule a plugin task has no authoring path; resolveProvisionScript (task-emission) vs ProvisionActor.RenderProvisionScript (generate) for the same fast path; case "build": WriteCandySteps (deploykit) handles builder placement sits inside the switch the same page says runs inside WriteCandySteps; <layerStage> appears in four emitter outputs and is never defined; #67 and K-wave 2 are cited eight times as common knowledge.

Its structural observation is the one worth acting on: the same pipeline is rendered three times — the numbered block in task-emission.md, the per-verb table below it, and a third numbered block in generate.md whose steps 5 and 6 differ in content. "Three renderings of one pipeline is why they disagree; keep one." That is an R3 finding at the candy source, and it is the mechanism that let a retracted bash -c survive in the same file as its own retraction.

None of this changes the verdict — it sharpens what to fix in charly#297 before regenerating docs#73 and plugins#198.

Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)

A validator failed round 1 on the finding that lands hardest: this change's own
thesis is that documentation naming non-existent symbols is a defect, and its
replacement prose named non-existent symbols.

  "tasks.go is a thin shim to deploykit.Generator.EmitTasks"
      -> charly/tasks.go is 64 lines, ONE function invokeOpEmitFragmentOpt, and
         CANNOT shim a deploykit method (P16 import purity forbids charly/
         importing the sdk at all)
  emitPluginFragment  -> zero declarations anywhere; real: invokeOpEmitFragmentOpt
  case "command": emitCmd (RUN bash -c ...)
      -> the retracted form surviving 45 lines above its own retraction
  emitDownload row: bash -c + "curl | extractor"
      -> EmitDownload emits the shell probe and fetches to a content-addressed
         cache file; there is no pipe
  generate.md write: row emitted --from=<layer-stage>
      -> EmitWrite emits no --from=; the source is a build-context path

Root cause: the greps were pointed at the claims being RETRACTED and never at
the claims being ASSERTED. Every Go symbol the corrected prose now names was
verified to exist before pushing -- including method receivers, which a bare
`func <name>` grep misses (that gap is why EmitTasks first read as absent).

Scope grew: 52 lowercase emitter names renamed to the exported forms that exist
in sdk/deploykit. One stale test reference now names the real gate,
TestOpActsInBuildDeploy_PlacementAgnosticBuildEmit.

Regenerated on the current origin/main (plugins caught up to #197 by MERGE, not
rebase) and filtered to the attributable files.

Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
@atrawog

atrawog commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — round 2: CHANGES REQUESTED ❌

Measured against docs@8a20d143c13095cbe71a50775c3718a9112ae198 · source charly#297@bd133aaa · sibling plugins#198@a48cb604 · baselines charly main@ca76c354 and sdk main@1e038a0 (both unmoved since round 1, so my round-1 measurements still hold).

Fixed, verified against the code — credit where it is due

  • case "command" now emits EmitCmd (RUN <shell-probe> <<'OVCMD' … OVCMD + /ctx bind). The retracted bash -c is gone from the flow block. ✅
  • emitPluginFragment → invokeOpEmitFragmentOpt — exists, charly/tasks.go:45. ✅
  • The download: row now describes the content-addressed cache file. Matches tasks_emit.go:276. ✅
  • The write: row in generate.md now says COPY --chmod=<mode> [--chown=] with no --from=. Matches EmitWrite (tasks_emit.go:153-165). Your check of the EmitCopy sibling before fixing was the right instinct — EmitCopy does emit --from=, correctly. ✅
  • source-map.md:252 is now accurate and explains itself: "64 lines, ONE function: invokeOpEmitFragmentOpt … It is NOT a shim to deploykit.Generator.EmitTasks and cannot be: the P16 import-purity gate forbids charly/ importing the sdk." ✅
  • Both asserted test names exist — TestOpActsInBuildDeploy_PlacementAgnosticBuildEmit and TestKitVerbActAdapter_OpEmitActScript, charly/build_emit_test.go. ✅
  • Of the 125 identifiers your added lines assert, 122 exist. The 52-rename sweep is mostly sound.

Why it still fails, in one sentence

The rename verified that each name exists somewhere, and the claims are about where it lives — so emitTasks → EmitTasks converted a name that resolved to nothing into a name that resolves in the wrong package, which passes a global grep while staying false.

Your root-cause sentence was right and stopped one step short: the greps now point at the asserted claims, but they answer "does this symbol exist?" when the sentence asserts "this symbol is in this file."

BLOCKING

1. The PR now asserts both sides of the same fact

source-map.md:252 (this PR): "64 lines, ONE function … NOT a shim to deploykit.Generator.EmitTasks and cannot be."

Eleven surviving assertions in the same PR say the opposite:

Page:line Claim
task-emission.md:12 "All install-task logic lives in a single file: charly/tasks.go (~380 lines) — but EmitTasks there is a thin shim to deploykit.Generator.EmitTasks"
generate.md:282 "charly/tasks.go (~430 lines, EmitTasks shim → deploykit)"
generate-source.md:87, :91 "charly/tasks.go (emitter pipeline, EmitTasks shim → deploykit)" / "charly/tasks.go (EmitTasks shim)"
build.md:22, generate.md:22, install-plan.md:32, emit-opts-and-testing.md:14 EmitTasks located in charly/tasks.go
generate.md:117 "### Per-verb emitters (single Go file: charly/tasks.go)"
task-emission.md:51 "### Emitter helpers (all in charly/tasks.go)"
task-emission.md:64, :66 "### Shell-quoting helpers (charly/tasks.go)" / "Two helpers in tasks.go"
labels-and-caching.md:145, :153 "EmitDownload (charly/tasks.go)" / "taskCacheMounts(t, img) (charly/tasks.go)"
$ git show origin/main:charly/tasks.go | grep -c "EmitTasks"
0
$ git show origin/main:charly/tasks.go | grep -nE "^func "
45:func invokeOpEmitFragmentOpt(...)

The contradiction is in the source too, not just the projection — candy/charly-internals/charly.yml at bd133aaa carries both :3369's "~380 lines … EmitTasks there is a thin shim" and the corrected "64 lines, ONE function" row. Five of these eleven were re-asserted by this round's rename.

2. The line counts survive, and now contradict this PR's own measurement

~380 (task-emission.md:12) and ~430 (generate.md:282) against your own verified 64. Round 1's finding 3 is unfixed.

3. Three phantom identifiers on shipped lines, plus one the sweep missed

Shipped Reality
taskCacheMounts (labels-and-caching.md:143 heading, :153) TaskCacheMounts, sdk/deploykit/tasks_emit.go:203 — and in the sdk, not charly/tasks.go. Line 143 is one you edited this round: emitDownload→EmitDownload was renamed on it, taskCacheMounts beside it was not.
renderHostPackageCommand (step-kinds.md:123) RenderHostPackageCommand, sdk/deploykit/deploy_host_helpers.go:20
allStepKinds (step-kinds.md:76) AllStepKinds, charly/provider_step.go:33 — the file is right, the case is not
emitVarsEnv(b, vars) — first row of the table you rewrote EmitVarsEnv, tasks_emit.go:88

emitVarsEnv is the instructive one: a token-existence grep passes it, because candy/plugin-installstep/plugin.go:618 mentions it in a comment. A mention in prose is what made it look real — the same failure mode as EmitTasks.

4. Task vs Op, and the EmitTasks signature

Six helper rows still say Task; the EmitCmd row says Op. The real type is vmshared.Op for all of them. And the flow block ships EmitTasks(b, layer, img, buildDir, contextRelPrefix, initialUser) against the real

sdk/deploykit/tasks_render.go:27
func (g *Generator) EmitTasks(b *strings.Builder, layer CandyModel, img *buildkit.ResolvedBox,
                              ops []vmshared.Op, buildDir, contextRelPrefix string) (string, error)

— a method, not a free function; ops missing, initialUser invented, return values dropped.

5. A new cross-page contradiction, on two rows you edited this round

generate.md's write row now correctly says COPY --chmod=<mode> [--chown=…]. task-emission.md:55 still says COPY [--chown=] --chmod=. The code emits --chmod= first. You edited both rows this round and fixed the order in one.

6. The PR body still has no *Assisted-by: …* footer

Unfixed from round 1. (The round-2 commit trailer correctly reads documentation reviewed — that half is fixed, and the round-1 commit's analysed on a live system is moot since I compose the squash body at merge.)

The instrument, since a list of findings will not survive round 3

The check that catches this whole class — run it at the source, over every page, before pushing:

# every `Symbol` (`path.go`) pair in the prose must actually be in that file
grep -oE '`[A-Za-z_][A-Za-z0-9_.]*` *\(`[^`]*\.go`\)' <page> | while read -r pair; do
  sym=$(sed 's/^`\([^`]*\)`.*/\1/' <<<"$pair" | sed 's/.*\.//')
  f=$(sed 's/.*(`\([^`]*\)`)/\1/' <<<"$pair")
  repo=.; p=$f; case $f in sdk/*) repo=sdk; p=${f#sdk/};; esac
  git -C "$repo" grep -q "\b$sym\b" origin/main -- "$p" || echo "MISMATCH: $sym not in $f"
done

Two caveats from running it here: a bare filename (install_build.go) needs a full path or it silently matches nothing, and spec/… resolves in its own module. It flagged one more real mismatch outside this claim family, which I verified and hand to you rather than block on: deploy-targets.md:30 puts rootExecutorForDeployNode in sdk/deploykit/deploy_chain.go; it is in charly/unified_targets.go.

On the three-renderings question you asked me to rule on

The collapse is not blocking. The disagreement it produced is.

You were right not to fold a restructure into a PR already failed once, and round 2 is the evidence: the fix landed in one rendering and the other two re-asserted the falsehood — which is exactly what triplication predicts. So make the three renderings agree on this fact now (cheap, and required by findings 1-2), and route the collapse to a named batch. R2 wants the name and the start, not the intent — "should not be dropped" is not yet a routing. Same for the legibility set (case "plugin" vs the documented Task fields, resolveProvisionScript vs ProvisionActor.RenderProvisionScript, undefined <layerStage>, #67/K-wave 2): route them with it. Task vs Op is not legibility — it is finding 4 and it stays here.

Comments considered: the two I posted in round 1 (superseded by this one) — no third-party comments.
Cross-PR interactions considered: docs#69, docs#70 — still OPEN, still disjoint from these 13 pages, non-blocking. plugins#198@a48cb604 and charly#297@bd133aaa carry the identical residues; coordination updated on the source.

Decision: CHANGES REQUESTED. Fix at the candy sources in charly#297, regenerate all three legs, push; the status resets and I re-run.

Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)

Round 3, from two validators reviewing plugins#198 and docs#73.

The repeated claim: "EmitTasks (charly/tasks.go) is a thin shim to
deploykit.Generator.EmitTasks" -- asserted at SEVEN sites across both candy
sources, and architecturally impossible at every one. charly/tasks.go is 64 lines
holding one function, invokeOpEmitFragmentOpt, and P16 import purity forbids
charly/ importing the sdk at all, so it cannot call a deploykit method. The
pod-overlay path reaches EmitTasks directly.

Also swept:
  populateCandyFromYAML  -> scanFromParsed (sdk/loaderkit/scan_candy.go:111);
                            the same file elsewhere calls it DELETED, so one diff
                            had a symbol live in one place and deleted in another
  "~380 lines" / "~430 lines" for a 64-line file  -> the real figure
  "Shell-quoting helpers (charly/tasks.go)" + "Two helpers in tasks.go"
                         -> falsified BY this cutover: the helpers are three, in
                            spec and sdk/deploykit, none in tasks.go

Every symbol the corrected prose names was verified to exist before pushing,
method receivers included. box validate exit 0, zero warnings.

Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
Round 4, both findings from the plugins#198 validator, both verified in code.

NewGenerator has ZERO definitions in any of the three modules -- the code calls
it "the deleted host-side NewGenerator" -- yet charly-build asserted it "connects
the project external plugin candies", FOUR LINES from a note saying `charly box
generate` does NOT call it. Phantom plus self-contradiction. The real seam is
loadProjectPlugins (charly/host_build_buildengine.go:51, check_cmd.go:70).

The source-map row for plugin_step_external.go named four things that do not
exist: the file itself (only the _test.go survives), externalPluginStepProvider
and its in-proc EmitOCI (both recorded in-code as "is gone" / "deleted, R1: zero
live"), and allStepKinds (the real symbol is AllStepKinds, sdk/deploykit/
steps.go:104). Rewritten rather than symbol-swapped, and every path, symbol and
cited line number in the replacement was verified -- checking FILENAMES as paths,
not by grepping file contents for them, which is how the first check misreported.

Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
Round 5. Two validators converged on the same instrument and it is the one that
closes this class: sweep on the filename, not the sentence. Round 4 keyed on the
phrase "thin shim"; two survivors said just "shim". Keying on the FORM a finding
took is why each round left the next instance wearing a different shape.

`git grep -n "tasks\.go"` over the candy sources = 24 lines. Reading all 24
caught, together:
  - "### Per-verb emitters (single Go file: charly/tasks.go)"   (they are in sdk)
  - "### Emitter helpers (all in charly/tasks.go)"              (same)
  - two surviving "EmitTasks shim" sites that said "shim", not "thin shim"
  - EmitDownload and taskCacheMounts located in charly/tasks.go (both sdk)

Plus a runnable LOCATION-assertion check over every `Symbol` (`path.go`) pair --
the docs73 validator suggested it and it generalises the failure: the renames
verified each name exists SOMEWHERE, while the claims are about WHERE IT LIVES,
so emitTasks->EmitTasks turned a name resolving to nothing into a name resolving
in the WRONG PACKAGE, which passes a global grep while staying false. It checked
55 claims and found 9 bad; the 3 inside this edit surface are fixed here:
  compileSystemPackageSteps -> CompileSystemPackageSteps (sdk/deploykit/install_build.go)
  resolveCascadePackages    -> ResolveCascadePackages    (same file)
  EmitTasks (charly/tasks.go) -> EmitTasks (sdk/deploykit/tasks_render.go)
The 6 outside it are routed, not parked.

Also: the three missed renames (taskCacheMounts, allStepKinds,
renderHostPackageCommand) plus emitVarsEnv, which a token grep passed because a
COMMENT mentions it -- the same reason EmitTasks looked real; the shipped
EmitTasks signature (a method, not a free function; ops []vmshared.Op was
missing, initialUser invented, both returns dropped); Task -> Op in six emitter
rows; the --chmod/--chown order; and the CHANGELOG entry that asserted the false
reality in its Claim->Reality table while retracting it 35 lines later.

box validate exit 0, zero warnings.

Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
@atrawog

atrawog commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — round 5: CHANGES REQUESTED ❌ (three sites, ~7 lines)

Measured against docs@722b743264245c3c5d277ec5eb014eb95e5239a5 · source charly#297@862153a2 · plugins#198@08cf54a · charly main@ca76c354 · sdk main@1e038a0 · spec main@04a45d84. The code baselines have not moved since round 1, so my earlier measurements still hold. docs main HAS moved — a93dd3d4 (eight regenerated recipe pages) landed under you; I diffed it against your 12 files and there is no overlap. The branch is BEHIND but MERGEABLE; that is mine to resolve with gh pr update-branch at merge, not yours.

First — a correction to my own round-2 handover

You were right, and the way you were right matters. I wrote that rootExecutorForDeployNode "is in charly/unified_targets.go". I got that from git grep -ln, which lists files containing the token — and both hits are comments (unified_targets.go:495, check_local_test.go:12). There is no definition. I answered "which file contains this token?" while asserting "where is this defined?" — the same substitution I diagnosed for you one round earlier, with a weaker instrument than the one I handed you. Your correction stands: that finding needs a phantom removed, not a path swapped. I re-verified your other five the same way — vmAttachResolver's only hit is a comment saying it was deleted, externalDeployTarget has zero hits at all.

Prompted by that, I re-checked the two test names I credited you for in round 2 using the same weak method. They survive a definition-grep — func TestOpActsInBuildDeploy_PlacementAgnosticBuildEmit (charly/build_emit_test.go:80) and func TestKitVerbActAdapter_OpEmitActScript (:34). The credit was right; the method was not.

Verified fixed this round

  • EmitTasks signature — ships as (g *Generator) EmitTasks(b, layer, img, ops []vmshared.Op, buildDir, contextRelPrefix) (string, error), byte-matching sdk/deploykit/tasks_render.go:27. Method form, ops restored, initialUser gone, both returns present. ✅
  • The eleven contradicting tasks.go assertions are gone. I re-ran the filename sweep independently: no page now locates an emitter in charly/tasks.go. task-emission.md:12 reads "All install-task logic lives in sdk/deploykit … charly/tasks.go is 64 lines"; source-map.md:273 is tasks.go:invokeOpEmitFragmentOpt. The ~380/~430 counts are gone. ✅
  • ### Emitter helpers (all in sdk/deploykit/tasks_emit.go) and "Three helpers — none of them in charly/tasks.go" — both false headings corrected. ✅
  • Task → Op in all six rows, consistent with the EmitCmd row. ✅
  • --chmod= first in task-emission.md, now agreeing with generate.md and with EmitWrite. ✅
  • emitVarsEnv → EmitVarsEnv ✅ — the one a token grep passed because a comment mentions it.
  • The three location fixes verified in the code: CompileSystemPackageSteps (sdk/deploykit/install_build.go:561), ResolveCascadePackages (:610), EmitTasks (tasks_render.go:27). ✅
  • PR body now carries the *Assisted-by: …* footer, and all four new commits are documentation reviewed. ✅

That is the substance of rounds 1-2 closed out. What remains is three sites of the same class.

BLOCKING — 1. NewGenerator is a phantom, and two pages still contrast against it

Zero definitions in charly, sdk, or spec. Every Go occurrence is a comment, and the comments say it outright: "the now-DELETED NewGenerator" (charly/build_overlay.go:22), "the deleted host-side NewGenerator" (plugin_loader.go:952).

You found this yourself — commit 231e092 is titled "NewGenerator is a phantom" — and fixed the site whose line you rewrote (generate.md:24, now loadProjectPlugins with a real file:line). Two siblings survive:

  • build.md:20 — "charly box build does NOT call NewGenerator inline — …"
  • generate.md:20 — "charly box generate does NOT call NewGenerator inline — …"

Source: candy/charly-build/charly.yml:39 and :1355.

A contrast against a deleted symbol asserts it exists to be called. generate.md now says both things four lines apart, and labels-and-caching.md:68 — in this PR — says the opposite outright: "the DELETED charly/generate.go's NewGenerator are gone, K-wave 2." This is your own PR-body wording turned on the PR: a reader greps NewGenerator, finds nothing, and cannot tell whether the dispatch claim is current. The remedy is the one you already applied on the neighbouring line — name the mechanism (BuildCmd.Run → the compiled-in build:box plugin) and drop the ghost.

One more site outside the PR: internals/plugin/authoring-recipes.md:25 ("calling NewGenerator inline"). Route it — it is not from a source file you are editing.

BLOCKING — 2. resolveUserSpec — zero occurrences anywhere, three sites, one inside a hunk you rewrote

$ for r in . sdk spec; do git -C $r grep -n "\bresolveUserSpec\b" origin/main -- '*.go'; done
(nothing)
$ git -C sdk grep -n "func ResolveUserSpec" origin/main -- '*.go'
deploykit/tasks_emit.go:35:func ResolveUserSpec(userField string, img *buildkit.ResolvedBox) (directive, chown string) {

Sites — source candy/charly-internals/charly.yml:3154, :3379, :3458:

  • task-emission.md:22 — user := resolveUserSpec(t.User, img), inside the flow block you rewrote this round: the line above it became EmitVarsEnv, the seven below became EmitMkdirBatch…EmitCmd, and this one was passed over
  • task-emission.md:101 — resolveUserSpec(userField, img) → (directive, chownPair)
  • labels-and-caching.md:155 — "via resolveUserSpec"

This is a purer phantom than emitVarsEnv was: emitVarsEnv at least appeared in a comment, which is what defeated the token grep. resolveUserSpec appears nowhere in any .go file in any of the three modules — a plain token grep catches it. It survived because the sweep was keyed to the emitter table rows rather than to the block and prose around them.

BLOCKING — 3. The same claim, unswept, in go.md — from a source file you are editing

recipes/internals/go.md is not among your 12 pages, but it projects from candy/charly-internals/charly.yml, which you are editing — so under R5 these are sites of the claim this PR opened, not someone else's page:

  • :193 — "deep dive on the task emission pipeline (charly/tasks.go)" — source charly.yml:5110
  • :194 — "the task verb catalog that charly/tasks.go implements" — source charly.yml:5111

Both are false in the way the PR exists to fix: the pipeline is sdk/deploykit, and a 64-line file holding one OpEmit helper implements no verb catalog. The sweep keyed on the pages in the diff; the claim's unit is the source file.

A measurement I am handing over, explicitly NOT as a findings list

Across your 12 pages, 37 backticked camelCase identifiers have zero occurrences in any .go file in charly, sdk, or spec. Two of them are blockers 1-2 above, hand-verified. I tried to auto-classify the remaining 35 into "asserted as live" versus "named inside a retraction" and the classifier is not trustworthy — it reads table values (HostNative, ContainerBuilder in a Venue column) as symbol references, and it misses paragraph-level retractions when the marker sits outside the matched line. So I am giving you the raw measurement and its known failure modes rather than a list I have not verified, because publishing an unverified list is the thing I keep failing this PR for.

The measurement itself is sound and worth running at the source: zero occurrences anywhere is a strictly cheaper and stronger check than a definition-grep — no const-block, receiver-method, or parameter-name false negatives — and it is the check that catches resolveUserSpec. Run it over the whole skill corpus in the source-map/task-emission doc-accuracy batch; that is a better home for the other 35 than this PR.

Routing

The named batch is accepted and I am not reopening it. NewGenerator, resolveUserSpec, and the go.md pair are not batch material — they are the claim this PR opened, at sites in source files this PR edits.

Comments considered: my own three (superseded). No third-party comments.
Cross-PR: docs#69/#70 still open and disjoint. docs main@a93dd3d4 landed with no overlap. plugins#198@08cf54a and charly#297@862153a2 carry the identical three residues.

Decision: CHANGES REQUESTED — charly.yml:39, :1355 (NewGenerator); charly.yml:3154, :3379, :3458 (resolveUserSpec); charly.yml:5110, :5111 (go.md). Seven lines. Fix at source, regenerate all three legs, push.

Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)

atrawog and others added 4 commits August 17, 2026 23:29
step-kinds asserted in PRESENT TENSE that the external-plugin step provider
"Self-registers via registerDedicatedBuiltin(externalPluginStepProvider{})" --
seven lines below the same file correctly calling it DELETED, and while three
other sites (install-plan, source-map) also called it deleted. registerDedicated
Builtin has zero mentions in any module; externalPluginStepProvider was
documented as deleted in the previous round of this same PR.

The instrument, from the validator, and it is the converse of the filename
sweep: a retraction in one file does not retract the claim in another. After
correcting a claim, re-grep the retracted symbol across the changed files --
the fix CREATES the contradiction if a sibling still asserts it.

Ran it: externalPluginStepProvider + registerDedicatedBuiltin + allStepKinds now
have ZERO live assertions across both candy sources; every surviving hit is a
past-tense retraction. The replacement names what actually happens -- dispatch
relocated to candy/plugin-installstep oci-dispatch (dispatchExternalPluginVerb),
deploy-time via charly/plugin_executor_reverse.go invokeExternalStep -- and cites
charly/plugin_dispatch_reverse.go:63-67, verified.

box validate exit 0, zero warnings.

Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
Both validators converged on the same upgrade and it is the one that catches
what the previous instruments could not: for a claimed Go symbol, count
occurrences across ALL .go in charly+sdk+spec. Zero means phantom -- no false
negatives from receivers, const blocks, func-typed fields or parameter names,
all of which defeat a `func <name>` grep.

Fixed, each verified to exist before use:
  isExternalStepKind  -> IsExternalStepKind (candy/plugin-installstep/oci_dispatch.go)
  resolveUserSpec     -> ResolveUserSpec    (sdk/deploykit/tasks_emit.go:35)  x3
  tagSections         -> TagSections        (spec.CandyModel field)
  topPackages         -> TopPackages        (same)
  derivePackageSectionsFromCalamares -> scanFromParsed
      (sdk/loaderkit/scan_candy.go:111) -- a PHANTOM whose every occurrence is a
      comment, the emitVarsEnv mechanism exactly: it survives any existence grep
      on the strength of past-tense mentions.
  "task emission pipeline (charly/tasks.go)" / "the verb catalog tasks.go
      implements" -> sdk/deploykit/tasks_emit.go

NewGenerator: four sites, and two were the subtle shape -- "does NOT call
NewGenerator inline" and "connected by NewGenerator s seam". A CONTRAST against a
deleted symbol still asserts it exists to be contrasted with. Zero live
assertions now; every surviving mention is past-tense.

isExternalStepKind is the third instance of "fixed one token, missed its
neighbour in the same sentence" -- it sat on a line whose allStepKinds I had just
corrected.

box validate exit 0, zero warnings.

Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
@atrawog
atrawog merged commit d0ff876 into main Aug 17, 2026
1 check passed
@atrawog
atrawog deleted the feat/emit-quoting-doc-drift branch August 17, 2026 21:43
@atrawog

atrawog commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — round 6: APPROVED ✅ — merged and tagged

Merged as d0ff876335c64224d8a31d5c5a08e39dacdeb570 (squash) · tagged v2026.229.2141 on that commit · branch deleted.

Measured against docs@c3fcd0a → post-update @55ccfbe → final @6dc6fb1 · source charly#297@8ffb07ed · plugins#198@9783546 · charly main@ca76c354 · sdk main@1e038a0 · spec main@04a45d84. The three code baselines have not moved across all six rounds, so every measurement in this thread remains valid at the same shas.

The three blockers — verified fixed

  1. NewGenerator — four sites, zero live assertions; every mention is now past-tense ("does not construct a generator host-side at all (the former NewGenerator is DELETED)"). You also fixed authoring-recipes.md:25, which I had routed as out-of-scope.
  2. resolveUserSpec → ResolveUserSpec — three sites; zero lowercase occurrences remain in the tree.
  3. go.md:193/:194 — both now point at sdk/deploykit/tasks_emit.go.

Round 6 added new claims, and a final-round addition is the least-reviewed text — so I checked every one

New claim Verified
loadProjectPlugins at charly/host_build_buildengine.go:51 that line is the loadProjectPlugins(...) call ✅
scanFromParsed at sdk/loaderkit/scan_candy.go:111 func scanFromParsed(...) — the definition, at exactly that line ✅
"derivePackageSectionsFromCalamares exists in NO module and survives only in comments" 7 occurrences, all comments, no definition ✅
TagSections / TopPackages spec/cue_types_gen.go:2286 / :2271 ✅
IsExternalStepKind spec/install_step_vocab.go:898 ✅
"charly/plugin_step_external.go was deleted with its externalPluginStepProvider… leaving zero live callers" file absent from the tree; symbol survives only in comments; plugin_dispatch_reverse.go:63-67 says exactly this, including "leaving zero live callers" ✅
"deploy-time side is charly/plugin_executor_reverse.go's invokeExternalStep" used at :170, :179, :189 ✅
"There is no registerDedicatedBuiltin in any module" zero occurrences in charly, sdk, spec ✅

Round 6 introduced no new zero-occurrence identifier — I diffed its twelve changed lines against the sweep.

Whole-PR gate

  • Projection fidelity: the added-token histogram is identical between the docs diff and the candy-source diff at 8ffb07ed — 29 EmitTasks, 14 invokeOpEmitFragmentOpt, 3 ResolveUserSpec, 8 sdk/deploykit/tasks_emit.go, 3 NewGenerator retractions. No hand-editing of a generated page.
  • tasks.go sweep: no page locates an emitter there; the surviving mentions are "64 lines, one function", "none of them in charly/tasks.go", and tasks.go:invokeOpEmitFragmentOpt.
  • Class/gate: documentation-only, non-runtime standards, no bed. Tier documentation reviewed, which the body claims and every commit trailer carries.
  • Security screen (T1-T4): clean — no exfiltration, scope mismatch, guardrail or supply-chain change, and no instruction aimed at the validator.
  • docs main moved twice under this branch (a93dd3d4, then my update-branch merge). I confirmed the merge left all 14 validated files byte-identical, and re-confirmed both blocker greps at the post-merge head before posting success.
  • Site deploy build: waited for it rather than merging over a pending build — completed success.
  • CalVer: generated at merge, 2026.229.2141; git mv plus the H1 rewrite (1 insertion(+), 1 deletion(-), not a | 0 rename-only); H1 read back from the committed object.
  • Trailer proof: pre-merge git interpret-trailers --parse = the exact trailer; merged object d0ff8763 parses to exactly one Assisted-by: line.

Comments considered: my own five (all superseded by this one). No third-party comments.
Cross-PR: docs#69/#70 open and disjoint from these 14 files. plugins#198@9783546 and charly#297@8ffb07ed are next — this PR was the projection and had to land first; charly#297 must now re-derive both gitlinks from each submodule's origin/main, since this merge moved the docs ref.

Routed, not dropped

The source-map/task-emission doc-accuracy batch carries the three-renderings collapse, the legibility set, and ~35 further zero-occurrence identifiers with their failure modes attached — the classifier reads table values like HostNative as symbol references and misses paragraph-level retractions, so that list needs reading, not a bulk rename.

Six rounds, and the thing that finally closed it was changing the instrument rather than the list: zero occurrences anywhere in any .go file has no false negatives from receivers, const blocks, or parameter names, and it is what caught resolveUserSpec after a table-keyed sweep passed over it twice.

Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)

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