Skip to content

feat(rules): state the ! subject marker and check its relation to the body's answer - #805

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/bang-marker-802
Oct 29, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/bang-marker-802

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Closes #802

Summary

Head cc1ed9a0d487e7c23735c1176c8c2f6c5518a9eb — the commit this PR pushes: 5 files changed, 219 insertions(+), 1 deletion(-).

The ! subject marker was undefined, and nothing related it to the body's "Breaking change" line. The marker was written down in exactly ONE line of the org's rulebook — the hard-cutover checklist in cutover-policy — and neither AGENTS.md nor the git-workflow skill's body spec said what it meant. So a merged changelog could carry a bang-marked subject (this change is a hard cutover) beside a body that said nothing about what breaks for this repo's consumers, and no gate noticed. Measured org-wide: of the 53 bang-marked merged pull requests in the scanned window (the 300 most recently updated merged pull requests org-wide), 51 carry no breaking-change answer at all; the two that do (#801 and opencharly/plugin-box#66) both answer with a REASONED none, and not one of the 53 carries a bare none. The issue is #802.

The rule — one relation, three sides, each stated by the surface that owns it.

  • The ! marker means this change carries a HARD CUTOVER — the whole phase lands in one change, with no shim, no dual path and no follow-up (/charly-internals:cutover-policy).
  • The body's ## Change classification answers what breaks for THIS repo's consumers, and how to roll it back (/charly-internals:git-workflow).
  • So under a ! the body MUST carry a **Breaking change + rollback:** line, and a bare none is not an answer — a cutover that breaks nothing HERE must say WHY it breaks nothing here (the shape chore(pins)!: the umbrella's pins carry the retired-builder-selector cutover #801's changelog already has: "none — the pointers move to commits the org has already merged").

Without a ! the line stays optional, and a body that declares a breakage without the marker is judged on its own merits.

The control — arm M in scripts/check-pr-body-diff.mjs. The head's SUBJECT and the body's ## Change classification are read together, and a bang-marked head whose body carries no answer, or a bare none, is a finding that names the cause. The subject is the marker source because it is what the PR title carries: measured over the umbrella's last 24 merged pull requests, the title and the merged commit's subject agree on the MARKER in every one of them — although all 24 differ in wording, the merged subject carrying the pull request's number or the tag-on-merge rewording.

The mirror direction was measured away and is NOT implemented. A body that declares a breakage does NOT imply a !: opencharly/marketplace#602's merged body declares a breaking change while its title carries no marker, so that direction would fire on a legitimate merge. Only the ! ⇒ answer-required direction is mechanized.

The bare-none half of the arm is prophylactic, and says so. No pull request in the org produces that shape today (0 of the 53 measured), so that half of the arm forbids a form the org has not yet written. That is what a rule is for: it has to hold before the first instance, not after it.

What this change deliberately does NOT touch. The org's validator rulebook (action-review/charly.yml and the live org variable) is NOT edited: that is a security-machinery change, and it would need a maintainer sign-off an agent may not post on its own initiative. The relation is checked by the umbrella's OWN gate, which reads this repo's own tree and this repo's own body — no validator spec, no org variable, no T4. The org-wide half — the corpus's own pr_body_lint.py arm — is FILED as opencharly/marketplace#603, because a linter must not enforce an obligation no agent could have read: the rule has to be published (here, then projected into the corpus) before the linter arms it.

file change
AGENTS.md the rulebook's Commit, push, land section gains the gist of the relation and names the arm that checks it
.agents/skills/git-workflow/SKILL.md the umbrella's own skill — the SOURCE the corpus projects — carries the body's side: what ## Change classification must contain under a marker, and why the section's CONTENT is required and not only its NAME
.agents/skills/cutover-policy/SKILL.md the hard-cutover checklist's marker line gains the relation and points at the body's side — the one line that already defined the marker
scripts/check-pr-body-diff.mjs arm M — the subject/marker reader, the answer reader, the bare-none refusal — and the self-test fixtures that prove all three directions
charly.yml the verify task's reconciler step names the new arm, so the report it prints describes the arms that are actually there

How tested

The head this body describes

$ git rev-parse HEAD
cc1ed9a0d487e7c23735c1176c8c2f6c5518a9eb
$ git diff --shortstat origin/main HEAD
 5 files changed, 219 insertions(+), 1 deletion(-)
$ git status --short --untracked-files=no; echo "exit=$?"
exit=0

The change-class gate, on the committed tree this body describes — the diff changes a gate script, the rulebook, the umbrella's own skill, the skill that owns the marker, and the task manifest, so the gate is the umbrella's own verify task, run on the committed tree with the worktree-local, CalVer-stamped build (R9):

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

One R1 anomaly on this leg, and its RCA. The FIRST full charly task verify on this tree came back red — 1 of 46 steps failed: "charly's own nested submodules are at their gitlinks", with the gate's own message "charly's nested submodules are NOT INITIALIZED (no checkout)". Nothing was pushed while it was red. The RCA:

  • Mechanism — the worktree materialized the umbrella's charly submodule (the project load needs it) but not charly's OWN nested level (its six box/* submodules). The gate is deliberately fail-closed on that: a materialized charly without its nested level FAILS, because an absent nested level is invisible to the currency report — the twin reads cur from its remote while nothing local exists.
  • Missed control — the PRELIMINARY gate I ran before the push executed the 42 single-line command: steps of the verify task, and the task actually has 46: my extraction took only the single-line steps, so the multi-line inline step was never executed before the push. The committed gate was right; my shortcut around it was not.
  • Blast radius — one step of one gate on one worktree. The tree itself was never in doubt: the pin check, the checkout audit and the currency report had already passed on it.
  • Root fix — the remedy the gate itself names was run (charly task init, rc=0), which materialized charly's nested level at its gitlinks with no drift; the FULL 46-step task was then re-run on the committed tree. The extraction shortcut is not used again — the gate is run as the task, whole.
$ ./charly/bin/charly task init > /tmp/lcn802-init.log 2>&1; echo "INIT_RC=$?"
INIT_RC=0
$ git -C charly submodule status --recursive
 59792cabc8f1dc5bdda2a52c756da0a3f805fcf4 box/arch (v2026.236.0159-62-g59792ca)
 b6a108d80b27238d29abe76e37dd605722f819da box/cachyos (v2026.236.2135-207-gb6a108d)
 fad84d294640b3bf1a2750ccdbecd27e8bef1ad1 box/debian (v2026.232.1837-46-gfad84d2)
 ee558d4d978d0e328f515a2cc56825955622b496 box/fedora (v2026.236.1714-96-gee558d4)
 44ca9e37e0f50272c861ec82cfa4ea9b0b4673f8 box/omarchy (v2026.294.1828-1-g44ca9e3)
 028fd26e7ccadef3774c98b6d7e2e744d1d60faa box/ubuntu (v2026.238.1348-63-g028fd26)

The reconciler's own self-test on the final tree — the new arm's three cases: a bang-marked head with no answer turns the gate RED, a bang-marked head with a bare none turns it RED, and a bang-marked head with a reasoned none stays GREEN.

$ node scripts/check-pr-body-diff.mjs --self-test > /tmp/lcn802-selftest.log 2>&1; echo "SELFTEST_RC=$?"
SELFTEST_RC=0
$ tail -1 /tmp/lcn802-selftest.log
check-pr-body-diff --self-test: OK (47 arms live)
$ grep -n "bang-marked" /tmp/lcn802-selftest.log
1:  PASS  mutation 'a bang-marked subject whose body carries no breaking-change answer' is caught (gate red)
2:  PASS  mutation 'a bang-marked subject whose body answers with a bare none' is caught (gate red)
32:  PASS  case 'a bang-marked subject whose body answers with none AND the reason' stays green

The R7 proof — the mutant, shown so the mutation is provably APPLIED. The arm's call site is removed from a COPY of the script (/tmp/lcn802-mutant/scripts/), so the tree is untouched; the two RED cases then fail to go red, and the GREEN case stays green:

$ node /tmp/lcn802-mutant/scripts/check-pr-body-diff.mjs --self-test > /tmp/lcn802-mutant/selftest.log 2>&1; echo "MUTANT_RC=$?"
MUTANT_RC=1
$ grep -n "bang-marked" /tmp/lcn802-mutant/selftest.log
1:  FAIL  mutation 'a bang-marked subject whose body carries no breaking-change answer' did NOT go red (expected a 'carries NO breaking-change answer' finding)
2:  FAIL  mutation 'a bang-marked subject whose body answers with a bare none' did NOT go red (expected a 'a bare `none`' finding)
32:  PASS  case 'a bang-marked subject whose body answers with none AND the reason' stays green

The measurements the rule rests on. The org-wide bang-marked pull requests, and the two that already answer. The scan covers the 300 most recently updated merged pull requests org-wide — the org has more merged history than that, so the counts below are a lower bound on the defect, not its size:

$ gh search prs --owner opencharly --merged --limit 300 --json number,title,repository -- 'in:title "!"' > bangsearch.json
$ python3 -I /tmp/lcn802/measure-bang.py     # filters the search's FUZZY match to the real marker, then reads every body
scanned rows: 300  bang-marked: 53
  answer=1 bare=0  opencharly/opencharly#801
  answer=0 bare=0  opencharly/docs#205
  answer=0 bare=0  opencharly/marketplace#601
  answer=0 bare=0  opencharly/layer-container-nesting#17
  answer=0 bare=0  opencharly/docs#200
  answer=0 bare=0  opencharly/docs#198
  answer=0 bare=0  opencharly/marketplace#591
  ... 46 more, every one answer=0 bare=0 ...
  answer=0 bare=0  opencharly/pod-charly-core#35
TOTALS: marked=53 with-an-answer=2 without-an-answer=51 bare-none=0

and the marker source — the umbrella's last 24 merged pull requests, each one's title compared with its merged commit's subject:

$ gh pr list --repo opencharly/opencharly --state merged --limit 24 --json number,title,mergeCommit
$ # for each of them: the merged commit's subject is read and its marker compared with the title's
SAME=24 DIFFERENT=0 of 24

and the mirror direction's counterexample — a body that declares a breaking change with NO marker on its title:

$ gh pr view 602 --repo opencharly/marketplace --json title,body --jq '"TITLE: \(.title)\nBODY-HAS-BREAKING: \(.body | test("Breaking change"))"'
TITLE: chore: refresh the refs list
BODY-HAS-BREAKING: true

The R5 sweep, claim-keyed. The claim is "the relation is stated once per OWNING surface — the rulebook's gist, the skill that carries the body's side, and the one line that already defined the marker — and in no other current surface". The whole-tree inventory, with no filter and no window:

$ git grep -c "Breaking change + rollback" -- . ':(exclude)CHANGELOG/'
.agents/skills/cutover-policy/SKILL.md:1
.agents/skills/git-workflow/SKILL.md:2
AGENTS.md:1
scripts/check-pr-body-diff.mjs:3
scripts/sync-pr-body.sh:1
exit=0
$ git grep -c "Breaking change + rollback" origin/main -- . ':(exclude)CHANGELOG/'
origin/main:scripts/sync-pr-body.sh:1
exit=0

The scripts/sync-pr-body.sh hit is the umbrella's own body TEMPLATE — it has always written the line, and it is the reason the org's key has a shape at all; the three script hits are the arm's own key documentation and its two fixture bodies. The three prose hits are this change's three owning surfaces. The last command is the control: the RULE is in no current surface of origin/main, so the prose above is this change's own and not something the tree already said.

The corpus's published copy of these two skills is a GENERATED projection, and it is byte-identical to the umbrella's own tree at the tag the corpus pins — so the projection of this change rides the corpus's own refresh once the umbrella's tag exists, and is NOT hand-copied:

$ TAG=$(grep -o 'opencharly/opencharly:v[0-9.]*' marketplace/candy/charly-marketplace/charly.yml | head -1 | cut -d: -f2); echo "TAG=$TAG"
TAG=v2026.302.1105
$ strip() { sed '/^<!-- GENERATED by `charly marketplace generate` — DO NOT EDIT\./,+1d' "$1"; }
$ git show "$TAG:.agents/skills/git-workflow/SKILL.md" > /tmp/lcn802/skill-at-tag.md
$ diff <(strip /tmp/lcn802/skill-at-tag.md) <(strip marketplace/internals/skills/git-workflow/SKILL.md); echo "exit=$?"
exit=0
$ git show "$TAG:.agents/skills/cutover-policy/SKILL.md" > /tmp/lcn802/cut-at-tag.md
$ diff <(strip /tmp/lcn802/cut-at-tag.md) <(strip marketplace/internals/skills/cutover-policy/SKILL.md); echo "exit=$?"
exit=0

Rulebook compliance

  • R0 — the umbrella AGENTS.md dispatcher selected /charly-internals:git-workflow (the git/gh workflow, the PR body, the attribution tiers), /charly-internals:cutover-policy (the hard-cutover rule this change extends), /charly-internals:root-cause-analyzer (the the ! subject marker is undefined, and the body's "Breaking change" line has no defined relation to it — a merged changelog carries both signals at once #802 RCA and this round's), /charly-internals:strict-policy (the engineering-discipline rows) and /charly-check:check (the R10 gate by change class). The umbrella's own .agents/skills/git-workflow/SKILL.md and .agents/skills/cutover-policy/SKILL.md are the SOURCEs this change edits; the corpus's copies under marketplace/internals/skills/ are their generated projections, and the rulebook's placement rule (Part II chore: sync dotgithub pin to main #5) says a skill lives with the thing it describes, so the umbrella's own copies are the ones edited here.
  • R1 — the finding this change carries is the ! subject marker is undefined, and the body's "Breaking change" line has no defined relation to it — a merged changelog carries both signals at once #802, and it is fixed here: it lives in the exact surfaces this PR opens, and shipping the arm without the rule would leave a gate enforcing an obligation no agent could have read. The RCA: mechanism — the marker's meaning and the body's breaking-change line were two UNDEFINED surfaces, so a merged changelog could carry both signals with nothing relating them; missed control — the org's linter checks the body's FORM and never reads the subject, and the umbrella's reconciler checked the body's FIDELITY to the diff and read neither; blast radius — every PR in every repo that carries the marker, and the org's only marker signal is read by whoever opens the changelog; measured, 51 of the 53 bang-marked merged pull requests in the scanned org-wide window carry no answer at all; root fix — state the relation in the three surfaces that own its three sides, and give the umbrella's own gate the arm that enforces it. The one finding this change raises that it does NOT fix is FILED (the org-wide body linter does not relate a bang-marked subject to the body's breaking-change answer marketplace#603, below): the org-wide linter has no arm for the relation, and that is a different repo's file. The one anomaly this leg raised on ITSELF — the first full verify run came back red on the nested-submodule step — is RCA'd in How tested and fixed before the push.
  • R2 — one canonical implementation: the relation is READ in exactly one place, the umbrella's reconciler, and its self-test's fixture tree is the single place the arm's cases live. The rule is stated once per OWNING surface and each points at the others — the rulebook's gist names the skill that carries the HOW, and the cutover skill's line names the git-workflow skill's line — so no surface states it twice.
  • R3 — no workaround: no sleep, no retry, no suppression, no fallback branch, and no ad-hoc command. The arm reads git's own subject and the body's own section, and lets the body's absence be the finding.
  • R4 — the product was fixed before the prose: the gate now decides, and the rulebook and the two skills describe what the gate does. The prose was written after the arm, from the arm.
  • R5 — this change retires no name, path, shim, alias or TODO, so no deletion sweep is owed; the claim-keyed sweep above proves the rule has exactly one statement per owning surface, and that the rule is in no current surface of origin/main.
  • R6 — the work ran in its own session worktree (.worktrees/lcn802/opencharly), branched off fresh origin/main (b63ff67); git status was empty before the commit and is empty after it; no history was rewritten, no force-push, no hook bypass, and nothing was pushed to main. The commit was amended only BEFORE the first push — to add the charly.yml step description, to correct the org-wide measurement the commit message quotes, and to correct two comments in the arm that misdescribed chore(pins)!: the umbrella's pins carry the retired-builder-selector cutover #801's changelog (it carries a REASONED none, not a bare one); a pushed commit is never amended.
  • R7 — the coverage fails without the change, and the mutation is shown as applied: with the arm's call site removed, its own RED cases fail to go red while the GREEN case stays green. The changed path was executed live on this tree — the reconciler's own self-test over a real fixture tree — and the rule's measurements were taken against the org's real merged pull requests.
  • R8 — no service boundary is crossed and nothing is mocked: the arm reads this tree's own git and the body file, and the measurements read GitHub's live pull requests.
  • R9 — the binary is the worktree-local, CalVer-stamped build (2026.302.0357), produced by this worktree's own bootstrap; no shared host install was used, and the diff carries no source of the binary.
  • R10 — the change class is a gate script plus the rulebook and the umbrella's own skills, so the gate is the umbrella's own charly task verify — which carries the reconciler's own discriminating self-test among its steps — run on the committed tree: 46 step(s), 0 failed, 0 skipped, exit 0, with 0 warning lines in its output. The diff touches no disposable: true target.
  • Hard Cutover — one rule, one change, no phase deferred: the rule is stated in the three surfaces that own its three sides, and the arm that enforces it lands in the same change. The subject carries no ! marker, and the reason is the relation this PR defines — the marker means this change carries a hard cutover (a surface removed and replaced, in one phase, with no shim), and this change removes no surface and replaces none.
  • Part II chore: sync all submodule pins; spec no longer charly-pinned #6 — the ! subject marker is undefined, and the body's "Breaking change" line has no defined relation to it — a merged changelog carries both signals at once #802 was claimed before the work began, and this PR closes it.
  • Part II fix: escape backticks in umbrella-gates rules template (pi extension parse error) #7 — this body's footer carries the Agent: line before the italic trailer, and every coordination comment on this scope is in the nine-label grammar, with the attribution block LAST in each.

Change classification

A gate change — the umbrella's own reconciler gains an arm, and the rulebook and the umbrella's own skills gain the relation that arm enforces. No product-runtime change, no schema change and no pin change: the diff touches no Go source, no schema and no gitlink.

  • Change class: a script change (the umbrella's own committed gate) plus prose in the rulebook and in the umbrella's own two skills. The prose is not a documentation-only change — it states the rule the new arm enforces, and the arm is the substance of the diff.
  • Diffstat: 5 files changed, 219 insertions(+), 1 deletion(-).
  • Gate run: charly task verify on the committed tree — 46 step(s), 0 failed, 0 skipped, exit 0, zero warning lines — plus the reconciler's own self-test with its mutation proof, and the org-wide measurements the rule rests on.
  • Attribution tier: fully tested and validated — the change-class gate passed on the final tree with zero warnings, and the changed path executed live. The documentation reviewed tier is forbidden here: the diff changes a gate script.
  • Subject marker: no ! on the subject, and the reason is the relation this PR defines — the marker means this change carries a hard cutover, and this change carries none: it removes no surface, replaces no surface and publishes no migration. It DOES change one thing for this repo's consumers, and the line below says what: the umbrella's reconciler gains a check that refuses a bang-marked head whose body carries no breaking-change answer, or a bare none — a push that carried such a subject and no answer used to succeed and now does not. The remedy is to answer the question in the body, or to drop the marker from the subject.
  • Breaking change + rollback: the umbrella's own pre-push reconciler gains the refusal described above — the only consumer-visible change in this diff. Rollback is this commit's revert: the arm, its three self-test cases, the charly.yml step's name and the three prose paragraphs all land together and leave together. No other surface changes behaviour: the org's linter, the org's validator and every other repo's gate are untouched.
  • No rebuild leg applies: the diff touches no source of the binary — the umbrella's binary is built from its charly submodule's checkout, and this diff changes neither that checkout nor any Go source, schema or gitlink.

Filed issues

  • the org-wide body linter does not relate a bang-marked subject to the body's breaking-change answer marketplace#603 — the org-wide half of this fix: the corpus's own marketplace/scripts/pr_body_lint.py has no arm that relates a bang-marked subject to the body's breaking-change answer, so the relation is settled by a reader in every repo except this one. It is separable by construction (a different repo, a different file, a different gate), it is not introduced by this change, and it is filed, not folded in: a linter must not enforce an obligation no agent could have read, so the rule has to be published — here, then projected into the corpus by the corpus's own refresh — before the linter arms it. The issue carries the RCA, the three cases its coverage needs, and the sequencing. It is CLAIMED by this session and is worked only after this PR lands.

Agent: charly · session ses_8efb271d-f2c0-47d3-85e3-2a1e00b11ae0
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)

…he body's answer

The marker was defined in exactly one line of the org's rulebook — the hard-cutover
checklist in `cutover-policy` — and NOTHING related it to the body's
`## Change classification`, so a merged changelog could carry a bang-marked subject and
no answer to "does this change break a consumer?" side by side, with no gate noticing.

This change states the relation in the three places that own it — the umbrella's
`AGENTS.md` (the gist), the `git-workflow` skill (the body's side) and the
`cutover-policy` skill (the marker's side) — and makes it CHECKABLE in the umbrella's
OWN reconciler: `scripts/check-pr-body-diff.mjs` reads the head's subject and the
body's `## Change classification`, and blocks a bang-marked head whose body carries no
answer, or a bare `none`. The umbrella's own `charly.yml` names the new arm in the
verify step's description, so the report the gate prints describes the arms that are
actually there.

RCA. Mechanism: the marker's meaning and the body's breaking-change line were two
UNDEFINED surfaces — the org's linter checks the body's FORM and never reads the
subject, and the umbrella's reconciler checks the body's FIDELITY to the diff and read
neither. Missed control: no rule stated the relation, so no check could exist for it.
Blast radius: every PR in every repo that carries the marker — measured org-wide,
51 of the 53 bang-marked merged PRs in the scanned window carry no breaking-change
answer at all, and not one of the 53 carries a bare `none`. Root fix: state the
relation, and give the umbrella's own gate the arm that enforces it.

The mirror direction was measured away and is NOT implemented: a body that declares a
breakage does not imply a `!` — opencharly/marketplace#602's merged body declares a
breaking change while its title carries no marker, so that direction would fire on a
legitimate merge.

The org-wide half — the corpus's own `pr_body_lint.py` arm — is FILED as
opencharly/marketplace#603: a linter must not enforce an obligation no agent could
have read, so the rule has to be published (here, then projected into the corpus)
before the linter arms it.

Closes #802

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

Copy link
Copy Markdown
Contributor Author

STATUS — #805 (head cc1ed9a0d487e7c23735c1176c8c2f6c5518a9eb)

Done. The !-marker relation is stated in the three surfaces that own it and made checkable in the umbrella's own gate:

surface what it now says
AGENTS.md (Commit, push, land) the marker is a HARD-CUTOVER marker and the body's breaking-change answer is REQUIRED under it
.agents/skills/git-workflow/SKILL.md the body's side: what the answer is, and why a bare none is not an answer
.agents/skills/cutover-policy/SKILL.md the marker's side: the relation, next to the line that already defines the marker
scripts/check-pr-body-diff.mjs arm M: a bang-marked head whose body carries no answer — or a bare none — is RED
charly.yml the verify step's description names the two new RED cases

The R10 gate, on this exact head. ./charly/bin/charly task verify → task verify: 46 step(s), 0 failed, 0 skipped, exit 0, zero warning lines (log: /tmp/lcn802-verify-full3.log). The reconciler's own self-test is green (OK (47 arms live)), and the R7 mutant proof holds: removing the arm's call site turns both RED cases green while the GREEN case stays green.

One R1 anomaly on this leg, RCA'd in the body. The FIRST full verify came back red (1 of 46) — the worktree had charly materialized non-recursively, so the gate's nested-submodule step failed closed. Missed control: my preliminary gate script ran only the 42 single-line command: steps of a 46-step task. Root fix: ./charly/bin/charly task init (rc=0), and the gate is run as the task, whole.

What the org-wide measurement says. Of the 53 bang-marked merged PRs in the scanned window, 51 carry no breaking-change answer at all; the two that do answer with a REASONED none; not one of the 53 carries a bare none — so the bare-none branch of arm M is honestly labelled prophylactic. The mirror direction (a declared breakage ⇒ a !) was measured away and is NOT implemented: opencharly/marketplace#602's merged body declares a breaking change with no marker in its title.

Next. The validator runs now; I will read its full report and fix every finding in ONE commit per round. The org-wide linter arm is FILED as opencharly/marketplace#603 — a linter must not enforce an obligation no agent could have read, so the rule is published here first and projected into the corpus afterwards.

Agent: charly · session ses_8efb271d-f2c0-47d3-85e3-2a1e00b11ae0
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

What the diff does

The change adds a new rule relating the Conventional Commits ! subject marker to the body's ## Change classification answer, and backs it with a deterministic gate arm. Five files, matching the body's claim:

  • AGENTS.md (+15) — rulebook gist of the relation.
  • .agents/skills/git-workflow/SKILL.md (+12) — the body's side of the relation.
  • .agents/skills/cutover-policy/SKILL.md (+2) — the marker line gains the relation.
  • scripts/check-pr-body-diff.mjs (+189) — arm M: subject reader, answer reader, bare-none refusal, three self-test cases.
  • charly.yml (+1/−1) — the verify step's description names the new cases.

Verification against the body

  • Diffstat honesty. Insertions 2+12+15+1+189 = 219; deletions 1. The body's "5 files changed, 219 insertions(+), 1 deletion(-)" is exactly reproduced. ✔
  • R5 sweep consistency. The body's git grep -c "Breaking change + rollback" claims (git-workflow/SKILL.md:2, AGENTS.md:1, cutover-policy/SKILL.md:1, check-pr-body-diff.mjs:3) are each borne out by the added text: two hits in git-workflow (the bullet key + the intro sentence), one each in AGENTS.md and cutover-policy, and three in the mjs (key documentation + two fixture bodies). ✔
  • Claim ↔ implementation. The body states only the ! ⇒ answer-required direction is mechanized and the mirror direction is deliberately omitted; checkMarkerRelation implements exactly that (no-marker ⇒ ok, marker+no-answer ⇒ fail, marker+bare-none ⇒ fail, marker+reasoned ⇒ ok). The "prophylactic" framing of the bare-none half is stated both in the body and in the code comment. ✔
  • Scope. The org validator rulebook (action-review/charly.yml) and org variable are untouched, exactly as the body promises; the org-wide linter half is filed as marketplace#603, not folded in. ✔
  • Tests. Three self-test cases (two red, one green) exercise the arm; the body's mutation proof (call site removed ⇒ the two red cases stop going red, the green stays green) is the discriminating evidence that the coverage fails without the change. ✔

Code soundness spot-checks

  • subjectCarriesMarker reads only the header before the first colon, so the PR's own subject (feat(rules): state the ! subject marker …) and prose colons like FAIL: marker are correctly not read as markers. No false positive on this PR's own body.
  • noneAnswer treats none, none., and none — reason as bare / bare / reasoned respectively, consistent with the stated rule ("a bare none is not an answer").
  • breakingChangeAnswer tolerates bold, bullet, and unbolded forms of the key and strips emphasis before the none check, so the value extraction is robust.
  • All new functions are referenced; no dead code or leftover legacy path.
  • No secrets, no injection surface, no dependency or privilege change — the arm reads this tree's own git and the body file.

Comments

There are no comments on this PR (0 comment threads). No maintainer/operator sign-off is present, and none is required for this scope; the change stands on its own reproduced evidence (self-test, mutation proof, R5 sweep, verify run). No stale claims to dismiss.

Residual notes (non-blocking)

  • The prose additions assert the reconciler "runs in the pre-push gate (hooks/pre-push)"; this is consistent with the existing pre-push body gate referenced in charly.yml and is not contradicted anywhere in the diff.
  • BREAKING CHANGE: footer markers are out of scope by the body's own stated design; that is a deliberate boundary, not an omission.

The body's claims are internally consistent and reproduced by the diff; the gate logic is correct and discriminating; scope is coherent and complete.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 29, 2026 13:37
@github-actions
github-actions Bot merged commit 935ce73 into main Oct 29, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 29, 2026
github-actions Bot pushed a commit to opencharly/marketplace that referenced this pull request Oct 29, 2026
…e the corpus (#604) (#605)

The corpus's ref for `opencharly/opencharly` moves from the tag of the umbrella's #801 to
`v2026.302.1338`, the tag opencharly/opencharly#805 minted, and the regenerated corpus
ships in the SAME commit — the refs list is the ONE generation input, and this repo's
generation workflow fails closed on any drift.

What the advance carries: the umbrella's #805 stated the relation between the Conventional
Commits `!` subject marker and the body's breaking-change answer, and made it checkable in
the umbrella's own gate. The corpus was publishing the marker's MEANING (one line in
`cutover-policy`) and the body's answer (in `git-workflow`) with NOTHING relating them, so
every consumer could read a merged changelog carrying a bang-marked subject beside a body
with no answer, with no rule saying that is a defect. This advance republishes the rule's
two halves — `cutover-policy` (the marker's side) and `git-workflow` (the body's side) —
and those two files are the ONLY projections that change.

The advance from #788's tag to the one before this was PROJECTION-NEUTRAL: the range
carried the umbrella's own six PRs (#790, #791, #794, #796, #798, #801 — pin bumps, gate
fixes and changelogs), which touch no `.agents/` file. So the projection had not moved
since #788's advance, and the corpus was current for its pin until this one.

RCA. Mechanism: the corpus's pin advanced past a tag that changed the umbrella's authored
`.agents/` tree while the corpus's published projection of that tree stayed at the older
one — the pin moved, the content did not follow, and nothing in this repo's gate can see a
PIN that is current for its own refs list while the CONTENT it names is stale. Missed
control: the corpus's currency control reads the PIN, and the umbrella's own `git-workflow`
skill says the pin is what makes the corpus current, so no gate compared the PUBLISHED
bytes with the OWNER's bytes at the pinned tag. Blast radius: every consumer of the corpus
read guidance that predates the owner's own text — measured here, the two published
`internals` skills were missing the `!`-marker relation while the umbrella had stated it
since its #805 merge. Root fix: the pin advances to the tag that carries the change, and
this PR proves the projection's provenance — each published file is the owner's authored
file at the pinned tag, byte for byte.

The org-wide half — the corpus's own `pr_body_lint.py` arm that would carry the relation to
every repo's PR bodies — is FILED as #603: a linter must not enforce
an obligation no agent could have read, so the rule is published into the corpus first.

Closes #604

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

Co-authored-by: Andreas Trawoeger <[email protected]>
github-actions Bot pushed a commit to opencharly/marketplace that referenced this pull request Oct 29, 2026
…nd reads the org's own key (#607) (#608)

* fix(lint)!: the marker rule refuses an EMPTY answer, skips visibly, and reads the org's own key (#607)

The `bang` arm had three edges, each reproduced on the merged head
(e06c5a5, tag v2026.302.1609) and filed as
#607. All three are fixed here.

An answer line whose value is EMPTY was accepted: the merged changelog then
holds a cutover marker beside an answer that says nothing, which a reader
cannot resolve any better than no answer at all. The rule now refuses the
empty value, and refuses it as SILENCE — its own finding names the empty
value — rather than as a `none`, because the two are different defects.

The rule's inapplicable skip was SILENT: it prints a NOTICE when the subject
cannot be READ, and printed nothing when it was never GIVEN a repository to
read one from, so a caller that forgot `--repo` could not tell "the body is
fine" from "the rule never looked". The rule's own docstring says it "SKIPS,
visibly", which was true of the failed read and too broad of the inapplicable
case. It now prints a NOTICE for the inapplicable case too.

The key anchor was LOOSE: it matched `breaking change\b` and took the value
after the first colon, so a line opening `**Breaking change policy:**` read
as an answer. The anchor is now the org's WHOLE published key,
`**Breaking change + rollback:**`, so a different key is not an answer.

The rule's HOME — the umbrella's AGENTS.md and its git-workflow and
cutover-policy skills (opencharly/opencharly#805) — already states all three
shapes. This change arms a published rule rather than inventing one, which is
the org's own order: publish, then arm.

Closes #607

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

* fix(lint)!: the skip NOTICE names the missing argument, and the `--repo`-only case is covered (#608)

The validator's non-blocking nit read the NOTICE's wording as imprecise: it
says "no --repo was given", and the nit observed that the branch also fires
when `--repo` is present and `--head` is absent.

It does not. The head is DERIVED from the repository when `--head` is absent
(pr_body_lint.py, the derivation above the rule), so `repo and head` holds
whenever `--repo` is given, and the branch is reached only when `--repo` is
absent. The wording is exact today.

It is now exact BY CONSTRUCTION as well: the NOTICE names the argument the
branch's own condition found missing, so it cannot go stale if the head's
derivation ever changes. And the case the nit says is uncovered IS covered: a
new test gives `--repo` and no `--head` and asserts that the rule RAN — the
bang finding fires and no skip is announced.

The subject keeps the `!` marker on purpose: the bang rule applies to a head
whose subject carries it, so a head without the marker would silently stop
being checked, while this PR's published changelog still declares the
cutover.

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

* fix(lint)!: the head derivation fails GRACEFULLY, so the NOTICE's `--head` arm is live, and every test's temp dir is collected (#608)

The validator's PASS named two minors, and the first one was a real defect in
this change's OWN claim: the NOTICE promises to name the argument its own
condition found missing, and the `--head` arm of that promise was DEAD CODE.

The head derivation called `git rev-parse HEAD` with `check=True`, so a
repository whose HEAD cannot be read — a path that is not a git repository, or
a repository with an UNBORN head — raised and killed the linter with a Python
traceback. The only way to reach the NOTICE's `--head` arm with a repository
given was the very call that crashed first. Round 2 added a test for `--repo`
WITHOUT `--head` — the derivation SUCCEEDS path — and none for `--repo` with a
head that cannot be READ, so the arm it added was never exercised and nothing
failed.

The derivation now FAILS LOUDLY BUT GRACEFULLY: a failed rev-parse leaves the
head unset instead of raising, so the NOTICE is reached and names `--head`,
which is the argument that is genuinely missing. A new test exercises exactly
that case — an unborn HEAD — and it is RED against the pre-round-3 linter: it
ERRORS on the very traceback this commit removes.

The branch's own comment said the opposite of what the code now does — it
claimed the NOTICE was reached "only when `--repo` is absent", which round 2
believed and round 3 made false. A comment that contradicts the code beside it
is a doc divergence, so the comment is corrected in this same commit: the branch
is reached two ways, and each names the argument it really lacked.

The validator's second minor — the test helpers' `tempfile.mkdtemp` without
cleanup — is FIXED rather than filed. Every temp directory now goes through one
module-level helper that registers its removal with the test case, so all five
sites are collected when the test ends: the two that pre-date this change and
the three this change adds. The file's convention is one mechanism now, not
five copies of the same line.

The `!` marker stays on the subject: the linter's behaviour changes with no
shim, no warn-mode and no compatibility branch — the crash path is gone, and
the rule set it carries is the cutover this pull request lands.

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
github-actions Bot pushed a commit to opencharly/docs that referenced this pull request Oct 29, 2026
… the armed `!` marker rule (#209) (#210)

The corpus's served head moves to the commit that carries the marker rule's ARMED
linter — the corpus's own PR opencharly/marketplace#607 -> #608, tagged
v2026.302.1755. The corpus's diff between this repo's recorded pin and the served
head carries two AUTHORED bodies: the umbrella's own general-guidance skills
(cutover-policy and git-workflow), republished from the umbrella's tag
v2026.302.1338 (opencharly/opencharly#805). Those bodies project into this site's
recipes/internals/** pages, and those pages are regenerated here.

The pin follows the SERVED HEAD, not the tag: the corpus's tag-on-merge workflow
writes its CHANGELOG after the tag, so the tag names the squash one commit below
the head its main serves.

Closes #209

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

Labels

None yet

Projects

None yet

2 participants