carlos / platform Public

Merge origin/main into sec-h4-m11-stepup-fold

The census chain conflicted; main's chain is taken and this
branch's overlay is re-proposed on top of it in the next commit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev b52d1918f1214aaff205fab6769d64dfcdb2807f parent f90655dparent f50cb04
128 files changed, +11,265 −325
  • apimode.go +1 −20
  • apimode_limit.go +52 −0
  • approved_usage_copy_test.go +149 −0
  • cmd/console/instanceusage_test.go +89 −0
  • cmd/console/main.go +29 −6
  • commands.go +1 −0
  • commands_test.go +2 −0
  • docs/parity.md +11 −2
  • docs/site/cli.md +32 −0
  • docs/superpowers/notes/census-proposal-instance-usage.md +47 −0
  • docs/superpowers/notes/census-proposal-sec-h4-m11-stepup-fold.md +0 −19
  • docs/superpowers/notes/census-proposal-sec-h5-m8-fleet-hostnames.md +19 −0
  • docs/superpowers/notes/instance-usage-copy.md +112 −0
  • docs/superpowers/plans/2026-11-29-instance-usage.md +721 −0
  • docs/superpowers/plans/2026-11-30-instance-senders-1-own-address.md +313 −0
  • docs/superpowers/plans/CODEX-FINDINGS-instance-senders-1-R1.md +97 −0
  • docs/superpowers/plans/CODEX-FINDINGS-instance-senders-1-R2.md +69 −0
  • docs/superpowers/plans/CODEX-FINDINGS-instance-senders-1-R3.md +13 −0
  • docs/superpowers/plans/CODEX-FINDINGS-instance-usage-plan-R1.md +24 −0
  • docs/superpowers/plans/CODEX-FINDINGS-instance-usage-plan-R2.md +33 −0
  • docs/superpowers/plans/CODEX-FINDINGS-instance-usage-plan-R3.md +18 −0
  • docs/superpowers/plans/CODEX-REVIEW-BRIEF-instance-senders-1-R1.md +61 −0
  • docs/superpowers/plans/CODEX-REVIEW-BRIEF-instance-senders-1-R2.md +71 −0
  • docs/superpowers/plans/CODEX-REVIEW-BRIEF-instance-senders-1-R3.md +72 −0
  • docs/superpowers/plans/CODEX-REVIEW-BRIEF-instance-usage-plan-R2.md +93 −0
  • docs/superpowers/plans/CODEX-REVIEW-BRIEF-instance-usage-plan-R3.md +102 −0
  • docs/superpowers/plans/CODEX-REVIEW-BRIEF-instance-usage-plan.md +80 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-instance-usage-branch-R1.md +7 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-instance-usage-census-R1.md +49 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-instance-usage-task2-R1.md +11 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-instance-usage-task3-R1.md +17 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-instance-usage-task5-R1.md +17 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-instance-usage-task6-R1.md +27 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-instance-usage-branch.md +77 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-instance-usage-census.md +41 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-instance-usage-task2.md +59 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-instance-usage-task3.md +67 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-instance-usage-task5.md +66 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-instance-usage-task6.md +75 −0
  • docs/superpowers/specs/2026-11-30-instance-senders-on-submission-design.md +417 −0
  • docs/superpowers/specs/CODEX-FINDINGS-instance-senders-R1.md +88 −0
  • docs/superpowers/specs/CODEX-FINDINGS-instance-senders-R2.md +78 −0
  • docs/superpowers/specs/CODEX-FINDINGS-instance-senders-R3.md +44 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-instance-senders-R1.md +87 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-instance-senders-R2.md +101 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-instance-senders-R3.md +105 −0
  • internal/activator/loglistener_cap_test.go +10 −0
  • internal/activator/rootfsworkers_test.go +4 −0
  • internal/activator/workerswap_test.go +9 −0
  • internal/console/apicli.go +4 −2
  • internal/console/apilinks_test.go +6 −0
  • internal/console/apipdf_test.go +27 −3
  • internal/console/apiservices.go +21 −0
  • internal/console/apiusage.go +377 −0
  • internal/console/apiusage_e2e_test.go +100 −0
  • internal/console/apiusage_test.go +684 −0
  • internal/console/claim_workers.go +6 −0
  • internal/console/domaincatchall.go +9 −1
  • internal/console/economics_instances_compat_test.go +64 −0
  • internal/console/hostnorm.go +43 −0
  • internal/console/jobs.go +19 −0
  • internal/console/jobs_test.go +23 −7
  • internal/console/linkedpolicy.go +3 −0
  • internal/console/links_auth_test.go +2 −1
  • internal/console/platform_credentials_test.go +20 −0
  • internal/console/promotelink.go +138 −0
  • internal/console/promotelink_test.go +241 −0
  • internal/console/routedecls.go +12 −1
  • internal/console/routedecls_test.go +2 −1
  • internal/console/server.go +10 −35
  • internal/console/svcpage.go +29 −2
  • internal/console/svcprincipal.go +64 −0
  • internal/console/svcroutes_test.go +133 −16
  • internal/console/templates/app_releases.html +25 −5
  • internal/console/usagedays.go +9 −2
  • internal/console/usagefrom.go +255 −0
  • internal/console/usagefrom_test.go +558 −0
  • internal/console/usagerole_test.go +288 −0
  • internal/domains/aliases.go +6 −4
  • internal/domains/claims.go +7 −6
  • internal/edge/asset_far_test.go +67 −0
  • internal/edge/assetcatch.go +11 −1
  • internal/edge/demo_traffic.go +1 −1
  • internal/edge/edge.go +1 −1
  • internal/edge/fleetapi_e2e_test.go +70 −30
  • internal/edge/hunt_H5-M8_test.go +55 −0
  • internal/edge/replicaconsole_socket_test.go +6 −0
  • internal/edge/storedoor.go +74 −25
  • internal/edge/storedoor_claims.go +280 −0
  • internal/edge/storedoor_claims_test.go +486 −0
  • internal/edge/storedoor_test.go +9 −8
  • internal/edge/usagemeter.go +64 −8
  • internal/edge/usagemeter_instances_test.go +373 −0
  • internal/edge/usagemeter_test.go +9 −9
  • internal/host/agent.go +5 −61
  • internal/host/applessroute_test.go +1 −1
  • internal/host/canary_count.go +70 −0
  • internal/host/group_names_test.go +2 −1
  • internal/host/instance_usage.go +262 −0
  • internal/host/instance_usage_e2e_test.go +215 −0
  • internal/host/instance_usage_test.go +893 −0
  • internal/host/systemapply_test.go +8 −2
  • internal/host/testdata/usage-edge-golden.json +1 −0
  • internal/host/usage_compat_test.go +100 −0
  • internal/host/usage_loop.go +24 −4
  • internal/host/usage_loop_test.go +7 −7
  • internal/provision/instance_usage_census_test.go +56 −0
  • internal/provision/plan9_b8_census_test.go +1 −1
  • internal/provision/testdata/plan14-root-reads-chain.tsv +2 −1
  • internal/provision/testdata/plan14-root-reads-instance-usage.tsv +39 −0
  • internal/provision/testdata/plan14-root-reads-sec-h4-m11-stepup-fold.tsv +0 −7
  • internal/provision/testdata/plan14-root-reads-sec-h5-m8-fleet-hostnames.tsv +6 −0
  • internal/status/instanceusage_test.go +30 −0
  • internal/status/snapshot.go +12 −0
  • internal/svcrole/svcrole.go +23 −8
  • internal/svcrole/svcrole_test.go +58 −3
  • internal/usage/edge.go +5 −0
  • internal/usage/instances.go +145 −0
  • internal/usage/instances_test.go +165 −0
  • internal/usage/testdata/instance-usage-e2e.golden.json +36 −0
  • parity/cli.tsv +1 −0
  • parity/packages.tsv +1 −0
  • parity/parity.tsv +1 −0
  • services.go +12 −5
  • services_roles_help_test.go +47 −0
  • testdata/clireg-golden.jsonl +10 −8
  • usage_cmd.go +261 −0
  • usage_cmd_test.go +308 −0
apimode.go

Loading diff…

apimode_limit.go

Loading diff…

approved_usage_copy_test.go

Loading diff…

cmd/console/instanceusage_test.go

Loading diff…

cmd/console/main.go

Loading diff…

commands.go

Loading diff…

commands_test.go

Loading diff…

docs/parity.md

Loading diff…

docs/site/cli.md

Loading diff…

docs/superpowers/notes/census-proposal-instance-usage.md

Loading diff…

docs/superpowers/notes/census-proposal-sec-h4-m11-stepup-fold.md

Loading diff…

docs/superpowers/notes/census-proposal-sec-h5-m8-fleet-hostnames.md

Loading diff…

docs/superpowers/notes/instance-usage-copy.md

Loading diff…

docs/superpowers/plans/2026-11-29-instance-usage.md

Loading diff…

docs/superpowers/plans/2026-11-30-instance-senders-1-own-address.md

Loading diff…

docs/superpowers/plans/CODEX-FINDINGS-instance-senders-1-R1.md

Loading diff…

docs/superpowers/plans/CODEX-FINDINGS-instance-senders-1-R2.md

Loading diff…

docs/superpowers/plans/CODEX-FINDINGS-instance-senders-1-R3.md

Loading diff…

docs/superpowers/plans/CODEX-FINDINGS-instance-usage-plan-R1.md

Loading diff…

docs/superpowers/plans/CODEX-FINDINGS-instance-usage-plan-R2.md

Loading diff…

docs/superpowers/plans/CODEX-FINDINGS-instance-usage-plan-R3.md

Loading diff…

docs/superpowers/plans/CODEX-REVIEW-BRIEF-instance-senders-1-R1.md

Loading diff…

docs/superpowers/plans/CODEX-REVIEW-BRIEF-instance-senders-1-R2.md

Loading diff…

docs/superpowers/plans/CODEX-REVIEW-BRIEF-instance-senders-1-R3.md

Loading diff…

docs/superpowers/plans/CODEX-REVIEW-BRIEF-instance-usage-plan-R2.md

Loading diff…

docs/superpowers/plans/CODEX-REVIEW-BRIEF-instance-usage-plan-R3.md

Loading diff…

docs/superpowers/plans/CODEX-REVIEW-BRIEF-instance-usage-plan.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-instance-usage-branch-R1.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-instance-usage-census-R1.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-instance-usage-task2-R1.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-instance-usage-task3-R1.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-instance-usage-task5-R1.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-instance-usage-task6-R1.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-instance-usage-branch.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-instance-usage-census.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-instance-usage-task2.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-instance-usage-task3.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-instance-usage-task5.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-instance-usage-task6.md

Loading diff…

docs/superpowers/specs/2026-11-30-instance-senders-on-submission-design.md

Loading diff…

docs/superpowers/specs/CODEX-FINDINGS-instance-senders-R1.md

Loading diff…

docs/superpowers/specs/CODEX-FINDINGS-instance-senders-R2.md

Loading diff…

docs/superpowers/specs/CODEX-FINDINGS-instance-senders-R3.md

Loading diff…

docs/superpowers/specs/CODEX-REVIEW-BRIEF-instance-senders-R1.md

Loading diff…

docs/superpowers/specs/CODEX-REVIEW-BRIEF-instance-senders-R2.md

Loading diff…

docs/superpowers/specs/CODEX-REVIEW-BRIEF-instance-senders-R3.md

Loading diff…

internal/activator/loglistener_cap_test.go

Loading diff…

internal/activator/rootfsworkers_test.go

Loading diff…

internal/activator/workerswap_test.go

Loading diff…

internal/console/apicli.go

Loading diff…

internal/console/apilinks_test.go

Loading diff…

internal/console/apipdf_test.go

Loading diff…

internal/console/apiservices.go

Loading diff…

internal/console/apiusage.go

Loading diff…

internal/console/apiusage_e2e_test.go

