Repository navigation
Commit dccf836
feat(pm): seat readers accept LANE@ACCOUNT beside LANE#N (readers first, no writer switches) (#38472)
<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XHogQ9ogKPxHhiFfT2UQgJi)_
Part of #38415
Clause-②: no
Metadata-protocol: none
Rule-change: ruled
Ruling-ref: 7249169754 · Q3 A · 「同意,立卡派发」 answering 「先改读法再切签名,旧认领不重发,1
号空座贴关掉」 · the maintainer, area o5-fleet thread, 2026-11-29T00:37:31Z
## 维护者速读
- 用户能看到什么变化:用户无感。车队的工具现在同时读得懂「车道#编号」和「车道@账号」两种座位写法,签名和座位贴一个字都没换。
- 为什么做:这是「座位按账号命名」切换的第一步,按你定的顺序先让读的一方两种都认,再切签名。
-
出错会怎样:最坏是某个工具把一条认领算到别的座位头上;每个改过的工具都加了对照用例,旧编号认领仍算原编号座位,账号甲的签名不会算成账号乙的座位。撤回这一个改动即可复原。
- 要你做什么:这是规则文件改动,请你亲自看过后合并。
This is the first of the two pull requests the card produces: readers
accept both forms. The second one carries the rule text and the writers,
and the lane-by-lane switch follows it. This half leaves the card open.
**Round 2** (head `c299a96dae`, after the contract review of
`14a32e86a5`, which asked for two changes on this branch):
- S1: the `Request: contract-review` knock check in
`scripts/pm/post-stamped.mjs` (`triageContractReviewKnock`) judged its
target by a numbered-seat prefix, so a knock to `triage@ACCOUNT` passed
while the same knock to `triage#1` was refused. It now judges the lane
word before either mark, through the shared `SEAT_MARK_SOURCE`. Three
rows added.
- S2: the stale-seat-post finding in `scripts/pm/check-half-states.mjs`
(`h38SeatPostStale`) printed an account mark loose, and the patrol
writes that row into its anchor issue. It now prints the mark in a code
span; a numbered seat prints bare as before. The row that pinned the
loose spelling is changed, and a control row is added.
- The half-states self-test now also pins the cross-account guard of
`readSignatureLine` itself (the first review's note).
- `origin/main` is merged again (`d89d3e2356`).
## What changes
A seat id now reads in two forms: `LANE#N` (a numbered seat, as before)
and `LANE@ACCOUNT` (a seat named by its account). No writer default and
no signature changes: every writer still prints `LANE#N`, and a writer
that takes the seat as input accepts either.
**The model.** A seat is its lane AND its mark. The mark is the number
for `#N`, or the lower-cased string `@account` for `@ACCOUNT`; two marks
name one seat only when they are equal. `seatMark` and `seatIdOf` in
`scripts/pm/check-half-states.mjs` are the one source, beside the
existing `SEAT_SIGNATURE_LINE` and `readSignatureLine`.
- A `#N` record keeps reading as that numbered seat, whoever signed it.
It is never moved to the account seat of the login on it.
- A `LANE@ACCOUNT` record is that account's seat. It is not account Y's
seat of the same lane, and not any numbered seat's.
- The signature line stays three parts: `LANE@ACCOUNT · ACCOUNT ·
SESSION`. It is a signature only when the seat's account is the signing
account (case folded). Under another account it is a near miss: readers
return nothing, and the writers refuse it before the write and say why.
**Readers and writers changed** (the card's eleven, then the further
ones found by grep):
| File | What reads the second form |
| --- | --- |
| `scripts/pm/check-half-states.mjs` | the signature grammar,
`seatMark`, `seatIdOf`, the seat post title (`seatTitleAccount`,
`seatLane`, `seatIntakeKeys`), the claim's `Seat:` line
(`claimSeatNumber`), the writers' near-miss refusal, the stale-seat-post
finding's printed mark (round 2) |
| `scripts/pm/mailbox-open.mjs` | `seatKey` (the `To:` line, doorbell
and mailbox key), `--seat`, `mailboxOwner` |
| `scripts/pm/record-recognisers.mjs` | hand-off targets, `readSeat`,
`Notify: seat-online`, the session roster keys |
| `scripts/pm/card-pick.mjs` | `--seat`, the claim reason |
| `scripts/pm/round-open.mjs` | `--seat`, the post title, the claim's
seat, the three readings |
| `scripts/pm/fleet-roster.mjs` | the seat row, the signed trace, the
mailbox column, review claims, epic seats, the rendered cell |
| `scripts/pm/fleet-write/ops.mjs` | the advisory note's signature
shape, the landing seat's printed name |
| `scripts/pm/fleet-write/dispatch.mjs` | the advisory note's first
line, the trailer near-miss text |
| `scripts/pm/post-stamped.mjs` | the contract-review knock check's
triage target (round 2) |
| `scripts/pm/check-owed-reviews.mjs` (found by grep) | the record's
signer, the L2 seat roster names, the L2 test on a hand-off target |
| `scripts/pm/check-handover.mjs` (found by grep) | the seat a held
claim names |
Rows only, no code change (the reader was already correct through the
shared grammar): `scripts/pm/check-prior-rulings.mjs`,
`scripts/pm/issue-create.mjs`, `scripts/pm/fleet-write/validate.mjs`,
`scripts/pm/fleet-write/execute.mjs`. Read and left untouched:
`topic-board.mjs`, `l1-face.mjs`, `label-write.mjs`.
**One data-model change, in `fleet-roster.mjs`.** A row's `seat` was
always a number. It is now a mark: a number, or `@account`. Rows sort
the numbered seats first, then the account seats by name. The rendered
cell prints an account mark in a code span, because a loose at-sign
login in an issue body becomes a mention.
**Three choices a reviewer should see.**
1. The mailbox slug of an account seat is the lane slug, an underscore,
the account, then `-0`. A login carries no underscore and no numbered
slug ends in `-0`, so the slugs stay one to one. It fits the relay's
branch shape.
2. In a seat post title, `LANE@ACCOUNT` with no space before the at-sign
is an account seat. With a space it is still the sibling-board suffix,
as every measured post has it.
3. A claim's `Seat:` line naming an account seat reads as `@account`. It
is read before the number rule, so an epic seat named by account is not
seat N of its epic.
**Rule text** (two files, readings only):
- `.claude/skills/pm-dispatch/references/seat-post-protocol.md`: the
signature line names `LANE@ACCOUNT` as a reading (+33 bytes). Paid in
the same file by removing the aside in the handover checklist's heading
(-36 bytes). 7719 to 7716 bytes; the ratchet row drops 7720 to 7716.
- `.claude/agents/os-dev.md`: the trailer line names `LANE@ACCOUNT` as a
reading (+30 bytes). Paid in the same file by removing the lock entry's
second copy of the slot rule, which the queueing clause states in full
(-31 bytes). 33492 to 33491 bytes; the ratchet row drops 33492 to 33491.
No ceiling is raised. The seat-per-account rule, the retirement of
takeover, the review-lane merge and the readings the ruling record lists
as not ruled word for word are not in this text.
## Tests
Every touched script that has a self-test gained rows for both forms, a
control row (a `#N` claim by a vacant seat still reads as that seat's,
not as the new account's) and a row showing that a `LANE@ACCOUNT`
signature by account X is not read as account Y's seat in the same lane.
Battery floors rise with the rows.
<details><summary>Rows added, per file</summary>
| File | Rows | Result at c299a96 |
| --- | --- | --- |
| `scripts/pm/check-half-states.mjs` | 16 | exit 0 · 5443 cases pass |
| `scripts/pm/mailbox-open.mjs` | 9 | exit 0 · 102 cases in 11 batteries
pass |
| `scripts/pm/record-recognisers.mjs` | 16 | exit 0 · 483 cases pass |
| `scripts/pm/card-pick.mjs` | 4 | exit 0 · 67 cases pass |
| `scripts/pm/round-open.mjs` | 5 | exit 0 · 46 cases pass |
| `scripts/pm/fleet-roster.mjs` | 10 | exit 0 · 160 cases in 13
batteries pass |
| `scripts/pm/fleet-write/dispatch.mjs` | 4 | exit 0 · 439 cases pass |
| `scripts/pm/fleet-write/validate.mjs` | 1 | exit 0 · 497 cases pass |
| `scripts/pm/fleet-write/execute.mjs` | 2 | exit 0 · 476 cases pass |
| `scripts/pm/check-owed-reviews.mjs` | 3 | exit 0 · 99 cases pass |
| `scripts/pm/check-handover.mjs` | 1 | exit 0 · 115 cases pass |
| `scripts/pm/check-prior-rulings.mjs` | 1 | exit 0 · 186 cases pass |
| `scripts/pm/issue-create.mjs` | 2 | exit 0 · 67 cases pass |
| `scripts/pm/post-stamped.mjs` | 6 | exit 0 · 828 cases pass |
`fleet-write/ops.mjs` has no self-test of its own; its shapes are
exercised by the `dispatch`, `validate` and `execute` rows.
</details>
No test file names an edited script as its subject (one `ui/scripts`
census test spells a path as a fixture string). Scripts are not ablated.
## Acceptance notes
- Not touched, by the card's order: live seat posts, the vacant seat 1
post, any claim on any card.
- After a post is renamed, the seat's own earlier `#N` claims keep
reading as the numbered seat's. For example `card-pick --seat
repo:objectstack@os-project-manager` reports a card claimed by
`repo:objectstack#5` as another seat's. The ruling record lists the
attribution of old records to the account in their signature as not
ruled word for word, so this pull request does not do it. The second
pull request or the switch has to settle it before a lane switches.
- Only the three-part signature is read. If the second pull request
wants a shorter line, the readers need one more lap first.
- How GitHub renders a word followed by an at-sign login in a comment
was not measured.
## Verification
Head `c299a96dae`.
<details><summary>Local gates</summary>
`node scripts/pm/dispatch-gates.mjs --commands` derived 78 commands at
this head (merge base `d89d3e235`). All ran in one batch under the
verify lock, after `pnpm exec turbo run build
--filter=@objectstack/formula --filter=@objectstack/lint
--concurrency=2` in the same hold (exit 0).
77 exited 0. 1 is NOT MEASURED: `pnpm check:i18n-coverage` exited 3
(PREREQUISITE NOT MET). Its scan half lints the example apps through the
built CLI and needs the build closure of the CLI and every example,
which was not built on this box. Its self-test half ran and passed, and
that is the half this diff can reach (the gate matches these paths only
through an import chain into `check-half-states.mjs`). CI runs the scan;
on the first head its lint jobs concluded success.
Lock verdict: `VERDICT command-exit 0 · held the lock 1296s (21m36s) ·
waited 398s (6m38s)`.
`node scripts/pm/dispatch-gates.mjs --ran`: `78 derived famil(ies)
accounted for — 77 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit
3)`, exit 0.
`node scripts/check-nul-bytes.mjs`: exit 0. `node
scripts/pm/overlap-check.mjs`: `VERDICT clean exit 0`.
```
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-issue-citations.mjs :: exit 0
node scripts/check-platform-checklist-watchdog.mjs :: exit 0
node scripts/check-platform-checklist-watchdog.mjs --self-test :: exit 0
node scripts/check-release-section-coverage.mjs :: exit 0
node scripts/check-release-section-coverage.mjs --strict :: 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/ci/scheduled-full-run-card.mjs --self-test :: exit 0
node scripts/ci/scheduled-full-run.mjs --self-test :: exit 0
node scripts/ci/snapshot-next.mjs --self-test :: exit 0
node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0
node scripts/pm/board-snapshot.mjs --self-test :: exit 0
node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0
node scripts/pm/check-harness-current.mjs --self-test :: exit 0
node scripts/pm/sweep-closed-cards.mjs --self-test :: exit 0
node scripts/render-release-coverage-anchor.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:agent-model-declared :: 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:closing-target-claim :: exit 0
pnpm check:commit-card-trailers :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:declared-population-live :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:entry-guard :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:i18n-coverage :: exit 3
pnpm check:issue-citations :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:parse-guard :: exit 0
pnpm check:partof-closing-keyword :: exit 0
pnpm check:platform-checklist :: exit 0
pnpm check:pm-board-snapshot :: exit 0
pnpm check:pm-close-cards :: exit 0
pnpm check:pm-dispatch-gates :: exit 0
pnpm check:pm-expected-skips :: exit 0
pnpm check:pm-fleet-token :: exit 0
pnpm check:pm-fleet-write-dispatch :: exit 0
pnpm check:pm-fleet-write-execute :: exit 0
pnpm check:pm-fleet-write-validate :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-governed-prose :: exit 0
pnpm check:pm-half-states :: exit 0
pnpm check:pm-issue-create :: exit 0
pnpm check:pm-issue-transfer :: exit 0
pnpm check:pm-label-write :: exit 0
pnpm check:pm-post-stamped :: exit 0
pnpm check:pm-prior-rulings :: exit 0
pnpm check:pm-record-recognisers :: exit 0
pnpm check:pm-settings-deny-roster :: exit 0
pnpm check:pm-skill-id-lint :: exit 0
pnpm check:pm-skill-ratchet :: exit 0
pnpm check:pm-write-pace :: 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:single-claim-paths :: exit 0
pnpm check:skill-frame-sync :: exit 0
pnpm check:watch-hint-literal :: exit 0
```
</details>
Two-minute check: `node scripts/pm/record-recognisers.mjs --self-test`
prints a pass line, and its battery named for the seat mark holds the
both-forms, control and cross-account rows.
Read first, by risk:
1. `scripts/pm/check-half-states.mjs`: `readSignatureLine` and
`claimSeatNumber` (every other reader stands on these two).
2. `scripts/pm/mailbox-open.mjs`: `seatKey` (the slug of an account
seat).
3. `scripts/pm/fleet-roster.mjs`: `parseSeat` and `bySeatMark` (the
row's seat is now a mark).
---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn)_
<!-- signed: repo:objectstack#5 · os-project-manager ·
session_01FEkQ5oPfjnm2yWHEwkiYrn -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent ea82c96 commit dccf836
18 files changed
Lines changed: 387 additions & 107 deletions
File tree
- .claude
- agents
- skills/pm-dispatch/references
- scripts/pm
- fleet-write
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
| |||
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
184 | | - | |
| 186 | + | |
| 187 | + | |
185 | 188 | | |
186 | 189 | | |
187 | 190 | | |
188 | 191 | | |
189 | 192 | | |
190 | | - | |
| 193 | + | |
191 | 194 | | |
192 | 195 | | |
193 | 196 | | |
| |||
309 | 312 | | |
310 | 313 | | |
311 | 314 | | |
312 | | - | |
| 315 | + | |
| 316 | + | |
313 | 317 | | |
314 | 318 | | |
315 | 319 | | |
| |||
588 | 592 | | |
589 | 593 | | |
590 | 594 | | |
591 | | - | |
| 595 | + | |
592 | 596 | | |
593 | 597 | | |
594 | 598 | | |
| |||
620 | 624 | | |
621 | 625 | | |
622 | 626 | | |
623 | | - | |
| 627 | + | |
624 | 628 | | |
625 | 629 | | |
626 | 630 | | |
| |||
682 | 686 | | |
683 | 687 | | |
684 | 688 | | |
685 | | - | |
| 689 | + | |
686 | 690 | | |
687 | | - | |
| 691 | + | |
688 | 692 | | |
689 | 693 | | |
690 | 694 | | |
| |||
859 | 863 | | |
860 | 864 | | |
861 | 865 | | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
862 | 871 | | |
863 | 872 | | |
864 | 873 | | |
| |||
902 | 911 | | |
903 | 912 | | |
904 | 913 | | |
| 914 | + | |
905 | 915 | | |
906 | 916 | | |
907 | 917 | | |
| |||
0 commit comments