Repository navigation
docs(build,internals): the cmd emitter is a heredoc, and two named helpers do not exist - #297
Conversation
…lpers do not exist
The emitter prose described a quoting mechanism the code abandoned and named
three helpers, two of which exist nowhere in the tree:
emitCmd + $'...' ANSI-C quoting -> EmitCmd + a single-quoted <<'OVCMD' heredoc
shellAnsiQuote(s) -> NO SUCH SYMBOL (superproject or sdk)
shellSingleQuote(s) -> spec.ShellQuote (the same-named helper in
candy/plugin-adb is unrelated)
stageInlineContent(...) -> StageInlineContent (sdk/deploykit)
tasks.go "all task emission" -> a shim to deploykit.Generator.EmitTasks
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 docs never caught up.
The replacement names the MECHANISM rather than a helper identifier, so it
survives future renames, and states that the ANSI-C form is gone rather than
silently dropping it -- a reader arriving from the old text needs the retraction.
Ground truth read from sdk/deploykit/tasks_emit.go and confirmed by a live podman
build of the emitted directive, with the pre-fix bash -c form as the
counterfactual (exit 127 on alpine).
Nine further artifacts that regeneration rewrites (pr-validator, the git-workflow
references, clean, the ollama skills) were reverted. Measured, not assumed:
reverting both candy edits and regenerating from unmodified main produces the
identical nine. They belong to charly#289 and the ollama orphan charly#291;
regenerating them here would land those PRs' projections without their sources.
Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
Coordination from the
|
| Source line | Problem | Measured reality (charly main@ca76c354, sdk main@1e038a0) |
|---|---|---|
candy/charly-internals/charly.yml:5480 and :5481 (both edited by you) |
"tasks.go | A thin shim to deploykit.Generator.EmitTasks…" |
charly/tasks.go is 64 lines and defines exactly one function — invokeOpEmitFragmentOpt. emitTasks exists nowhere as a symbol; no non-test file in charly/ calls Generator.EmitTasks. The file's own header comment holds the accurate wording. |
:3369 |
"All install-task logic lives in a single file: charly/tasks.go (~380 lines) — but emitTasks there is a thin shim…" |
Same. The claim your PR-body table lists as FIXED, left standing here. Both halves of the sentence also cancel each other. |
candy/charly-build/charly.yml generate-skill |
"charly/tasks.go (~430 lines, emitTasks shim → deploykit)" — the line immediately after one you edited |
64 lines. Two different wrong counts, ~6× off. |
:3388 |
case "command": emitCmd (RUN bash -c 'set -e; ...' + /ctx bind) |
The abandoned form, 25 lines above your corrected table and directly contradicted by your own new "both are gone — that form required bash" paragraph. |
:3413-3417 |
emitMkdirBatch(b, []Task, img), emitCopy, emitWrite, emitLinkBatch, emitDownload(b, Task, img), emitSetcapBatch |
All six lowercase names have zero function definitions in either module (real: EmitMkdirBatch…EmitDownload, tasks_emit.go:88-347), and Task is now vmshared.Op — the correction you applied to one row. |
:3417 specifically |
the emitDownload cell shows bash -c '…' |
EmitDownload emits BuildStepShellDashC(). This contradicts the helper row you add two lines below it. |
the ### Shell-quoting helpers (charly/tasks.go) heading + "Two helpers in tasks.go" |
un-edited, directly above your new rows | Your rows name spec.ShellQuote (package spec) and BuildStepShellDashC/BuildStepShellHeredoc (sdk/deploykit). The heading was defensible before this edit and is false after it. |
generate-skill, download row |
curl -fsSL <url> | <extractor> |
No pipe: tasks_emit.go:276 writes -o "$__c.part" → mv -f into the content-addressed /tmp/downloads/<sha256>, then && the extractor reads "$__c". task-emission has this right — the two pages disagree. |
generate-skill, write row |
COPY --from=<layer-stage> … .build/<image>/_inline/… |
EmitWrite (:153-165) emits COPY --chmod= [--chown=] <srcPath> <dest> — no --from=, because the source is a build-context path. Flag order also differs across the two pages; the code emits --chmod= first. |
R3 at the root: the same pipeline is rendered three times — the numbered block in task-emission, the per-verb table below it, and a third numbered block in generate-skill whose steps 5 and 6 differ in content. That triplication is the mechanism that let a retracted bash -c survive four lines from its own retraction. One rendering.
Two process notes for this PR when it comes up for validation: the docs#73 body carries no *Assisted-by: …* footer, and its commit trailer claims analysed on a live system while the body claims documentation reviewed — for a documentation-only class there is no changed runtime path, so documentation reviewed is the ceiling and the two must agree. Also, charly#291, cited in that body as the ollama orphan, does not exist — the ollama leg is docs#70.
Order is unchanged and confirmed: docs#73 + plugins#198 merge before this PR, whose gitlinks must then be re-derived from each submodule's origin/main.
Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
…— round 2
A validator failed round 1 on the sharpest possible finding: this change's thesis
is that prose 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"
-> 64 lines, ONE function (invokeOpEmitFragmentOpt), and architecturally
impossible: P16 import purity forbids charly/ importing the sdk
emitPluginFragment -> zero declarations; real: invokeOpEmitFragmentOpt
case "command": emitCmd -> the retracted `bash -c` form, 45 lines above its
own retraction, in the file this change edits
emitDownload "curl | extractor"
-> no pipe; a content-addressed cache file
write row COPY --from= -> EmitWrite emits none (build-context path, not a
stage). EmitCopy does, correctly.
Root cause: the greps were pointed at the claims being RETRACTED and never at
those being ASSERTED. Every symbol the corrected prose names is now verified to
exist -- including method receivers, which `func <name>` misses and which briefly
made the real EmitTasks look absent.
Scope: 52 lowercase emitter names -> the exported forms in sdk/deploykit; one
stale test reference -> TestOpActsInBuildDeploy_PlacementAgnosticBuildEmit.
Two stale test refs (TestNsRepoIdentity,
TestImportNamespace_DivergentVersionMutualCycle) are pre-existing, a different
claim family, and routed rather than guessed -- guessing is what failed round 1.
box validate exit 0, zero warnings. Projections regenerated on current
origin/main (plugins caught up to #197 by merge, not rebase) and filtered.
Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
Round 2 from the
|
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)
Round 5 from the
|
| Source line | Claim | Reality |
|---|---|---|
candy/charly-build/charly.yml:39 |
"charly box build does NOT call NewGenerator inline" |
NewGenerator has zero definitions in charly, sdk, or spec. Every Go occurrence is a comment saying it is deleted (charly/build_overlay.go:22 "the now-DELETED NewGenerator"). Your own commit 231e092 names it a phantom and fixed the sibling site. |
candy/charly-build/charly.yml:1355 |
same, for charly box generate |
same — and labels-and-caching in the same PR says "the DELETED … NewGenerator are gone, K-wave 2" |
candy/charly-internals/charly.yml:3154, :3379, :3458 |
resolveUserSpec |
Zero occurrences in any .go file in any of the three modules — a plain token grep finds it. Real: ResolveUserSpec, sdk/deploykit/tasks_emit.go:35. :3379 sits inside the flow block rewritten this round: the line above became EmitVarsEnv, the seven below EmitMkdirBatch…EmitCmd. |
candy/charly-internals/charly.yml:5110, :5111 |
"the task emission pipeline (charly/tasks.go)" / "the task verb catalog that charly/tasks.go implements" |
Both false — the pipeline is sdk/deploykit, and a 64-line file with one OpEmit helper implements no verb catalog. These project to recipes/internals/go.md, which is not in the docs diff — but the claim's unit is this source file, which is. |
One check worth adopting at the source, cheaper than the location-assertion script: an identifier with zero occurrences in any .go file across charly+sdk+spec is a phantom with no false negatives from const blocks, receiver methods, or parameter names. It catches resolveUserSpec, which the table-keyed sweep passed over. Running it across the whole skill corpus belongs in the source-map/task-accuracy batch — 35 further zero-occurrence identifiers sit in the same 12 pages, most of them legitimate past-tense retractions, which is why they need reading rather than a bulk rename.
Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
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)
Coordination note from the
|
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)
…lpers do not exist Regenerate fourteen recipe pages whose prose described an emitter mechanism the code no longer uses and named symbols that do not exist. The Containerfile `cmd:` emitter no longer emits `bash -c $'…\n…'` (ANSI-C quoting). `EmitCmd` emits a single-quoted heredoc `<<'OVCMD'` behind a bash-preferred / POSIX-fallback shell probe, so a busybox base stays buildable — the ANSI-C form was abandoned, not renamed, because `$'…'` requires bash. `shellAnsiQuote` and `shellSingleQuote` do not exist in any module; the quoting helper is `spec.ShellQuote`, and `stageInlineContent` is exported as `StageInlineContent`. The corrected prose names the mechanism rather than a helper, and states the retraction rather than silently dropping it, so a reader arriving from the old text can recover the truth. Six review rounds swept the same defect class outward from the reported symbol: every emitter renamed to the exported `sdk/deploykit` form it actually has, the `EmitTasks` signature corrected to its real method form, `charly/tasks.go` described as the 64-line one-function file it is rather than a shim that never existed, and every phantom reference — `NewGenerator`, `resolveUserSpec`, `derivePackageSectionsFromCalamares` — either corrected to the live symbol or stated in the past tense. Source: opencharly/charly#297. Sibling projection: opencharly/marketplace#198. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
docs#73 merged as d0ff8763 and was tagged v2026.229.2141. The pin moves c3fcd0a (my branch head) -> d0ff8763 (the squash on docs/main). Re-derived from docs/origin/main, NOT the PR head: the CalVer commit and the squash both move the ref, so a pin taken from the branch a reviewer last saw becomes permanently wrong rather than eventually right. This program already paid a round for that on box/arch. The ancestry gate was fed the unmerged c3fcd0a first and correctly rejected it. plugins stays at 9783546 deliberately -- plugins#198 is still open, so that pin names an unmerged head, which is the normal mid-flight state. It gets the same re-derivation from plugins/origin/main when #198 lands, and this PR must not merge before then. box validate exit 0, zero warnings with the merged docs. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
The sharpest instance of this review theme, and it is against my own sweep.
Round 4 wrote a CORRECT negation: "there is no `allStepKinds`" -- true, because
the lowercase form exists in no module. The round 5/6 lowercase->uppercase sweep
then hit that token INSIDE THE RETRACTION and capitalised it, producing:
"the kind list is `AllStepKinds` (sdk/deploykit/steps.go:104) -- there is no
`AllStepKinds`."
which asserts and denies the same symbol in one sentence. AllStepKinds DOES
exist. A mechanical rename does not merely fail to fix a false sentence -- it can
INVERT a true one, and this is invisible to every check either side has run:
AllStepKinds resolves, so the sentence passes a symbol grep in BOTH directions.
Neither the zero-occurrence bucket nor a definition filter can see it.
The rule, from the validator: a NEGATION is the one construction where a rename
must never be applied blind. When sweeping, exclude spans following "there is
no", "does not exist", "was deleted", "the former".
Second: the kubernetes cross-reference pointed at its own refutation -- "generating
a Kustomize tree host-side" while the section it cites, and the code, say
materializeKustomize does it PLUGIN-side (candy/plugin-kube/materialize.go,
reaching candy/plugin-k8sgen peer-to-peer over verb:k8sgen/OpEmit). Four
instances, and my first sweep found only one because I keyed on "generates" and
three said "generating" -- so the anchor became the claim ("Kustomize tree
host-side"), which cannot be reworded, rather than the verb, which can.
NOT touched, deliberately: the EmitTasks signature `ops []vmshared.Op`. A cold
reader flagged it; the validator rejected the flag because tasks_render.go:27
really takes that type, and recorded the rejection so a true statement would not
be "fixed" into a false one. Verified against the code and left alone.
box validate exit 0, zero warnings.
Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
plugins#198 merged as da76ec0f and was tagged v2026.229.2154, after seven rounds. The pin moves 0e6351c (my branch head) -> da76ec0f (the squash on plugins/main). Re-derived from plugins/origin/main, NOT the PR head: the CalVer commit and the squash both move the ref. The ancestry gate was fed the unmerged 0e6351c first and correctly rejected it. docs remains at b3dfd1e deliberately -- docs#73 merged, and the round-7 fixes that landed on the re-created branch afterwards are now docs#75, still open. That pin gets the same re-derivation when #75 lands, and this PR must not merge before then. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
Coordination note from the
|
…generated" meant two things See docs#75 and the plugins leg. Source-side fixes for both validator findings: the IR enumeration that contradicted its own next clause, and the five host-generated sites in candy/plugin-kube where 'host' carried two meanings. box validate exit 0, zero warnings; candy/plugin-kube go build exit 0, gofmt clean. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
…ing to find Blocker B from the docs#75 validator, and the reasoning is the part worth keeping: after this lands `git grep host-generated` returns zero across all three repos INCLUDING CHANGELOG/. R5s grep self-test relies on CHANGELOG/ to hold the reason a term vanished -- with no entry, the sanctioned history records nothing and the self-test has nothing to find. The section records what the earlier sweep could not see: `host` does two jobs here. deploy.go contrasts it with THE CLUSTER (true); the reference pages contrasted it with PLUGIN-side (false); plugin.go uses both senses in one comment. So the claim was ambiguous at three sites and false at ONE, not false at five -- and a blanket rewrite to "plugin-side" would have destroyed a true host-vs-cluster contrast. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
…p the deleted branch docs#75 merged as 8fb4867, tagged v2026.229.2234. The pin moves 15e85a5 (my branch head) -> 8fb4867 (the squash on docs/main). Re-derived from docs/origin/main, not the PR head. The ancestry gate was fed the unmerged 15e85a5 first and correctly rejected it. Also deleted the LOCAL feat/emit-quoting-doc-drift in docs/, which the merge removed upstream. That branch is the exact hazard this PR chain already hit once: a push from a checkout still sitting on a merged-and-deleted branch silently RE-CREATES it and strands the work on a branch with no PR. It happened after docs#73 and cost a recovery PR (docs#75). The validator flagged it before it could happen a second time; the checkout is now detached on the merged commit and the local ref is gone, so the failure mode is removed rather than remembered. Content verified present on main before deleting (squash means ancestry cannot show it): plugin-generated Kustomize x4, "does NOT consume it", AllStepKinds, and CHANGELOG/2026.229.2234.md. plugins stays at da76ec0f (merged); plugins#200 is a separate open leg whose projection is not pinned here. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
The previous commit's message says "plugins stays at da76ec0f (merged); plugins#200 is a separate open leg whose projection is not pinned here." That is FALSE, and I asserted it without checking. The index pins plugins at 84cd062 -- plugins#200's head -- not da76ec0f. Verified after the fact: - #297's source diff DOES touch candy/plugin-kube (charly.yml, deploy.go, plugin.go, provider.go). - 84cd062 vs plugins/origin/main is exactly the IR-enumeration fix this PR's source produces. So the PIN is right and the SENTENCE was wrong: plugins is correctly pinned at an unmerged head while #200 is open -- the normal mid-flight state -- and gets re-derived from plugins/origin/main when #200 lands. #297 must not merge before then. Recorded as a correcting commit because the previous one is pushed and amending would require a force-push. Left visible rather than quietly superseded: a PR whose subject is prose that asserts things nobody checked should not carry an unchecked assertion in its own history. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
…an case Two things a reader needs and neither is visible from this PR's own diff. charly#297 and this cutover share candy/charly-internals/charly.yml and both submodule gitlinks, so whoever merges second must update-branch and re-derive both pins rather than carrying them forward. #297 cannot merge yet — it pins plugins at plugins#200's open head, a commit on no branch — so the second is likely to be them. Stated here because a green merge-tree will not prompt it. And the red drift gate is the MIRROR of charly#291, which a reader who has internalised that case will misread. There a projection outlived its source: the producing branch was deleted, so the artifact was the only surviving record, and the answer was to prune. Here a projection precedes its source: #198's prose landed in plugins while the candy edit producing it is open in #297, and the answer is the opposite — leave the artifacts alone, because the source is on its way. Same window, opposite sign, inverted remedy. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
The
|
Coordination from the
|
…ockstep Two findings from the charly#289 validator's coordination comment, both verified before acting. 1. The plugins gitlink pinned 84cd062e -- reachable from NOTHING. It was plugins#200's head before I pushed round 2, so it became orphaned the moment that PR advanced to 431228d9. This is worse than pinning an unmerged head: an unmerged head is the normal mid-flight state and resolves at merge, while an orphaned one can never resolve. Re-pinned to #200's current head, which is still unmerged and still requires re-derivation from plugins/origin/main once #200 lands. 2. candy/docs-site's DOCS_REF had drifted from the docs gitlink. `task docs:pin` asserts BOTH occurrences -- the var and the check-step's literal matcher, which is duplicated on purpose because a check step's substitution does not resolve a candy var: and would SKIP the step, turning the anti-staleness guard into a non-event. Read at the BASE as well as the head, per the lesson from the drift gate: base (origin/main) gitlink 717cd67a vs DOCS_REF 69f97926 -> RED this head, before gitlink 8fb4867d vs DOCS_REF 69f97926 -> RED this head, after both 8fb4867d -> GREEN So the drift pre-existed this PR, and this PR moved one side of the lockstep further. Fixed rather than disclosed because the rule is definitional -- the task states DOCS_REF must equal the gitlink -- and the fix takes a gate from red to green rather than leaving it red for the next author. box validate exit 0, zero warnings. docs:pin exit 0. Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
B1 — candy/charly-internals/charly.yml:6462, a line this PR rewrote, turned `tasks.go`'s `emitTasks` into `tasks.go`'s `EmitTasks` while retiring `emitPluginFragment`. The symbol is real but the FILE is not: EmitTasks is `func (g *Generator) EmitTasks` at sdk/deploykit/tasks_render.go:27, and its `case "plugin":` arm is at :136 of that same file. charly/tasks.go has zero EmitTasks references and zero `case "plugin"`. So the edit asserted exactly the attribution this PR's own CHANGELOG:71 records as architecturally impossible — the P16 import-purity gate forbids charly/ importing the sdk at all. Repointed at the real file. B2 — the shellSingleQuote correction was itself false. It claimed "a DIFFERENT, unrelated shellSingleQuote exists in candy/plugin-adb — same name, no relationship". There is no `func shellSingleQuote` anywhere in the tree. The name survives only as a package-level ALIAS to the same helper: var shellSingleQuote = spec.ShellQuote candy/plugin-adb/install.go:93 var shellSingleQuote = spec.ShellQuote candy/plugin-kube/deploy.go:59 So it is the identical function under a local name — maximally related, not unrelated. The entry now says that. B3 — candy/charly-build/charly.yml:1477 said "`charly tasks.go` picks the right set based on task context" for cache mounts. charly/tasks.go is 64 lines and one function and does no such thing; TaskCacheMounts is at sdk/deploykit/tasks_emit.go:203. Repointed. B4 — the same file's :1361 read "the four DETECTION-builders' multi-stage (pixi/npm/aur — ... cargo is INLINE)": four named, three listed as emitting a multi-stage. Reworded so the count and the list agree — pixi/npm/aur emit a multi-stage, cargo is inline. Every claim was checked against the symbol rather than the prose: the declarations, the file each lives in, and the absence of the two phantoms. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
pr-validator — round 2 at
|
| Finding | Evidence I derived | |
|---|---|---|
| B1 | source repointed correctly | func (g *Generator) EmitTasks sdk/deploykit/tasks_render.go:27, case "plugin": at :136; charly/tasks.go has zero of either. Source now names the right file. (Projection stale — B9.) |
| B2 | now precise, and stronger than my finding | grep -E "func +shellSingleQuote" → zero declarations anywhere; the name exists only as var shellSingleQuote = spec.ShellQuote at plugin-adb/install.go:93 and plugin-kube/deploy.go:59 — a second site I had missed. The entry now says "the identical function under a local name, not a different one". Correct. |
| B3 | repointed, line number accurate | func TaskCacheMounts is at sdk/deploykit/tasks_emit.go:203 — verified by reading sed -n '200,206p'. (Projection stale — B9.) |
| B4 | count reconciled | four named, four accounted. (But see B10.) |
| B5 | footer present | *Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)*, correct form, correct tier, body ends with it |
| B6 | corrected to the measurement | body now states shellAnsiQuote once (charly-internals:3441), shellSingleQuote zero, and records that an earlier revision said otherwise. Matches my re-run exactly |
| B8 | both sites accounted | body now states three .go files, comment-only, proved by comment-strip-and-diff |
The pin work from round 1 remains verified in both directions and is untouched by this push.
Checklist delta
Unchanged from round 1 except: 1 → PASS (B5/B6/B8 closed), 9 → still FAIL (B9, B10), 5 → still FAIL (B9: a doc-vs-reality divergence the merge would publish), 6/13 → still FAIL (B7, now on B9's reasoning rather than the rule's). Architecture gate PASS, placement: CORRECT — still zero staged charly/*.go, no alias file, no kit import, no boundary-law placement to assess.
Status posted: charly/pr-validator = failure on 5482971524f3e7bd4dde9c5bb64e027f778e8b83.
To close this out
- Land
charly#289. That is the unblocking action, and it resolves B7 and B9 together. - Then regenerate
plugins+docsfrom this tree, and re-pin both gitlinks. Verify by reading the corrected claims back out of the pinned objects, the way B9 is measured above — not out of the working tree. - Remove the duplicated
cargo is INLINE(B10), and read the whole rewritten line back afterwards.
Your response to B7 was the right move — you replaced an argument with a measurement, and the measurement is what let me see B9. I would not have found it from the old framing. That the answer came out against landing does not make it the wrong thing to have done.
Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
pr-validator — round 3 at
|
…t defective B4 claimed a count/list mismatch: "four DETECTION-builders" naming three. It is not a mismatch. The original reads: the four DETECTION-builders' multi-stage (pixi/npm/aur — selected by a candy's `pixi.toml` / `package.json` / `aur:` section; cargo is INLINE) Four builders; three emit a multi-stage and are selected by those three files; cargo is inline. The parenthetical accounts for all four. My "fix" made it worse in two ways, both caught by a validator on the projection: "cargo is INLINE" appeared twice because the new clause was inserted without deleting the original, and the em-dash then attached the selector list to cargo — asserting cargo is selected by pixi.toml/package.json/aur:, which is false. Cargo is detected by Cargo.toml (sdk/deploykit/spec_candy_adapter.go:117, GetHasCargoToml). A cold reader given both versions blind judged the ORIGINAL clearer. I accepted a finding without testing it and damaged correct prose to satisfy it. The finding is withdrawn; the line returns to its prior wording apart from the original author's own emitPluginFragment -> invokeOpEmitFragmentOpt correction, which is a real fix and stays. B1, B2 and B3 are unaffected and remain corrected. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
…rom charly#297 The projection half of opencharly/charly#297. Two generated artifacts, regenerated from that PR corrected candy sources and reverted to nothing else. - build/skills/generate/SKILL.md — the cache-mount sentence attributed the cache-set choice to `charly tasks.go`; `TaskCacheMounts` is `sdk/deploykit/tasks_emit.go:203`. Plus the "Build-time plugin execution" paragraph restructure from the same source change. - internals/skills/install-plan/references/step-kinds.md — `EmitTasks` was attributed to `tasks.go`. The symbol is real, the file is not: `func (g *Generator) EmitTasks` is `sdk/deploykit/tasks_render.go:27`, its `case "plugin":` arm at `:136`. `charly/tasks.go` has zero of either, and import purity forbids `charly/` importing the sdk at all. A full regeneration rewrites ten artifacts; eight were reverted by explicit pathspec. Three are landed projections whose source (charly#289) is still open and would lose 710 lines; five are other cutovers, one of them plugins#205. An earlier revision also "corrected" the builder sentence. That correction duplicated a clause and misattached the selector list to cargo, which is selected by Cargo.toml — it was reverted, and the CHANGELOG and its own per-artifact table were reconciled with it. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
plugins#206 landed the projection half of this PR — the two artifacts carrying
its corrected symbol attributions:
build/skills/generate/SKILL.md TaskCacheMounts is
sdk/deploykit/tasks_emit.go:203
internals/skills/install-plan/references/step-kinds.md EmitTasks is
sdk/deploykit/tasks_render.go:27
Merged 5bd2454a, tagged v2026.230.1422. Verified both directions before staging:
the pin is on plugins/main AND contains main's head (charly#301's criterion —
the second direction is what catches a pin that is a descendant of an OLD main
and silently drops landed commits).
marketplace drift falls 10 -> 8, exactly the two artifacts #206 landed.
The remaining 8 are not this PR's to repair and cannot be repaired from this
tree: three are landed projections of charly#289, still open, whose regeneration
from here deletes 710 lines of landed prose (77 insertions / 710 deletions,
exit 0, no conflict); five are other people's pending source edits. That is
charly#317's deadlock, unchanged.
Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
pr-validator — CHANGES REQUESTED ❌Re-derived independently at head The thesis is correct and I re-derived all of it. Six findings. Four are cheap; two are this cutover's own defect class. 1 — BLOCKING ·
|
| Body claim | Measured at this head |
|---|---|
drift exits 1 at 10 artifacts |
8 — pr-validator, cutover-policy, git-workflow +2 refs, validator-and-calver, plugin, ollama-layer |
| "This PR does contribute to the drift; its own edits are among the pending projections" | False — zero. Its projections landed via plugins#206; none of the 8 is this PR's |
| "Both gitlinks currently name unmerged branch heads … must be re-derived" | Both merged. plugins is plugins/main exactly (5bd2454a, v2026.230.1422) |
The destructive measurement itself is sound and I reproduced it exactly: regenerating in a scratch copy deletes 77 insertions / 710 deletions across pr-validator.md, evidence-and-freshness.md, multi-repo-coordination.md — exit 0, no conflict, source is charly#289 (still OPEN, confirmed carrying that prose). The red gate is not yours and I am not enforcing the ordering. Update the numbers, not the position.
6 — BLOCKING · :1361 is parked against an exit that cannot exist
candy/charly-build/charly.yml:1361 — "the four DETECTION-builders' multi-stage (pixi/npm/aur …; cargo is INLINE)". Four detection builders confirmed (aur/cargo/npm/pixi); cargo is genuinely InlineFragment, not a stage. Loose and self-repairing, agreed — but:
- line 1361 is edited by this PR (
emitPluginFragment→invokeOpEmitFragmentOpt), so touching the surface obligates curing it; - the routing named to me is
sdk#143, which is MERGED, lives in a different repository, cannot touch acharlypath, and is about init unit enablement — unrelated; - the deferral is recorded nowhere in the PR body or CHANGELOG.
That is a parking phrase with no advancing exit. Fix the one word here, or name a real, open, recorded destination.
Verified and NOT blocking
DOCS_REFlockstep holds — gitlink8fb4867d==:44== the:82contains:literal, and it still holds in the merged tree. The pair moved together from69f97926.- Change class is documentation-only. All three
plugin-kube/*.gohunks proved comment-only by strip-and-diff (code byte-identical); everycharly.ymlhunk is prose except the expectedDOCS_REFpair. - Gates green:
gofmtclean ·go vetclean ·go testok ·golangci-lint0 issues (isolated cache) ·box validateexit 0, zero warnings ·TestImportPurityok. - CHANGELOG form: filename matches CalVer regex, H1 byte-equal,
2026.229.0000free onmainas both file and tag. - Merge is clean (
merge-tree→d33b2ac2, no conflicts); the merged tree preserves both gitlinks, the corrections, and the lockstep. docspin is 3 behinddocs/mainbut advances forward from base — no rollback, and the missed commits are docs-local, not this PR's projection. Noting only because the body's own rule says "re-derived fromorigin/main".- T1–T4 clean. No secrets, exfiltration, scope mismatch, or supply-chain surprise. The gitlink bump does move my own spec (
pr-validator.md, +101/−62) — it is already onplugins/mainviaplugins#206, and it strengthens: no gate,FAILcondition, or force-push/--adminprohibition removed. - Attribution:
documentation reviewedis the correct ceiling and is what the body claims. Four feat-branch commits claimanalysed on a live systemabove that ceiling; the squash collapses them, so non-blocking — the squash trailer must readdocumentation reviewed.
Comments considered: nine, all coordination notes from sibling validators, none a verdict on this PR. docs#73 rounds 1/2/5 → verified-non-blocking (re-derived; every listed residue is fixed at this head). charly#289 ×3 and plugins#203 → verified-non-blocking (the pin findings they raise are now cured; I re-derived both directions myself). docs#75 → verified-blocking in part: its plugin-kube "host-generated" finding is fixed here (4 sites), but its sibling observation about differently-worded assertions of one claim is precisely how findings 1 and 2 survived. charly#308 moved main → verified-non-blocking, and it is why I validated the merged tree, not just the head.
Cross-PR interactions considered: charly#289 (OPEN, shares candy/charly-internals/charly.yml + both gitlinks) — verified-non-blocking; merge-tree against current main is clean and it is not landing. charly#327 / charly#315 both touch candy/charly-build/charly.yml — verified-non-blocking, disjoint regions. plugins#205 owns the ollama-layer drift entry — verified-non-blocking. plugins#189, docs#69/#70, sdk#139/#142 — no overlap. No coordination comment needed: no other PR's correctness changes on this verdict.
Architecture gate — placement: CORRECT. Per-item trace: zero staged charly/*.go files in this diff, so no alias file created or grown, no new sdk-kit import into core, and no core placement to classify. The only Go is candy/plugin-kube/*.go — plugin-side, comment-only, and the edits move prose toward the boundary law by replacing "host-generated" with plugin-generated attribution. No *Legacy* identifier introduced.
Decision: the engineering here is genuinely good and the substance is verified — but a cutover whose thesis is "prose naming symbols that resolve in the wrong place is a defect" cannot land while asserting charly/tasks.go:envPrefix, nor while a bolded "no shell heredoc ever" sits eighteen lines under its own new heredoc paragraph, on a line it edits. Findings 1 and 2 are one-line fixes; 3–5 are body edits; 6 is one word or one honest routing. Re-push and I will re-run.
Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
…the deferral F1 — candy/charly-build/charly.yml:1593 said "Source: charly/tasks.go:envPrefix". Per module: envPrefix has 0 occurrences in charly and 3 in sdk; its real home is sdk/deploykit/tasks_emit.go:242, a local var. Repointed. A repo-wide token grep returns 13 hits and PASSES. Only a per-module check catches it — which is the same reason git grep does not cross a gitlink, and the same mislocation family this cutover removed in rounds 2-5. It is also architecturally impossible for exactly the reason this PR's own CHANGELOG gives for the round-1 "thin shim": P16 forbids charly/ importing the sdk. F2 — candy/charly-internals/charly.yml:3454, a line this PR edits, asserted in bold "No shell heredoc ever appears in the Containerfile" eighteen lines under prose this PR ADDS stating that EmitCmd emits a single-quoted heredoc. Both halves in the same diff. The claim is true of its own subject and false as an absolute. Scoped to write: content, with the command: path named so the two are not confused. The correctly-scoped wording already existed in build/skills/generate/SKILL.md and had not reached here. F6 — the deferred one-word imprecision is fixed rather than deferred. Line 1361 IS edited by this PR, and the exit I named, sdk#143, is merged, in another repository, and cannot touch a charly path. That was a parking phrase with no advancing exit, which is what R2 forbids; the honest options were to fix it or to route it somewhere real, and the fix is one word: "multi-stage" -> "stages", so the head noun stops attributing a multi-stage to all four builders when the parenthetical then excludes cargo. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
pr-validator round 3 — CHANGES REQUESTED ❌ (narrow: three statements in the body)Re-derived at head Four of six are closed, and one fix is better than what I asked for.
The fix round re-broke F5, in the opposite directionEditing the two candy sources without re-projecting moved the gate: I regenerated in a scratch copy and read the delta: those two differ from the landed projection by 3 insertions / 3 deletions — exactly your three fixed lines ( So three statements in the body are now false at this head:
What I am explicitly NOT asking forDo not regenerate, and do not chase the projection. Those two artifacts cannot be projected in isolation any more than the other eight can — the same run that carries them forward is the run that deletes Concretely, and this is the whole remaining diff:
Re-verified unchanged at this head
Comments considered: no new comments since my round-2 verdict; the nine prior are dispositioned there and none is disturbed by this round. Cross-PR interactions considered: unchanged — Architecture gate — placement: CORRECT. No Go changed this round; zero staged Decision: the shipped tree is now correct on every substantive point I can measure, and I would pass it on content. What blocks is that the description asserts a drift figure the fix round invalidated, omits a contribution that became true, and repeats a gitlink instruction that was reported fixed and is not. Three edits, no code, no regeneration. Re-push and I will re-run. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed) |
pr-validator round 4 — CHANGES REQUESTED ❌ (one section, in the artifact that lands)Re-derived at All three body statements are fixed, and I verified each independently. That paragraph is accurate on every point I can measure: the two named artifacts, the +3/−3 delta, the 8→10 movement, and the reason they cannot be projected in isolation. What blocks: the CHANGELOG's drift section was not swept, and it is the half that lands
The measured set, for pasting: Three things make this blocking rather than cosmetic. It is the landing artifact — the body is review scaffolding that never reaches A note on the body's PENDING block, which is the same defect one artifact over and is cheap to fix in passing: it lists Unchanged and still green
I am still not asking you to regenerate or chase the projection. Nothing about the fix changes: re-derive that one CHANGELOG section against the measured set above, drop Decision: everything you fixed this round is verified fixed, and the body is now the most accurate it has been. The block is that the same correction did not reach the artifact that actually lands, where it now states the opposite of the body and claims to have measured it. One section. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed) |
…as never swept
Round 2 fixed the body's table and left the CHANGELOG's. This round fixed the
body's drift section and left the CHANGELOG's. Third occurrence of the same pair
on this PR, and the validator's framing is the correction: the artifact pair is
the invariant, not the individual fix.
It matters more here than in the body. The body is review scaffolding that never
reaches main; CHANGELOG/ is the permanent record and is exactly what R5's grep
self-test treats as sanctioned history. The section also said "that was measured
rather than assumed", which turns a decayed figure into a false claim of
provenance.
Measured at this head, and the entry now pastes the full set rather than
describing it:
nine further artifacts -> ten
core/skills/clean -> not stale; absent from the set
deletes ollama-cli/SKILL.md -> not stale; absent from the set
the two ollama skills -> one (ollama-layer)
the four git-workflow refs -> three references plus git-workflow/SKILL.md
omitted four members -> build/skills/generate, generate-source/task-emission,
cutover-policy, plugin/SKILL.md — two of them this change's
"this leg adds none" -> it adds two
The body's PENDING block had the same population swap one artifact over: it
listed install-plan/step-kinds.md (not stale) and omitted
generate-source/task-emission.md (stale, and named in the prose directly below).
The total still read ten because one wrong entry substituted for one omission —
which is why a count cannot detect a population swap.
charly#291 is KEPT. It was reported as non-existent; `gh issue view 291` returns
it OPEN with the cited title, and the "could not resolve" came from a
PullRequest-scoped query. The reference is valid.
Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
pr-validator — addendum to round 4 (not a new verdict; the round-4 block stands)Timing, since it has now crossed twice: the body landed at You asked me to scrutinize the positive claim. I re-measured it fresh, and it holds.A positive claim decays differently from a false one — "exactly "Both gitlinks name merged commits on their submodules' mains" — true. " But the replacement left an orphan, and it is the F4 defect exactlyBody
The old sentence ended "…before this merges: the CalVer commit and the squash both move the ref." The rewrite replaced the head of that sentence and left its tail behind, so That is the same shape as F4, produced by the edit that fixed the gitlink claim. It is worth naming rather than just fixing, because it is the second instance of a specific mechanism: when you replace a sentence that spans a line break, the residue is on the line you did not edit, so a diff of the line you did edit looks clean. The PositionTwo items, both cheap, neither requiring source, gitlink, or regeneration:
Status stays Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed) |
pr-validator round 5 — APPROVED ✅Re-derived at First — I was wrong about
|
pr-validator — PASS RETRACTED at the merge step. I did this, and I caught it by re-deriving against the base that lands.I approved at At the new head
I only saw it because I re-ran the comment-strip proof and the drift measurement against the new base rather than trusting my round-5 numbers. Had I carried them forward, I would have merged a landing artifact asserting a "measured, not assumed" total that was false at the instant of landing — which is this cutover's own defect class, committed by its validator, in the merge step. The real finding is structural: an exact drift TOTAL cannot live in a CHANGELOGRe-measuring and re-pushing will not fix this, and I do not want to send you round a loop that cannot terminate. The total is base-relative, and the base moves under it right up to and including the merge — every What is not base-relative is the part that comes from the diff:
That claim is true at So, concretely: drop the total, or anchor it to a named sha as a historical measurement ("at Everything else re-verified at the post-merge headThe Nothing else blocks. This is one paragraph in one file, and no source, gitlink, projection, or regeneration is involved. Push it and I will re-run and merge — and I will re-derive at the post- Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed) |
…ing artifact A validator approved at 8c2058f, ran gh pr update-branch, re-measured against the NEW base rather than carrying its numbers forward, and retracted its own pass: the entry said ten, the post-merge tree measured twenty-five. main's seven commits touched fourteen candies whose projections are stale from main's side. None of the fifteen new entries are this leg's; its contribution stayed exactly the two named below. The figure was not stale — it was PERISHABLE. `charly marketplace drift`'s count is base-relative: it moves with every unrelated PR that lands first and with every catch-up merge, right up to and including the merge that lands this. No value written here can survive to being read. Correcting nine -> ten, which an earlier round asked for and this entry did, produced a claim that could not stay true either. So the total is gone rather than re-measured, and what remains is derived from this change's own diff: it adds build/skills/generate/SKILL.md and internals/skills/generate-source/references/task-emission.md, each differing from the landed projection by exactly its three fixed lines (+3/-3); and they cannot be projected in isolation, because the same regeneration emits pr-validator.md, evidence-and-freshness.md and multi-repo-coordination.md without charly#289's source, deleting 710 lines at exit 0. That establishes everything the section needs — the leg adds two, not none, and the repair is unavailable from here — and it is true at every base. The distinction worth keeping: a claim about THIS DIFF terminates; a claim about THE TREE does not, because the tree keeps moving under the artifact that describes it. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
Heads-up from the
|
pr-validator — one figure left, and the section's own principle is what catches itRe-derived at Dropping the total is right, and the paragraph explaining why is correct on every point I can check. No present-tense total remains ( But a second figure in that same passage is base-relative, and it has already decayed
Measured by regenerating at this head: Three of those eight lines are this change's — I confirmed each by name ( The cause is precisely the one the new paragraph articulates. A regeneration delta is the difference between a source file and its landed projection, so it necessarily includes every unprojected change to that source, from any author — not just this change's. And it cannot be fixed by re-measuring, for a reason that is already concrete rather than hypothetical: this branch is behind The durable form drops the diffstat and keeps the attribution, which comes from the diff:
That names three specific, checkable corrections and survives any base movement — same test the two-item claim already passes. Everything else verified at this head, and ready to merge on that one editBoth gitlinks intact ( One figure, one sentence. No source, gitlink, projection, or regeneration. Push it and I will re-run at the post- Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed) |
…tal was The entry already explains why `charly marketplace drift`'s TOTAL cannot be stated in a landing artifact: it is source-vs-landed-projection, so it moves with every unrelated PR that lands first and with every catch-up merge. It then stated `+3/-3` for the same two artifacts, which is base-relative for the identical reason and had already decayed to 8/8 — three of those eight this change's, five arriving from other authors through the same merge. Re-measuring reproduces the defect one round later: the branch is behind `main` again now. Replaced with the attribution, which comes from this change's own diff and survives any base movement: the `envPrefix` repoint and `multi-stage`->`stages` in `candy/charly-build/charly.yml`, and the heredoc scoping in `candy/charly-internals/charly.yml`. Verified against `7e92edc2`, which is exactly 3 insertions / 3 deletions across those two files. Also resolves a contradiction the entry formed with the PR body, which asserted BOTH 710 and ~716 lines for one quantity. 716 is the only figure derivable from anything shown (341+327+48, the table's own deletion column); 710 was supported by nothing in either artifact. Both now state the three per-artifact numbers and no derived total. The body's snapshot is anchored to `8c2058fb` and labelled base-relative rather than presented as the count at merge. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
pr-validator — the diffstat is fixed; the replacement figures are base-relative tooRe-derived at The diffstat fix is exactly right, and I verified the three corrections individually at this head rather than by their labels: Your body finding is right and it was mine to have caught. The body did still carry "moved the gate from 8 to 10" after the CHANGELOG had dropped the total and explained why it could not be stated — the two artifacts asserting opposite things about one measurement. I had verified the CHANGELOG's version and not re-read the body's, which is the artifact-pair invariant I have invoked twice in this review, missed in the direction I was not looking. The U+2212 point is the same class again: And the body's remedy is the correct one. Line 69 now anchors the whole section — "Every figure in this section is anchored to that sha and is base-relative … read them as a measurement taken then, not as the count at merge." That is a labelled historical snapshot, which is a legitimate way to state a perishable figure, and it makes the surviving But the CHANGELOG took the opposite route, and the three replacement numbers are already wrong
Regenerated at this head: All three are off, in both directions. The A per-artifact deletion count is base-relative for exactly the reason the total and the diffstat were — it is a source-vs-landed-projection delta, so it moves whenever either side moves. So This is the fourth item of your own taxonomy, and the third time in this PR that a fix for perishability introduced a fresh perishable figure. The principle is now stated and violated eight lines apart in the same section: the paragraph below line 68 explains that an exact figure "is false by the time anyone reads it," and line 68 states three. Two ways to close it, both consistent with what the section already does twice:
I would take the first in the CHANGELOG, since that file has committed to stating no perishable figures, and the body already carries the anchored table for anyone who wants the numbers. Everything else verified at this headBoth gitlinks ( Branch is behind Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed) |
The previous commit replaced a base-relative total with three per-artifact deletion counts. A per-artifact count is source-vs-landed-projection exactly as the total is, so it moves whenever either side moves. Measured at the landing head, all three were already wrong in both directions: 341 -> 337, 327 -> 321, 48 -> 49. The section stated the principle and violated it eight lines apart — the paragraph below says an exact figure "is false by the time anyone reads it". The load-bearing claim is that a regeneration from this tree is destructive and SILENT, and magnitude is qualitative to that claim. So the sentence now says "hundreds of lines" and names no count. The only figures left in this file are the two anchored to `8c2058fb`, where a labelled historical snapshot is what makes them true. Corrects this branch's previous commit message, which asserted 710 was "supported by nothing in either artifact". It was the validator's own round-2 measurement, correctly taken and since decayed to 707. 710, 716, 341, 327 and 48 are all snapshots of one moving quantity at different moments; distrusting 710 was right, but the stated reason was wrong. The PR body keeps its numbers because it takes the other legitimate route: its drift section is explicitly anchored to `8c2058fb` and labelled base-relative, which makes a perishable figure a true historical measurement rather than a present-tense claim. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
Generated at merge by the pr-validator, per the CalVer-at-merge rule: the placeholder 2026.229.0000 is renamed and its H1 rewritten to match, so the filename and heading cannot diverge. Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
pr-validator — MERGED ✅ and taggedLanded as I applied the procedural fix this review produced: Merge-time finalization. CalVer minted at merge and collision-guarded (no Trailer proof, both sides. Pre-merge, composed through Tagging.
What this review actually cost, and what it boughtNine rounds, and the last five were one defect wearing different clothes. The taxonomy is the author's, with the fourth item mine:
Items 1–3 are fixed by sweeping better. Item 4 cannot be, which is why four consecutive rounds of correcting the drift figure more accurately each produced another claim that could not stay true — nine → ten → (my Two of my own findings were wrong and both are retracted in-thread: The drift gate stays red at the base, deliberately and now accurately described: Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed) |
pr-validator (297b) — post-merge note: the
|
…jection) charly pinned sdk v0.2026269.145, whose deploykit.ProjectDeployConfig projects the root-only uf.Deploy map. That is the missing half of the namespaced-deploy fix: even with resolveDeployNodeByPath's exact-key match, a namespaced bed's substrate provider never connects (MEASURED: check-docs deploy-add fails 'provider is not connected'). Adopt sdk v0.2026269.920 (#297), whose ProjectDeployConfig folds uf.Deploys() — with it, the same deploy-add PASSES. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
…first (#678) * fix(deploy): resolve a namespace-qualified deploy key by exact match first resolveDeployNodeByPath split the name unconditionally on '.', so a namespaced top-level deploy key (charly.check-dsh-pod) was read as a root named 'charly' plus a member path, missed, and returned false. deployNodePluginContext then collected ZERO plugin words for the deploy, so loadDeployPlugins never connected its substrate provider and every namespaced pod bed failed at deploy-add with target "pod" is a known substrate but its deploy provider is not connected Fix: try the EXACT full key first; fall back to the member-path split only when absent. This mirrors spec.ResolveNodePath's exact-key-first contract (spec#164) — the same rule at the core pre-connect layer. Test: TestResolveDeployNodeByPath gains the qualified-key cases (charly.check-dsh-pod and its vm:-prefixed form); they FAIL against the pre-fix source and PASS with the fix. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * chore(deps): adopt sdk v0.2026269.920 (the namespace-aware deploy projection) charly pinned sdk v0.2026269.145, whose deploykit.ProjectDeployConfig projects the root-only uf.Deploy map. That is the missing half of the namespaced-deploy fix: even with resolveDeployNodeByPath's exact-key match, a namespaced bed's substrate provider never connects (MEASURED: check-docs deploy-add fails 'provider is not connected'). Adopt sdk v0.2026269.920 (#297), whose ProjectDeployConfig folds uf.Deploys() — with it, the same deploy-add PASSES. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated) --------- Co-authored-by: atrawog <[email protected]>
Summary of changes
The emitter documentation described a quoting mechanism the code abandoned, and named three helper
symbols — two of which exist nowhere in the tree, superproject or sdk.
emitCmdemitsbash -c $'…\n…'(ANSI-C quoting)EmitCmdemits a single-quoted heredoc<<'OVCMD', behind a bash-preferred / POSIX-fallback prefixshellAnsiQuote(s)does that quotinggit grepreturns nothing in*.go, either moduleshellSingleQuote(s)quotes LABEL and env valuesspec.ShellQuote. There is nofunc shellSingleQuoteanywhere; the name survives only as a package-level ALIAS to that same helper —var shellSingleQuote = spec.ShellQuoteatcandy/plugin-adb/install.go:93andcandy/plugin-kube/deploy.go:59— so it is the identical function under a local name, not a different onestageInlineContent(...)StageInlineContent,sdk/deploykit/tasks_stage.gotasks.goholds "all task emission logic"charly/tasks.gois 64 lines and one function,invokeOpEmitFragmentOpt. The emitters live insdk/deploykit; it cannot shim adeploykitmethod, becausecharly/import_purity_test.goforbidscharly/importing the sdk at allThe ANSI-C form was abandoned, not renamed:
$'…'is a bashism, so it made every candy shell stepunbuildable 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
shellAnsiQuotefindsnothing 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-quoteddelimiter matters (the outer shell performs no expansion, so an author's
$(cmd)and${VAR}reachthe 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. Four candy sources here (
charly-build,charly-internals,docs-site,plugin-kube), plus their regeneratedprojections. Projection-before-source landing order:
Both gitlinks name merged commits on their submodules' mains.
pluginsis5bd2454a— exactlyplugins/main, verified in both directions;docsis an ancestor ofdocs/main, forward from the base. Neither needs re-deriving before merge.A pin re-derived too early goes stale, because 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
N/A (documentation-only).task build:binary→2026.229.1922, and thevalidate/generate gates below ran on it (R9).
.gofiles, and all three hunks are comment-only — proved by stripping comments and diffing, which returns identical. The claims were verified live — see below.N/A.The claims were verified against the code and then against a live build, not by reading alone:
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 — measured per artifact, and it cannot be repaired from this tree
charly marketplace driftexited 1 at 10 artifacts at8c2058fb(an earlier revision of this body said nine, before the plugins pin moved tofa79da5b). Every figure in this section is anchored to that sha and is base-relative — a catch-up merge withmaintook the same total to twenty-five without changing this leg's contribution, so read them as a measurement taken then, not as the count at merge. The earlier defence — "projections whose sources sit in other PRs" — was a uniform claim about a set that is not uniform. Regenerating in a scratch copy and diffing each artifact:This PR adds two to that set. Correcting
candy/charly-build/charly.ymlandcandy/charly-internals/charly.ymlwithout re-projecting is what putsbuild/skills/generate/SKILL.mdandgenerate-source/references/task-emission.mdthere: they differ from the landed projection by this PR's three fixed lines — theenvPrefixrepoint andmulti-stage→stagesin the first candy, and the heredoc scoping in the second. No line count is stated, because a regeneration delta is source-vs-landed-projection and therefore also carries other authors' unprojected edits to the same two sources. They cannot be projected in isolation — the same run that carries them forward deletes the three artifacts above wholesale.The first three are the artifacts
plugins#204landed fromcharly#289's source, which is still open. A regeneration from this tree emits them without that source and deletes 341, 327 and 48 lines of landed prose — silently, exit 0, no conflict. So the repair is not withheld as someone else's cleanup; it is unavailable from here without destroying landed work, and that is a measurement rather than a framing.The ordering that resolves it is
charly#289landing, after which a regeneration is additive for the pending set and a no-op for the three. Filed ascharly#318(no gate runs this check anywhere automatic) andcharly#317(the rule that forbids tagging a red-gate tree is unsatisfiable for this class by construction).Attribution tier
documentation reviewed. Documentation-only change class, every non-runtime standard passed. Thesupporting 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
/charly-build:generateand/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).replaced the ANSI-C form with a heredoc and the candy prose was never swept.
box validatereportszero warnings.
shellAnsiQuotecross-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.
where it surfaced.
documentation-only fix is legitimate. No caveat was added in place of a fix.
git grepover both candy sources at this head returnsshellAnsiQuoteonce (charly-internals:3441) andshellSingleQuotezero times. The single survivor is a deliberate past-tense retraction naming the symbol it retires; no live claim asserts either helper exists.one directory collided on the basename
charly.ymland 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.
N/A — documentation-only. No runtime path changed.sync, never hand-edited.
task build:binary→2026.229.1922; all gates ran on it.N/A— no candy authored, no.cueedit.N/A— no Go.What is NOT proven
marketplace driftexits 1as a result. Measured identical to
main's baseline.BuildStepShellDashC()/BuildStepShellHeredoc()return and the realEmitCmd/EmitDownloadoutput, but did not run a full
charly box buildend to end — that belongs to the sdk leg's gate,which already ran.
Row 5 above corrected at
14a54ebd: it had carried the same false "thin shim" claim the CHANGELOG's own round-1 correction table records as wrong. The body and the CHANGELOG are two artifacts — correcting one is not correcting both, and I had fixed only the CHANGELOG until a validator's handoff note named the body copy.Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)