Skip to content

fix(gate): let the tilde arm drive the evidence slot, and hold both placements - #704

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/tilde-arm-evidence-slot
Oct 26, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/tilde-arm-evidence-slot

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Refs #702

Summary

Head acb8880d44dd3225a0f71206a564bbfe828fdd9a — 1 file changed, 49 insertions(+), 3 deletions(-).

This pull request is the continuation of #703, and it carries the fix for the one finding the validator raised on it. #703's validator PASS armed this repo's auto-merge, and the merge landed at 04:25:45 — the fix was pushed to the branch at 04:39, after the merge, so it did not land in it. The merged change is #703's: the widened keyword grammar and the one CommonMark fence scanner, as squash f893b4c under tag v2026.299.0425. The finding below is against that merged code, and it is fixed here.

The finding. The validator's words: "the tilde-fence arm passes its fenced fixture via the claim positional slot rather than the evidence slot — functionally the scanner still catches it because checkEvidence scans fences body-wide, but it is slightly off-intent." The arm named "the body pastes evidence in a TILDE fence" while its fixture put the tilde fence in the Change classification section. The arm still caught the stale line, but an arm that does not exercise the path it names is not proof of that path, and the merged test could not state the guarantee at all: the fixture's evidence block was a fixed backtick fence, so a tilde-rendered evidence block — the shape a real body has — was not expressible.

The fix. The fixture's evidence block takes a fence character, so an arm can render that block with tildes. The tilde arm now drives the evidence slot it names, the prose placement becomes a second arm named for what it does, and a green arm the merged test lacked — a closing directive inside a tilde fence is evidence, not a directive — is added.

This pull request changes NO behaviour of the gate, and that is measured, not asserted. The merged gate (f893b4c) and this branch produce identical output on all eight fixture bodies. What it changes is the SELF-TEST: the merged test could not state the guarantee that a tilde-rendered evidence block is judged by the evidence arm, and now it does — the new arm is a regression guard for the tilde-awareness #703 brought, and the merged gate already satisfies it.

The validator's second observation — that #703's body pasted 21 of its PASS lines under the label "the new ones among them", so a reader could take the selection for the whole transcript — was a defect in that pull request's body, not in its code. It is corrected on #703 itself, which now describes the change that was actually merged.

file what it carries
scripts/check-pr-body-diff.mjs the fixture's evidence block takes a fence character (BACKTICK_FENCE / TILDE_FENCE), the tilde arm rendered in the evidence slot, the prose placement kept as its own arm, and the new green arm for a directive inside a tilde fence — 32 live arms, up from 30

How tested

The head this body describes

$ git rev-parse HEAD
acb8880d44dd3225a0f71206a564bbfe828fdd9a
$ git diff --shortstat origin/main HEAD
1 file changed, 49 insertions(+), 3 deletions(-)
$ git status --short --untracked-files=no; echo "exit=$?"
exit=0

The change-class gate, on the committed tree this body describes. The diff touches no submodule, no gitlink and no pin — it is one gate script's own self-test — so the gate that owns it is the umbrella's own verify task (which runs that script's self-test) and the script's own self-test, both on the committed tree with the worktree-local, CalVer-stamped build (R9):

$ ./charly/bin/charly version
2026.298.0310
$ ./charly/bin/charly task verify > /tmp/pin904/verify-successor.log 2>&1; echo "rc=$?"
rc=0
$ grep -E "^task verify:" /tmp/pin904/verify-successor.log
task verify: 35 step(s), 0 failed, 0 skipped
$ grep -cE "^\s*\[fail\]" /tmp/pin904/verify-successor.log
0
$ grep -ciE "warn" /tmp/pin904/verify-successor.log
0

The changed script's own self-test — every arm, all thirty-two:

$ node scripts/check-pr-body-diff.mjs --self-test; echo "rc=$?"
  PASS  mutation 'the table omits a file the diff changes' is caught (gate red)
  PASS  mutation 'the table lists a file the diff does not change' is caught (gate red)
  PASS  mutation 'the pasted head is not the head being pushed' is caught (gate red)
  PASS  mutation 'the prose states a stale count of the diff's new files' is caught (gate red)
  PASS  mutation 'the body pastes an evidence line the tree does not have' is caught (gate red)
  PASS  mutation 'the body pastes an evidence line whose text is not the tree's' is caught (gate red)
  PASS  mutation 'the body pastes text against a blank line of the tree' is caught (gate red)
  PASS  mutation 'the record names a file the body does not name' is caught (gate red)
  PASS  mutation 'the record states a number the body's pasted output does not show' is caught (gate red)
  PASS  mutation 'the body closes a number this repo merged as a pull request' is caught (gate red)
  PASS  mutation 'the body closes a merged pull request with the keyword 'close'' is caught (gate red)
  PASS  mutation 'the body closes a merged pull request with the keyword 'closes'' is caught (gate red)
  PASS  mutation 'the body closes a merged pull request with the keyword 'closed'' is caught (gate red)
  PASS  mutation 'the body closes a merged pull request with the keyword 'fix'' is caught (gate red)
  PASS  mutation 'the body closes a merged pull request with the keyword 'fixes'' is caught (gate red)
  PASS  mutation 'the body closes a merged pull request with the keyword 'fixed'' is caught (gate red)
  PASS  mutation 'the body closes a merged pull request with the keyword 'resolve'' is caught (gate red)
  PASS  mutation 'the body closes a merged pull request with the keyword 'resolves'' is caught (gate red)
  PASS  mutation 'the body closes a merged pull request with the keyword 'resolved'' is caught (gate red)
  PASS  mutation 'the body closes a merged pull request in UPPERCASE' is caught (gate red)
  PASS  mutation 'the body closes a merged pull request with a COLON' is caught (gate red)
  PASS  mutation 'the body closes a merged pull request AFTER a nested fence' is caught (gate red)
  PASS  mutation 'the body pastes a stale evidence line inside a TILDE fence in the prose' is caught (gate red)
  PASS  mutation 'the body pastes evidence in a TILDE fence the tree does not hold' is caught (gate red)
  PASS  case 'a closing directive inside a fenced block is evidence, not a directive' stays green
  PASS  case 'a closing directive inside a TILDE fence is evidence, not a directive' stays green
  PASS  case 'a closing directive naming an issue is left alone' stays green
  PASS  case 'a closing directive naming an issue is left alone in a form the arm newly reads' stays green
  PASS  case 'a closing directive inside a NESTED fence is evidence, not a directive' stays green
  PASS  case 'a closing directive in the MIDDLE of a line is not a directive' stays green
  PASS  case 'a fence whose closing line carries text does not close the fence' stays green
  PASS  the unmutated fixture body is GREEN
check-pr-body-diff --self-test: OK (32 arms live)
rc=0

Three gates, eight bodies. The fixture's base commit is base (#7), so #7 is a number that repo merged as a pull request. OLD is the gate as it stood before #703 (this repo's origin/main copy at 603638f), MERGED is #703 as it landed (f893b4c), and NEW is this branch. The SAME body is judged by all three:

body OLD MERGED NEW
closed #7 (a form the OLD arm could not read) green red — the directive arm red — the directive arm
CLOSES #7 (uppercase) green red — the directive arm red — the directive arm
Closes: #7 (colon) green red — the directive arm red — the directive arm
a stale evidence line in a ~~~ fence in the prose green red — the evidence arm red — the evidence arm
the evidence block itself rendered with ~~~ red — the record arm, which cannot see the OLD reader's invisible pasted output red — the evidence arm and the record arm red — the evidence arm and the record arm
a directive after a nested fence red — the record arm, broken by the old reader's fence confusion red — the directive arm red — the directive arm
a directive inside a nested fence red — a spurious finding on the body's own quote green green
a fence whose closing line carries text red — TWO findings, one spurious green green

MERGED and NEW are identical on every one of the eight bodies — measured, by comparing the two gates' full output per body:

### keyword form the OLD arm could not read
    MERGED vs NEW: IDENTICAL (rc 1 vs 1)
### UPPERCASE form the OLD arm could not read
    MERGED vs NEW: IDENTICAL (rc 1 vs 1)
### COLON form the OLD arm could not read
    MERGED vs NEW: IDENTICAL (rc 1 vs 1)
### directive AFTER a nested fence
    MERGED vs NEW: IDENTICAL (rc 1 vs 1)
### evidence in a TILDE fence in the prose
    MERGED vs NEW: IDENTICAL (rc 1 vs 1)
### evidence in a TILDE fence as the evidence block
    MERGED vs NEW: IDENTICAL (rc 1 vs 1)
### directive INSIDE a nested fence
    MERGED vs NEW: IDENTICAL (rc 0 vs 0)
### fence whose CLOSING line carries text
    MERGED vs NEW: IDENTICAL (rc 0 vs 0)

That measurement is the point of this pull request: it changes no behaviour, and the only difference between the two gates is the self-test. The new arm's expectation — that a tilde-rendered evidence block is judged by the EVIDENCE arm — is what the MERGED gate already does, and is what the merged test could not state:

