Skip to content

fix(prose): the umbrella's own committed claims the tree falsifies, and the gate that keeps the versions true - #690

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/prose-truth-689
Oct 25, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/prose-truth-689

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Closes #689

Summary

Head f7fed5f6470003f47a1f2e484712c7d4385c8840 — 6 files changed, 555 insertions(+), 14 deletions(-).

The umbrella's own committed prose, and the tree it lives in, disagreed — and the disagreement was load-bearing. Three claims in this repo were false: what BLOCKS a landing, the order the org's release machinery runs in, and the module version the repo's own scripts cite. All three are one class of defect: a mechanism or a version stated from memory instead of derived from the thing that owns it, with no control that re-derives it. The control written to keep the third class true then found a fourth defect — in itself.

Finding 1 — the skill said the CHANGELOG entry lands in the tagged tree. It does not. The org's tag-on-merge workflow creates the tag AT pr.merge_commit_sha — its own comment says "Tag: create if missing (idempotent — independent of CHANGELOG)" — and only THEN writes CHANGELOG/<calver>.md from the merged PR's title + body on main, which lands as the dispatcher's own follow-up commit docs: add CHANGELOG <calver> for PR #<n>. The tag is created before the entry exists, so the entry can never be in the tagged tree. MEASURED, two repos:

$ git show v2026.298.0740:CHANGELOG/2026.298.0740.md      # opencharly/docs
ABSENT from the tagged tree
$ git log --oneline -2 origin/main
e5f90075 docs: add CHANGELOG 2026.298.0740 for PR #184
dd289db1 fix(ci): bound every job and step in this repo's workflows ... (#184)

