Repository navigation
feat(rules): state the ! subject marker and check its relation to the body's answer - #805
Conversation
…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)
|
STATUS — #805 (head Done. The
The R10 gate, on this exact head. One R1 anomaly on this leg, RCA'd in the body. The FIRST full verify came back red (1 of 46) — the worktree had 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 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: |
Review — PASSWhat the diff doesThe change adds a new rule relating the Conventional Commits
Verification against the body
Code soundness spot-checks
CommentsThere 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 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. |
…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]>
…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)
… 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)
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 incutover-policy— and neitherAGENTS.mdnor thegit-workflowskill'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 REASONEDnone, and not one of the 53 carries a barenone. The issue is #802.The rule — one relation, three sides, each stated by the surface that owns it.
!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).## Change classificationanswers what breaks for THIS repo's consumers, and how to roll it back (/charly-internals:git-workflow).!the body MUST carry a**Breaking change + rollback:**line, and a barenoneis 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 classificationare read together, and a bang-marked head whose body carries no answer, or a barenone, 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-
nonehalf 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.ymland 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 ownpr_body_lint.pyarm — 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.AGENTS.md.agents/skills/git-workflow/SKILL.md## Change classificationmust contain under a marker, and why the section's CONTENT is required and not only its NAME.agents/skills/cutover-policy/SKILL.mdscripts/check-pr-body-diff.mjsnonerefusal — and the self-test fixtures that prove all three directionscharly.ymlHow tested
The head this body describes
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
verifytask, run on the committed tree with the worktree-local, CalVer-stamped build (R9):One R1 anomaly on this leg, and its RCA. The FIRST full
charly task verifyon 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:charlysubmodule (the project load needs it) but notcharly's OWN nested level (its sixbox/*submodules). The gate is deliberately fail-closed on that: a materializedcharlywithout its nested level FAILS, because an absent nested level is invisible to the currency report — the twin readscurfrom its remote while nothing local exists.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.charly task init, rc=0), which materializedcharly'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.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
noneturns it RED, and a bang-marked head with a reasonednonestays 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: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:
and the marker source — the umbrella's last 24 merged pull requests, each one's title compared with its merged commit's subject:
and the mirror direction's counterexample — a body that declares a breaking change with NO marker on its title:
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:
The
scripts/sync-pr-body.shhit 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 oforigin/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:
Rulebook compliance
AGENTS.mddispatcher selected/charly-internals:git-workflow(the git/ghworkflow, 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.mdand.agents/skills/cutover-policy/SKILL.mdare the SOURCEs this change edits; the corpus's copies undermarketplace/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.!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.origin/main..worktrees/lcn802/opencharly), branched off freshorigin/main(b63ff67);git statuswas empty before the commit and is empty after it; no history was rewritten, no force-push, no hook bypass, and nothing was pushed tomain. The commit was amended only BEFORE the first push — to add thecharly.ymlstep 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 REASONEDnone, not a bare one); a pushed commit is never amended.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.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 nodisposable: truetarget.!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.!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.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.
charly task verifyon 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.fully tested and validated— the change-class gate passed on the final tree with zero warnings, and the changed path executed live. Thedocumentation reviewedtier is forbidden here: the diff changes a gate script.!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 barenone— 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.charly.ymlstep'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.charlysubmodule's checkout, and this diff changes neither that checkout nor any Go source, schema or gitlink.Filed issues
marketplace/scripts/pr_body_lint.pyhas 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-2a1e00b11ae0Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)