carlos / platform Public

Merge remote-tracking branch 'origin/main' into billing-success

Paul Campbell pushed by claude agent, operated by paul@keymail.dev 71af4834d4eae6ee86a7dd362bf3e9fd93dda645 parent 078b009parent 1fa2a99
160 files changed, +12,645 −608
  • README.md +8 −0
  • apimode.go +83 −9
  • apimode_test.go +3 −3
  • appconfig_cli.go +195 −36
  • appconfig_cli_fleet_test.go +410 −0
  • approved_fleet_secrets_copy_test.go +143 −0
  • cmd/console/main.go +8 −2
  • docs/site/cli.md +74 −0
  • docs/site/rails.md +4 −0
  • docs/site/rootfs.md +2 −0
  • docs/superpowers/notes/census-proposal-fleet-secrets-key.md +29 −0
  • docs/superpowers/notes/census-proposal-static-headers.md +29 −0
  • docs/superpowers/notes/census-static-headers-claims.md +7 −0
  • docs/superpowers/plans/2026-10-29-fleet-secrets-key-copy.md +162 −0
  • docs/superpowers/plans/2026-10-29-fleet-secrets-key.md +268 −0
  • docs/superpowers/plans/2026-10-29-static-headers.md +128 −0
  • docs/superpowers/plans/CODEX-FINDINGS-fleet-secrets-key-plan-R1.md +33 −0
  • docs/superpowers/plans/CODEX-FINDINGS-fleet-secrets-key-plan-R2.md +26 −0
  • docs/superpowers/plans/CODEX-FINDINGS-fleet-secrets-key-plan-R3.md +8 −0
  • docs/superpowers/plans/CODEX-REVIEW-BRIEF-fleet-secrets-key-plan-R2.md +38 −0
  • docs/superpowers/plans/CODEX-REVIEW-BRIEF-fleet-secrets-key-plan-R3.md +13 −0
  • docs/superpowers/plans/CODEX-REVIEW-BRIEF-fleet-secrets-key-plan.md +34 −0
  • docs/superpowers/reviews/ASTRA-CENSUS-static-headers.md +10 −0
  • docs/superpowers/reviews/ASTRA-FINDINGS-static-headers-R1.md +23 −0
  • docs/superpowers/reviews/ASTRA-FINDINGS-static-headers-R2.md +36 −0
  • docs/superpowers/reviews/ASTRA-FINDINGS-static-headers-branch-R1.md +9 −0
  • docs/superpowers/reviews/ASTRA-FINDINGS-static-headers-plan-R1.md +65 −0
  • docs/superpowers/reviews/ASTRA-FINDINGS-static-headers-plan-R2.md +22 −0
  • docs/superpowers/reviews/ASTRA-REVIEW-BRIEF-static-headers-R1.md +80 −0
  • docs/superpowers/reviews/ASTRA-REVIEW-BRIEF-static-headers-R2.md +96 −0
  • docs/superpowers/reviews/ASTRA-REVIEW-BRIEF-static-headers-branch-R1.md +73 −0
  • docs/superpowers/reviews/ASTRA-REVIEW-BRIEF-static-headers-plan-R1.md +57 −0
  • docs/superpowers/reviews/ASTRA-REVIEW-BRIEF-static-headers-plan-R2.md +68 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-fleet-secrets-key-branch-R1.md +58 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-fleet-secrets-key-branch-R2.md +27 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-secrets-key-branch-R2.md +11 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-secrets-key-branch.md +37 −0
  • docs/superpowers/specs/2026-10-29-fleet-secrets-key-design.md +521 −0
  • docs/superpowers/specs/2026-10-29-static-headers-design.md +333 −0
  • docs/superpowers/specs/CODEX-FINDINGS-fleet-secrets-key-R1.md +19 −0
  • docs/superpowers/specs/CODEX-FINDINGS-fleet-secrets-key-R2.md +20 −0
  • docs/superpowers/specs/CODEX-FINDINGS-fleet-secrets-key-R3.md +26 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-fleet-secrets-key-R2.md +41 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-fleet-secrets-key-R3.md +32 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-fleet-secrets-key.md +35 −0
  • fleets.go +155 −6
  • fleets_secrets_key_cli_test.go +448 −0
  • instances_cli.go +38 −2
  • instances_cli_refusals_test.go +57 −0
  • internal/appconfig/appconfig.go +3 −0
  • internal/appconfig/configack_test.go +1 −1
  • internal/appconfig/crypto.go +13 −0
  • internal/appconfig/crypto_bind_test.go +18 −1
  • internal/appconfig/generation_test.go +1 −1
  • internal/appconfig/owned_test.go +1 −1
  • internal/appconfig/sealer.go +67 −0
  • internal/appconfig/sealer_test.go +84 −0
  • internal/appconfig/store.go +7 −5
  • internal/appconfig/store_test.go +1 −1
  • internal/appconfig/sync_test.go +1 −1
  • internal/console/apicli.go +12 −1
  • internal/console/apiconfig.go +165 −17
  • internal/console/apienv.go +15 −0
  • internal/console/apiinstances.go +107 −2
  • internal/console/apiinstanceseed.go +19 −2
  • internal/console/apiinstanceseed_test.go +34 −0
  • internal/console/apimail.go +22 −20
  • internal/console/apirelay.go +5 −0
  • internal/console/apiscan.go +62 −16
  • internal/console/apiscan_keys_test.go +4 −11
  • internal/console/apiscan_rotation_race_test.go +4 −6
  • internal/console/apistore.go +57 −20
  • internal/console/apistore_provision.go +6 −2
  • internal/console/apistore_provision_test.go +8 −3
  • internal/console/apisystem.go +19 −8
  • internal/console/authcli.go +4 −0
  • internal/console/claim_invariant_fixtures_test.go +2 −1
  • internal/console/claim_invariant_moves_test.go +33 −6
  • internal/console/claim_invariant_probes_nonapp_test.go +34 −0
  • internal/console/claim_invariant_probes_world_test.go +17 −0
  • internal/console/claim_workers.go +3 −3
  • internal/console/fleetowner.go +67 −2
  • internal/console/fleets.go +65 −5
  • internal/console/fleetsecrets_mint_test.go +385 −0
  • internal/console/fleetsecrets_moves_test.go +345 −0
  • internal/console/fleetsecrets_relay_test.go +652 −0
  • internal/console/fleetsecretskey.go +442 −0
  • internal/console/fleetsecretskey_test.go +555 −0
  • internal/console/instanceprivatestore.go +16 −8
  • internal/console/instances_config_refusals_test.go +273 −0
  • internal/console/movesconsole_test.go +16 −4
  • internal/console/planstorage.go +44 −8
  • internal/console/relayenv.go +30 −22
  • internal/console/relayops.go +135 −33
  • internal/console/relayops_test.go +13 −1
  • internal/console/scan_review_regression_test.go +6 −18
  • internal/console/scankeysync.go +31 −6
  • internal/console/scankeysync_hash_test.go +30 −0
  • internal/console/scankeysync_test.go +29 −14
  • internal/console/sealkey.go +309 −0
  • internal/console/sealkey_guard_test.go +657 −0
  • internal/console/sealkey_test.go +687 −0
  • internal/console/server.go +38 −6
  • internal/console/svcroutes_test.go +5 −2
  • internal/console/teamcreds.go +8 −7
  • internal/console/teamcreds_test.go +3 −3
  • internal/console/templates/fleet_byo.html +3 −1
  • internal/console/templates/fleetdetail.html +7 −0
  • internal/console/testdata/claim-routes.txt +1 −0
  • internal/console/testdata/sealguard/aliased/aliased.go +16 −0
  • internal/console/testdata/sealguard/arbitrary/arbitrary.go +14 −0
  • internal/console/testdata/sealguard/choose/choose.go +11 −0
  • internal/console/testdata/sealguard/ctor/ctor.go +9 −0
  • internal/console/testdata/sealguard/ctor/fieldassign.go +12 −0
  • internal/console/testdata/sealguard/ctor/method.go +15 −0
  • internal/console/testdata/sealguard/ctor/sealwith.go +14 −0
  • internal/console/testdata/sealguard/darwinonly/sealy/sealy.go +17 −0
  • internal/console/testdata/sealguard/sealkey/sealkey.go +19 −0
  • internal/console/view.go +1 −0
  • internal/edge/edge.go +16 −4
  • internal/edge/headers.go +311 −0
  • internal/edge/headers_test.go +250 −0
  • internal/edge/headerwriter.go +121 −0
  • internal/edge/redirects.go +88 −66
  • internal/edge/static.go +60 −12
  • internal/edge/static_headers_golden_test.go +188 −0
  • internal/edge/static_headers_test.go +359 −0
  • internal/edge/testdata/static-headers-golden.json +165 −0
  • internal/host/fleet_secrets_key_test.go +319 −0
  • internal/host/replicahomekeys_test.go +1 −1
  • internal/hostops/fleetowner_classifier.go +69 −14
  • internal/hostops/fleetowner_classifier_test.go +100 −5
  • internal/hostops/mutation_classifier.go +2 −1
  • internal/mail/claim_gate_closure_test.go +1 −1
  • internal/mail/sealer_helper_test.go +14 −0
  • internal/mail/walk.go +16 −17
  • internal/mail/walk_domainremove_test.go +1 −1
  • internal/mail/walk_enable_test.go +20 −20
  • internal/mail/walk_environment.go +5 −6
  • internal/mail/walk_environment_test.go +10 −10
  • internal/mail/walk_lifecycle_test.go +21 −21
  • internal/mail/walk_verify_test.go +1 −1
  • internal/moves/floor.go +4 −3
  • internal/objstore/enforce_test.go +3 −3
  • internal/objstore/nameclaim_test.go +1 −1
  • internal/objstore/walk.go +46 −32
  • internal/objstore/walk_env_test.go +9 −9
  • internal/objstore/walk_seed_test.go +4 −4
  • internal/objstore/walk_test.go +47 −40
  • internal/objstore/writesdenied_test.go +2 −2
  • internal/provision/fleet_secrets_key_census_test.go +93 −0
  • internal/provision/plan9_b8_census_test.go +1 −1
  • internal/provision/testdata/plan14-root-reads-chain.tsv +2 −0
  • internal/provision/testdata/plan14-root-reads-fleet-secrets-key.tsv +24 −0
  • internal/provision/testdata/plan14-root-reads-static-headers.tsv +14 −0
  • internal/registry/fleets.go +126 −5
  • internal/registry/fleets_secrets_key_test.go +207 −0
  • internal/registry/remote.go +1 −1
  • internal/registry/remote_dispatch.go +5 −0
  • internal/release/release.go +7 −0

CI passed — run details

README.md

Loading diff…

apimode.go

Loading diff…

apimode_test.go

Loading diff…

appconfig_cli.go

Loading diff…

appconfig_cli_fleet_test.go

Loading diff…

approved_fleet_secrets_copy_test.go

Loading diff…

cmd/console/main.go

Loading diff…

docs/site/cli.md

Loading diff…

docs/site/rails.md

Loading diff…

docs/site/rootfs.md

Loading diff…

docs/superpowers/notes/census-proposal-fleet-secrets-key.md

Loading diff…

docs/superpowers/notes/census-proposal-static-headers.md

Loading diff…

docs/superpowers/notes/census-static-headers-claims.md

Loading diff…

docs/superpowers/plans/2026-10-29-fleet-secrets-key-copy.md

Loading diff…

docs/superpowers/plans/2026-10-29-fleet-secrets-key.md

Loading diff…

docs/superpowers/plans/2026-10-29-static-headers.md

Loading diff…

docs/superpowers/plans/CODEX-FINDINGS-fleet-secrets-key-plan-R1.md

Loading diff…

docs/superpowers/plans/CODEX-FINDINGS-fleet-secrets-key-plan-R2.md

Loading diff…

docs/superpowers/plans/CODEX-FINDINGS-fleet-secrets-key-plan-R3.md

Loading diff…

docs/superpowers/plans/CODEX-REVIEW-BRIEF-fleet-secrets-key-plan-R2.md

Loading diff…

docs/superpowers/plans/CODEX-REVIEW-BRIEF-fleet-secrets-key-plan-R3.md

Loading diff…

docs/superpowers/plans/CODEX-REVIEW-BRIEF-fleet-secrets-key-plan.md

Loading diff…

docs/superpowers/reviews/ASTRA-CENSUS-static-headers.md

Loading diff…

docs/superpowers/reviews/ASTRA-FINDINGS-static-headers-R1.md

Loading diff…

docs/superpowers/reviews/ASTRA-FINDINGS-static-headers-R2.md

Loading diff…

docs/superpowers/reviews/ASTRA-FINDINGS-static-headers-branch-R1.md

Loading diff…

docs/superpowers/reviews/ASTRA-FINDINGS-static-headers-plan-R1.md

Loading diff…

docs/superpowers/reviews/ASTRA-FINDINGS-static-headers-plan-R2.md

Loading diff…

docs/superpowers/reviews/ASTRA-REVIEW-BRIEF-static-headers-R1.md

Loading diff…

docs/superpowers/reviews/ASTRA-REVIEW-BRIEF-static-headers-R2.md

Loading diff…