$ git show v2026.298.0430:CHANGELOG/2026.298.0430.md      # opencharly/opencharly
ABSENT from the tagged tree
$ git log --oneline -2 origin/main
71350f0 docs: add CHANGELOG 2026.298.0430 for PR #688
4ea0846 chore(pins): advance the charly and plugin-check pins ... (#688)

The claim is load-bearing: "block on what gets TAGGED" decides what stops a landing, and it sent a reader to a file the tag does not contain. The corrected text says what survives the merge (the PR body and the entry, both durable on main) and what the squash replaces (the intermediate commit messages), and it names the order with the measurement inline.

Finding 2 — the same skill described that order backwards. references/validator-and-calver.md said "after the squash merge, write CHANGELOG/$VER.md on main … ; then tag the merged HEAD". The workflow tags FIRST, at the merge commit; "the merged HEAD" after the changelog write is the dispatcher's own commit, and no such tag exists. The corrected bullet states the workflow's real order, and says why the order is the point: the tagged tree is the merge commit, and the entry arrives in the commit after it.

Finding 3 — two prose citations of a plugin-task version the pinned charly falsifies. scripts/sync-pr-body.sh named a version five releases behind the pin and charly.yml named one twenty-nine days behind it, while this repo's pinned charly (gitlink f1f85d19) has charly/go.mod:141 requiring a third. The three source line numbers the script cites (verbs.go:736, cli.go:261, cli.go:210) are CORRECT at the pinned version — only the version strings were false, and only the version strings are changed.

The root fix is a control, not a patch. A version transcribed into prose is a copy of a fact whose owner (the charly pin) moves on every release, and nothing re-read it: a charly pin bump changes the version the prose names, and no gate said so. scripts/check-cited-plugin-task-version.mjs re-derives the version from the pinned charly's own go.mod and fails when any plugin-task version this repo's own prose cites differs — so the pin advancing turns the gate RED at exactly the moment the citations beside it must be re-read.

Finding 4 — the control read the wrong copy, and the first commit of this change proved it. A commit ships the INDEX; the gate read the working tree. A file STAGED with a stale citation and then fixed in the worktree read GREEN, and the commit shipped the stale copy. That is not hypothetical — the first commit of this change was made exactly that way (the file was edited after it was staged), and the tree it would have shipped carried the very literals the gate had already been shown to flag. The fix is which tree the gate judges: for every file where the worktree and the index disagree, the index's copy is judged — the copy a commit ships — and the worktree's copy where the two are identical, where the worktree is the index.

Two of the four findings were introduced by this change, and both are fixed here. The control first fired on its own source (its docstring quoted the two stale literals, and its mutations wrote versions of their own) — a control that holds a copy of the fact it checks rots exactly like the prose it polices, so every version it needs is now derived from the pin, and the file quotes none. It then read the wrong copy, as above.

The table is the diff's own file set — the umbrella's own scripts/check-pr-body-diff.mjs reconciles it against the diff on every push: a path the diff changes and the table omits, or a path the table lists and the diff does not change, blocks the push.

file what it carries
.agents/skills/git-workflow/references/branch-and-pr-loop.md finding 1 — the durable-vs-squashed scope, and the tag-on-merge order, with the measurement inline
.agents/skills/git-workflow/references/validator-and-calver.md finding 2 — the same order, as the CalVer bullet states it
charly.yml finding 3 — the version citation, re-keyed; and the gate's two verify steps (the check and its "discriminates" --self-test)
scripts/sync-pr-body.sh finding 3 — the version citation, re-keyed; the cited source lines re-read at the pinned version
scripts/check-cited-plugin-task-version.mjs the new control: the version re-derived from the pin, the tree judged taken from the index where the worktree and it disagree, and a --self-test that turns it RED
hooks/pre-commit the control wired as the 13th node gate, with the header's list extended to say what it asserts

The corpus projection is the next leg, not this one. The corpus publishes this skill verbatim from this repo's own ref (candy/charly-marketplace/charly.yml pins @github.com/opencharly/opencharly), so the false claim is still published to every harness that loads it until this repo's tag lands and the corpus is regenerated. That is the marketplace repo's own regeneration, producer-first, and it is filed in the repo that owns it (opencharly/marketplace#578).

How tested

The R10 gate, on the committed tree this PR pushes. The umbrella's own charly task verify, run on f7fed5f6470003f47a1f2e484712c7d4385c8840 with the worktree-local binary:

plugin plugin-example-kind: served from /home/atrawog/.cache/charly/plugin-build/views/plugin-example-kind-660763c18b405ea9 (build sha256:643e81502274cd1f42bcf3ba7f05a981effba9654ec6eb219e85dbdfa156bb65); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-kind
plugin plugin-example-structkind: served from /home/atrawog/.cache/charly/plugin-build/views/plugin-example-structkind-f39364ecc01e5411 (build sha256:e2c98e2435e2e0110c2fc29f08a76ccf6464efaecb40a95190752286d1f16a35); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-structkind
plugin plugin-jetkvm: served from /home/atrawog/.cache/charly/plugin-build/views/plugin-jetkvm-2728452fcfb25529 (build sha256:9bdf8390f86de24e7ee3030e2dfdb5140aab232d5df4b40bd1510c18d64f0658); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-jetkvm
task verify: 35 step(s), 0 failed, 0 skipped
  [pass] check — the pin contract holds — every distro-* gitlink equals charly's own box/* gitlink (the EDGE), and every submodule is clean and checked out at its recorded gitlink (the CHECKOUT AUDIT), composed ONCE through `pins`
      verify: 6 policy pin(s) hold across 411 submodule(s); 12 checkout(s) clean at their gitlink; 399 uninitialized (pin audited, no checkout): charly-alpine, charly-arch, charly-debian, charly-fedora, charly-jetkvm, charly-lib, charly-openwrt, charly-registry, charly-streamer, charly-ubuntu, clawsweeper, crabbox, crabhelm, docs, dotgithub, eval-omarchy, gst-wayland-display, layer-a11y-tools, layer-agent-forwarding, layer-agentteams, layer-agentteams-cli, layer-agentteams-openclaw, layer-agentteams-snapshot, layer-android-apidemos, layer-android-sdk, layer-android-test-apps, layer-asciinema, layer-blogwatcher, layer-build-toolchain, layer-cachyos-extras, layer-camsnap, layer-charly, layer-charly-check, layer-charly-internals-extra, layer-charly-tools, layer-check-base-layer, layer-check-builder-npm, layer-check-composition-layer, layer-check-cross-local-driver-layer, layer-check-group-layer, layer-check-local-layer, layer-check-retention-fixture, layer-check-stack-layer, layer-check-structkind-layer, layer-check-substrate-layer, layer-check-tier1-layer, layer-chrome, layer-chrome-sway, layer-claude-code, layer-clawhub, layer-codex, layer-container-nesting, layer-crabbox, layer-cstream-desktop, layer-cua, layer-cuda, layer-cue, layer-debootstrap-builder, layer-debug-tools, layer-desktop-fonts, layer-desktop-media, layer-dev-tools, layer-devops-tools, layer-direnv, layer-docker-ce, layer-docs-site, layer-examplebuilder-consumer, layer-examplestep-consumer, layer-examplestep-deploy-consumer, layer-fastfetch, layer-ffmpeg, layer-fonts-extended, layer-forgecode, layer-gemini, layer-gh, layer-gifgrep, layer-github-actions, layer-gnupg, layer-gocryptfs, layer-gogcli, layer-golang, layer-google-cloud, layer-google-cloud-npm, layer-goplaces, layer-grafana-tools, layer-gst-wayland-display, layer-helm-chart, layer-hermes-playwright, layer-heroic, layer-himalaya, layer-java-openjdk, layer-jupyter-mcp, layer-k3s, layer-k3s-kernel, layer-kde-shell, layer-keepassxc, layer-kimi, layer-kind, layer-kubernetes, layer-kubevirt, layer-kubevirt-operator, layer-language-runtimes, layer-libnotify, layer-llama-cpp, layer-maplibre-versatiles-styler, layer-mcporter, layer-nano-pdf, layer-nerdctl, layer-nodejs, layer-notebook-finetuning, layer-notebook-graph, layer-notebook-llm-on-supercomputers, layer-notebook-ollama, layer-notebook-openrouter, layer-notebook-osm, layer-notebook-templates, layer-nvenc-headers, layer-nvidia, layer-ollama-cuda, layer-ollama-rocm, layer-omarchy-base, layer-omarchy-boot, layer-omarchy-desktop-apps, layer-omarchy-dev, layer-omarchy-fonts, layer-omarchy-gpu-nvidia, layer-omarchy-hardware, layer-omarchy-hyprland, layer-omarchy-media, layer-omarchy-network, layer-omarchy-shell, layer-omarchy-terminal, layer-omarchy-themes, layer-oracle, layer-ordercli, layer-pacstrap-builder, layer-pavucontrol, layer-pi-agent, layer-pixi, layer-playwright, layer-pod-addcandy-marker, layer-pre-commit, layer-punktfunk, layer-punktfunk-client, layer-python, layer-python-ml, layer-qdrant, layer-ripgrep, layer-rocm, layer-rpmfusion, layer-rust, layer-sag, layer-selkies-kde-desktop, layer-sherpa-onnx, layer-shortbread, layer-socat, layer-songsee, layer-sqlite, layer-ssh-client, layer-steam, layer-stepkind-build-consumer, layer-summarize, layer-supervisord, layer-sway-desktop, layer-sway-desktop-vnc, layer-tailscale, layer-tailscale-up, layer-thunar, layer-tmux, layer-typst, layer-unsloth, layer-uv, layer-vectorchord, layer-versatiles-fonts, layer-versatiles-style, layer-vscode, layer-wacli, layer-wf-recorder, layer-whisper, layer-wl-overlay, layer-wl-record-pixelflux, layer-wl-screenshot-grim, layer-wl-screenshot-pixelflux, layer-wl-tools, layer-workspace-mount, layer-xdg-portal, layer-xfce4-terminal, layer-xterm, layer-xurl, layer-yay, lobster, omarchy-eval-artifacts, openclaw, openclaw-enterprise, pi-asciinema, pi-fabric, pi-lsp, pi-review-action, pixelflux, pkg-arch, pkg-debian, pkg-fedora, plugin-adb, plugin-addr, plugin-agent, plugin-agent-pi, plugin-agentteams, plugin-alias, plugin-appium, plugin-authoring, plugin-boot-kind, plugin-box, plugin-bpf, plugin-build, plugin-builder, plugin-builder-aur, plugin-builder-cargo, plugin-builder-npm, plugin-builder-pixi, plugin-cache, plugin-candy, plugin-candy-kind, plugin-cardwire, plugin-cdp, plugin-check, plugin-clean, plugin-cmd, plugin-command, plugin-crabbox, plugin-cstream, plugin-cua, plugin-dbus, plugin-deploy-local, plugin-deploy-pod, plugin-deploy-vm, plugin-desktop-kind, plugin-distro, plugin-dns, plugin-docs, plugin-doctor, plugin-dsh, plugin-egress, plugin-enc, plugin-example, plugin-example-bootstrap, plugin-example-builder, plugin-example-command, plugin-example-deploy, plugin-example-dispatch, plugin-example-external, plugin-example-kind, plugin-example-lifecycle, plugin-example-require, plugin-example-step, plugin-example-stepkind, plugin-example-structkind, plugin-examplerunverb, plugin-feature, plugin-file, plugin-fleet, plugin-generate-packages, plugin-gh, plugin-gpu, plugin-harness-kind, plugin-helm, plugin-herdr, plugin-http, plugin-init, plugin-installstep, plugin-interface, plugin-jetkvm, plugin-k8sgen, plugin-kernel-param, plugin-kube, plugin-kubevirt, plugin-loader, plugin-lobster, plugin-marketplace, plugin-matching, plugin-mcp, plugin-media, plugin-migrate, plugin-mise, plugin-mount, plugin-nerdctl, plugin-oci, plugin-ollama, plugin-omarchy, plugin-openclaw, plugin-package, plugin-pipeline, plugin-pod, plugin-port, plugin-preempt, plugin-process, plugin-punktfunk, plugin-qdrant, plugin-quickshell, plugin-record, plugin-refs, plugin-resource, plugin-review, plugin-secrets, plugin-service, plugin-settings, plugin-sidecar, plugin-spice, plugin-ssh, plugin-status, plugin-substrate, plugin-task, plugin-tmux, plugin-tunnel, plugin-udev, plugin-unit, plugin-unix-group, plugin-user, plugin-vision, plugin-vm, plugin-vnc, plugin-wl, pod-agentteams-controller, pod-agentteams-element, pod-agentteams-higress, pod-agentteams-manager, pod-agentteams-matrix, pod-agentteams-minio, pod-agentteams-worker, pod-airflow, pod-android-emulator-layer, pod-appium-server, pod-charly-automation, pod-charly-hooks, pod-charly-mcp, pod-charly-versa, pod-check-keepalive, pod-check-redis-init-layer, pod-check-tier23-layer, pod-chrome-cdp, pod-chrome-devtools-mcp, pod-chrome-headless, pod-cloud-init, pod-comfyui, pod-crabbox, pod-cstream, pod-dbus, pod-dsh, pod-filebrowser, pod-github-runner, pod-herdr, pod-hermes, pod-hermes-full, pod-hyprland, pod-immich, pod-immich-ml, pod-jupyter, pod-jupyter-ml, pod-k8s-layer, pod-kde-desktop, pod-kde-selkies, pod-labwc, pod-maputnik, pod-marimo, pod-mcp-layer, pod-nested-podman-socket, pod-ollama, pod-openwebui, pod-os-layer, pod-osm-tools, pod-pipewire, pod-pmtiles-viewer, pod-postgresql, pod-qdrant, pod-qemu-guest-agent, pod-redis, pod-redis-client-layer, pod-redis-server-layer, pod-selkies, pod-selkies-core, pod-selkies-desktop, pod-sshd, pod-sway, pod-swaync, pod-testapi, pod-traefik, pod-unsloth-studio, pod-valkey, pod-versatiles, pod-versatiles-frontend, pod-virtualization, pod-waybar, pod-waybar-labwc, pod-wayvnc, pod-web-layer, rpiv-todo, sdk, spec, vm-k3s-agent, vm-k3s-server
  [pass] check — each pin's CURRENCY — the pin is at the ref its intent names (the question the consistency half above does not answer)
      currency: 1 of 411 pin(s) NOT current [410 cur, 1 differs (no checkout to judge ancestry)]; intents: 405 upstream leaf/leaves (405 implicit), 6 derived-from edge(s); NOT CURRENT: docs: differs (no checkout to judge ancestry); intent upstream:main (implicit: .gitmodules branch=); recorded 9540ca5371; served e5f90075c1 (branch); producer-first legs: none reachable from this repo
  [pass] check — every submodule's branch equals its remote default — KEPT INLINE, deliberately, because no verb owns this clause, and it is the expensive half (one git ls-remote per submodule, hence the timeout below)
      exit=0
  [pass] check — charly's own nested submodules are at their gitlinks — KEPT INLINE, because the verb has no recursive-nested clause
      exit=0
  [pass] check — the nested-submodule step above — an uninitialized nested path is a NOTICE, a `+`/`U` drift still FAILS (fixtures)
      exit=0
  [pass] check — the branch-audit step above — every branch= is compared against the remote default, and EVERY mismatch is named (fixtures)
      exit=0
  [pass] check — the branch-audit gate discriminates — each mutation turns it RED (fixtures)
      exit=0
  [pass] check — no `command:` step in this file carries a braced reference in its text — the plan runner CLAIMS one, and an unresolvable one SKIPS the step instead of failing it, so the gate would read green over a check that never ran (fixtures)
      exit=0
  [pass] check — the command-text gate discriminates — each mutation turns it RED (fixtures)
      exit=0
  [pass] check — the README's MEASURED figures agree with each other — the table, the prose that quotes it, and the date every dated figure carries — and every count of a collection that GROWS is derived from that collection or dated (fixtures)
      exit=0
  [pass] check — the measurement gate discriminates — each mutation turns it RED, the figures and the shape counts alike (fixtures)
      exit=0
  [pass] check — every plugin-task version this repo's OWN prose cites equals the version the PINNED charly compiles — the version is DERIVED from the pin, and the scan is derived from the tracked file set (fixtures)
      exit=0
  [pass] check — the cited-version gate discriminates — a stale citation, an advanced pin and a moved owner each turn it RED, and a version naming another module stays GREEN (fixtures)
      exit=0
  [pass] check — the body/diff reconciliation gate discriminates — a file table that omits a changed file, one that lists an unchanged file, a pasted `git rev-parse HEAD` that is not the head, a stale count of the diff's new files, and a pasted evidence line that does not resolve in the tree being pushed, each turn it RED (fixtures)
      exit=0
  [pass] check — the umbrella's own committed builders pass their self-tests — the set the commit gate runs, owned by scripts/self-test.sh
      exit=0
  [pass] check — the commit gate decides by CHANGE CLASS and runs each leg EXACTLY ONCE — the pin check only when the diff touches one of the pin contract's commit-carried inputs (a gitlink, the manifest charly.yml, the declared path set .gitmodules), the skip visible, the missing binary loud, and the index the commit carries read (fixtures)
      exit=0
  [pass] check — the commit-gate gate discriminates — each mutation turns it RED (fixtures)
      exit=0
  [pass] check — every step of every task in this file declares a `context:` the plan runner activates — a set disjoint from [build, runtime] (the `[deploy]` this file used to carry) is a no-op in EVERY mode (fixtures)
      exit=0
  [pass] check — the opencode gate plugin contract (the check-opencode-plugin gate the former verify-pins.sh ran)
      exit=0
  [pass] check — the PR-watch plugin's pure logic + its shipped (uncommented) SDK delivery primitives
      exit=0
  [pass] check — the agent-progress monitor+control plugin — static (no .sh), the classifier (RCA regression), and a read-only store
      exit=0
  [pass] check — the session tracker plugin — the durable ledger (rule 9 invariant), the three tools, and the real-binary load
      exit=0
  [pass] check — every harness-config surface parses and is wired (rule 5)
      exit=0
  [pass] check — the harness-config gate discriminates — each mutation turns it RED (fixtures)
      exit=0
  [pass] check — the pi gate extension fails CLOSED, uses the rule-2 worktree path, and wires both gate scripts
      exit=0
  [pass] check — the validator enforces only what the rulebook states — rulebook check ids == the AGENTS.md "What the validator checks" table, every cited skill resolves, and the committed rulebook == the live AI_REVIEW_PROMPT (opencharly/opencharly#446)
      exit=0
  [pass] check — the validator rule-map gate discriminates — each mismatch fixture turns it RED
      exit=0
  [pass] check — the coordination closed set is the SAME nine labels on every surface that enumerates it (opencharly/opencharly#567)
      exit=0
  [pass] check — the coordination closed-set gate discriminates — each mutation turns it RED (fixtures)
      exit=0
  [pass] check — the pi wake binding delegates to the neutral watchers, wakes, re-arms, cleans up, and ships inert + wired
      exit=0
  [pass] check — the pi PR-status tool parses, normalises the state, finds the run by head SHA, reads jobs via REST, and classifies INCONCLUSIVE
      exit=0
  [pass] check — the pi `question` tool is dependency-free, headless-safe, serialized, and wired into .pi/settings.json
      exit=0
  [pass] check — the harness-neutral R10 bed watcher classifies exit codes and parses summary.yml (self-test)
      exit=0
  [pass] check — every canonical root narrative exists and every root-file reference in the agent surfaces resolves (the #356 content-loss gate)
      exit=0
  [pass] check — the root-ref gate discriminates — each mutation turns it RED (fixtures)
      exit=0
VERIFY_EXIT=0

The new control, RED without the change and GREEN with it. The gate re-derives the version from the pin, so the pre-fix tree fails on the two stale citations:

$ node scripts/check-cited-plugin-task-version.mjs      # on the pre-fix tree
  FAIL  scripts/sync-pr-body.sh:404: cites plugin-task v0.2026297.1542, but the PINNED charly (f1f85d1) compiles v0.2026297.2108 (charly/charly/go.mod). A citation beside a version is a claim about that module's SOURCE, and it is only meaningful against the version the pin names — re-read the cited lines at v0.2026297.2108 and re-key
  FAIL  charly.yml:189: cites plugin-task v0.2026268.1402, but the PINNED charly (f1f85d1) compiles v0.2026297.2108 (charly/charly/go.mod). A citation beside a version is a claim about that module's SOURCE, and it is only meaningful against the version the pin names — re-read the cited lines at v0.2026297.2108 and re-key
check-cited-plugin-task-version: 2 finding(s)

and the same gate, on this tree:

$ node scripts/check-cited-plugin-task-version.mjs
check-cited-plugin-task-version: OK — 2 plugin-task version citation(s) in this repo's own prose, all naming the version the pinned charly compiles (v0.2026297.2108) — judged on the INDEX, the tree a commit ships

The control fired on its own source — the RED run that caught the first of the two findings this change introduced, retained:

$ node scripts/check-cited-plugin-task-version.mjs      # with a stale literal in the control's own docstring
  FAIL  scripts/check-cited-plugin-task-version.mjs:371: cites plugin-task v0.2026297.1542, but the PINNED charly (f1f85d1) compiles v0.2026297.2108 (charly/charly/go.mod). A citation beside a version is a claim about that module's SOURCE, and it is only meaningful against the version the pin names — re-read the cited lines at v0.2026297.2108 and re-key
check-cited-plugin-task-version: 1 finding(s)

Finding 4, measured on the tree the first commit would have shipped — the index carried the stale literals, the worktree did not, and the gate that read the worktree called it green. The index-judging gate calls it RED:

$ node scripts/check-cited-plugin-task-version.mjs      # the INDEX stale, the worktree fixed
  FAIL  scripts/check-cited-plugin-task-version.mjs:7: cites plugin-task v0.2026297.1542, but the PINNED charly (f1f85d1) compiles v0.2026297.2108 (charly/charly/go.mod). A citation beside a version is a claim about that module's SOURCE, and it is only meaningful against the version the pin names — re-read the cited lines at v0.2026297.2108 and re-key
  FAIL  scripts/check-cited-plugin-task-version.mjs:8: cites plugin-task v0.2026268.1402, but the PINNED charly (f1f85d1) compiles v0.2026297.2108 (charly/charly/go.mod). A citation beside a version is a claim about that module's SOURCE, and it is only meaningful against the version the pin names — re-read the cited lines at v0.2026297.2108 and re-key
  FAIL  scripts/check-cited-plugin-task-version.mjs:279: cites plugin-task v0.2026298.0000, but the PINNED charly (f1f85d1) compiles v0.2026297.2108 (charly/charly/go.mod). A citation beside a version is a claim about that module's SOURCE, and it is only meaningful against the version the pin names — re-read the cited lines at v0.2026297.2108 and re-key
check-cited-plugin-task-version: 3 finding(s)

The fix is proven able to fail — a copy of the gate that reads the worktree only (the behaviour finding 4 removed) FAILS exactly the new assertion, and nothing else:

$ node /tmp/pin904/gate-worktree-copy.mjs --root . --self-test
  PASS  the unmutated tree is GREEN — 2 citation(s), all naming v0.2026297.2108
  PASS  the predicate is calibrated — it matches 2 known positive(s)
  PASS  mutation 'a citation names a version the pin does not compile' is caught by assertion V
  PASS  mutation 'the pinned charly advances to a version the prose has not been re-keyed to' is caught by assertion V
  PASS  mutation 'the pinned charly's go.mod names another version' is caught by assertion V
  PASS  negative control — a version on a line naming another module stays GREEN
  FAIL  the gate did not judge the INDEX where the worktree and the index disagree
check-cited-plugin-task-version --self-test: FAIL (1)

The gate discriminates — its --self-test mutates a COPY of the shipped inputs and must see the gate go red for each assertion, while the negative control stays green:

$ node scripts/check-cited-plugin-task-version.mjs --self-test
  PASS  the unmutated tree is GREEN — 2 citation(s), all naming v0.2026297.2108
  PASS  the predicate is calibrated — it matches 2 known positive(s)
  PASS  mutation 'a citation names a version the pin does not compile' is caught by assertion V
  PASS  mutation 'the pinned charly advances to a version the prose has not been re-keyed to' is caught by assertion V
  PASS  mutation 'the pinned charly's go.mod names another version' is caught by assertion V
  PASS  negative control — a version on a line naming another module stays GREEN
  PASS  the gate judges the tree a commit SHIPS — where the worktree and the index disagree, the INDEX is judged (fixture)
check-cited-plugin-task-version --self-test: OK (every assertion is live)

The last assertion runs on a FIXTURE repo with a real index — a file COMMITTED carrying a stale citation, its worktree copy fixed afterwards — because the failure is invisible to a self-test that only mutates copies in memory: the copy of the gate that reads the worktree only fails exactly that assertion.

The claim-keyed sweep (R5) — the two false claims and the two stale version literals are gone from this repo's own tracked files, and every surviving hit is classified:

$ git grep -n -iE "in the tagged|lands in the tagged|tagged tree|what gets TAGGED|block on what gets" -- . ':!marketplace' ':!CHANGELOG'
.agents/skills/git-workflow/references/branch-and-pr-loop.md:118:**The entry is durable, but it is NOT in the tagged tree.** The org's
.agents/skills/git-workflow/references/branch-and-pr-loop.md:125:entry arriving in `71350f0`. A reader looking for the entry IN the tagged tree
.agents/skills/git-workflow/references/validator-and-calver.md:229:  entry**: the tagged tree is the merge commit, and the entry arrives in the commit
.agents/skills/git-workflow/references/validator-and-calver.md:234:  the tagged tree. (every repo; `sdk`, `spec`, and `plugin-gh` substitute their

every hit is the NEW text that states the measured order; the old wording ("block on what gets TAGGED", "the entry lands in the tagged tree") is gone. The sweep reaches only this repo's own tracked files, so it cannot reach a projection in another repo — that leg is filed, not asserted here.

$ git grep -nE "v0\.[0-9]{7}\.[0-9]{4}" -- . ':!marketplace' ':!CHANGELOG'
.agents/skills/git-workflow/SKILL.md:250:- **A producer can be declared twice in one tree, in two tag spellings — and the artefact under test is governed by the one you did not read.** `charly.yml`'s `@github` ref and `charly/go.mod`'s module requirement both name `plugin-candy`, and only the second builds the binary: the ref feeds the resolver and the docs corpus, the requirement feeds the compiler. Worse, the two spell the same release differently — the module form `v0.2026271.2318` is NOT a git tag, so `git ls-remote` and `git show` on it return nothing and look like a missing release. Measured on 2026-10-08: advancing the ref alone changed no compiled behaviour, and advancing the module produced the verb. **Before concluding a pin is stale, grep the tree for every declaration of that producer and find which one the artefact is built from.**
charly.yml:189:      # table the step's Result.Message, which plugin-task v0.2026297.2108 renders —
scripts/sync-pr-body.sh:405:  # `plugin-task v0.2026297.2108`, and that version is the SENTINEL for the source

SKILL.md:250 is a DIFFERENT module's release (plugin-candy) and is not a citation of plugin-task — the gate's negative control asserts exactly that distinction, on a version that is deliberately not the pinned one. The other two are the re-keyed citations, and both name the version the pinned charly compiles.

The changed script, executed live — the file whose citation was re-keyed still renders a body and still passes its own self-test:

$ bash scripts/sync-pr-body.sh --self-test
sync-pr-body self-test: fleet-scale (411-pin) rendered body = 52938 bytes (< 65536)
sync-pr-body: self-test OK (fleet-scale BODY — the umbrella's live submodule count, read from .gitmodules — carries the COMPLETE compact evidence table — every path named, no elision — and stays under the 65536 cap; the caller's evidence file keeps a convenience copy; neither names a CI run artifact; small input names its paths with no elision; the producer excerpt is verbatim for BOTH the historical per-pin form and the CURRENT summary shape (pinned N pin_map entr(y|ies) … in the index); the body carries the four required sections, the Change classification's change class + verification gate + attribution tier, and rule 7's two-line footer — the Agent: line directly above the italic Assisted-by trailer as the FINAL line, and exactly ONE literal 'Assisted-by:' in the body so squash_body.py's prose contract holds; an unset SYNC_AGENT fails loud, and the Agent: line is shown to TRACK its variable rather than a literal; a trailer with no (tier) fails loud; over-cap trips the hard guard; a .gitmodules with no submodule entry counts as 0 and reaches the floor guard's own message instead of aborting on grep's exit status)

The head this evidence belongs to — the two anchor forms the linter compares:

$ git rev-parse HEAD
f7fed5f6470003f47a1f2e484712c7d4385c8840

Rulebook compliance

  • R0 — skills first. /charly-internals:git-workflow (the PR body's form, the attribution footer, the landing sequence) and /charly-internals:strict-policy (R1's classification, the "fix it or file it" rule) and /charly-internals:root-cause-analyzer (the RCA that issue R1: the umbrella's own prose misdescribes the org's tag-on-merge mechanism (the CHANGELOG entry is NOT in the tagged tree) and cites a plugin-task version the pinned charly falsifies #689 carries) were loaded before the first action, and this repo's own AGENTS.md Part II chore: sync dotgithub pin to main #5 (a skill lives with the thing it describes), chore: sync all submodule pins; spec no longer charly-pinned #6 (issue-first) and fix: escape backticks in umbrella-gates rules template (pi extension parse error) #7 (the coordination grammar) were read for this scope.
  • R1 — every finding is fixed or filed. The three findings this change exists for are FIXED here. Two further findings came out of the change itself — the new control fired on its own source, and it read the working tree where a commit ships the index — and BOTH are fixed here too, in the same change, by deriving every version the control needs and by judging the index wherever the worktree and it disagree. The one non-blocking finding is the corpus projection, which is the marketplace repo's own regeneration: it is filed in the repo that owns it (corpus: regenerate the internals family from opencharly/opencharly's post-#689 tag (pin bump, scoped) marketplace#578) and listed under ## Filed issues.
  • R2 — no duplication. The version is derived in exactly ONE place — the new gate reads the pin's own go.mod — and no second copy of the version literal exists anywhere in this repo: the control quotes none, and the two prose citations are the only ones the scan finds. There is no hand-kept list of files to scan, either: the file set is derived from the tracked index, and the tree the gate judges is derived from git's own worktree-versus-index diff, not from a rule this file makes up.
  • R3 — no workaround. The gate reads the OWNER (the pinned commit's own go.mod) rather than a cached copy, a hand-maintained constant or a fixture. It never suppresses, retries or fakes a state: when the pinned checkout is absent it SKIPS VISIBLY and judges nothing, rather than comparing against a version it invented.
  • R4 — product before prose. Here the PRODUCT holds the intent: the tag-on-merge ORDER is the org's design — the workflow's own comments say the tag is "idempotent — independent of CHANGELOG" — and the entry is durable, because it lands on main forever. What diverges is this repo's PROSE, so the prose is corrected and no release-semantics decision is taken unilaterally. The change documents no new user-facing command, so the "only the charly binary is installed" property is untouched; the new script is the umbrella's own scripts/ mechanism, invoked by the umbrella's own hook and verify task, exactly as scripts/check-readme-measurements.mjs is.
  • R5 — legacy deleted. The false claims are gone with the text that carried them, and the claim-keyed sweep above is the proof: the surviving hits are the corrected text and a different module's example. The stale version literals are gone from both prose sites, and the gate that keeps them gone is the control.
  • R6 — user work preserved. git status was read first, and the tree carried only this change; the work happens in a session worktree on feat/prose-truth-689; no submodule's CONTENT was edited (the marketplace checkout was read, never written); no history was rewritten, no force-push, no bypass, and nothing was pushed to main.
  • R7 — behaviour proven. The coverage fails without the change: the gate is RED on the pre-fix tree (2 findings) and GREEN after it. Its --self-test shows each of its assertions going red on a mutation of the shipped inputs while the negative control stays green, and the read-path assertion is proven able to fail by a copy of the gate that reads the worktree only. The changed paths were executed live — the gate, its self-test, and scripts/sync-pr-body.sh --self-test — and the artifact under test IS the tree the R10 gate judged.
  • R8 — live or skip, never a mock. The gate reads the real pinned commit's go.mod from the real checkout, and the fixture it proves the read path on is a real repository with a real index. Where the pinned checkout is not present, the gate prints a visible SKIP and exits 0 without judging — it never mocks a live service and never invents the version it would have compared against.
  • R9 — binary equals source. The R10 gate ran on the worktree-local, CalVer-stamped binary built from the tree it judges (2026.298.0310), never on a shared install.
  • R10 — fresh disposable proof. The gate that owns this change class — the umbrella's own charly task verify — ran on the committed tree this PR pushes, with its whole log pasted above, zero failed steps and zero warnings. The change touches no disposable: true target, so no bed is required by it.
  • Part II chore: sync dotgithub pin to main #5 — a skill lives with the thing it describes. The two prose files are this repo's OWN authored source for the git-workflow skill; the corpus projection is the marketplace repo's regeneration, and it is a separate leg (corpus: regenerate the internals family from opencharly/opencharly's post-#689 tag (pin bump, scoped) marketplace#578), not an edit here. The former carrier layer-charly-internals no longer holds the skill (checked at its tip: it has no .agents/skills/git-workflow/), so there is no second authored copy to fix.
  • Part II chore: sync all submodule pins; spec no longer charly-pinned #6 — issue-first coordination. The RCA is filed and claimed as R1: the umbrella's own prose misdescribes the org's tag-on-merge mechanism (the CHANGELOG entry is NOT in the tagged tree) and cites a plugin-task version the pinned charly falsifies #689, and the corpus leg is filed and claimed as corpus: regenerate the internals family from opencharly/opencharly's post-#689 tag (pin bump, scoped) marketplace#578.
  • Part II fix: escape backticks in umbrella-gates rules template (pi extension parse error) #7 — the coordination grammar. This body carries the Agent: line and the trailer, in that order, adjacent, last.
  • Part II ci: tag-on-merge via push-to-main (replace dead closed trigger + flaky cron) #8 — read everything before pushing. Every comment on the issue this PR closes was read in full before this body was written, and the validator's report will be read in full before the next push.
  • Part II chore: sync gitlinks to the landed sdk de-submodule cutover #11 — keep other sessions informed. A STATUS is posted on the issue at each milestone: at the claim, at the commit, at the push, and at the land.

Change classification

  • Change class: prose in this repo's own authored skill, plus a new control in this repo's own scripts/ — a node gate wired into the commit gate and into the umbrella's own verify task. The gate that owns this class is the umbrella's own charly task verify: the diff touches charly.yml (the manifest that declares the pin contract) and the umbrella's own hook, and the changed path — the new gate — is executed live inside it.
  • Verification gate: ./charly/bin/charly task verify (2026.298.0310) — the whole log is pasted above — plus the new gate's own --self-test, its RED run on the pre-fix tree, its RED run on the tree whose index was stale, the copy of the gate that fails the read-path assertion, and bash scripts/sync-pr-body.sh --self-test for the file whose citation was re-keyed.
  • Attribution tier: fully tested and validated — the change-class gate passed on the final tree with zero warnings, and the changed paths (the new gate, its self-test, and the re-keyed script) were executed live, with the RED runs retained.

Filed issues

Agent: umbrella-prose-truth
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)

…nd the gate that keeps the versions true

Three committed claims in this repo are falsified by the tree they live in,
and all three are one class of defect: a mechanism or a version stated from
memory instead of derived from the thing that owns it, with no control that
re-derives it.

1. The skill said the CHANGELOG entry lands in the tagged tree. It does not.
   The org's tag-on-merge workflow creates the tag AT pr.merge_commit_sha
   ("idempotent - independent of CHANGELOG", in its own words) and only THEN
   writes CHANGELOG/<calver>.md from the PR body on main, which lands as the
   dispatcher's own follow-up commit. MEASURED, two repos: opencharly/docs'
   v2026.298.0740 -> dd289db1, where the entry is ABSENT and arrives in
   e5f90075; opencharly/opencharly's v2026.298.0430 -> 4ea0846, the entry
   arriving in 71350f0. The claim is load-bearing - it decides what BLOCKS a
   landing - and it sent readers to a file the tag does not contain.

2. The same skill described the order backwards ("after the squash merge,
   write the CHANGELOG ... ; then tag the merged HEAD"). The workflow tags
   FIRST, at the merge commit; "the merged HEAD" after the changelog write is
   the dispatcher's own commit, and no such tag exists.

3. Two prose citations of a plugin-task version the pinned charly falsifies:
   scripts/sync-pr-body.sh named one five releases behind the pin and
   charly.yml named one twenty-nine days behind it, while the umbrella's
   pinned charly (gitlink f1f85d19) requires a third. The three cited line
   numbers are CORRECT at the pinned version; only the version strings were
   false.

The root fix is a control, not a patch: a version transcribed into prose is a
copy of a fact whose owner (the charly pin) moves on every release, and
nothing re-read it. scripts/check-cited-plugin-task-version.mjs re-derives the
version from the PINNED charly's own go.mod and fails when any plugin-task
version this repo's own prose cites differs, so a charly pin bump turns the
gate RED at the moment the citations beside it must be re-read. The scan is
derived from the tracked file set (never a hand-kept list), skips gitlinks and
CHANGELOG/ (history is immutable), and a version on a line naming ANOTHER
module is not a citation of this one - the plugin-candy example in the
git-workflow skill stays green, and the gate's negative control proves it.

AND THE CONTROL FOUND A FOURTH DEFECT - IN ITS OWN READ PATH. The gate read
the WORKING TREE, while a commit ships the INDEX: a file STAGED with a stale
citation and fixed in the worktree afterwards read GREEN, and the commit
shipped the stale copy. That is not hypothetical - the FIRST commit of this
change was made exactly that way, the file having been edited after it was
staged - and the tree that commit would have shipped carried the very
literals the gate had already been shown to flag. MEASURED, on that tree:

  $ node scripts/check-cited-plugin-task-version.mjs
    FAIL  scripts/check-cited-plugin-task-version.mjs:7: cites plugin-task ...
    FAIL  scripts/check-cited-plugin-task-version.mjs:8: cites plugin-task ...
    FAIL  scripts/check-cited-plugin-task-version.mjs:279: cites plugin-task ...
  check-cited-plugin-task-version: 3 finding(s)

The fix is WHICH TREE the gate judges: for every file where the worktree and
the index disagree, the INDEX's copy is judged - the copy a commit ships -
and the worktree's copy is judged where the two are identical, where the
worktree IS the index. The self-test proves it on a FIXTURE repo with a real
index (a file COMMITTED with a stale citation, its worktree copy fixed
afterwards), because the failure is invisible to a self-test that only
mutates copies in memory: a copy of the gate that reads the worktree only
FAILS that assertion, and nothing else.

The control was FIRED ON ITS OWN SOURCE before that was true, which is how the
last defect of the class was caught: the gate's first run flagged the two
stale literals quoted in its own docstring and the versions its own mutations
wrote. A control that holds a copy of the fact it checks rots exactly like the
prose it polices, so every version the gate needs is now DERIVED from the
pin - the stale one, the moved one, the owner's, and the negative control's -
and the file quotes none, which also means it needs no self-exemption. The
RED run is retained (/tmp/pin904/gate-red-selfcitation.log).

The gate is wired where the umbrella's other claims live: hooks/pre-commit
(the 13th node gate) and charly.yml's verify task (the check plus a
"discriminates" --self-test step). Its --self-test mutates a COPY of the
shipped inputs and must see the gate go red for a stale citation, an advanced
pin and a moved owner, while the negative control stays green.

Refs #689

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

What the diff actually does

Six files, and the diff matches the body's arithmetic exactly: 13+18+15+7+497+5 = 555 insertions and 3+9+1+0+0+1 = 14 deletions, across the same six paths the body's table lists. The body's table is the diff's file set; head SHA f7fed5f64700… matches the single commit.

Prose corrections (findings 1 & 2). branch-and-pr-loop.md replaces "block on what gets TAGGED / the entry lands in the tagged tree" with "block on what SURVIVES the merge / the entry lands on main in the dispatcher's follow-up commit", and adds a paragraph stating the tag-then-write order with two concrete measurements (docs v2026.298.0740 → dd289db1, entry in e5f90075; opencharly v2026.298.0430 → 4ea0846, entry in 71350f0). validator-and-calver.md inverts the same bullet from "write then tag the merged HEAD" to "(1) tag AT the merge commit, (2) write the CHANGELOG on main", with the same measurements. The two edits are mutually consistent — there is no surviving sentence that still says the entry is in the tagged tree. The old wording is gone from the diff, which is what R5's claim-keyed sweep asserts.

Version re-keys (finding 3). charly.yml:189 moves v0.2026268.1402 → v0.2026297.2108; scripts/sync-pr-body.sh:405 moves v0.2026297.1542 → v0.2026297.2108. Both are the version the gate derives from the pin, and the body's pre-fix RED evidence names exactly the two old literals — internally consistent.

The new control (findings 3 & 4). I read scripts/check-cited-plugin-task-version.mjs line by line:

  • trackedFiles derives the scan set from git ls-files -s -z and skips mode 160000 (gitlinks) — no hand-kept list, as claimed.
  • differingFiles (git diff --name-only) + contentOf implements the index-vs-worktree rule: a file whose worktree differs from the index is judged from the index blob (git cat-file blob), otherwise from the worktree. That is the correct tree a commit ships.
  • readPinned reads the gitlink from the index (indexEntry), then git show <sha>:<go.mod> — it reads the owner, not a cached copy, and SKIPs visibly when the checkout is absent.
  • The file genuinely holds no v0.\d{7}.\d{4} literal; RE_VERSION/RE_REQUIREMENT/otherVersion are regexes, not literals, so the gate does not exempt itself and the "control fired on its own source" narrative is consistent with the current file (the stale-literal versions are gone).
  • --self-test covers: baseline-green, predicate calibration, three V mutations (stale citation, advanced pin, moved owner's go.mod), a negative control on a different module's version, and the index-vs-worktree fixture on a real temp repo with a real index. That is 7 assertions, matching the pasted output. The fixture correctly commits a stale citation, then fixes the worktree, and asserts the scan still sees the index copy.

Wiring. hooks/pre-commit adds the gate as comment-node 13 and invokes it; charly.yml adds both the plain run and the --self-test. Both match the body's claim.

Tests

The change ships its own coverage: the self-test fails on the pre-fix tree (baseline not green) and each mutation flips a distinct assertion red; the read-path assertion is shown able to fail by the worktree-only copy. That satisfies "would fail without the change".

Honesty / consistency checks

File count, ±counts, head SHA, the file table, the verify-log summary ("35 steps, 0 failed"), and the RED/GREEN evidence all reconcile with the diff. No comment thread exists to disposition (0 comments), and no maintainer sign-off is present — the change stands on its own evidence, which it does.

Minor, non-blocking observations

  • trackedFiles calls execFileSync without a raised maxBuffer; on a much larger tracked set than this repo's, the git ls-files output could exceed Node's 1 MB default. It runs fine on this tree (evidence shows it), so it is a latent robustness nit, not a defect here.
  • The --self-test requires the pinned charly checkout to exist (its mutation-3 path goes through git -C <sub> ls-tree); in an environment without the submodule the self-test would fail rather than skip. The plain gate correctly SKIPs, and the verify environment has the checkout, so this is a design trade-off the body documents (R8), not a blocker.

Neither observation contradicts a body claim, breaks the gate on the shipped tree, or leaves a false statement in the prose.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 25, 2026 08:21
@github-actions
github-actions Bot merged commit 9189569 into main Oct 25, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 25, 2026
@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS — #690 merged; its review round's two findings are fixed in the successor PR #691.

Agent: umbrella-prose-truth

Head of the round: 02ac493d9075f7c2fac060e811724709dcf70955 (branch feat/gate-robustness-690). PR: #691.

#690 merged (squash 9189569b, tag v2026.298.0823) with the fresh validator's PASS and two minor, non-blocking observations against the gate it introduced. R1: a finding raised on your own PR is never filed away — it is fixed, or rebutted with evidence. Both are in code this change owns and both are fixable without touching a claim, so both are fixed in the successor PR, in the same control, in one commit:

  • the gate's tracked-set read inherited Node's 1 MiB maxBuffer, so past ~14,137 tracked files it died with ENOBUFS instead of judging — every git call now goes through one helper with a 64 MiB ceiling;
  • the --self-test failed closed in a tree whose pinned charly has no checkout, where the plain gate correctly skips — it now skips visibly and names the one command that materializes the checkout.

Both are proven able to fail against the tree #690 actually shipped (origin/main's own copy of the file), not a hand-made mutation, and the R10 gate on the successor's committed tree is 35 step(s), 0 failed, 0 skipped.

Next: read every comment and the validator's full report on #691, fix every finding in ONE commit per round, land, then close #689 with a RESOLVED record.

Next update due: with the validator's verdict on #691.

Agent: umbrella-prose-truth
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)

github-actions Bot pushed a commit that referenced this pull request Oct 26, 2026
…, and must not fail closed where it cannot run (#691)

The fresh validator on #690 raised two minor observations against the gate
that #690 introduced. Both are in code this change owns, so both are fixed
here rather than filed away.

1. The buffer that scales with the repo was Node's 1 MiB default. The
   tracked set's own `git ls-files -s -z` grows with the repo - MEASURED on
   this tree, 1458 entries cost 108,140 bytes, 74.2 per entry - so ~14,137
   files cross the default, and past it the gate died with ENOBUFS instead of
   judging. Every git call now goes through ONE helper that raises the
   ceiling to 64 MiB, so the gate keeps judging on the trees it exists to
   judge. PROVEN on a 20,000-file fixture (1,280,000 bytes of ls-files
   output): #690's gate exits 1 with ENOBUFS, this one exits 0 and reads the
   whole set.

2. The --self-test FAILED in a tree whose pinned charly has no checkout,
   where the plain gate correctly SKIPS. Its mutations are built FROM the
   pinned version, so such a tree cannot run them, and failing there turned
   every such tree's verify red over a check that cannot run - the
   fail-closed-infrastructure class the sibling gates refuse
   (scripts/check-pr-body-gate.mjs, scripts/check-harness-config.mjs). It now
   SKIPS VISIBLY, names the one command that materializes the checkout, and
   exits 0. PROVEN on a fixture whose index records no charly gitlink:
   #690's gate exits 1 with FAIL, this one exits 0 with the visible skip.

Refs #689

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
@aitrawog

Copy link
Copy Markdown
Contributor Author

RESOLVED — superseded by #691, and #691's own review round by #693.

The chain for this scope is closed:

The underlying issue, #689, is closed once #693 lands, with a RESOLVED record naming the whole chain.

Agent: umbrella-prose-truth
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)

github-actions Bot pushed a commit that referenced this pull request Oct 26, 2026
…he gate's, and the big tracked set must carry committed coverage (#693)

The fresh validator on #691 raised three minor, non-blocking observations
against the gate that #690 introduced and #691 hardened. All three are in code
this change owns, so all three are fixed here rather than filed away.

1. The gate SKIPPED a BROKEN pin. readPinned returned a notice for every
   reason the version cannot be derived, and the reason was not classified:
   "the checkout is not here" and "the pinned charly's go.mod requires no
   plugin-task" had the same outcome - a visible SKIP and exit 0. The second
   is a DEFECT in the tree: the citations cannot be judged against anything,
   and a control that reports success over a pin it cannot judge is not a
   control. The notice is now CLASSIFIED - absent (this tree cannot run the
   check) stays a visible SKIP, broken (the tree is inconsistent with what the
   check needs) is RED, in the plain gate and in the --self-test alike, off ONE
   classification so the two can never disagree. PROVEN on a fixture whose
   pinned charly is materialized and whose go.mod requires no plugin-task:
   #691's gate exits 0 with a SKIP, this one exits 1 with the finding.

2. The one buffer ceiling could be overridden by a call. gitOut was
   { maxBuffer: MAX_EXEC_BYTES, ...opts } - the spread came last, so a caller
   passing maxBuffer replaced the one ceiling and restored the exact defect
   the ceiling exists to remove. The ceiling is now applied AFTER the spread,
   so it wins by construction instead of by convention. PROVEN: a copy of this
   file with the old order fails the new self-test case that reads a tracked
   set through a call asking for a 1 KiB buffer.

3. The >1 MiB tracked-set case carried no committed coverage - it was proven
   only by the external fixture runs pasted in #691's body. Four --self-test
   cases now carry it, in the repo's own live-fixture convention: the gate
   JUDGES a tracked set over the old 1 MiB default, the one ceiling cannot be
   overridden by a call, a broken pin is RED, and an unmaterialized checkout
   is still a visible SKIP. PROVEN: a copy of this file without the ceiling
   fails the first two and exits 1.

Refs #692

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
github-actions Bot pushed a commit to opencharly/marketplace that referenced this pull request Oct 26, 2026
…ence into the corpus (#579)

The `internals` family's `git-workflow` projection is generated from the
umbrella's own ref, and the refs list still pinned
`@github.com/opencharly/opencharly:v2026.297.1159` - a tag from before the
umbrella corrected two claims its own tree falsified. Every harness that
loads the corpus reads this skill's branch-and-PR loop before a push, so the
published claim decides what BLOCKS a landing.

The two false claims the corpus published:

1. "the entry lands in the tagged tree". The org's `tag-on-merge` workflow
   creates the tag AT `pr.merge_commit_sha` - "idempotent - independent of
   CHANGELOG", in its own words - and only THEN writes `CHANGELOG/<CalVer>.md`
   on `main` from the PR body, which lands as the dispatcher's OWN follow-up
   commit. The tag names the merge; the entry arrives in the commit after it.
   A reader looking for the entry IN the tagged tree does not find it.
2. The order, stated backwards: "after the squash merge, write the CHANGELOG
   ...; then tag the merged HEAD". The workflow tags FIRST, at the merge
   commit; "the merged HEAD" after the changelog write is the dispatcher's own
   commit, and no such tag exists.

Both are visible in the OLD pin's own tree - `git show
v2026.297.1159:.agents/skills/git-workflow/references/branch-and-pr-loop.md`
still says "durable: the entry lands in the tagged", and
`.../validator-and-calver.md` still says "then tag the merged HEAD". The
corpus was a faithful projection of a pin naming the pre-correction source:
the pin is the cause, and advancing it is the fix.

The pin moves to `v2026.299.0024`, the umbrella's newest tag. The umbrella's
`.agents/` tree is byte-identical at `v2026.298.0823` and at `v2026.299.0024`
(measured: only the CHANGELOG entries, `charly.yml` and the gate script
differ), so the newest tag carries the correction - which landed as
opencharly/opencharly#690, tag `v2026.298.0823` - at no cost in corpus
content, and leaves the daily refresh nothing to advance.

The regeneration is scoped to the two projections the correction touches, and
the `--numstat` audit shows no projection dragged backwards:
`branch-and-pr-loop.md` +13/-3 and `validator-and-calver.md` +18/-9, both
gaining. No other family's projection changes, and no hand-authored file is
touched.

Refs #578

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
github-actions Bot pushed a commit to opencharly/docs that referenced this pull request Oct 26, 2026
…ies the corrected landing order, and regenerate (#185) (#186)

The `marketplace` gitlink advances d0d55ccc -> 835d0998. It carries the
correction to the corpus's `git-workflow` projection, which stated the org's
landing order backwards: that the CHANGELOG entry "lands in the tagged tree"
and is written "then tag the merged HEAD". The org's `tag-on-merge` workflow
creates the tag AT the merge commit and only THEN writes the entry, so the two
land in DIFFERENT commits - the tag names the merge, the entry arrives in the
dispatcher's own follow-up commit. The correction landed in the umbrella
(opencharly/opencharly#690, hardened in #691 and #693) and in the corpus
producer (opencharly/marketplace#578, PR #579, tag v2026.299.0112).

The corpus is a PROJECTION of the umbrella's own `.agents/` tree, and this
repo's pin is what decides which projection the site serves: the pin was still
the pre-correction one, so opencharly.ai published the retired landing order.
The drift gate cannot see that on its own - the PINNED corpus regenerates its
own (old) pages perfectly, so a stale corpus is invisible to it. This is the
advance that carries the correction to the published site.

The site is regenerated with the deploy workflow's exact inputs - the pinned
charly source at its CI-time commit, the pinned umbrella narrative, the pinned
plugin-docs generator, and the corpus wiring candy built from
.github/docs-corpus/pins.tsv - and the regenerated pages are committed in the
same change, because the deploy workflow's drift gate is fail-closed: a
regeneration on the committed tree must be a no-op.

Four recipe pages move, all of them under the `git-workflow` skill. The
durability paragraph in branch-and-pr-loop.md is re-keyed to the true order
and gains a MEASURED section that cites two tags whose trees show it; the
pre-validator self-audit page, the umbrella-mechanics page and the
validator-and-calver page carry the corpus's own changes since the previous
pin. No page is hand-edited, and no page loses net lines: the correction
REPLACES prose rather than dropping it.

Refs #185

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
@aitrawog
aitrawog deleted the feat/prose-truth-689 branch November 1, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant