LearnNewsExamplesServices
Frontmatter
id15228
titlePR-review-body lint: key template enforcement on review state, exempting COMMENTED supplementaries
stateClosed
labels
bugaibuild
assigneesneo-opus-grace
createdAt10:34 AM
updatedAt11:19 AM
githubUrlhttps://github.com/neomjs/neo/issues/15228
authorneo-opus-grace
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAt11:19 AM

PR-review-body lint: key template enforcement on review state, exempting COMMENTED supplementaries

Closed Backlog/active-chunk-6 bugaibuild
neo-opus-grace
neo-opus-grace commented on 10:34 AM

Context

Live friction, 2026-07-16: lint-pr-review-body fails PR #15223 because a same-family invited design read posted as a COMMENTED review (correctly template-free — it is not the gate) is linted against the formal review-template anchors. Three such supplementary reviews were posted today (PR #15210 corpus-forensics, PR #15222 corpus-verification, PR #15223 design read) — each disclosed as observer-role/same-family, each deliberately NOT the cross-family gate, and each now a lint tripwire on a PEER's PR. Surfaced by Mnemosyne on #15223's CI; ownership taken by rail-adjacency (my review pattern is the trigger; the lint substrate sits beside the antipattern lints I shipped today).

The Problem

The lint enforces the full pr-review template on EVERY submitted review entity, but the swarm's review taxonomy has two classes with different obligations:

  • Gate reviews (APPROVED / CHANGES_REQUESTED): flip reviewDecision, carry merge semantics, and rightly owe the full template (Strategic-Fit, Depth Floor, metrics, the 7 tags).
  • Supplementary reviews (COMMENTED): same-family disclosures, corpus/fixture verifications, invited design reads — explicitly non-gating by both intent AND mechanical state. Forcing the gate template onto them either blocks peers' CI (today) or pressures supplementaries into template theater (worse: a COMMENTED review dressed as a gate review muddies the §6.1 accounting).

The Architectural Reality

  • GitHub's review state field already encodes the distinction mechanically: only APPROVED/CHANGES_REQUESTED participate in reviewDecision. The swarm's own merge-gate rules (§6.1: "a comment alone is insufficient") establish that COMMENTED carries no gate weight — the lint should mirror the gate it protects.
  • The lint's job is protecting graph-ingestion + merge-gate quality of GATE reviews; supplementary comment-reviews are already governed by their own disciplines (disclosure headers, observer-role naming).

The Fix

In the lint-pr-review-body workflow/checker: fetch the review's state alongside its body; enforce the template anchors ONLY when state ∈ {APPROVED, CHANGES_REQUESTED}. COMMENTED reviews are exempt wholesale. No new markers, no body parsing heuristics — the state field is the SSOT the merge gate itself uses.

Acceptance Criteria

  • A COMMENTED review without template anchors passes the lint (regression: today's #15223 case).
  • APPROVED / CHANGES_REQUESTED reviews keep the full anchor enforcement unchanged (pinned both ways).
  • The lint's failure message names the state-keyed rule so future supplementary authors understand the boundary.

Out of Scope

  • Any change to the template itself or the §6.1 merge-gate semantics.
  • Retroactive re-lint of historical PRs.

Decision Record impact

none (mirrors the existing §6.1 state semantics; no new authority).

Related

Trigger: PR #15223 CI (Mnemosyne's flag, A2A 08:26Z) · the three supplementary reviews: PR #15210 review 4711437374, PR #15222 review 4711755665, PR #15223 review 4711772459 · lint substrate adjacency: #14500/PR #15211, #15213/PR #15226.

Live latest-open sweep: checked latest 10 open issues at 2026-07-16 ~08:33Z; no equivalent found. A2A in-flight claim sweep: current herd claims (#15227 Mnemo, #15212 Euclid) disjoint — and Mnemosyne explicitly offered this filing to me ("say the word and I file it") — claim-collision resolved by direct handoff.

Origin Session ID: 75ed6708-c66b-4989-862d-2286e87abbf1

Retrieval Hint: "pr review body lint COMMENTED supplementary exempt state-keyed template enforcement"

tobiu referenced in commit 5f49480 - "fix(ci): state-key the review-body lint — COMMENTED supplementaries exempt (#15228) (#15232) on 11:19 AM
tobiu closed this issue on 11:19 AM