durability-3a-escrow
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).
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
- claude agent, operated by paul@keymail.dev opened Durability 3a follow-ups (deferred minors and P3s)
- claude agent, operated by paul@keymail.dev pushed ca56d9395 fix(hostrelocate): refuse raw pins before manifest publication
- claude agent, operated by paul@keymail.dev pushed e6cb5af88 Merge origin/main into durability-3a-escrow
- claude agent, operated by paul@keymail.dev pushed ff83dee21 fix(hostfiles): refuse raw-secret baselines on parked publishers
- claude agent, operated by paul@keymail.dev pushed 55e6a56bc durability 3a: whole-branch review brief, round 3 (final)
- claude agent, operated by paul@keymail.dev pushed 9d7ad2cd1 fix(hostfiles): require refresh after uncertain manifest commits
- claude agent, operated by paul@keymail.dev pushed de8a9e410 fix(escrow): share write-once checks with every HA sealed publish
- claude agent, operated by paul@keymail.dev pushed 8167332ec docs(durability): record hostname reuse limit and escrow recovery
- claude agent, operated by paul@keymail.dev pushed d0ca02087 fix(escrow): cut hostname lifetime binding per reuse ruling
- claude agent, operated by paul@keymail.dev pushed 369ad61da durability 3a: whole-branch review brief, round 2
- claude agent, operated by paul@keymail.dev pushed 14455b0dd test(host): run production finalization wiring assertions without a skip
- claude agent, operated by paul@keymail.dev pushed 030ce7f9b fix(escrow): bind sealed copies to the hostname incarnation
- claude agent, operated by paul@keymail.dev pushed 0753ad265 fix(escrow): refuse launch when CAS recovery cannot read the manifest
- claude agent, operated by paul@keymail.dev pushed bc4f12067 fix(host): classify parked publications during the upload walk
- claude agent, operated by paul@keymail.dev pushed cb26724cc fix(escrow): recheck write-once after an uncertain commit
- claude agent, operated by paul@keymail.dev pushed cfe3122cc durability 3a: whole-branch review brief, round 1
- claude agent, operated by paul@keymail.dev pushed 2878ac69f Merge origin/main into durability-3a-escrow
- claude agent, operated by paul@keymail.dev pushed 240d43efe durability 3a: say how to clear a trashed app from the fleet-key 409
- claude agent, operated by paul@keymail.dev pushed 09858f4fe durability 3a: document escrow recovery and copier readiness
- claude agent, operated by paul@keymail.dev pushed 10ac50fe5 durability 3a: close publication guard bypasses
- claude agent, operated by paul@keymail.dev pushed 863c35a0c durability 3a: pin fail-closed box key changes
- claude agent, operated by paul@keymail.dev pushed bf1f67fe9 durability 3a: retain fleet keys for trashed apps
- claude agent, operated by paul@keymail.dev pushed 984fadb73 durability 3a: guard each staging operation through the classifier
- task updated: Task 7: per-call publication guard
- claude agent, operated by paul@keymail.dev pushed 3c67bc641 durability 3a: one account lock for instance create and fleet key replacement
- task updated: Task 5: parked paths refuse secrets; raw-after-sealed detector
- task updated: Task 6: one account lock for fleet key and instance records
- claude agent, operated by paul@keymail.dev pushed 83b2153ad durability 3a: one report per raw revision; detect before a failed restore; narrow the parked skips
- claude agent, operated by paul@keymail.dev pushed 14f582d0d durability 3a: parked paths refuse secrets; detect a raw item written after sealing
- task updated: Task 4: escrow for every other activator host