Skip to content

docs: R4a sweep — task-target residue on reader-facing published pages - #285

Merged
atrawog merged 5 commits into
mainfrom
feat/r4a-residue-sweep-2
Aug 15, 2026
Merged

atrawog merged 5 commits into
mainfrom
feat/r4a-residue-sweep-2

Conversation

@atrawog

@atrawog atrawog commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Closes the R4a residue sweep. Carries the candy skill: sources whose regenerated output already landed as plugins#174 and docs#57, both gitlink advances, and the DOCS_REF re-pin.

This pins a generated half that is pending at the plugins tip

plugins#174 landed the generated half of this sweep; this commit carries the authoring half and pins it, so the two travel together.

Correction (this PR previously claimed main was drift-red — it is not, and never was). main is self-consistent: it pins plugins at 396e4bfe, and aa80ca9f (#174) is not an ancestor of it, so the gitlink predates #174. main's candy sources are pre-sweep and its pinned plugins tree is pre-#174 — two halves of the same older state, which is what a clean drift check reports. The eight-artifact red only appears in a checkout with plugins/ ahead of the gitlink and candy sources not yet swept: an ordinary working tree, never a committed state of main. charly marketplace drift answers a question about the checkout it ran in, not about any commit. There is no active-gate breakage and no urgency here — the generated half is queued, not broken.

Two other sessions hit that drift independently and correctly refused to sweep it in: a peer working plugins#175/docs#58 on the same skill committed only its own file rather than the eight, and check-verb-correctness reported rather than regenerated from its own tree. Both refusals were right — the eight artifacts were left intact deliberately, not missed — and this commit is what makes the refusals unnecessary going forward.

The sweep

R4a's standard: every command a reader is told to run must work with nothing but the charly binary installed. A page may NAME a repository-maintenance command as maintenance this project performs; it may not present one as a step the reader runs.

44 occurrences across 10 non-development published pages before, 31 after. Measurement is keyed to the actual Taskfile target namespace — every real target from task --list-all plus spec/Taskfile.yml, plus the three names the docs used that are not real — together with ./bin/charly and GOWORK=off. A shape-based pattern is unusable: a loose task [a-z:]+ matches English prose, and the tighter task [a-z]+:[a-z:]+ silently misses the colon-less task install-portable (four occurrences in one file).

The charly-internals bucket is out of scope by audience — the published site declares it itself under "## Development — contributor internals" on the index linking to every one of those pages.

Defects fixed, all in candy skill: prose: the build skill's "Host Bootstrap" section (the Install page duplicated into a commands-bucket card) and three of its troubleshooting entries; audience declarations on charly's dual-path section, migrate's schema-cutover sections, and the docs-site page.

Three task targets named in the docs do not exist — verified by running them, not by reading Taskfile.yml: cue:vendor (nowhere; the egress skill headed a section after it), install-portable (really build:install-portable), setup:builder (nothing in the repo creates a buildx builder, so it was removed rather than replaced with an invented command).

Capability note: charly docs generate is not available to a binary-only reader — plugin-docs is in neither compiled_plugins: nor pkg/host-command-plugins.txt. So docs-generation occurrences are reframed as maintenance rather than re-spelled as a charly verb the reader also could not run.

Change class: CONFIG, not documentation-only

The prose is documentation but the commit re-pins DOCS_REF, a candy var: feeding the clone layer's cache key — so the docs-site box builds different bytes. The rulebook's enumeration grants "docs-only gitlink bump" and stops there.

The general test, worth reusing: a change class must be decidable from the diff. If "the referenced content is documentation" were the test, classifying this would require cloning a remote repo at a named commit and reading it — the class would be a property of someone else's tree. Consequence beyond this PR: the standard multi-repo sequence ends with "re-pin DOCS_REF after the docs leg merges", so any cutover doing that takes the config gate.

Gate — final tree, rebased onto 80a662bc

charly check run check-docs: [image-build]          PASS after 52.565s
charly check run check-docs: [check-image]          PASS after 22.063s
charly check run check-docs: [deploy-add]           PASS after 24.892s
charly check run check-docs: [config]               PASS after 19.503s
charly check run check-docs: [start]                PASS after 15.502s
charly check run check-docs: [bring-up-members]     PASS after 43ms
charly check run check-docs: [check-live]           PASS after 36.388s
charly check run check-docs: [feature-run]          PASS after 19.741s
charly check run check-docs: [update]               PASS after 1m39.511s
charly check run check-docs: [check-live-rebuild]   PASS after 35.062s
charly check run check-docs: [feature-run-rebuild]  PASS after 18.533s
charly check run check-docs: [cleanup]              PASS after 16.668s
charly check run check-docs: [cleanup-members]      PASS after 0s
charly check run check-docs: PASS (steps=13)        EXIT=0

summary.yml: ok: true, 14 step flags true / 0 false. Warning sweep across every run log in the run directory: 0. [update] is the fresh-rebuild leg and the two *-rebuild steps re-prove the deployment after it, so this covers R10's rebuild requirement rather than first-boot only.

An earlier run against the pre-#284 tree was discarded, not cited — #284 changed candy/docs-site/charly.yml, a check-docs builder-chain input, so it measured a tree that will not be merged.

charly box validate  rc=0
task docs:pin        DOCS_REF and the pinned-commit matcher both match the gitlink (ee3d162e)
task docs:drift      docs: no drift.
task skills:drift    marketplace drift: clean (400 artifact(s) match the committed tree)
merged-tree deletions vs main: 0   (git merge-tree --write-tree against the base tip)

That last check is run against the merged tree, per /charly-internals:git-workflow → references/evidence-and-freshness.md ("The gate that matters at merge is the merged tree's, not the head's"). Neither origin/main..HEAD nor origin/main...HEAD answers it: three-dot diffs from the merge-base and under-reports, two-dot over-reports on any branch whose main has moved. A "rebase first, then two-dot" form was drafted and discarded — rebasing a pushed branch requires the force-push this project forbids, so it could never be run by a validator on an open PR.

Pins and merge order

Both gitlinks move forward — each pin is a descendant of what main carries:

main pins plugins 396e4bfe  ->  this PR pins aa80ca9f   (descendant)
main pins docs    93085fb9  ->  this PR pins ee3d162e   (descendant)

Not claimed: that either pin is the current tip. An earlier revision of this description said so, and it was already false for plugins when written — 4458a400 (#176) had merged minutes earlier, and ab1f93d9 then bcbfdcbc have landed since. "Tip" is a fact with a shelf life of minutes; "forward move" is stable and is what actually matters for correctness.

Pinning at its own merge is correct, not conservative. A superproject leg pins the submodule at the merge of its own producer leg, never at the tip — pinning the tip would drag in generated artifacts whose candy sources this commit does not carry, which is the source-behind-projection inversion this PR's entry documents, pointed the other way.

Standing obligation for the next leg. The queue does not empty when this lands: plugins keeps carrying artifacts ahead of aa80ca9f, and at least one — tools/skills/docs-site/SKILL.md — is both in that pending set and rewritten by this cutover. Whichever superproject leg next advances plugins past aa80ca9f must carry the candy skill: source for everything the advance drags in, not only the file it set out to change. Today's stale list is deliberately not enumerated here: it measured 3, then 5, within one afternoon.

Note for charly#278: its pins (70f4cded, 829b6ca2, plus 39fc0996 and fd239582) are siblings of the tips, not ancestors or descendants — their merge-bases with main are 61f5e9bf and b3c08a46. Those shas are unmerged producer heads that will never appear on main, since a squash-merge mints a new sha. They cannot be fixed by choosing a descendant; they must be re-derived after those producers merge, and whatever they re-derive must be a descendant of this PR's pins or it is a regression. (Same root cause as a defect caught in this branch pre-push: both branches were cut from the superproject gitlinks while the submodule mains were already ahead.)

Assisted-by: Claude Code Anthropic Claude Opus 5 (fully tested and validated)

https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2


Addendum — the static gates are not vacuous (paired controls)

A non-existent $TMPDIR makes charly's static verbs report success while silently dropping content: an out-of-process plugin dies before its handshake, charly warn-skips the kind: node, and exits 0. Since charly box validate, marketplace drift and docs generate all have that failure mode, a directory-existence check is not enough — here is the discriminating pair, run against this tree.

Negative control — deliberately bogus TMPDIR, to prove the failure mode is visible at all:

[ERROR] plugin init error: error="open /nonexistent/tmp-1196578/plugin2366989021: no such file or directory"
[WARN]  charly.plugin: plugin failed to exit gracefully
Warning: node "check-structkind": kind "examplestructkind" provider build/connect failed: ...
  the plugin was not compiled for this architecture,
  the plugin is missing dynamic-link libraries necessary to run,
  ...
rc=0            <-- exits 0 while having dropped a node

Note the upstream text blames architecture, libraries, permissions or handshake — never TMPDIR.

Positive control — the TMPDIR every gate in this PR actually ran with (/home/atrawog/.cache/charly-gotmp, present and writable):

charly box validate
  rc=0
  Warning/ERROR/provider-connect-failed lines: 0

charly marketplace drift
  marketplace drift: clean (400 artifact(s) match the committed tree)

The second line is itself corroboration rather than a separate claim: plugin-marketplace is a runtime plugin, deliberately absent from compiled_plugins:. It could not have reported 400 matching artifacts if the out-of-process plugin path were broken. The same holds for charly docs generate, which emitted 891 pages during docs:drift.

So the gate lines quoted above exercised the mechanisms they name.

Fixes the non-development half of the published skill corpus where a page told
the reader to run something that needs a charly checkout, and carries the two
producer legs plus the pin they require. R4a permits NAMING a
repository-maintenance command as maintenance this project performs; it forbids
presenting one as a step the reader runs.

Measurement is keyed to the actual Taskfile target namespace (every real target
from `task --list-all` on the superproject plus spec/Taskfile.yml, plus the
three names the docs used that are not real), together with ./bin/charly and
GOWORK=off. A shape-based pattern is unusable: a loose `task [a-z:]+` matches
English prose, and the tighter `task [a-z]+:[a-z:]+` silently misses the
colon-less `task install-portable`. 44 occurrences across 10 non-development
published pages before, 31 after; every survivor is descriptive or now carries
an audience declaration. The charly-internals bucket is out of scope by
audience — the site declares it under "## Development — contributor internals"
on the index linking to every one of those pages.

Defects fixed, all in candy skill: entity prose:

- charly-build/build — "Host Bootstrap (First Time)" was the Install page
  duplicated into a commands-bucket card. Replaced by "Host Prerequisites":
  binary + container engine, the native-package path, a pointer to Install for
  building from a source tree, and `charly box build` as the one command. Three
  troubleshooting entries drop task-based rebuilds and a checkout-only `git log`
  diagnostic for `charly version` / `which charly`.
- charly/charly — "Updating the Binary — dual-path gotcha" told the reader of an
  IMAGES-bucket page to `cd charly && go build`. Now opens with the audience
  declaration; it is this candy's build contract, not reader instructions.
- charly-build/migrate — "Adding a future cutover" and "Standing rule" gain the
  same declaration and stay where they are: this skill owns the migration table.
- docs-site — gains a page-level declaration; it describes the candy that builds
  this site, and carried no contributor framing of its own.

False-claim class, verified by running the targets rather than reading them:
`task cue:vendor` exists nowhere, `task install-portable` is really
`build:install-portable`, and `task setup:builder` does not exist — nothing in
the repo creates a buildx builder, so it was removed rather than replaced with
an invented command.

Capability note: `charly docs generate` is NOT available to a binary-only reader
(plugin-docs is in neither compiled_plugins: nor pkg/host-command-plugins.txt),
so docs-generation occurrences are reframed as maintenance rather than
re-spelled as a charly verb the reader also could not run.

Closes the drift on main: plugins#174 landed the generated half of this sweep
while the authoring half sat unpushed, so `charly marketplace drift` has been
exiting 1 on main. This commit carries the candy sources AND the pointer advance
atomically, which is what closes it.

- plugins gitlink 396e4bfe -> aa80ca9f (plugins#174, v2026.227.1410)
- docs    gitlink 93085fb9 -> ee3d162e (docs#57,    v2026.227.1412)
- DOCS_REF re-pinned to ee3d162e at BOTH occurrences, read from the merged docs
  main rather than predicted; `task docs:pin` asserts both.

Both gitlinks are their submodule's current tip, so the bump is a plain forward
move.

Change class is CONFIG, not documentation-only: the DOCS_REF re-pin changes the
clone layer's cache key, so the docs-site box builds different bytes. The
rulebook's enumeration grants a docs-only gitlink bump and stops there; a candy
var: is outside it. Gate is therefore `charly box validate` plus the check-docs
bed, both green, with `charly check run check-docs: PASS (steps=13)` and zero
warnings across every run log. Placeholder CalVer — the pr-validator finalizes
it at merge.

Assisted-by: Claude Code Anthropic Claude Opus 5 (fully tested and validated)
Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
@atrawog

atrawog commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

charly/pr-validator: CHANGES REQUESTED — head 4762c6e3

Independently re-derived, nothing taken from the PR body. The engineering is right and the closure is proven. One blocking defect, in the CHANGELOG's own new prose.

Blocking — CHANGELOG/2026.227.1340.md "Escalated finding" is false on the merged tree

charly#284 merged at 14:27:22Z with merge commit 80a662bc — which is this PR's base. The section describes it as live and unresolved. Every present-tense assertion in it is disproved by this tree:

Claim in the section Measured on 4762c6e3
"no candy skill: entity in this repository produces it, and no open superproject PR carries one" candy/charly-internals/charly.yml:4378 → - name: evidence-and-freshness
pasted marketplace drift: 3 generated artifact(s) are stale marketplace drift: clean (400 artifact(s) match the committed tree) rc=0
"any charly marketplace generate deletes the page" regeneration is a no-op; the page is reproduced, and plugins/internals/skills/git-workflow/references/evidence-and-freshness.md is present
"it is in flight as charly#284" #284 state=MERGED, mergedAt 2026-08-15T14:27:22Z, merge 80a662bc

This is not a pre-existing divergence: the branch was rebased onto 80a662bc at 16:30:51, and line 135 of the same file already discards the pre-#284 bed run because #284 landed. The sweep updated the gate section and stopped there — the claim-keyed sweep R1 mandates ("binds to the cutover's OWN new prose too… being newly authored is not an exemption") did not reach this section. By R2's separability test the tree is not correct without the fix, so it is blocking rather than batchable.

Fix: rewrite the section in past tense as a resolved finding — #284 landed it and became this PR's base; the 3 stale artifacts measurement is superseded by clean (400). Push it as an additional commit; the branch fast-forwards, no force-push needed.

Everything else verified and passing

Closure, proven with a negative control (the point of the PR):

source reverted to main, plugins left at aa80ca9f:
  marketplace drift: 8 generated artifact(s) are stale:   EXIT=1
    build/skills/build/SKILL.md · build/skills/migrate/SKILL.md
    internals/skills/agents/references/parallel-bed-testing.md
    internals/skills/egress/SKILL.md · internals/skills/go/SKILL.md
    tools/skills/charly/SKILL.md · tools/skills/cue/SKILL.md
    tools/skills/docs-site/SKILL.md
final tree:
  marketplace drift: clean (400 artifact(s) match the committed tree)   EXIT=0

Exactly the 8 named artifacts, mapping 1:1 to the 8 skill: entities edited. Clean because the source produces them, not from a revert — plugins 396e4bf..aa80ca9f has 0 deletions.

Pins — both are identical to their submodule's main tip, so ancestry and containment both hold with no gap:
plugins aa80ca9f → identical ahead_by=0 behind_by=0; docs ee3d162e → identical ahead_by=0 behind_by=0.

Both DOCS_REF sites — charly.yml:44 (var:) and :82 (the docs-site-pinned-commit matcher), the only two 40-hex occurrences, both ee3d162e. task docs:pin: "DOCS_REF and the pinned-commit matcher both match the gitlink".

Deletions, landed recipe (merge-tree --write-tree … | head -1), base tip not merge-base: merged tree 29b13429, 0 deletions. origin/main == PR base, and the merged tree is byte-identical to the head tree.

Bed run is valid for the final tree. The run (2026.227.1432, 16:32–16:38) executed on bb3ce657; the one later amend (16:45 → 4762c6e3) touched only CHANGELOG/2026.227.1340.md — candy/docs-site/charly.yml, docs and plugins are all byte-identical between the tested tree and the head. On-disk summary.yml: ok: true, 14 true / 0 false, total_seconds: 360; warning sweep across all 11 run logs: 0. Rebuild legs present: update, check-live-rebuild, feature-run-rebuild. image-build.log carries ee3d162e and no 93085fb.

Gates re-run on my own worktree (binary built from this tree, charly version 2026.227.1445 — R9):

charly box validate      rc=0
task docs:pin            both sites match the gitlink
task skills:drift        clean (400 artifact(s)) · skills: no drift.
task docs:drift          walking 6 repo root(s) · 891 generated pages · no-op · docs: no drift.

(A first docs:drift failed on /reference/box/fedora/tutorial-shell/; RCA — my worktree lacked the box/* submodules, "walking 1 repo root(s)". Clean after initializing them. Not a PR defect.) $TMPDIR verified present, so no warn-skip false pass.

R5 grep self-test — task cue:vendor, task install-portable, task setup:builder return live hits in none of superproject/plugins/docs; every hit is CHANGELOG/ history. Existence re-verified by execution, reproducing the entry's block exactly: the three do not exist; build:install-portable and setup:all do.

Measurement re-derived independently: 44 occurrences / 10 files → 31 / 9. Matches exactly; 44−31=13. "Four occurrences in build/SKILL.md" = 4. The internals-bucket figure I measure as 65 vs the entry's 61 — the entry already declares that bucket out of scope and the delta unreconciled, so nothing turns on it.

Change class re-derived as CONFIG, not documentation-only — agreed. DOCS_REF is a candy var: feeding the clone layer's cache key; the rulebook enumerates "docs-only gitlink bump" and stops there. The decidable-from-the-diff test is sound.

R6 — exactly one push (16:45:15, 4762c6e3), no force-push; all rebases/amends were pre-push, which is legal authoring.

Claims spot-checked true: recipes/index.md:426 "## Development — contributor internals"; plugin-docs absent from both compiled_plugins: and pkg/host-command-plugins.txt (so "reframe, never re-spell" is correct); #278's pins are indeed non-ancestors of the tips.

Re-push and I will re-validate.

This review was produced by an AI agent acting as the fresh independent PR evaluator.

The "Escalated finding" section described charly#284 as live and in flight.
#284 merged at 14:27:22Z as 80a662b — this branch's own base — so all four of
that section's present-tense assertions were disproved on this tree:

- "no candy skill: entity produces it" -> candy/charly-internals/charly.yml:4378
  carries `- name: evidence-and-freshness`
- pasted `marketplace drift: 3 generated artifact(s) are stale` -> the tree
  measures `clean (400 artifact(s) match the committed tree)`
- "any charly marketplace generate deletes the page" -> regeneration is a no-op
- "it is in flight as charly#284" -> MERGED

Rewritten as resolved-during-this-cutover, keeping the finding that outlives it:
the breakage was confined to skills:drift and never reached docs:drift, because
collectSkills reads the plugins projection rather than the candy entities — a
two-hop chain breaks at the hop nearest the missing source, not at every hop.

Swept the whole file rather than the section named in review. That caught a
second instance: the correction itself cited the gate section by LINE NUMBER,
which the rewrite above invalidated within one edit. Now cited by content, for
the same reason a line number in a generated file is worthless.

Records the pattern rather than quietly fixing it — this is the rule the cutover
carries, sprung on the document carrying it ("re-running the bed is half the fix;
the prose still cites the superseded state"), and the fourth instance in one day
of a claim true when written and false when read. The sweep key is the STATE,
never the string: a cutover that changes its own base mid-flight invalidates
prose that never mentions the base.

CHANGELOG-only; no code, config, gitlink or DOCS_REF change, so the gate
evidence in the entry stands unchanged and the branch fast-forwards.

Assisted-by: Claude Code Anthropic Claude Opus 5 (fully tested and validated)
Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
@atrawog

atrawog commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

charly/pr-validator — FAIL (changes requested) on 107b884d

Fresh, independent re-derivation. I did not author this PR and did not inherit the earlier validator's verdict — every figure below was re-measured in my own worktree (/home/atrawog/.cache/charly-v285b, detached at 107b884d, all 12 submodules initialised, worktree-local binary 2026.227.1502 built with task build:binary).

The tree is correct. Every gate reproduces, both negative controls discriminate, the bed run is valid for the final tree, and the 44 → 31 measurement reproduces exactly. Two prose claims do not hold, one of which ships permanently into main.


Blocking 1 — plugins is not pinned at its submodule's tip

CHANGELOG, "Change class" section, final paragraph:

Both gitlinks move to their submodule's current tip (plugins aa80ca9f, docs ee3d162e)

and the PR body: "plugins tip = aa80ca9f = this PR's pin".

$ gh api repos/opencharly/plugins/commits/main -q '.sha + "  " + .commit.committer.date'
4458a400c4444fe92db6870f1f47b033d82fde05  2026-08-15T14:59:21Z   (#176)

$ gh api repos/opencharly/plugins/compare/aa80ca9f...main -q '.status + " ahead_by=" + (.ahead_by|tostring)'
ahead ahead_by=1

plugins main advanced to 4458a400 at 14:59:21Z — roughly three minutes before 107b884d was authored (15:02:18Z). The pin is a strict ancestor of the tip, so the substantive point ("a plain forward move rather than a contested resolution") survives intact; the sentence asserting it is the tip does not. docs ee3d162e is identical to docs main — that half is correct.

This is the same class the entry's own "This section was itself the failure it describes" documents, in the same document, and it is the one that ships to main. A later auditor asking why main's plugins gitlink trails plugins main will read "current tip" and conclude no gap existed — the confident-and-wrong RCA the entry itself names as the real cost.

Remedy: state the pin and its relationship, not a tip claim — e.g. "docs moves to its tip ee3d162e; plugins moves to aa80ca9f, an ancestor of plugins main (which advanced to 4458a400 after this branch was cut — that commit's candy source lands in a separate leg). Both are plain forward moves."

Blocking 2 — the headline justification is not reproducible: main is green

The PR body's framing:

charly marketplace drift has been exiting 1 on main naming eight artifacts

I reconstructed main's tree exactly — candy/ at 80a662bc, plugins at 396e4bfe, docs at 93085fb9 — and confirmed the reconstruction is byte-identical to main before measuring:

$ git diff --stat 80a662bc -- . ':!CHANGELOG'
(empty)

$ ./bin/charly marketplace drift
marketplace drift: clean (400 artifact(s) match the committed tree)
rc=0

main's plugins gitlink never passed through aa80ca9f:

80a662bc  plugins=396e4bfe   docs(internals): the evidence-discipline reference (#284)
f968abbb  plugins=61f5e9bf   fix(ci): stamp the release binary ...
28cc0898  plugins=61f5e9bf   chore(docs-site): carry the docs-coupling lessons (#279)

so #174's generated half was never pinned by the superproject, and no red gate ever existed on main. The 8-artifact red state is reproducible only with plugins/ advanced past the gitlink while the candy sources sit at base — an advanced-submodule working tree, which is precisely the confusion the entry's own "Submodule branches are based on the submodule's own main" section diagnoses.

The accurate statement, measured: the red gate is pending at the plugins tip, not present on main. With this PR's candy sources and plugins at 4458a400:

marketplace drift: 3 generated artifact(s) are stale:
  plugins/internals/skills/git-workflow/references/branch-and-pr-loop.md
  plugins/internals/skills/git-workflow/references/multi-repo-coordination.md
  plugins/tools/skills/docs-site/SKILL.md
rc=1

Those are #176's outputs, whose candy source is a separate leg. Note the third is tools/skills/docs-site/SKILL.md — this PR rewrites it too, so whichever leg bumps plugins to 4458a400 must carry both edits or it will re-open the gap.

Remedy: correct the PR body's framing, and (since this cutover's subject is false-claim hygiene) record the accurate finding: plugins main has run ahead of the superproject's candy sources; this PR lands the authoring half for #174 and advances the gitlink to it; #176's half remains outstanding and is measurable as the three artifacts above.

Neither remedy requires a force-push — append a commit to feat/r4a-residue-sweep-2 and the status resets.


Everything else re-derived and PASSING

Deletions — 0. Merged tree, per the landed recipe (base TIP, head -1 guard):

$ BASE=$(git rev-parse origin/main); T=$(git merge-tree --write-tree HEAD "$BASE" | head -1)
$ git diff --diff-filter=D --name-only "$BASE" "$T" | wc -l
0

Base is 80a662bc exactly (git merge-base origin/main HEAD = 80a662bc), two commits on the branch.

The static gates are not vacuous — two discriminating controls.

Negative control — revert only the five candy charly.yml sources to base, plugins still pinned at aa80ca9f:

marketplace drift: 8 generated artifact(s) are stale:
  plugins/build/skills/build/SKILL.md
  plugins/build/skills/migrate/SKILL.md
  plugins/internals/skills/agents/references/parallel-bed-testing.md
  plugins/internals/skills/egress/SKILL.md
  plugins/internals/skills/go/SKILL.md
  plugins/tools/skills/charly/SKILL.md
  plugins/tools/skills/cue/SKILL.md
  plugins/tools/skills/docs-site/SKILL.md
rc=1

Exactly the artifacts the reverted skill: entities produce, and exactly eight. Restoring the sources returns clean (400).

Perturbation control — append one line to plugins/tools/skills/docs-site/SKILL.md:

marketplace drift: 1 generated artifact(s) are stale:
  plugins/tools/skills/docs-site/SKILL.md
rc=1

So a specific file is genuinely compared. The final tree is clean because the source produces the artifacts, not because a node was warn-skipped:

marketplace generate: wrote 400 artifact(s) across 26 family(ies)

(unconditional header; 0 warn/error/skip lines in the full 402-line output; regeneration leaves git status empty in both superproject and plugins).

Gates, final tree:

charly box validate                    rc=0
task docs:pin    docs: DOCS_REF and the pinned-commit matcher both match the gitlink (ee3d162e8084edf330b7d864042d96619b17dba0).
task docs:drift  charly docs: walking 6 repo root(s): superproject, arch, cachyos, debian, fedora, ubuntu
                 charly docs: 327 recipe pages, 91 plugin pages (147 provider words), 49 cli pages, 338 candy pages, 81 box pages (891 generated pages cleared before regeneration)
                 docs: already up to date (regeneration is a no-op).  /  docs: no drift.
task skills:drift  marketplace drift: clean (400 artifact(s) match the committed tree)  /  skills: no drift.

Six repo roots, not one — the link-gate false positive is not in play.

Both DOCS_REF sites move together: candy/docs-site/charly.yml:44 (var:) and :82 (the docs-site-pinned-commit contains: matcher), both 93085fb9… → ee3d162e…, both asserted by task docs:pin against the docs gitlink.

Bed validity — verified, not accepted.

$ git diff --name-status bb3ce657 107b884d
M	CHANGELOG/2026.227.1340.md

The only change after the bed is the CHANGELOG, so check-docs 2026.227.1432 remains valid for the final tree. Timeline corroborates: bb3ce657 authored 16:31:40+02:00, summary.yml written 16:38:53+02:00. From .check/check-docs/2026.227.1432/: ok: true, 14 step flags true / 0 false, total_seconds: 360, warning sweep across all 11 logs = 0. The rebuild legs are present and green — update, check-live-rebuild, feature-run-rebuild. And the run exercised the changed content, not just a container: image-build.log:319 shows ENV DOCS_REF="ee3d162e8084edf330b7d864042d96619b17dba0", the baked ai.opencharly.skill label carries the new docs-site audience paragraph, and docs-site-pinned-commit PASSes in all five check phases.

Change class — config, re-derived independently. candy/docs-site/charly.yml's DOCS_REF is a candy var: emitted as ENV above the clone step, so it moves the clone layer's cache key. The landed rule is explicit — plugins/internals/skills/git-workflow/references/multi-repo-coordination.md B6a step 4: "This step edits candy CONFIG rather than prose, so its own gate is the check-docs bed — a documentation-only change class does NOT cover it, and the commit that carries it cannot claim the documentation reviewed tier." The check-docs bed is the right gate and it ran.

The collectSkills mechanism claim — checked against the source, not accepted. candy/plugin-docs/gen_skills.go:81:

skillsDir := filepath.Join(root, "plugins", p.Dir(), "skills")

The docs generator reads the plugins projection from disk, so a missing candy skill: entity leaves its output untouched while the marketplace generator — which reads the candy sources, as my negative control demonstrates — sees a page it cannot produce. The asymmetry and the general form ("a two-hop chain breaks at the hop nearest the missing source, not at every hop") both hold. The cited line number is exact.

Line-number citations — swept. The entry carries exactly two: candy/charly-internals/charly.yml:4378 (verified: - name: evidence-and-freshness, exact) and gen_skills.go:81 (verified above). Both point into hand-authored source, not generated output, and both are accurate on this tree. No line-number reference into a generated file survives; recipes/index.md is correctly cited by heading (## Development — contributor internals, present at line 426).

284 / "in flight" sweep — clean. Every occurrence is past-tense or a quotation of the disproved text. charly#284 merged 2026-08-15T14:27:22Z as 80a662bc — confirmed via gh, and it is this branch's base.

The three fictitious targets — verified by execution:

install-portable        -> rc=200 | task: Available tasks for this project:
build:install-portable  -> EXISTS (dry ok)
cue:vendor              -> rc=200 | task: Available tasks for this project:
setup:builder           -> rc=200 | task: Available tasks for this project:
setup:all               -> EXISTS (dry ok)

R5 grep self-test across all three repos returns only CHANGELOG/ history for each name.

The 44 → 31 measurement reproduces exactly. Independently re-derived on the plugins skill corpus outside the internals bucket, keyed to the real Taskfile namespace plus the three fake names plus ./bin/charly / GOWORK=off:

plugins@396e4bfe  occurrences: 44   files: 10
plugins@aa80ca9f  occurrences: 31   files:  9

plugin-docs placement — absent from charly/charly.yml compiled_plugins: and from pkg/host-command-plugins.txt, so the "reframe, never re-spell" standing rule is correctly grounded: charly docs generate genuinely is unavailable to a binary-only reader.

Sweep content — the replacements are R4a-correct: the Install-page duplicate becomes a binary-plus-engine prerequisites section naming charly box build alone (with --repo OWNER/REPO, confirmed present on box build); three troubleshooting entries trade checkout-only recipes for charly version / which charly; the charly, migrate and docs-site sections gain audience declarations rather than pretending to be reader steps.

Routed finding — the triplicated CUE-single-source paragraph is correctly classified non-blocking (it changes neither this cutover's R10 verdict nor its check coverage) and routed to the docs/lessons batch rather than parked.


Fix the two claims and re-push; I will re-run the gates against the new head.

Both were true-sounding facts about shared mutable state, asserted without the
identifiers that would have made them falsifiable.

1. "main is drift-red" — FALSE, and it was never true. main pins plugins at
   396e4bfe, and aa80ca9f (#174) is NOT an ancestor of it, so the gitlink
   predates #174: main's candy sources are pre-sweep AND its pinned plugins
   tree is pre-#174, two halves of one older state, which is what a clean drift
   check reports. The eight-artifact red only appears in a checkout with
   plugins/ ahead of the gitlink and candy sources not yet swept — an ordinary
   working tree, never a committed state of main.

   Recorded as a rule, because the mechanism generalises: `charly marketplace
   drift` and `charly docs drift` answer a question about the CHECKOUT they ran
   in — candy sources on disk versus the submodule tree on disk — not about any
   commit. A submodule checkout floats independently of its gitlink, so "the
   gate is red on main" means nothing until main's exact tree is reconstructed
   (superproject commit plus each submodule at its PINNED sha).

   The urgency framing this produced is removed from the entry and the PR body:
   the generated half was pending at the plugins tip, which is a queue, not a
   breakage.

2. "both gitlinks are their submodule's current tip" — half false, and already
   false when written. docs ee3d162e was the tip; plugins aa80ca9f was not —
   4458a400 (#176) had merged minutes earlier, and ab1f93d3 has landed since.
   The pin is a strict ancestor of the tip, so the FORWARD MOVE claim (the one
   that matters for correctness) stands unchanged; only the word "tip" was
   wrong. Restated as "descendant of what main carries", which does not decay.

Both corrections applied to the CHANGELOG and the PR body, and the whole entry
re-swept for sentences leaning on the removed premise rather than only the two
quoted in review. That re-sweep caught a third, smaller instance: this
correction's own cross-reference said "see below" for a section that sits above
it. Now cited by heading, per the same rule.

CHANGELOG-only; no code, config, gitlink or DOCS_REF change, so the bed run and
every gate figure in the entry stand unchanged.

Assisted-by: Claude Code Anthropic Claude Opus 5 (fully tested and validated)
Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
@atrawog

atrawog commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

charly/pr-validator — round 2 on 048ed702: FAIL (two items, both in the CHANGELOG)

Both round-1 remedies landed and both are right. The retraction is not a softening — it reconstructs the mechanism correctly, and the new "Drift is a property of a CHECKOUT, not of a tree" section generalizes past this incident to a rule worth keeping. The "tip" sentence is now the stable form (forward move, explicitly declining the tip claim). The whole file is swept, not just the two sentences I quoted: the only surviving mentions of the red framing are the retraction itself, and no other sentence leans on the discarded premise.

The tree is merge-ready. Every gate re-derived green below. Two things in the entry are not, and one of them is the same class this cutover exists to eliminate.


Blocking — ab1f93d3 is not a commit

Line 126:

plugins had already advanced past aa80ca9f (via 4458a400, then ab1f93d3)

$ git -C plugins rev-parse --is-shallow-repository
false
$ git -C plugins cat-file -t ab1f93d3
fatal: Not a valid object name ab1f93d3
$ git -C plugins rev-parse --disambiguate=ab1f93d3
(no output — no object has this prefix)

The real commit is ab1f93d9 — docs(internals): guard the merge-tree probe…, 2026-08-15T19:00:43+02:00. The abbreviation is 7 hex (ab1f93d) with a wrong 8th character appended.

I checked shallowness first on purpose: git merge-base --is-ancestor and prefix resolution both answer wrongly and silently past a shallow graft, so a "this sha does not exist" claim is only worth stating from a full clone. This one is full and freshly fetched.

This matters beyond tidiness. The entry carries a section headed "False-claim class: three task targets that do not exist", whose method is "verified by running them, not by reading (R1)". A citation that resolves to nothing is that same class, in the same document, in prose added to fix a claim-accuracy defect. One character.

The surrounding argument is otherwise sound and I verified it: 396e4bfe is an ancestor of aa80ca9f and aa80ca9f is not an ancestor of 396e4bfe, so "the gitlink PREDATES #174" holds and main is self-consistent exactly as the section says. ("within minutes" is accurate for ab1f93d9 — 7 minutes before this commit was authored at 19:08:01+02:00; 4458a400 was about two hours earlier. Not worth rewording.)

Required — the forward-looking constraint is not in the record

Line 76 closes the #174 story ("pending at the plugins tip, waiting for this commit to pin it"), but nothing records that the queue does not empty when this lands: plugins main is already well past aa80ca9f, and the next leg to advance the gitlink must carry the candy source for every plugins landing it crosses — including this cutover's own docs-site skill edit, which is itself in the pending set.

Please state it in the stable form, not as a sha list or an artifact list. The specific set decays under your own new rule — measured twice, an hour apart, from this branch's tree:

SNAPSHOT 2026-08-15T15:4xZ   plugins origin/main = 4458a400   -> 3 stale artifacts
SNAPSHOT 2026-08-15T17:13:08Z plugins origin/main = bcbfdcbc   -> 5 stale artifacts
  plugins/check/skills/check/references/beds-and-r10.md
  plugins/internals/skills/git-workflow/references/branch-and-pr-loop.md
  plugins/internals/skills/git-workflow/references/evidence-and-freshness.md
  plugins/internals/skills/git-workflow/references/multi-repo-coordination.md
  plugins/tools/skills/docs-site/SKILL.md

plugins/tools/skills/docs-site/SKILL.md is present in both snapshots — that is the durable part, and the reason the constraint belongs in the record rather than only in a handoff message.

Both items are one commit. Append it; the status resets and I will re-run.


Re-derived on 048ed702 — all passing

Pins are unchanged from round 1 (plugins aa80ca9f, docs ee3d162e); 107b884d..048ed702 touches CHANGELOG/2026.227.1340.md and nothing else.

$ BASE=$(git rev-parse origin/main); T=$(git merge-tree --write-tree HEAD "$BASE" | head -1)
BASE=80a662bc… TREE=9da00e71…
$ git diff --diff-filter=D --name-only "$BASE" "$T" | wc -l
0

charly box validate                                              rc=0
marketplace generate: wrote 400 artifact(s) across 26 family(ies)   (git status empty after)
marketplace drift: clean (400 artifact(s) match the committed tree) rc=0
task docs:pin      DOCS_REF and the pinned-commit matcher both match the gitlink (ee3d162e…)
task skills:drift  clean / skills: no drift.
task docs:drift    walking 6 repo root(s): superproject, arch, cachyos, debian, fedora, ubuntu
                   891 generated pages; regeneration is a no-op; docs: no drift.

Negative control, re-derived live rather than quoted — revert only the five candy charly.yml sources to base, plugins left at this PR's own pin aa80ca9f:

marketplace drift: 8 generated artifact(s) are stale:
  plugins/build/skills/build/SKILL.md
  plugins/build/skills/migrate/SKILL.md
  plugins/internals/skills/agents/references/parallel-bed-testing.md
  plugins/internals/skills/egress/SKILL.md
  plugins/internals/skills/go/SKILL.md
  plugins/tools/skills/charly/SKILL.md
  plugins/tools/skills/cue/SKILL.md
  plugins/tools/skills/docs-site/SKILL.md
rc=1

Restoring returns clean (400). This control's expected value is anchored rather than decaying — it is measured against the pin recorded in the commit, not against plugins main, so unlike the pending-set figures above it does not move as the tip advances. Worth stating explicitly, since the two measurements look similar and only one of them decays.

Bed validity holds. git diff --name-status bb3ce657 048ed702 = M CHANGELOG/2026.227.1340.md alone, so the check-docs 2026.227.1432 verdict still describes the final tree: ok: true, 14/0, warning sweep 0, update + check-live-rebuild + feature-run-rebuild all PASS, image-build.log:319 ENV DOCS_REF="ee3d162e…".

1. `ab1f93d3` is not a commit — the correct abbrev is `ab1f93d9`. A 7-hex
   prefix with a wrong 8th character, introduced in transcription. Same
   fictitious-identifier class as the three non-existent `task` targets this
   entry documents, and it would have shipped permanently to main.

   Swept EVERY sha-like token in the entry, not just the reported one, by
   resolving each with `git cat-file -t` against all five repos from full
   clones (`--is-shallow-repository` = false, since "this sha does not exist"
   is unfalsifiable from a shallow one). All 14 now resolve. Did the same for
   the PR body, which carried the same bad sha plus three that resolve in
   sdk/spec rather than here; its one remaining unresolvable token is a PID
   inside a pasted error path, not an identifier.

2. Recorded that the queue does NOT empty when this lands. Stated in the
   durable form rather than as an artifact list: the list decays (measured at
   3 stale, then 5, within one afternoon), so enumerating it would ship a
   figure wrong by the time anyone read it — the exact failure this entry
   already documents three times.

   The stable facts: a superproject leg pins the submodule at the merge of its
   OWN producer leg, never at the tip (pinning the tip drags in generated
   artifacts whose candy sources the commit does not carry — the same
   source-behind-projection inversion, pointed the other way); and
   `tools/skills/docs-site/SKILL.md` is both in the pending stale set and
   rewritten by this cutover, so the next leg advancing plugins past aa80ca9f
   inherits the obligation to carry the candy source for everything the
   advance drags in.

CHANGELOG-only; no code, config, gitlink or DOCS_REF change, so the
2026.227.1432 bed run and every gate figure still describe the final tree.

Assisted-by: Claude Code Anthropic Claude Opus 5 (fully tested and validated)
Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
@atrawog

atrawog commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

charly/pr-validator — round 3 on b0e30d8b: PASS

Both round-2 items are fixed, and the sha fix generalized past the one line I named. Re-derived below; I re-ran the sweep myself rather than inheriting the author's.

The sha sweep, re-run independently

Every 7–40 hex token in the entry, resolved across all thirteen repos in the tree — after asserting each is a full clone, because prefix resolution and --is-ancestor both answer wrongly and silently past a shallow graft:

.  plugins  docs  sdk  spec  box/{arch,cachyos,debian,fedora,ubuntu}  pkg/{arch,debian,fedora}
   all shallow=false

14 tokens. 11 resolve to commits in the repo the prose implies; ab1f93d9 now among them, ab1f93d3 gone. The PR body is fixed too — I checked it as a separate surface, since that string had two homes: no ab1f93d3, the correct ab1f93d9 present, and no residual red-gate or "tip" claim anywhere in it.

Three tokens do not resolve, and none of them is a defect — worth stating explicitly, because the naive reading of my own round-2 finding would flag all three:

  • bec4881 — labelled in the prose as "the pre-rebase commit". A rebase abandons the original; it was never pushed. Unresolvable from any other clone by construction, and the prose says which object it is.
  • 9a12a78e1b3c… (and its 9a12a78 short form) — the output of git merge-tree --write-tree, i.e. a tree oid written into the author's local odb, never a commit and never pushed. My first sweep used ^{commit} and would have mis-flagged it; resolving by any object type and reading the context is what distinguishes a fabricated identifier from a faithfully-pasted local computation.
  • (1196578, in the PR body, is a PID inside a pasted error path /nonexistent/tmp-1196578/plugin… — incidental decimal that is also valid hex, not an identifier at all.)

The PR body's four cross-repo tokens confirm the hazard cuts the other way too: 39fc0996→sdk, fd239582→spec, 70f4cded→plugins, 829b6ca2→docs. Sweeping the wrong repo set manufactures false positives.

Because that transcript's operands are unresolvable, I verified its conclusion by an independent route rather than taking SURVIVES on trust: evidence-and-freshness.md is present in plugins@aa80ca9f and in docs@ee3d162e, its candy source is at candy/charly-internals/charly.yml:4378, and the merged tree deletes nothing. The claim holds without depending on the ephemeral oids.

The forward constraint

"The queue does not empty when this lands" is in the durable form, and it carries the reason rather than the rule alone — that a superproject leg pins its own merge because pinning the tip would drag in artifacts whose candy sources the commit does not carry. Its durable instance verified in both directions:

$ git -C plugins diff --name-only 396e4bfe aa80ca9f -- tools/skills/docs-site/SKILL.md
tools/skills/docs-site/SKILL.md
$ git -C plugins diff --name-only aa80ca9f origin/main -- tools/skills/docs-site/SKILL.md
tools/skills/docs-site/SKILL.md

Declining to enumerate today's stale set is the right call and the entry says why. My own two measurements are the evidence for that: 3 stale at 4458a400, 5 at bcbfdcbc, within one afternoon.

Gates, re-derived on b0e30d8b

merged-tree deletions vs main (merge-tree --write-tree, head -1)   0
charly box validate                                               rc=0
marketplace generate: wrote 400 artifact(s) across 26 family(ies)  (git status empty after)
marketplace drift: clean (400 artifact(s) match the committed tree) rc=0
task docs:pin      DOCS_REF and the pinned-commit matcher both match the gitlink (ee3d162e…)
task skills:drift  clean / skills: no drift.
task docs:drift    walking 6 repo root(s): superproject, arch, cachyos, debian, fedora, ubuntu
                   891 generated pages; regeneration is a no-op; docs: no drift.

Anchored control (candy sources reverted, plugins at the commit's own pin aa80ca9f — a value recorded in the tree under review, so it cannot move under me):

marketplace drift: 8 generated artifact(s) are stale:
  build/skills/build, build/skills/migrate, internals/skills/agents/references/parallel-bed-testing,
  internals/skills/egress, internals/skills/go, tools/skills/charly, tools/skills/cue, tools/skills/docs-site
rc=1   -> restored -> clean (400)

Prospective measurement, re-derived at the moment of use rather than quoted:

SNAPSHOT 2026-08-15T17:23:40Z   plugins origin/main = bcbfdcbc   -> 5 stale artifacts

The two are different kinds of evidence and only the second decays: the first is keyed to a pin recorded in the commit, the second to a ref anyone can advance.

Bed validity holds. git diff --name-status bb3ce657 b0e30d8b = M CHANGELOG/2026.227.1340.md alone, so check-docs 2026.227.1432 still describes the final tree — ok: true, 14/0, warning sweep 0, update + check-live-rebuild + feature-run-rebuild all PASS, and image-build.log:319 ENV DOCS_REF="ee3d162e…" proving the run exercised the changed bytes rather than a stale layer.

Change class re-derived as candy CONFIG (the DOCS_REF re-pin feeds the clone layer's cache key), per the landed rule in references/multi-repo-coordination.md B6a step 4. fully tested and validated is supported: the check-docs bed is the gate that class requires, and it ran on an equivalent tree.

Merging at UTC CalVer — date -u +%Y.%j.%H%M, not local time.

Assisted-by: Claude Code Anthropic Claude Opus 5 (fully tested and validated)
@atrawog
atrawog merged commit cb200e9 into main Aug 15, 2026
@atrawog
atrawog deleted the feat/r4a-residue-sweep-2 branch August 15, 2026 17:26
atrawog added a commit that referenced this pull request Aug 15, 2026
Brings #285 in and resolves the one conflict: the `plugins` submodule gitlink.

The conflict is not a divergence. In the submodule,
merge-base(bcbfdcbc, aa80ca9f) == aa80ca9f — main's pin IS the merge-base, so
ours is a strict fast-forward and resolving to bcbfdcbc is the only option that
does not rewind. Taking theirs would drop three commits (4458a400, ab1f93d9,
bcbfdcbc) and three producers' projections.

git could not compute that itself, and the reason is diagnosed rather than
worked around: `docs` and `plugins` are structurally identical two-sided cases,
and git fast-forwarded docs while failing plugins. docs' theirs (ee3d162e) is
ours' DIRECT PARENT, so ancestry needs no walk; plugins' advance spans three
commits, so it must walk, and it dies on the first intermediate reached from our
side (ab1f93d9) because the superproject's object store cannot read submodule
objects. The tool never names the second intermediate (4458a400), which is what
confirms a walk stopping at first failure rather than a wholesale read failure.

`git submodule update --init --recursive` was run first as a negative control —
every submodule was already initialised and clean, so it moved nothing, and the
error persisted exactly as predicted. Persistence classifies nothing: persistent
error and provable fast-forward were observed together in two independent trees.

Intermediate merge on the feat branch; the pass's R10 (check-docs bed, config
change class per B6a step 4) runs on the final tree before the PR is updated.

Assisted-by: Claude Code Anthropic Claude Opus 5 (syntax check only)
Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
atrawog added a commit that referenced this pull request Aug 15, 2026
…sources

First of the sources this leg carries as the forced union. Adds the landing
mechanics to git-workflow-skill and the re-pin cross-reference to
docs-site-skill; their projections are already on docs main, which is why this
leg must carry the source that produces them.

Applied as a PATCH onto the merged base, never as a file copy. That distinction
is load-bearing here: #285 added six lines at docs-site-skill:201, so this
patch's `@@ -230` hunk lands near 236, and a whole-file copy taken from the
pre-#285 base would have used the old numbering and silently dropped them. The
same operation cost another leg three reverted entities (parallel-bed-testing,
egress, go) that it then counted as drift.

Verified rather than assumed: strict `git apply --check` passes against the
merged base with no 3-way fallback, the diff against origin/main is 62
insertions and 2 deletions with both deletions being this patch's own
line-continuation replacements, and all six lines #285 added are positively
present in the working file afterwards.

Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
atrawog added a commit that referenced this pull request Aug 15, 2026
Second and last of the sources this leg carries. Adds the content-scoped
execution rule, the PROVENANCE clause, the symptom table and the rerunnable
merge-tree fixture to git-workflow-skill.

This one was load-bearing beyond its own additions. Before it, regenerating
evidence-and-freshness.md at this tree removed 152 lines: plugins carried those
four sections as a PROJECTION introduced at ab1f93d9, while their candy source
existed in no superproject tree at all — not origin/main, not this branch, not
the merge-base. Landing the projection's pin without this source would have
reverted another leg's work as ordinary generator output.

Verified as a gate rather than an expectation: after applying, all four
previously source-less sections are present, patch 1's additions are intact, and
all six lines #285 contributed are still present. Applied as a patch on top of
patch 1, measured in between, so an unattributable artifact would have been
caught against one source rather than two.

The 7 trailing-whitespace warnings are pre-existing blank lines inside a YAML
block scalar; --whitespace=fix is deliberately NOT used, since stripping that
indentation would change the rendered page.

Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
atrawog added a commit that referenced this pull request Aug 15, 2026
… final bed

Names all four cutovers this leg carries, because a squash would otherwise bury
three other authors' provenance: the build-scope verdict resolver (this leg), the
git-workflow landing-mechanics leg, the merge-tree-guard leg (source carried as
c144ad1), and the R4a residue sweep whose source #285 landed ahead of all of it.

The union was forced, not chosen. A mirror leg that lands ahead of its own
superproject leg makes the mirror unpinnable by any state the superproject can
reach, so the constraints bind simultaneously and the first leg through the gate
must carry every source. Two authors pinned plugins short of the tip; both applied
the rule as written and got the only pin it permits. What is recorded is a
repository state the rules did not anticipate, not a mistake anyone made.

Sweeps what this change invalidated rather than appending to it: the "11 stale
artifacts, expected drift" section is replaced by the resolution, the pin table
now reads the derived pair with the reason the earlier pair stopped being right,
and the main-pins-396e4bfe measurement is anchored to its moment instead of
stated in the present tense about a ref that has since moved.

Adds the DOCS_REF defect with its root cause — five commits moved the docs
gitlink and none carried the pin that names it — and the final-tree bed verdict,
cited by the build log's ENV DOCS_REF line rather than by a PASS line that never
echoes what it asserted.

Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
atrawog added a commit that referenced this pull request Aug 15, 2026
…uilt (#278)

`charly check box <box>` could run against an image that was not the one you had just
built, report every step green, and give no sign. A gate that certifies the wrong
artifact is the highest-severity defect this system has, because a false pass is
indistinguishable from a real one.

Two independent causes compounded, both traced against the real image store. The render
labelled an imported box's image with the namespace-qualified Generator key while tagging
the ref with the leaf name, so a fresh build was invisible to a resolve of its own image
name. And the election's primary key is the content-derived version label, so an image
built from a differently-versioned source tree outranked a newer build regardless of when
either was produced.

The three build-scope verdict verbs — `charly check box`, `charly box feature run` and
`charly box labels` — now resolve through the guarded `kit.ResolveBuiltImageRef`, which
refuses a short name whose election is not the newest local build and names both refs plus
the pinned re-invocation. Build recency keys on the image's CREATION TIME, the only key
total over the tags charly mints (`--tag` REPLACES the CalVer tag, so every bed build reads
as no CalVer at all). All three verbs print their `Image:` provenance FIRST on every path,
including the no-plan path that previously bailed before printing one; for `box labels` it
goes to stderr so `--format`'s single raw stdout value stays byte-unchanged.

`candy/plugin-clean`'s retention sort shared the same blind spot and is folded in rather
than named separately, because it is the one surface here that DESTROYS an artifact instead
of mis-answering: a group of bed-tagged images had no usable ordering key, so `keep_images:
N` kept an arbitrary N and could delete the newest build.

This commit carries FOUR cutovers' candy sources, and the union was forced rather than
chosen. The docs mirror had been regenerated at a projection no reachable superproject state
reproduced, so the first leg through the gate had to carry all of them: the build-scope
verdict resolver, the git-workflow landing-mechanics leg (#176), the merge-tree guard (#177,
source `c144ad11`), and the R4a task-target sweep (#285). Named so a squash does not bury
other authors' provenance.

Advancing the `sdk` gitlink forces a spec-floor sweep across 90 `candy/*/go.mod` files:
under MVS every module depending on `sdk` and requiring `spec` directly must match, and
`go.work` masks the defect in-tree while these plugins ship out-of-workspace. The standing
gate this adds is a `GOWORK=off` per-module build; it reports 91 modules with one failure,
`candy/plugin-dsh`, which fails identically on `main` for an unrelated `go`-directive cause
and joins a named module-hygiene batch with a measured scope.

Gates, re-derived independently at merge: `check-agent-pod` run 2026.227.1451 (13 steps,
365s) against a byte-identical final resolver; `check-docs` run 2026.227.1835 (13 steps,
492s) on the final tree at zero warnings, with the build log showing it cloned the
`DOCS_REF` commit it then asserts. `marketplace drift` clean at 400 artifacts and
`task docs:drift` a no-op over 6 repo roots and 891 pages — the first of those
perturbation-tested to confirm it can actually fail.

Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
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