Skip to content

Commit dccf836

Browse files
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

‎.claude/agents/os-dev.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ model: opus
8585

8686
1. **重活串行,共享验证锁只有一个入口。** 每次 build/test 都从这里走。
8787
- `bash scripts/pm/os-verify-lock.sh -c '<command>'`(或 `-- <argv>`);⛔ 永不手搓 `flock`/lockfile。
88-
- 一次前台调用领全部等待预算,阻塞到拿锁或 99;⛔ 不轮询重试,恒设 `OS_VERIFY_LOCK_SLOT`。
88+
- 一次前台调用领全部等待预算,阻塞到拿锁或 99;⛔ 不轮询重试。
8989
- 它不保证机器空闲:`check:*` 门禁、install、dev server 不走它,与持锁同核并跑。
9090
- 超前台上限者(`check:pm-dispatch-gates`、全量 dogfood):`nohup … > LOG 2>&1 &` 后 `tail --pid`。
9191
- 锁下墙钟绝对值是共享盒读数;只包命令本身,不包你的阅读与判断。
@@ -270,7 +270,7 @@ model: opus
270270

271271
- 全文 ⛔ 不出现 HTML 注释:sanitizer 落库后吃短尖括号片段,连反引号里的也吃。
272272
- 例外二:harness 自写 PR 正文首行归属注释原样留、只报,`Fixes #<n>` 紧随;派发令要求才独占
273-
末个非空行写 `<!-- signed: LANE#N · ACCOUNT · SESSION -->`(`PR_BODY_TRAILER_SHAPE`);其余 dev 自写仍禁。
273+
末个非空行写 `<!-- signed: LANE#N · ACCOUNT · SESSION -->`(`PR_BODY_TRAILER_SHAPE`,读方亦认 `LANE@ACCOUNT`);其余 dev 自写仍禁。
274274
- 凡要上 GitHub 的文本,尖括号形状片段一律改占位词拼写(`FIELD`、`IDENT.MEMBER` 一类)。
275275
- 各派发模式(`mode:subagent`、`mode:cloud`、`mode:thread`)下 GitHub 都是报告的权威源。
276276
- 评论、PR 正文都读回到尾:只认首行标记保不住正文,sanitizer 可从首个 tag 形片段吃到尾。

‎.claude/skills/pm-dispatch/references/seat-post-protocol.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
- 会话座位查最新产出评论的时间戳;回收 = 改正文 + 审计评论。
2727
- 可跑读法:本车道 `pm:dispatched` 卡按 `updated_at` 降序一搜,或读最新认领评论。
2828
- 写侧刷新三时刻:派发、收班、暂停或交接前;时间戳恒取自 `post-stamped.mjs`。
29-
- 帖与卡正文首行恒为署名 `LANE#N · ACCOUNT · SESSION`;缺即写工具拒发(`post-stamped.mjs` 头注)。
29+
- 帖与卡正文首行恒为署名 `LANE#N · ACCOUNT · SESSION`(读方亦认 `LANE@ACCOUNT`);缺即写工具拒发(`post-stamped.mjs` 头注)。
3030
- PR 正文末非空行署 `<!-- signed: LANE#N · ACCOUNT · SESSION -->`,整篇经 `dispatch.mjs` 的 `issue_patch`。
3131
- 刷新前回执敲门;`--body` 拦截:评论晚于末次戳 ⇒ `--ack-through=ID`;空座欠账无卡号 ⇒ 拒写。
3232
- 耐久状态只住正文或以 App 写入;正文守中继上限 60,000 字节,超大贴由半状态巡查浮出。
@@ -43,7 +43,7 @@
4343
- 巡查改绑 = 继任自建自绑并删旧,`Patrol:` 换号;前任笔迹归继任不自退,旧会话即结束。
4444
- 上下文读数:`get_session`(无参)`external_metadata.context_usage.used_tokens`;读不到或 0 归协调者读。
4545

46-
## 交接收尾清单(漏一步就是留残缺现场)
46+
## 交接收尾清单
4747

4848
1. 立即停止新派发。
4949
2. 认领卡落地,或同笔 `Release:`+`Resume-from:`+清 assignee 交回 `pm:queue`;`needs_decision` 进决策箱。

