Repository navigation
Closed
Description
My rule: there is never a Crew without its Captain. Whatever happens to the Captain happens to its live Crews. Settle the Captain and every seat settles; archive it and every seat archives; bring it back and the Crew comes back with it. This replaces the earlier direction for this issue (an archive touches one agent, and a Crew could outlive its Captain), which I've dropped.
Where it stands today:
CrewCaptainArchiveCascade.tsalready retires a Captain's live Crews when its thread is archived or deleted, with a boot sweep for events the server missed.- Settling or unsettling a Captain touches only the Captain, so the Fleet page can show a settled Captain whose seats are still Active.
- Unarchiving a Captain brings back the Captain alone. The Crews its archive retired stay retired, and their seat threads stay archived.
- A seat can't be archived on its own (
crewSeatArchiveGuard.ts, FORK.md case 37). That stays.
What should change:
- Settle: a Captain's
thread.settled, whether by hand or by the settlement sweep, settles every seat of its live Crews. - Unsettle: a Captain's
thread.unsettledunsettles every seat of its live Crews. - Unarchive: a Captain's
thread.unarchivedbrings back every Crew that its archive retired: the Crew is live again and each seat thread is unarchived. A Crew retired on its own througharchive_crewor Archive crew stays retired, so the Crew records why it retired. - Boot sweep: also settles the seats of a settled Captain and brings back Crews whose Captain was unarchived while the server was down. Unsettle is event-only, because a settled seat under an unsettled Captain can't tell the sweep which came first.
- Unchanged: archive and delete keep cascading, a lone seat is still refused, and no new Crew or seat is approved under an archived Captain.
- Docs: crews.md (Lifecycle, AC17, AC19, AC20, which says a retired Crew can never be reactivated), the Fleet page definition, and the Crews section of
docs/user/personas.md.
Tests to ship:
- settling a Captain settles every seat, and unsettling it unsettles them
- unarchiving a Captain restores the Crews its archive retired, seat threads included, and leaves a Crew retired by
archive_crewretired - the boot sweep settles the seats of a settled Captain and restores Crews under an unarchived Captain
- replaying an event converges on the same commands
Done when every Captain lifecycle step (archive, delete, settle, unsettle, unarchive) moves its whole Crew, and each one has a way back.
Related criteria: crews.md AC17, AC19, AC20; fleet-page AC31, AC32. Follows #271, #279, #313 and #300 in the stack.
Metadata
Metadata
Assignees
Labels
size:L100-499 effective changed lines (test files excluded in mixed PRs).
Activity
[-]Archive touches one agent: remove the Captain-to-Crew cascade and the lone-seat guard[/-][+]A Crew's lifecycle follows its Captain[/+]Jacksondr5 commentedon Sep 26, 2026
Ratified (Jackson, 2026-09-26): a Crew follows its Captain through archive, delete, unarchive, settle and unsettle.
ThreadSettlementService: "Blocked-on-you work must never park").fix(crews): a Captain's archive, restore, and settle each run once wi…
docs(crews): a Captain's settle and restore match the cascade as built
fix(crews): a Crew follows its Captain through every lifecycle step (#…
feat(crews): custom seats default to Full access and the roster flags…