docs: #1139 plan, UX pass on the CLI output
Mocks for every state at 80 columns, with begin before the uploading line. Rows reworded where the layout read badly, and FS-14 to FS-17 added for sentences that named an import.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+120
−39
docs/superpowers/plans/2026-11-20-fleet-seeded-create.md+120 −39
diff --git a/docs/superpowers/plans/2026-11-20-fleet-seeded-create.md b/docs/superpowers/plans/2026-11-20-fleet-seeded-create.md| index 4dcea3474..acadb1017 100644 |
| --- a/docs/superpowers/plans/2026-11-20-fleet-seeded-create.md |
| +++ b/docs/superpowers/plans/2026-11-20-fleet-seeded-create.md |
| @@ -89,37 +89,114 @@ No code. One pass for every slice's copy, so the copy review sees the whole flow |
| **Files:** this plan (mocks, copy table). |
| -- [ ] **Step 1:** Render each mock below at 80 columns in a terminal (a scratch file under `$TMPDIR`). Check it against AGENTS.md "Every UI change gets a UX pass": state first, label/value pairs, about a dozen words, problems visible as a state. Fix what reads badly in the mocks and the copy table. |
| +- [x] **Step 1:** Render each mock below at 80 columns in a terminal (a scratch file under `$TMPDIR`). Check it against AGENTS.md "Every UI change gets a UX pass": state first, label/value pairs, about a dozen words, problems visible as a state. Fix what reads badly in the mocks and the copy table. |
| + |
| +The mocks use neutral names: app `shop`, host `new.example.com`, fleet `main`, boxes `box-1` and `box-2`. Each block is what the CLI prints; a terminal wraps a long line at 80 columns. A console refusal reads `instances create: <sentence>`, so most refusals wrap once, as their siblings (SD-N2, SD-N118) already do. |
| ``` |
| -$ carlos instances create --app push --host push.bdr.example.com --seed-file push.db |
| -uploading push.db (24 MB) |
| -checking push.db. A large database can take a few minutes. |
| -created instance push.bdr.example.com (channel stable) |
| - seeded from a file 3f2a9c1e0b7d, placed when it first starts |
| +# 1. Create, success, on a fleet. Begin answers before the first line prints. |
| +$ carlos instances create --app shop --host new.example.com --seed-file shop.db |
| +using https://console.example.com as you@example.com |
| +uploading shop.db (24.0MB) |
| +checking shop.db. A large database can take a few minutes. |
| +created instance new.example.com (channel stable, fleet main) |
| + seed file awaiting first start |
| the host comes live on the next reconcile pass on its box |
| -$ carlos instances list --app push |
| -HOST CHANNEL REGION SEED |
| -push.bdr.example.com stable fleet eleven seed file waiting for first start |
| -mail.bdr.example.com stable fleet eleven not created: a copy of data already exists for this hostname |
| -old.bdr.example.com stable fleet eleven not created: a copy of its data is still in the fleet’s storage |
| - |
| -$ carlos instances create --app push --host push.bdr.example.com --seed-file push.db |
| -instances create: b1, b2 in fleet eleven are below the seeds floor. Update the platform on those boxes, then try again |
| - |
| -$ carlos instances create --app push --host push.bdr.example.com --seed-file push.db |
| -uploading push.db (24 MB) |
| -checking push.db. A large database can take a few minutes. |
| +# On a region app only the place differs: |
| +created instance new.example.com (channel stable, the home region) |
| + |
| +# 2. Refused at begin. Nothing was uploaded, so there is no "uploading" line. |
| +$ carlos instances create --app shop --host new.example.com --seed-file shop.db |
| +using https://console.example.com as you@example.com |
| +instances create: the platform on box-2 in fleet main is below the seeds floor. Update it, then try again. |
| + |
| +# The CLI's own refusals (FS-2 and FS-14 come before the "using" line): |
| +instances create: --seed-file and --from can’t be used together |
| +instances create: a restore is a plain instance. Drop --seed-file. |
| +instances create: a seeded instance is an ordinary instance. Drop --kind, --addr and --role. |
| +instances create: could not read shop.db. Check the path and try again |
| +instances create: shop.db must be more than 0 bytes and at most 4 GiB |
| + |
| +# The console's begin refusals, fleet: |
| +instances create: shop places its instances in a pool, so it cannot take a seeded instance. |
| +instances create: fleet main has more than one active box. A seeded instance needs a fleet with one active box for now. |
| +instances create: could not confirm every box in fleet main. Try again in a minute. |
| +instances create: the platform on box-2 in fleet main is below the seeds floor. Update it, then try again. |
| +instances create: claim control is on for box-2 in fleet main. Seeded instances are not supported there yet. |
| +instances create: the layout of box-2 in fleet main is neither nested nor flat. Seed files need one of those. |
| +instances create: This deployment’s seeds floor predates seed files. An operator publishes it again with carlos system seeds-floor publish. |
| +instances create: This console runs with claim control on. Seeded instances are not supported here yet. |
| + |
| +# The console's begin refusals, region (FS-25 and SD-N8 as above): |
| +instances create: a seeded instance runs in this console’s region, the home region. To run new.example.com elsewhere, create it here and then run carlos move. |
| +instances create: Ireland has high availability turned on. seeded instances are not available there yet |
| +instances create: box-2 in the home region are below the seeds floor. Roll the platform there, then publish the seeds floor again. |
| +instances create: this console has no data bucket set up, so it cannot create a seeded instance. |
| + |
| +# Between slices 1 and 3 a fleet app keeps --from's answer: |
| +instances create: shop places its instances in a pool or on a fleet, so it cannot take a seeded instance. |
| + |
| +# 3. The upload or its check fails. |
| +$ carlos instances create --app shop --host new.example.com --seed-file shop.db |
| +using https://console.example.com as you@example.com |
| +uploading shop.db (24.0MB) |
| +checking shop.db. A large database can take a few minutes. |
| instances create: the upload is not a database that passes an integrity check, so it was not kept. |
| - the hostname stays taken until the fleet’s box has cleaned up |
| - |
| -$ carlos instances delete --app push --host push.bdr.example.com |
| -push.bdr.example.com is being deleted. Its hostname is free once its box has cleaned up. |
| + the hostname is free again once its box has cleaned up |
| + |
| +# The other endings after "uploading" (the indented line on a fleet only): |
| +instances create: the upload does not match the file this create began with, so it was not kept. |
| +instances create: checking the upload took longer than 30 minutes, so it was not kept. |
| +instances create: could not store the upload. Try again. |
| +instances create: the seed file was not kept, so new.example.com was not created. Try again |
| + the hostname is free again once its box has cleaned up |
| + |
| +# 4. The SEED column, one row per value (the columns between are left out). |
| +$ carlos instances list --app shop |
| +HOST SEED |
| +s1.example.com seed file awaiting upload |
| +s2.example.com seed file awaiting first start |
| +s3.example.com seeded from a file 3f2a9c1e0b7d |
| +s4.example.com aborting |
| +s5.example.com not created: the seed file on the box did not match the upload |
| +s6.example.com not created: the seed file on the box failed its integrity check |
| +s7.example.com not created: a copy of data already exists for this hostname |
| +s8.example.com not created: a copy of its data is still in the fleet’s storage |
| +s9.example.com not created: the upload is not a database that passes an integrity check, so it was not kept. |
| + |
| +# The box's log line for s7 (carlos logs): |
| +new.example.com could not start from its seed: a copy of data already exists for this hostname. |
| + |
| +# 5. Delete. |
| +# Before the first start (seed file awaiting upload or first start), 202: |
| +$ carlos instances delete --app shop --host new.example.com |
| +using https://console.example.com as you@example.com |
| +new.example.com is being deleted. Its hostname is free once its box has cleaned up. |
| + |
| +# Already deleted, or the seed failed (any reason but a copy in storage), 409: |
| +instances delete: new.example.com was not created. Its hostname is free again once its box has cleaned up. |
| + |
| +# A copy of its data is still in the fleet's storage (s8 above), 409: |
| +instances delete: new.example.com keeps its hostname because a copy of its data is still in the fleet’s storage. Remove the host’s copy from the fleet’s bucket, and the hostname is freed on the box’s next pass. |
| + |
| +# Placed, or already cleaned up: the ordinary answer, unchanged. |
| +deleted instance new.example.com — its route retires on the next reconcile pass; parked data stays |
| + |
| +# Deleting the app permanently from the Trash (console, and the trash sweep's log): |
| +shop can’t be deleted permanently until its fleet box has cleaned up new.example.com, old.example.com. |
| ``` |
| -- [ ] **Step 2:** The begin call goes before the `uploading` line. Today's import prints `uploading` first (`instances_import.go:203`), so a begin refusal would follow an upload line that never happened. Record that order in the mocks. |
| -- [ ] **Step 3:** Commit the plan edit: `docs: #1139 plan, UX pass on the CLI output`. |
| +What the pass changed, and why: |
| +- **Begin before the first line** (step 2). A refusal at begin now follows only the `using` line. |
| +- **The success block.** The indented line is `seedCell`'s own value (FS-8), as `--from` prints, not a sentence of its own. The created line carries the place (`fleet main`), as `instanceCreatedLine` prints it today. |
| +- **The SEED cells lead with the seed's state, in the siblings' words**: FS-7 and FS-8 read as `import awaiting upload` and `awaiting stop` do. The box's reasons (FS-27, FS-28) are cut to fit a cell. "so it was not used" repeated what `not created:` already says. The longest new cell is 63 characters. The reused upload sentences (s9) run past 80 in a cell, as an import's `refused:` cell does today; the list is wider than 80 columns anyway (13 columns before SEED). |
| +- **One box, not several.** D8 means a fleet refusal almost always names one box, and "box-2 in fleet main are below" is wrong for one. FS-23, FS-24 and FS-26 are reworded so the verb agrees with one box or many, with the placeholders in the same order. |
| +- **FS-12 is an indented continuation line**, like `the host comes live …` under a create, and says when the hostname is free, not that it is taken. FS-33 no longer says "already being deleted": most of its cases (FS-27, FS-28, an upload failure) are seeds that failed, not deletes. FS-35 is shown on the console's Trash page, where the button says "Delete now" and the words are "delete permanently", so "purged" goes. |
| +- **Four sentences that read wrong for a seed file get rows**: FS-14 (`--restore` with `--seed-file`; the restore sentence names `--from` only), FS-15 (the import's region sentence says "import it here, commit it"), FS-16 (the HA sentence says "imports"), FS-17 (SD-N51 says "this import began with"). |
| + |
| +- [x] **Step 2:** The begin call goes before the `uploading` line. Today's import prints `uploading` first (`instances_import.go:203`), so a begin refusal would follow an upload line that never happened. The mocks above record that order: block 2 has no `uploading` line. |
| +- [x] **Step 3:** Commit the plan edit: `docs: #1139 plan, UX pass on the CLI output`. |
| ### Task 2: Copy review (all slices) |
| @@ -210,8 +287,8 @@ type seedImportReq struct { |
| } |
| // beginFileSeed: seedOneDoorRefusal and seedCommonRefusal have already run |
| // in the create door. Then: file seeds refuse a pool (FS-20) and an HA |
| -// region (refuseHAImport). A region record must be in this console's region |
| -// (the import's sentence). Then seedFileReady, size and sha256 |
| +// region (refuseHAImport's check, FS-16's sentence). A region record must be |
| +// in this console's region (the import's check, FS-15's sentence). Then seedFileReady, size and sha256 |
| // (importShapeRefusal without replaces), private storage as the import |
| // does, then the record as reserving, kind file, SHA256 and Bytes set, no |
| // Replaces and no VerifyHash. Answers 201 with the record view. A fleet |
| @@ -228,7 +305,7 @@ func (s *Server) seedFileReady(ctx context.Context, region string) *doorRefusal |
| - `importGate` gains an `upload bool` argument. Only the PUT passes true, and only the PUT accepts a `file` seed. Stopped, commit and abort still answer SD-N59 for a file seed. |
| - `staleUploadRefusal`: a `file` seed waits for its upload while it is `reserving`. |
| - **Upload readiness dispatches on the kind (plan R1-3).** `handleAPIImportUpload` re-checks readiness at `apiinstanceimport.go:416` with `seedRegionReady(..., true)`, whose `true` refuses a region with more than one box (`seedfloor.go:97`). An import keeps exactly that call. A region `file` seed calls `seedFileReady` instead (no one-box rule), and a fleet `file` seed calls `seedFleetReady` (Task 16). Test: `TestFileSeedRegionTwoBoxesBeginThroughUpload`, a non-HA region with two ready boxes, begin then PUT, both succeed. |
| -- `runImportUpload` dispatches on `seed.Kind`. The check, the deadlines and the sentences stay the same. For a file seed: put to `s.cfg.SeedData` at `seeds.SnapshotKey`, then `SeedPublishFile`. On failure, `SeedAbortFileUploadBecause`. |
| +- `runImportUpload` dispatches on `seed.Kind`. The check, the deadlines and the sentences stay the same, except that a file seed's length or sha256 mismatch answers FS-17 in place of SD-N51. For a file seed: put to `s.cfg.SeedData` at `seeds.SnapshotKey`, then `SeedPublishFile`. On failure, `SeedAbortFileUploadBecause`. |
| - `seedStale`: a `file` seed `reserving` for more than `seedReserveTTL` is stale, as `--from` (design §3.3). |
| - `seedfinish.go:124`: `KindFile` joins `KindReplica` for the region replica delete. `deleteSeedReplica` already skips anything outside this console's data bucket (`:270`). |
| @@ -266,7 +343,7 @@ func (s *Server) seedFileReady(ctx context.Context, region string) *doorRefusal |
| // fleet-placed record. Then the created line and seedCell. |
| func (s *apiSession) runSeedFileCreate(ctx context.Context, w io.Writer, a apiAcct, app, host, region, channel, environment, file, message string) error |
| ``` |
| -- `--seed-file` with `--from` is refused (FS-2). With `--kind`, `--addr` or `--role` the existing SD-N36 answers. With `--restore` the existing restore sentence answers. All of these come back through the one shared seeded-create call's `log.Fatalf`, so the ratchet count stays at 6. |
| +- `--seed-file` with `--from` is refused (FS-2). With `--kind`, `--addr` or `--role` the existing SD-N36 answers. With `--restore`, FS-14 answers (the existing restore sentence names `--from` only). All of these come back through the one shared seeded-create call's `log.Fatalf`, so the ratchet count stays at 6. |
| - `seedCell` gains the `file` rows: FS-7 to FS-10. |
| - [ ] **Step 1: Failing tests** (an `httptest` console in the shape of `instances_import_test.go`): |
| @@ -285,7 +362,7 @@ func (s *apiSession) runSeedFileCreate(ctx context.Context, w io.Writer, a apiAc |
| **Model:** Sonnet for steps 1 to 4. Fable for the branch review. Astra for the census verdict. |
| -- [ ] **Step 1:** Create `approved_fleet_seeded_copy_test.go` in the shape of `approved_platform_accounts_copy_test.go`. Pin every row this slice wires (FS-1 to FS-12, FS-20, FS-25 and the docs row). `go test . -run '^TestApprovedFleetSeededCopy' -count=1`: PASS. |
| +- [ ] **Step 1:** Create `approved_fleet_seeded_copy_test.go` in the shape of `approved_platform_accounts_copy_test.go`. Pin every row this slice wires (FS-1 to FS-12, FS-14 to FS-17, FS-20, FS-25 and the docs row). `go test . -run '^TestApprovedFleetSeededCopy' -count=1`: PASS. |
| - [ ] **Step 2: Census.** `make census-card`. Write CLAIMS: `internal/seeds/seeds.go` and `floor.go` (constants, no read); `internal/provision/seed.go` (new transitions and `Unfinished`, no read); `internal/provision/reconcile.go` and `seedreconcile.go` (the kind check, no new read); root package files (new flag and command path, no root read). Then `make census-propose NAME=fleet-seeded-create-1 CLAIMS=<file>`. |
| - [ ] **Step 3:** `make code-health` (PASS, then `make code-health-record` for the `apimode.go` move), `gofmt -l .` (empty), both cross-builds. |
| - [ ] **Step 4:** Push to amadan. Describe the branch (`amadan branch describe`). |
| @@ -709,13 +786,14 @@ Order (AGENTS.md "rollout order"; design §6): boxes, then the floor, then the c |
| | FS-4 | %s must be more than 0 bytes and at most 4 GiB | pending | |
| | FS-5 | uploading %s (%s) | reused (the import's line, `instances_import.go:203`) | |
| | FS-6 | checking %s. A large database can take a few minutes. | pending | |
| -| FS-7 | (SEED cell, reserving) uploading a seed file | pending | |
| -| FS-8 | (SEED cell, ready) seed file waiting for first start | pending | |
| +| FS-7 | (SEED cell, reserving) seed file awaiting upload | pending | |
| +| FS-8 | (SEED cell, ready) seed file awaiting first start | pending | |
| | FS-9 | (SEED cell, placed) seeded from a file %s | pending | |
| | FS-10 | (SEED cell, aborted with a reason) not created: %s | pending | |
| | FS-11 | the seed file was not kept, so %s was not created. Try again | pending | |
| -| FS-12 | the hostname stays taken until the fleet’s box has cleaned up | pending | |
| +| FS-12 | (indented line under FS-11 or an upload's reason, fleet only) the hostname is free again once its box has cleaned up | pending | |
| | FS-13 | %s is being deleted. Its hostname is free once its box has cleaned up. | pending (console sends, CLI prints) | |
| +| FS-14 | a restore is a plain instance. Drop --seed-file. | pending (new, UX pass: `--restore` with `--seed-file`) | |
| | — | a seeded instance is an ordinary instance. Drop --kind, --addr and --role. | reused (SD-N36) | |
| | — | (create success line and "the host comes live on the next reconcile pass on its box") | reused | |
| @@ -723,20 +801,23 @@ Order (AGENTS.md "rollout order"; design §6): boxes, then the floor, then the c |
| | id | text | status | |
| |---|---|---| |
| +| FS-15 | a seeded instance runs in this console’s region, %s. To run %s elsewhere, create it here and then run carlos move. | pending (new, UX pass: a region record outside this console's region, in place of SD-N118) | |
| +| FS-16 | %s has high availability turned on. seeded instances are not available there yet | pending (new, UX pass: in place of `haImportSentence` for a file seed) | |
| +| FS-17 | the upload does not match the file this create began with, so it was not kept. | pending (new, UX pass: in place of SD-N51 for a file seed) | |
| | FS-20 | %s places its instances in a pool, so it cannot take a seeded instance. | pending | |
| | FS-21 | fleet %s has more than one active box. A seeded instance needs a fleet with one active box for now. | pending | |
| | FS-22 | could not confirm every box in fleet %s. Try again in a minute. | pending | |
| -| FS-23 | %s in fleet %s are below the seeds floor. Update the platform on those boxes, then try again. | pending | |
| -| FS-24 | %s in fleet %s run with claim control on. Seeded instances are not supported there yet. | pending | |
| +| FS-23 | the platform on %s in fleet %s is below the seeds floor. Update it, then try again. | pending | |
| +| FS-24 | claim control is on for %s in fleet %s. Seeded instances are not supported there yet. | pending | |
| | FS-25 | This deployment’s seeds floor predates seed files. An operator publishes it again with carlos system seeds-floor publish. | pending | |
| -| FS-26 | %s in fleet %s run instances in a layout seeds do not support. | pending | |
| -| FS-27 | the file on the box did not match its upload, so it was not used | pending (Seed.Reason) | |
| -| FS-28 | the file is not a database that passes an integrity check, so it was not used | pending (Seed.Reason) | |
| +| FS-26 | the layout of %s in fleet %s is neither nested nor flat. Seed files need one of those. | pending | |
| +| FS-27 | the seed file on the box did not match the upload | pending (Seed.Reason) | |
| +| FS-28 | the seed file on the box failed its integrity check | pending (Seed.Reason) | |
| | FS-29 | a copy of data already exists for this hostname | design §3.6 (Seed.Reason) | |
| | FS-30 | a copy of its data is still in the fleet’s storage | design §3.6 (Seed.Reason) | |
| -| FS-33 | %s is already being deleted. Its hostname is free once its box has cleaned up. | pending | |
| +| FS-33 | %s was not created. Its hostname is free again once its box has cleaned up. | pending | |
| | FS-34 | %s keeps its hostname because a copy of its data is still in the fleet’s storage. Remove the host’s copy from the fleet’s bucket, and the hostname is freed on the box’s next pass. | pending | |
| -| FS-35 | %s can’t be purged yet: %s still hold their hostnames until their fleet box has cleaned up. | pending | |
| +| FS-35 | %s can’t be deleted permanently until its fleet box has cleaned up %s. | pending (the Trash page's "Delete now", and the trash sweep's log) | |
| | — | the upload is not a database that passes an integrity check, so it was not kept. (and the other upload sentences) | reused (SD-N52, SD-N61, SD-N67) | |
| | — | %s places its instances in a pool or on a fleet, so it cannot take a seeded instance. | reused, unchanged, for `--from` and import | |