carlos / platform Public

Fleet secrets key Task 0: copy deck (FSK-C01 to C70, all pending) and its gate

The deck lists every user-facing string of the fleet secrets key plan,
grouped by owning task. The gate is approved_rootfs_copy_test.go's four
tests on this deck's path and id prefix, with an empty built list, plus
an en dash check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 3ab89eeabb64a6c382c4a7ad21666bf201f91ced parent d77f479
2 files changed, +284 −0
  • approved_fleet_secrets_copy_test.go +123 −0
  • docs/superpowers/plans/2026-10-29-fleet-secrets-key-copy.md +161 −0

Intent

Human

<cross-session-message from="uds:/run/user/1001/cc-socks/1118974.sock" from-name="platform-01" from-mode="bypass"> Release coordination on carlos/platform: is a release or roll worth cutting now, or should it wait for your work? Main is three console-only commits past v0.30.2: 1c5db50 (Analytics tab overhaul + Overview traffic card, mine, just merged), 0c39af30 and 89491675 (billing UI). I'm asking platform-46, platform-81 and platform-1d. Please reply with: (1) what you are working on; (2) whether you expect to merge to main in the next few hours, and anything that should ride the same release; (3) whether you are mid-release or mid-roll right now, or on a box or console whose roll this would disturb. A one-line answer is fine. If you're the one cutting releases today, say so and I'll leave it to you. </cross-session-message>

Human

<cross-session-message from="uds:/run/user/1001/cc-socks/1118974.sock" from-name="platform-01" from-mode="bypass"> FYI: v0.30.3 is being cut now from main 1c5db50e and rolled dev then flagship by platform-01's release agent (log: ~/.cache/release-v0.30.3/roll-log.md). The brief keeps sophie's console.service.d/store.conf and checks it before and after, and expects r10r/box-1 to self-update. Please don't start another release or roll until I say it's done. </cross-session-message>

Human