docs/superpowers/reviews/ASTRA-REVIEW-BRIEF-static-headers-branch-R1.md

Loading diff…

docs/superpowers/reviews/ASTRA-REVIEW-BRIEF-static-headers-plan-R1.md

Loading diff…

docs/superpowers/reviews/ASTRA-REVIEW-BRIEF-static-headers-plan-R2.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-fleet-secrets-key-branch-R1.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-fleet-secrets-key-branch-R2.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-secrets-key-branch-R2.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-secrets-key-branch.md

Loading diff…

docs/superpowers/specs/2026-10-29-fleet-secrets-key-design.md

Loading diff…

docs/superpowers/specs/2026-10-29-static-headers-design.md

Loading diff…

docs/superpowers/specs/CODEX-FINDINGS-fleet-secrets-key-R1.md

Loading diff…

docs/superpowers/specs/CODEX-FINDINGS-fleet-secrets-key-R2.md

Loading diff…

docs/superpowers/specs/CODEX-FINDINGS-fleet-secrets-key-R3.md

Loading diff…

docs/superpowers/specs/CODEX-REVIEW-BRIEF-fleet-secrets-key-R2.md

Loading diff…

docs/superpowers/specs/CODEX-REVIEW-BRIEF-fleet-secrets-key-R3.md

Loading diff…

docs/superpowers/specs/CODEX-REVIEW-BRIEF-fleet-secrets-key.md

Loading diff…

fleets.go

Loading diff…

fleets_secrets_key_cli_test.go

Loading diff…

instances_cli.go

Loading diff…

instances_cli_refusals_test.go

Loading diff…

internal/appconfig/appconfig.go

Loading diff…

internal/appconfig/configack_test.go

Loading diff…

internal/appconfig/crypto.go

Loading diff…

internal/appconfig/crypto_bind_test.go

Loading diff…

internal/appconfig/generation_test.go

Loading diff…

internal/appconfig/owned_test.go

Loading diff…

internal/appconfig/sealer.go

Loading diff…

internal/appconfig/sealer_test.go

Loading diff…

internal/appconfig/store.go

Loading diff…

internal/appconfig/store_test.go

Loading diff…

internal/appconfig/sync_test.go

Loading diff…

internal/console/apicli.go

Loading diff…

internal/console/apiconfig.go

Loading diff…

internal/console/apienv.go

Loading diff…

internal/console/apiinstances.go

Loading diff…

internal/console/apiinstanceseed.go

Loading diff…

internal/console/apiinstanceseed_test.go

Loading diff…

internal/console/apimail.go

Loading diff…

internal/console/apirelay.go

Loading diff…

internal/console/apiscan.go

Loading diff…

internal/console/apiscan_keys_test.go

Loading diff…

internal/console/apiscan_rotation_race_test.go

Loading diff…

internal/console/apistore.go

Loading diff…

internal/console/apistore_provision.go

Loading diff…

internal/console/apistore_provision_test.go

Loading diff…

internal/console/apisystem.go

Loading diff…

internal/console/authcli.go

Loading diff…

internal/console/claim_invariant_fixtures_test.go

Loading diff…

internal/console/claim_invariant_moves_test.go

Loading diff…

internal/console/claim_invariant_probes_nonapp_test.go

Loading diff…

internal/console/claim_invariant_probes_world_test.go

Loading diff…

internal/console/claim_workers.go

Loading diff…

internal/console/fleetowner.go

Loading diff…

internal/console/fleets.go

Loading diff…

internal/console/fleetsecrets_mint_test.go

Loading diff…

internal/console/fleetsecrets_moves_test.go

Loading diff…

internal/console/fleetsecrets_relay_test.go

