carlos / platform Public

Fleet secrets key copy: unescape the backticks the Luna rewrites carried into six deck rows and the docs (render as code, not literal backticks); no wording change

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 44bc9cd46e5cdb23ec4f973b8718019c5f3a05a7 parent 8c5193d
4 files changed, +13 −13
  • README.md +1 −1
  • docs/site/cli.md +4 −4
  • docs/site/rails.md +2 −2
  • docs/superpowers/plans/2026-10-29-fleet-secrets-key-copy.md +6 −6

Intent

Human

<task-notification> <task-id>aeaa83e62224be3b0</task-id> <tool-use-id>toolu_01Q5B6NaU4C3Mb2dBJctrHSA</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/2d812478-ae68-44f2-8075-b2330abd5939/tasks/aeaa83e62224be3b0.output</output-file> <status>completed</status> <summary>Agent "Implement Task 10: box witnesses and docs" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>Status: DONE_WITH_CONCERNS Commit: 8c5193d2 (the packed-refs.lock hook error printed; `git log` confirms the commit exists) Tests: `TestFleetBox*` in `internal/host/fleet_secrets_key_test.go` pass with no box code change. Five mutations (wrong recipient, matching key given to each refusal box, `CanProvideConfig` stubbed to nil, edges-loop skip disabled) each fail the witness they target. The copy gates (`Copy|Applied|Built`) and the docsite tests, including the Rails drift test, pass. Cross-compile is clean. Concerns: 1. The deck rows C57, C62, C65, C67, C68 and C69 contain literal backslash-backtick. I wrote them byte for byte, so they render as plain backticks, not code. The deck needs fixing if that matters. 2. No row exists for a heading, for the `--file` usage line, or for restarting `carlos-instance-control`, so I added none. I added no heading and put the fleets text under "carlos fleets" in `docs/site/cli.md`, because `docs/site/fleets.md` does not exist. 3. Not fixed, outside this task: the store door answers 404 to a fleet box's config-ack write. Rendering is unaffected, but Task 11 will see "config ack ... 404" in the log. 4. No existing `internal/host` test runs an agent over a store door. I built a real edge door in the host package, and the box is built from the same environment `runAgent` uses. `TestFleetBoxWritesNoEdgesFile` is new because `TestShouldSkipPublisherElection` only pins the predicate, not the loop. Report: /home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-fleet-secrets-key/.superpowers/sdd/2026-10-29-fleet-secrets-key/task-10-report.md</result> <usage><subagent_tokens>153182</subagent_tokens><tool_uses>45</tool_uses><duration_ms>475638</duration_ms></usage> </task-notification>

Attributed to this commit: 39.7 g CO₂e (5,071,593 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/README.md b/README.md
index 8a2c51d27..46047c144 100644
--- a/README.md
+++ b/README.md
@@ -626,7 +626,7 @@ exactly two places, your secret manager and every host's
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.
-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\`. Register the public half with \`carlos fleets secrets-key <name> <pubkey>\`. Only an account owner can do that.
+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`. Register the public half with `carlos fleets secrets-key <name> <pubkey>`. Only an account owner can do that.
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.
diff --git a/docs/site/cli.md b/docs/site/cli.md
index 5fca803a6..d46b0d227 100644
--- a/docs/site/cli.md
+++ b/docs/site/cli.md
@@ -890,7 +890,7 @@ pair, and it is always local to your terminal.
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.
-In direct-bucket mode, \`carlos secrets set\` refuses for any account that owns a fleet, because it cannot tell which key an app needs. Unset \`CARLOS_DEPLOYMENT_BUCKET\` and \`CARLOS_DEPLOYMENT_DIR\`, sign in with \`carlos auth login\`, and run \`carlos secrets set\` through the console.
+In direct-bucket mode, `carlos secrets set` refuses for any account that owns a fleet, because it cannot tell which key an app needs. Unset `CARLOS_DEPLOYMENT_BUCKET` and `CARLOS_DEPLOYMENT_DIR`, sign in with `carlos auth login`, and run `carlos secrets set` through the console.
`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.
@@ -950,7 +950,7 @@ build that failed there is tried again, as a canary:
carlos instances retry --app hello shop-1.hello.example.com
```
-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 with \`systemctl restart carlos-edge\`. A box that cannot open a secret needs its key compared with the fleet's using \`carlos secrets fingerprint\` and \`carlos fleets ls\`. If the keys match, run \`carlos secrets set\` for the listed values and rotate any credential the console minted.
+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 with `systemctl restart carlos-edge`. A box that cannot open a secret needs its key compared with the fleet's using `carlos secrets fingerprint` and `carlos fleets ls`. If the keys match, run `carlos secrets set` for the listed values and rotate any credential the console minted.
For a rootfs app, RUNTIME says `rootfs`, or `rootfs, hibernates` for an instance that sleeps when idle. WORKERS counts the instance's running workers out of the ones it declares, and names a worker that keeps crashing. A binary instance shows `binary` and a dash.
@@ -2073,7 +2073,7 @@ stops it.
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.
-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\`. Register the public half with \`carlos fleets secrets-key <name> <pubkey>\`. Only an account owner can do that.
+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`. Register the public half with `carlos fleets secrets-key <name> <pubkey>`. Only an account owner can do that.
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.
@@ -2083,7 +2083,7 @@ If apps on the fleet already hold sealed values, the command lists them. They we
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:`.
-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, first run \`carlos fleets detach-box <fleet> <label>\`. A detached box stops reading the platform's store.
+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, first run `carlos fleets detach-box <fleet> <label>`. A detached box stops reading the platform's store.
### carlos services
diff --git a/docs/site/rails.md b/docs/site/rails.md
index 524131958..7fc012a96 100644
--- a/docs/site/rails.md
+++ b/docs/site/rails.md
@@ -175,7 +175,7 @@ carlos promote --app shop v1
carlos instances create --app shop --host shop.k3x.example.com
```
-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 it with \`carlos fleets secrets-key <fleet> <pubkey>\`. [carlos fleets](/docs/cli#carlos-fleets) shows how.
+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 it with `carlos fleets secrets-key <fleet> <pubkey>`. [carlos fleets](/docs/cli#carlos-fleets) shows how.
Ship before you create the instance. An app's first release makes it a rootfs app, and an instance takes that, and whether it hibernates, from the release when it is created.
@@ -186,7 +186,7 @@ carlos instances list --app shop
carlos logs --app shop -f
```
-If \`carlos secrets set\` or \`carlos store create\` says the fleet has no secrets key, register it with \`carlos fleets secrets-key <fleet> <pubkey>\` and run the command again. If \`carlos instances list\` shows a config refusal, its REASON column says what to do.
+If `carlos secrets set` or `carlos store create` says the fleet has no secrets key, register it with `carlos fleets secrets-key <fleet> <pubkey>` and run the command again. If `carlos instances list` shows a config refusal, its REASON column says what to do.
carlos run does not reach rootfs instances yet.
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
index 0cff5c03c..35b023b3b 100644
--- a/docs/superpowers/plans/2026-10-29-fleet-secrets-key-copy.md
+++ b/docs/superpowers/plans/2026-10-29-fleet-secrets-key-copy.md
@@ -144,17 +144,17 @@ The fleets page of the plan is the `carlos fleets` section of `docs/site/cli.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. | approved |
-| 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\`. Register the public half with \`carlos fleets secrets-key <name> <pubkey>\`. Only an account owner can do that. | approved |
+| 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`. Register the public half with `carlos fleets secrets-key <name> <pubkey>`. Only an account owner can do that. | approved |
| 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. | approved |
| 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. | approved |
| 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. | approved |
| 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:`. | approved |
-| 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, first run \`carlos fleets detach-box <fleet> <label>\`. A detached box stops reading the platform's store. | approved |
+| 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, first run `carlos fleets detach-box <fleet> <label>`. A detached box stops reading the platform's store. | approved |
| 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. | approved |
| 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. | approved |
-| 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. Unset \`CARLOS_DEPLOYMENT_BUCKET\` and \`CARLOS_DEPLOYMENT_DIR\`, sign in with \`carlos auth login\`, and run \`carlos secrets set\` through the console. | approved |
+| 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. Unset `CARLOS_DEPLOYMENT_BUCKET` and `CARLOS_DEPLOYMENT_DIR`, sign in with `carlos auth login`, and run `carlos secrets set` through the console. | approved |
| 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. | approved |
-| 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 with \`systemctl restart carlos-edge\`. A box that cannot open a secret needs its key compared with the fleet's using \`carlos secrets fingerprint\` and \`carlos fleets ls\`. If the keys match, run \`carlos secrets set\` for the listed values and rotate any credential the console minted. | approved |
-| 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 it with \`carlos fleets secrets-key <fleet> <pubkey>\`. [carlos fleets](/docs/cli#carlos-fleets) shows how. | approved |
-| 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 it with \`carlos fleets secrets-key <fleet> <pubkey>\` and run the command again. If \`carlos instances list\` shows a config refusal, its REASON column says what to do. | approved |
+| 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 with `systemctl restart carlos-edge`. A box that cannot open a secret needs its key compared with the fleet's using `carlos secrets fingerprint` and `carlos fleets ls`. If the keys match, run `carlos secrets set` for the listed values and rotate any credential the console minted. | approved |
+| 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 it with `carlos fleets secrets-key <fleet> <pubkey>`. [carlos fleets](/docs/cli#carlos-fleets) shows how. | approved |
+| 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 it with `carlos fleets secrets-key <fleet> <pubkey>` and run the command again. If `carlos instances list` shows a config refusal, its REASON column says what to do. | approved |
| 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. | approved |