Merge origin/main (4029ac56) into design-fleet-public-routes
One conflict, in internal/provision/plan9_b8_census_test.go: the record-write census now uses fleetPublicRoutesWriteCensusInventory, which layers on main's newest, analyticsLiveWriteCensusInventory (it layered on rootfsFleetFollowupsWriteCensusInventory before). The chain merged cleanly: this branch had not added its line yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
approved_copy_zdd_test.go+3 −2approved_rootfs_copy_test.go+5 −0docs/superpowers/notes/census-proposal-analytics-agents.md+11 −0docs/superpowers/notes/census-proposal-managed-fleets-1c-451.md+27 −0docs/superpowers/notes/census-proposal-region-ha-dead-holder-backoff.md+21 −0docs/superpowers/notes/census-proposal-region-ha-p1b2.md+39 −0docs/superpowers/notes/census-proposal-rootfs-worker-exit.md+26 −0docs/superpowers/notes/census-region-ha-dead-holder-backoff-claims.md+4 −0docs/superpowers/plans/2026-10-07-zero-downtime-deploys-6-copy.json+1 −0docs/superpowers/plans/2026-10-24-rootfs-apps-copy.md+4 −3docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md+192 −0docs/superpowers/plans/2026-10-30-managed-fleets-1c-reboot-lease.md+221 −0docs/superpowers/plans/CODEX-FINDINGS-MANAGED-FLEETS-1C-R1.md+26 −0docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-BRIEF-1.md+41 −0docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-BRIEF-2.md+50 −0docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-BRIEF-3.md+53 −0docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-R1.md+47 −0docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-R2.md+70 −0docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-R3.md+64 −0docs/superpowers/plans/CODEX-REVIEW-BRIEF-MANAGED-FLEETS-1C.md+39 −0docs/superpowers/plans/CODEX-REVIEW-BRIEF-REGION-HA-P1B2-BRANCH-1.md+30 −0docs/superpowers/plans/CODEX-REVIEW-REGION-HA-P1B2-BRANCH-1-RECHECK.md+9 −0docs/superpowers/plans/CODEX-REVIEW-REGION-HA-P1B2-BRANCH-1.md+23 −0docs/superpowers/reviews/CODEX-FINDINGS-analytics-agents-R1.md+24 −0docs/superpowers/reviews/CODEX-FINDINGS-analytics-live-R1.md+29 −0docs/superpowers/reviews/CODEX-FINDINGS-rootfs-worker-exit-R1.md+32 −0docs/superpowers/reviews/CODEX-REVIEW-BRIEF-analytics-agents.md+38 −0docs/superpowers/reviews/CODEX-REVIEW-BRIEF-analytics-live.md+39 −0docs/superpowers/reviews/CODEX-REVIEW-BRIEF-billing-usage.md+29 −0docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-worker-exit.md+28 −0docs/superpowers/specs/2026-10-28-managed-fleets-design.md+406 −0docs/superpowers/specs/CODEX-BUILDER-CHECK-MANAGED-FLEETS.md+11 −0instances_cli.go+4 −1instances_rollout_test.go+5 −0internal/activator/activator.go+17 −5internal/activator/backend_exec.go+4 −0internal/activator/control.go+60 −2internal/activator/control_test.go+29 −0internal/activator/hacache.go+296 −0internal/activator/haforward.go+224 −0internal/activator/haforward_test.go+511 −0internal/activator/hasuspect_test.go+481 −0internal/activator/rootfsworkers.go+13 −4internal/activator/rootfsworkers_backend_test.go+223 −1internal/activator/rootfsworkers_test.go+85 −4internal/activator/unitproc.go+101 −0internal/analytics/agents.go+91 −0internal/analytics/agents_test.go+200 −0internal/analytics/bots.go+8 −0internal/analytics/day.go+19 −0internal/analytics/meter.go+32 −8internal/analytics/pace.go+83 −0internal/analytics/read.go+15 −0internal/console/analyticsdisplay.go+170 −3internal/console/analyticsdisplay_test.go+11 −3internal/console/analyticslive.go+218 −0internal/console/analyticslive_test.go+258 −0internal/console/analyticspages_test.go+157 −0internal/console/analyticsview.go+134 −32internal/console/apianalytics.go+4 −0internal/console/apianalytics_test.go+1 −1internal/console/billingpage.go+29 −9internal/console/billingpage_copy.go+14 −0internal/console/billingpage_test.go+8 −1internal/console/billingsync_test.go+8 −1internal/console/billingusage.go+197 −0internal/console/billingusage_test.go+338 −0internal/console/claim_invariant_fixtures_test.go+1 −0internal/console/claim_invariant_probes_read_test.go+1 −0internal/console/perfwalk_test.go+6 −0internal/console/server.go+7 −1internal/console/templates/app_analytics.html+184 −43internal/console/templates/app_overview.html+2 −13internal/console/templates/billing.html+21 −7internal/console/templates/layout.html+55 −6internal/console/testdata/claim-routes.txt+1 −0internal/console/testdata/perf-budgets.txt+1 −0internal/edge/assetcatch.go+3 −0internal/edge/backhaul_e2e_test.go+6 −3internal/edge/cookiescope.go+9 −2internal/edge/edge.go+44 −3internal/edge/forwardha.go+353 −0internal/edge/forwardha_export_test.go+76 −0internal/edge/forwardha_test.go+1,306 −0internal/edge/forwardha_wiring_test.go+106 −0internal/edge/holderview.go+59 −0internal/edge/holderview_test.go+135 −0internal/edge/homemap.go+12 −0internal/edge/regional.go+2 −1internal/hafresh/owner.go+37 −9internal/hafresh/owner_boot_test.go+75 −0internal/host/haforward_wiring_test.go+61 −0internal/host/haself.go+17 −1internal/host/haself_test.go+49 −0internal/lease/legacytake.go+9 −1internal/lease/previousboot_test.go+84 −0internal/provision/analytics_live_census_test.go+31 −0internal/provision/fleet_public_routes_census_test.go+4 −3internal/provision/testdata/plan14-root-reads-analytics-agents.tsv+3 −0internal/provision/testdata/plan14-root-reads-chain.tsv+5 −0internal/provision/testdata/plan14-root-reads-managed-fleets-1c-451.tsv+15 −0internal/provision/testdata/plan14-root-reads-region-ha-dead-holder-backoff.tsv+8 −0internal/provision/testdata/plan14-root-reads-region-ha-p1b2.tsv+31 −0internal/provision/testdata/plan14-root-reads-rootfs-worker-exit.tsv+14 −0internal/rolloutwords/words.go+9 −4internal/rolloutwords/words_test.go+3 −1plan3_groups_test.go+3 −2
Intent
<task-notification> <task-id>a3f3a457c7aeb8eae</task-id> <tool-use-id>toolu_0161VY6vTQTj1EVdRhxwHozp</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/ba9fa944-a429-4788-9b3c-f2b2f42617f3/tasks/a3f3a457c7aeb8eae.output</output-file> <status>completed</status> <summary>Agent "Implement Task 13: e2e witness" 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. The witness passes, but it departs from the brief in four places. No defect turned up in Tasks 0-12. Commit: 12eeecee (base 409d43d6), one new file: `fleet_public_routes_e2e_test.go`. No production file changed and nothing new is exported. Tests: `TestFleetAppServesThroughTheHub` passes all seven steps in about 6.7 s, and passed 3 runs in a row. It fails as expected under three mutations: - `hubEnv` without `CARLOS_TUNNEL_HOST`: the step 1 handshake is refused. - `GetCertificate` admitting every name: step 6's handshake succeeds and the test fails. - The owner check in `decideForward` disabled: the foreign record gets a row and step 7 fails. gofmt, vet, the native build and the darwin, windows and arm64 cross-builds are clean. The census card is identical with and without the file. Concerns, all departures from the brief: 1. **Instance served by address, not socket.** The socket directory is the fixed path `/run/carlos`, which an unprivileged test can't bind. So the instance is created with `--addr` on loopback. A small test-only server is built inside the test, shipped through the console, staged by `release.Pass`, and started from the staged path with its socket on fd 3. 2. **Operator bit.** The console only lets an operator set `--addr`, so the member is granted the operator bit with `cst.SetOperator`, the same store call `console operator grant` makes. That makes the member an operator in every other console check too. The hub's owner rule doesn't depend on it. 3. **Names and the box's connection.** - The apps domain is `apps.example.com`, so the instance is `shop.bac.apps.example.com`. The console refuses a catch-all whose parent sits under the apps domain, and the parent is `shops.example.com`. - The sqids are the real ones the console returned: `bac` for the owner, `bad` for the foreign account. - The box's tunnel and store door dial a second, plain HTTP listener on the same hub edge, because the tunnel client checks the certificate against the system roots. All public requests go through the TLS listener. 4. **The rate limit is a path rule.** "5 per window" is `-path /limited:rate=1,burst=5`, so step 2's requests on `/up` don't use it up. A 429 from the hub is proven by the app's own request count and by the two edges' usage meters. One observation, not a defect: on a fleet box, the alias pass logs a 404 for `status/boxes/` through the store door. So that pass always runs without knowing the deployment's routes. This is existing behaviour, and step 4 still serves. The full report is at `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-fleet-public-routes/.superpowers/sdd/2026-10-30-fleet-public-routes/task-13-report.md`.</result> <usage><subagent_tokens>295839</subagent_tokens><tool_uses>122</tool_uses><duration_ms>1159683</duration_ms></usage> </task-notification>
<task-notification> <task-id>a1462565c3c19d5f9</task-id> <tool-use-id>toolu_01N7TwhyY7a5TKaZ2g6e3Qsk</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/ba9fa944-a429-4788-9b3c-f2b2f42617f3/tasks/a1462565c3c19d5f9.output</output-file> <status>completed</status> <summary>Agent "Review Task 13: e2e witness" 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>Spec compliance: ✅. Task quality: Approved. I ran the test once at 12eeecee and it passed (7.82 s). No Critical or Important findings. - Minor: `fleet_public_routes_e2e_test.go:733-739`. Step 6 shows the trashed name is refused only by a failed TLS handshake. Production does not refuse there when the name already has a certificate: the wildcard cert, the cert mirror and autocert's cache all answer without calling `Allowed`. The real refusal happens at HTTP, because the name has no map entry. This matters for the live dev roll: Task 15 must check a retired name by its HTTP answer, not by a handshake failure. Optionally, the test could also send a request for the trashed host through the plain listener and assert the unknown-host answer. - Minor: `:730-739`. Step 6 never checks that the catch-all alias `shop.shops.example.com` from step 4 is refused after trash. One `hub.Allowed` assertion would cover it. - Minor: `:641-663`. Step 4 rebuilds the production alias pass's inputs by hand (it omits `Region`; the rest matches today). If the production wiring changes later, this test will not notice. This follows preflight ruling 1.17, which allows no test-only export. - Minor: `:623`. Step 3 has no upper bound on the requests let through before the 429; up to 11 would pass. Adding `oks <= 6` would catch a hub that applies the wrong bucket. - Minor: test output is not clean. Every run logs a 401 on the box's first dial (it dials before the hub reloads the new token) and a `status/boxes/` 404 from the box's alias pass. Both are explained and harmless. Moving the first dial after the first hub pass would remove the 401. - Minor: `:599-602`. Nothing pins which edge drew the login form. Asserting the hub's forward row has an empty `Gate` would tie it to the fleet edge. Unit test 12 already covers this. - For the final review: the hub's edges-file exclusion was moved to Task 6's tests (preflight 1.17); confirm they cover a foreign account's record. Separately, a fleet box's alias pass always runs with the deployment route set unknown, because the store door has no `status/boxes/`. That predates this branch. Each point you asked me to focus on holds up: - **Forward row:** the hub's real `BoxProvisionConfig` pass mints and retires it, and the test checks the row is still there before the pass that retires it. - **Reload:** the test calls it directly, and in production the registry watcher picks up the same changes within 2 s. - **TLS admission:** every assertion uses a fresh handshake through `hub.Allowed`, and production's admission check reduces to `Allowed` here. - **Foreign account:** `bad` is a real console account, and the refusal log line is asserted before the absence checks. - **Departures:** none of the four hides a hub defect for the dev roll. - **Mutations:** all three are real. I could not re-run them because edits were off-limits, but each failure message matches its assertion and each mutation breaks the production line it targets. The full review is in `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-fleet-public-routes/.superpowers/sdd/2026-10-30-fleet-public-routes/task-13-review.md`.</result> <usage><subagent_tokens>131262</subagent_tokens><tool_uses>35</tool_uses><duration_ms>365531</duration_ms></usage> </task-notification>
approved_copy_zdd_test.goLoading diff…
approved_rootfs_copy_test.goLoading diff…
docs/superpowers/notes/census-proposal-analytics-agents.mdLoading diff…
docs/superpowers/notes/census-proposal-managed-fleets-1c-451.mdLoading diff…
docs/superpowers/notes/census-proposal-region-ha-dead-holder-backoff.mdLoading diff…
docs/superpowers/notes/census-proposal-region-ha-p1b2.mdLoading diff…
docs/superpowers/notes/census-proposal-rootfs-worker-exit.mdLoading diff…
docs/superpowers/notes/census-region-ha-dead-holder-backoff-claims.mdLoading diff…
docs/superpowers/plans/2026-10-07-zero-downtime-deploys-6-copy.jsonLoading diff…
docs/superpowers/plans/2026-10-24-rootfs-apps-copy.mdLoading diff…
docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.mdLoading diff…
docs/superpowers/plans/2026-10-30-managed-fleets-1c-reboot-lease.mdLoading diff…
docs/superpowers/plans/CODEX-FINDINGS-MANAGED-FLEETS-1C-R1.mdLoading diff…
docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-BRIEF-1.mdLoading diff…
docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-BRIEF-2.mdLoading diff…
docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-BRIEF-3.mdLoading diff…
docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-R1.mdLoading diff…
docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-R2.mdLoading diff…
docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-R3.mdLoading diff…
docs/superpowers/plans/CODEX-REVIEW-BRIEF-MANAGED-FLEETS-1C.mdLoading diff…
docs/superpowers/plans/CODEX-REVIEW-BRIEF-REGION-HA-P1B2-BRANCH-1.mdLoading diff…
docs/superpowers/plans/CODEX-REVIEW-REGION-HA-P1B2-BRANCH-1-RECHECK.mdLoading diff…
docs/superpowers/plans/CODEX-REVIEW-REGION-HA-P1B2-BRANCH-1.mdLoading diff…
docs/superpowers/reviews/CODEX-FINDINGS-analytics-agents-R1.mdLoading diff…
docs/superpowers/reviews/CODEX-FINDINGS-analytics-live-R1.mdLoading diff…
docs/superpowers/reviews/CODEX-FINDINGS-rootfs-worker-exit-R1.mdLoading diff…
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-analytics-agents.mdLoading diff…
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-analytics-live.mdLoading diff…
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-billing-usage.mdLoading diff…
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-worker-exit.mdLoading diff…
docs/superpowers/specs/2026-10-28-managed-fleets-design.mdLoading diff…
docs/superpowers/specs/CODEX-BUILDER-CHECK-MANAGED-FLEETS.mdLoading diff…
instances_cli.goLoading diff…
instances_rollout_test.goLoading diff…
internal/activator/activator.goLoading diff…
internal/activator/backend_exec.goLoading diff…
internal/activator/control.goLoading diff…
internal/activator/control_test.goLoading diff…
internal/activator/hacache.goLoading diff…
internal/activator/haforward.goLoading diff…
internal/activator/haforward_test.goLoading diff…
internal/activator/hasuspect_test.goLoading diff…
internal/activator/rootfsworkers.goLoading diff…
internal/activator/rootfsworkers_backend_test.goLoading diff…
internal/activator/rootfsworkers_test.goLoading diff…
internal/activator/unitproc.goLoading diff…
internal/analytics/agents.goLoading diff…
internal/analytics/agents_test.goLoading diff…
internal/analytics/bots.goLoading diff…
internal/analytics/day.goLoading diff…
internal/analytics/meter.goLoading diff…
internal/analytics/pace.goLoading diff…
internal/analytics/read.goLoading diff…
internal/console/analyticsdisplay.goLoading diff…
internal/console/analyticsdisplay_test.goLoading diff…
internal/console/analyticslive.goLoading diff…
internal/console/analyticslive_test.goLoading diff…
internal/console/analyticspages_test.goLoading diff…
internal/console/analyticsview.goLoading diff…
internal/console/apianalytics.goLoading diff…
internal/console/apianalytics_test.goLoading diff…
internal/console/billingpage.goLoading diff…
internal/console/billingpage_copy.goLoading diff…
internal/console/billingpage_test.goLoading diff…
internal/console/billingsync_test.goLoading diff…
internal/console/billingusage.goLoading diff…
internal/console/billingusage_test.goLoading diff…
internal/console/claim_invariant_fixtures_test.goLoading diff…
internal/console/claim_invariant_probes_read_test.goLoading diff…
internal/console/perfwalk_test.goLoading diff…
internal/console/server.goLoading diff…
internal/console/templates/app_analytics.htmlLoading diff…
internal/console/templates/app_overview.htmlLoading diff…
internal/console/templates/billing.htmlLoading diff…
internal/console/templates/layout.htmlLoading diff…
internal/console/testdata/claim-routes.txtLoading diff…
internal/console/testdata/perf-budgets.txtLoading diff…
internal/edge/assetcatch.goLoading diff…
internal/edge/backhaul_e2e_test.goLoading diff…
internal/edge/cookiescope.goLoading diff…
internal/edge/edge.goLoading diff…
internal/edge/forwardha.goLoading diff…
internal/edge/forwardha_export_test.goLoading diff…
internal/edge/forwardha_test.goLoading diff…
internal/edge/forwardha_wiring_test.goLoading diff…
internal/edge/holderview.goLoading diff…
internal/edge/holderview_test.goLoading diff…
internal/edge/homemap.goLoading diff…
internal/edge/regional.goLoading diff…
internal/hafresh/owner.goLoading diff…
internal/hafresh/owner_boot_test.goLoading diff…
internal/host/haforward_wiring_test.goLoading diff…
internal/host/haself.goLoading diff…
internal/host/haself_test.goLoading diff…
internal/lease/legacytake.goLoading diff…
internal/lease/previousboot_test.goLoading diff…
internal/provision/analytics_live_census_test.goLoading diff…
internal/provision/fleet_public_routes_census_test.goLoading diff…
internal/provision/testdata/plan14-root-reads-analytics-agents.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-chain.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-managed-fleets-1c-451.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-region-ha-dead-holder-backoff.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-region-ha-p1b2.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-rootfs-worker-exit.tsvLoading diff…
internal/rolloutwords/words.goLoading diff…
internal/rolloutwords/words_test.goLoading diff…
plan3_groups_test.goLoading diff…