carlos / platform Public

Merge origin/main (d937c467, tunnel WebSockets #471) into design-devbox-mode

Chain conflict: both sides appended a line to
plan14-root-reads-chain.tsv. Resolved as main's lines, with
tunnel-websockets, then devbox-mode last. Re-ran
make census-propose NAME=devbox-mode over the merged tree, with the
approved claims: the overlay re-seals over main's new state
(949bc734 -> e2361520) and re-pins the internal/edge envelope, which
main's edge.go changes moved. The card's units, classes and claims are
unchanged (26 units: 1 sites, 23 new, 2 quiet; 4 envelopes).

The record-write census overlay (devbox_mode_census_test.go) still
layers on fleetPublicRoutesWriteCensusInventory. Main added no newer
9B8 overlay.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 8bd9a117087b35c82bc907e355e96dcfe704a4f2 parent d681ff5parent d937c46
46 files changed, +11,116 −68
  • approved_tunnel_websockets_copy_test.go +107 −0
  • docs/superpowers/notes/census-proposal-devbox-mode.md +1 −1
  • docs/superpowers/notes/census-proposal-tunnel-websockets.md +19 −0
  • docs/superpowers/plans/2026-10-30-tunnel-websockets-copy.md +36 −0
  • docs/superpowers/plans/2026-10-30-tunnel-websockets.md +358 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-tunnel-websockets-R1.md +31 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-tunnel-websockets-R2.md +27 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-tunnel-websockets-R3.md +29 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-tunnel-websockets-plan-R1.md +13 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-tunnel-websockets-R2.md +54 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-tunnel-websockets-R3.md +60 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-tunnel-websockets-branch.md +61 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-tunnel-websockets-plan-R2.md +56 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-tunnel-websockets-plan.md +40 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-tunnel-websockets.md +31 −0
  • docs/superpowers/specs/2026-10-30-tunnel-websockets-design.md +1,448 −0
  • examples/rails-shop/app/channels/application_cable/channel.rb +4 −0
  • examples/rails-shop/app/channels/application_cable/connection.rb +4 −0
  • examples/rails-shop/app/channels/pings_channel.rb +5 −0
  • examples/rails-shop/app/jobs/ping_job.rb +1 −1
  • examples/rails-shop/app/views/pages/show.html.erb +50 −1
  • examples/rails-shop/v2.patch +1 −1
  • internal/apperr/availability.go +10 −0
  • internal/apperr/availability_test.go +17 −0
  • internal/edge/edge.go +248 −7
  • internal/edge/fleetforward_policy_test.go +45 −17
  • internal/edge/fleetforward_test.go +13 −9
  • internal/edge/reload_guard_test.go +236 −0
  • internal/edge/reload_serial_test.go +878 −0
  • internal/edge/trusted_child_test.go +227 −0
  • internal/edge/tunnel.go +159 −15
  • internal/edge/tunnel_login_test.go +322 −0
  • internal/edge/tunnel_publish_guard_test.go +206 −0
  • internal/edge/tunnel_register_race_test.go +146 −0
  • internal/edge/tunnel_upgrade_test.go +514 −0
  • internal/edge/tunnel_ws_e2e_test.go +2,085 −0
  • internal/edge/tunnel_ws_load_e2e_test.go +898 −0
  • internal/edge/upgrades.go +279 −0
  • internal/edge/upgrades_test.go +602 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +2 −1
  • internal/provision/testdata/plan14-root-reads-devbox-mode.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-tunnel-websockets.tsv +16 −0
  • internal/tunnelclient/tunnelclient.go +24 −14
  • internal/tunnelclient/upgrade.go +529 −0
  • internal/tunnelclient/upgrade_box_test.go +643 −0
  • internal/tunnelclient/upgrade_hub_test.go +580 −0

CI passed — run details

Intent

Human

<task-notification> <task-id>a9dc6afbf255a4a98</task-id> <tool-use-id>toolu_01VJoPe1gzEK9yymLSWh1aZ3</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/9b370a04-693c-4bda-b2eb-9a4b08f7626d/tasks/a9dc6afbf255a4a98.output</output-file> <status>completed</status> <summary>Agent "Fix record-write census for devbox" 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. The record-write census now passes. I added the devbox overlay `internal/provision/devbox_mode_census_test.go`, layered on the fleet-public-routes inventory. It re-pins `main.go:main` (still key-site; the only change is the devbox case) and adds the five devbox sites as nonrecord. None of them uses a record key or record path, and none reaches the deployment bucket. **Commit:** d681ff5c on design-devbox-mode, not pushed. It shows the expected packed-refs.lock warning. **Tests:** TestPlan9B8RecordWriteCensus and TestPlan14RootReadCensus both pass. Plan14 needed the sandbox disabled because the Go cache was read-only. `go vet` is clean and `-run Census` passes. **Plan14:** it did not move because only test files changed, so I did not re-run `make census-propose`. **Concerns:** the 9B8 entries are reviewed only by me, as the neighbouring overlays are. The #280 approval still covers only the root-read card. **Report:** `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/devbox-mode/.superpowers/sdd/2026-10-30-devbox-mode/census-9b8-report.md`. It is in an ignored folder, so it isn't committed.</result> <usage><subagent_tokens>92424</subagent_tokens><tool_uses>25</tool_uses><duration_ms>235899</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>blvswb2pv</task-id> <tool-use-id>toolu_01QcznASY1M9mBXKGa8xQLdq</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/9b370a04-693c-4bda-b2eb-9a4b08f7626d/tasks/blvswb2pv.output</output-file> <status>completed</status> <summary>Background command "Run Astra verdict on 9B8 census entries" completed (exit code 0)</summary> </task-notification>

Human

<task-notification> <task-id>b066xa12u</task-id> <tool-use-id>toolu_019HpYuqNWYMEn9HH6SedUQy</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/9b370a04-693c-4bda-b2eb-9a4b08f7626d/tasks/b066xa12u.output</output-file> <status>completed</status> <summary>Background command "Wait for CI verdict on the new tip" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 39.3 g CO₂e (5,033,328 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-devbox-mode, 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.

approved_tunnel_websockets_copy_test.go

Loading diff…

docs/superpowers/notes/census-proposal-devbox-mode.md

Loading diff…

docs/superpowers/notes/census-proposal-tunnel-websockets.md

Loading diff…

docs/superpowers/plans/2026-10-30-tunnel-websockets-copy.md

Loading diff…

docs/superpowers/plans/2026-10-30-tunnel-websockets.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-tunnel-websockets-R1.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-tunnel-websockets-R2.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-tunnel-websockets-R3.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-tunnel-websockets-plan-R1.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-tunnel-websockets-R2.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-tunnel-websockets-R3.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-tunnel-websockets-branch.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-tunnel-websockets-plan-R2.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-tunnel-websockets-plan.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-tunnel-websockets.md

Loading diff…

docs/superpowers/specs/2026-10-30-tunnel-websockets-design.md

Loading diff…

examples/rails-shop/app/channels/application_cable/channel.rb

Loading diff…

examples/rails-shop/app/channels/application_cable/connection.rb

Loading diff…

examples/rails-shop/app/channels/pings_channel.rb

Loading diff…

examples/rails-shop/app/jobs/ping_job.rb

Loading diff…

examples/rails-shop/app/views/pages/show.html.erb

Loading diff…

examples/rails-shop/v2.patch

Loading diff…

internal/apperr/availability.go

Loading diff…

internal/apperr/availability_test.go

Loading diff…

internal/edge/edge.go

Loading diff…

internal/edge/fleetforward_policy_test.go

Loading diff…

internal/edge/fleetforward_test.go

Loading diff…

internal/edge/reload_guard_test.go

Loading diff…

internal/edge/reload_serial_test.go

Loading diff…

internal/edge/trusted_child_test.go

Loading diff…

internal/edge/tunnel.go

Loading diff…

internal/edge/tunnel_login_test.go

Loading diff…

internal/edge/tunnel_publish_guard_test.go

Loading diff…

internal/edge/tunnel_register_race_test.go

Loading diff…

internal/edge/tunnel_upgrade_test.go

Loading diff…

internal/edge/tunnel_ws_e2e_test.go

Loading diff…

internal/edge/tunnel_ws_load_e2e_test.go

Loading diff…

internal/edge/upgrades.go

Loading diff…

internal/edge/upgrades_test.go

Loading diff…

internal/provision/testdata/plan14-root-reads-chain.tsv

Loading diff…

internal/provision/testdata/plan14-root-reads-devbox-mode.tsv

Loading diff…

internal/provision/testdata/plan14-root-reads-tunnel-websockets.tsv

Loading diff…

internal/tunnelclient/tunnelclient.go

Loading diff…

internal/tunnelclient/upgrade.go

Loading diff…

internal/tunnelclient/upgrade_box_test.go

Loading diff…

internal/tunnelclient/upgrade_hub_test.go

Loading diff…