Skip to content

pm: the governed-merges audit reads unread arm inputs as NOT MEASURED and a dismissed approval as it stood, and the verifier refuses skill and connector hand-offs - #33762

Merged
os-zhuang merged 1 commit into
mainfrom
claude/project-thread-qz1fgc
Nov 15, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/project-thread-qz1fgc

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #33729

Clause-②: no
Metadata-protocol: none

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

维护者速读

What changes

Card #33729's checklist, item by item. Every reading still goes through the queue guard's exports (ARM_READER_EXPORTS, now with ignoredAuthorLines); no second parser.

Item Verdict Where
N3 SUB_AGENT_TOOLS is an exact-name list Fixed. handsWorkToAnotherAgent adds SUB_AGENT_TOOL_SHAPES: Skill (a skill can fork into a sub-agent and reads the same in the file either way), and a connector tool mcp__SERVER__TOOL whose tool name starts with send, message, start, fire, spawn, dispatch or delegate, or names a trigger. The mcp__SERVER__TOOL spelling was measured in a session transcript (mcp__hearthbot__message_thread). Fail closed: a read-only connector tool that fits the shape refuses too. verify-review-tier.mjs, 3 pin rows
N5 a git-side read failing in the arm folds into tier-h Fixed. readArmLanding hands the arm a git reader that records every throw; when the arm reads H with a recorded throw, or with the fork predicate not measured, the landing is not-measured with the failed read and the arm's reasons (armReadsNotMeasured). One exception, read rather than assumed: git show SHA:PATH throws for a changeset the commit deleted, and the arm reads that H by itself; an empty git ls-tree of that path at that commit proves the deletion, so it stays a measured Tier H. The Tier H cell now says how many reasons it did not print ((+N more)). check-governed-merges.mjs, 5 pin rows
N6 baseRef is the first parent, not the merge group's base Closed with a reason, no code change. baseRef is read only by the carry test (regenCarry in record-recognisers.mjs), through git merge-base BASE HEAD. Between the merge group's base and the landed commit's first parent lie only the squash commits of entries ahead in the same group. A head that contains one of those was pushed after that entry landed, which takes it out of the queue, so its next group's base already holds it. Either way git merge-base of the two bases with a queued head names the same commit, and the carry reads the same. The reasoning is in readArmLanding's jsdoc. jsdoc
N8 an approval dismissed after the landing no longer clears Fixed. reviewsAsLanded puts a review that now reads DISMISSED back in the state the timeline's review_dismissed event names (dismissed_review.state, matched by dismissed_review.review_id) when that event is dated at or after the landing. A dismissal before the landing, with no event, or of a non-approval clears nothing. The event's shape is GitHub's documented timeline shape; no live dismissal was found to measure it on, and a shape that does not match leaves the review DISMISSED (toward BREACH, as today). check-governed-merges.mjs, 2 pin rows
N9 the edited-after clause rides only absent Fixed. It is appended to every BREACH reason (absent, below-tier, unsigned, not-pass). 1 pin row
N10 the clause names any trusted comment edited after the landing; "A, B was edited" Fixed with the guard's own reader, no new recogniser: the record leg runs once more, read-only, on the threads with the edited rows put back (guard.recordVerdict on unedited), and the clause names the edited row only when that run would have read it as the record. So a claim or report edited after the merge is never named, and the clause names one comment. 2 pin rows
N11 no row for unavailable recognisers or a set without trustedAuthors; an untrusted PASS reads like no record Fixed. A recogniser set with no trusted-author list (null or empty) is now not-measured before any thread is read, where it read BREACH (every row dropped); both readings fail closed, and a missing reading is NOT MEASURED. The comments the author binding dropped (those existing at the landing) are counted on pass and breach rows in the guard's own words (ignoredAuthorLines). 3 pin rows

Direction check against the order ("nothing here may make the audit read pass where it reads BREACH or NOT MEASURED today unless the item says so"): no state moves to pass. N5 and N11 move tier-h and breach to not-measured. N8 moves a breach to cleared only for an authorized approval dismissed after the landing, which is what N8 asks.

Tests

