feat: converge replica placement and fleet drains
Complete proof-driven retirement through the authenticated fleet coordinator API and the existing agent tick. Retain eligible coordinators, wait for old authority to end, and freeze active swaps until completion or an explicit loss halt. Convert completed one-copy sets back to legacy records and projections. Keep stateful publication fenced until conversion, and preserve revision monotonicity across re-opt-in so old ACKs cannot clear new obligations. Publish one coordinator-owned set binding per host without per-copy polls. Add lifecycle, authentication, binding and request-budget coverage and refresh both census inventories. Independent census approval and dev smoke remain controller-owned. Baseline host and GeoIP failures are documented in the slice report; no push or deployment is included.
Co-Authored-By: Codex (gpt-6-astra) <noreply@openai.com>
docs/superpowers/notes/census-proposal-stateless-replicas-2.md+14 −5internal/activator/replica_reconcile_wake_test.go+32 −3internal/activator/replicaretirement.go+48 −0internal/activator/replicaretirement_test.go+36 −0internal/console/appcopies.go+1 −1internal/console/copiespublication_test.go+1 −1internal/console/replicacoordinator.go+26 −2internal/console/replicacoordinator_test.go+99 −0internal/console/replicaplacement.go+50 −5internal/console/replicaplacement_test.go+120 −0internal/host/agent.go+11 −1internal/host/fleetbind.go+65 −6internal/host/fleetbind_test.go+2 −1internal/host/replica_request_budget_test.go+285 −0internal/host/replicaplacement.go+154 −0internal/provision/plan9_b8_census_test.go+3 −1internal/provision/reconcile.go+23 −1internal/provision/replicaassignment.go+93 −2internal/provision/replicaassignment_test.go+101 −0internal/provision/replicacoordinator.go+12 −1internal/provision/replicadeploy.go+1 −1internal/provision/stateless_placement_census_test.go+22 −6internal/provision/testdata/plan14-root-reads-chain.tsv+1 −1internal/provision/testdata/plan14-root-reads-stateless-replicas-2.tsv+26 −13internal/registry/forward_writers_test.go+4 −1internal/registry/remote_dispatch.go+2 −0internal/registry/replicas.go+24 −0
CI passed — run details
Intent
<task-notification> <task-id>bftztxjos</task-id> <tool-use-id>toolu_01FEuToYExp6FxdvSXjTCKWt</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/7c5a7d70-0e28-42b9-896c-5d73b2d2a05d/tasks/bftztxjos.output</output-file> <status>completed</status> <summary>Background command "Wait for resumed 3a" completed (exit code 0)</summary> </task-notification>
Attributed to this commit: 61.1 g CO₂e (4,151,916 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on stateless-replicas-2-placement, 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.
docs/superpowers/notes/census-proposal-stateless-replicas-2.mdLoading diff…
internal/activator/replica_reconcile_wake_test.goLoading diff…
internal/activator/replicaretirement.goLoading diff…
internal/activator/replicaretirement_test.goLoading diff…
internal/console/appcopies.goLoading diff…
internal/console/copiespublication_test.goLoading diff…
internal/console/replicacoordinator.goLoading diff…
internal/console/replicacoordinator_test.goLoading diff…
internal/console/replicaplacement.goLoading diff…
internal/console/replicaplacement_test.goLoading diff…
internal/host/agent.goLoading diff…
internal/host/fleetbind.goLoading diff…
internal/host/fleetbind_test.goLoading diff…
internal/host/replica_request_budget_test.goLoading diff…
internal/host/replicaplacement.goLoading diff…
internal/provision/plan9_b8_census_test.goLoading diff…
internal/provision/reconcile.goLoading diff…
internal/provision/replicaassignment.goLoading diff…
internal/provision/replicaassignment_test.goLoading diff…
internal/provision/replicacoordinator.goLoading diff…
internal/provision/replicadeploy.goLoading diff…
internal/provision/stateless_placement_census_test.goLoading diff…
internal/provision/testdata/plan14-root-reads-chain.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-stateless-replicas-2.tsvLoading diff…
internal/registry/forward_writers_test.goLoading diff…
internal/registry/remote_dispatch.goLoading diff…
internal/registry/replicas.goLoading diff…