carlos / platform Public

slice 3: docs, copy pin, census

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 22b83d07d8ef045cef54475406e6ccbd6ac8fc75 parent fa3c9ec
5 files changed, +35 −2
  • approved_fleet_seeded_copy_test.go +17 −1
  • docs/site/cli.md +3 −1
  • docs/superpowers/notes/census-proposal-fleet-seeded-create-3.md +11 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-fleet-seeded-create-3.tsv +3 −0

CI failed — run details

diff --git a/approved_fleet_seeded_copy_test.go b/approved_fleet_seeded_copy_test.go
index 514618d60..96508ef33 100644
--- a/approved_fleet_seeded_copy_test.go
+++ b/approved_fleet_seeded_copy_test.go
@@ -38,8 +38,24 @@ func TestApprovedFleetSeededCopy(t *testing.T) {
{"FS-42", "internal/console/seedfile_copy.go", "began seeding %s from a file (%s, %d bytes)"},
{"FS-43", "internal/console/seedfile_copy.go", "uploaded the seed file for %s"},
{"FS-25", "internal/console/seedfile_copy.go", "This deployment’s seeds floor does not allow seed files yet. An operator publishes it again with carlos system seeds-floor publish."},
+ {"FS-21", "internal/console/seedfile_copy.go", "fleet %s has more than one active box. A seeded instance needs a fleet with one active box for now."},
+ {"FS-22", "internal/console/seedfile_copy.go", "could not confirm every box in fleet %s. Try again in a minute."},
+ {"FS-23", "internal/console/seedfile_copy.go", "the platform on %s in fleet %s is below the seeds floor. Update it, then try again."},
+ {"FS-24", "internal/console/seedfile_copy.go", "claim control is on for %s in fleet %s. Seeded instances are not supported there yet."},
+ {"FS-26", "internal/console/seedfile_copy.go", "%s in fleet %s keeps all its instances in one shared directory. A seed file needs a box that keeps each instance in its own."},
+ {"FS-27", "internal/console/seedfile_copy.go", "the seed file on the box did not match the upload"},
+ {"FS-28", "internal/console/seedfile_copy.go", "the seed file on the box failed its integrity check"},
+ {"FS-29", "internal/console/seedfile_copy.go", "a copy of data already exists for this hostname"},
+ {"FS-30", "internal/console/seedfile_copy.go", "a copy of its data is still in the fleet’s storage"},
+ {"FS-33", "internal/console/seedfile_copy.go", "%s was not created. Its hostname is free again once its box has cleaned up."},
+ {"FS-34", "internal/console/seedfile_copy.go", "%s keeps its hostname while a copy of its data is still in the fleet’s storage, under %s. Remove everything there, and the hostname is free again after the box’s next pass."},
+ {"FS-35", "internal/console/seedfile_copy.go", "%s can’t be deleted permanently until its fleet box has cleaned up %s."},
+ {"FS-36", "internal/console/seedfile_copy.go", "%s/ (after the box’s CARLOS_HIBERNATE_PREFIX, if set)"},
+ {"FS-37", "internal/console/seedfile_copy.go", "moves/%s/"},
+ {"FS-38", "internal/console/seedfile_copy.go", "%s and %s"},
{"FS-40", "internal/activator/seedfleet.go", "%s could not start from its seed: a copy of data already exists for this hostname."},
- {"docs seed-file", "docs/site/cli.md", "To start a new instance from a SQLite database file you already have, add --seed-file. The file can be up to 4 GiB. The CLI uploads it, the console checks that it is a sound database, and the new instance starts from it the first time it wakes. This is for an app that runs in a region. You can't combine it with --from, and the new instance is an ordinary one, so --kind, --addr and --role don't apply. If the upload or the check fails, nothing is created, and the hostname is free again once its box has cleaned up."},
+ {"docs seed-file", "docs/site/cli.md", "To start a new instance from a SQLite database file you already have, add --seed-file. The file can be up to 4 GiB. The CLI uploads it, the console checks that it is a sound database, and the new instance starts from it the first time it wakes. This works for an app that runs in a region and for an app on a fleet of your own. You can't combine it with --from, and the new instance is an ordinary one, so --kind, --addr and --role don't apply. If the upload or the check fails, nothing is created, and the hostname is free again once its box has cleaned up."},
+ {"docs fleet seed-file", "docs/site/cli.md", "On a fleet of your own, the fleet must have exactly one active box, and that box must keep each instance in its own directory. If the upload or the check fails, or you delete the instance before it first wakes, the hostname stays taken until the fleet's box has cleaned up. If a copy of the data is still in the fleet's bucket, the hostname stays taken after that too, and the delete answer names where the copy is. Remove that host's copy from the fleet's bucket, and the hostname is free again on the box's next pass. For example, if fleet main holds a leftover copy of new.example.com, remove it from main's bucket."},
}
for _, row := range rows {
t.Run(row.key, func(t *testing.T) {
diff --git a/docs/site/cli.md b/docs/site/cli.md
index bd4a0d2e9..428ea03cf 100644
--- a/docs/site/cli.md
+++ b/docs/site/cli.md
@@ -1400,12 +1400,14 @@ carlos instances create --app shop --host canary.example.com --from www.example.
carlos instances create --app shop --host canary.example.com --from www.example.com --at 4211
```
-To start a new instance from a SQLite database file you already have, add --seed-file. The file can be up to 4 GiB. The CLI uploads it, the console checks that it is a sound database, and the new instance starts from it the first time it wakes. This is for an app that runs in a region. You can't combine it with --from, and the new instance is an ordinary one, so --kind, --addr and --role don't apply. If the upload or the check fails, nothing is created, and the hostname is free again once its box has cleaned up.
+To start a new instance from a SQLite database file you already have, add --seed-file. The file can be up to 4 GiB. The CLI uploads it, the console checks that it is a sound database, and the new instance starts from it the first time it wakes. This works for an app that runs in a region and for an app on a fleet of your own. You can't combine it with --from, and the new instance is an ordinary one, so --kind, --addr and --role don't apply. If the upload or the check fails, nothing is created, and the hostname is free again once its box has cleaned up.
```sh
carlos instances create --app shop --host new.example.com --seed-file shop.db
```
+On a fleet of your own, the fleet must have exactly one active box, and that box must keep each instance in its own directory. If the upload or the check fails, or you delete the instance before it first wakes, the hostname stays taken until the fleet's box has cleaned up. If a copy of the data is still in the fleet's bucket, the hostname stays taken after that too, and the delete answer names where the copy is. Remove that host's copy from the fleet's bucket, and the hostname is free again on the box's next pass. For example, if fleet main holds a leftover copy of new.example.com, remove it from main's bucket.
+
carlos instances import moves an instance the platform never ran onto the platform. Stop the old process, take a consistent snapshot of its database (VACUUM INTO works), and run the import with the address of the route it replaces. The console checks the file, the box swaps the route on its next pass, and from then until you commit, the host answers only requests that carry the verify token. With --verify, the CLI requests that path with the token and commits on a 2xx or aborts otherwise. Without it, the CLI prints the token and the two commands to finish by hand. Aborting puts the old route back exactly as it was.
```sh
diff --git a/docs/superpowers/notes/census-proposal-fleet-seeded-create-3.md b/docs/superpowers/notes/census-proposal-fleet-seeded-create-3.md
new file mode 100644
index 000000000..44c647e31
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-fleet-seeded-create-3.md
@@ -0,0 +1,11 @@
+# Census approval: fleet-seeded-create-3
+
+Ruling `census-ruling-fleet-seeded-create-3`. The independent reviewer approves or rejects every change below, 0 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+Envelopes re-pinned: `internal/provision`.
+
+Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
+
+Seal: `8a0a9cca336d3e695b79990a9aeda17f5ee8d74908752944f7dcd129918c80fc` → `8a0a9cca336d3e695b79990a9aeda17f5ee8d74908752944f7dcd129918c80fc`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-fleet-seeded-create-3.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 0af9c5c7a..15eb27557 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -267,3 +267,4 @@ plan14-root-reads-plan-domains-2a.tsv 89f2b0e097f2de04bcef403f0b4aaa7a56a17dc7d0
plan14-root-reads-edge-held-cap.tsv f06c832e5595b5a0c256639131d094a94da4505d0e64586813c357cb7eea8f33
plan14-root-reads-fleet-seeded-create-1.tsv 5ce0990b80e0447439484d36a7a87af70708aa5ce113491aecc09d87167277f0
plan14-root-reads-fleet-seeded-create-2.tsv 8a0a9cca336d3e695b79990a9aeda17f5ee8d74908752944f7dcd129918c80fc
+plan14-root-reads-fleet-seeded-create-3.tsv 8a0a9cca336d3e695b79990a9aeda17f5ee8d74908752944f7dcd129918c80fc
diff --git a/internal/provision/testdata/plan14-root-reads-fleet-seeded-create-3.tsv b/internal/provision/testdata/plan14-root-reads-fleet-seeded-create-3.tsv
new file mode 100644
index 000000000..e50973291
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-fleet-seeded-create-3.tsv
@@ -0,0 +1,3 @@
+# Census overlay fleet-seeded-create-3, written by census-propose (#369). census-ruling-fleet-seeded-create-3, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-fleet-seeded-create-3.md.
+# 0 body, 0 sites, 1 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+@coverage internal/provision 73245afe0bd5cf07ba7f8aeac19fbddc6eeac4bf0a95168e99486aeda1a86922