Self-tests on head 9177c4e
  • node scripts/pm/check-governed-merges.mjs --self-test: exit 0, ✓ check-governed-merges --self-test: 741 assertions. The ⚖️ #33603 battery has 51 cases (floor 38 to 51): the 13 new rows above.
  • node scripts/pm/verify-review-tier.mjs --self-test: exit 0, ✓ verify-review-tier self-test: 30 cases pass across 6 batteries (battery floor 7 to 10).
Ablations (each through scripts/ablation-replace.mjs, anchor hit once, restored to the HEAD blob with an empty git diff HEAD)
Mutation Red rows
if (false && unread.length > 0) (N5) the three N5 NOT MEASURED rows
delete if (listed === '') continue; (N5 deletion probe) the deleted-changeset control
restored.set removed (N8) the dismissed-after-landing row
trusted-author check disabled (N11) the no-trusted-author-list row
clause on any edited row (N10) the edited-claim row
clause dropped from the reason (N9) the N9 row, the N10 one-record row and the existing N7 row
delete the Skill shape (N3) the Skill row
delete the trigger shape (N3) the connector-tool row

Acceptance notes

Verification

Derived gates on head 9177c4e: 33 of 33 exit 0 (dispatch-gates --ran: 33 derived, 33 run, 0 NOT MEASURED)
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs --self-test :: exit 0
node scripts/check-self-test-wired.mjs :: exit 0
node scripts/check-self-test-wired.mjs --self-test :: exit 0
node scripts/check-self-test-workflow-commands.mjs :: exit 0
node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0
node scripts/check-skills-token-ratchet.mjs :: exit 0
node scripts/check-skills-token-ratchet.mjs --self-test :: exit 0
node scripts/check-whole-set-label-write.mjs :: exit 0
node scripts/check-whole-set-label-write.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:bash32-floor :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:cli-command-ids :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:entry-guard :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:parse-guard :: exit 0
pnpm check:pm-dispatch-gates :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pnpm-filter-targets :: exit 0
pnpm check:pnpm-flag-spellings :: exit 0
pnpm check:ratchet-remedy-authority :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:scripts-symbol-anchors :: exit 0
pnpm check:watch-hint-literal :: exit 0

