Skip to content

fix(gate): read GitHub's whole closing-keyword set, and one fence rule - #703

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/closing-directive-grammar
Oct 26, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/closing-directive-grammar

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Closes #702

Summary

Head 4fab438aac1ef5bb4725acb6de68d0a2c0fb80df — 1 file changed, 202 insertions(+), 51 deletions(-).

A correction to this entry. This pull request was merged as f893b4c under tag v2026.299.0425 at 04:25:45, and the merge carries exactly the change this entry describes — head 4fab438, one file, 202 insertions(+) and 51 deletions(-). The fresh charly/pr-validator returned PASS on it and raised two minor observations. The first — the tilde-fence arm drives the fixture's claim slot rather than its evidence slot, so the arm names a path it does not exercise — was fixed in a second commit, 5657544, pushed to this branch at 04:39, after the merge had already landed; it is therefore not in the merge, and it is carried forward by #704. The head line above names the pull request's own head — the commit that was pushed, and the one the push-time gate judged — and the merge is its squash; the two carry the same tree. The second — that this 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 — is corrected here: the transcript below is every one of the 30 arms, and the summary line carries the total.

The umbrella's closing-directive arm read THREE of the NINE closing keywords GitHub accepts, case-sensitively, and its fence reader could not tell a four-backtick fence from a three-backtick one. Both were raised by the fresh charly/pr-validator on this org's own merged pull request #699, so the arm's claim — "every closing directive names something the directive CAN close" — was false for six of the nine forms, and for every case GitHub accepts.

GitHub's "Linking a pull request to an issue" names the whole set — close, closes, closed, fix, fixes, fixed, resolve, resolves, resolved — and adds: "The keywords can be followed by colons or in uppercase." The arm read Closes, Fixes, Resolves, capitalised. A body whose directive said closed #7, CLOSES #7 or Closes: #7 was green, and GitHub reads all three.

The fence reader was TWO readers of one thing. proseLines toggled on a backtick fence or a tilde fence; fencedBlocks toggled on a backtick fence only; and both ignored CommonMark's fence rules. The naive toggle gets those wrong in both directions, and each error is a real body: it CLOSES a four-backtick fence at the three-backtick line inside it, so a directive pasted inside that fence trips the arm on the body's own quote; it OPENS a fence at a three-backtick line inside a four-backtick one, so a directive after that line reads as fenced and escapes the arm entirely; it closes a fence on a run that is followed by text, when CommonMark says only whitespace may follow the closing run; and the two readers disagreed about ~~~, so a body could paste evidence in a tilde block and the evidence arm never saw it.

One change, one cutover. ONE fence scanner now serves both readers, and it implements CommonMark's fence rules — the length rule, and the closing fence's rule that only whitespace may follow the run (an info string belongs to the OPENING fence alone) — so the evidence arm and the directive arm can never disagree about where a fence ends. The keyword grammar reads all nine forms, case-insensitively, with the optional colon, and the finding quotes the directive as it was written.

The boundary this change does NOT cross is the arm's POSITION — a directive is read only when the body OPENS a line with it. That boundary is deliberate, and it is now MEASURED rather than asserted: 8 mid-line directives in this repo's 447 merged bodies, of which 3 name a pull request and 2 are legitimate prose — "The validator auto-closed #348 after its fifth non-PASS verdict" and "the channel bootstrap fix #43's gitlink". A full-parity grammar would turn the gate red on ordinary prose (3 reds over 447 bodies, 2 of them legitimate), and a push-time gate that blocks a body for the phrase "the auto-closed #348" is a gate people learn to route around. That measurement, and the cost of crossing the boundary, are filed as #701.

The self-test's fixture table was spelled out in twelve arms and is now one constant, so no arm can spell the table differently from another.

file what it carries
scripts/check-pr-body-diff.mjs the widened keyword grammar (all nine forms, case-insensitive, optional colon), the one CommonMark fence scanner shared by both readers, the finding that quotes the directive as written, and the self-test arms that prove each — 30 live arms, up from 13

How tested

The head this body describes

$ git rev-parse HEAD
4fab438aac1ef5bb4725acb6de68d0a2c0fb80df
$ git diff --shortstat origin/main HEAD
1 file changed, 202 insertions(+), 51 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 — 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-702-head.log 2>&1; echo "rc=$?"
rc=0
$ grep -E "^task verify:" /tmp/pin904/verify-702-head.log
task verify: 35 step(s), 0 failed, 0 skipped
$ grep -cE "^\s*\[fail\]" /tmp/pin904/verify-702-head.log
0
$ grep -ciE "warn" /tmp/pin904/verify-702-head.log
0

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

$ 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 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 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 (30 arms live)
rc=0

The arm's discrimination, on a fixture repo (R7 — the coverage fails without the change). The OLD gate is this repo's own origin/main copy, the NEW gate is this branch's copy, and the SAME body is judged by both. The fixture's base commit is base (#7), so #7 is a number that repo merged as a pull request, and the body's first line is the directive under test:

### keyword form the OLD arm could not read      -> OLD green / NEW red
    --- OLD (rc=0) ---
      PASS  every pasted `git rev-parse HEAD` names the head being pushed (a4cdf78)
      PASS  every pasted evidence line resolves in the tree being pushed (3 reference(s))
      PASS  every claim the 1 rewritten record(s) state is visible in the body (paths and numbers)
      PASS  the file table lists exactly the 4 file(s) the diff changes (against main)
      check-pr-body-diff: OK
    --- NEW (rc=1) ---
      PASS  every pasted `git rev-parse HEAD` names the head being pushed (a4cdf78)
      PASS  every pasted evidence line resolves in the tree being pushed (3 reference(s))
      PASS  every claim the 1 rewritten record(s) state is visible in the body (paths and numbers)
      PASS  the file table lists exactly the 4 file(s) the diff changes (against main)
      FAIL  the body opens closed #7 (line 1), and #7 is a merged PULL REQUEST in this repo — GitHub closes issues, not pull requests, so the directive closes nothing; write `Refs #7`
      check-pr-body-diff: 1 finding(s)

Seven bodies, judged by both gates:

body OLD NEW
closed #7 (a form the OLD arm could not read) green red — the directive arm
CLOSES #7 (uppercase) green red — the directive arm
Closes: #7 (colon) green red — the directive arm
evidence pasted in a ~~~ fence green red — the evidence arm, "the evidence was taken on another tree"
a directive inside a nested fence red — a spurious finding on the body's own quote green
a fence whose closing line carries text red — TWO findings: a spurious directive finding on the body's own quote, and the record arm broken by the fence confusion green, every arm intact
a directive after a nested fence red — a spurious finding on an UNRELATED arm (the record arm, because the old reader's fence confusion swallowed the body's evidence block) red — the directive arm, and the other three arms stay PASS

The last two rows are the fence defect stated in the strongest form: the old reader's confusion does not merely miss a directive, it corrupts the other arms — and the new reader gets the directive right without losing anything.

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-702.md --repo . --base origin/main; echo "rc=$?"
  PASS  every pasted `git rev-parse HEAD` names the head being pushed (4fab438)
  NOTE  the body pastes no evidence line that names a file and a line number — the evidence rule is inapplicable
  PASS  every closing directive names a number this repo has not merged as a pull request (1 directive(s)) — a directive naming an OPEN pull request is not decidable from the tree
  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-702.md --head 4fab438aac1ef5bb4725acb6de68d0a2c0fb80df --repo . --base origin/main; echo "rc=$?"
pr_body_lint: 0 finding(s)
rc=0

The retired patterns are gone, and the one scanner is the only reader (R5, claim-keyed):

$ 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 old three-form keyword alternation, the naive fence toggle and the naive fence test are all gone from the file, and fenceSpans appears three times — its definition and its two readers. There is one scanner, and both readers consume it.

Rulebook compliance

Change classification

  • Change class: a gate script's own arm, grammar and self-test — no product behaviour change, no schema, no gitlink, no pin, no behavioral configuration.
  • Diffstat: 1 file changed, 202 insertions(+), 51 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 OLD-gate-versus-NEW-gate differential on a fixture repo; 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 reconciler and its self-test) executed live.

Filed issues

No other issue is filed by this PR. The two findings this change exists for were raised on this org's own merged pull request #699 and are FIXED here, in the control that would have caught them. 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)

The arm landed in #699 read THREE of the NINE closing keywords GitHub
accepts — `Closes`, `Fixes`, `Resolves`, capitalised — and its fence
reader could not tell a four-backtick fence from a three-backtick one.
Both were raised by the fresh `charly/pr-validator` on #699 itself, so
the arm's claim — "every closing directive names something the
directive CAN close" — was false for six of the nine forms and for
every case GitHub accepts.

GitHub's "Linking a pull request to an issue" names the whole set
(`close`, `closes`, `closed`, `fix`, `fixes`, `fixed`, `resolve`,
`resolves`, `resolved`) and adds: "The keywords can be followed by
colons or in uppercase." The arm read none of those forms. This
repo's own 447 merged bodies carry 52 line-starting bare `#N`
directives, and the three forms the arm read were exactly the three it
read.

The fence reader was TWO readers of one thing: `proseLines` toggled on
a backtick or a tilde fence, `fencedBlocks` toggled on a backtick fence
only, and both ignored CommonMark's fence rules. So a body could paste
evidence in a tilde block and the evidence arm never saw it; a
four-backtick fence closed early at the three-backtick line inside it;
a directive after a nested fence escaped the arm entirely; and a run
followed by text closed a fence that CommonMark says is still open.

ONE scanner now serves both readers, and it implements CommonMark's
fence rules: the length rule, and the closing fence's rule that only
whitespace may follow the run (an info string belongs to the OPENING
fence alone). The keyword grammar reads all nine forms,
case-insensitively, with the optional colon, and the finding quotes the
directive as it was written. The boundary the widening does NOT cross
is the arm's POSITION — a directive is read only when the body OPENS a
line with it — and that boundary is measured and filed rather than
asserted: 8 mid-line directives in this repo's 447 merged bodies, 3 of
them naming a pull request and 2 of them legitimate prose ("the
auto-closed #348", "the channel bootstrap fix #43's gitlink") that a
full-parity grammar would block.

The self-test's fixture table was spelled out in twelve arms and is
now one constant, so no arm can spell the table differently from
another.

R7: the self-test grows to 30 live arms — one per keyword form, the
uppercase form, the colon form, a directive after a nested fence, a
tilde-fenced evidence block, a directive inside a nested fence, a
mid-line directive, and a fence whose closing line carries text. On
four bodies the OLD gate is green and the NEW gate is red, and on two
the OLD gate is red and the NEW gate is green; the ONE difference
between the two runs is this change.

Closes #702
Refs #700
Refs #701

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

Copy link
Copy Markdown
Contributor

Review — PASS

I reviewed the single changed file scripts/check-pr-body-diff.mjs line by line against the body's claims, the commit, and the (empty) comment thread.

Correctness of the code

One fence scanner, CommonMark rules (fenceSpans). The new scanner correctly implements the two rules it claims:

  • Length rule: an opening run is {3,} of backticks or tildes; a closing run must be the same character and marker.length >= open.len. I traced the nested cases: a ``` line inside a ```` fence has len 3 < 4 and does not close it (stays content), while a ```` line inside a ``` fence closes it. Both match the body's "in both directions" claim.
  • Whitespace-only-after-run rule: closing requires /^\s*$/.test(rest), so ```still inside is content, not a close. The opening line's info string is correctly ignored (rest is discarded on open).
  • Unclosed fences are pushed to to: lines.length, matching prior swallow-to-end behaviour.

fencedBlocks and proseLines now both consume fenceSpans. The old divergence (fencedBlocks backtick-only vs proseLines backtick-or-tilde) is gone; both read the same spans. proseLines' pointer walk (while (s < spans.length && n > spans[s].to) s += 1) is correct for the non-overlapping, ascending spans fenceSpans produces.

Widened keyword grammar. (close[sd]?|fix(?:es|ed)?|resolve[sd]?) with /i covers exactly the nine GitHub forms; ([ \t]*:?[ \t]*) admits the optional colon; the finding now quotes ${m[1]}${m[2]}${m[3]} — the directive as written — which matches the sample output (closed #7, CLOSES #7, Closes: #7). I checked for false positives on ordinary prose ("Fix the bug in #7", "Closed loop #7", "This PR closes #7 in prose") — none match, because the separator group cannot skip intervening words. The \b guards avoid partial-word matches ("fixedly").

No leftover/legacy path. inFence, the naive backtick toggle, the naive ^\s*``` test, and the three-form alternation are all removed; fenceSpans appears exactly 3× (definition + two readers), consistent with the body's git grep evidence.

Tests

The change ships coverage that would fail without it: nine per-keyword arms, UPPERCASE, COLON, AFTER-a-nested-fence, and TILDE-fence mutations; plus green arms for nested fence, mid-line directive, and text-after-closing-run. I traced each new arm against the implementation and they resolve as asserted (directive inside nested fence stays green; directive after nested fence is caught; tilde-fenced stale evidence is flagged; text-after-run keeps the fence open). The FULL_TABLE constant de-duplication is a genuine cleanliness improvement and does not alter the fixture's meaning.

Body honesty

  • Diffstat (1 file, +202/−51) matches the diff header.
  • Arm count is internally consistent: 13 prior + 17 new = 30, and the pasted transcript's summary line agrees (OK (30 arms live)).
  • The git grep retirement evidence matches what the diff actually deletes.

Minor, non-blocking observations: the pasted self-test transcript shows 21 of the 30 PASS lines (explicitly framed as "the new ones among them" with the count confirmed in the summary line), and 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. Neither rises to a contradiction or a behavioural defect.

Security / scope

No secrets, no injection surface, no dependency changes; the regexes are linear with no catastrophic backtracking. One file, one coherent cutover — no dead code, no duplication left behind.

Comments

The thread is empty (0 comments), so there is nothing to disposition and no maintainer sign-off is present — the change is gated on its own reproduced evidence, which holds.

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:25
@github-actions
github-actions Bot merged commit f893b4c into main Oct 26, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 26, 2026
aitrawog added a commit that referenced this pull request Oct 26, 2026
…ements

The fresh `charly/pr-validator` returned PASS on #703 and raised two
minor observations. Both are findings raised on this pull request, so
neither is filed away — both are fixed here.

The first: 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.

The second observation: the body pasted 21 of the 32 PASS lines and
labelled the block "the new ones among them". A reader could take the
selection for the whole transcript. The body now pastes every line.

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

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

Copy link
Copy Markdown
Contributor Author

STATUS

Round 1 — the validator returned PASS, and both of its minor observations are fixed. Head is now 5657544d46fb7e8fd75134b0cb28b65a88d37060 (one new commit; the first push was never amended). The body is rewritten for that head.

What the validator raised. Two minor, non-blocking observations: the tilde-fence arm passed its fixture through the fixture's claim slot rather than the evidence slot, so the arm named a path it did not exercise; and the body's self-test transcript pasted 21 of the PASS lines under the label "the new ones among them", so a reader could take the selection for the whole transcript.

RCA of the first observation — the missed control. The arm is only proof of the path it names if the fixture drives that path. The fixture's evidence block was a fixed backtick fence, so a tilde fence could only be pasted into the prose — where the OLD reader's proseLines treated it as a fence and every arm missed the line, so the OLD gate was green and the discrimination was real. The gap was in the FIXTURE, not in the gate: the fixture could not express the shape a real body has (an evidence block rendered with tildes), so that shape was never driven.

The root fix, and what measuring it changed. The fixture's evidence block now takes a fence CHARACTER, so the arm can render it with tildes. Measuring that shape changed the proof, and the measurement is in the body: with the tilde block as the evidence block, the OLD reader 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 NEW gate reports. The prose placement is where the OLD reader was fully blind. So both placements are 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 came with the fix — a closing directive inside a tilde fence is evidence, not a directive — holding the half the OLD reader already had.

RCA of the second observation — the missed control. A body that pastes a selection of its own transcript cannot be checked by a reader. The body now pastes every one of the 32 PASS lines and the summary line that carries the total.

Proof on the final tree. The self-test is green at 32 arms; the OLD-versus-NEW differential runs eight fixture bodies; charly task verify on the committed tree is green with zero failures and zero warnings. All of it is pasted in the body.

Nothing is filed away. The two findings the change exists for were raised on this org's own merged #699 and are fixed in the control. The validator's two observations on this pull request are fixed here. The two related findings stay filed and open: #701 (the boundary this PR deliberately does not cross) and #700 (the class it belongs to).

Next. Read the validator's report on the new 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 5657544 lands.

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

@aitrawog

Copy link
Copy Markdown
Contributor Author

RESOLVED — this pull request is merged, and the one finding the merge could not carry continues in #704.

Merged. Squash f893b4c7eb1cb48c50fdcbbf19ad9458fd7a681c, tag v2026.299.0425, changelog commit d33a4d7 (CHANGELOG/2026.299.0425.md). Merged at 2026-10-26T04:25:45 by app/github-actions — a GitHub App, so GitHub's close-on-merge never fired and #702 was closed by hand with a RESOLVED record naming this merge.

The validator returned PASS and raised two minor observations, both accounted for here.

  1. The tilde arm was off-intent — it drove the fixture's claim slot rather than its evidence slot, so the arm named a path it did not exercise. The fix is commit 5657544, pushed to this branch at 04:39, after the merge landed at 04:25:45, so it is not in the merge. It is carried forward by fix(gate): let the tilde arm drive the evidence slot, and hold both placements #704, which gives the fixture's evidence block a fence character — so the tilde arm drives the path it names, the prose placement stays as its own arm, and the green arm for a directive inside a tilde fence is added. That pull request changes no behaviour of the gate: measured, the merged gate and that branch produce identical output on all eight fixture bodies.
  2. This 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. Corrected in place: the body now pastes every one of its 30 arms, and it carries a "A correction to this entry." paragraph naming this merge, the observation, and the successor.

What the merge fixed is the control gap from #702: the arm read three of the nine closing keywords GitHub accepts, case-sensitively, and its fence reader could not tell a four-backtick fence from a three-backtick one. The keyword grammar now reads all nine forms, and ONE CommonMark fence scanner serves both readers. The self-test grew from 13 arms to 30.

Nothing is left on this pull request. The successor is the only open thread. The two related findings stay filed and open: #701 and #700.

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
…lacements (#704)

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)
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.

the directive arm reads 3 of GitHub's 9 closing keywords, case-sensitively, and its fence reader cannot tell a 4-backtick fence from a 3-backtick one

1 participant