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 c2792c0
Browse filesBrowse the repository at this point in the historyBrowse files
feat(pm): a mailbox message opens To: <seat>; the rules text names the seat key and the hand-over close
record-recognisers.mjs: `readMailboxLine` reads a `To: <seat>` line after
the optional signature and before the key, returns it as `to` (the
mailbox opener's canonical `seatKey`, imported, never a second seat
shape), and refuses a message without one, a `To:` naming a login, or a
`To:` with no key under it. The byte cap still counts the key line
only. The doorbell battery asks every key refusal under a `To:` line,
so none can pass on the missing envelope, and gains six cases.
mailbox-open.mjs: a seat's lane is one of the four a seat post names
(`domain:<x>`, `repo:<x>`, `triage`, `director`), so a login is never
read as a seat.
project-forms.md 〈信箱 PR〉 and the mailbox body now say the same thing:
one per seat, keyed by seat, branch `mailbox/<login>/<slug>`, body
`Mailbox-of: <seat> · <login>`, messages `To: <seat>` then the key.
seat-post-protocol.md 〈交接收尾清单〉 step 9 names the close and the
successor's reopen. Both files keep their line count.
Claude-Session: https://claude.ai/code/session_016WV4d1d1pooSGzvbJymLKy
Co-authored-by: Claude <noreply@anthropic.com>
/** The first lines a legacy per-login mailbox opened with: `To: <login>` (this file's), `Mailbox-of: <login>`. */
@@ -501,7 +504,7 @@ async function selfTest() {
501
504
t('no --repo is refused',parseArgs(['--seat','triage','--login','a']).errors.some((e)=>e.includes('--repo')),true);
502
505
t('a repo not shaped owner/name is refused',parseArgs(['--repo','nope','--seat','triage','--login','a']).errors.some((e)=>e.includes('owner/name')),true);
503
506
t('⭐ open without --seat is refused, naming why — the mailbox is the seat\'s, never the login\'s',parseArgs(['--repo','o/r','--login','os-bill']).errors.some((e)=>e.includes('--seat <seat> is required')&&e.includes('never the login')),true);
504
-
t('a --seat that is not LANE#N is refused',['ui 4','domain:ui#0','#4','domain:','domain:ui#4#5'].every((s)=>parseArgs(['--repo','o/r','--seat',s,'--login','a']).errors.some((e)=>e.includes('is not a seat'))),true);
507
+
t('a --seat that is not LANE#N is refused, a login among them',['ui 4','domain:ui#0','#4','domain:','domain:ui#4#5','os-bill','marchtian'].every((s)=>parseArgs(['--repo','o/r','--seat',s,'--login','a']).errors.some((e)=>e.includes('is not a seat'))),true);
505
508
t('open without --login is refused',parseArgs(['--repo','o/r','--seat','triage']).errors.some((e)=>e.includes('--login')),true);
506
509
t('a login GitHub would refuse is refused',parseArgs(['--repo','o/r','--seat','triage','--login','-bad--']).errors.some((e)=>e.includes('not a GitHub login')),true);
507
510
t('a seat whose branch is no legal ref is refused',parseArgs(['--repo','o/r','--seat','repo:a..b#1','--login','a']).errors.some((e)=>e.includes('not a legal ref')),true);
@@ -515,7 +518,7 @@ async function selfTest() {
515
518
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'}]);
516
519
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']);
517
520
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']);
518
-
t('not a seat ⇒ null',['','ui 4','domain:ui#0','#4','domain:',null].map(seatKey),[null,null,null,null,null,null]);
521
+
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','epic:#12'].map(seatKey),[null,null,null,null,null,null,null,null,null]);
519
522
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');
520
523
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']);
0 commit comments