### evidence in a TILDE fence as the evidence block
    --- MERGED (rc=1) ---
      FAIL  the body pastes scripts/one.sh:1 as "echo something else" (line 22 of the body), and that line reads "#!/bin/sh" in the tree being pushed — the evidence was taken on another tree
      FAIL  the record CHANGELOG/2026.001.0001.md states the number 2, and the body's pasted output does not show it — a quantity is a measurement, and a measurement is shown by a command's output
      check-pr-body-diff: 2 finding(s)
    --- NEW (rc=1) ---
      FAIL  the body pastes scripts/one.sh:1 as "echo something else" (line 22 of the body), and that line reads "#!/bin/sh" in the tree being pushed — the evidence was taken on another tree
      FAIL  the record CHANGELOG/2026.001.0001.md states the number 2, and the body's pasted output does not show it — a quantity is a measurement, and a measurement is shown by a command's output
      check-pr-body-diff: 2 finding(s)

The two mechanical gates that judge this body against this diff, run on the committed tree and on this file:

$ node scripts/check-pr-body-diff.mjs --body /tmp/pin904/body-successor.md --repo . --base origin/main; echo "rc=$?"
  PASS  every pasted `git rev-parse HEAD` names the head being pushed (acb8880)
  NOTE  the body pastes no evidence line that names a file and a line number — the evidence rule is inapplicable
  NOTE  the body carries no closing directive — the directive rule is inapplicable
  NOTE  the body states no count of the diff's new files — the count rule is inapplicable
  NOTE  the diff rewrites no CHANGELOG record — the record-claim rule is inapplicable
  PASS  the file table lists exactly the 1 file(s) the diff changes (against origin/main)
check-pr-body-diff: OK
rc=0
$ python3 -I marketplace/scripts/pr_body_lint.py /tmp/pin904/body-successor.md --head acb8880d44dd3225a0f71206a564bbfe828fdd9a --repo . --base origin/main; echo "rc=$?"
pr_body_lint: 0 finding(s)
rc=0

The change is a fixture change, and the claim-keyed sweep shows what it did NOT leave behind (R5):

$ git grep -nE '\(Closes\|Fixes\|Resolves\)\s+#' -- scripts/check-pr-body-diff.mjs
rc=1
$ git grep -n 'inFence' -- scripts/check-pr-body-diff.mjs
rc=1
$ git grep -nE '^\s*```' -- scripts/check-pr-body-diff.mjs
rc=1
$ git grep -c 'fenceSpans' -- scripts/check-pr-body-diff.mjs
scripts/check-pr-body-diff.mjs:3

The three retired patterns of #703 are still gone, and the one scanner still serves both readers.

Rulebook compliance