Also run: both scripts' own --self-test (exit 0, outside the derivation), and ui/scripts/__tests__/check-governed-queue-guard.test.ts, the one test file naming check-governed-merges.mjs (VERDICT command-exit 0, 10/10).

  • node scripts/pm/dispatch-gates.mjs --tier: no path-derived mandate (the surface hits none of the 4 declared globs); 205 changed lines, under 3000.
  • node scripts/pm/check-governed-merges.mjs --branch claude/project-thread-qz1fgc: 0 of 2 paths hit the register, NOT governed; size 205 (+183 / −22).
  • skip-changeset: two scripts/pm/** tools, nothing published.

Generated by Claude Code

…, a dismissed approval as it stood at the landing, and the verifier refuses skills and connector hand-offs

The post-merge audit's low-risk arm leg (review follow-ups of the audit PR):
- a git read the arm needed that threw, or a fork predicate not measured, is
  NOT MEASURED instead of Tier H; a changeset the commit deleted stays a
  measured Tier H (ls-tree proves the deletion);
- the Tier H cell says how many reasons it did not print;
- an authorized approval dismissed after the landing is read in the state the
  timeline's review_dismissed event names;
- the edited-after clause rides every BREACH reason and names only the row the
  record leg would have read;
- a recogniser set with no trusted-author list is NOT MEASURED, and comments
  the author binding dropped are counted in the guard's own words.
verify-review-tier refuses Skill and connector tools that message or start
another thread, session or trigger.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5nqeu4RWPfV6S5jfCq
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 15, 2026
@objectstack-fleet objectstack-fleet Bot mentioned this pull request Nov 15, 2026
7 tasks done
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 9177c4e421651bfbd5e3f6e90df928ec3ff9597a
Local-runs: none
Scope: scripts/pm/check-governed-merges.mjs, scripts/pm/verify-review-tier.mjs + none

reviewFace returns no hits on this file list (ungoverned); the two files are judged as the contract files, per the brief, and the diff holds nothing else. Read: card #33729 with its three comments (triage, claim, the dev report 6892426950), the three records on PR #33711 that raised the items (6890932729, 6891274033, 6891542450), PR #33762's body and file list, the net diff against the merge base bd96ec9c (2 files, 183 added, 22 removed, one commit), and the check-runs on the head. Cited code read at the head, not reviewed (both files are byte-identical to main): check-governed-queue-guard.mjs (readLowRiskTier, catalogFilesOf, landsOnLowRiskArm, recordAuthorTrusted, ignoredAuthorLines, loadRecordRecognisers, recordVerdict, lowRiskRecordVerdict, authorizedApprovalVerdict, enqueuerFromTimeline, the four readers, the runGuard author filter and its baseRef) and record-recognisers.mjs (regenCarry, computeRegenCarry, unexplainedPathsBetween); in the reviewed file, lowRiskArmVerdict and forkVerdict.

Check-runs on the head when this was written: 15 success, 0 failed, 8 still in progress (Lint · CI, release & engine gates, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · repo & tooling gates, Lint · scoped · slot lookup & corpus, Type Check · consumer gates, Test Core (1/8), Test Core (2/8)), the rest skipped. Complete and green: Lint · scoped · tooling self-tests, Lint · ESLint, Type Check · workspace, Type Check · source gates, Check Changeset, Check PR Size, the PR-body guards and Governed Surface Queue Guard. The seat confirms the eight before landing; a red one voids this record's gate reading.

① Derived judgments

  • Audit state move, tier-h to not-measured (N5): only inside the branch where the arm already read H, and only when a git read the arm took threw or the fork predicate was not measured. Right, and ordered by the item. The S branch never consults the list, so no breach can become not-measured through it.
  • Audit state move, breach to cleared (N8): only for a review that reads DISMISSED now, was submitted before the landing, and whose review_dismissed timeline event is dated at or after the landing; the restored state then goes through the guard's own authorizedApprovalVerdict, which still asks the login. Right, and ordered by the item.
  • Audit state move, breach to not-measured (N11): a recogniser set that arrives available with a null or empty trustedAuthors. Not ordered by the item (record 6891542450 read that branch as right), but both readings fail closed and the card's direction rule bars only a move to pass. The branch cannot be reached through loadRecordRecognisers, which returns available: false without the relay login. Accepted; see N-c.
  • Audit output, widened: pass and breach arm rows may carry ignored (the guard's own line), the Tier H cell ends (+N more), the edited-after clause rides all four BREACH reasons and names at most one comment. Right; no state depends on any of them.
  • ARM_READER_EXPORTS gains ignoredAuthorLines: right. loadArmReaders requires each name to be a function, so a rename reads NOT MEASURED.
  • Verifier accept set, narrowed (N3): a turn calling Skill, or a connector tool whose tool name starts with send, message, start, fire, spawn, dispatch or delegate, or ends in a trigger word, refuses. Right in direction; a transcript that passed before can now refuse, never the reverse. A seat whose review run loads any skill now refuses, which the PR body states.
  • No state moves to pass. No public surface: both files are unpublished scripts/pm tools.

② Semver level

skip-changeset is right: two scripts/pm/** tools, nothing published, and Check Changeset is green on the head. Clause-②: no, as the card and the PR body both say; nothing here narrows a published capability.

③ Boundary flags

  • open_questions: empty. Nothing to answer.
  • Deviation, the signed HTML trailer: no effect on this PR. seat-post-protocol.md line 30 orders the trailer on a PR body and os-dev.md lines 319 to 320 bar dev-written HTML comments; the body was stored whole (its Fixes and Clause-② lines read, the PR-body guards are green) and neither file is in this diff. The conflict between the two rule files is the seat's to card; it is not a finding against this head.
  • Deviation, N11 direction: answered under ① and N-c.
  • Deviation, N8 event shape not measured on a live dismissal: accepted. dismissed_review.review_id and dismissed_review.state are GitHub's documented shape for the event, and a shape that does not match restores nothing, which is the reading before this PR.
  • The report says all seven items are ticked; the card body still shows seven open boxes. The seat ticks them at landing.
  • A second parser: none. Records, authors, approvals and the enqueuer are all read through the guard's exports. Two new readings live in the audit file because the queue has no counterpart for them (it reads at the moment of the merge): reviewsAsLanded reads the timeline's dismissal event, and armReadsNotMeasured recognises the guard's git show SHA:PATH call by its argv. Neither reads a record or a label.

④ Design judgment

Item by item, against the words of the record that raised it and the code at this head. No must-fix, no should-fix.

  • N3: fixed. handsWorkToAnotherAgent is the one predicate judgeReviewTranscript now calls; the exact list is kept and the shapes are added. Both classes the item names are covered: Skill, and connector tools that message another thread or session (the six names in the pin row, among them message_thread, message_coordinator, send_message, start_remote_control). The control row (two read tools, SkillSearch, resend_log) holds the anchors. calls(n) alone passes for Read and Bash in the row above, so the refusing row is not vacuous; deleting a shape turns it red.
  • N5: fixed. armGit records every throw and rethrows, so the guard's own fold into H is untouched and the audit learns the read failed. Both git reads readLowRiskTier takes are covered (show for a changeset, diff-tree in catalogFilesOf); a missing git reader throws inside armGit and is recorded too. The deleted-changeset exception is proved, not assumed: only an empty ls-tree answer for that path at that commit keeps the H, and a throw or any listing is unread. The three pin rows read tier-h without the fix; the control pins the exception from the other side.
  • N6: closed, and the reason holds. pair.baseRef has one reader, computeRegenCarry, which hands it to unexplainedPathsBetween, where it is used only as git merge-base BASE REV (and printed in two reasons). lowRiskRecordVerdict does not read it. The landed commit's first parent is the group base plus the squash commits of entries ahead; a squash commit has one parent and exists only on the queue's branch until it lands, and a head that takes it in has moved and left the queue. So both bases give the same merge-base for a queued head, and for a landing outside the queue the first parent is the natural base. The argument rests on squash landings, which the jsdoc says.
  • N8: fixed, and I could not make it clear a genuine breach. Who dismissed is not read and need not be: the question is the state at the landing. A dismissal before the landing, with no event, with no review id, with no readable time, or of a non-approval restores nothing or restores a state that is not APPROVED. A review is dismissed once, so there is one event per id; an approval submitted after the landing is dropped by the before filter ahead of the restore; an unauthorized approver restored to APPROVED is still refused by the guard's login test; the events are GitHub-written and the timeline reader throws on truncation. Per-login last-wins is unchanged, so a later CHANGES_REQUESTED by the same approver still wins. Both pin rows turn on the restore.
  • N9: fixed. The clause is appended to the reason after the four-way choice, so below-tier, unsigned and not-pass carry it. The pin row is the item's own case (an older FAIL beside a PASS edited after the landing).
  • N10: fixed with the guard's reader. recordVerdict runs once more on unedited (the same pair with the edited rows put back) and the clause names a comment only when that run locates it as the record. The result is used for a name only, inside a try, and decides no state. An edited claim is not named; one record beside an edited claim names the record alone.
  • N11: fixed. The audit's half now has its rows: recognisers unavailable (a pin of standing behaviour, as the item asked), no trusted-author list (null and empty), and an untrusted PASS counted in the guard's words through ignoredAuthorLines.

Nits, none affecting a verdict:

  • N-a armReadsNotMeasured returns not-measured whenever the arm read H and any git read threw, even when a measured reason (a path outside the allowlist, a security label) already settles the H. Conservative: the sweep reads INCOMPLETE where Tier H was certain.
  • N-b The labels read is the one arm input that can still be unmeasured inside a tier-h (labels not a list reads "the labels were not read"). It is not git-side, so it is outside N5's words; the same treatment would cost one line.
  • N-c The N11 no-list branch is defensive only: loadRecordRecognisers never returns available: true without the list. The jsdoc could say so.
  • N-d The connector shapes read snake_case only: mcp__SERVER__sendMessage or a hyphenated verb passes, and so does a tool that hands work off under another verb (request_copilot_review, interrupt_session, a create_ or run_ session tool). A shape list stays a deny list; the names measured in this harness are covered.
  • N-e The N10 clause names an edited comment only when it is the record itself. An edited Regen-provenance: row that breaks a carry is not named.
  • N-f The deleted-changeset exception keys on the guard's argv spelling (show, SHA:PATH). A change of that spelling in the guard makes the exception stop applying, toward NOT MEASURED; no pin ties the two.
  • N-g A dismissal event dated in the same second as the landing restores. Harmless: the queue judged the approval before that second.

Implemented-by: claude/project-thread-qz1fgc
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

VERDICT: PASS

Adopted by the seat 2026-11-15T09:42Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z

@objectstack-fleet objectstack-fleet Bot mentioned this pull request Nov 15, 2026
7 tasks
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对

Verdict: ACCEPT, seat lands (ungoverned, scripts/pm/)** · head 9177c4e421651bfbd5e3f6e90df928ec3ff9597a · card #33729 · report 6892426950 · at-tier contract review 6892490875 (PASS on this head, nits only; CONTRACT_REVIEW_TIER, served model verified by the seat; Ruling-ref for the in-seat review: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb option A).

  • Shape: draft → main, Fixes #33729. scripts/pm/check-governed-merges.mjs, scripts/pm/verify-review-tier.mjs. skip-changeset. Clause-②: no; Metadata-protocol: none. Not governed.
  • Items: N3 N5 N8 N9 N10 N11 fixed with pin rows; N6 closed with its reason in readArmLanding's jsdoc; boxes ticked on review follow-ups of PR #33711 #33729. One reader: the audit reads records, authors, approvals and the enqueuer through the guard's exports only.
  • Direction changes: N5 and N11 move to not-measured only inside readings that were already Tier H or unreadable; N8 restores cleared only for an authorised approval dismissed after the landing. The reviewer tried to make each clear a genuine breach and could not.
  • Gates: 33 derived, all exit 0 (developer). Check-runs on the head: 49 total, 26 success, 23 skipped, 0 other.
  • Follow-ups: the review's seven nits on the one checklist card review follow-ups of PR #33762 #33765 (ruling B on pm/skills: one checklist card per reviewed PR for its review follow-ups, p3 copy nits into area loose-ends cards, and a dedupe step for retro reviews #33718).
  • Pre-landing check: ① same-head PASS 6892490875. ② check-runs as above. ③ K = 6 on the merge base; no commit on main since touches the PR's files; mergeable_state clean.
  • Landing: pr_ready + automerge_enable in the same relay round.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 09:53
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 7844272 Nov 15, 2026
50 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-qz1fgc branch November 15, 2026 10:15
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…, names an edited carry hop, and the verifier refuses hand-offs in any spelling (objectstack-ai#33951)

<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9AD2VXSxnSHsMRpLTGUwyMF)_
Fixes objectstack-ai#33765

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 改了什么:受管合并审计的低风险臂读数在“有读不到的输入、但已读到的输入本身就足以判 Tier H”时,改记 Tier
H(并点名没读到什么),不再整条记为 NOT MEASURED;标签列表没读到也算“没读到”;被改过的 `Regen-provenance:`
承接行会在 BREACH 原因里点名;审稿档位校验器能识别驼峰、连字符写法和其他动词下的转交工具。
- 为什么改:objectstack-ai#33762 评审留下的七条小尾巴(N-a…N-g),都朝“更保守/更说清楚”的方向收口,不改变今天任何一条判定的严格度。
- 风险与回滚:只动 `scripts/pm/` 下两个审计/校验脚本,不发布任何包;回滚即 revert 本 PR。
- 先看:`scripts/pm/check-governed-merges.mjs` 的 `armSettledWithoutUnread`
与 `readArmLanding` 的 N-e 段;`scripts/pm/verify-review-tier.mjs` 的
`connectorHandsOff`。
- 两分钟验证:`node scripts/pm/check-governed-merges.mjs --self-test && node
scripts/pm/verify-review-tier.mjs --self-test`,预期分别 756 条断言通过、33 个用例通过。
- 需要你做的:无,席位落地。

## What changes

Every hunk, by file and line range on the head (no hunk near the
register/arm regions objectstack-ai#33539 holds, L519 and L1339):

`scripts/pm/check-governed-merges.mjs`
- L4466-4467 — `readArmLanding` jsdoc: one sentence naming the objectstack-ai#33765
items.
- L4509-4517 — **N-a, N-b**: when the arm reads H and some input was
unread, `armSettledWithoutUnread` decides whether the measured inputs
alone settle it. If they do, the entry is `tier-h` with those reasons
and an `unread` list; otherwise it stays `not-measured` with the old
words.
- L4545-4547 — **N-c**: the N11 no-trusted-author-list branch's comment
says it is defensive only (`loadRecordRecognisers` answers `available:
false` instead, and a list it builds always holds the relay's login). No
code change; `record-recognisers.mjs` untouched.
- L4592-4602 — **N-e**: when the unedited threads would have reached the
record through a carry, each other edited row is left out of the
unedited threads once; if that changes what the record leg would have
read, the row is named on the BREACH reason as a `Regen-provenance:`
hop.
- L4616-4618 — **N-g**: `reviewsAsLanded` jsdoc says a same-second
dismissal is read as after the landing (pinned as is).
- L4641-4724 — **N-a, N-b, N-f** helpers: `armReadsNotMeasured` keeps
its export and words (new optional `labels` argument), built on
`armUnreadInputs`. `ARM_CHANGESET_SHOW` is the one spelling of the
guard's `show SHA:PATH` read, used by the deletion exception and by
`favourableArmGitRead`. `armSettledWithoutUnread` re-runs the guard's
own `decomposeGovernedWork` → `readLowRiskTier` → `landsOnLowRiskArm`,
answering each unread input the way that gives the arm no reason: a
clean changeset, every path a modified regular file, no fork, no labels.
- L4736-4737 — `armCell`: a settled Tier H row also names what it was
settled without.
- L9278-9323 — self-test: 11 new pins in the objectstack-ai#33603 battery.

`scripts/pm/verify-review-tier.mjs`
- L99-127 — **N-d**: `connectorToolWords` / `connectorHandsOff`. A
connector tool's name is split into words (`_`, `-`, camelCase). It
refuses when the first word is a hand-off verb (`send`, `message`,
`start`, `fire`, `spawn`, `dispatch`, `delegate`, `interrupt`), or when
it names a hand-off target (`session`, `agent`, `subagent`, `copilot`,
`thread`, `trigger`, `worker`) under any first word except a read verb.
- L130 — `handsWorkToAnotherAgent` ORs the new check onto the exact
names and the existing regexes. Nothing that refused before now passes.
- L299-307 — self-test: 3 new cases.

**Direction held.** No current Tier H verdict moves to S, and no
not-measured verdict moves to measured S. N-a can only turn not-measured
into `tier-h`, and only when the arm still reads H with every unread
input answered its way. The arm's verdict is a conjunction of
conditions, so the reasons that remain come from measured inputs. A read
with no favourable answer (anything other than the guard's `show` or
`diff-tree`), or a read that fails again, stays NOT MEASURED. N-b only
moves `tier-h` to `not-measured`, or to `tier-h` when N-a settles it.
N-d only adds refusals. N-e changes a BREACH reason's words, not its
state. N-c and N-g are comments plus a pin.

**N-g: harmless, pinned as is.** GitHub times are whole seconds, so the
order of a same-second dismissal and the landing cannot be known. The
approval it restores is an authorized one, so the entry reads `cleared`
(the maintainer's merge), never `pass`. Flipping it would turn a cleared
row into a BREACH on a guess, so the behaviour is pinned instead.

## Tests

- `node scripts/pm/check-governed-merges.mjs --self-test`: 745 → **756**
assertions, exit 0 (head `7c84b661`).
- `node scripts/pm/verify-review-tier.mjs --self-test`: 30 → **33**
cases across 6 batteries, exit 0.
- `ui/scripts/__tests__/check-governed-queue-guard.test.ts` (the one
test file that spawns `check-governed-merges.mjs`), under the lock: Test
Files 1/1, Tests 10/10, VERDICT command-exit 0.
- No forced test edits: every existing pin passes unchanged.

<details><summary>Ablations: 6 legs, each reds its pins and restores to
the HEAD blob</summary>

Run through `scripts/ablation-replace.mjs` on 7c84b66. In every leg the
anchor hit 1 → 0, and afterwards `git diff HEAD` was 0 bytes.

| Leg | Mutation | Self-test | Pins that went red |
|:---|:---|:---|:---|
| N-a | `if (settled)` → `if (settled && false)` | exit 1, 3 failures |
N-a measured-H (diff-tree + security label), N-a changeset/fork pair,
N-b labels + Clause-② Tier H |
| N-b | delete the `its labels` unread push | exit 1, 1 failure | N-b
unread labels alone is NOT MEASURED |
| N-e | `if (would?.carriedFrom)` → `… && false` | exit 1, 2 failures |
N-e edited hop named, N-e edited claim beside a carry |
| N-f | `ARM_CHANGESET_SHOW` → `^refs/…` | exit 1, 4 failures | N-f
spelling pin, objectstack-ai#33729 N5 deleted-changeset control, N-a changeset pin,
N-a no-favourable-answer pin |
| N-g | `at < landed` → `at <= landed` | exit 1, 1 failure | N-g
same-second dismissal pinned as is |
| N-d | drop `\|\| connectorHandsOff(name)` | exit 1, 2 failures | N-d
camelCase/hyphen verbs, N-d hand-off under other verbs |

N-c is a comment only, so it has no ablation.
</details>

## Acceptance notes

- `SELF_TEST_BATTERIES` floors are not raised. The new pins join
existing batteries, and raising a floor would be a hunk outside this
card's regions. The seat can raise them when it lands.
- Same class as N-b, not changed here: a timeline answer that is not an
array would still read inside `tier-h` through the guard's "its timeline
was not read" reason. `fetchTimeline` throws instead (that path is
already NOT MEASURED), so nothing reaches it today.
- N-d fails closed, as the existing shapes do. A target word under a
non-read first word refuses even when the tool only reads (for example
`archive_session`). The remedy is the same one the file already gives:
review in an agent that calls none of these.

## Verification

Local subset on head `7c84b661` (origin/main `895783a1` unmoved; nothing
to merge), after the last commit:

- `node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derived **33** families; all 33 were run,
plus both scripts' own self-tests.
- `dispatch-gates --ran`: `33 derived famil(ies) accounted for — 33 run,
0 NOT-MEASURED (a DERIVED zero — all 33 recorded an exit code and none
of them is 3)`.
- CI runs every other family on this PR; its check-runs are the record.

<details><summary>Each command and its exit code (35)</summary>

- `node scripts/check-closing-keyword-parity.mjs` → exit 0
- `node scripts/check-closing-keyword-parity.mjs --self-test` → exit 0
- `node scripts/check-comment-mask-corpus.mjs` → exit 0
- `node scripts/check-declaration-mirrors.mjs` → exit 0
- `node scripts/check-declaration-mirrors.mjs --self-test` → exit 0
- `node scripts/check-self-test-wired.mjs` → exit 0
- `node scripts/check-self-test-wired.mjs --self-test` → exit 0
- `node scripts/check-self-test-workflow-commands.mjs` → exit 0
- `node scripts/check-self-test-workflow-commands.mjs --self-test` →
exit 0
- `node scripts/check-skills-token-ratchet.mjs` → exit 0
- `node scripts/check-skills-token-ratchet.mjs --self-test` → exit 0
- `node scripts/check-whole-set-label-write.mjs` → exit 0
- `node scripts/check-whole-set-label-write.mjs --self-test` → exit 0
- `node scripts/ci/plan-test-core-shards.mjs --self-test` → exit 0
- `node scripts/pm/bare-root-worklist.mjs --self-test` → exit 0
- `pnpm check:agent-test-spelling` → exit 0
- `pnpm check:bash32-floor` → exit 0
- `pnpm check:ci-filter-parity` → exit 0
- `pnpm check:cli-command-ids` → exit 0
- `pnpm check:cross-package-test-inputs` → exit 0
- `pnpm check:driver-memory-census` → exit 0
- `pnpm check:entry-guard` → exit 0
- `pnpm check:gitlink-declared` → exit 0
- `pnpm check:nul-bytes` → exit 0
- `pnpm check:parse-guard` → exit 0
- `pnpm check:pm-dispatch-gates` → exit 0
- `pnpm check:pm-governed-merges` → exit 0
- `pnpm check:pnpm-filter-targets` → exit 0
- `pnpm check:pnpm-flag-spellings` → exit 0
- `pnpm check:ratchet-remedy-authority` → exit 0
- `pnpm check:refd-timer-probe` → exit 0
- `pnpm check:scripts-symbol-anchors` → exit 0
- `pnpm check:watch-hint-literal` → exit 0
- `node scripts/pm/check-governed-merges.mjs --self-test` → exit 0
- `node scripts/pm/verify-review-tier.mjs --self-test` → exit 0
</details>

---
_Generated by [Claude
Code](https://claude.ai/code/session_01ADHkmRnBQzshoJUDvT6keE)_

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

review follow-ups of PR #33711

2 participants