<cross-session-message from="uds:/run/user/1001/cc-socks/1118974.sock" from-name="platform-01" from-mode="bypass"> Heads-up: sophie's role carlos-dev-host has hit an explicit deny on s3:DeleteObject since 2026-10-29T07:56:58Z, which probably came with this morning's dev object storage change. The deny is in the inline policy carlos-dev-host-store: DeleteBucket, DeleteObject and CreateBucket on carlos-dev-640012953448/* and carlos-dev-ie-640012953448/*. It now 403s the activator's final-checkpoint lease delete, the status-tick lease release, the logship prune, the metrics flush, the registry snapshot prune and litestream L0 retention, at 3 to 10 an hour. leo (carlos-dev-host-b) and dennis are clean. This is the same shape as the lease DeleteObject outage (memory lease-deleteobject-outage). The deny needs scoping to the tenant store buckets, not the deployment bucket. The v0.30.3 release agent found it during the dev roll and didn't touch IAM. I'm telling Paul; any fix to IAM in the dev account needs his approval first. </cross-session-message>

Attributed to this commit: 34.5 g CO₂e (4,375,156 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-fleet-secrets-key, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/approved_fleet_secrets_copy_test.go b/approved_fleet_secrets_copy_test.go
new file mode 100644
index 000000000..ff45d7fbf
--- /dev/null
+++ b/approved_fleet_secrets_copy_test.go
@@ -0,0 +1,123 @@
+// approved_fleet_secrets_copy_test.go
+package main
+
+import (
+ "os"
+ "regexp"
+ "strings"
+ "testing"
+)
+
+// The copy gate of the fleet secrets key feature (amadan carlos/platform
+// #366, plan 2026-10-29-fleet-secrets-key.md Task 0), over its one deck. It is
+// approved_rootfs_copy_test.go's gate with this deck's path and id prefix:
+//
+// - TestFleetSecretsCopyRecordIsComplete: the deck names exactly
+// fleetSecretsCopyIDs;
+// - TestFleetSecretsCopyHasNoEmDash: no em dash and no en dash in a text;
+// - TestFleetSecretsCopyBuiltIsApproved: an id in fleetSecretsCopyBuilt is
+// an approved row, so no pending string reaches code or docs;
+// - TestFleetSecretsCopyBuiltIsApplied: a built row's text is in the file it
+// names.
+const fleetSecretsCopyRecordPath = "docs/superpowers/plans/2026-10-29-fleet-secrets-key-copy.md"
+
+// Canonical ids only: two digits from C01 to C99, three digits from C100. No
+// leading zero on a three-digit id, no C00.
+var fleetSecretsCopyIDPattern = regexp.MustCompile(`^FSK-C(0[1-9]|[1-9][0-9]{1,2})$`)
+
+// fleetSecretsCopyIDs is the deck's inventory, pinned as a literal list in the
+// deck's order. A struck row stays in it: the deck keeps the row for history.
+var fleetSecretsCopyIDs = []string{
+ "FSK-C01", "FSK-C02", "FSK-C03", "FSK-C04",
+ "FSK-C05", "FSK-C06", "FSK-C07", "FSK-C08",
+ "FSK-C09", "FSK-C10", "FSK-C11", "FSK-C12",
+ "FSK-C13", "FSK-C14", "FSK-C15", "FSK-C16",
+ "FSK-C17", "FSK-C18", "FSK-C19", "FSK-C20",
+ "FSK-C21", "FSK-C22", "FSK-C23", "FSK-C24",
+ "FSK-C25", "FSK-C26", "FSK-C27", "FSK-C28",
+ "FSK-C29", "FSK-C30", "FSK-C31", "FSK-C32",
+ "FSK-C33", "FSK-C34", "FSK-C35", "FSK-C36",
+ "FSK-C37", "FSK-C38", "FSK-C39", "FSK-C40",
+ "FSK-C41", "FSK-C42", "FSK-C43", "FSK-C44",
+ "FSK-C45", "FSK-C46", "FSK-C47", "FSK-C48",
+ "FSK-C49", "FSK-C50", "FSK-C51", "FSK-C52",
+ "FSK-C53", "FSK-C54", "FSK-C55", "FSK-C56",
+ "FSK-C57", "FSK-C58", "FSK-C59", "FSK-C60",
+ "FSK-C61", "FSK-C62", "FSK-C63", "FSK-C64",
+ "FSK-C65", "FSK-C66", "FSK-C67", "FSK-C68",
+ "FSK-C69", "FSK-C70",
+}
+
+// fleetSecretsCopyStatuses are the statuses the deck may carry: the rootfs
+// deck's three, so a superseded row can be struck rather than deleted.
+var fleetSecretsCopyStatuses = []string{"pending", "approved", "struck"}
+
+// fleetSecretsCopyBuilt is every id whose text the code or docs carry. The
+// task that writes a row's text adds its id here in the same commit, once the
+// row is approved. Nothing is built yet: Task 0 writes the deck only.
+var fleetSecretsCopyBuilt = []string{}
+
+func mustParseFleetSecretsRecord(t *testing.T) []copyRow {
+ t.Helper()
+ raw, err := os.ReadFile(fleetSecretsCopyRecordPath)
+ if err != nil {
+ t.Fatal(err)
+ }
+ rows, err := parseCopyTableStatuses(string(raw), fleetSecretsCopyRecordPath, fleetSecretsCopyIDPattern, "an FSK-C<nn>", fleetSecretsCopyStatuses...)
+ if err != nil {
+ t.Fatal(err)
+ }
+ return rows
+}
+
+func TestFleetSecretsCopyIDPattern(t *testing.T) {
+ for _, ok := range []string{"FSK-C01", "FSK-C99", "FSK-C100"} {
+ if !fleetSecretsCopyIDPattern.MatchString(ok) {
+ t.Errorf("%s refused", ok)
+ }
+ }
+ for _, bad := range []string{"FSK-C1", "FSK-C00", "FSK-C001", "FSK-C1000", "FSK-1-C01", "RFS-1-C01", "fsk-c01"} {
+ if fleetSecretsCopyIDPattern.MatchString(bad) {
+ t.Errorf("%s accepted", bad)
+ }
+ }
+}
+
+func TestFleetSecretsCopyRecordIsComplete(t *testing.T) {
+ reportAll(t, checkMovesInventory(mustParseFleetSecretsRecord(t), fleetSecretsCopyIDs))
+}
+
+func TestFleetSecretsCopyHasNoEmDash(t *testing.T) {
+ rows := mustParseFleetSecretsRecord(t)
+ reportAll(t, checkMovesNoEmDash(rows))
+ for _, r := range rows {
+ if strings.ContainsRune(r.Text, '\u2013') {
+ t.Errorf("%s: the text holds an en dash", r.ID)
+ }
+ }
+}
+
+func TestFleetSecretsCopyBuiltIsApproved(t *testing.T) {
+ reportAll(t, checkRunBuilt(mustParseFleetSecretsRecord(t), fleetSecretsCopyBuilt))
+}
+
+// fleetSecretsAppliedText is a row's text as the code prints it: the deck
+// writes a newline as a literal backslash-n, and Markdown needs a backslash
+// before a pipe inside a table cell, which Go must not print.
+func fleetSecretsAppliedText(s string) string {
+ return strings.NewReplacer(`\n`, "\n", `\|`, "|").Replace(s)
+}
+
+func TestFleetSecretsCopyAppliedTextUnescapes(t *testing.T) {
+ if got, want := fleetSecretsAppliedText(`a \| b\nc`), "a | b\nc"; got != want {
+ t.Errorf("fleetSecretsAppliedText = %q, want %q", got, want)
+ }
+}
+
+func TestFleetSecretsCopyBuiltIsApplied(t *testing.T) {
+ rows := builtRows(mustParseFleetSecretsRecord(t), fleetSecretsCopyBuilt)
+ for i := range rows {
+ rows[i].Text = fleetSecretsAppliedText(rows[i].Text)
+ }
+ reportAll(t, checkRunApplied(rows, "."))
+}
diff --git a/docs/superpowers/plans/2026-10-29-fleet-secrets-key-copy.md b/docs/superpowers/plans/2026-10-29-fleet-secrets-key-copy.md
new file mode 100644
index 000000000..deb494916
--- /dev/null
+++ b/docs/superpowers/plans/2026-10-29-fleet-secrets-key-copy.md
@@ -0,0 +1,161 @@
+# Fleet secrets key: copy deck
+
+Every user-facing string of the fleet secrets key feature (amadan carlos/platform
+#366, spec `docs/superpowers/specs/2026-10-29-fleet-secrets-key-design.md`, plan
+`docs/superpowers/plans/2026-10-29-fleet-secrets-key.md`). The gate is
+`approved_fleet_secrets_copy_test.go` at the repo root, which reads this deck
+in the format of `2026-10-28-console-budget-copy.md`: columns id, file, text,
+status. Ids are `FSK-C01` upward, never renumbered.
+
+Every row is `pending`. Task 0 Step 4 (the controller) sends the deck through
+copy review; rows come back `approved` with their final text. No later task
+writes a row that is not `approved`, and each adds its ids to
+`fleetSecretsCopyBuilt` in the commit that writes them.
+
+The rules:
+
+- The file cell is the exact repo-relative file the owning task writes the
+ string into. The parenthesis after it names the owning task, and where it
+ says "a fragment" the text is a piece of a larger literal (the gate checks it
+ sits inside some string literal of the file, not in a comment).
+- Rows are grouped by task, in id order.
+- A `\n` in a text is a line break inside one literal. A pipe inside a text is
+ written `\|`, because Markdown needs it escaped in a table cell and Go must
+ not print the backslash.
+- No em dashes and no en dashes. A pause is a full stop and a new sentence.
+- Console and CLI output is lower case, as `fleets.go` and `appconfig_cli.go`
+ are. The console's pages (the BYO page, the fleet page) and the docs are
+ sentence case, as those pages are.
+- The word is "sealed" ("seal"), because `secretsUsage` ("seal and set one or
+ more secrets") and `docs/site/cli.md` ("Sealing uses a public key") already
+ say it.
+- Left out on purpose: error fragments wrapped for logs, JSON keys,
+ diagnostics, the background walks' log lines (a keyless fleet in a walk is
+ skipped with a log line, spec §5.2), and the console's existing 404 for an
+ unknown fleet (the CLI words it, FSK-C24).
+
+Placeholders: `<fleet>` a fleet name (`<name>` on the BYO and fleet pages,
+which already call it that); `<app>` an app name; `<apps>` app names, comma
+separated; `<var>` a variable name; `<vars>` variable names, comma separated;
+`<fp>` a fingerprint, `sha256:` and 64 hex characters; `<pubkey>` a base64
+public key; `<key>` a base64 private key; `<path>` a file path; `<reason>` a
+reason word from the box (`store_error`, for instance); `<n>` a whole number;
+`<value>` a secret's value.
+
+Calls the deck makes that the spec leaves open (also in the Task 0 report):
+the command is `carlos email rotate` (there is no `carlos mail rotate`);
+FSK-C55 uses a full stop where spec §5.7 has a semicolon; the stale list is
+printed by the CLI from the door's `stale` answer, one line per app, with the
+console-minted names on their own line.
+
+## Task 3: the registration door, the BYO line, the fleet page
+
+| id | file | text | status |
+|---|---|---|---|
+| FSK-C01 | internal/console/fleetsecretskey.go (a fragment: the purpose handed to apiOwnerAccountFor, which reads "only an account owner can ", Task 3) | set a fleet's secrets key | pending |
+| FSK-C02 | internal/console/fleetsecretskey.go (Task 3) | that is not a public secrets key. use the CARLOS_SECRETS_PUBKEY value that carlos secrets genkey prints | pending |
+| FSK-C03 | internal/console/fleetsecretskey.go (Task 3) | that is the platform's own secrets key, and a fleet needs its own. mint a new pair with carlos secrets genkey and register its public half | pending |
+| FSK-C04 | internal/console/fleetsecretskey.go (Task 3) | another fleet already uses this secrets key, and every fleet needs its own. mint a new pair with carlos secrets genkey and register its public half | pending |
+| FSK-C05 | internal/console/fleetsecretskey.go (Task 3) | <fleet> already has a different secrets key, and these apps hold sealed values: <apps>. replacing the key would leave them unreadable. unset each app's secrets with carlos secrets unset --app <app> <var>, then run this again | pending |
+| FSK-C06 | internal/console/fleetsecretskey.go (Task 3) | the key was not recorded for <fleet> and nothing was changed. run carlos fleets secrets-key <fleet> <pubkey> again | pending |
+| FSK-C07 | internal/console/templates/fleet_byo.html (Configure the box, the host.env block; Task 3) | CARLOS_SECRETS_KEY=<private key from carlos secrets genkey, on your boxes only> | pending |
+| FSK-C08 | internal/console/templates/fleet_byo.html (Configure the box, after the host.env block; Task 3) | CARLOS_SECRETS_KEY is the private half of your fleet's secrets key. Make the pair with carlos secrets genkey, put the private half on every box and nowhere else, then restart the agent. Register the public half with carlos fleets secrets-key <name> <pubkey>. Until you do, apps on this fleet cannot hold secrets. | pending |
+| FSK-C09 | internal/console/templates/fleetdetail.html (heading; Task 3) | Secrets key | pending |
+| FSK-C10 | internal/console/templates/fleetdetail.html (no key registered; Task 3) | No secrets key yet. Apps on this fleet cannot hold secrets until you run carlos fleets secrets-key <name> <pubkey> from a terminal signed in to this console. | pending |
+| FSK-C11 | internal/console/templates/fleetdetail.html (key registered; Task 3) | Secrets for apps on this fleet are sealed to <fp>. Every box needs the matching private key as CARLOS_SECRETS_KEY in its host.env. | pending |
+
+## Task 4: the CLI commands
+
+| id | file | text | status |
+|---|---|---|---|
+| FSK-C12 | fleets.go (a fragment of fleetsUsage, the first line; Task 4) | usage: carlos fleets <create\|add-box\|rotate-token\|tag-box\|detach-box\|secrets-key\|ls> [flags] | pending |
+| FSK-C13 | fleets.go (a fragment of fleetsUsage, the secrets-key entry; Task 4) | secrets-key [--account <sqid\|name>] [--file <path>] <fleet> [<pubkey>]\n register the public half of the fleet's secrets key. every secret\n and credential for an app placed on the fleet is sealed to it.\n keep the private half in each box's host.env as CARLOS_SECRETS_KEY\n and nowhere else. make a pair with "carlos secrets genkey". only an\n account owner can run this. --file reads a CARLOS_SECRETS_PUBKEY=\n line or a bare key. | pending |
+| FSK-C14 | fleets.go (a fragment of fleetsUsage, the ls entry; Task 4) | list every fleet the account owns, with its secrets key and each box's label,\n status and tags. STALE counts the sealed values its boxes cannot\n open yet. | pending |
+| FSK-C15 | fleets.go (Task 4) | registered the secrets key for <fleet>. fingerprint <fp> | pending |
+| FSK-C16 | fleets.go (Task 4) | <fleet> already has this secrets key. fingerprint <fp>. nothing changed | pending |
+| FSK-C17 | fleets.go (Task 4) | these apps on <fleet> hold values its boxes cannot open yet: | pending |
+| FSK-C18 | fleets.go (Task 4) | <app>: <vars> | pending |
+| FSK-C19 | fleets.go (Task 4) | <app>: <vars> (minted by the console) | pending |
+| FSK-C20 | fleets.go (Task 4) | set each secret again with carlos secrets set --app <app> <var>=<value>. for a credential the console minted, run carlos store rotate --app <app> or carlos email rotate --app <app> | pending |
+| FSK-C21 | fleets.go (Task 4) | that is not a public secrets key. use the CARLOS_SECRETS_PUBKEY value that carlos secrets genkey prints | pending |
+| FSK-C22 | fleets.go (Task 4) | cannot read <path>. check the path, or pass the key as <pubkey> | pending |
+| FSK-C23 | fleets.go (Task 4) | pass the public key as <pubkey> or with --file <path>, one of the two | pending |
+| FSK-C24 | fleets.go (Task 4) | no fleet called <fleet> in this account. run carlos fleets ls to see yours | pending |
+| FSK-C25 | fleets.go (Task 4) | usage: carlos fleets secrets-key [--account <sqid\|name>] [--file <path>] <fleet> [<pubkey>] | pending |
+| FSK-C26 | fleets.go (a fragment of the fleets ls header; Task 4) | SECRETS KEY | pending |
+| FSK-C27 | fleets.go (a fragment of the fleets ls header; Task 4) | STALE | pending |
+| FSK-C28 | fleets.go (a fragment of the fleets ls row: no key registered, or no stale value; Task 4) | - | pending |
+| FSK-C29 | appconfig_cli.go (a fragment of secretsUsage, the commands list; Task 4) | fingerprint [--file <path>] print the fingerprint of the key in a host.env, never the key | pending |
+| FSK-C30 | appconfig_cli.go (a fragment of secretsUsage, the closing paragraph; Task 4) | genkey and fingerprint are always local, in both modes. | pending |
+| FSK-C31 | appconfig_cli.go (a fragment of secretsUsage, the closing paragraph; Task 4) | for an app placed on a fleet the console serves the fleet's own key, so leave\nCARLOS_SECRETS_PUBKEY unset. register that key with "carlos fleets secrets-key". | pending |
+| FSK-C32 | appconfig_cli.go (Task 4) | the secrets key in <path> has fingerprint <fp> | pending |
+| FSK-C33 | appconfig_cli.go (Task 4) | carlos fleets ls shows the first 12 characters after sha256: | pending |
+| FSK-C34 | appconfig_cli.go (Task 4) | <path> has no CARLOS_SECRETS_KEY. add the fleet's private key there as CARLOS_SECRETS_KEY=<key> and run carlos secrets fingerprint again | pending |
+| FSK-C35 | appconfig_cli.go (Task 4) | cannot read <path>. run this as a user who can read it, or name another file with --file <path> | pending |
+| FSK-C36 | appconfig_cli.go (Task 4) | the CARLOS_SECRETS_KEY in <path> is not a valid secrets key. make a new pair with carlos secrets genkey | pending |
+
+## Task 5: sealKeyFor, the config GET and PUT, the CLI's sealed_to
+
+| id | file | text | status |
+|---|---|---|---|
+| FSK-C37 | internal/console/sealkey.go (the message of errFleetNoSecretsKey; Task 5) | <fleet> has no secrets key, so apps placed on it cannot hold secrets. run carlos fleets secrets-key <fleet> <pubkey> with a key from carlos secrets genkey | pending |
+| FSK-C38 | internal/console/sealkey.go (Task 5) | no app called <app> in this account. check the name with carlos apps list | pending |
+| FSK-C39 | internal/console/apiconfig.go (Task 5) | <var> cannot be checked, because the carlos CLI that sealed it did not say which key it used, and <app> is placed on <fleet>. upgrade the carlos CLI and set <var> again | pending |
+| FSK-C40 | internal/console/apiconfig.go (Task 5) | <var> was sealed to a key that <fleet>'s boxes do not hold. unset CARLOS_SECRETS_PUBKEY in your terminal and set <var> again | pending |
+| FSK-C41 | internal/console/apiconfig.go (Task 5) | <var> was sealed to a key that this app's boxes do not hold. unset CARLOS_SECRETS_PUBKEY in your terminal and set <var> again | pending |
+| FSK-C42 | internal/console/apiconfig.go (Task 5) | <var> was sealed in an older format that <fleet>'s boxes do not accept. upgrade the carlos CLI and set <var> again | pending |
+| FSK-C43 | appconfig_cli.go (replaces the no-key refusal in secretsPubKeyAPI; Task 5) | the console serves no secrets key for <app>. if <app> is placed on a fleet, run carlos fleets secrets-key <fleet> <pubkey>. otherwise set CARLOS_SECRETS_PUBKEY in your terminal | pending |
+
+## Task 6: console-minted credentials
+
+| id | file | text | status |
+|---|---|---|---|
+| FSK-C44 | internal/console/apistore.go (the keyless-fleet arm of storeSealKey; Task 6) | <fleet> has no secrets key, so the console cannot deliver a store credential to <app> and will not mint one. run carlos fleets secrets-key <fleet> <pubkey> | pending |
+| FSK-C45 | internal/console/apimail.go (the keyless-fleet arm of mailSealKey; Task 6) | <fleet> has no secrets key, so the console cannot deliver an email credential to <app> and will not enable sending. run carlos fleets secrets-key <fleet> <pubkey> | pending |
+| FSK-C46 | internal/console/relayops.go (the keyless-fleet arm of the relay's key choice; Task 6) | <fleet> has no secrets key, so the console cannot deliver a relay key to <app> and will not issue one. run carlos fleets secrets-key <fleet> <pubkey> | pending |
+
+## Task 7: moves
+
+| id | file | text | status |
+|---|---|---|---|
+| FSK-C47 | internal/console/fleets.go (the shared check of placeAppTarget and claimAppWith; Task 7) | <app> has sealed values that its new boxes cannot open: <vars>. unset each with carlos secrets unset --app <app> <var>, run this command again, then set each again. afterwards run carlos store rotate --app <app> or carlos email rotate --app <app> for any credential the console minted | pending |
+
+## Task 8: direct-bucket mode
+
+| id | file | text | status |
+|---|---|---|---|
+| FSK-C48 | appconfig_cli.go (Task 8) | this account owns a fleet, and a direct write cannot tell which key <app> needs. unset CARLOS_DEPLOYMENT_BUCKET and CARLOS_DEPLOYMENT_DIR in your terminal and run carlos secrets set through a signed-in console | pending |
+| FSK-C49 | appconfig_cli.go (Task 8) | the CARLOS_SECRETS_PUBKEY in your terminal is a fleet's key, and a direct write must not seal to one. set it to the deployment's public key and run the command again | pending |
+| FSK-C50 | appconfig_cli.go (Task 8) | cannot check this bucket for fleet keys, so nothing was set. check your access to the bucket and run the command again | pending |
+
+## Task 9: refusals on instances list
+
+| id | file | text | status |
+|---|---|---|---|
+| FSK-C51 | instances_cli.go (the REASON cell for no_key; Task 9) | config refused: the box has no secrets key. add the fleet's private key to the box's host.env as CARLOS_SECRETS_KEY, then restart the carlos-edge service | pending |
+| FSK-C52 | instances_cli.go (the REASON cell for cannot_open; Task 9) | config refused: the box cannot open this app's secrets. run carlos secrets fingerprint on the box and compare it with carlos fleets ls. if they differ, fix CARLOS_SECRETS_KEY in host.env and restart the carlos-edge service. if they match, set the app's secrets again and rotate any credential the console minted | pending |
+| FSK-C53 | instances_cli.go (the REASON cell for key_unparseable; Task 9) | config refused: the box's CARLOS_SECRETS_KEY is not a valid key. put the fleet's private key in host.env and restart the carlos-edge service | pending |
+| FSK-C54 | instances_cli.go (the REASON cell for any other reason; Task 9) | config refused: <reason>. check the box's journal for config guard lines | pending |
+| FSK-C55 | instances_cli.go (the REASON cell when the box's list is capped; Task 9) | this box refused more instances than it reports. check its journal for config guard lines | pending |
+
+## Task 10: docs
+
+The fleets page of the plan is the `carlos fleets` section of `docs/site/cli.md`; there is no `docs/site/fleets.md`.
+
+| id | file | text | status |
+|---|---|---|---|
+| FSK-C56 | docs/site/cli.md (carlos fleets; Task 10) | An app on a fleet cannot hold a secret until the fleet has its own secrets key. The key is a pair. The private half stays on your fleet's boxes and the platform never sees it. The public half goes to the console, which seals every secret and credential for the fleet's apps to it. | pending |
+| FSK-C57 | docs/site/cli.md (carlos fleets; Task 10) | Make the pair with `carlos secrets genkey`. Put the private half in `/etc/carlos/host.env` on every box as `CARLOS_SECRETS_KEY`, then restart the agent with `systemctl restart carlos-edge`. Then register the public half. Only an account owner can do that. | pending |
+| FSK-C58 | docs/site/cli.md (carlos fleets; Task 10) | Register it with `carlos fleets secrets-key home <pubkey>`, or pass `--file` with a file that holds a `CARLOS_SECRETS_PUBKEY=` line or the bare key. The command prints the key's fingerprint. | pending |
+| FSK-C59 | docs/site/cli.md (carlos fleets; Task 10) | A key belongs to one fleet only, and it cannot be the platform's own. Registering the same key on the same fleet again changes nothing. | pending |
+| FSK-C60 | docs/site/cli.md (carlos fleets; Task 10) | If apps on the fleet already hold sealed values, the command lists them. They were sealed to another key, so the fleet's boxes cannot open them. Set each secret again with `carlos secrets set`, and run `carlos store rotate` or `carlos email rotate` for a credential the console minted. The STALE column of `carlos fleets ls` counts what is left. | pending |
+| FSK-C61 | docs/site/cli.md (carlos fleets; Task 10) | To check that a box holds the registered key, run `carlos secrets fingerprint` on the box. Its answer should start with the characters in the SECRETS KEY column of `carlos fleets ls`, which shows the first 12 after `sha256:`. | pending |
+| FSK-C62 | docs/site/cli.md (carlos fleets; Task 10) | You can replace a fleet's key only while none of its apps holds a sealed value. Unset those apps' secrets, register the new key, set the secrets again and rotate the credentials the console minted. If a key may have leaked, run `carlos fleets detach-box` on the box first. A detached box stops reading the platform's store. | pending |
+| FSK-C63 | docs/site/cli.md (carlos apps; Task 10) | `carlos apps place` refuses an app whose sealed values were sealed to a different key from the target's, and `carlos apps create --place` does the same for an app that already has config. The message lists the values. Unset them, place the app, then set them again and rotate any credential the console minted. | pending |
+| FSK-C64 | docs/site/cli.md (carlos secrets; Task 10) | An app placed on a fleet is sealed to the fleet's key, which `carlos secrets set` takes from the console. Leave `CARLOS_SECRETS_PUBKEY` unset in your terminal for it, and use a `carlos` CLI that knows about fleet keys, because the console refuses a secret from an older one. | pending |
+| FSK-C65 | docs/site/cli.md (carlos secrets; Task 10) | In direct-bucket mode, `carlos secrets set` refuses for any account that owns a fleet, because it cannot tell which key an app needs. Use a signed-in console instead. | pending |
+| FSK-C66 | docs/site/cli.md (carlos secrets; Task 10) | `carlos secrets fingerprint` prints the fingerprint of the `CARLOS_SECRETS_KEY` in `/etc/carlos/host.env`, or in the file you name with `--file`. It runs on your machine, calls no console and never prints the key. | pending |
+| FSK-C67 | docs/site/cli.md (carlos instances; Task 10) | When a box refuses an instance's config, REASON in `carlos instances list` says why and what to do. A box without a secrets key needs `CARLOS_SECRETS_KEY` in its `host.env` and a restart of the agent. A box that cannot open a secret needs its key compared with the fleet's, and the secrets set again if the keys match. | pending |
+| FSK-C68 | docs/site/rails.md (Ship it; Task 10) | A fleet needs its own secrets key before an app on it can hold a secret. carlos store create needs it too, because the console seals the store's credential to that key. If the fleet has none, register one first. [carlos fleets](/docs/cli#carlos-fleets) shows how. | pending |
+| FSK-C69 | docs/site/rails.md (Ship it; Task 10) | If carlos secrets set or carlos store create says the fleet has no secrets key, register the key and run the command again. If carlos instances list shows a config refusal, its REASON column says what to do. | pending |
+| FSK-C70 | docs/site/rootfs.md (Task 10) | A fleet app's secrets and its store credential are sealed to the fleet's own secrets key, so register one before the app needs a secret. [carlos fleets](/docs/cli#carlos-fleets) explains how. | pending |