Loading diff…

internal/console/apiusage_test.go

Loading diff…

internal/console/claim_workers.go

Loading diff…

internal/console/domaincatchall.go

Loading diff…

internal/console/economics_instances_compat_test.go

Loading diff…

internal/console/hostnorm.go

Loading diff…

internal/console/jobs.go

Loading diff…

internal/console/jobs_test.go

Loading diff…

internal/console/linkedpolicy.go

Loading diff…

internal/console/links_auth_test.go

Loading diff…

internal/console/platform_credentials_test.go

Loading diff…

internal/console/promotelink.go

Loading diff…

internal/console/promotelink_test.go

Loading diff…

internal/console/routedecls.go

Loading diff…

internal/console/routedecls_test.go

Loading diff…

internal/console/server.go

Loading diff…

internal/console/svcpage.go

Loading diff…

internal/console/svcprincipal.go

Loading diff…

internal/console/svcroutes_test.go

Loading diff…

internal/console/templates/app_releases.html

Loading diff…

internal/console/usagedays.go

Loading diff…

internal/console/usagefrom.go

Loading diff…

internal/console/usagefrom_test.go

Loading diff…

internal/console/usagerole_test.go

Loading diff…

internal/domains/aliases.go

Loading diff…

internal/domains/claims.go

Loading diff…

internal/edge/asset_far_test.go

Loading diff…

internal/edge/assetcatch.go

Loading diff…

internal/edge/demo_traffic.go

Loading diff…

internal/edge/edge.go

Loading diff…

internal/edge/fleetapi_e2e_test.go

Loading diff…

internal/edge/hunt_H5-M8_test.go

Loading diff…

internal/edge/replicaconsole_socket_test.go

Loading diff…

internal/edge/storedoor.go

Loading diff…

internal/edge/storedoor_claims.go

Loading diff…

internal/edge/storedoor_claims_test.go

Loading diff…

internal/edge/storedoor_test.go

Loading diff…

internal/edge/usagemeter.go

Loading diff…

internal/edge/usagemeter_instances_test.go

Loading diff…

internal/edge/usagemeter_test.go

Loading diff…

internal/host/agent.go

Loading diff…

internal/host/applessroute_test.go

Loading diff…

internal/host/canary_count.go

Loading diff…

internal/host/group_names_test.go

Loading diff…

internal/host/instance_usage.go

Loading diff…

internal/host/instance_usage_e2e_test.go

Loading diff…

internal/host/instance_usage_test.go

Loading diff…

internal/host/systemapply_test.go

Loading diff…

internal/host/testdata/usage-edge-golden.json

Loading diff…

internal/host/usage_compat_test.go

Loading diff…

internal/host/usage_loop.go

Loading diff…

internal/host/usage_loop_test.go

Loading diff…

internal/provision/instance_usage_census_test.go

Loading diff…

internal/provision/plan9_b8_census_test.go

Loading diff…

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

Loading diff…

internal/provision/testdata/plan14-root-reads-instance-usage.tsv

Loading diff…

internal/provision/testdata/plan14-root-reads-sec-h4-m11-stepup-fold.tsv

Loading diff…

internal/provision/testdata/plan14-root-reads-sec-h5-m8-fleet-hostnames.tsv

Loading diff…

internal/status/instanceusage_test.go

Loading diff…

internal/status/snapshot.go

Loading diff…

internal/svcrole/svcrole.go

Loading diff…

internal/svcrole/svcrole_test.go

Loading diff…

internal/usage/edge.go

Loading diff…

internal/usage/instances.go

Loading diff…

internal/usage/instances_test.go

Loading diff…

internal/usage/testdata/instance-usage-e2e.golden.json

Loading diff…

parity/cli.tsv

Loading diff…

parity/packages.tsv

Loading diff…

parity/parity.tsv

Loading diff…

services.go

Loading diff…

services_roles_help_test.go

Loading diff…

testdata/clireg-golden.jsonl

Loading diff…

usage_cmd.go

Loading diff…

usage_cmd_test.go

Loading diff…