Repository navigation
Commit 348e701
fix(pm): the arm audit settles a measured Tier H past an unread input, names an edited carry hop, and the verifier refuses hand-offs in any spelling (#33951)
<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9AD2VXSxnSHsMRpLTGUwyMF)_
Fixes #33765
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 改了什么:受管合并审计的低风险臂读数在“有读不到的输入、但已读到的输入本身就足以判 Tier H”时,改记 Tier
H(并点名没读到什么),不再整条记为 NOT MEASURED;标签列表没读到也算“没读到”;被改过的 `Regen-provenance:`
承接行会在 BREACH 原因里点名;审稿档位校验器能识别驼峰、连字符写法和其他动词下的转交工具。
- 为什么改:#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 #33539 holds, L519 and L1339):
`scripts/pm/check-governed-merges.mjs`
- L4466-4467 — `readArmLanding` jsdoc: one sentence naming the #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 #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, #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>1 parent 0593356 commit 348e701
2 files changed
Lines changed: 186 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4463 | 4463 | | |
4464 | 4464 | | |
4465 | 4465 | | |
| 4466 | + | |
| 4467 | + | |
4466 | 4468 | | |
4467 | 4469 | | |
4468 | 4470 | | |
| |||
4504 | 4506 | | |
4505 | 4507 | | |
4506 | 4508 | | |
4507 | | - | |
4508 | | - | |
| 4509 | + | |
| 4510 | + | |
| 4511 | + | |
| 4512 | + | |
| 4513 | + | |
| 4514 | + | |
| 4515 | + | |
| 4516 | + | |
| 4517 | + | |
4509 | 4518 | | |
4510 | 4519 | | |
4511 | 4520 | | |
| |||
4533 | 4542 | | |
4534 | 4543 | | |
4535 | 4544 | | |
4536 | | - | |
| 4545 | + | |
| 4546 | + | |
| 4547 | + | |
4537 | 4548 | | |
4538 | 4549 | | |
4539 | 4550 | | |
| |||
4578 | 4589 | | |
4579 | 4590 | | |
4580 | 4591 | | |
| 4592 | + | |
| 4593 | + | |
| 4594 | + | |
| 4595 | + | |
| 4596 | + | |
| 4597 | + | |
| 4598 | + | |
| 4599 | + | |
| 4600 | + | |
| 4601 | + | |
| 4602 | + | |
4581 | 4603 | | |
4582 | 4604 | | |
4583 | 4605 | | |
| |||
4591 | 4613 | | |
4592 | 4614 | | |
4593 | 4615 | | |
4594 | | - | |
| 4616 | + | |
| 4617 | + | |
| 4618 | + | |
4595 | 4619 | | |
4596 | 4620 | | |
4597 | 4621 | | |
| |||
4614 | 4638 | | |
4615 | 4639 | | |
4616 | 4640 | | |
4617 | | - | |
| 4641 | + | |
| 4642 | + | |
| 4643 | + | |
| 4644 | + | |
| 4645 | + | |
| 4646 | + | |
| 4647 | + | |
| 4648 | + | |
| 4649 | + | |
| 4650 | + | |
| 4651 | + | |
| 4652 | + | |
4618 | 4653 | | |
4619 | 4654 | | |
4620 | | - | |
| 4655 | + | |
4621 | 4656 | | |
4622 | 4657 | | |
4623 | 4658 | | |
4624 | 4659 | | |
4625 | 4660 | | |
4626 | 4661 | | |
4627 | 4662 | | |
4628 | | - | |
| 4663 | + | |
4629 | 4664 | | |
4630 | | - | |
| 4665 | + | |
| 4666 | + | |
4631 | 4667 | | |
4632 | 4668 | | |
4633 | 4669 | | |
| 4670 | + | |
| 4671 | + | |
| 4672 | + | |
| 4673 | + | |
| 4674 | + | |
| 4675 | + | |
| 4676 | + | |
| 4677 | + | |
| 4678 | + | |
| 4679 | + | |
| 4680 | + | |
| 4681 | + | |
| 4682 | + | |
| 4683 | + | |
| 4684 | + | |
| 4685 | + | |
| 4686 | + | |
| 4687 | + | |
| 4688 | + | |
| 4689 | + | |
| 4690 | + | |
| 4691 | + | |
| 4692 | + | |
| 4693 | + | |
| 4694 | + | |
| 4695 | + | |
| 4696 | + | |
| 4697 | + | |
| 4698 | + | |
| 4699 | + | |
| 4700 | + | |
| 4701 | + | |
| 4702 | + | |
| 4703 | + | |
| 4704 | + | |
| 4705 | + | |
| 4706 | + | |
| 4707 | + | |
| 4708 | + | |
| 4709 | + | |
| 4710 | + | |
| 4711 | + | |
| 4712 | + | |
| 4713 | + | |
| 4714 | + | |
| 4715 | + | |
| 4716 | + | |
| 4717 | + | |
| 4718 | + | |
| 4719 | + | |
| 4720 | + | |
| 4721 | + | |
| 4722 | + | |
| 4723 | + | |
| 4724 | + | |
4634 | 4725 | | |
4635 | 4726 | | |
4636 | 4727 | | |
| |||
4642 | 4733 | | |
4643 | 4734 | | |
4644 | 4735 | | |
4645 | | - | |
| 4736 | + | |
| 4737 | + | |
4646 | 4738 | | |
4647 | 4739 | | |
4648 | 4740 | | |
| |||
9183 | 9275 | | |
9184 | 9276 | | |
9185 | 9277 | | |
| 9278 | + | |
| 9279 | + | |
| 9280 | + | |
| 9281 | + | |
| 9282 | + | |
| 9283 | + | |
| 9284 | + | |
| 9285 | + | |
| 9286 | + | |
| 9287 | + | |
| 9288 | + | |
| 9289 | + | |
| 9290 | + | |
| 9291 | + | |
| 9292 | + | |
| 9293 | + | |
| 9294 | + | |
| 9295 | + | |
| 9296 | + | |
| 9297 | + | |
| 9298 | + | |
| 9299 | + | |
| 9300 | + | |
| 9301 | + | |
| 9302 | + | |
| 9303 | + | |
| 9304 | + | |
| 9305 | + | |
| 9306 | + | |
| 9307 | + | |
| 9308 | + | |
| 9309 | + | |
| 9310 | + | |
| 9311 | + | |
| 9312 | + | |
| 9313 | + | |
| 9314 | + | |
| 9315 | + | |
| 9316 | + | |
| 9317 | + | |
| 9318 | + | |
| 9319 | + | |
| 9320 | + | |
| 9321 | + | |
| 9322 | + | |
| 9323 | + | |
9186 | 9324 | | |
9187 | 9325 | | |
9188 | 9326 | | |
| |||
0 commit comments