Merge origin/main (8294a520: fleet alerts Plan 1, managed-fleets-1b) into sponsor-existing-accounts
Conflicts: - internal/console/store_gate.go, the claim SQL table list: both kept, main's alert_* tables then this branch's plan_launch_sponsorship in its own section. - the census chain: main's chain taken whole, then `make census-propose NAME=sponsor-existing-accounts` re-layered this branch's overlay and appended its line under main's seal. The overlay's bytes are unchanged (main did not touch internal/plans), so the internal/plans envelope Astra approved at 1237aa42 is the one pinned. cmd/console/main.go and internal/console/store.go auto-merged: serve() still settles the sponsorship before NewServer, the alert engine and every other worker and the listener (TestServeSettlesTheSponsorshipBeforeItServes), nothing before it reads accounts or plan limits, and the three account inserts still apply the rule.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
.amadan/test-weights.tsv+2 −0README.md+223 −27apimode.go+31 −3approved_fleet_secrets_copy_test.go+4 −2cli.go+20 −5cmd/console/claimworkers_started_test.go+8 −1cmd/console/main.go+20 −7docs/site/cli.md+40 −2docs/superpowers/notes/LUNA-COPY-BRIEF-fleet-alerts-1.md+36 −0docs/superpowers/notes/LUNA-COPY-RESULT-fleet-alerts-1.md+87 −0docs/superpowers/notes/LUNA-DOCS-BRIEF-fleet-alerts-1.md+21 −0docs/superpowers/notes/LUNA-DOCS-RESULT-fleet-alerts-1.md+52 −0docs/superpowers/notes/census-card-fleet-alerts-1.txt+23 −0docs/superpowers/notes/census-fleet-alerts-1-claims.md+6 −0docs/superpowers/notes/census-proposal-fleet-alerts-1.md+25 −0docs/superpowers/notes/census-proposal-managed-fleets-1b.md+77 −0docs/superpowers/notes/census-proposal-sponsor-existing-accounts.md+1 −1docs/superpowers/notes/copy-fleet-alerts-1.md+520 −0docs/superpowers/notes/managed-fleets-1b-ledger.md+53 −0docs/superpowers/notes/roll-fleet-alerts-1.md+296 −0docs/superpowers/plans/2026-10-29-fleet-secrets-key-copy.md+10 −2docs/superpowers/plans/2026-10-30-fleet-alerts-1-engine-connectors.md+635 −0docs/superpowers/plans/2026-10-30-managed-fleets-1b-box-per-instance.md+203 −0docs/superpowers/plans/CODEX-FINDINGS-MANAGED-FLEETS-1B-BRANCH-R1.md+186 −0docs/superpowers/plans/CODEX-FINDINGS-MANAGED-FLEETS-1B-BRANCH-R2.md+51 −0docs/superpowers/plans/CODEX-FINDINGS-MANAGED-FLEETS-1B-BRANCH-R3.md+25 −0docs/superpowers/plans/CODEX-FINDINGS-MANAGED-FLEETS-1B-PLAN-R1.md+115 −0docs/superpowers/plans/CODEX-FINDINGS-MANAGED-FLEETS-1B-PLAN-R2.md+91 −0docs/superpowers/plans/CODEX-FINDINGS-MANAGED-FLEETS-1B-PLAN-R3.md+89 −0docs/superpowers/plans/CODEX-REVIEW-BRIEF-MANAGED-FLEETS-1B-BRANCH.md+49 −0docs/superpowers/plans/CODEX-REVIEW-BRIEF-MANAGED-FLEETS-1B-PLAN.md+44 −0docs/superpowers/reviews/CODEX-FINDINGS-fleet-alerts-1-branch-R1.md+136 −0docs/superpowers/reviews/CODEX-FINDINGS-fleet-alerts-1-branch-R2.md+26 −0docs/superpowers/reviews/CODEX-FINDINGS-fleet-alerts-1-census-remerge.md+14 −0docs/superpowers/reviews/CODEX-FINDINGS-fleet-alerts-1-plan-R1.md+129 −0docs/superpowers/reviews/CODEX-FINDINGS-fleet-alerts-1-plan-R2.md+106 −0docs/superpowers/reviews/CODEX-FINDINGS-fleet-alerts-1-plan-R3.md+46 −0docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-alerts-1-branch-R2.md+46 −0docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-alerts-1-branch.md+64 −0docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-alerts-1-census-remerge.md+14 −0docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-alerts-1-plan-R2.md+111 −0docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-alerts-1-plan-R3.md+113 −0docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-alerts-1-plan.md+95 −0docs/superpowers/specs/2026-10-28-managed-fleets-design.md+133 −8docs/superpowers/specs/2026-10-30-fleet-alerts-and-traffic-design.md+631 −0fleets.go+73 −11fleets_cli_test.go+84 −2fleets_secrets_key_cli_test.go+1 −1internal/activator/activator.go+41 −7internal/activator/backend_exec.go+42 −1internal/activator/hawake.go+23 −3internal/activator/leaseidentity_test.go+82 −0internal/activator/logsink.go+8 −0internal/activator/maintenance.go+10 −0internal/activator/pendingwake_linux_test.go+748 −0internal/activator/rootfsworkers_test.go+19 −0internal/activator/seedplace.go+34 −0internal/activator/startrule.go+383 −0internal/activator/startrule_test.go+997 −0internal/activator/wakeidentity.go+162 −0internal/alerting/alerting.go+52 −7internal/alerting/alerting_test.go+162 −0internal/alerting/ruletext.go+64 −0internal/console/alertcopy_test.go+227 −0internal/console/alertdial.go+249 −0internal/console/alertdial_test.go+389 −0internal/console/alertengine.go+288 −0internal/console/alertengine_pass.go+766 −0internal/console/alertengine_pass_test.go+1,066 −0internal/console/alertengine_test.go+754 −0internal/console/alertnotify.go+1,010 −0internal/console/alertnotify_test.go+1,182 −0internal/console/alertnow.go+18 −63internal/console/alertnow_test.go+34 −79internal/console/alertpages.go+1,048 −0internal/console/alertpages_test.go+909 −0internal/console/alertseal.go+120 −0internal/console/alertseal_test.go+120 −0internal/console/alertsign.go+30 −0internal/console/alertsign_test.go+117 −0internal/console/alertsignals.go+487 −0internal/console/alertstore.go+1,364 −0internal/console/alertstore_test.go+585 −0internal/console/alertwatch.go+7 −254internal/console/alertwatch_test.go+6 −303internal/console/apidomains.go+7 −0internal/console/apiinstances.go+54 −2internal/console/apisidecars.go+25 −0internal/console/authcli.go+1 −0internal/console/claim_invariant_fixtures_test.go+32 −1internal/console/claim_invariant_probes_nonapp_test.go+163 −0internal/console/claim_invariant_probes_read_test.go+47 −0internal/console/claim_invariant_probes_worker_test.go+61 −6internal/console/claim_invariant_test.go+2 −0internal/console/claim_runtime.go+1 −1internal/console/claim_workers.go+2 −1internal/console/economicspass.go+2 −2internal/console/emailsignin_limits.go+27 −1internal/console/emailsignin_limits_test.go+7 −7internal/console/fleetbox.go+621 −0internal/console/fleetbox_test.go+756 −0internal/console/fleetrelabel.go+567 −0internal/console/fleetrelabel_test.go+776 −0internal/console/fleets.go+122 −12internal/console/jobs.go+30 −5internal/console/jobs_test.go+19 −18internal/console/mailpush.go+18 −45internal/console/metricsview.go+2 −2internal/console/opdashboard_test.go+2 −6internal/console/opshell.go+1 −0internal/console/opshell_test.go+2 −2internal/console/opshots_test.go+2 −0internal/console/rootfs.go+24 −1internal/console/server.go+71 −5internal/console/store.go+87 −1internal/console/store_gate.go+12 −0internal/console/svcroutes_test.go+3 −2internal/console/templates/alert_door.html+21 −0internal/console/templates/fleetdetail.html+1 −0internal/console/templates/ops_alerts.html+108 −0internal/console/templates/ops_alerts_history.html+29 −0internal/console/testdata/claim-authority-sites.txt+4 −0internal/console/testdata/claim-routes.txt+17 −1internal/console/testdata/perf-budgets.txt+9 −0internal/console/view.go+2 −0internal/edge/edge.go+33 −7internal/edge/fleet_route_test.go+117 −0internal/edge/upgrades_test.go+1 −1internal/host/agent.go+22 −2internal/host/alertsink.go+78 −21internal/host/alertsink_geoip_test.go+2 −2internal/host/alertsink_test.go+190 −14internal/host/disktrend.go+105 −0internal/host/disktrend_test.go+102 −0internal/host/enginebeat.go+162 −0internal/host/enginebeat_linux_test.go+368 −0internal/host/fleetidentity.go+33 −0internal/host/fleettwobox_e2e_test.go+1,025 −0internal/host/fleetwake_test.go+73 −0internal/host/host_test.go+26 −0internal/host/leaseidentity_wiring_test.go+66 −0internal/host/metrics_loop.go+50 −7internal/host/metrics_loop_test.go+219 −7internal/host/probes.go+12 −0internal/lease/lease.go+16 −1internal/lease/legacytake.go+6 −3internal/metrics/alert.go+105 −3internal/metrics/alert_test.go+205 −0internal/metrics/forecast.go+120 −0internal/metrics/forecast_test.go+107 −0internal/provision/fleet_alerts_census_test.go+40 −0internal/provision/fleetbox.go+73 −0internal/provision/fleetbox_test.go+254 −0internal/provision/forward.go+15 −5internal/provision/forward_test.go+138 −2internal/provision/managed_fleets_1b_census_test.go+92 −0internal/provision/plan9_b8_census_test.go+3 −2internal/provision/provision.go+13 −0internal/provision/reconcile.go+59 −2internal/provision/reconcile_lifetime_test.go+45 −0internal/provision/reconcile_test.go+133 −0internal/provision/seedjournal_test.go+44 −0internal/provision/seedreconcile.go+5 −1internal/provision/seedreconcile_test.go+66 −0internal/provision/testdata/plan14-root-reads-chain.tsv+3 −1internal/provision/testdata/plan14-root-reads-fleet-alerts-1.tsv+14 −0internal/provision/testdata/plan14-root-reads-managed-fleets-1b.tsv+84 −0internal/registry/fleetassigned_test.go+75 −0internal/registry/fleetbox_if_test.go+111 −0internal/registry/fleetdrain_test.go+146 −0internal/registry/fleets.go+94 −2internal/registry/forward.go+41 −20internal/registry/forward_test.go+75 −1internal/registry/forward_writers_test.go+3 −0internal/registry/registry.go+86 −13internal/registry/registry_test.go+2 −0internal/registry/remote_dispatch.go+10 −0internal/release/layoutintent.go+12 −0internal/release/layoutintent_test.go+10 −0internal/status/snapshot.go+26 −2internal/status/snapshot_test.go+38 −0statuslive_test.go+6 −0
CI passed — run details
.amadan/test-weights.tsvLoading diff…
README.mdLoading diff…
apimode.goLoading diff…
approved_fleet_secrets_copy_test.goLoading diff…
cli.goLoading diff…
cmd/console/claimworkers_started_test.goLoading diff…
cmd/console/main.goLoading diff…
docs/site/cli.mdLoading diff…
docs/superpowers/notes/LUNA-COPY-BRIEF-fleet-alerts-1.mdLoading diff…
docs/superpowers/notes/LUNA-COPY-RESULT-fleet-alerts-1.mdLoading diff…
docs/superpowers/notes/LUNA-DOCS-BRIEF-fleet-alerts-1.mdLoading diff…
docs/superpowers/notes/LUNA-DOCS-RESULT-fleet-alerts-1.mdLoading diff…
docs/superpowers/notes/census-card-fleet-alerts-1.txtLoading diff…
docs/superpowers/notes/census-fleet-alerts-1-claims.mdLoading diff…
docs/superpowers/notes/census-proposal-fleet-alerts-1.mdLoading diff…
docs/superpowers/notes/census-proposal-managed-fleets-1b.mdLoading diff…
docs/superpowers/notes/census-proposal-sponsor-existing-accounts.mdLoading diff…
docs/superpowers/notes/copy-fleet-alerts-1.mdLoading diff…
docs/superpowers/notes/managed-fleets-1b-ledger.mdLoading diff…
docs/superpowers/notes/roll-fleet-alerts-1.mdLoading diff…
docs/superpowers/plans/2026-10-29-fleet-secrets-key-copy.mdLoading diff…
docs/superpowers/plans/2026-10-30-fleet-alerts-1-engine-connectors.mdLoading diff…
docs/superpowers/plans/2026-10-30-managed-fleets-1b-box-per-instance.mdLoading diff…
docs/superpowers/plans/CODEX-FINDINGS-MANAGED-FLEETS-1B-BRANCH-R1.mdLoading diff…
docs/superpowers/plans/CODEX-FINDINGS-MANAGED-FLEETS-1B-BRANCH-R2.mdLoading diff…
docs/superpowers/plans/CODEX-FINDINGS-MANAGED-FLEETS-1B-BRANCH-R3.mdLoading diff…
docs/superpowers/plans/CODEX-FINDINGS-MANAGED-FLEETS-1B-PLAN-R1.mdLoading diff…
docs/superpowers/plans/CODEX-FINDINGS-MANAGED-FLEETS-1B-PLAN-R2.mdLoading diff…
docs/superpowers/plans/CODEX-FINDINGS-MANAGED-FLEETS-1B-PLAN-R3.mdLoading diff…
docs/superpowers/plans/CODEX-REVIEW-BRIEF-MANAGED-FLEETS-1B-BRANCH.mdLoading diff…
docs/superpowers/plans/CODEX-REVIEW-BRIEF-MANAGED-FLEETS-1B-PLAN.mdLoading diff…
docs/superpowers/reviews/CODEX-FINDINGS-fleet-alerts-1-branch-R1.mdLoading diff…
docs/superpowers/reviews/CODEX-FINDINGS-fleet-alerts-1-branch-R2.mdLoading diff…
docs/superpowers/reviews/CODEX-FINDINGS-fleet-alerts-1-census-remerge.mdLoading diff…
docs/superpowers/reviews/CODEX-FINDINGS-fleet-alerts-1-plan-R1.mdLoading diff…
docs/superpowers/reviews/CODEX-FINDINGS-fleet-alerts-1-plan-R2.mdLoading diff…
docs/superpowers/reviews/CODEX-FINDINGS-fleet-alerts-1-plan-R3.mdLoading diff…
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-alerts-1-branch-R2.mdLoading diff…
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-alerts-1-branch.mdLoading diff…
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-alerts-1-census-remerge.mdLoading diff…
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-alerts-1-plan-R2.mdLoading diff…
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-alerts-1-plan-R3.mdLoading diff…
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-alerts-1-plan.mdLoading diff…
docs/superpowers/specs/2026-10-28-managed-fleets-design.mdLoading diff…
docs/superpowers/specs/2026-10-30-fleet-alerts-and-traffic-design.mdLoading diff…
fleets.goLoading diff…
fleets_cli_test.goLoading diff…
fleets_secrets_key_cli_test.goLoading diff…
internal/activator/activator.goLoading diff…
internal/activator/backend_exec.goLoading diff…
internal/activator/hawake.goLoading diff…
internal/activator/leaseidentity_test.goLoading diff…
internal/activator/logsink.goLoading diff…
internal/activator/maintenance.goLoading diff…
internal/activator/pendingwake_linux_test.goLoading diff…
internal/activator/rootfsworkers_test.goLoading diff…
internal/activator/seedplace.goLoading diff…
internal/activator/startrule.goLoading diff…
internal/activator/startrule_test.goLoading diff…
internal/activator/wakeidentity.goLoading diff…
internal/alerting/alerting.goLoading diff…
internal/alerting/alerting_test.goLoading diff…
internal/alerting/ruletext.goLoading diff…
internal/console/alertcopy_test.goLoading diff…
internal/console/alertdial.goLoading diff…
internal/console/alertdial_test.goLoading diff…
internal/console/alertengine.goLoading diff…
internal/console/alertengine_pass.goLoading diff…
internal/console/alertengine_pass_test.goLoading diff…
internal/console/alertengine_test.goLoading diff…
internal/console/alertnotify.goLoading diff…
internal/console/alertnotify_test.goLoading diff…
internal/console/alertnow.goLoading diff…
internal/console/alertnow_test.goLoading diff…
internal/console/alertpages.goLoading diff…
internal/console/alertpages_test.goLoading diff…
internal/console/alertseal.goLoading diff…
internal/console/alertseal_test.goLoading diff…
internal/console/alertsign.goLoading diff…
internal/console/alertsign_test.goLoading diff…
internal/console/alertsignals.goLoading diff…
internal/console/alertstore.goLoading diff…
internal/console/alertstore_test.goLoading diff…
internal/console/alertwatch.goLoading diff…
internal/console/alertwatch_test.goLoading diff…
internal/console/apidomains.goLoading diff…
internal/console/apiinstances.goLoading diff…
internal/console/apisidecars.goLoading diff…
internal/console/authcli.goLoading diff…
internal/console/claim_invariant_fixtures_test.goLoading diff…
internal/console/claim_invariant_probes_nonapp_test.goLoading diff…
internal/console/claim_invariant_probes_read_test.goLoading diff…
internal/console/claim_invariant_probes_worker_test.goLoading diff…
internal/console/claim_invariant_test.goLoading diff…
internal/console/claim_runtime.goLoading diff…
internal/console/claim_workers.goLoading diff…
internal/console/economicspass.goLoading diff…
internal/console/emailsignin_limits.goLoading diff…
internal/console/emailsignin_limits_test.goLoading diff…
internal/console/fleetbox.goLoading diff…
internal/console/fleetbox_test.goLoading diff…
internal/console/fleetrelabel.goLoading diff…
internal/console/fleetrelabel_test.goLoading diff…
internal/console/fleets.goLoading diff…
internal/console/jobs.goLoading diff…
internal/console/jobs_test.goLoading diff…
internal/console/mailpush.goLoading diff…
internal/console/metricsview.goLoading diff…
internal/console/opdashboard_test.goLoading diff…
internal/console/opshell.goLoading diff…
internal/console/opshell_test.goLoading diff…
internal/console/opshots_test.goLoading diff…
internal/console/rootfs.goLoading diff…
internal/console/server.goLoading diff…
internal/console/store.goLoading diff…
internal/console/store_gate.goLoading diff…
internal/console/svcroutes_test.goLoading diff…
internal/console/templates/alert_door.htmlLoading diff…
internal/console/templates/fleetdetail.htmlLoading diff…
internal/console/templates/ops_alerts.htmlLoading diff…
internal/console/templates/ops_alerts_history.htmlLoading diff…
internal/console/testdata/claim-authority-sites.txtLoading diff…
internal/console/testdata/claim-routes.txtLoading diff…
internal/console/testdata/perf-budgets.txtLoading diff…
internal/console/view.goLoading diff…
internal/edge/edge.goLoading diff…
internal/edge/fleet_route_test.goLoading diff…
internal/edge/upgrades_test.goLoading diff…
internal/host/agent.goLoading diff…
internal/host/alertsink.goLoading diff…
internal/host/alertsink_geoip_test.goLoading diff…
internal/host/alertsink_test.goLoading diff…
internal/host/disktrend.goLoading diff…
internal/host/disktrend_test.goLoading diff…
internal/host/enginebeat.goLoading diff…
internal/host/enginebeat_linux_test.goLoading diff…
internal/host/fleetidentity.goLoading diff…
internal/host/fleettwobox_e2e_test.goLoading diff…
internal/host/fleetwake_test.goLoading diff…
internal/host/host_test.goLoading diff…
internal/host/leaseidentity_wiring_test.goLoading diff…
internal/host/metrics_loop.goLoading diff…
internal/host/metrics_loop_test.goLoading diff…
internal/host/probes.goLoading diff…
internal/lease/lease.goLoading diff…
internal/lease/legacytake.goLoading diff…
internal/metrics/alert.goLoading diff…
internal/metrics/alert_test.goLoading diff…
internal/metrics/forecast.goLoading diff…
internal/metrics/forecast_test.goLoading diff…
internal/provision/fleet_alerts_census_test.goLoading diff…
internal/provision/fleetbox.goLoading diff…
internal/provision/fleetbox_test.goLoading diff…
internal/provision/forward.goLoading diff…
internal/provision/forward_test.goLoading diff…
internal/provision/managed_fleets_1b_census_test.goLoading diff…
internal/provision/plan9_b8_census_test.goLoading diff…
internal/provision/provision.goLoading diff…
internal/provision/reconcile.goLoading diff…
internal/provision/reconcile_lifetime_test.goLoading diff…
internal/provision/reconcile_test.goLoading diff…
internal/provision/seedjournal_test.goLoading diff…
internal/provision/seedreconcile.goLoading diff…
internal/provision/seedreconcile_test.goLoading diff…
internal/provision/testdata/plan14-root-reads-chain.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-fleet-alerts-1.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-managed-fleets-1b.tsvLoading diff…
internal/registry/fleetassigned_test.goLoading diff…
internal/registry/fleetbox_if_test.goLoading diff…
internal/registry/fleetdrain_test.goLoading diff…
internal/registry/fleets.goLoading diff…
internal/registry/forward.goLoading diff…
internal/registry/forward_test.goLoading diff…
internal/registry/forward_writers_test.goLoading diff…
internal/registry/registry.goLoading diff…
internal/registry/registry_test.goLoading diff…
internal/registry/remote_dispatch.goLoading diff…
internal/release/layoutintent.goLoading diff…
internal/release/layoutintent_test.goLoading diff…
internal/status/snapshot.goLoading diff…
internal/status/snapshot_test.goLoading diff…
statuslive_test.goLoading diff…