Skip to content

pm: check a contract review record against its template when it is written, so off-template verdict phrasing is refused at authoring #38900

Todo

Description

@objectstack-fleet

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

Problem

The weekly governed-merge audit (card #38863, PR #38896) found 8 contract review records whose verdict lines are off the template the reviewer is handed, so the queue guard's reader cannot read them:

  • must-fix 0 · should-fix 0 instead of No must-fix, no should-fix.
  • S1 closed. and F1 (must-fix on SHA): fixed. instead of S1: closed

The template already spells both forms (scripts/pm/record-recognisers.mjs, the reviewer template block, lines 2555–2559 on 197e3ff3b). Today the gap shows only after the fact: the queue refuses a seat landing on such a record, and the audit lists it as a breach.

Decision already taken

Do not widen the reader. The audit and the queue read records through one reader, and the queue's acceptance is a contract we own on both ends (AGENTS.md Prime Directive #12: reject off-spec input at authoring, never accept a dialect). PR #38896's body, section "Recommendation", gives the reasoning; its L1 asked the seat to file this card.

Ask

When a ## Contract review record is written through the relay (post-stamped.mjs, and any other write path that posts such a record), run the same reader the queue guard uses on the body and refuse it, with the template line it should have used, when its verdict lines do not read. The reviewer then fixes the record while it can still be fixed.

Done when

  • Posting a record with any of the three phrasings above is refused at write time, naming the template form.
  • A record on the template is accepted unchanged.
  • No recogniser in record-recognisers.mjs accepts a new phrasing.

Scope note

Touches scripts/pm/** write paths; if it touches record-recognisers.mjs it is Tier H (always-H instrument). Priority p3: after PR #38896 the 12 #34178 rows clear on the enqueue leg, so this matters only for seat landings, where the queue already refuses the phrasing.

Refs #38863, #34178, PR #38896.

Activity

  1. added
    pm:queue
    domain:devx
    on Dec 1, 2026
  2. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Triage: first-touch · lane grade kept: area:fleet · Task · p3 · pm:queue.

  3. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaYXxVJPdu1E6vEfMT

    Claim: PM loop round 1 · 2026-12-03T14:37Z
    Session: session_01Utp6CaYXxVJPdu1E6vEfMT
    Thread session: session_01Utp6CZCDYrt9UpBcarqEtm
    Account: os-bill
    Branch: claude/project-thread-jufmt7
    Worktree: objectstack-issue-38900
    Domain: domain:devx
    Seat: repo:objectstack@os-bill
    Area: fleet-1203
    File surface: scripts/pm/post-stamped.mjs, scripts/pm/label-write.mjs. scripts/pm/record-recognisers.mjs is imported, not edited. Stop on any other breach and explain in the report.
    Container & model: M, mode:thread, model: default (dispatch-gates --tier at 850d240b: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7309163618
    Premise: holds — PR #38896 merged the audit this card follows; no write path refuses an off-template record today (the thread re-reads before coding).
    Pre-claim lane: domain:skills file ownership (scripts/pm/** and .claude/** fleet tooling; governed, the zone hands the PR to the seat).
    Pre-claim deps: every Blocked-by: the card or its triage comments name is merged (read on the unlock comment).
    Prior rulings read: the card's own decision, verbatim: "Do not widen the reader." (AGENTS.md Prime Directive #12, as the card cites it; PR #38896 body, section "Recommendation").
    Serial constraints cleared: check-handover.mjs --inflight in this round → no foreign claim on these files. Same zone: the #38588 fold edits two printed strings in post-stamped.mjs, and #38874 (not yet claimed) will edit usage strings in label-write.mjs; overlap-check.mjs before every push.

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 3, 2026
  5. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Claim released, back to the queue · 2026-12-03T14:57Z. The maintainer paused all p3 work, then said in the seat's project thread: 「还没开工的 p3 是不是应该释放认领放回队列了。」 (release the claims of p3 cards whose work has not started, and put them back in the queue). This card's work had not started. No commit was pushed for this card, so nothing is lost. pm:dispatched leaves for pm:queue and the assignee is removed in this stroke; the next seat claims it fresh.

  6. added
    pm:queue
    and removed
    pm:dispatched
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:fleetdomain:devxpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions