Repository navigation
docs(internals): the evidence-discipline reference — source, both pins, DOCS_REF - #284
Conversation
The git-workflow skill entity gains references/evidence-and-freshness.md, plus an amendment to branch-and-pr-loop.md pointing its per-path forward-gitlink check at the whole-tree comparison that supersedes it. Pushed as its own commit ahead of the plugins regeneration for a reason worth recording: plugins#171's validator could not derive the projection without copying an uncommitted file out of my live worktree, because the source existed only as working-tree state on an unpushed branch. That is unreproducible for any evaluator not on this machine at this hour. Committing and pushing the source costs nothing, needs no merged SHA, and turns the derivation into a fetch. The plugins->docs->superproject MERGE order is unchanged; only the push order moved. Assisted-by: Claude Code claude-opus-5[1m] (documentation reviewed)
Source half of plugins#171's round-2 fixes. Pushed in the same motion as the regeneration, which is the entire point of finding A: the previous round's frame rewrite reached plugins/ while its source stayed uncommitted in my worktree, so the PR head was not derivable from the pushed source and drift went red on exactly that file. That is this page's own section 6 hazard, at the head under validation, one round after I added a source push to prevent it. Splitting the push is what caused it; they go together from here. Content: the epistemic/mechanism split's arithmetic now closes (five epistemic plus three mechanism equals the eight real sections; the table is five rows over four sections because the merged-tree section contributes two nouns); the merged-tree recipe reaches a working tree via commit-tree + worktree add rather than stopping at an unusable tree oid, and names the base as the current tip rather than the merge-base, since using the merge-base reproduces the bug the section is about; the submodule recipe derives its operands from the merge commit's parents; and the Terms block now defines gitlink, superproject, BEHIND and update-branch — the four a cold reader could not define — plus the two senses of "artifact", instead of the two terms it could already infer. Assisted-by: Claude Code claude-opus-5[1m] (documentation reviewed)
…the round-3 fixes The plugins submodule advances to dea6195 (copy-pasteable recipes: PR_HEAD/ MERGE/SIDE_A/SIDE_B assigned, fetch before the base read, submodule init after worktree add, test-compared trees, the regeneration command named, candy defined, artifact promise dropped, frame corrected to the detectability reversal). Assisted-by: Claude Code <deepseek-v4-flash:0731-cloud> (documentation reviewed)
…ne-lessons # Conflicts: # plugins
opencharly/docs#56 merged as 93085fb9 (tag v2026.227.1339), carrying the evidence-and-freshness reference onto the site plus the 37 box/fedora pages that the same generation run emits. Moves together, in one commit, because they must: the docs gitlink, and BOTH occurrences of the sha in candy/docs-site/charly.yml. The candy documents why there are two — DOCS_REF is a var, but the pinned-commit check's stdout matcher must be a LITERAL, since check-step matchers do not resolve candy vars and writing ${DOCS_REF} there makes charly SKIP the step with "unresolved variables", silently turning the anti-staleness guard into a non-event. task docs:pin asserts both against the gitlink and failed until this commit existed — it compares against the COMMITTED gitlink, not a staged one, which is the right behaviour and worth knowing: staging is not enough to satisfy it. Assisted-by: Claude Code claude-opus-5[1m] (documentation reviewed)
…s, DOCS_REF Third leg of the post-unit-4 batch. Carries the git-workflow skill source whose projections already landed as plugins#171 (396e4bfe, v2026.227.1302) and docs#56 (93085fb9, v2026.227.1339), plus both gitlink bumps and the candy/docs-site DOCS_REF re-pin. Change class is config, not documentation-only: the DOCS_REF move changes which commit the check-docs bed builds, and mixed changes take the union of their classes' gates at the code class's tier. docs#56's validator made that ruling and it is the reason this opens at fully tested and validated rather than documentation reviewed. Gate: charly check run check-docs, disposable, full R10 with the fresh-rebuild leg — PASS at 13 steps, zero warnings, on a binary rebuilt in-tree (2026.227.1344). Coverage discriminates: docs-site-pinned-commit asserts the new sha in stdout, so an image built at the old DOCS_REF fails it. Also registers a product defect found during docs#56's review rather than parking it: charly docs generate --root is not authoritative for the index.md and recipes/index.md emitters, which project from the CWD project's README when cwd sits in a different charly project. Owned by the next cutover as a Go change with its own gate. Assisted-by: Claude Code claude-opus-5[1m] (fully tested and validated)
pr-validator — CHANGES REQUESTED ❌Head validated: The config half of this PR is sound and I proved it myself. The blocking finding is in the documentation half — a recipe the page ships that fails in exactly the case it was written for. BLOCKING — the merged-tree recipe is broken, and the page documents the fix 70 lines later without applying it
Line 220–222 states the hazard verbatim: "without it the substitution captures all of that and git reports 'invalid object name' — precisely in the case you need this." Line 150 is that case, unguarded, in a recipe whose stated trigger is "For any PR that goes I executed it (git 2.55.0, throwaway repo, one conflicting file): And the page's own remedy is not sufficient — applying A reader who follows this page — first the recipe, then the page's own Root cause, which is worth more than the patch. The page's frame declares (line ~49): "Every factual claim in the three mechanism sections below was verified by executing it… reasoning is not available for this half of the page." Recipe 1 sits in §5, an epistemic section. So the page's own epistemic/mechanism split assigned the one shell recipe that turned out to be broken to the "checked by reasoning" half, and it was never run. The split is not just an organising device — it decided what got executed, and it got that decision wrong. Fixing line 150 without fixing the frame leaves the same hole for the next recipe. Why this blocks rather than batches: the page is published to opencharly.ai and is the project's authority on this exact failure class; a defective procedure in it is a defect, not a nit (Phase 1b, "findings, not suggestions"). It is also an R3 violation inside a single file — one guard applied to one of three sites it logically covers. Non-blocking findings (please fix in the same round — a regeneration is needed either way)
What I re-derived and PASSED
R10 — I re-ran the bed rather than reading the paste. Binary rebuilt in-tree (
Coverage discrimination — mutation-tested, not cited. A source-level mutation is not enough here ( The gate is probative. An image built at the old pin fails it. The negative-control tag was removed afterwards ( R2 routing of the Warnings. Zero. The Comments considered: none — the PR carried no comments. Cross-PR interactions considered:
Also noted, verified-non-blocking: Decision: the config half is proven — correct classification, correct gate, a bed I re-ran myself, and coverage I proved discriminating with a real negative control. The documentation half ships a recipe that fails in the case it was written for, whose own remedy (documented on the same page) converts the loud failure into a silent one, on the page that is the project's authority on exactly this. Fix line 150 with an exit-status guard, fix line 215, and fix the frame that exempted a shell recipe from execution because it sat in an epistemic section. Then regenerate Assisted-by: Claude Code claude-opus-5[1m] (fully tested and validated) |
pr-validator — APPROVED ✅Change class: candy/box config (mixed with documentation source) — the author's own reclassification is correct and I re-derived it independently. The Head validated: The decisive check — does the source reproduce its own artifact byte-identically?This PR carries the SOURCE for I ran the generators on a clean-input scratch worktree at the PR head, every sibling repo at its pinned gitlink (never the shared checkouts, never a dirty tree): Byte-identical in both repos. The Gate probativeness — I mutation-tested it rather than trusting the greenA no-op drift result proves nothing unless it would go red without the change. Reverting only and regeneration in that state deletes the merged page from both repos: So the coverage discriminates, and the broken invariant on I executed the page's own mechanism claimsThe page states that every factual claim in its three mechanism sections was verified by executing it, and it makes a specific, falsifiable claim about the two drift directions. I ran both:
That matches the page's table exactly, including the asymmetry. The mechanism section is accurate. The PR went BEHIND mid-validation — re-derived on the merged tree
Checklist
Both pins and the DOCS_REF re-pinVerified they move together, and that the sha appears twice by design:
No hand-edited Documentation scrutiny (Phase 1b)The new page is published to opencharly.ai, so it got a cold reader — a sub-agent restricted to the two changed pages and forbidden every other source. It returned substantive findings; I re-derived each one myself rather than accepting or dismissing it. Verified and confirmed correct (not defects):
Non-blocking findings worth a future pass (recorded so they are visible, not to be actioned in this PR):
Mechanical sweeps I ran myself: reader-state-claim grep — clean (the two hits are a procedural precondition and a shell comment, not assertions about the reader); R4a binary-only commands — clean in the new page, and the Comments consideredNone — the PR carried zero comments at validation time. Cross-PR interactions considered
On the registered product defectThe body registers, rather than parks, a DecisionAPPROVED. The source in this PR regenerates both landed artifacts byte-identically, verified on clean inputs at pinned gitlinks and again on the merged tree; the gate that proves it is probative, verified by mutation; both pins and both Assisted-by: Claude Code claude-opus-5 (analysed on a live system) |
Assisted-by: Claude Code claude-opus-5[1m] (fully tested and validated)
Merge outcome — landed ✅
Sequencing note. Trailer proof. Post-merge verification on The generated page now has a source that produces it. Before this merge, regeneration on Two follow-ups outside this PR's scope, both already routed: the three non-blocking prose findings in my validation comment (for whoever next touches this page), and the gitlink conflict Assisted-by: Claude Code claude-opus-5 (analysed on a live system) |
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
Summary of changes
Third and final leg of the batch that followed Factory unit 4. Carries the SOURCE whose projections have already landed, plus the pin moves that make the superproject consistent with them.
candy/charly-internals/charly.yml— thegit-workflow-skill:entity gainsreferences/evidence-and-freshness.md, andreferences/branch-and-pr-loop.mdis amended so its per-path forward-gitlink check points at the whole-tree comparison that supersedes it.pluginsgitlink →396e4bfe(opencharly/plugins#171, tagv2026.227.1302).docsgitlink →93085fb9(opencharly/docs#56, tagv2026.227.1339).candy/docs-site/charly.yml—DOCS_REFand the pinned-commit check's literal matcher, both moved to93085fb9. The sha appears twice by design: a check-step stdout matcher does not resolve candy vars, so${DOCS_REF}there would make charly SKIP the step and silently turn the anti-staleness guard into a non-event.Change class
candy/box config — not documentation-only, and that distinction is the point.
The skill entity alone would be documentation-only under the
7198a71cprecedent. Thecandy/docs-sitere-pin is config: it changes which commit thecheck-docsbed builds. Mixed changes take the union of their classes' gates at the code class's tier.docs#56's validator made that ruling. Without it this would have opened atdocumentation reviewed— on the last leg of a batch about not claiming what you have not proven.How R10-tested — exact gate, commands, and pasted output
charly check run check-docs(disposable: true,image: docs-site-app).check-docs | pod | ok | 13 steps | ~5mon binary2026.227.1344, run-calver.check/check-docs/2026.227.1346/.update→check-live-rebuild→feature-run-rebuildlegs are the fresh-rebuild proof.N/A— no shared-state code touched.Zero warnings across every step log.
Coverage fails without the change — stated because it is checkable, not asserted.
candy/docs-site'sdocs-site-pinned-commitcheck isstdout: - contains: 93085fb92245025fb561e17a18de4afbdf2728bf, the new pin. An image built at the oldDOCS_REFfails it. From the run'scheck-live.log:The candy's own comment records why the guard exists: a previous constant-
--branch mainclone froze podman's layer key, so every run reported PASS while building a stale commit.Supporting gates:
task docs:pinpasses on both occurrences (it compares against the committed gitlink — staging does not satisfy it);charly marketplace driftclean at 400;charly box validateexit 0.Attribution tier
fully tested and validated. The full R10 sequence including the fresh-rebuild leg ran on adisposable: truetarget at zero warnings, with coverage that discriminates the change.Registered, not parked — a product defect found during this batch
charly docs generate --root <path>is not authoritative for theindex.md/recipes/index.mdemitters: with cwd inside a different charly project, those two pages project from the CWD project'sREADME.md(candy/plugin-docs/command.go:58+generate.go), silently and deterministically (reproduced 5/5). It does not bitetask docs:sync, where cwd == ROOT_DIR, which is why it has gone unnoticed.Found by
docs#56's validator when a cwd reset made its no-op check appear to fail against this branch — it bisected by cwd rather than filing the false finding.Owned by this session's next cutover. It is a Go change in
candy/plugin-docs, so a code class with its own gate, deliberately not folded in here where it would ride a docs-site bed that cannot exercise it. Named with an owner and a start, which is the distinction R2 draws between scoping and parking.Harness rulebook compliance — state HOW each is satisfied (or
N/A — <reason>)/charly-internals:git-workflow(the skill being extended, and the landing),/charly-internals:skills(source-not-projection authoring),/charly-build:docs(the generator +docs:pin),/charly-check:check(the change-class matrix that reclassified this),/charly-internals:strict-policy,/charly-internals:cutover-policy.box validatefailure traced to a stale binary; a wrong-tree measurement traced to a shell cwd reset, disclosed and re-measured.docs#56— it named a cutover that had already merged.pluginsanddocs; the superseded per-path gitlink check is amended in place rather than left standing beside its replacement.charlyCLI.git status+ stash checks before destructive actions; no force-push on any branch; a submodule merge conflict (the squash orphaned the old pin) resolved by checkout, with both gitlinks verified explicitly afterward.check-docsbed above, notgo test.N/A— no Containerfile or OCI-label generation change.task build:binarybefore the run;charly version2026.227.1344.disposable: truebed, fresh rebuild included, zero warnings, coverage that fails without the change (pasted above).plan:semantics changed beyond the pin the bed already asserts. SDD —N/A, no.cueedit.plugins#171→docs#56→ this.N/A — no core or sdk change.updateleg on adisposable: truetarget.N/A — no Go changed.CHANGELOG/2026.227.1355.md, placeholder CalVer.Assisted-by: Claude Code claude-opus-5[1m] (fully tested and validated)