carlos / platform Public

Managed fleets 1b: branch review R3 READY; census approved

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 2e7500385daf6002da196f56a524b1e3bc03c8de parent 984b589
1 file changed, +25 −0
  • docs/superpowers/plans/CODEX-FINDINGS-MANAGED-FLEETS-1B-BRANCH-R3.md +25 −0

CI failed — run details

diff --git a/docs/superpowers/plans/CODEX-FINDINGS-MANAGED-FLEETS-1B-BRANCH-R3.md b/docs/superpowers/plans/CODEX-FINDINGS-MANAGED-FLEETS-1B-BRANCH-R3.md
new file mode 100644
index 000000000..d2727757a
--- /dev/null
+++ b/docs/superpowers/plans/CODEX-FINDINGS-MANAGED-FLEETS-1B-BRANCH-R3.md
@@ -0,0 +1,25 @@
+**P1 — Invalid fleet identity bypasses assignment validation — ADDRESSED.** `fleetWakeFor` distinguishes invalid fleet identity from a genuine non-fleet box, including fleet placement with `CARLOS_FLEET` unset (`internal/host/fleetidentity.go:111`). `runAgent` installs that state unconditionally and logs invalid identity (`internal/host/agent.go:582`). Labelled wakes refuse invalid identity or a missing reader (`internal/activator/wakeidentity.go:208`). The caller logs the refusal and returns the acquired lease before restore or start (`internal/activator/activator.go:2597`).
+
+**Regression check — PASS by inspection.** `TestInvalidFleetIdentityRefusesLabelledWakes` retains the labelled row and matching marker after moving the record; it asserts zero starts, one acquisition, lease release, the identity diagnostic and unchanged local data (`internal/activator/pendingwake_linux_test.go:679`). The non-fleet case still starts with zero record reads (`internal/activator/pendingwake_linux_test.go:588`). `TestFleetWakeForTheBoxEnvironment` exercises the resolver and the exact helper wired into `runAgent`, including invalid `CARLOS_FLEET_BOX` and missing `CARLOS_FLEET` (`internal/host/fleetwake_test.go:17`).
+
+**Census — APPROVE `type Service`, retaining `authority/B,C,D,F,J4`.** The replacement field records explicit fleet state without adding a read or expanding root authority (`internal/activator/activator.go:1268`).
+
+**Census — APPROVE `runAgent`, retaining `authority/B,C,D,F`.** Wiring uses the existing identity and deployment store; invalid identity adds refusal and diagnostics without granting authority (`internal/host/agent.go:582`).
+
+**Census — APPROVE `Service.routeCurrentUnderLease`, retaining `legacy/accepted-legacy`.** Existing registry and record checks remain; invalid state and nil readers refuse. No additional root-controlled operation or writable input is authorized (`internal/activator/wakeidentity.go:194`).
+
+**Census envelopes — APPROVE `.`, `internal/activator`, and `internal/host`.** Changes comprise CLI wording, fleet-state declarations and constructors, refusal handling, and environment classification; none expands root authority (`fleets.go:82`, `internal/activator/wakeidentity.go:150`, `internal/host/fleetidentity.go:111`).
+
+**Census seal check — PASS.** Card and chain both identify `9207129a3dcf4f8600e8893293653b98056cc073845a400a04080a8d5c322ab7` (`docs/superpowers/notes/census-proposal-managed-fleets-1b.md:75`, `internal/provision/testdata/plan14-root-reads-chain.tsv:46`).
+
+**Test-report check — PASS with reported-results limitation.** The report names the covering tests, supplies failing-before excerpts, and summarizes passing activator and host runs as 161.2s and 18.4s. Assertions match the fix; these results were not independently reproduced (`.superpowers/sdd/2026-10-30-managed-fleets-1b-box-per-instance/final-fix-report.md:276`).
+
+**New Breakage in the Fix Diff — None.**
+
+**Out-of-Scope Observations — None.**
+
+**Checks run — Read-only diff, source, test-assertion and census inspection. No tests rerun, git commands executed, subagents dispatched or checkout mutations made.**
+
+**Fix round: All findings addressed, no new Critical/Important breakage.**
+
+**READY**
\ No newline at end of file