Change classification

  • Change class: a gate script's own self-test — its fixture and its arms. No behaviour change to the gate (measured above), no schema, no gitlink, no pin, no behavioral configuration.
  • Diffstat: 1 file changed, 49 insertions(+), 3 deletions(-).
  • Verification gate: ./charly/bin/charly task verify on the committed tree — every step, zero failures, zero warnings; node scripts/check-pr-body-diff.mjs --self-test for the changed script; the three-gate differential (pre-fix(gate): read GitHub's whole closing-keyword set, and one fence rule #703, merged fix(gate): read GitHub's whole closing-keyword set, and one fence rule #703, this branch) on eight fixture bodies; plus the umbrella's own body/diff reconciliation and the org's body linter, both pasted above.
  • Attribution tier: fully tested and validated — the change-class gate passed on the final tree and the changed path (the self-test and the differential) executed live.

Filed issues

No other issue is filed by this PR. The one finding this change exists for was raised on this org's own merged pull request #703 and is FIXED here, in the control that would have caught it. A finding raised on a pull request is never filed away.

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

…lacements

The fresh `charly/pr-validator` returned PASS on #703 and raised two
minor observations. The first is fixed here; the second was a defect in
that pull request's BODY, and it is corrected on the pull request
itself.

**A correction to this entry.** #703's validator PASS armed the
repo's auto-merge, and the merge landed at 04:25:45 — the round-2 fix
was pushed to the branch at 04:39, AFTER the merge, so it did not land
in it. The merged change is the round-1 change: the widened keyword
grammar and the one CommonMark fence scanner. The fix in this commit
was not in that merge and is carried forward here.

The observation: the tilde-fence arm passed its fixture through the
fixture's `claim` slot, so the arm named "the body pastes evidence in
a TILDE fence" while the fixture put the fence in the Change
classification section. The arm still caught the stale line — the
evidence reader scans fences body-wide — but it was off-intent, and an
arm that does not exercise the path it names is not proof of that
path.

The fix gives the fixture's evidence block a fence CHARACTER, so the
arm can render that block with tildes, which is the shape a real body
has. Measured, and this is the part that matters: with the tilde
block as the evidence block, the OLD gate cannot see the block's
content either, so it reports a DIFFERENT finding — the record arm,
which cannot see the pasted output — and it NEVER reports the evidence
finding. The prose placement, by contrast, is where the OLD reader
was fully blind: its `proseLines` treated the tilde run as a fence, so
every arm missed the line and the body was green. Both placements are
therefore arms now, each named for what it does: one carries the
OLD-green/NEW-red discrimination, the other exercises the evidence
slot the first one could not reach.

A third arm comes with the fix: a closing directive inside a TILDE
fence is evidence, not a directive. The OLD reader already held that
half — it was the evidence reader that did not — and this arm holds it
in place.

R7: the self-test grows to 32 live arms, all green. The OLD-versus-NEW
differential grows to eight fixture bodies, and the new one shows the
OLD gate's finding is a DIFFERENT finding, not a missing one.

Refs #702
Refs #700
Refs #701
Continuation of #703

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

Copy link
Copy Markdown
Contributor

Review — PASS

I re-derived the PR's claims against the one-file diff and the commit list. All check out.

Correctness vs. the diff

  • The change is confined entirely to the --self-test block of scripts/check-pr-body-diff.mjs (all hunks sit under if (argv.includes("--self-test"))), so the body's central claim — "This pull request changes NO behaviour of the gate" — is structurally true: no production path is touched.
  • The finding being fixed is exactly what the diff does: the fixture's evidence block now takes a fence parameter (BACKTICK_FENCE / TILDE_FENCE), a new mutation arm drives that parameter with TILDE_FENCE in the evidence slot (body(FULL_TABLE, head, "", "scripts/one.sh:1:echo something else", "", TILDE_FENCE)), and the former tilde arm is renamed to "…inside a TILDE fence in the prose" so its name matches the claim/prose placement it actually exercises. The old name is reused only by the new evidence-slot arm. This is the precise correction the fix(gate): read GitHub's whole closing-keyword set, and one fence rule #703 validator asked for.
  • The added green case (a closing directive inside a TILDE fence is evidence, not a directive, directive slot = "~~~\nCloses #7\n~~~") is a genuine regression guard: if the unified fence scanner stopped treating tildes as fences, a tilde-fenced directive would fire the directive arm and this case would go red.

Body honesty

  • Diffstat: I counted the hunks — 8 + 1 + 2 + 24 + 14 = 49 insertions, 2 + 1 = 3 deletions, 1 file. Matches the body's "1 file changed, 49 insertions(+), 3 deletions(-)" exactly.
  • Arm count: The pasted transcript lists 32 arms (24 mutations + 7 green cases + the unmutated-body GREEN), matching "32 live arms, up from 30" — net +2 (one new mutation, one new green; the rename is net-zero). Consistent.
  • Differential claim: The body states MERGED (f893b4c) and NEW produce identical output on all eight bodies, with a per-body transcript. This is consistent with the code — the diff adds no scanner logic, only fixtures — so "identical output" is the expected and honest result of a fixture-only change.
  • Version note: the charly version paste (2026.298.0310) differs from the merged tag (v2026.299.0425), but the changed script is exercised directly via node scripts/check-pr-body-diff.mjs, so the binary stamp is not load-bearing for this change. No contradiction with the claims made.
  • Head SHA in the body (acb8880…) matches the stated head SHA and the single commit.

Tests

The change is test coverage, and it is discriminating: per the body's own three-gate table, the pre-#703 reader is green/red-differently on the tilde-evidence and prose-tilde bodies, so the new arms would fail against the old reader and pass only against the unified scanner. That is exactly what a regression guard for #703's tilde-awareness should look like.

Security

No secrets, no injection surface, no dependency changes, no privilege path. Pure fixture/self-test edit.

Scope & cleanliness

Single coherent change; the new constants are used; no duplicated body-builder; no leftover legacy path introduced. The renamed arm removes the naming/intent mismatch rather than duplicating it.

Comments

Zero comments in the thread. No designated maintainers are configured for this run, so no comment could constitute a sign-off regardless — and none is present. The change stands on its own evidence, which it does.

No block-worthy findings. The PR fixes the named finding in the control that would have caught it, its measured claims are reproduced by the diff, and it changes no gate behaviour.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 26, 2026 04:53
@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS

Round 1 — this pull request is open and carries the one finding the merge of #703 could not. Head is acb8880d44dd3225a0f71206a564bbfe828fdd9a (one commit on feat/tilde-arm-evidence-slot, branched from this repo's fresh origin/main at d33a4d7).

What happened, and why this pull request exists. #703's validator PASS armed this repo's auto-merge, and the merge landed at 04:25:45. The round-2 fix was pushed to that branch at 04:39 — after the merge — so it did not land in it. The merged change is #703's own: the widened keyword grammar and the one CommonMark fence scanner, as squash f893b4c under tag v2026.299.0425. The finding below is against that merged code, and it is fixed here.

The finding, and the RCA that names the missed control. The validator's words: "the tilde-fence arm passes its fenced fixture via the claim positional slot rather than the evidence slot — functionally the scanner still catches it because checkEvidence scans fences body-wide, but it is slightly off-intent." The missed control: the self-test's fixture could not express a tilde-rendered evidence block, so the shape a real body has was never driven, and an arm that promises a path it does not drive cannot fail for that path. The root fix is in the fixture, not in the gate: the evidence block takes a fence CHARACTER, so an arm can render that block with tildes. The tilde arm now drives the evidence slot it names, the prose placement stays as its own arm (it carries the OLD-green/NEW-red discrimination), and a green arm the merged test lacked — a closing directive inside a tilde fence is evidence, not a directive — is added.

What this pull request does NOT claim. It changes no behaviour of the gate, and that is measured, not asserted: the merged gate (f893b4c) and this branch produce identical output on all eight fixture bodies. What it changes is the SELF-TEST — 32 live arms, up from 30 — so the guarantee can be stated at all.

The carry-forward is complete on the other three surfaces. #703's body is corrected in place (it named a head that never merged; it now names the merge, the correction, and this pull request) and carries a RESOLVED comment; #702 carries its RESOLVED record and is closed — by hand, because the merge was by app/github-actions, a GitHub App, and GitHub's close-on-merge fires only for a User-type account.

Proof on the final tree. The self-test is green at 32 arms; charly task verify on the committed tree is green — 35 steps, 0 failed, 0 skipped, 0 warnings — with the worktree-local CalVer-stamped build 2026.298.0310; the three-gate differential runs eight fixture bodies; and both mechanical body gates are green on this pull request's own body. All of it is pasted in the body.

Next. Read the validator's report on this head in full, fix anything it raises in one more commit, and report the round here.

Next update due: when the validator's verdict on acb8880 lands.

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

@github-actions
github-actions Bot merged commit ab4bf0c into main Oct 26, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 26, 2026
@aitrawog

Copy link
Copy Markdown
Contributor Author

RESOLVED — this pull request is merged, and the one finding the merge of #703 could not carry is fixed by it.

Merged. Squash ab4bf0c7271557d7e4cf7bfa8f91b37fb3ddbcde, tag v2026.299.0454, changelog commit 6447c97 (CHANGELOG/2026.299.0454.md). Merged at 2026-10-26T04:54:01 by app/github-actions — a GitHub App, so GitHub's close-on-merge does not fire for it; this pull request resolved no issue of its own (it carries Refs #702, and #702 was closed by hand with a RESOLVED record), so nothing is left open by the merge.

The validator returned PASS with no findings. It re-derived the claims against the one-file diff: "The change is confined entirely to the --self-test block of scripts/check-pr-body-diff.mjs (all hunks sit under if (argv.includes("--self-test"))), so the body's central claim — 'This pull request changes NO behaviour of the gate' — is structurally true: no production path is touched." It confirmed the diffstat (49 insertions, 3 deletions, one file), the arm count (32 live arms, up from 30), the head SHA, and that the new green case is a genuine regression guard — "if the unified fence scanner stopped treating tildes as fences, a tilde-fenced directive would fire the directive arm and this case would go red."

What this merged. The tilde-fence arm now drives the fixture's evidence slot, the prose placement stays as its own arm (named for what it does), and the green arm for a directive inside a tilde fence is added. Measured on the merged tree: check-pr-body-diff --self-test: OK (32 arms live).

Nothing is stranded. The merged tree carries the whole fix — unlike #703, whose round-2 fix was pushed at 04:39, after its merge landed at 04:25:45, and had to be carried forward by this pull request.

The carry-forward from #703 is complete on all four surfaces. #703's body is corrected in place and carries a RESOLVED comment; this pull request's body names #703 as its predecessor; #702 carries its RESOLVED record and is closed by hand; ownership moved here.

The two related findings stay filed and open: #701 (the boundary this change deliberately does not cross) and #700 (the class it belongs to).

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

@aitrawog
aitrawog deleted the feat/tilde-arm-evidence-slot branch November 1, 2026 19:11
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