Loading diff…

internal/console/fleetsecretskey.go

Loading diff…

internal/console/fleetsecretskey_test.go

Loading diff…

internal/console/instanceprivatestore.go

Loading diff…

internal/console/instances_config_refusals_test.go

Loading diff…

internal/console/movesconsole_test.go

Loading diff…

internal/console/planstorage.go

Loading diff…

internal/console/relayenv.go

Loading diff…

internal/console/relayops.go

Loading diff…

internal/console/relayops_test.go

Loading diff…

internal/console/scan_review_regression_test.go

Loading diff…

internal/console/scankeysync.go

Loading diff…

internal/console/scankeysync_hash_test.go

Loading diff…

internal/console/scankeysync_test.go

Loading diff…

internal/console/sealkey.go

Loading diff…

internal/console/sealkey_guard_test.go

Loading diff…

internal/console/sealkey_test.go

Loading diff…

internal/console/server.go

Loading diff…

internal/console/svcroutes_test.go

Loading diff…

internal/console/teamcreds.go

Loading diff…

internal/console/teamcreds_test.go

Loading diff…

internal/console/templates/fleet_byo.html

Loading diff…

internal/console/templates/fleetdetail.html

Loading diff…

internal/console/testdata/claim-routes.txt

Loading diff…

internal/console/testdata/sealguard/aliased/aliased.go

Loading diff…

internal/console/testdata/sealguard/arbitrary/arbitrary.go

Loading diff…

internal/console/testdata/sealguard/choose/choose.go

Loading diff…

internal/console/testdata/sealguard/ctor/ctor.go

Loading diff…

internal/console/testdata/sealguard/ctor/fieldassign.go

Loading diff…

internal/console/testdata/sealguard/ctor/method.go

Loading diff…

internal/console/testdata/sealguard/ctor/sealwith.go

Loading diff…

internal/console/testdata/sealguard/darwinonly/sealy/sealy.go

Loading diff…

internal/console/testdata/sealguard/sealkey/sealkey.go

Loading diff…

internal/console/view.go

Loading diff…

internal/edge/edge.go

Loading diff…

internal/edge/headers.go

Loading diff…

internal/edge/headers_test.go

Loading diff…

internal/edge/headerwriter.go

Loading diff…

internal/edge/redirects.go

Loading diff…

internal/edge/static.go

Loading diff…

internal/edge/static_headers_golden_test.go

Loading diff…

internal/edge/static_headers_test.go

Loading diff…

internal/edge/testdata/static-headers-golden.json

Loading diff…

internal/host/fleet_secrets_key_test.go

Loading diff…

internal/host/replicahomekeys_test.go

Loading diff…

internal/hostops/fleetowner_classifier.go

Loading diff…

internal/hostops/fleetowner_classifier_test.go

Loading diff…

internal/hostops/mutation_classifier.go

Loading diff…

internal/mail/claim_gate_closure_test.go

Loading diff…

internal/mail/sealer_helper_test.go

Loading diff…

internal/mail/walk.go

Loading diff…

internal/mail/walk_domainremove_test.go

Loading diff…

internal/mail/walk_enable_test.go

Loading diff…

internal/mail/walk_environment.go

Loading diff…

internal/mail/walk_environment_test.go

Loading diff…

internal/mail/walk_lifecycle_test.go

Loading diff…

internal/mail/walk_verify_test.go

Loading diff…

internal/moves/floor.go

Loading diff…

internal/objstore/enforce_test.go

Loading diff…

internal/objstore/nameclaim_test.go

Loading diff…

internal/objstore/walk.go

Loading diff…

internal/objstore/walk_env_test.go

Loading diff…

internal/objstore/walk_seed_test.go

Loading diff…

internal/objstore/walk_test.go

Loading diff…

internal/objstore/writesdenied_test.go

Loading diff…

internal/provision/fleet_secrets_key_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-fleet-secrets-key.tsv

Loading diff…

internal/provision/testdata/plan14-root-reads-static-headers.tsv

Loading diff…

internal/registry/fleets.go

Loading diff…

internal/registry/fleets_secrets_key_test.go

Loading diff…

internal/registry/remote.go

Loading diff…

internal/registry/remote_dispatch.go

Loading diff…

internal/release/release.go

Loading diff…