Skip to content

fix(gates): the printed-token mutation is a LIVE re-run of assertion T - #658

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/gate-assert-live-rerun
Oct 24, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/gate-assert-live-rerun

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

What this closes, and what it does not. #653 — the umbrella's
consumer leg of the ellipsis cutover — is discharged in three pieces: the two gitlinks
landed in #654, the gate's ASCII rendering and the printed-token
assertion landed in #656, and the assertion's LIVE re-run lands
here. This is the last piece, and the issue is closed with an explicit RESOLVED record
when this PR lands — a Closes keyword does not close it by itself, which is measured:
#654 carried Closes #653 and merged, and #653 is still open.

#655 — the umbrella's docs gitlink behind the docs repo's merged
main — was already resolved by #656, which carried that gitlink,
and it is closed with its RESOLVED record. This diff changes no gitlink, no submodule
pointer and no pin, so it claims nothing about it.

The validator's report on #656 read the change as correct and raised
three observations. Two are about the change itself, and they are fixed here; the third
is about the transcript, and it is rebutted with a measurement on that PR's own thread.

The fix — the mutation is a LIVE re-run of the assertion. #656's mutation sub-check did
not re-run assertion T on the mutated text: it regex-extracted REF from the mutated
source and inspected the captured string. That proves the mutated SOURCE lacks the token;
it does not prove the ASSERTION goes red on it, and it cannot catch a regression where the
line-builder stopped reading the reference it is handed. So the builder now takes the
reference as a parameter (okLine(ref = REF)), the predicate that decides the assertion is
ONE function (printsOwnToken), and the mutation hands the mutated reference to the
builder and runs the same predicate over the result — a live re-run of assertion T on
the mutated input, not a regex over the mutated text.

The comment now says what is true. #656's comment claimed the ASCII rendering was
"spelled here in PIECES". It is not present in the file at all: the R5 sweep greps for that
literal, and the gate must not defeat its own sweep.

file what it carries
scripts/check-task-command-vars.mjs the parameterized line-builder, the single predicate, the live mutation re-run, and the corrected comment

Why this is a successor PR, and what happened to #656. A charly/pr-validator PASS
arms native squash auto-merge, and GitHub merges as soon as the required context is green —
which the verdict itself makes green. #656's verdict landed at 2026-10-24T05:07:34Z and the
PR merged at 05:08:02Z, 28 seconds later, on the head the report had read. The round's
fix needed a new commit, a discriminating experiment, the change-class gate re-run on the
new committed tree, and the body re-keyed to the new head; none of that fits in
twenty-eight seconds. The fix lands here, and this PR names #656 as its predecessor. The
mechanism is filed as opencharly/.github#245.

The three observations on #656, each dispositioned.

  • "The mutation sub-check does not actually re-run assertion T on the mutated text — it
    regex-extracts REF from the mutated source and checks the captured string lacks the
    token … it would not catch a hypothetical future regression where okLine stopped reading
    REF."
    → fixed here. The mutated reference goes through this file's own builder and
    this file's own predicate. The proof is the before/after experiment below, on the SAME
    regression the observation names: the OLD coverage stays green over it, the NEW coverage
    turns red.
  • "The added comment 'The ASCII rendering is spelled here in PIECES' is not literally
    reflected in the code — the ASCII rendering simply isn't present at all. Cosmetic."
    →
    fixed here. The comment says what is true.
  • "The transcript's git submodule status docs describe is not obviously consistent with
    the body's claim that the docs repo carries tag v2026.297.0439 on/behind the pinned
    commit … I do not treat it as a defect in this change."
    → rebutted, with the
    measurement on fix(gates): the printed reference is asserted, and the docs gitlink advances to its merged main #656's thread: git submodule status describes with git describe
    without --tags, so it sees only ANNOTATED tags, and v2026.297.0439 is a
    lightweight tag (object type commit, not tag) that is present locally and on the
    remote; plain describe walks past it to the last annotated tag, v2026.234.2355, 116
    commits back. The pinned commit a5bd2445 is the docs repo's current main head, and
    the tag sits on its parent bb4f006 (the docs(corpus): advance the vendored corpus pin to the corpus that carries the ellipsis rule's form, and regenerate docs#182 merge commit). fix(gates): the printed reference is asserted, and the docs gitlink advances to its merged main #656's body
    now carries the measurement, so the transcript and the claim cannot be read as
    contradicting each other.

How tested

The head and the base — the committed tree this body describes:

$ git rev-parse HEAD
8b3638e74cb8ca8265fd8d83f218eb0f7415f38e
$ git rev-parse origin/main
0696567afe59d067ef49945c4bce7fccf6c9e60f

The worktree-local binary (R9 — binary equals source), never a shared install:

$ ./charly/bin/charly version
2026.297.0121

The changed gate, run live — the product prints the product's token, and the self-test
proves the claim:

check-task-command-vars: OK — no command step's text carries a ${…} reference
GATE_EXIT=0
GATE_EXIT=0
  PASS  the unmutated charly.yml is GREEN — 36 command step(s) over 12 entit(y|ies), none carries a `${…}` reference
  PASS  mutation 'the branch-audit step reads its parallelism with a braced reference — THE DEFECT THIS GATE EXISTS FOR (the step was SKIPPED, and the gate read green while it never ran)' is caught by assertion V
  PASS  mutation 'an INLINE command carries a braced reference (the rule covers the inline form too, not only the block scalar)' is caught by assertion V
  PASS  mutation 'a `command:` key appears where it is NOT a step's own command (a plugin input field) — the rule's coverage is asserted, not assumed' is caught by assertion B
  PASS  mutation 'a `command:` key appears OUTSIDE any plan step (a `defaults:` block's own input) — the rule's coverage is not bounded by the plan' is caught by assertion B
  PASS  negative control — a brace-free $NAME read stays GREEN
  PASS  the PRINTED reference is the product's own token (U+2026), not an ASCII rendering of it
  PASS  mutation 'the printed reference is not the product's own token — the claim this change makes' is caught by assertion T
