alta-adopt: runbook says stop and review; no journal-edit exception
The state database is never edited, replaced or deleted by hand. A failed Plan A before the seed is a stop: leave the database as it is and get a recovery procedure reviewed first; the obsolete fresh-database recovery is gone. Failed and stopped states stay closed until a reviewed procedure, and the stop list names the new codes (identity-changed, receipt-mismatch, receipt-malformed). The rollback row says it rereads the host before the unset and the restart.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+15
−15
README.md+15 −15
diff --git a/README.md b/README.md| index 8e6d899..1c4676b 100644 |
| --- a/README.md |
| +++ b/README.md |
| @@ -260,8 +260,7 @@ config file carries. |
| (`--carlos-token-fd 3 3<token-file`), held in memory and zeroed on exit. |
| It is never in the environment, the config or the state database. |
| - **The state database** is the run's journal and Alta's operator stream. |
| - Back it up after each session. Never edit or delete it by hand, with one |
| - exception (Plan A failing before the seed, below). |
| + Back it up after each session. Never edit, replace or delete it by hand. |
| - Gated on CARLOS 522 Plan 1 (conditional writes and |
| `restart/scope`) being on the production console, and, for the live |
| checks, on oficina-connect being live with |
| @@ -354,15 +353,11 @@ run it again if it stops (`status` shows where every run is). |
| ### When a step stops |
| -- **Plan A fails before the team is seeded.** Home then holds no team, and |
| - the runner has no way to restart a failed Plan A. The ruled recovery |
| - (2026-11-16) is a fresh state database, with the old one kept aside. |
| - Nothing at Home needs undoing: an owner-seed receipt expires after |
| - 300 s and an unconfirmed plan after 15 minutes. As the runner stands, |
| - though, a fresh journal does not hold Alta's directory stream, so the |
| - pre-plan-a preflight refuses it (`directory-stream-foreign`), and |
| - `plan-a` needs that preflight. Stop and get the procedure reviewed |
| - before trying this. |
| +- **Plan A fails before the team is seeded.** Stop. Home then holds no |
| + team, and the runner has no way to restart a failed Plan A. Nothing at |
| + Home needs undoing: an owner-seed receipt expires after 300 s and an |
| + unconfirmed plan after 15 minutes. Leave the state database as it is, |
| + and get a recovery procedure reviewed before doing anything else. |
| - **Plan A's window closes after the seed.** Run `plan-a --apply` again: |
| it opens a continuation (`add-apps` for the seeded SQID) that provisions |
| and registers only the apps still missing. Confirm it on both pages and |
| @@ -373,9 +368,14 @@ run it again if it stops (`status` shows where every run is). |
| same `configure --app <a> --apply` again. It rereads the console and |
| continues from the journal: a write that landed is found, never sent |
| twice; the baseline is never retaken. A restart may be repeated. |
| -- **A stop** (`preserved-changed`, `agent-keys-conflict`, |
| - `agent-keys-foreign`) is final for that app until someone has looked at |
| - the console. The runner never unsets a value it did not write. |
| +- **A stop** (`preserved-changed`, `identity-changed`, |
| + `agent-keys-conflict`, `agent-keys-foreign`, `receipt-mismatch`, |
| + `receipt-malformed`) is final for that app: every resume refuses again, |
| + and the runner never unsets a value it did not write. Look at the |
| + console first. |
| +- **Failed and stopped states stay closed.** A failed run, a stopped write |
| + or rollback and a failed live check are never cleared by the runner. |
| + Going past one needs a reviewed procedure first. |
| - **A live check fails.** Plan C stays refused for good: a failure means |
| revocation or membership is not enforced. Investigate before anything |
| else. |
| @@ -395,7 +395,7 @@ run it again if it stops (`status` shows where every run is). |
| | 4 | `directory.seed-team` `oficina` / "Oficina", Paul as owner | Home directory | None (nothing is deleted). The team is inert without a live instance, and the label is reserved. | |
| | 5 | `directory.provision-consumer` ×6 | Home directory | `alta-adopt disable --app <a> --apply`: a retire-apps plan, then `directory.disable-consumer`. | |
| | 6 | `credential.register-consumer` ×6 (verify only, nothing inserted) | Home credential | None needed. | |
| -| 7 | Conditional `PUT /config` of `<P>_AGENT_ISSUER` and `<P>_AGENT_TEAM`, one per app | CARLOS `oficina`, the canonical host's layer | `rollback-config --app <a> --apply`: a journalled conditional unset that refuses foreign values, **then the scoped restart (dry run first)**. Complete only when the probe shows the old operations shape again. | |
| +| 7 | Conditional `PUT /config` of `<P>_AGENT_ISSUER` and `<P>_AGENT_TEAM`, one per app | CARLOS `oficina`, the canonical host's layer | `rollback-config --app <a> --apply`: a journalled conditional unset that refuses foreign values, **then the scoped restart (dry run first)**. Before the unset and before the restart it rereads the host, and stops if the instance or any preserved key has changed since the baseline. Complete only when the probe shows the old operations shape again. | |
| | 8 | `POST …/restart/scope {"host"}` after its dry run, one per app | CARLOS, that host only | Restart again after the rollback. | |
| | 9 | `directory.verify-consumer` per app | Home directory | Expires after 600 s. | |
| | 10 | `directory.activate-consumer` per app | Home directory | Immediately: row 7's rollback, which stops delegated access at the app. Then `disable`. A revoke at connect also works. | |