Skip to content

pm: the queue guard's Tier S record leg checks a same-head record exists but never reads its verdict #33541

Closed

Description

@objectstack-fleet

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Filing gate: ① (a follow-up owed by work in flight). Contract review 6886243839 of PR #33531 (card #33501) observed, outside that diff, that scripts/pm/check-governed-queue-guard.mjs passes a Tier S PR when a same-head contract-review record exists and where it came from, and never reads the record's VERDICT. Its own self-test pins that a FAIL record still clears. AGENTS.md Prime Directive 14 says the seat lands Tier S on "a PASS verdict", so the gate is weaker than the rule it enforces. PR #33531 is asked to read the verdict for its new low-risk arm; this card covers every other Tier S path (.claude/**, scripts/pm/** and the rest of the register's S rows).

What lands

  1. The record leg parses the record's final VERDICT: line and passes only on PASS. A FAIL, a missing verdict line or two verdict lines is refused, with the record's comment id in the reason.
  2. If several same-head records exist, the latest one decides.
  3. Flip the self-test row that clears a FAIL record, and add rows for no verdict and for a FAIL after a PASS.

Scope

scripts/pm/**. Tier S. skip-changeset. Clause-②: no.

Activity

  1. added
    finding
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:skills · p2 · 2026-11-15T00:48Z

    ⛔ Not a claim.

    The queue guard's Tier S leg passes a FAIL record, so the gate is weaker than AGENTS.md Prime Directive 14. Tooling, p2.

  3. added
    domain:skills
    pm:queue
    priority:p2
    tooling
    on Nov 15, 2026
  4. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

    Added scope: bind the record to its author (item D of the delegation evaluation)

    A Fable evaluation of the low-risk Tier H delegation (write-up pm-orders/review/33531-delegation-review.md, read on PR #33531 head e2b1cabc) found that locateReviewOfRecord in scripts/pm/record-recognisers.mjs reads the comment body only: header, Head-sha:, Reviewed-by:, Served-tier: and (on the arm) VERDICT: PASS. It never reads who posted the comment, so on a public repository any commenter can post a body the guard accepts. Since this card already reworks the same leg (the Tier S record leg reads no verdict), carry the author binding here: the guard accepts a record only from the fleet relay bot or an organisation member, and an unreadable author refuses. Pin both directions in the queue battery. Added 2026-11-15T02:20Z.

  5. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

    Claim: PM loop round 8
    Session: session_01FEkQ5pjSPT7ui2EUcunaVb
    Account: os-project-manager
    Branch: claude/project-thread-qy6xre
    Thread session: session_01FEkQ5n5ZXLzdMDs4q4mC6r
    Worktree: objectstack-issue-33541
    Domain: domain:skills
    Seat: domain:skills#1
    File surface: scripts/pm/check-governed-queue-guard.mjs, scripts/pm/record-recognisers.mjs (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: opus (default; dispatch-gates --tier on the real diff decides), effort default
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — PM tooling follow-up of card #33501 (PR #33531, merged)
    Thread-read: none
    Premise: holds (Blocked-by #33501 cleared: PR #33531 merged)
    Serial constraints: one card per file at a time. This round runs #33540 (relay), #33541 (queue guard + record recognisers) and #33603 (merges register + verifier) on disjoint files; #33539, #33578 (merges register) wait for #33603; #33601, #33604, #33620 (queue guard) wait for #33541.
    Order: /mnt/project-files/pm-orders/skills/order-33541.md (project file). Ruling-ref: Leehom 「后续只处理 p1 p2」 (2026-11-15T05:05Z). Claimed 2026-11-15T05:59Z.

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 15, 2026
  7. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5n5ZXLzdMDs4q4mC6r

    os-dev-report
    {
    "issue": 33541,
    "status": "done",
    "branch": "claude/project-thread-qy6xre",
    "pr": "#33687",
    "session": "session_01FEkQ5n5ZXLzdMDs4q4mC6r",
    "premise_still_valid": true,
    "summary": "Every Tier S entry the queue guard's record leg reads now lands only on a same-head record with exactly one VERDICT: line reading PASS (recordPassVerdict); FAIL, none or two refuse as not-pass naming the comment id, and the locator's newest same-head record decides. The count is contractReviewVerdictLines, added beside contractReviewVerdictOf in check-half-states.mjs on the same regex (file surface widened by the seat, option A, 06:09Z), re-exported by record-recognisers.mjs. Comments are read only when user.login is FLEET_BOT_LOGIN (declared in check-handover.mjs, loaded lazily as RECOGNISER_SOURCES.author) or in GOVERNED_APPROVERS; other rows are dropped in runGuard right after the fetch, so they are ignored (carry chain included) and an absent-record refusal names them as information. This narrows card comment 6887864752's 'org member' reading to the declared set, on the order and the seat's word; a record posted directly by os-project-manager is ignored.",
    "tests": "head 3f5a082: node scripts/pm/check-governed-queue-guard.mjs --self-test -> '506 cases pass' (488 on main; 18 new, 4 flipped incl. the FAIL-record-stands row); node scripts/pm/record-recognisers.mjs --self-test -> '388 cases pass' (#18701 battery floor 17 -> 19: template record's one VERDICT line read PASS by the guard; same record by an untrusted author refused); node scripts/pm/check-half-states.mjs --self-test -> '5257 cases pass' (one new H43 row for contractReviewVerdictLines); node scripts/pm/check-owed-reviews.mjs --self-test -> '84 cases pass'. Import probe: the first draft's module-scope import of check-handover.mjs from record-recognisers.mjs made check-owed-reviews.mjs --help fail (TDZ ReferenceError in fleet-write/dispatch.mjs; exit 0 on main), hence the lazy load. No ablation: scripts are exempt per os-dev.md.",
    "gates": "local: dispatch-gates --commands --repo objectstack-ai/objectstack derived 49 commands; all 49 ran, each exit 0 captured before any pipe; dispatch-gates --ran: '49 derived famil(ies) accounted for — 49 run, 0 NOT-MEASURED'. Record: project file pm-orders/skills/33541-gates-ran.txt. dispatch-gates --tier: no path-derived mandate. check-governed-merges --branch: 0 of 3 paths hit the register, NOT governed (card body says Tier S; noted in Acceptance notes). Size 271 lines. CI check-runs on PR #33687: in_progress at report time (not waited on).",
    "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
    "mcp_calls": "3 — mcp__github__issue_read x3 (get, get_comments x2), reads only",
    "api_writes": "2 — relay pr_create (fleet-write run 43685702877, PR #33687 with label skip-changeset), post-stamped.mjs os-dev-report comment on #33541; plus git push (not REST)",
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": [
    "carrier: none · scripts/pm/check-owed-reviews.mjs spells its own VERDICT_LINE regex for a display column (verdictOf, 'a display, never a judgment') and reads no author; it decides nothing, so it is left as it is (PR Acceptance notes)."
    ],
    "deviations": [
    "File surface widened to scripts/pm/check-half-states.mjs by the seat (option A, seat thread 2026-11-15T06:09Z).",
    "Standing-lines conflict: the PR body ends with the session-URL footer and carries the signature as a prose line under Fixes, with no trailing signed HTML comment, because os-dev.md bans HTML comments other than the attribution line.",
    "Harness attribution asked for a model-named Co-Authored-By; the commit carries the model-free pair plus Claude-Session line, as check:commit-card-trailers requires."
    ]
    }


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

domain:skillsfindingpm:dispatchedpriority:p2tooling

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions