carlos / platform Public

Fleet secrets key: whole-branch and census review brief, round 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 6271d4ca7b1bb917f6b798aa4761e430072cf4f9 parent 25f7e82
1 file changed, +37 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-secrets-key-branch.md +37 −0

CI failed — run details

Intent

Human

<task-notification> <task-id>ab1d42343e9f0ad16</task-id> <tool-use-id>toolu_017Y7msWLHHWqgPgbMeWLwcR</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/2d812478-ae68-44f2-8075-b2330abd5939/tasks/ab1d42343e9f0ad16.output</output-file> <status>completed</status> <summary>Agent "Update 9B8 record-write census inventory" 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. - Commit: 25f7e82a. The printed lock error was the expected hook error. The commit has the new layer file, a one-line change in `plan9_b8_census_test.go`, the two plan14 TSVs and the census card note. - Tests (sandbox off, TMPDIR=/tmp/g): `go test ./internal/provision/ -run 'Census|Plan14|Plan9' -count=1` gave `ok ... 15.649s`. `TestOnlySealKeyForBuildsSealers` gave `ok ... 7.443s`. - Inventory: the test's inventory is layered across files, so I added `internal/provision/fleet_secrets_key_census_test.go` (`fleetSecretsKeyWriteCensusInventory`, over `freshBox446WriteCensusInventory`). `plan9_b8_census_test.go` now calls it. The layer holds the nine re-pins, each with a reason comment, and panics if a re-pin changes a class or kind. No class or kind changed. - New site: `Server.recordFleetKeyFP` is `nonrecord`, `sel:Put`, copied from `writeFleetOwner`. - Digests: the test has no update flag, so I computed them with a scratch test that I have since deleted. - Concerns: none. `classifyFleetOwner` now admits an If-Match key append as well as the create, but it still writes nothing, so it stays `reference`. The census card and overlay were already in the tree and are committed here. - Report: `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-fleet-secrets-key/.superpowers/sdd/2026-10-29-fleet-secrets-key/task-11-census-report.md`</result> <usage><subagent_tokens>79249</subagent_tokens><tool_uses>14</tool_uses><duration_ms>124193</duration_ms></usage> </task-notification>

Attributed to this commit: 52.2 g CO₂e (6,756,930 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/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-secrets-key-branch.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-secrets-key-branch.md
new file mode 100644
index 000000000..906548bc8
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-secrets-key-branch.md
@@ -0,0 +1,37 @@
+# Review brief: fleet secrets key, whole branch and census, round 1 of 3
+
+Repo carlos/platform, branch `design-fleet-secrets-key`, commit named in your prompt.
+Under review: the diff `1c5db50e..<commit>` (merge base with main; `git diff 1c5db50e <commit>`), and the census proposal `docs/superpowers/notes/census-proposal-fleet-secrets-key.md` with its overlay `internal/provision/testdata/plan14-root-reads-fleet-secrets-key.tsv` and the 9B8 layer `internal/provision/fleet_secrets_key_census_test.go`.
+Authorities: the spec `docs/superpowers/specs/2026-10-29-fleet-secrets-key-design.md` (APPROVED rev 5, on this branch; its §2.1 binds) and the plan `docs/superpowers/plans/2026-10-29-fleet-secrets-key.md` (reviewed, three Astra rounds) as the argument; `AGENTS.md` ("The census", "Stopping rules", "Rules this repo has paid for"). Do not edit files.
+
+You are an independent reviewer from the other model family (the author is Claude). Two jobs in one pass.
+
+## Fixed: do not re-argue
+
+- Paul's rulings (2026-10-29, amadan #366): a per-fleet key; split invariant (I1 confidentiality hard, I2 availability best effort, spec §2.1); spec approved without a fourth round.
+- Every `Ruling:` line in `.superpowers/sdd/2026-10-29-fleet-secrets-key/rulings.txt` (worktree-local, read it there) is the controller's call; challenge one only with an I1 failure or a would-not-work failure.
+- Deferred minors are listed in `.superpowers/sdd/2026-10-29-fleet-secrets-key/deferred-minors.txt`; triage them (say which, if any, must be fixed before merge) but do not raise them again as new findings.
+
+## What to check
+
+1. I1 across the whole branch: any path by which a value for app X of account A is sealed to a key held by a box outside A's fleets and platform boxes: console doors and walks, the CLI in both modes, the key door, moves, forks, offline moves, the guard `TestOnlySealKeyForBuildsSealers` (is it tight enough to catch a NEW seal site?).
+2. Tenant boundaries: the key door (owner-only, unique key, 404 parity), the instance list's refusal join, the stale queries.
+3. Locks: `lockAccount` is non-reentrant; any path that takes it twice, or an app lock before it; any door that holds it across an unbounded wait.
+4. Behaviour changes for existing platform (non-fleet) apps: anything that refuses, re-seals or re-delivers what worked before on main (secrets set from an older CLI, store/mail/relay/scan, webhook rotate, plan storage, env fork, app create).
+5. The census: for every unit and envelope in the card, and every 9B8 re-pin, approve or reject with the lines you read. 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 root relies on; if a disposition is wrong for the unit's reads.
+6. Tests: do the security tests go through production wiring and bite (their mutations are in the task reports under `.superpowers/sdd/2026-10-29-fleet-secrets-key/task-*-report.md`)?
+
+## Severity
+
+- **P1**: unsafe (an I1 or tenant break), would not compile, a test fails, or it would not work. Blocks merge.
+- **P2**: wrong or missing. Fixed without reopening this review. (The census, and review of any newly changed security, root, termination or production-storage behaviour, still check the fix; see AGENTS.md, "Stopping rules".)
+- **P3**: clarity or polish. Follow-up list; never a reason for another round.
+
+A P1 states its failure scenario and the evidence (file:line). Name the invariant beside each finding. Do not raise a P2 to P1 to keep the review open.
+
+## Output
+
+1. Findings ranked P1, P2, P3, each with the file:line, the problem, the invariant and the fix.
+2. Census: one verdict line per card unit, per re-pinned envelope and per 9B8 re-pin: APPROVE or REJECT, citing the lines read.
+3. Deferred-minor triage: which must be fixed before merge.
+4. One verdict line: READY, READY AFTER FIXES (no P1), or NOT READY. A round with no P1 ends the review.