carlos / platform Public

durability-3a-escrow

Human

Durability plan 3a (spec docs/superpowers/specs/2026-10-23-durability-design.md rev 4.3, plan docs/superpowers/plans/2026-10-30-durability-step3-escrow-fence-restore.md rev 3.1). Closes the new-write half of #477.

What changes. No release from 3a on writes <host>.env, instance.key or report.token to the bucket unsealed, born-HA hosts included. One classifier (internal/layout/pubclass) decides what a publication may carry and hands out the only value that can stage a sealed item. Sealed items are appconfig v2 envelopes bound to account and app, sealed to the box's own CARLOS_SECRETS_KEY, with a keyed digest. Every activator host gets an escrow at <hibernate prefix>/files/0/, published from the launch's one capture of the env and by a 30 s round-robin sweep. A box that lost an instance's env puts the sealed copy back instead of minting new secrets. Platform-minted values and the trio are write-once against the escrow (a differing value refuses the launch, alerts, and leaves <data>/.escrow/<host>.conflict). Parked claim/moves paths refuse secrets. A go/ast guard makes every staging call go through the classifier. Creating an instance, lifetime recovery and fleet key replacement share one account lock, and replacement is refused while the fleet has instances (trashed apps count).

Paul's rulings (2026-10-31). Rollback works as today: no latch or release floor. The off-account copier (step 7) is the one place that refuses raw secret items (pubclass.IsRawSecretItem). A box rolled back to an older release can publish a raw env again, and the detector reports it (operator page). Fleet key: one lock for create, recovery and replacement.

Controller ruling (2026-11-01). A box whose secrets key changes outside the console does not reseal. It fails closed: the old key goes back (TestABoxThatChangesKeyFailsClosed).

Rolling. An HA region's boxes roll together. 3a deletes nothing: the historical raw objects on dev's two born-HA hosts stay until the operator migration (3b), so #477 stays open.

Tested. Tasks 1-8 were built subagent-driven, with Astra implementing Tasks 6-8 and fix rounds. Per-task reviews: Astra on Tasks 3-5, Opus on 6-7, with fix rounds until approved. The ledger is .superpowers/sdd/2026-10-30-durability-step3-escrow-fence-restore/progress.md in the worktree. Witnesses are production-wired. Targeted package runs and -race once per task; cross-builds and census pass after merging main (seal 86911a5d). Copy DUR3A-C01..C02 approved by delegation (Luna). Next: CI, census review on #280, whole-branch Astra review, then Paul's merge go and the dev check (Task 8 Step 6).

Commits 35
Discussions 1 1 open
Tasks 5/8 done

Discussions 1 open

Tasks 5/8 done

  • Task 1: publish classifier and file inventory Done
  • Task 2: sealed platform items in hostfiles Done
  • Task 3: region HA publishes sealed items (#477) Done
  • Task 4: escrow for every other activator host Done
  • Task 5: parked paths refuse secrets; raw-after-sealed detector Done

Activity