‎scripts/pm/card-pick.mjs‎

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ import {
105105
labelNames,
106106
markerMatches,
107107
readSignatureLine,
108+
seatIdOf,
109+
seatMark,
108110
subIssueParentPath,
109111
} from './check-half-states.mjs';
110112
import { ghApi, readAllPages } from './gh-pages.mjs';
@@ -181,13 +183,14 @@ export function parseOrder(text) {
181183

182184
/**
183185
* `--seat LANE#N` parsed by the seat signature's own grammar (`SEAT_SIGNATURE_LINE`, borrowed, never re-spelled), so
184-
* every lane a signature can carry is accepted, an epic seat's `epic:#N#1` included. Pure.
186+
* every lane a signature can carry is accepted, an epic seat's `epic:#N#1` included — and both seat marks:
187+
* `LANE@ACCOUNT` names the seat by its account (`seat` is then `@account`, `seatMark`'s reading). Pure.
185188
*/
186189
export function parseSeat(text) {
187190
const v = String(text ?? '');
188191
if (/\s/.test(v)) return null;
189192
const m = SEAT_SIGNATURE_LINE.exec(`${v}${SEAT_SIGNATURE_SEPARATOR}seat${SEAT_SIGNATURE_SEPARATOR}session_parseseat`);
190-
return m ? { lane: m[1], seat: Number(m[2]), name: `${m[1]}#${m[2]}` } : null;
193+
return m ? { lane: m[1], seat: seatMark(m[2]), name: seatIdOf(m[1], seatMark(m[2])) } : null;
191194
}
192195

193196
const GRADE_NAMES = Object.freeze(['p0', 'p1', 'p2', 'p3']);
@@ -309,7 +312,8 @@ export function claimReason(comments, seat) {
309312
if (own === null || own.kind === 'release') return null;
310313
const sig = own.signature;
311314
if (!sig) return 'Claim: (unsigned) — another session holds it unless the claim names you';
312-
const who = `${sig.lane}#${sig.seat}`;
315+
// Lane AND mark: a `#N` claim is that numbered seat's, an `@ACCOUNT` claim that account's — never each other's.
316+
const who = seatIdOf(sig.lane, sig.seat);
313317
if (seat && seat.name === who) return `Claim: by this seat (${who}) — already yours, not a new pick`;
314318
return `Claim: by ${who}`;
315319
}
@@ -588,7 +592,7 @@ export function fixtureGet(fixture, repo) {
588592
const USAGE = [
589593
'card-pick — which ready cards a seat takes next (read-only; the claim re-read still arbitrates).',
590594
'',
591-
' node scripts/pm/card-pick.mjs --order epic:#N,area:NAME,… [--seat LANE#N] [--repo OWNER/NAME]',
595+
' node scripts/pm/card-pick.mjs --order epic:#N,area:NAME,… [--seat LANE#N|LANE@ACCOUNT] [--repo OWNER/NAME]',
592596
' [--limit N] [--why] [--json] [--fixture FILE] [--now ISO]',
593597
' node scripts/pm/card-pick.mjs --self-test',
594598
'',
@@ -620,7 +624,7 @@ export function parseArgs(argv) {
620624
} else if (flag === '--seat') {
621625
const v = take();
622626
opts.seat = parseSeat(v);
623-
if (!opts.seat) return { error: `--seat must be LANE#N (a seat signature's first part), got \`${v}\`` };
627+
if (!opts.seat) return { error: `--seat must be LANE#N or LANE@ACCOUNT (a seat signature's first part), got \`${v}\`` };
624628
} else if (flag === '--limit') {
625629
const v = take();
626630
if (!/^[1-9][0-9]*$/.test(String(v ?? ''))) return { error: `--limit must be a positive integer, got \`${v}\`` };
@@ -682,9 +686,9 @@ const SELF_TEST_BATTERIES = Object.freeze({
682686
"p3: an area's close-out after every p2 of that item; an epic's children keep their child order": 7,
683687
'Blocked-by: an open target holds, a closed-unmerged PR holds, a merged PR and a closed issue release, cross-repo is read': 7,
684688
'the same-grade order and the epic child order': 5,
685-
'the candidate definition: label reasons, claims and the triage audit': 9,
689+
'the candidate definition: label reasons, claims and the triage audit': 12,
686690
'the walk: every page, the count checked, the limit and --why': 11,
687-
'the CLI: usage, exits and the footer': 13,
691+
'the CLI: usage, exits and the footer': 14,
688692
});
689693
const SELF_TEST_BATTERY_FLOOR = 8;
690694
const UNATTRIBUTED_BATTERY = '(unattributed)';
@@ -859,6 +863,11 @@ export async function selfTest() {
859863
t('⭐ another seat\'s Claim: excludes', claimReason([claim(SIG)], parseSeat('repo:objectstack#5')), 'Claim: by repo:objectstack#1');
860864
t('this seat\'s own Claim: reads as already yours', claimReason([claim(SIG)], parseSeat('repo:objectstack#1')), 'Claim: by this seat (repo:objectstack#1) — already yours, not a new pick');
861865
t('a Release: after the Claim: frees the card', claimReason([claim(SIG), { body: 'Release: session gone · back to queue', created_at: '2026-11-18T05:00:00Z' }], null), null);
866+
// The second seat mark (ruling record 7249169754): a seat is its lane AND its mark, `#N` or `@ACCOUNT`.
867+
const ACC = 'repo:objectstack@os-bill · os-bill · session_01ABCDEFGH';
868+
t('⭐ a claim signed `LANE@ACCOUNT` reads as that account\'s seat: already yours for it, another seat\'s for everyone else', [claimReason([claim(ACC)], parseSeat('repo:objectstack@os-bill')), claimReason([claim(ACC)], parseSeat('repo:objectstack@OS-Bill')), claimReason([claim(ACC)], parseSeat('repo:objectstack#5'))], ['Claim: by this seat (repo:objectstack@os-bill) — already yours, not a new pick', 'Claim: by this seat (repo:objectstack@os-bill) — already yours, not a new pick', 'Claim: by repo:objectstack@os-bill']);
869+
t('⛔ account X\'s claim is not read as account Y\'s seat of the same lane — and X signing Y\'s seat is no signature at all', [claimReason([claim(ACC)], parseSeat('repo:objectstack@os-warren')), claimReason([claim('repo:objectstack@os-bill · os-warren · session_01ABCDEFGH')], parseSeat('repo:objectstack@os-bill'))], ['Claim: by repo:objectstack@os-bill', 'Claim: (unsigned) — another session holds it unless the claim names you']);
870+
t('⭐ CONTROL — a `#1` claim by a vacant seat still reads as seat 1\'s: ⛔ not as the account seat of the login on it, nor of any other account', [claimReason([claim(SIG)], parseSeat('repo:objectstack@os-warren')), claimReason([claim(SIG)], parseSeat('repo:objectstack@os-bill')), claimReason([claim(SIG)], parseSeat('repo:objectstack#1'))], ['Claim: by repo:objectstack#1', 'Claim: by repo:objectstack#1', 'Claim: by this seat (repo:objectstack#1) — already yours, not a new pick']);
862871
const fleetCard = card(['area:ux', 'priority:p2'], { user: APP });
863872
const r = await run({ issues: [fleetCard], comments: { [fleetCard.number]: [{ body: 'just a note' }] } });
864873
t('⭐ a fleet card with no triage audit record is not a candidate', r.others[0]?.reasons, ['no triage audit — knock triage']);
@@ -902,6 +911,7 @@ export async function selfTest() {
902911
t('both spellings of an option are read', [parseArgs(['--order=area:ux', '--limit=2']).opts.limit, parseArgs(['--order', 'epic:#7']).opts.order[0].number], [2, 7]);
903912
t('--order as the last argument with no value is a usage error; --order "" is the p0/p1-only order', [Boolean(parseArgs(['--order']).error), parseArgs(['--order', '']).opts?.order], [true, []]);
904913
t('--seat reads every lane a seat signature carries, an epic seat\'s epic:#N included', [parseSeat('epic:#35205#1')?.name, parseSeat('domain:ui#2')?.name, parseSeat('area:ux#1'), parseSeat('repo:objectstack#5 x')], ['epic:#35205#1', 'domain:ui#2', null, null]);
914+
t('--seat reads both seat marks: `LANE@ACCOUNT` names the seat by its account, lower-cased, an epic seat\'s included; `LANE@` and both marks at once are refused', [parseSeat('repo:objectstack@OS-Bill'), parseSeat('epic:#35205@os-bill')?.name, parseSeat('repo:objectstack#5')?.seat, parseSeat('repo:objectstack@'), parseSeat('repo:objectstack#5@os-bill'), Boolean(parseArgs(['--order', 'area:ux', '--seat', 'repo:objectstack@os-bill']).opts?.seat), parseArgs(['--order', 'area:ux', '--seat', 'os-bill']).error?.includes('LANE#N or LANE@ACCOUNT')], [{ lane: 'repo:objectstack', seat: '@os-bill', name: 'repo:objectstack@os-bill' }, 'epic:#35205@os-bill', 5, null, null, true, true]);
905915
t('⭐ the footer names lane ownership and the sub-epic an area item holds, beside the five legs it named before', [UNREAD_LEGS.length, UNREAD_LEGS.some((l) => l.startsWith('lane ownership — ')), UNREAD_LEGS.some((l) => l.startsWith('an area item that holds a sub-epic — '))], [7, true, true]);
906916
t('⛔ the lane-ownership leg reads `domain:*` as file ownership, never as the seat\'s lane: lanes are seats and epics', [UNREAD_LEGS.some((l) => /outside this seat's lane|against your lane/.test(l)), UNREAD_LEGS.some((l) => l.startsWith('lane ownership — ') && l.includes('file ownership only'))], [false, true]);
907917
const c = card(['area:ux', 'priority:p2', 'domain:ui']);

0 commit comments

Comments
 (0)