You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4181cc2
Browse filesBrowse the repository at this point in the historyBrowse files
fix(pm): the security seat is a bare lane the mailbox opener spells — security#1 gets a mailbox, and a doorbell can be addressed to it
The third copy of the seat-lane grammar, `SEAT_BARE_LANES` in `mailbox-open.mjs`,
admits `security` beside `triage` and `director`, so `seatKey('security#1')` reads
(key `security#1`, slug `security-1`), `mailbox-open.mjs --seat security` opens a
mailbox, `To: security#1` reads on a doorbell, and `Notify: seat-online · security#1`
reads. The `Notify: security` self-test row now rings under `To: security#1`;
`domain:security` joins the reserved names; the roster's slug row pins `security-1`.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYn5CmmdShCJifm6WYj
Copy file name to clipboardExpand all lines: scripts/pm/fleet-roster.mjs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -735,7 +735,7 @@ async function selfTest() {
735
735
t('⛔ an ACCEPT line ABOVE the heading is not the record\'s verdict',hasLandingVerdict([{body: 'ACCEPT\n\n## 席位核对\n\nREWORK · rework'}]),false);
736
736
t('the heading is H69\'s marker, imported not re-spelled: the three measured bodies read record alike',['## 席位核对\n\n**ACCEPT** · x','## 席位核对 — ACCEPT · x','## Contract review\n\n**VERDICT: PASS**'].map((b)=>`${seatRecord.SEAT_RECORD_MARKER.test(b)}/${hasLandingVerdict([{body: b}])}`),['true/true','true/true','false/true']);
737
737
t('the mailbox constants are the opener\'s own, imported not re-spelled',[MAILBOX_LABEL,LEDGER_EXCLUSION,MAILBOX_BRANCH_PREFIX],[mailboxOpen.MAILBOX_LABEL,mailboxOpen.LEDGER_EXCLUSION,mailboxOpen.MAILBOX_BRANCH_PREFIX]);
738
-
t('whose mailbox a pull is, and a seat row\'s slug, are the opener\'s own readings — imported, not re-spelled',[mailboxOwner===mailboxOpen.mailboxOwner,seatKey===mailboxOpen.seatKey,seatSlugOf({lane: 'domain:ui',seat: 4}),seatSlugOf({lane: 'triage',seat: 1})],[true,true,'ui-4','triage-1']);
738
+
t('whose mailbox a pull is, and a seat row\'s slug, are the opener\'s own readings — imported, not re-spelled',[mailboxOwner===mailboxOpen.mailboxOwner,seatKey===mailboxOpen.seatKey,seatSlugOf({lane: 'domain:ui',seat: 4}),seatSlugOf({lane: 'triage',seat: 1}),seatSlugOf({lane: 'security',seat: 1})],[true,true,'ui-4','triage-1','security-1']);
739
739
740
740
battery('the fixture snapshot: rows for the three repos');
t('an absent number is seat 1, spelled',[seatKey('triage'),seatKey('domain:skills')],[{key: 'triage#1',slug: 'triage-1'},{key: 'domain:skills#1',slug: 'skills-1'}]);
543
+
t('⭐ the security seat is a bare lane: `security#1` → key security#1, slug security-1; `security` alone is seat 1; `security#2` is its own seat',[seatKey('security#1'),seatKey('security'),seatKey('security#2').slug],[{key: 'security#1',slug: 'security-1'},{key: 'security#1',slug: 'security-1'},'security-2']);
541
544
t('another kind keeps its name, its colon turned into a hyphen',[seatKey('repo:cloud#1').slug,seatKey('repo:www.objectos.ai#2').slug],['repo-cloud-1','repo-www.objectos.ai-2']);
542
545
t('read lower-cased, so one seat has one key',[seatKey('Domain:UI#4').key,seatKey(' domain:ui#4 ').key],['domain:ui#4','domain:ui#4']);
543
546
t('not a seat ⇒ null — ⛔ a login above all, the confusion a per-login mailbox made',['','ui 4','domain:ui#0','#4','domain:',null,'os-bill','marchtian'].map(seatKey),[null,null,null,null,null,null,null,null]);
@@ -546,9 +549,9 @@ async function selfTest() {
546
549
t('⛔ a `domain:` lane named `epic-…` is refused — its slug would be an epic seat\'s — while `domain:epic` and `domain:epics` read',[seatKey('domain:epic-12#1'),seatKey('domain:epic-tools'),seatKey('domain:epic').slug,seatKey('domain:epics').slug],[null,null,'epic-1','epics-1']);
547
550
t('⭐ the epic slug collides with no lane slug: one key per slug across every lane kind',(()=>{constkeys=['epic:#12#1','domain:epic#12','domain:epic-12#1','repo:epic-12#1','domain:12#1','triage#12','epic:#1#21','epic:#12#1'].map(seatKey).filter(Boolean);returnnewSet(keys.map((k)=>k.slug)).size===newSet(keys.map((k)=>k.key)).size;})(),true);
548
551
t('⛔ a short form is not a seat — `skills#2` names no lane, so it is refused as a login is',['skills#2','ui#4','server','skills'].map(seatKey),[null,null,null,null]);
549
-
t('⛔ a `domain:` lane named after a reserved lane word is refused — its slug would be another seat\'s',['domain:triage','domain:director#2','domain:repo-cloud#1','Domain:Triage#1'].map(seatKey),[null,null,null,null]);
552
+
t('⛔ a `domain:` lane named after a reserved lane word is refused — its slug would be another seat\'s',['domain:triage','domain:director#2','domain:repo-cloud#1','Domain:Triage#1','domain:security#1'].map(seatKey),[null,null,null,null,null]);
550
553
t('…while a `domain:` lane that merely CONTAINS a reserved word, and the reserved words as their own lanes, still read',[seatKey('domain:triage-tools#1').slug,seatKey('domain:directory').slug,seatKey('domain:repository').slug,seatKey('triage#2').slug,seatKey('repo:cloud').slug],['triage-tools-1','directory-1','repository-1','triage-2','repo-cloud-1']);
551
-
t('the shape and the reserved set are built from the ONE set of lane-word lists',SEAT_LANE_KINDS.join()==='domain,repo'&&SEAT_BARE_LANES.join()==='triage,director'&&SEAT_EPIC_KIND==='epic'&&SEAT_BARE_LANES.every((w)=>seatKey(w)?.key===`${w}#1`&&seatKey(`domain:${w}`)===null)&&seatKey(`${SEAT_EPIC_KIND}:#7`)?.key==='epic:#7#1'&&seatKey(`domain:${SEAT_EPIC_KIND}-7`)===null,true);
554
+
t('the shape and the reserved set are built from the ONE set of lane-word lists',SEAT_LANE_KINDS.join()==='domain,repo'&&SEAT_BARE_LANES.join()==='triage,director,security'&&SEAT_EPIC_KIND==='epic'&&SEAT_BARE_LANES.every((w)=>seatKey(w)?.key===`${w}#1`&&seatKey(`domain:${w}`)===null)&&seatKey(`${SEAT_EPIC_KIND}:#7`)?.key==='epic:#7#1'&&seatKey(`domain:${SEAT_EPIC_KIND}-7`)===null,true);
552
555
t('the branch is mailbox/<login>/<slug> — no `:` and no `#` in a ref',mailboxBranch('os-bill',seatKey('domain:ui#4')),'mailbox/os-bill/ui-4');
553
556
t('an epic seat\'s branch is mailbox/<login>/epic-N-K',mailboxBranch('sunhaolin',seatKey('epic:#27293#1')),'mailbox/sunhaolin/epic-27293-1');
554
557
t('⭐ two seats under ONE login get two branches',[mailboxBranch('os-sales',seatKey('domain:server#1')),mailboxBranch('os-sales',seatKey('domain:ui#1'))],['mailbox/os-sales/server-1','mailbox/os-sales/ui-1']);
t('⭐ `Request: contract-review` reads the PR, the head (7–40 hex) and the reason — the reason may carry a comma',(()=>{constr=readMailboxLine(DB.cr);returnr.state==='read'&&r.id==='request:contract-review'&&r.kind==='Request'&&r.key==='contract-review'&&r.pr===26766&&r.head===HO_HEAD&&r.reason===`${CONTRACT_REVIEW_TIER_NAME} refused, HTTP 429`&&r.numbers.join()==='26766';})());
2772
2772
t('⭐ `Request: urgent-triage` reads the card and the one-line criterion',(()=>{constr=readMailboxLine(DB.ut);returnr.state==='read'&&r.id==='request:urgent-triage'&&r.card===27047&&r.criterion==='main red on the merge group, deterministic'&&r.numbers.join()==='27047';})());
@@ -2783,7 +2783,7 @@ export async function selfTest() {
2783
2783
t('⭐ `Notify: unblocked` reads the card and its priority — p0 and p1 only, the priorities it is owed for',(()=>{constr=readMailboxLine(DB.ub);constp0=readMailboxLine(DB.ub.replace('p1','p0'));returnr.state==='read'&&r.id==='notify:unblocked'&&r.card===28560&&r.priority==='p1'&&p0.priority==='p0'&&r.numbers.join()==='28560'&&['p2','P1','p0 or p1'].every((v)=>readMailboxLine(DB.ub.replace('p1',v)).state==='unreadable');})());
2784
2784
t('⭐ `Notify: ruling` reads the card, the letter and the record id — a primed or CJK letter reads, a sentence does not',(()=>{constr=readMailboxLine(DB.ru);returnr.state==='read'&&r.id==='notify:ruling'&&r.card===28117&&r.letter==='A'&&r.record===6545646924&&r.numbers.join()==='28117'&&readMailboxLine(DB.ru.replace(' A ',' B′ ')).letter==='B′'&&readMailboxLine(DB.ru.replace(' A ',' 乙 ')).letter==='乙'&&readMailboxLine(MSG('Notify: ruling · #28117 A (record 6545646924, 「同意」) · your draft #28430')).state==='unreadable';})());
2785
2785
t('⭐ `Notify: serial` reads the waiting card and the card it waits for; `Notify: landed` releases it',(()=>{constr=readMailboxLine(DB.se);constl=readMailboxLine(DB.la);returnr.state==='read'&&r.id==='notify:serial'&&r.card===28572&&r.behind===28562&&r.numbers.join()==='28572,28562'&&l.state==='read'&&l.id==='notify:landed'&&l.card===28562&&l.numbers.join()==='28562'&&readMailboxLine(MSG('Notify: serial · #28572 · #28562')).state==='unreadable';})());
2786
-
t('⭐ `Notify: security` reads the advisory\'s opaque id and nothing else — it names no card, so `numbers` is empty — under any `To:` envelope',(()=>{constr=readMailboxLine(DB.sec);returnr.state==='read'&&r.id==='notify:security'&&r.kind==='Notify'&&r.key==='security'&&r.advisory==='GHSA-7q4h-9x2m-5c8v'&&r.numbers.length===0;})());
2786
+
t('⭐ `Notify: security` under `To: security#1` reads to the security seat (a bare lane `seatKey` spells) with the advisory\'s opaque id and nothing else — it names no card, so `numbers` is empty',(()=>{constr=readMailboxLine(DB.sec);returnr.state==='read'&&r.to==='security#1'&&r.id==='notify:security'&&r.kind==='Notify'&&r.key==='security'&&r.advisory==='GHSA-7q4h-9x2m-5c8v'&&r.numbers.length===0&&readMailboxLine(MSG('Notify: security · GHSA-7q4h-9x2m-5c8v','security')).to==='security#1';})());
2787
2787
t('⛔ `Notify: security` carrying free text, a second field, a card number, an upper-case or short id, or no id at all is unreadable — nothing but the opaque id rides the doorbell',['Notify: security · see the advisory','Notify: security · GHSA-7q4h-9x2m-5c8v · packages/x/src/door.ts','Notify: security · GHSA-7q4h-9x2m-5c8v · see the advisory','Notify: security · #28001','Notify: security · GHSA-7Q4H-9X2M-5C8V','Notify: security · GHSA-7q4h-9x2m','Notify: security'].every((l)=>readMailboxLine(MSG(l)).state==='unreadable'));
2788
2788
t('⭐ every key of the table is named, as `Kind: key` in a code span, in the protocol text (`references/project-forms.md` 〈信箱 PR〉), and that section names NO other key — the table in both directions — and points at `--mailbox-keys` for the full spellings',(()=>{constforms=readFileSync(newURL('../../.claude/skills/pm-dispatch/references/project-forms.md',import.meta.url),'utf8');constat=forms.indexOf('\n## 信箱 PR\n');constsection=at<0 ? '' : forms.slice(at+1).split(/\n##/)[0];constnamed=newSet([...section.matchAll(/`(Request|Notify):([a-z-]+)`/g)].map((m)=>`${m[1]}: ${m[2]}`));consttable=newSet(MAILBOX_KEYS.map((k)=>`${k.kind}: ${k.key}`));returnsection!==''&&named.size===table.size&&[...table].every((k)=>named.has(k))&§ion.includes('--mailbox-keys');})());
2789
2789
t('⭐ every template, sent VERBATIM, is not an event — a placeholder (`#n`, `SHA`, `LANE#N`, `p0 or p1`, `TRIGGER_ID`, `ID`) never reads as one',MAILBOX_KEYS.every((k)=>readMailboxLine(MSG(k.template)).state==='unreadable'));
@@ -2802,7 +2802,7 @@ export async function selfTest() {
2802
2802
t('a seat with no number reads as seat 1 (`triage` → `triage#1`, as `seatKey` spells it), and the `LANE#N` placeholder itself does not',(()=>{constr=readMailboxLine(MSG('Notify: split · triage · takes: none · leaves: none'));returnr.seat.lane==='triage'&&r.seat.n===1&&r.seat.key==='triage#1'&&readMailboxLine(MSG('Notify: split · LANE#N · takes: none · leaves: none')).state==='unreadable';})());
2803
2803
t('⭐ a key\'s `LANE#N` field is read with `seatKey` — ONE seat grammar (#27891): a well-formed `domain:X#N` reads as before, carries its canonical `key`, and is read lower-cased',(()=>{constr=readMailboxLine(DB.on);constu=readMailboxLine(MSG('Notify: seat-online · Domain:Skills#2 · os-bill · mailbox #27120 · patrol none · takes: none'));returnr.state==='read'&&r.seat.key==='domain:skills#2'&&r.seat.lane==='domain:skills'&&r.seat.n===2&&u.state==='read'&&u.seat.key==='domain:skills#2';})());
2804
2804
t('⛔ the short form `skills#2` is refused in a key field, the same as on `To:` — the key does not spell its template',['Notify: seat-online · skills#2 · os-bill · mailbox #27120 · patrol none · takes: none','Notify: seat-offline · skills#2 · in-flight: none · stay-behind: none · brief 6450022222','Notify: split · skills#2 · takes: none · leaves: none','Notify: split · server · takes: none · leaves: none'].every((l)=>{constr=readMailboxLine(MSG(l));returnr.state==='unreadable'&&/doesnotspell/.test(r.reason);})&&readMailboxLine('To: skills#2\nRequest: urgent-triage · #27047 · x').state==='refused');
2805
-
t('⛔ a `domain:` lane named after a reserved lane word is refused in a key field and on `To:` alike — its slug would be another seat\'s',['domain:triage','domain:director#2','domain:repo-cloud#1'].every((seat)=>readMailboxLine(MSG(`Notify: split · ${seat} · takes: none · leaves: none`)).state==='unreadable'&&readMailboxLine(`To: ${seat}\nRequest: urgent-triage · #27047 · x`).state==='refused')&&readMailboxLine(MSG('Notify: split · domain:triage-tools#1 · takes: none · leaves: none')).seat.key==='domain:triage-tools#1');
2805
+
t('⛔ a `domain:` lane named after a reserved lane word is refused in a key field and on `To:` alike — its slug would be another seat\'s',['domain:triage','domain:director#2','domain:repo-cloud#1','domain:security#1'].every((seat)=>readMailboxLine(MSG(`Notify: split · ${seat} · takes: none · leaves: none`)).state==='unreadable'&&readMailboxLine(`To: ${seat}\nRequest: urgent-triage · #27047 · x`).state==='refused')&&readMailboxLine(MSG('Notify: split · domain:triage-tools#1 · takes: none · leaves: none')).seat.key==='domain:triage-tools#1');
2806
2806
t('⭐ `To: <seat>` reads as the addressed seat\'s canonical key (`seatKey`\'s), beside the key\'s own fields — `to` never shadows a key\'s own `seat`',(()=>{constr=readMailboxLine(DB.sp);returnr.to==='domain:skills#1'&&r.seat.lane==='domain:skills'&&r.seat.n===2&&readMailboxLine(DB.ut).to==='triage#1'&&readMailboxLine(MSG('Notify: split · triage · takes: none · leaves: none','Domain:UI#4')).to==='domain:ui#4';})());
2807
2807
t('⛔ a key on the FIRST line — the shape a mailbox took before the seat key — is REFUSED, naming the missing `To:`',['Notify: split · domain:skills#2 · takes: none · leaves: none',`Request: contract-review · PR #26766 · head ${HO_HEAD} · x`].every((l)=>{constr=readMailboxLine(l);returnr.state==='refused'&&/`To:<seat>`/.test(r.reason)&&typeofr.line==='string';}));
2808
2808
t('⛔ a `To:` naming a login, or no seat at all, is REFUSED — a login is not a seat',['os-bill','marchtian','','domain:ui#0','ui 4'].every((to)=>{constr=readMailboxLine(`To: ${to}\nRequest: urgent-triage · #27047 · x`);returnr.state==='refused'&&/namesnoseat/.test(r.reason);}));
0 commit comments