check-task-command-vars --self-test: OK (every assertion is live)
GATE_SELFTEST_EXIT=0
GATE_SELFTEST_EXIT=0

The discriminating experiment — the SAME regression, before and after: okLine no
longer reads the reference it is handed, which is the exact case the validator named. Each
run reads this repo's own charly.yml.

scratch copies written from origin/main and HEAD
--- OLD (origin/main) with the regression: okLine no longer reads the reference ---
  PASS  the PRINTED reference is the product's own token (U+2026), not an ASCII rendering of it
  PASS  mutation 'the printed reference is not the product's own token — the claim this change makes' is caught by assertion T
check-task-command-vars --self-test: OK (every assertion is live)
OLD_REGRESSED_EXIT=0
--- NEW (this change) with the SAME regression ---
  PASS  the PRINTED reference is the product's own token (U+2026), not an ASCII rendering of it
  FAIL  the printed-token assertion did NOT catch a reference that is not the product's own token
check-task-command-vars --self-test: FAIL (1)
NEW_REGRESSED_EXIT=1

The OLD coverage stayed green over the regression; the NEW coverage turns red on it. That
is the "coverage that fails without the change" the rulebook asks for, measured rather
than asserted.

The umbrella's own gate, on the committed tree — every step, the whole plan:

task verify: 30 step(s), 0 failed
  [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 412 submodule(s); 16 checkout(s) clean at their gitlink; 396 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, crabhelm, 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, 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: 0 of 412 pin(s) NOT current [412 cur]; intents: 406 upstream leaf/leaves (406 implicit), 6 derived-from edge(s); producer-first legs: none — every pin is at the ref its intent names
  [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 — the body/diff reconciliation gate discriminates — a file table that omits a changed file, one that lists an unchanged file, and a pasted `git rev-parse HEAD` that is not the head, each turn 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 R5 claim-keyed sweep — the claim is "the ASCII rendering of the reference is not
present in the gate's file"
, and the sweep names every place the form still appears in the
tree:

$ git grep -n -F '${...}' HEAD -- .
HEAD:CHANGELOG/2026.296.0611.md:367:check-task-command-vars: OK — no command step's text carries a ${...} reference
HEAD:CHANGELOG/2026.296.0611.md:369:  PASS  the unmutated charly.yml is GREEN — 36 command step(s) over 12 entit(y|ies), none carries a `${...}` reference
HEAD:CHANGELOG/2026.296.0611.md:821:- **opencharly/marketplace#537** — the PR-body linter's ellipsis rule cannot tell a program's own output from an author's ellipsis: a gate that legitimately prints `…` in its message cannot have that output pasted into a PR body. This PR's new gate renders its placeholder as `${...}` so its output is pasteable; the linter's rule is the defect.
HEAD:CHANGELOG/2026.297.0435.md:124:$ git grep -n -F 'REF = "${...}"' HEAD -- .
HEAD:CHANGELOG/2026.297.0435.md:126:$ git grep -n -F 'REF = "${...}"' origin/main -- scripts/check-task-command-vars.mjs
HEAD:CHANGELOG/2026.297.0435.md:127:origin/main:scripts/check-task-command-vars.mjs:71:const REF = "${...}";
HEAD:CHANGELOG/2026.297.0508.md:146:$ git grep -n -F '${...}' HEAD -- .
HEAD:CHANGELOG/2026.297.0508.md:147:HEAD:CHANGELOG/2026.296.0611.md:367:check-task-command-vars: OK — no command step's text carries a ${...} reference
HEAD:CHANGELOG/2026.297.0508.md:148:HEAD:CHANGELOG/2026.296.0611.md:369:  PASS  the unmutated charly.yml is GREEN — 36 command step(s) over 12 entit(y|ies), none carries a `${...}` reference
HEAD:CHANGELOG/2026.297.0508.md:149:HEAD:CHANGELOG/2026.296.0611.md:821:- **opencharly/marketplace#537** — the PR-body linter's ellipsis rule cannot tell a program's own output from an author's ellipsis: a gate that legitimately prints `…` in its message cannot have that output pasted into a PR body. This PR's new gate renders its placeholder as `${...}` so its output is pasteable; the linter's rule is the defect.
HEAD:CHANGELOG/2026.297.0508.md:150:HEAD:CHANGELOG/2026.297.0435.md:124:$ git grep -n -F 'REF = "${...}"' HEAD -- .
HEAD:CHANGELOG/2026.297.0508.md:151:HEAD:CHANGELOG/2026.297.0435.md:126:$ git grep -n -F 'REF = "${...}"' origin/main -- scripts/check-task-command-vars.mjs
HEAD:CHANGELOG/2026.297.0508.md:152:HEAD:CHANGELOG/2026.297.0435.md:127:origin/main:scripts/check-task-command-vars.mjs:71:const REF = "${...}";
HEAD:CHANGELOG/2026.297.0508.md:160:$ git grep -l -F '${...}' HEAD -- .
HEAD:CHANGELOG/2026.297.0508.md:163:$ git grep -l -F '${...}' HEAD -- . | wc -l
GREP_EXIT=0

The diff — one file, and the whole of it:

28	7	scripts/check-task-command-vars.mjs
 1 file changed, 28 insertions(+), 7 deletions(-)

Rulebook compliance

  • R0 — the skills this change's area loads were read before the first tool action:
    /charly-internals:git-workflow (the branch, the commit, the PR body, the push), and
    /charly-internals:strict-policy with /charly-internals:root-cause-analyzer (the round
    that produced this change).
  • R1 — every finding the validator raised on fix(gates): the printed reference is asserted, and the docs gitlink advances to its merged main #656 is dispositioned: two FIXED here, one
    REBUTTED on that PR's thread with the measurement. The round's own RCA — why the fix
    could not land on the PR that raised it — is posted on fix(gates): the printed reference is asserted, and the docs gitlink advances to its merged main #656's thread with the mechanism
    named (a PASS arms auto-merge, and GitHub merged 28 seconds after the verdict), the missed
    control (the pre-push gate ran the self-test, and the self-test's mutation sub-check was
    never asserted to exercise the SAME predicate as the assertion it claims to prove), the
    blast radius (every verdict-raised finding that needs a code change, in every repo whose
    gate takes longer than the arming window) and the root fix (the mechanism is filed as
    pr-validator: a PASS arms auto-merge within seconds and GitHub merges at once, so a finding raised BY the verdict can never be landed on the PR it was raised on .github#245; the coverage-of-coverage gap is closed in this change's own
    self-test, and the before/after experiment above is the proof).
  • R2 — one owner per behaviour: the printed line is built by ONE function, and the
    predicate that judges it is ONE function, so the self-test's assertion and its mutation
    check read the same two pieces.
  • R3 — no workaround: no sleep, no retry, no suppression, no manual infrastructure
    command. The experiment is a copy of the file in /tmp run with the product's own
    --self-test, not a hand-written simulation of it.
  • R4 — the product was fixed before the prose: the gate's own coverage is the change,
    and the prose (the comment) follows what the code does.
  • R5 — the legacy form is gone from the gate's file, and the claim-keyed sweep above
    names every place the ASCII rendering still appears in the tree.
  • R6 — git status was stated before the branch was cut and before the commit; the
    work is in the session worktree at .worktrees/wave8/opencharly/ on branch
    feat/gate-assert-live-rerun, branched off fresh origin/main 0696567afe59d067ef49945c4bce7fccf6c9e60f. No force-push,
    no amend after the push, no direct push to main, no hook bypass, and no other session's
    branch, worktree or file touched. No submodule was edited: the umbrella records gitlinks
    only.
  • R7 — the changed path executed live, and the change's own claim has coverage that
    fails without it: the before/after experiment above shows the OLD coverage green over the
    regression and the NEW coverage red on it. The transcript is the product's own output,
    pasted whole.
  • R8 — N/A — this change crosses no live service.
  • R9 — the worktree-local, CalVer-stamped build is used (printed above), never a shared
    install.
  • R10 — the change-class gate ran on the committed tree being pushed, with zero failed
    steps and no warning: charly task verify (the umbrella's whole plan) plus the changed
    gate's own --self-test. No disposable: true target is affected: this change touches
    no build, no deploy and no bed, and the umbrella declares no candy or box.
  • Part II ci: adopt org-wide validation chain — pr-validator + tag-on-merge, drop custom auto-merge #2 — the edit happens in the session worktree, on a branch off fresh
    origin/main; every tracked submodule checkout stays at its gitlink.
  • Part II chore: sync all submodule pins; spec no longer charly-pinned #6/fix: escape backticks in umbrella-gates rules template (pi extension parse error) #7/chore: sync gitlinks to the landed sdk de-submodule cutover #11 — the work is claimed on the issues it resolves, this PR names its
    predecessor, and the coordination records are posted on the threads it touches.

Change classification

One gate's own coverage. The diff carries one file: the umbrella's own check script,
and only its assertion machinery — the line-builder, the predicate, the mutation re-run and
a comment. No submodule content, no Go source, no schema, no gitlink, no pin, no deploy and
no bed.

The gates that own this class are the changed script's own --self-test (the coverage this
change adds) and the umbrella's charly task verify (the aggregate gate, which runs that
script's --self-test among its 30 steps) — both run on the committed tree above, and the
changed path itself ran live.

On the attribution tier. The tier is fully tested and validated: the change-class gate
passed on the final tree with zero warnings, and the changed path itself ran live, with the
before/after experiment above retained in this body.

Filed issues

Agent: charly

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

#653)

The validator's report on #656 read the change as correct
and raised two observations about it. The first is about the coverage: the
mutation sub-check did not re-run assertion T on the mutated text - it
regex-extracted REF from the mutated source and inspected the captured string,
so it would not catch a regression where okLine stopped reading REF. The second
was cosmetic: a comment claimed the ASCII rendering was "spelled here in
PIECES", when it is not present in this file at all.

What changes:

  * The builder takes the reference as a parameter (okLine(ref = REF)), and the
    predicate that decides the assertion is ONE function (printsOwnToken), so
    the self-test's assertion and its mutation check read the same two pieces
    (R2). The mutation now runs the MUTATED reference through THIS file's own
    builder and THIS file's own predicate - a live re-run of assertion T on the
    mutated input, not a regex over the mutated text. A builder that stopped
    reading the reference it is handed is caught by the same check, because the
    mutated reference is what it is handed.

  * The comment now says what is true: the ASCII rendering is not present in
    this file at all.

Proof, before and after, on the SAME regression (okLine no longer reading the
reference it is handed - the exact case the validator named), each run against
this repo's own charly.yml:

  OLD (origin/main) + the regression -> exit 0, every assertion PASSES: the
  mutation check did not catch it.
  NEW (this change) + the same regression -> exit 1, "FAIL the printed-token
  assertion did NOT catch a reference that is not the product's own token".
  NEW (this change), unmutated -> exit 0, 8 PASS.

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

Copy link
Copy Markdown
Contributor

Review — BLOCK

I read the full diff, the body, the commit, and the (empty) comment thread. The code change is sound; the body makes a closure claim the diff does not implement, and the body contradicts itself.

What checks out (so the block is narrow)

  • The diff does what the Summary says. okLine now takes ref = REF, printsOwnToken is the single predicate, and the mutation feeds the mutated reference back through this file's own okLine and printsOwnToken. That is a genuine live re-run of assertion T, and it closes the exact validator observation from fix(gates): the printed reference is asserted, and the docs gitlink advances to its merged main #656 ("okLine stopped reading REF"). A broken okLine (ignoring its parameter) makes printsOwnToken(okLine(mutatedRef)) return true → the self-test fails; a broken printsOwnToken (always true/false) is also caught by the first assertion. The experiment's OLD-green / NEW-red result is internally consistent with the code paths.
  • No security, no injection, no secret, no dead-code concerns. The script only reads its own source; the mutation uses a plain-string replace where ${ is not a recognized replacement pattern, so mutatedRef is literally ${x} and the check behaves as described.
  • File counts are consistent: body says "1 file changed, 28 insertions(+), 7 deletions(-)"; diff is exactly +28/-7 on one file; one commit. The TOKEN constant was correctly hoisted to module scope and is used by the new predicate.

Blocks

The substantive gate fix is correct and well-tested, but a merge under the current body would mark the docs-gitlink issue resolved while the diff does nothing to it. That must be reconciled before merge.

Verdict: BLOCK


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

View action run

@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS

The validator's BLOCK on this PR is FIXED, and its RCA follows. The finding was
raised against the body, not the code: the report read the code change as sound
("a genuine live re-run of assertion T", "no security… concerns", the file counts
consistent) and blocked on one thing — the body opened with Closes #653 / Closes #655
while the whole diff is one file that changes no gitlink, no submodule pointer and no
docs pin
, so the body contradicted itself. The body is reconciled and republished; the
head is unchanged at 8b3638e74cb8ca8265fd8d83f218eb0f7415f38e.

What the body says now. It states explicitly what this PR closes and what it does not:

Neither Closes keyword survives in the body, and both ## Filed issues entries were
re-worded to match.

The RCA of this round's finding.

A note on the round's earlier false alarm, because it is the same shape. While
reconciling the body, the ellipsis lint reported four findings that the same body linted
clean on minutes earlier. The cause was the shell's working directory: the lint had run
against the root clone's older marketplace/scripts/pr_body_lint.py, whose rule bans
the character outright, instead of the worktree's current copy, whose rule allows a
program's own token. The worktree's linter reports 0 findings on this body, and the
worktree's check-pr-body-diff.mjs reports OK. The finding was in the measurement
setup, not in the body — and the discipline it costs is the one the rulebook already
states: run the umbrella's own scripts from the session worktree, by absolute path.

Next

Next update due: when the validator's report lands.

Agent: charly

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

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

I re-derived the PR from the current body, the single-file diff, the commit, and both comments.

Code correctness

The diff does exactly what the Summary claims:

  • TOKEN = "…" (U+2026) is hoisted to module scope and is now the single source of the token.
  • okLine(ref = REF) takes the reference as a parameter.
  • printsOwnToken(line) is the one predicate for assertion T.
  • The first assertion uses printsOwnToken(okLine()).
  • The mutation replaces const REF = "…"; with const REF = "${x}";, reads the mutated reference back, and then runs the same builder and same predicate over it: printsOwnToken(okLine(mutatedRef)). That is a genuine live re-run of assertion T on the mutated input, not a regex over mutated text.

I checked the failure modes the #656 validator named:

  • Broken okLine (ignores its parameter) → okLine(mutatedRef) returns the token-bearing default → printsOwnToken true → self-test fails. The regression the observation named is now caught.
  • Broken printsOwnToken (always true) → mutation branch fails; (always false) → first assertion fails. Covered both ways.
  • Missing mutation (mutatedSelf === SELF) and unreadable mutated reference are each handled with explicit FAIL branches.

The String.replace replacement 'const REF = "${x}";' is safe: ${ is not a special replacement pattern, so the literal ${x} is inserted. No injection/secret/privilege surface; the script only reads its own source. No dead code or leftover legacy path — the local TOKEN and the old regex-only mutation check are removed.

Body honesty

  • File counts match: body says "1 file changed, 28 insertions(+), 7 deletions(-)"; diff header is +28/-7 on one file.
  • HEAD SHA 8b3638e74cb8ca8265fd8d83f218eb0f7415f38e matches the stated head.
  • The R5 sweep for the ASCII ${...} literal returns hits only in CHANGELOG files, not in the gate script — consistent with the corrected comment ("NOT present in this file at all").
  • The discriminating experiment (OLD green / NEW red over the same okLine-ignores-parameter regression) is internally consistent with the code paths.

Comments dispositioned

No remaining correctness, security, scope, or honesty defect. The change stands on its own evidence with coverage that fails without it.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 24, 2026 05:31
@github-actions
github-actions Bot merged commit c997670 into main Oct 24, 2026
5 of 6 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 24, 2026
@aitrawog
aitrawog deleted the feat/gate-assert-live-rerun branch November 1, 2026 19:08
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