Console Protection tab (per app) and operator /fleet/protection page: say plainly how much bad traffic edge protection caught. The edge counts protection checks and matches per host+account+app (hourly counts and a daily group tally, burst rules excluded, counted where records are filed incl. the far-asset path) into the usage edge day it already writes every 5 minutes: no new storage writes. The console reads root and fleet edge days through the settled-day cache, scoping fleets by owning account before any I/O (ownerless fleets vouch for nobody; dot segments refused), sums whole UTC days, and renders the tab (headline, share of checked requests, day bars, what they were after, Logs link) and the operator page; Logs gains a protection filter applied before collection caps. No coverage claims (Paul's ruling): zero checked reads 'No protection counts yet'. Rate-limit counts move onto the shared reader and now include fleet boxes. Also fixes a race in three #471 tunnel tests (the box server now gets the bytes the test's bufio.Reader took). Copy PT-C01..C43 approved by Paul unchanged. Reviews: spec builder check (Astra); plan Astra R1-R3; task reviews (Astra) on Tasks 1-3 with one fix round each; whole-branch Astra R1 with fixes (one test P2 fixed). Census console-protection-tab approved by Astra on #280 (re-approved after merging main twice). Follow-ups in discussion 479. Not released.
Squashed from design-console-protection-tab into main.
docs/superpowers/notes/census-console-protection-tab-claims.md+8 −0docs/superpowers/notes/census-proposal-console-protection-tab.md+39 −0docs/superpowers/plans/2026-10-30-console-protection-tab-copy.md+73 −0docs/superpowers/plans/2026-10-30-console-protection-tab.md+397 −0docs/superpowers/plans/CODEX-FINDINGS-CONSOLE-PROTECTION-TAB-PLAN-R1.md+47 −0docs/superpowers/plans/CODEX-FINDINGS-CONSOLE-PROTECTION-TAB-PLAN-R2.md+48 −0docs/superpowers/plans/CODEX-FINDINGS-CONSOLE-PROTECTION-TAB-PLAN-R3.md+41 −0docs/superpowers/specs/2026-10-30-console-protection-tab-design.md+305 −0docs/superpowers/specs/CODEX-FINDINGS-CONSOLE-PROTECTION-TAB.md+23 −0fleet_public_routes_e2e_test.go+2 −2internal/applog/filter.go+8 −0internal/applog/filter_test.go+2 −0internal/console/apiinstances_ratelimit.go+26 −49internal/console/apiinstances_ratelimit_test.go+1 −1internal/console/apilogs.go+7 −0internal/console/appnav_test.go+2 −2internal/console/approved_protection_copy_test.go+125 −0internal/console/claim_invariant_fixtures_test.go+4 −0internal/console/claim_invariant_probes_read_test.go+4 −0internal/console/edgedays.go+180 −0internal/console/edgedays_test.go+365 −0internal/console/opshell.go+1 −0internal/console/opshell_test.go+2 −2internal/console/perfwalk_test.go+1 −1internal/console/protection.go+182 −0internal/console/protection_test.go+222 −0internal/console/protectiongroups.go+39 −0internal/console/protectionview.go+388 −0internal/console/protectionview_test.go+658 −0internal/console/server.go+18 −0internal/console/templates/app_logs.html+13 −0internal/console/templates/app_protection.html+52 −0internal/console/templates/appnav.html+1 −0internal/console/templates/fleet_protection.html+60 −0internal/console/templates/layout.html+9 −0internal/console/testdata/claim-routes.txt+4 −0internal/console/testdata/perf-budgets.txt+4 −0internal/console/usagedays.go+21 −6internal/console/usagedays_test.go+112 −0internal/edge/asset_e2e_test.go+1 −1internal/edge/asset_far_test.go+5 −5internal/edge/asset_local_test.go+6 −6internal/edge/assetcatch.go+8 −3internal/edge/backhaul_e2e_test.go+2 −2internal/edge/compress_test.go+1 −1internal/edge/edge.go+5 −0internal/edge/edge_test.go+1 −1internal/edge/forwardha_test.go+1 −1internal/edge/gate_test.go+1 −1internal/edge/guard.go+21 −0internal/edge/guard_usage_test.go+359 −0internal/edge/path_test.go+1 −1internal/edge/planthrottle_test.go+1 −1internal/edge/ratelimit_test.go+4 −4internal/edge/regional_e2e_test.go+1 −1internal/edge/tunnel_register_race_test.go+6 −2internal/edge/tunnel_upgrade_test.go+3 −1internal/edge/upgrades_test.go+4 −4internal/edge/usagemeter.go+55 −7internal/edge/usagemeter_test.go+81 −5internal/edgeguard/catalogue.go+11 −0internal/edgeguard/catalogue_test.go+14 −0internal/host/applessroute_test.go+1 −1internal/host/usage_loop.go+6 −6internal/host/usage_loop_test.go+36 −6internal/provision/console_protection_tab_census_test.go+43 −0internal/provision/plan9_b8_census_test.go+1 −1internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-console-protection-tab.tsv+16 −0internal/usage/edge.go+127 −13internal/usage/edge_ratelimit_test.go+10 −10internal/usage/edge_test.go+238 −13
CI passed — run details
docs/superpowers/notes/census-console-protection-tab-claims.mdLoading diff…
docs/superpowers/notes/census-proposal-console-protection-tab.mdLoading diff…
docs/superpowers/plans/2026-10-30-console-protection-tab-copy.mdLoading diff…
docs/superpowers/plans/2026-10-30-console-protection-tab.mdLoading diff…
docs/superpowers/plans/CODEX-FINDINGS-CONSOLE-PROTECTION-TAB-PLAN-R1.mdLoading diff…
docs/superpowers/plans/CODEX-FINDINGS-CONSOLE-PROTECTION-TAB-PLAN-R2.mdLoading diff…
docs/superpowers/plans/CODEX-FINDINGS-CONSOLE-PROTECTION-TAB-PLAN-R3.mdLoading diff…
docs/superpowers/specs/2026-10-30-console-protection-tab-design.mdLoading diff…
docs/superpowers/specs/CODEX-FINDINGS-CONSOLE-PROTECTION-TAB.mdLoading diff…
fleet_public_routes_e2e_test.goLoading diff…
internal/applog/filter.goLoading diff…
internal/applog/filter_test.goLoading diff…
internal/console/apiinstances_ratelimit.goLoading diff…
internal/console/apiinstances_ratelimit_test.goLoading diff…
internal/console/apilogs.goLoading diff…
internal/console/appnav_test.goLoading diff…
internal/console/approved_protection_copy_test.goLoading diff…
internal/console/claim_invariant_fixtures_test.goLoading diff…
internal/console/claim_invariant_probes_read_test.goLoading diff…
internal/console/edgedays.goLoading diff…
internal/console/edgedays_test.goLoading diff…
internal/console/opshell.goLoading diff…
internal/console/opshell_test.goLoading diff…
internal/console/perfwalk_test.goLoading diff…
internal/console/protection.goLoading diff…
internal/console/protection_test.goLoading diff…
internal/console/protectiongroups.goLoading diff…
internal/console/protectionview.goLoading diff…
internal/console/protectionview_test.goLoading diff…
internal/console/server.goLoading diff…
internal/console/templates/app_logs.htmlLoading diff…
internal/console/templates/app_protection.htmlLoading diff…
internal/console/templates/appnav.htmlLoading diff…
internal/console/templates/fleet_protection.htmlLoading diff…
internal/console/templates/layout.htmlLoading diff…
internal/console/testdata/claim-routes.txtLoading diff…
internal/console/testdata/perf-budgets.txtLoading diff…
internal/console/usagedays.goLoading diff…
internal/console/usagedays_test.goLoading diff…
internal/edge/asset_e2e_test.goLoading diff…
internal/edge/asset_far_test.goLoading diff…
internal/edge/asset_local_test.goLoading diff…
internal/edge/assetcatch.goLoading diff…
internal/edge/backhaul_e2e_test.goLoading diff…
internal/edge/compress_test.goLoading diff…
internal/edge/edge.goLoading diff…
internal/edge/edge_test.goLoading diff…
internal/edge/forwardha_test.goLoading diff…
internal/edge/gate_test.goLoading diff…
internal/edge/guard.goLoading diff…
internal/edge/guard_usage_test.goLoading diff…
internal/edge/path_test.goLoading diff…
internal/edge/planthrottle_test.goLoading diff…
internal/edge/ratelimit_test.goLoading diff…
internal/edge/regional_e2e_test.goLoading diff…
internal/edge/tunnel_register_race_test.goLoading diff…
internal/edge/tunnel_upgrade_test.goLoading diff…
internal/edge/upgrades_test.goLoading diff…
internal/edge/usagemeter.goLoading diff…
internal/edge/usagemeter_test.goLoading diff…
internal/edgeguard/catalogue.goLoading diff…
internal/edgeguard/catalogue_test.goLoading diff…
internal/host/applessroute_test.goLoading diff…
internal/host/usage_loop.goLoading diff…
internal/host/usage_loop_test.goLoading diff…
internal/provision/console_protection_tab_census_test.goLoading diff…
internal/provision/plan9_b8_census_test.goLoading diff…
internal/provision/testdata/plan14-root-reads-chain.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-console-protection-tab.tsvLoading diff…
internal/usage/edge.goLoading diff…
internal/usage/edge_ratelimit_test.goLoading diff…
internal/usage/edge_test.goLoading diff…