carlos / platform Public

plan: #892 S2 fleet sizes (#1350), Astra READY round 3; S2 copy deck

Plan docs/superpowers/plans/2026-11-22-892-s2-fleet-sizes.md, from Plan 4
Task 4 and spec rev 2 (design-stateless-replicas-scale 2d7fcb29) §4 S2.
Astra plan review: round 1 NOT READY (5 P1), round 2 NOT READY (1 P1),
round 3 READY. Copy rows PS-2-C01..C14 (Luna pass by delegation, C13 and
C14 controller-written under the house rules).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 0f58616d5b902353af5665c78870c998a3a95222 parent 3d7f953
8 files changed, +739 −0
  • docs/superpowers/notes/892-s2-drift-report.md +230 −0
  • docs/superpowers/notes/LUNA-COPY-BRIEF-STATELESS-SCALE-S2.md +80 −0
  • docs/superpowers/plans/2026-11-11-stateless-replicas-scale-copy.md +21 −0
  • docs/superpowers/plans/2026-11-22-892-s2-fleet-sizes.md +186 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-892-S2-PLAN-R1.md +86 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-892-S2-PLAN-R2.md +74 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-892-S2-PLAN-R3.md +39 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-892-S2-PLAN.md +23 −0

CI failed — run details

CI log
=== gate ===
go: downloading go1.26.10 (linux/arm64)
go version go1.26.10 linux/arm64
opentofu: arm64, tofu 1.13.9, aws 6.73.0, archive 2.8.1
  tofu: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/tofu_1.13.9_linux_arm64.tar.gz
  tofu: downloaded, digest verified
  aws: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-aws_6.73.0_linux_arm64.zip
  aws: downloaded, digest verified
  archive: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-archive_2.8.1_linux_arm64.zip
  archive: downloaded, digest verified
  installed in /tmp/carlos-opentofu-w8p5ha
.amadan/test-gate.sh
go: downloading github.com/aws/aws-sdk-go-v2 v1.44.0
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.68.0
go: downloading github.com/aws/aws-sdk-go-v2/service/costexplorer v1.67.5
go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0
go: downloading github.com/aws/smithy-go v1.28.1
go: downloading github.com/benbjohnson/litestream v0.5.14
go: downloading github.com/superfly/ltx v0.5.1
go: downloading golang.org/x/net v0.62.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/sns v1.43.0
go: downloading github.com/aws/aws-sdk-go-v2/service/acm v1.45.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.324.0
go: downloading github.com/aws/aws-sdk-go-v2/service/iam v1.58.2
go: downloading github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi v1.37.0
go: downloading github.com/aws/aws-sdk-go-v2/service/route53 v1.64.1
go: downloading golang.org/x/crypto v0.58.0
go: downloading golang.org/x/sys v0.49.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/aws/aws-sdk-go-v2/internal/ini v1.8.4
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.19
go: downloading github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.38
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.40
go: downloading github.com/pion/dtls/v3 v3.1.4
go: downloading github.com/pion/transport/v4 v4.0.2
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading golang.org/x/sync v0.24.0
go: downloading github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.20.18
go: downloading github.com/prometheus/client_golang v1.17.0
go: downloading github.com/lmittmann/tint v1.1.3
go: downloading github.com/prometheus/common v0.45.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading google.golang.org/protobuf v1.36.10
go: downloading github.com/cespare/xxhash/v2 v2.3.0
go: downloading github.com/prometheus/procfs v0.12.0
go: downloading github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0
go: downloading golang.org/x/text v0.43.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/memory v1.11.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/google/uuid v1.6.0
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/memory v1.11.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
=== launchctx (4 s, from +0 s)
ok  	amadan.net/carlos/platform.git/launchctx	0.015s
?   	amadan.net/carlos/platform.git/launchctx/controlname	[no test files]
?   	amadan.net/carlos/platform.git/launchctx/wireid	[no test files]
=== vet (160 s, from +0 s)
go: downloading github.com/klauspost/compress v1.20.2
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
=== vet-tags (182 s, from +0 s)
go: downloading github.com/klauspost/compress v1.20.2
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
=== gofmt (1 s, from +0 s)
gofmt -l .: clean
=== rest (378 s, from +14 s)
ok  	github.com/carlosframework/platform/cmd/carlos-media	126.723s
?   	github.com/carlosframework/platform/cmd/changelog	[no test files]
ok  	github.com/carlosframework/platform/cmd/console	200.551s
ok  	github.com/carlosframework/platform/cmd/mediaimage	40.347s
ok  	github.com/carlosframework/platform/cmd/moveprobe	14.641s
ok  	github.com/carlosframework/platform/cmd/pricebook-export	0.018s
ok  	github.com/carlosframework/platform/cmd/rootfswitness	0.088s
ok  	github.com/carlosframework/platform/cmd/runsc-assets	0.126s
ok  	github.com/carlosframework/platform/cmd/zddprobe	0.905s
ok  	github.com/carlosframework/platform/internal/agentsock	0.072s
ok  	github.com/carlosframework/platform/internal/alerting	0.031s
ok  	github.com/carlosframework/platform/internal/analytics	0.208s
ok  	github.com/carlosframework/platform/internal/appconfig	40.879s
ok  	github.com/carlosframework/platform/internal/apperr	0.284s
ok  	github.com/carlosframework/platform/internal/applog	0.441s
ok  	github.com/carlosframework/platform/internal/apppolicy	1.964s
ok  	github.com/carlosframework/platform/internal/assetcache	0.365s
ok  	github.com/carlosframework/platform/internal/awsinv	0.008s
ok  	github.com/carlosframework/platform/internal/awsmanaged	0.394s
ok  	github.com/carlosframework/platform/internal/awsregiongroup	0.139s
ok  	github.com/carlosframework/platform/internal/awsterminations	0.015s
ok  	github.com/carlosframework/platform/internal/backupswords	0.008s
ok  	github.com/carlosframework/platform/internal/billing	0.047s
ok  	github.com/carlosframework/platform/internal/billing/billingtest	0.064s
ok  	github.com/carlosframework/platform/internal/billingstripe	1.672s
ok  	github.com/carlosframework/platform/internal/boxchoice	0.018s
ok  	github.com/carlosframework/platform/internal/boxid	1.858s
?   	github.com/carlosframework/platform/internal/boxid/boxidtest	[no test files]
?   	github.com/carlosframework/platform/internal/boxid/internal/signtest	[no test files]
ok  	github.com/carlosframework/platform/internal/boxroles	0.008s
ok  	github.com/carlosframework/platform/internal/boxself	0.140s
ok  	github.com/carlosframework/platform/internal/boxvolumes	0.027s
ok  	github.com/carlosframework/platform/internal/caps	0.064s
ok  	github.com/carlosframework/platform/internal/certwarm	0.007s
ok  	github.com/carlosframework/platform/internal/cgroup	1.296s
ok  	github.com/carlosframework/platform/internal/changelog	3.153s
ok  	github.com/carlosframework/platform/internal/clamd	0.068s
?   	github.com/carlosframework/platform/internal/cliflag	[no test files]
ok  	github.com/carlosframework/platform/internal/clireg	0.006s
ok  	github.com/carlosframework/platform/internal/codehealth	16.899s
ok  	github.com/carlosframework/platform/internal/compute	0.009s
?   	github.com/carlosframework/platform/internal/controlname	[no test files]
?   	github.com/carlosframework/platform/internal/controlsock	[no test files]
ok  	github.com/carlosframework/platform/internal/dbdoor	10.590s
ok  	github.com/carlosframework/platform/internal/dbdoor/dbdoortest	0.047s
ok  	github.com/carlosframework/platform/internal/dbquery	0.023s
ok  	github.com/carlosframework/platform/internal/dbreads	3.220s
?   	github.com/carlosframework/platform/internal/dbreads/dbreadstest	[no test files]
ok  	github.com/carlosframework/platform/internal/dbverify	0.027s
ok  	github.com/carlosframework/platform/internal/demo	0.008s
ok  	github.com/carlosframework/platform/internal/demobuild	2.419s
ok  	github.com/carlosframework/platform/internal/democlaim	0.442s
ok  	github.com/carlosframework/platform/internal/devbox	16.800s
ok  	github.com/carlosframework/platform/internal/dnsrec	0.012s
ok  	github.com/carlosframework/platform/internal/docsite	0.059s
ok  	github.com/carlosframework/platform/internal/domainreg	0.008s
ok  	github.com/carlosframework/platform/internal/domains	67.552s
ok  	github.com/carlosframework/platform/internal/doorkey	0.011s
ok  	github.com/carlosframework/platform/internal/economics	0.007s
ok  	github.com/carlosframework/platform/internal/edgefence	0.075s
ok  	github.com/carlosframework/platform/internal/edgeguard	0.167s
?   	github.com/carlosframework/platform/internal/edgeproof	[no test files]
ok  	github.com/carlosframework/platform/internal/edgesfile	0.120s
ok  	github.com/carlosframework/platform/internal/egressaddr	0.007s
ok  	github.com/carlosframework/platform/internal/execsandbox	101.995s
ok  	github.com/carlosframework/platform/internal/fileacl	0.003s
ok  	github.com/carlosframework/platform/internal/fleetapi	1.667s
ok  	github.com/carlosframework/platform/internal/fleetstore	0.003s
ok  	github.com/carlosframework/platform/internal/fxrate	0.023s
ok  	github.com/carlosframework/platform/internal/gate	3.734s
ok  	github.com/carlosframework/platform/internal/genselect	0.048s
ok  	github.com/carlosframework/platform/internal/geo	0.052s
ok  	github.com/carlosframework/platform/internal/geoip	0.089s
ok  	github.com/carlosframework/platform/internal/groupadmission	0.007s
ok  	github.com/carlosframework/platform/internal/grouprollaws	16.942s
ok  	github.com/carlosframework/platform/internal/hadeparture	0.025s
ok  	github.com/carlosframework/platform/internal/hafresh	0.010s
ok  	github.com/carlosframework/platform/internal/hairpin	0.206s
ok  	github.com/carlosframework/platform/internal/historyreadback	0.825s
ok  	github.com/carlosframework/platform/internal/hostactors	26.067s
ok  	github.com/carlosframework/platform/internal/hostbox	19.924s
ok  	github.com/carlosframework/platform/internal/hostclaim	2.035s
ok  	github.com/carlosframework/platform/internal/hostenv	0.035s
ok  	github.com/carlosframework/platform/internal/hostevidence	0.018s
ok  	github.com/carlosframework/platform/internal/hostexec	22.065s
ok  	github.com/carlosframework/platform/internal/hostfence	0.169s
ok  	github.com/carlosframework/platform/internal/hostfiles	27.414s
ok  	github.com/carlosframework/platform/internal/hostfloor	0.045s
ok  	github.com/carlosframework/platform/internal/hostguard	1.547s
ok  	github.com/carlosframework/platform/internal/hostops	6.993s
?   	github.com/carlosframework/platform/internal/hostops/fencerelease	[no test files]
ok  	github.com/carlosframework/platform/internal/hostops/internal/fencerelease	0.006s
ok  	github.com/carlosframework/platform/internal/hostquarantine	0.007s
ok  	github.com/carlosframework/platform/internal/hostrelocate	1.618s
ok  	github.com/carlosframework/platform/internal/hostresolve	0.606s
ok  	github.com/carlosframework/platform/internal/hostwrite	0.011s
ok  	github.com/carlosframework/platform/internal/infraview	0.012s
ok  	github.com/carlosframework/platform/internal/ingresshealth	0.024s
ok  	github.com/carlosframework/platform/internal/ingresshealth/awstg	0.014s
ok  	github.com/carlosframework/platform/internal/instancectl	54.746s
ok  	github.com/carlosframework/platform/internal/instanceexec	8.317s
ok  	github.com/carlosframework/platform/internal/instancefs	0.024s
ok  	github.com/carlosframework/platform/internal/instancekey	0.008s
ok  	github.com/carlosframework/platform/internal/instanceupdates	0.031s
ok  	github.com/carlosframework/platform/internal/interactive	0.668s
ok  	github.com/carlosframework/platform/internal/launchd	0.014s
ok  	github.com/carlosframework/platform/internal/layout	20.044s
ok  	github.com/carlosframework/platform/internal/layout/pubclass	101.459s
ok  	github.com/carlosframework/platform/internal/lbhealth	0.012s
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=1041
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=1072
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=1234
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=1041
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=1072
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=1234
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=1041
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=1072
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=1234
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=1041
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=1072
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=1234
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=1041
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=1072
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=1234
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=1041
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=1072
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=1234
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=1041
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=1072
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=1234
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=1041
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=1072
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/11/22 12:18:07 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=1234
2026/11/22 12:18:07 INFO replica sync db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/11/22 12:18:07 lease: one.example: acquired in 3ms (client 0s, lock read and write 3ms)
2026/11/22 12:18:07 lease: /tmp/TestHeldCheckpointVacuumRestoreAndTransfer1599399060/001/source.db: continuity with the last clean close not proven; snapshot 1-0000000000000002 written before serving
2026/11/22 12:18:07 lease: one.example: acquired in 4ms (client 1ms, lock read and write 3ms)
2026/11/22 12:18:07 lease: one.example: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/22 12:18:07 ERROR shutdown sync failed after timeout system=store db=source.db attempts=1 duration=15.169µs error="write ltx file: context canceled"
2026/11/22 12:18:07 lease: one.example: acquired in 5ms (client 0s, lock read and write 5ms)
2026/11/22 12:18:10 lease: one.example: acquired in 2ms (client 0s, lock read and write 2ms)
2026/11/22 12:18:10 lease: one.example: acquired in 122ms (client 0s, lock read and write 121ms)
2026/11/22 12:18:11 lease: one.example: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/22 12:18:11 ERROR shutdown sync failed after timeout system=store db=source.db attempts=1 duration=21.861µs error="write ltx file: context canceled"
2026/11/22 12:18:11 lease: one.example: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/22 12:18:11 ERROR shutdown sync failed after timeout system=store db=001 attempts=1 duration=164.043µs error="calc pos: max ltx file: operation error S3: ListObjectsV2, context canceled"
2026/11/22 12:18:12 lease: one.example: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/22 12:18:12 ERROR shutdown sync failed after timeout system=store db=source.db attempts=1 duration=38.32µs error="write ltx file: synthetic final tail upload failure"
2026/11/22 12:18:12 lease: one.example: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/22 12:18:13 lease: one.example: acquired in 3ms (client 0s, lock read and write 3ms)
2026/11/22 12:18:13 INFO replica sync db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/22 12:18:13 INFO ltx file uploaded db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=1042
2026/11/22 12:18:13 INFO replica sync db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/11/22 12:18:13 lease: one.example: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/22 12:18:13 lease: one.example: acquired in 39ms (client 25ms, lock read and write 14ms)
2026/11/22 12:18:15 lease: one.example: acquired in 3ms (client 0s, lock read and write 3ms)
2026/11/22 12:18:16 lease: one.example: acquired in 23ms (client 20ms, lock read and write 3ms)
2026/11/22 12:18:17 lease: /tmp/TestFullImageBudgetScalesWithDatabaseSize3578103095/001/app.db: continuity with the last clean close not proven; snapshot 1-0000000000000003 written before serving
2026/11/22 12:18:18 lease: one.example: acquired in 11ms (client 0s, lock read and write 11ms)
2026/11/22 12:18:18 lease: one.example: acquired in 43ms (client 22ms, lock read and write 22ms)
2026/11/22 12:18:18 lease: one.example: acquired in 28ms (client 0s, lock read and write 28ms)
2026/11/22 12:18:18 ERROR monitor error system=store db=app.db replica=file error="write ltx file: upload refused" consecutive_errors=1 backoff=1s
2026/11/22 12:18:18 ERROR compaction failed system=store db=app.db level=9 error="upload refused"
2026/11/22 12:18:19 ERROR shutdown sync failed after timeout system=store db=app.db attempts=1 duration=23.131µs error="write ltx file: upload refused"
2026/11/22 12:18:19 lease: one.example: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/22 12:18:19 lease: one.example: acquired in 4ms (client 0s, lock read and write 3ms)
2026/11/22 12:18:19 ERROR compaction failed system=store db=app.db level=1 error="write ltx file: upload refused"
2026/11/22 12:18:20 ERROR shutdown sync failed after timeout system=store db=app.db attempts=1 duration=13.8µs error="write ltx file: upload refused"
2026/11/22 12:18:20 lease: one.example: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/22 12:18:20 lease: one.example: acquired in 11ms (client 0s, lock read and write 11ms)
2026/11/22 12:18:20 ERROR compaction failed system=store db=app.db level=9 error="fetch dst level info: cannot determine L9 max ltx file for \"/tmp/TestPinnedReplicateRetriesATransientReplicaRead2114009182/001/app.db\": listing failed once"
2026/11/22 12:18:20 lease: one.example: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/22 12:18:20 lease: one.example: acquired in 8ms (client 0s, lock read and write 8ms)
2026/11/22 12:18:20 lease: /tmp/TestReplicateAfterUnreplicatedWALRestartRestoresWhole50155131584/001/app.db: continuity with the last clean close not proven; snapshot 1-0000000000000003 written before serving
2026/11/22 12:18:20 lease: one.example: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/22 12:18:22 lease: one.example: acquired in 12ms (client 0s, lock read and write 11ms)
2026/11/22 12:18:22 lease: /tmp/TestReplicateAfterUnreplicatedWALRestartRestoresWhole200001126813526/001/app.db: continuity with the last clean close not proven; snapshot 1-0000000000000003 written before serving
2026/11/22 12:18:22 lease: one.example: acquired in 13ms (client 0s, lock read and write 13ms)
2026/11/22 12:18:23 lease: one.example: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/22 12:18:23 lease: one.example: acquired in 5ms (client 0s, lock read and write 4ms)
2026/11/22 12:18:25 lease: one.example: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/22 12:18:26 lease: one.example: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/22 12:18:26 lease: /tmp/TestReplicateWithoutLocalMetadataRestoresWhole2881239567/001/app.db: continuity with the last clean close not proven; snapshot 1-0000000000000003 written before serving
2026/11/22 12:18:26 lease: one.example: acquired in 3ms (client 0s, lock read and write 3ms)
2026/11/22 12:18:27 lease: one.example: acquired in 7ms (client 0s, lock read and write 7ms)
2026/11/22 12:18:27 lease: one.example: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/22 12:18:29 lease: one.example: acquired in 5ms (client 0s, lock read and write 5ms)
2026/11/22 12:18:30 lease: one.example: acquired in 6ms (client 0s, lock read and write 6ms)
2026/11/22 12:18:30 lease: /tmp/TestCheckpointAcrossGapRestoresWhole2705570038/001/app.db: continuity with the last clean close not proven; snapshot 1-0000000000000003 written before serving
2026/11/22 12:18:30 lease: inst/example.com: acquired in 15ms (client 6ms, lock read and write 9ms)
2026/11/22 12:18:30 lease: inst/x.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/22 12:18:30 lease: inst/x.example.com: acquired in 4ms (client 0s, lock read and write 4ms)
2026/11/22 12:18:31 lease: : this process did not run for 1s (pause limit 300ms): giving the lease up unrenewed; it expires at 2026-11-22T12:18:34Z
2026/11/22 12:18:35 lease: one.example: acquired in 19ms (client 0s, lock read and write 18ms)
2026/11/22 12:18:38 lease: one.example: this process did not run for 1.501s (pause limit 400ms): giving the lease up unrenewed; it expires at 2026-11-22T12:18:39Z
2026/11/22 12:18:39 lease: one.example: acquired in 6ms (client 5ms, lock read and write 1ms)
2026/11/22 12:18:40 lease: one.example: acquired in 2ms (client 0s, lock read and write 2ms)
2026/11/22 12:18:40 lease: one.example: acquired in 4ms (client 0s, lock read and write 4ms)
--- FAIL: TestWriteFenceEndsWithTheReplicator (0.06s)
    fence_test.go:935: the fence still takes ticks after Close
FAIL
FAIL	github.com/carlosframework/platform/internal/lease	145.445s
ok  	github.com/carlosframework/platform/internal/lease/leasetest	1.163s
ok  	github.com/carlosframework/platform/internal/lease/locktest	0.018s
ok  	github.com/carlosframework/platform/internal/ledger	0.050s
ok  	github.com/carlosframework/platform/internal/mail	0.901s
ok  	github.com/carlosframework/platform/internal/mailer	0.793s
ok  	github.com/carlosframework/platform/internal/mailsubmit	1.207s
ok  	github.com/carlosframework/platform/internal/mailwire	0.010s
ok  	github.com/carlosframework/platform/internal/maintenance	0.174s
ok  	github.com/carlosframework/platform/internal/maintenanceexec	8.169s
ok  	github.com/carlosframework/platform/internal/maintenanceguard	0.352s
ok  	github.com/carlosframework/platform/internal/media	1.952s
ok  	github.com/carlosframework/platform/internal/media/mediatest	0.014s
ok  	github.com/carlosframework/platform/internal/mediaaws	59.063s
ok  	github.com/carlosframework/platform/internal/mediahandler	41.528s
ok  	github.com/carlosframework/platform/internal/mediajobs	0.669s
ok  	github.com/carlosframework/platform/internal/medialocal	10.556s
ok  	github.com/carlosframework/platform/internal/metrics	0.124s
ok  	github.com/carlosframework/platform/internal/minorunits	0.008s
ok  	github.com/carlosframework/platform/internal/moves	54.584s
ok  	github.com/carlosframework/platform/internal/moves/archive	2.543s
ok  	github.com/carlosframework/platform/internal/moves/offlinerun	0.128s
ok  	github.com/carlosframework/platform/internal/namedunits	0.049s
ok  	github.com/carlosframework/platform/internal/objstore	0.813s
ok  	github.com/carlosframework/platform/internal/ops	14.591s
ok  	github.com/carlosframework/platform/internal/pageindex	3.998s
ok  	github.com/carlosframework/platform/internal/parity	0.156s
?   	github.com/carlosframework/platform/internal/parity/cmd/parity-doc	[no test files]
ok  	github.com/carlosframework/platform/internal/park	0.552s
ok  	github.com/carlosframework/platform/internal/perf	0.183s
ok  	github.com/carlosframework/platform/internal/plans	0.091s
ok  	github.com/carlosframework/platform/internal/privatefile	0.011s
ok  	github.com/carlosframework/platform/internal/provision	234.146s
ok  	github.com/carlosframework/platform/internal/proxyproto	0.955s
ok  	github.com/carlosframework/platform/internal/publicrelease	0.032s
ok  	github.com/carlosframework/platform/internal/ratelimit	0.155s
ok  	github.com/carlosframework/platform/internal/regionlabel	0.063s
ok  	github.com/carlosframework/platform/internal/regionname	0.050s
ok  	github.com/carlosframework/platform/internal/registrar	0.007s
ok  	github.com/carlosframework/platform/internal/registrar/openprovider	0.205s
?   	github.com/carlosframework/platform/internal/registrar/registrartest	[no test files]
ok  	github.com/carlosframework/platform/internal/registry	85.559s
ok  	github.com/carlosframework/platform/internal/relay	7.836s
ok  	github.com/carlosframework/platform/internal/release	81.672s
ok  	github.com/carlosframework/platform/internal/replicagen	0.018s
ok  	github.com/carlosframework/platform/internal/replicas	0.094s
ok  	github.com/carlosframework/platform/internal/reqrec	7.375s
ok  	github.com/carlosframework/platform/internal/rollout	12.391s
ok  	github.com/carlosframework/platform/internal/rolloutwords	0.033s
ok  	github.com/carlosframework/platform/internal/rootaws	106.056s
ok  	github.com/carlosframework/platform/internal/rootfsimage	0.599s
ok  	github.com/carlosframework/platform/internal/rootparticipation	0.088s
ok  	github.com/carlosframework/platform/internal/rootstate	0.048s
ok  	github.com/carlosframework/platform/internal/runs	0.716s
ok  	github.com/carlosframework/platform/internal/s3compat	0.019s
ok  	github.com/carlosframework/platform/internal/s3fake	1.276s
ok  	github.com/carlosframework/platform/internal/safefile	0.012s
ok  	github.com/carlosframework/platform/internal/schedule	25.145s
ok  	github.com/carlosframework/platform/internal/seeds	0.084s
ok  	github.com/carlosframework/platform/internal/sim/litestreamfacts	5.136s
ok  	github.com/carlosframework/platform/internal/sim/mediajobs	46.177s
ok  	github.com/carlosframework/platform/internal/sim/regionha	22.781s
ok  	github.com/carlosframework/platform/internal/status	0.646s
ok  	github.com/carlosframework/platform/internal/steering	0.337s
ok  	github.com/carlosframework/platform/internal/stopevidence	0.892s
ok  	github.com/carlosframework/platform/internal/storecfg	0.584s
ok  	github.com/carlosframework/platform/internal/svcrole	0.021s
ok  	github.com/carlosframework/platform/internal/systemd	5.592s
?   	github.com/carlosframework/platform/internal/systemdshow	[no test files]
ok  	github.com/carlosframework/platform/internal/team	4.622s
ok  	github.com/carlosframework/platform/internal/teamcontract	0.415s
ok  	github.com/carlosframework/platform/internal/telemetry	0.038s
ok  	github.com/carlosframework/platform/internal/termfence	4.144s
ok  	github.com/carlosframework/platform/internal/timerspec	0.034s
ok  	github.com/carlosframework/platform/internal/tsidentity	4.219s
ok  	github.com/carlosframework/platform/internal/tunnelclient	0.339s
ok  	github.com/carlosframework/platform/internal/unixdial	0.017s
ok  	github.com/carlosframework/platform/internal/updatewords	0.038s
ok  	github.com/carlosframework/platform/internal/upstreamguard	0.012s
?   	github.com/carlosframework/platform/internal/upstreamguard/guardtest	[no test files]
ok  	github.com/carlosframework/platform/internal/usage	0.031s
ok  	github.com/carlosframework/platform/internal/version	0.038s
ok  	github.com/carlosframework/platform/internal/vet	2.896s
ok  	github.com/carlosframework/platform/internal/zonehost	0.016s
ok  	github.com/carlosframework/platform/internal/zonehost/route53zones	0.059s
?   	github.com/carlosframework/platform/internal/zonehost/zonehosttest	[no test files]
?   	github.com/carlosframework/platform/scripts/gitleaks-gate	[no test files]
ok  	github.com/carlosframework/platform/scripts/govulncheck-gate	0.020s
ok  	github.com/carlosframework/platform/scripts/pathmapcheck	0.088s
ok  	github.com/carlosframework/platform/scripts/region-ha-g2/fixture	5.203s
ok  	github.com/carlosframework/platform/scripts/stateless-replicas-drill	1.168s
ok  	github.com/carlosframework/platform/scripts/witness-pointer	0.013s
FAIL
=== cutover-witness (147 s, from +14 s)
ok  	github.com/carlosframework/platform	1.892s
=== internal_grouproll@0 (270 s, from +73 s)
ok  	github.com/carlosframework/platform/internal/grouproll	269.375s
=== internal_grouproll@1 (276 s, from +73 s)
ok  	github.com/carlosframework/platform/internal/grouproll	274.968s
=== internal_activator@0 (139 s, from +142 s)
ok  	github.com/carlosframework/platform/internal/activator	135.032s
=== internal_activator@1 (130 s, from +142 s)
ok  	github.com/carlosframework/platform/internal/activator	125.886s
=== internal_activator@2 (138 s, from +142 s)
ok  	github.com/carlosframework/platform/internal/activator	134.296s
=== internal_activator@3 (163 s, from +142 s)
ok  	github.com/carlosframework/platform/internal/activator	158.970s
=== internal_edge@0 (203 s, from +162 s)
ok  	github.com/carlosframework/platform/internal/edge	192.934s
=== internal_edge@1 (135 s, from +162 s)
ok  	github.com/carlosframework/platform/internal/edge	124.532s
=== internal_edge@2 (216 s, from +162 s)
ok  	github.com/carlosframework/platform/internal/edge	204.436s
=== internal_edge@3 (167 s, from +162 s)
ok  	github.com/carlosframework/platform/internal/edge	155.806s
=== root@0 (125 s, from +164 s)
ok  	github.com/carlosframework/platform	112.450s
=== root@1 (117 s, from +164 s)
ok  	github.com/carlosframework/platform	106.136s
=== root@2 (123 s, from +164 s)
ok  	github.com/carlosframework/platform	111.707s
=== root@3 (118 s, from +164 s)
ok  	github.com/carlosframework/platform	107.144s
=== root@4 (104 s, from +164 s)
ok  	github.com/carlosframework/platform	93.368s
=== internal_host@0 (137 s, from +213 s)
ok  	github.com/carlosframework/platform/internal/host	133.019s
=== internal_host@1 (145 s, from +213 s)
ok  	github.com/carlosframework/platform/internal/host	141.231s
=== internal_host@2 (270 s, from +213 s)
ok  	github.com/carlosframework/platform/internal/host	265.514s
=== internal_host@3 (190 s, from +213 s)
ok  	github.com/carlosframework/platform/internal/host	185.837s
=== internal_host@4 (202 s, from +213 s)
ok  	github.com/carlosframework/platform/internal/host	197.757s
=== internal_host@5 (185 s, from +213 s)
ok  	github.com/carlosframework/platform/internal/host	180.617s
=== internal_console@0 (184 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	178.154s
=== internal_console@1 (198 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	191.619s
=== internal_console@2 (196 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	188.533s
=== internal_console@3 (248 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	240.635s
=== internal_console@4 (185 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	177.854s
=== internal_console@5 (197 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	189.563s
=== internal_console@6 (200 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	192.975s
=== internal_console@7 (196 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	189.006s
=== internal_console@8 (203 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	195.577s
=== internal_console@9 (206 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	199.449s
=== internal_console@10 (211 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	203.638s
=== internal_console@11 (224 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	216.586s
=== internal_console@12 (278 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	271.306s
=== internal_console@13 (192 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	184.427s
=== internal_console@14 (190 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	182.624s
=== internal_console@15 (242 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	234.358s
=== internal_console@16 (225 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	218.034s
=== internal_console@17 (203 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	196.342s
=== internal_console@18 (202 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	194.101s
=== internal_console@19 (203 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	195.513s
=== internal_console@20 (195 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	188.110s
=== internal_console@21 (220 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	212.769s
=== internal_console@22 (215 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	207.587s
=== internal_console@23 (212 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/console	204.738s
=== lists: internal_console 216 s, internal_edge 161 s, internal_activator 140 s, internal_host 212 s, root 163 s, internal_grouproll 72 s
=== cpu: the gate used 12337 cpu-seconds in 495 s, about 24.9 of 32 cores; the machine as a whole was 83% busy

Failure summary:
--- rest
--- FAIL: TestWriteFenceEndsWithTheReplicator (0.06s)
    fence_test.go:935: the fence still takes ticks after Close
FAIL	github.com/carlosframework/platform/internal/lease	145.445s

FAILED: rest
make: *** [Makefile:23: test] Error 1
=== opentofu ===
opentofu: 35 test files in 11 suites, OpenTofu v1.13.9
  initialised in 15 s
  ok      22 s  infra/modules/box-fence-writer/tests/writer.tftest.hcl  Success! 1 passed, 0 failed.
  ok      31 s  infra/modules/deployment-buckets/tests/data_lifecycle.tftest.hcl  Success! 3 passed, 0 failed.
  ok      22 s  infra/modules/deployment-buckets/tests/db_reads.tftest.hcl  Success! 1 passed, 0 failed.
  ok      22 s  infra/modules/deployment-buckets/tests/evidence.tftest.hcl  Success! 1 passed, 0 failed.
  ok      29 s  infra/modules/deployment-buckets/tests/fence_writers.tftest.hcl  Success! 3 passed, 0 failed.
  ok      92 s  infra/modules/media-engine/tests/media_engine.tftest.hcl  Success! 24 passed, 0 failed.
  ok      32 s  infra/modules/pdf-host/tests/computed.tftest.hcl  Success! 2 passed, 0 failed.
  ok      73 s  infra/modules/pdf-host/tests/pdf_host.tftest.hcl  Success! 24 passed, 0 failed.
  ok      39 s  infra/modules/region-group-operator-document/tests/document.tftest.hcl  Success! 12 passed, 0 failed.
  ok      17 s  infra/modules/region-host/ingress/tests/fixed-targets/tests/targets.tftest.hcl  Success! 2 passed, 0 failed.
  ok      65 s  infra/modules/region-host/ingress/tests/group_ingress.tftest.hcl  Success! 30 passed, 0 failed.
  ok      44 s  infra/modules/region-host/tests/alert_publish.tftest.hcl  Success! 18 passed, 0 failed.
  ok      40 s  infra/modules/region-host/tests/alerts_topic.tftest.hcl  Success! 16 passed, 0 failed.
  ok      14 s  infra/modules/region-host/tests/analytics_prune.tftest.hcl  Success! 2 passed, 0 failed.
  ok      17 s  infra/modules/region-host/tests/console_mail.tftest.hcl  Success! 4 passed, 0 failed.
  ok       9 s  infra/modules/region-host/tests/fixed_state_unchanged.tftest.hcl  Success! 1 passed, 0 failed.
  ok      71 s  infra/modules/region-host/tests/group.tftest.hcl  Success! 32 passed, 0 failed.
  ok       9 s  infra/modules/region-host/tests/group_alarms.tftest.hcl  Success! 4 passed, 0 failed.
  ok      10 s  infra/modules/region-host/tests/group_iam.tftest.hcl  Success! 4 passed, 0 failed.
  ok       6 s  infra/modules/region-host/tests/group_isolation.tftest.hcl  Success! 1 passed, 0 failed.
  ok      36 s  infra/modules/region-host/tests/group_operator.tftest.hcl  Success! 13 passed, 0 failed.
  ok       8 s  infra/modules/region-host/tests/group_user_data.tftest.hcl  Success! 3 passed, 0 failed.
  ok      29 s  infra/modules/region-host/tests/health_alarms.tftest.hcl  Success! 10 passed, 0 failed.
  ok      13 s  infra/modules/region-host/tests/ingress_drain_read.tftest.hcl  Success! 4 passed, 0 failed.
  ok       6 s  infra/modules/region-host/tests/instance_metadata.tftest.hcl  Success! 1 passed, 0 failed.
  ok      23 s  infra/modules/region-host/tests/mailer.tftest.hcl  Success! 6 passed, 0 failed.
  ok      15 s  infra/modules/region-host/tests/mailer_group.tftest.hcl  Success! 2 passed, 0 failed.
  ok      13 s  infra/modules/region-host/tests/managed_fleets/group_refusal.tftest.hcl  Success! 2 passed, 0 failed.
  ok     101 s  infra/modules/region-host/tests/managed_fleets/managed_fleets.tftest.hcl  Success! 46 passed, 0 failed.
  ok      65 s  infra/modules/region-host/tests/store_conversion.tftest.hcl  Success! 27 passed, 0 failed.
  ok      16 s  infra/modules/region-host/tests/store_scanning.tftest.hcl  Success! 4 passed, 0 failed.
  ok      16 s  infra/modules/region-host/tests/user_data_ignored.tftest.hcl  Success! 3 passed, 0 failed.
  ok      10 s  infra/modules/region-remote-host/tests/data_lifecycle.tftest.hcl  Success! 3 passed, 0 failed.
  ok      16 s  infra/modules/region-remote-host/tests/no_deployment_bucket.tftest.hcl  Success! 5 passed, 0 failed.
  ok      29 s  infra/modules/scanner-host/tests/scanner_host.tftest.hcl  Success! 14 passed, 0 failed.
opentofu: 35 files in 204 s
opentofu: PASS

amadan: step gate failed: exit status 2

amadan: job failed at step gate — its output is above, not at the tail of this log

Intent

Human

<task-notification> <task-id>b2g0gwply</task-id> <tool-use-id>toolu_01L2f5rXxNXAK3xNdRk4Yubr</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/29a43d67-87d2-4557-8e9d-9b70d303a90b/tasks/b2g0gwply.output</output-file> <status>completed</status> <summary>Background command "W=/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/.superpowers/sdd/2026-11-22-892-s1-s2; $W/astra-plan.sh &gt; $W/astra-plan-r3.log 2&gt;&amp;1" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 15.7 g CO₂e (1,850,823 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on stateless-scale-2-fleet-sizes, 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.

diff --git a/docs/superpowers/notes/892-s2-drift-report.md b/docs/superpowers/notes/892-s2-drift-report.md
new file mode 100644
index 000000000..8f9d78d89
--- /dev/null
+++ b/docs/superpowers/notes/892-s2-drift-report.md
@@ -0,0 +1,230 @@
+# #892 S2 drift report: Plan 4 Task 4 against the current tree
+
+Tree: worktree `stateless-scale-1` (origin/main + S1 rootfs env change), read 2026-11-22.
+Sources: plan `docs/superpowers/plans/2026-11-01-stateless-replicas-4-deploy-and-drill.md`
+(D7 l.33-40, D11 l.67-75, R6 l.93-98, R11 l.118-121, R12 l.122, R16 l.138-148,
+R17 l.150-162, Task 4 l.270-290); spec `origin/design-stateless-replicas-scale:
+docs/superpowers/specs/2026-11-11-stateless-replicas-production-scale-design.md` §4 S2 (l.150-172), §6 (l.253-263).
+
+Headline: **nothing of Task 4 exists on main.** No grep hit for `FleetSize`,
+`FleetMemoryBudget`, `fleetSizeRefusal`, `fleetOverlapFits`, `fleetSizeAllowed`,
+`replicasize.go`, or any `4g/6g/8g/12g/...` size name (non-test or test). Every D7 anchor
+still holds in substance; line numbers moved. Main *did* gain (Plan 4 Task 5 / drill 1)
+a replica floor barrier, a copies-door size-fit check, and a `fleetView` with per-box
+`TotalMiB` and floor flags, which S2 should reuse.
+
+---
+
+## 1. Size table and root validation
+
+### Where sizes live
+- `internal/cgroup/sizes.go:6-10` `type Size struct{Name string; Limit Limit; Shares Shares}`.
+ `Shares` = `CPUWeight, CPUQuotaPercent, IOWeight` (`internal/cgroup/cgroup.go:136-140`).
+- `internal/cgroup/sizes.go:17-22` `var Sizes` literal table, 4 rows:
+ small 256 MiB (50/50/50), standard 512 MiB (100/100/100), large 1 GiB (w100, quota 200, io100),
+ xlarge 2 GiB (w200, quota 400, io200). Comment l.12-16: rows must stay literals (init cycle).
+- `SizeByName` `sizes.go:25` exact match; `SizeOf(l Limit)` `sizes.go:35` exact MemoryMax match;
+ `SizeNames()` `sizes.go:46` (no non-test caller found outside cgroup).
+- Derived: `TierDefault=standard`, `TierChildren=large` (`cgroup.go:106-109`, `mustSize` l.112);
+ `SharesOf` `cgroup.go:143` (non-row -> standard shares).
+- Tests pinning the table: `internal/cgroup/sizes_test.go:11 TestSizesTable`, `:67 TestSizesTableIsLiteral`;
+ `internal/cgroup/cgroup_test.go:479` asserts row count; `internal/apppolicy/sizenames_test.go:14
+ TestSizeNamesAreCgroupSizes` (keeps apppolicy's copy equal).
+- **Duplicate list**: `internal/apppolicy/apppolicy.go:36` `sizeNames = {"small","standard","large","xlarge"}`
+ (own copy to avoid an import cycle); `validSize` l.39; used by `Policy.Validate` l.94, l.102.
+
+### SizedLimit (agent)
+- `internal/activator/size.go:26-41` `SizedLimit(rt, fallback)`: demo -> small; empty `rt.Size` -> fallback;
+ known name -> row; unknown name -> log once (l.37-38) and **fallback** (the build's tier). R6's
+ "silent fallback" anchor `size.go:21` is now the doc comment at l.21; logic l.34-40.
+- `EffectiveSize` `size.go:48-56` = `SizeOf(GenTier)`, standard if no row.
+- Callers: `genbackend.go:326` (ExecBackend.GenTier), `backend_exec.go:614-622` (rootfs/default tiers),
+ `host/claimunit_inputs.go:74`, `size.go:90`.
+
+### What root accepts today
+| Gate | file:line | Accepts |
+|---|---|---|
+| `ValidParentLimit` | `internal/cgroup/gen.go:65-77` | exactly one row, or the sum of any two rows (any pair, incl. same) |
+| `/parent` handler | `internal/instancectl/gen.go:764-790` (check at :772) | `ValidParentLimit`; DemoBox forces small; gVisor adds `execsandbox.Physical` overhead (:780-786) |
+| request `memory_max` tier (start/gen verbs) | `internal/instancectl/server.go:797-804` | `SizeOf` row only |
+| strict prepare | `internal/cgroup/strict_linux.go:217` | `SizeOf` row only |
+| `PrepareGen` | `internal/cgroup/strict_gen_linux.go:162` | `SizeOf` row only |
+| strict `SetParentLimit` | `internal/cgroup/strict_gen_linux.go:216` | `ValidParentLimit` |
+| claim tier | `internal/instancectl/claimunit.go:70-75` (`claimTier`) | `SizeOf` row |
+| claim launch root | `internal/host/claimlaunch_root.go:163-166`, `claimroleassembly.go:122` | `SizeOf` row |
+| live `/size` | `internal/instancectl/size.go:61-89` | `SizeByName`; CPU/IO only, never memory |
+
+So today the largest single limit root accepts is xlarge (2 GiB) and the largest parent is 4 GiB.
+**What refuses >xlarge: nothing size-specific — it is simply absent from `Sizes`.** Root has no
+notion of fleet vs shared (no fleet reference in `internal/instancectl` outside demo files); the agent
+knows via `CARLOS_FLEET` (`internal/host/agent.go:52`). Adding rows to `Sizes` therefore makes them
+valid at every root gate on every box, shared included — Task 4's "named-table sum validator alone
+must not authorize fleet limits on shared boxes" needs a new root-side input (the "verified
+record/launch binding"); none exists today.
+
+- `parseSizeShow` `instancectl/size.go:118-132` maps CPUQuota back via `cgroup.Sizes` and
+ `cpuQuotaShown` (`instancectl/gen.go:353-363`): 1200% -> "12s" etc. new rows map without change.
+
+### gVisor refusal at instancectl/gen.go:86
+- Still there: `gen.go:85-90` `writeGenDropIn` returns `execsandbox.ErrRole` when
+ `effectiveSandbox()==EffectiveGVisor`. **It refuses all generation drop-ins for gVisor, not
+ fleet tiers specifically.** The gVisor slice path (`server.go:857-866 setTier`,
+ `:884-895 sliceTierFor`) and `/parent` (gen.go:780-786) accept any `SizeOf`/`ValidParentLimit`
+ value plus `GVisorOverhead`. So a fleet tier on a gVisor-family unit would *not* be refused by
+ :86 once rows exist. D7's claim needs an explicit gVisor check if it is to hold. (Unsure whether
+ gVisor ever runs on owned fleets; gVisor is ON only on a dev demo box per memory.)
+
+## 2. Console size doors
+
+### policysize.go (`internal/console/policysize.go`, 483 lines)
+- Copy consts l.38-42: `sizeQuarterMsg` (IP3-01), `sizeNoTotalMsg`, `sizeUnreadMsg`.
+- `sizeBox` l.49-55: `Box, Region, TotalMiB, fleet, report *status.Box`.
+- `sizeBoxes` **l.96-187**: splits records into fleet-placed (`registry.FleetPlacement(r.Region)`)
+ and platform; with no records uses `appFleet`. **`fleetOnly` is computed at l.112 but is a local
+ — not returned** (D7's "now also reports fleetOnly" is not built). When fleetOnly, only placed
+ fleets' active roster rows (l.128); otherwise platform boxes (`sizePlatformBoxes` l.192) **plus
+ every active box of every fleet the account owns** (l.128). Spare boxes = every `active` roster
+ row, assigned or not: loop **l.155-165** (D7 said 154-166). Total: edges `box_mem_total_mib`,
+ then region-HA `headroom.mem_total_mib` (l.255-258), then fresh status report
+ `Metrics.MemTotalBytes>>20` (l.176-184). Unknown = 0.
+- `sizeCapacityCheck` l.311-318 -> `sizeRefusal` **l.322-343**: above standard: incomplete -> 503,
+ any TotalMiB 0 -> 409; then for any size, **quarter rule at l.339**
+ (`size.MemoryMax>>20 > smallest.TotalMiB/4`). D7's "index anchor :339" is exactly right.
+- `sizeAboveStandard` l.345; `sizeCommitted` l.355-369 (reply info from `SizeCommittedMiB`, never a gate).
+- `policySizeCheck` l.378-452: runs only on a size change (default_size change -> all records;
+ override set/replaced -> that host's record). Resolves app fleet placement / manifest pool for empty
+ apps. **No copies awareness, no floor check, no replicaFloorMu.**
+
+### Doors that check sizes today
+| Door | file:line | Check |
+|---|---|---|
+| Policy PUT (default_size, per-host override) | `internal/console/apipolicy.go:468` handler; name check `applyPolicyChange` l.1053-1068 (`SizeByName`); capacity `policySizeCheck` at **l.534** | quarter rule via sizeBoxes; system-roller only (`apiSystemRoller` l.469) |
+| Copies door | `internal/console/appcopies.go:73` `handleAPICopies`; `copiesRefusal` l.173; size fit `copiesSizeRefusal` **l.416-464** called at l.332 | per live instance, `replicaCandidates` must give >= n eligible boxes (SR-4-C85); raising keeps serving box (SR-4-C91) |
+| Placement | `internal/console/replicaplacement.go:171-187` `replicaCandidates`; **n==1 branch l.180-182**; **`sizeRefusal` per box at l.183** (was 147/151) | quarter rule on `fleetView` box `TotalMiB`, `complete=true` |
+| Create | `internal/console/apiinstances.go:1584` `handleAPIInstanceCreate`; request struct (l.~1625-1690) has **no size field**; `copiesCreateCheck` (`copiespublication.go:227`, called at `apiinstances.go:2637`, `lifetimes_create.go:87`, `hostsused.go:703`) | **no size check at all** (confirms D7: new work). A new instance inherits the app's default size unchecked. |
+
+- `replicaSizeName` `replicaplacement.go:164` (empty -> standard), shared by copies door and placement.
+- `internal/replicas/placement.go` has no size logic (`Place` l.130 consumes `Candidate.Eligible`).
+- Owned-fleet distinction: `registry.FleetPlacement` (`internal/registry/fleets.go:736`) gives
+ fleet-placed; `ownsFleet` (`internal/console/plancaps.go:565-575`, fleet.Account == acct.Sqid)
+ is used by the copies door (`appcopies.go:240-246`). sizeBoxes uses `f.Account != acct.Sqid`
+ (l.128). No separate "managed" flag is consulted for sizing. Demo fleet excluded at
+ `appcopies.go:232`.
+- Box memory total: heartbeat `status.Box.Metrics.MemTotalBytes` (json `mem_total_bytes`,
+ `internal/status/snapshot.go:684`; struct l.123); `fleetView` copies it into `fleetBoxView.TotalMiB`
+ only when fresh (`internal/console/fleetbox.go:118-120`). Also `SizeCommittedMiB`
+ (`snapshot.go:234/871`) and `MemAvailBytes`.
+
+## 3. replicaPolicyBarrier (R11 / Task 5)
+- Exists: `internal/console/replicafloor.go:349`
+ `func (s *Server) replicaPolicyBarrier(ctx context.Context, acct *Account, app string) *doorRefusal`
+ (not the plan's `(ctx, need)`). Reads the app's fleet placement, the channels its active roster
+ boxes follow (`replicaFleetChannels`), and for each channel the router system pointer; below
+ `StatelessReplicasFloor` -> 409 SR-4-C62 `copiesChannelBelow`; unreadable -> 503 `copiesUnread`.
+ Does **not** itself check box heartbeats or the console build.
+- Mutex: `replicaFloorMu` (`internal/console/server.go:1659-1665`); `lockReplicaFloor`
+ `replicafloor.go:328-334`; publication side `replicaFloorPublish` l.307-324 and
+ `replicaFloorJudge` l.95-126. Lock order fleetFloorMu -> replicaFloorMu -> regionalMu (l.39-41).
+- **Only caller: the copies door**, `appcopies.go:126-141` (lock l.132, `copiesRefusal` l.134,
+ barrier l.136, `copiesBaselineRefusal` l.139), and only for copies > 1. Policy PUT, create and
+ placement do not call it. R11's "size override, default size, create with a size, placement for a
+ fleet tier" doors are all unbuilt.
+- Floor value: `release.StatelessReplicasFloor = "v0.35.0"` (`internal/release/layoutintent.go:429`);
+ `atReplicaFloor` `appcopies.go:46-50`.
+- Box/console floor check lives in `copiesRefusal` via `fleetView.replicasActive`
+ (`appcopies.go:56-66`, used l.308): console build at floor, view complete, every box fresh,
+ `AtReplicaFloor` and `RollbackAtReplicaFloor`.
+- prev_release rule (R16): `fleetbox.go:121-122`:
+ `RollbackAtReplicaFloor = PrevRelease == "none" || atReplicaFloor(PrevRelease) || ApplyFinished`
+ (note: the `ApplyFinished` escape is an amendment beyond R16's text). Heartbeat field
+ `prev_release` `snapshot.go:689`.
+- Placement's own floor: `replicaViewReady` `replicaplacement.go:77-94` (n>1 -> atReplicaFloor on
+ console and every box; n==1 -> `atStatelessRuntimeFloor`). In `replicaCandidates` the n==1 branch
+ (l.180-182) uses only `atStatelessRuntimeFloor` — R6's "n==1 adds the floor when the size is a
+ fleet tier" is unbuilt.
+- R6 bullet 2 (publication judge refuses below-floor while any record/default uses a fleet tier):
+ `replicaFloorJudge` only considers `replicaAppsInUse` (copies) — unbuilt.
+
+## 4. Agent side: overlap memory
+- `internal/activator/swap.go:597 swapOverlap`: admission under `a.admit` (l.~628-677; busy refusal
+ `errSwapBusy` l.661 when members/raised/resizing); tiers captured l.689-708 (successor =
+ `MaxLimit(succTier, incumbent.Tier)` when an operator size applies); **raise at l.725-737**
+ (`e.ops.raised=true` l.726, `gb.RaiseGenParent` l.728 -> `genbackend.go:339-341`
+ `ParentLimit(OverlapLimit(inc,succ))`); then `publishBeforeExec` and spawn.
+- **No memory headroom check or reservation anywhere before the raise/spawn.** Nothing reads
+ MemAvailable/PSI in the activator for admission. Wake concurrency is a count semaphore only
+ (`internal/activator/wakeslots.go:31,47`, 4 slots).
+- `internal/host/headroom.go:13-21 headroomFor` is the **region-HA edges-file publication** of spare
+ capacity (MemTotalMiB/DiskTotalMiB, `capacityMiB` l.27, `parseMemAvailableMiB` l.38;
+ `readHeadroom` in `headroom_linux.go:13`), published only with the region-HA capability. It is not
+ a lock or reservation. `internal/host/memwatch.go` publishes MemAvailablePercent / PSI to
+ CloudWatch (alerting only).
+- So `fleetOverlapFits` and the "one local reservation lock shared with ordinary overlap starts" are
+ entirely new.
+
+## 5. Copy deck rows
+Plan copy deck `docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md` (header: "copy deck
+(pending)"), verbatim:
+
+- l.93: `| SR-4-C19 | internal/console/replicasize.go | <size> leaves too little memory for the box on <box>. choose a smaller size | deferred (Task 4, #892), not shipped |`
+- l.94: `| SR-4-C20 | internal/console/replicasize.go | this fleet size needs a complete memory report and a supported platform release on every possible destination. update the boxes and try again | deferred (Task 4, #892), not shipped |`
+- l.103: `| SR-4-C29 | docs/site/stateless-replicas.md | Fleet sizes add 6g, 12g, 24g, 48g, 96g and 192g, measured in GiB. Each copy leaves at least 1 GiB or one eighth of its box's memory for the box, whichever is larger. An overlap also needs room for the new generation. | deferred (Task 4, #892), not shipped |`
+
+Luna notes `docs/superpowers/notes/stateless-replicas-copy-luna.md:62,63,72` hold the same texts
+with "unchanged", and open questions l.89-91 (C19: confirm memory rule; C20: confirm rule and
+wording; C29: tiers and 1 GiB / one-eighth rule not approved). C29's tier list is now stale versus
+the spec (adds 4g, 8g, 16g, 32g).
+
+Related approved rows S2 will touch: SR-4-C85 (l.159, `copiesSize`), SR-4-C86 (l.160, placement
+blocked), SR-4-C91 (l.165, `copiesServing`); IP3-01..03 in policysize.go l.38-42.
+
+Scale copy deck: `docs/superpowers/plans/2026-11-11-stateless-replicas-scale-copy.md` exists **only
+on this branch** (added by 1649f85c, S1), not on origin/main nor on
+`origin/design-stateless-replicas-scale`. It has one row (PS-1-C01, S1) and no S2 section yet.
+
+## 6. CLI and docs
+- `apps_policy.go:37-43` help/error strings hard-code "small, standard, large or xlarge" (appsSetFlagSize,
+ instancesSetFlagSize, appsSetBadSize, instancesSetBadSize). Client validation via
+ `cgroup.SizeByName`: `appsPolicyChangeFrom` l.152-159, `instancesSizeFrom` l.170-178.
+ `instances set --size` flag defined in `instances_updates.go:104` (not `instances_cli.go`, which has
+ no size handling).
+- Console strings: `apipolicy.go:66-67` `policyDefaultSizeMsg`, `policySizeMsg` list the four names.
+- `internal/updatewords/words_surfaces.go:31` usage text `--size small|standard|large|xlarge|default`.
+- Docs: `docs/site/cli.md:258` (example), **`:266`** (size list + quarter rule);
+ `docs/site/one-instance-per-customer.md:121` (list); `docs/site/stateless-replicas.md:21`
+ (quarter rule for copies); `docs/site/rootfs.md:48` (S1, xlarge example only).
+- `internal/status/snapshot.go:353` mentions "standard>xlarge" as a display example only.
+
+## 7. Partial implementations of Task 4 on main
+None. Greps for `FleetSize`, `FleetMemoryBudget`, `fleetSizeRefusal`, `fleetOverlapFits`,
+`fleetSizeAllowed`, `replicasize`, and `\b(4g|6g|8g|12g|16g|24g|32g|48g|96g|192g)\b` in Go
+(incl. tests) return nothing. Reusable groundwork that did land: `fleetView` box `TotalMiB` and floor
+flags (`fleetbox.go:75-123`), `copiesSizeRefusal` (`appcopies.go:416`), `replicaPolicyBarrier`
++ `replicaFloorMu`, `RollbackAtReplicaFloor`.
+
+## 8. Region HA guard (spec §6, plan D11)
+- Spec: `docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md`, now 1361 lines.
+ §7.5 "A pool nobody serves any more (DR-5)" **l.350-377**; §25 "Held requests during a planned
+ handover" **l.1061-1361**, with §25.15 (binding) at **l.1338**. D11's ranges (341-384, 1049-1340)
+ are stale.
+- Tests D11 names:
+ - `go test ./internal/grouproll ./internal/grouprollaws -count=1` (both packages exist).
+ - `go test . -run 'TestRegionHA' -count=1` (root package): 12 tests;
+ `region_ha_boundary_test.go`: `TestRegionHACoreImportsNoAWS`, `TestRegionHAAdaptersAreNamedForAWS`,
+ `TestRegionHAS3ClientsUseS3Compat`, `TestRegionHAS3CheckerCatchesABareClient`; plus copy-gate
+ tests in `approved_region_ha_copy_test.go` and `approved_region_ha_2b_copy_test.go`.
+- HA records stay refused for copies: `appcopies.go:292` (`rec.HA`).
+
+## Drift risks to settle in the plan (flagged, not verified by running anything)
+1. **Old agents and new size names**: `apppolicy.Validate` (apppolicy.go:94,102) rejects an unknown
+ size; `open` wraps that as `ErrUnverifiable` (`signed.go:125-127`); the agent's reconcile then
+ fails closed for the **whole app policy** (`provision/apppolicy_reconcile.go:87,137-138`:
+ empty EgressAllow and Size). So a pre-S2 box seeing "12g" in a policy loses the app's egress
+ allow and size on every instance of that app, not just "falls back to the build's tier" as R16
+ assumes. The floor gate must cover every box that reads the policy, or apppolicy must tolerate
+ unknown size names.
+2. Root has no fleet signal; new rows widen every `SizeOf`/`ValidParentLimit` gate on shared boxes.
+3. gen.go:86 is not a fleet-tier refusal for gVisor slices (see §1).
+4. Policy PUT has no copies-count or floor awareness; create has no size check; placement's n==1
+ path has no floor for big sizes.
+5. `ValidParentLimit` pair sums grow from 16 to 196 combos with 14 rows; still a closed set.
diff --git a/docs/superpowers/notes/LUNA-COPY-BRIEF-STATELESS-SCALE-S2.md b/docs/superpowers/notes/LUNA-COPY-BRIEF-STATELESS-SCALE-S2.md
new file mode 100644
index 000000000..d0f378ec1
--- /dev/null
+++ b/docs/superpowers/notes/LUNA-COPY-BRIEF-STATELESS-SCALE-S2.md
@@ -0,0 +1,80 @@
+# Copy review brief: larger sizes on owned fleets (#892 S2)
+
+You are the copy-review gate itself for this set. Paul delegated copy review for platform CLI, console and docs copy to you on 2026-10-25; your verdicts ARE the review. Do NOT run the copy-review skill or start any server. You are writing a review report, nothing else. Read no other files.
+
+## The facts
+
+An app's instances run at a named size that sets their memory limit (and CPU and IO). Today the sizes are small (256 MiB), standard (512 MiB), large (1 GiB) and xlarge (2 GiB), and a size may use at most a quarter of the memory of the smallest box the app can run on. Only system operators set sizes, with `carlos apps set --size` (the app's size) and `carlos instances set --size` (one instance), or `default`.
+
+New: apps whose instances run on the operator's own fleet (boxes the account owns, not the shared platform) can also use 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g and 192g, measured in GiB. Rules:
+- These sizes are refused for apps that can run anywhere other than the account's own fleet.
+- A copy at one of these sizes must leave the box at least 1 GiB or one eighth of its memory, whichever is larger. So a 32 GiB box (which reports about 31.2 GiB) has room for 24g but not 32g. The smallest box the app could run on decides, including spare boxes in the fleet.
+- Every box the app could run on, and the console, must run a platform release that knows these sizes, and must report its memory. Otherwise the size is refused until the boxes are updated.
+- A size is a limit, not a reservation: two apps' sizes on one box may add up to more than the box can give. The console allows it but warns, naming the box.
+- A deploy normally starts the new build beside the old one, then stops the old one. At these sizes, the box must have free memory for the new build's full size first. If it does not, the deploy does not start the new build, and the old build keeps serving.
+- The small to xlarge sizes are unchanged everywhere.
+
+Readers: system operators running their own fleets; CLI errors are lowercase, one or two short sentences, and placeholders are in angle brackets.
+
+## The strings (drafts; ids and placeholders are fixed)
+
+| id | where | draft |
+|---|---|---|
+| PS-2-C01 | console refusal (was SR-4-C19) | <size> leaves too little memory for the box on <box>. choose a smaller size |
+| PS-2-C02 | console refusal | <size> is only for apps on your own fleet. choose xlarge or smaller |
+| PS-2-C03 | console warning, after a size change succeeds | warning: sizes on <box> now add up to <committed> MiB, more than the <budget> MiB it can give. an instance there may run out of memory |
+| PS-2-C04 | console refusal (was SR-4-C20) | this size needs a complete memory report and a platform release that knows it on every box the app can run on. update the boxes and try again |
+| PS-2-C05 | deploy status reason | not enough free memory on <box> to start the new build beside the old one. the old build is still serving |
+| PS-2-C06 | CLI flag help, carlos apps set --size | the size the app's instances run at: small, standard, large or xlarge, or on your own fleet 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g. default uses the build's size. system operators only |
+| PS-2-C07 | CLI flag help, carlos instances set --size | this instance's size: small, standard, large or xlarge, or on your own fleet 4g to 192g. default follows the app's size. system operators only |
+| PS-2-C08 | CLI error, apps set (instances set the same with "instances set") | apps set: --size is small, standard, large, xlarge, a fleet size from 4g to 192g, or default, not %q |
+| PS-2-C09 | console error for a bad default_size | default_size must be small, standard, large, xlarge or a fleet size from 4g to 192g, or empty for the build's size |
+| PS-2-C10 | docs/site/cli.md, a new paragraph after the one that lists the sizes (was SR-4-C29) | On your own fleet, an app can also use 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g, measured in GiB. These sizes are refused if the app can run anywhere else. A copy at one of them leaves its box at least 1 GiB or one eighth of the box's memory, whichever is larger, so a 32 GiB box takes 24g at most. Every box the app can run on must report its memory and run a release that knows these sizes. Sizes are limits, not reservations: the console warns when the sizes on one box add up to more than it can give. A deploy starts the new build beside the old one, so the box needs free memory for the new build's full size, or the deploy stops and the old build keeps serving. |
+| PS-2-C11 | docs/site/one-instance-per-customer.md, replaces the size sentence | An operator can give that one instance a bigger size: `small` (256 MiB), `standard` (512 MiB), `large` (1 GiB) or `xlarge` (2 GiB), and on the operator's own fleet a size from `4g` to `192g`. See [carlos apps](/docs/cli#carlos-apps). |
+| PS-2-C12 | docs/site/stateless-replicas.md, replaces the eligibility sentence | A box is eligible only if it has room for the instance's size. Up to xlarge, a size may use at most a quarter of a box's memory. The fleet sizes from 4g up may use all but 1 GiB or one eighth of it, whichever is larger. An app with no size set uses standard. |
+
+## House rules (Paul's, all binding)
+
+- No em dashes, ever. Use a full stop and a new sentence.
+- Plain words. No jargon a reader would not know. Short.
+- Neutral names only (shop, example.com). Never a tenant's name.
+- Keep literal names: size names, `carlos apps set`, `--size`, default_size, placeholders.
+- Do not change the facts. If a fact looks wrong or unclear, flag it.
+
+## Output
+
+1. A table of changes only: `id | current | new | why`.
+2. A list of flagged rows: `id | problem`.
+3. One line of counts: changed, flagged, left alone.
+
+## Result (gpt-5.6-luna, 2026-11-22), applied verbatim
+
+### Changes
+
+| id | current | new | why |
+|---|---|---|---|
+| PS-2-C01 | `<size> leaves too little memory for the box on <box>. choose a smaller size` | `<size> leaves too little memory on <box>. choose a smaller size` | The current wording is unclear. |
+| PS-2-C04 | `this size needs a complete memory report and a platform release that knows it on every box the app can run on. update the boxes and try again` | `this size needs a complete memory report and a platform release that supports it on every box the app can run on and in the console. update the boxes and try again` | “Knows it” is unclear, and the console requirement is missing. |
+| PS-2-C06 | `the size the app's instances run at: small, standard, large or xlarge, or on your own fleet 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g. default uses the build's size. system operators only` | `the size the app's instances run at: small, standard, large or xlarge, or 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g on your own fleet. default uses the build's size. system operators only` | Improves the grammar while preserving the exact sizes. |
+| PS-2-C07 | `this instance's size: small, standard, large or xlarge, or on your own fleet 4g to 192g. default follows the app's size. system operators only` | `this instance's size: small, standard, large or xlarge, or 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g on your own fleet. default follows the app's size. system operators only` | The range implies unsupported intermediate sizes. |
+| PS-2-C08 | `apps set: --size is small, standard, large, xlarge, a fleet size from 4g to 192g, or default, not %q` | `apps set: --size is small, standard, large, xlarge, one of 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g, or default, not %q` | Lists the supported fleet sizes instead of implying a continuous range. |
+| PS-2-C09 | `default_size must be small, standard, large, xlarge or a fleet size from 4g to 192g, or empty for the build's size` | `default_size must be small, standard, large, xlarge, one of 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g, or empty for the build's size` | Lists the supported fleet sizes instead of implying a continuous range. |
+| PS-2-C10 | `On your own fleet, an app can also use 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g, measured in GiB. These sizes are refused if the app can run anywhere else. A copy at one of them leaves its box at least 1 GiB or one eighth of the box's memory, whichever is larger, so a 32 GiB box takes 24g at most. Every box the app can run on must report its memory and run a release that knows these sizes. Sizes are limits, not reservations: the console warns when the sizes on one box add up to more than it can give. A deploy starts the new build beside the old one, so the box needs free memory for the new build's full size, or the deploy stops and the old build keeps serving.` | `On your own fleet, an app can also use 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g, measured in GiB. These sizes are refused if the app can run anywhere else. An instance at one of them leaves its box at least 1 GiB or one eighth of the box's memory, whichever is larger, so a 32 GiB box can use 24g at most. Every box the app can run on must report its memory and run a release that supports these sizes. The console must also run that release. Sizes are limits, not reservations. The console warns when the sizes on one box add up to more than it can give. A deploy starts the new build beside the old one. The box needs free memory for the new build's full size. If it does not, the deploy does not start the new build and the old build keeps serving.` | Adds the console requirement and makes the deploy failure behavior precise. |
+| PS-2-C11 | `An operator can give that one instance a bigger size: \`small\` (256 MiB), \`standard\` (512 MiB), \`large\` (1 GiB) or \`xlarge\` (2 GiB), and on the operator's own fleet a size from \`4g\` to \`192g\`. See [carlos apps](/docs/cli#carlos-apps).` | `An operator can give that one instance a bigger size: \`small\` (256 MiB), \`standard\` (512 MiB), \`large\` (1 GiB) or \`xlarge\` (2 GiB), and on the operator's own fleet one of \`4g\`, \`6g\`, \`8g\`, \`12g\`, \`16g\`, \`24g\`, \`32g\`, \`48g\`, \`96g\` or \`192g\`. See [carlos apps](/docs/cli#carlos-apps).` | The range implies unsupported intermediate sizes. |
+| PS-2-C12 | `A box is eligible only if it has room for the instance's size. Up to xlarge, a size may use at most a quarter of a box's memory. The fleet sizes from 4g up may use all but 1 GiB or one eighth of it, whichever is larger. An app with no size set uses standard.` | `A box is eligible only if it has room for the instance's size. Up to xlarge, a size may use at most a quarter of a box's memory. The fleet sizes 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g and 192g may use all but 1 GiB or one eighth of the box's memory, whichever is larger. An app with no size set uses standard.` | The range implies unsupported intermediate sizes and “it” is unclear. |
+
+### Flagged rows
+
+| id | problem |
+|---|---|
+| PS-2-C01 | “for the box on” is unclear. |
+| PS-2-C04 | “knows it” is unclear, and the console release requirement is omitted. |
+| PS-2-C06 | The fleet-size clause is grammatically awkward. |
+| PS-2-C07 | “4g to 192g” implies unsupported intermediate sizes. |
+| PS-2-C08 | “4g to 192g” implies unsupported intermediate sizes. |
+| PS-2-C09 | “4g to 192g” implies unsupported intermediate sizes. |
+| PS-2-C10 | The console release requirement is omitted, and “the deploy stops” could imply that the old build stops serving. |
+| PS-2-C11 | “4g to 192g” implies unsupported intermediate sizes. |
+| PS-2-C12 | “from 4g up” implies unsupported intermediate sizes, and “it” has no clear referent. |
+
+Changed: 9. Flagged: 9. Left alone: 3.
\ No newline at end of file
diff --git a/docs/superpowers/plans/2026-11-11-stateless-replicas-scale-copy.md b/docs/superpowers/plans/2026-11-11-stateless-replicas-scale-copy.md
index 5cac89b3c..f09dbc731 100644
--- a/docs/superpowers/plans/2026-11-11-stateless-replicas-scale-copy.md
+++ b/docs/superpowers/plans/2026-11-11-stateless-replicas-scale-copy.md
@@ -10,3 +10,24 @@ listed for Paul's copy review; his edits replace them verbatim.
| id | file | text | status |
|---|---|---|---|
| PS-1-C01 | docs/site/rootfs.md | CARLOS_MEMORY_MIB is the memory limit, in MiB, that web and each worker start with. For example, it is 2048 at the xlarge size. Use it to choose how many processes to start, such as Puma workers. Release, carlos run and consoles do not get this variable. | approved by delegation (Luna pass, gpt-5.6-luna, 2026-11-11; brief and result in docs/superpowers/notes/LUNA-COPY-BRIEF-STATELESS-SCALE-S1.md); for Paul's copy review |
+
+## S2: larger sizes on owned fleets
+
+SR-4-C19, C20 and C29 (deferred to #892) are PS-2-C01, C04 and C10. PS-2-C08 also applies to `instances set` with that prefix.
+
+| id | file | text | status |
+|---|---|---|---|
+| PS-2-C01 | internal/console/fleetsize.go | <size> leaves too little memory on <box>. choose a smaller size | approved by delegation (Luna pass, gpt-5.6-luna, 2026-11-22; brief and result in docs/superpowers/notes/LUNA-COPY-BRIEF-STATELESS-SCALE-S2.md); for Paul's copy review |
+| PS-2-C02 | internal/console/fleetsize.go | <size> is only for apps on your own fleet. choose xlarge or smaller | approved by delegation (Luna pass, gpt-5.6-luna, 2026-11-22; brief and result in docs/superpowers/notes/LUNA-COPY-BRIEF-STATELESS-SCALE-S2.md); for Paul's copy review |
+| PS-2-C03 | internal/console/fleetsize.go | warning: sizes on <box> may now add up to <committed> MiB, more than the <budget> MiB it can give. an instance there may run out of memory | approved by delegation (Luna pass, gpt-5.6-luna, 2026-11-22), then "may" added by the controller (plan ruling P8: the figure is an upper bound); for Paul's copy review |
+| PS-2-C04 | internal/console/replicafloor.go | this size needs a complete memory report and a platform release that supports it on every box the app can run on and in the console. update the boxes and try again | approved by delegation (Luna pass, gpt-5.6-luna, 2026-11-22; brief and result in docs/superpowers/notes/LUNA-COPY-BRIEF-STATELESS-SCALE-S2.md); for Paul's copy review |
+| PS-2-C05 | internal/activator/fleetreserve.go | not enough free memory on <box> to start the new build beside the old one. the old build is still serving | approved by delegation (Luna pass, gpt-5.6-luna, 2026-11-22; brief and result in docs/superpowers/notes/LUNA-COPY-BRIEF-STATELESS-SCALE-S2.md); for Paul's copy review |
+| PS-2-C06 | apps_policy.go | the size the app's instances run at: small, standard, large or xlarge, or 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g on your own fleet. default uses the build's size. system operators only | approved by delegation (Luna pass, gpt-5.6-luna, 2026-11-22; brief and result in docs/superpowers/notes/LUNA-COPY-BRIEF-STATELESS-SCALE-S2.md); for Paul's copy review |
+| PS-2-C07 | apps_policy.go | this instance's size: small, standard, large or xlarge, or 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g on your own fleet. default follows the app's size. system operators only | approved by delegation (Luna pass, gpt-5.6-luna, 2026-11-22; brief and result in docs/superpowers/notes/LUNA-COPY-BRIEF-STATELESS-SCALE-S2.md); for Paul's copy review |
+| PS-2-C08 | apps_policy.go | apps set: --size is small, standard, large, xlarge, one of 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g, or default, not %q | approved by delegation (Luna pass, gpt-5.6-luna, 2026-11-22; brief and result in docs/superpowers/notes/LUNA-COPY-BRIEF-STATELESS-SCALE-S2.md); for Paul's copy review |
+| PS-2-C09 | internal/console/apipolicy.go | default_size must be small, standard, large, xlarge, one of 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g, or empty for the build's size | approved by delegation (Luna pass, gpt-5.6-luna, 2026-11-22; brief and result in docs/superpowers/notes/LUNA-COPY-BRIEF-STATELESS-SCALE-S2.md); for Paul's copy review |
+| PS-2-C10 | docs/site/cli.md | On your own fleet, an app can also use 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g, measured in GiB. These sizes are refused if the app can run anywhere else. An instance at one of them leaves its box at least 1 GiB or one eighth of the box's memory, whichever is larger, so a 32 GiB box can use 24g at most. Every box the app can run on must report its memory and run a release that supports these sizes. The console must also run that release. Sizes are limits, not reservations. The console warns when the sizes on one box add up to more than it can give. A deploy starts the new build beside the old one. The box needs free memory for the new build's full size. If it does not, the deploy does not start the new build and the old build keeps serving. | approved by delegation (Luna pass, gpt-5.6-luna, 2026-11-22; brief and result in docs/superpowers/notes/LUNA-COPY-BRIEF-STATELESS-SCALE-S2.md); for Paul's copy review |
+| PS-2-C11 | docs/site/one-instance-per-customer.md | An operator can give that one instance a bigger size: `small` (256 MiB), `standard` (512 MiB), `large` (1 GiB) or `xlarge` (2 GiB), and on the operator's own fleet one of `4g`, `6g`, `8g`, `12g`, `16g`, `24g`, `32g`, `48g`, `96g` or `192g`. See [carlos apps](/docs/cli#carlos-apps). | approved by delegation (Luna pass, gpt-5.6-luna, 2026-11-22; brief and result in docs/superpowers/notes/LUNA-COPY-BRIEF-STATELESS-SCALE-S2.md); for Paul's copy review |
+| PS-2-C12 | docs/site/stateless-replicas.md | A box is eligible only if it has room for the instance's size. Up to xlarge, a size may use at most a quarter of a box's memory. The fleet sizes 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g and 192g may use all but 1 GiB or one eighth of the box's memory, whichever is larger. An app with no size set uses standard. | approved by delegation (Luna pass, gpt-5.6-luna, 2026-11-22; brief and result in docs/superpowers/notes/LUNA-COPY-BRIEF-STATELESS-SCALE-S2.md); for Paul's copy review |
+| PS-2-C13 | internal/console/apipolicy.go | size must be small, standard, large, xlarge, one of 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g, or default | approved (controller: PS-2-C09's approved edit applied to the per-instance message); for Paul's copy review |
+| PS-2-C14 | internal/console/fleets.go | <app> uses size <size>, which needs a fleet of your own whose every box has room for it. choose such a fleet, or set a size of xlarge or smaller first | approved (controller; Luna house rules, written after Astra's plan review round 1); for Paul's copy review |
diff --git a/docs/superpowers/plans/2026-11-22-892-s2-fleet-sizes.md b/docs/superpowers/plans/2026-11-22-892-s2-fleet-sizes.md
new file mode 100644
index 000000000..9089e7e2c
--- /dev/null
+++ b/docs/superpowers/plans/2026-11-22-892-s2-fleet-sizes.md
@@ -0,0 +1,186 @@
+# #892 S2: Larger sizes for copies on owned fleets — Implementation Plan
+
+> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
+
+**Goal:** An app whose instances live on an owned fleet can use the sizes 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g and 192g, limited by each box's memory less max(1 GiB, total/8), while every existing size and every shared box behave exactly as today. This is #1350.
+
+**Architecture:** New literal rows in the one size table (`internal/cgroup/sizes.go`), marked fleet-only. Root accepts a fleet row only on a box whose root-owned host environment names a fleet, and only up to that box's budget. The console has one fit predicate (`fleetSizeRefusal`) used by every door that can put a size on a box: policy (default size and per-instance override), placement, copies and create. Every such door also passes a floor barrier, so no box below `FleetSizesFloor` ever reads a policy naming a fleet size. An overlap swap to a fleet-size successor reserves its memory on the box first, under one lock; with no room it leaves the old build serving and says why.
+
+**Tech Stack:** Go; the console (`internal/console`), root's instance control (`internal/instancectl`, `internal/cgroup`), the agent's activator (`internal/activator`).
+
+**Spec:** `docs/superpowers/specs/2026-11-11-stateless-replicas-production-scale-design.md` rev 2 (2d7fcb29, branch `design-stateless-replicas-scale`) §4 S2, §6; the answers to its §9 on amadan #892 (Q4 "agreed, with a change": warn when a box's committed total passes its budget; Q6: 4g, 8g, 16g and 32g added; 24g is the largest that fits a 32 GiB box). S2 reuses Plan 4 Task 4 (`docs/superpowers/plans/2026-11-01-stateless-replicas-4-deploy-and-drill.md` l.270-290) with its rulings D7, R6, R11, R12 and R16. The drift report from main as of 2026-11-22 is `docs/superpowers/notes/892-s2-drift-report.md` (every file:line below comes from it).
+
+## Rulings made for this plan (controller)
+
+- **P1. The overlap reservation stays** (spec §4 S2 bullet 5, Task 4 text), though Plan 4's R17 said the tiers would come back "without the reservation". The spec (rev 2, written after R17) lists it as part of S2 and is the binding authority; the reservation applies only to fleet sizes, so no existing app changes behaviour. Cost if wrong: Task 4 is unneeded work.
+- **P2. Root's fleet signal is `CARLOS_FLEET` in `/etc/carlos/host.env`**, which `carlos-instance-control.service` already loads (`EnvironmentFile=-/etc/carlos/host.env`, the same way `CARLOS_EDGE_FENCE` reaches `Server.EdgeFenceOff`, `internal/instancectl/server.go:374`). It is root-owned and written at provisioning, so neither a tenant nor the agent can set it. Root's budget comes from `/proc/meminfo` MemTotal. Cost if wrong: a fleet box provisioned without `CARLOS_FLEET` refuses fleet sizes (fails closed).
+- **P3. A new floor, `release.FleetSizesFloor = "v0.43.0"`**, beside `StatelessReplicasFloor` (`internal/release/layoutintent.go:429`). v0.35.0 boxes do not know the new rows and an old box that reads a policy naming one rejects the whole app policy, egress allow list included (drift risk 1). The release that carries S2 must be v0.43.0 or later; the release session is told. Cost if wrong: fleet sizes stay refused until a v0.43.0 roll.
+- **P4. A parent (overlap) limit that only a fleet row makes valid must also fit the box's budget at root.** Two 16g generations on a 32 GiB box are refused before the raise; the S3 drain swap is how such a copy deploys. The existing parent set (any one or two of small..xlarge, so 4 GiB = xlarge+xlarge included) is accepted exactly as today on every box. Cost if wrong: one more refusal path that S3 relaxes.
+- **P5. S2 merges on its own; its release is coupled to S3 by the spec** ("S3 ships in the same release as S2 and behind the same floor", spec §4 S3). Merging S2 does not activate anything, because fleet sizes need `FleetSizesFloor`, which no box reaches until a release carrying S2 rolls. Whether that release may ship before S3 (copies above 1 at a fleet size would then deploy only when the overlap fits) is a release decision for Paul, asked on #892 with the merge SHA. Cost if wrong: none at merge.
+- **P6. The claims path refuses fleet sizes** (claims are shelved; memory "claims-shelved-live-moves"). `claimTier` and the claim launch root keep accepting old rows only. Cost if wrong: claims need S2 again when they return.
+- **P7. One app-policy-aware destination gate.** Every path that puts any record of an app on a box asks one function, `appDestinationRefusal`, which judges the destination against the app's whole policy (`appFleetSize`: the largest fleet size among its default and every override, stale ones included), never against the moved instance's own size. Its callers: app placement (the `SetRecordRegion` walk, `internal/console/fleets.go:1081`), fleet relabel and drain (`fleetView.chooseMoveDestination`, `internal/console/fleetbox.go:161`, called at `fleetrelabel.go:246,610`), replica placement (`replicaCandidates`) and create. An app with no fleet size passes exactly as today. Refusals: placement and create answer PS-2-C14; relabel/drain skip the box, and with none left take the existing no-destination path. Cost if wrong: an operator lowers the size before moving the app.
+- **P8. The committed warning is an upper bound.** The heartbeat carries only a box total (`SizeCommittedMiB`, `internal/host/sizestatus.go:144-160`, summing each awake instance's `Want`), with no per-instance breakdown, so the console cannot subtract this app's share consistently. The projected figure is `SizeCommittedMiB + the new size of every instance of this app placed on that box`. It never misses a crossing; it can warn early, so PS-2-C03 says "may". Cost if wrong: an early warning.
+- **Authority note.** The spec is on `design-stateless-replicas-scale` (2d7fcb29), not on main; the handoff names that branch as the authority. The plan commit carries a pointer.
+
+## Global Constraints
+
+- Sizes, exact: 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g, 192g = that many GiB of `MemoryMax`. `CPUQuotaPercent` = 200 per GiB (800, 1200, 1600, 2400, 3200, 4800, 6400, 9600, 19200, 38400). `CPUWeight` 200 and `IOWeight` 200 for each. Rows are literals, appended after xlarge in that order; existing rows and their numbers do not change.
+- Fleet budget: `FleetMemoryBudget(total) = max(0, total - max(1 GiB, total/8))`. A 32 GiB box (about 31.2 GiB reported) gives about 27.3 GiB; a t4g.xlarge (about 15.6 GiB) about 13.6 GiB.
+- Existing sizes (small to xlarge) keep the quarter rule everywhere, on every route, unchanged (R12).
+- Every reader of an app's policy counts: `apppolicy.Validate` checks every override, so one old box hosting any instance of the app rejects the whole policy. The floor and destination checks therefore range over every box that can host any instance of the app (all records, placement, spare roster rows), whichever instance's size is changing.
+- A fleet size is allowed only when every possible destination of every instance of the app (placed boxes and spare active roster rows, D7) is a box of a fleet the account owns, every such box reports its memory, and each such box's budget is at least the size. Unknown, incomplete or mixed fails closed.
+- Floor: a fleet size needs `FleetSizesFloor` on the console and on every possible destination box, judged as R16 judges replicas (heartbeat release and `prev_release` at the floor, or prev "none"), and an unreadable pointer refuses.
+- gVisor-family units refuse fleet sizes at root.
+- Copy: series deck `docs/superpowers/plans/2026-11-11-stateless-replicas-scale-copy.md`, ids `PS-2-Cnn`; the deferred rows SR-4-C19, C20 and C29 move there. Strings are built only from approved rows (Luna pass by delegation). No em dashes; neutral names (shop, example.com); no tenant names anywhere.
+- Census for every change in root-binary scope: `make census-card`, CLAIMS, `make census-propose NAME=<branch> CLAIMS=<file>`, Astra approval recorded on #280.
+- No new per-box or per-copy bucket polling; reuse heartbeat and fleet-view reads.
+- Region HA guard (spec §6): before Tasks 3 and 4, read region HA spec §7.5 (l.350-377) and §25 (l.1061-1361) of `docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md`; Tasks 3 and 4 run `go test ./internal/grouproll ./internal/grouprollaws -count=1` and `go test . -run 'TestRegionHA' -count=1`. HA records stay refused for copies (`appcopies.go:292`).
+- Verification: targeted `-run` only, `-count=1`, at most 10 mutation checks per task; one `-race` run of touched packages for the branch; CI runs the full suite. Cross-compile `GOOS=darwin go build ./...`, `GOOS=windows go build ./...`, `GOOS=linux GOARCH=arm64 go build ./...`. Unix-socket tests need the sandbox off. Default Go cache.
+
+## Review Focus
+
+1. A box below the floor reads a policy naming 12g and drops the app's whole policy, egress included: Task 3 `TestFleetSizeFloorEveryReader`.
+2. A smaller box is added to the fleet's roster after an app is set to 16g: Task 2 `TestFleetSizeSpareBoxCounts`, `TestFleetPlacementShortfall` and `TestFleetRelabelSkipsUnfit`.
+3. A shared-box or platform-route instance asks root for a fleet row, at start, parent or live `/size`: Task 1 `TestFleetSizeRootValidator`, `TestFleetSizeLiveSizeRefused`.
+4. Two apps start overlaps on one box at once: Task 4 `TestFleetLargeSwapReservesHeadroom`.
+5. An operator sets sizes on two apps whose total passes a box's budget: Task 2 `TestFleetSizeCommittedWarns` (allowed, warned, Q4).
+
+---
+
+### Task 1: The size table and root's gate
+
+**Files:**
+- Modify: `internal/cgroup/sizes.go`, `internal/cgroup/gen.go` (`ValidParentLimit` l.65-77), `internal/apppolicy/apppolicy.go:36`, `internal/instancectl/server.go` (fields; `memory_max` check ~l.797-804; setup ~l.374; gVisor `setTier`/`sliceTierFor` ~l.857-895), `internal/instancectl/gen.go` (`/parent` ~l.764-790), `internal/instancectl/size.go` (`handleSize` l.61-89), `internal/cgroup/strict_gen_linux.go:162,216`, `internal/cgroup/strict_linux.go:217`, `internal/instancectl/claimunit.go:70-75`, `internal/host/claimlaunch_root.go:163-166`, `internal/host/claimroleassembly.go:122`
+- Create: `internal/cgroup/fleetgate.go`, `internal/instancectl/fleetsize.go`, `internal/instancectl/fleetsize_linux.go` (+ `_other.go` stub)
+- Test: `internal/cgroup/sizes_test.go`, `internal/cgroup/fleetgate_test.go`, `internal/apppolicy/sizenames_test.go`, `internal/instancectl/fleetsize_test.go`
+
+**Interfaces:**
+- Produces in `internal/cgroup`: `FleetSize(name string) bool` (true only for the ten new rows); `FleetMemoryBudget(totalBytes int64) int64`; `SharedSizeOf(l Limit) (Size, bool)` (SizeOf restricted to small..xlarge); `ValidSharedParentLimit(l Limit) bool` (today's one-or-two-of-small..xlarge set); and
+ ```go
+ // FleetGate is root's view of whether this box may run fleet sizes.
+ type FleetGate struct {
+ Fleet bool // CARLOS_FLEET set in root's host.env
+ MemTotal func() (int64, error) // /proc/meminfo MemTotal in bytes
+ }
+ func (g FleetGate) GenAllowed(l Limit, gvisor bool) error // one generation's limit
+ func (g FleetGate) ParentAllowed(l Limit, gvisor bool) error // a parent (overlap) limit
+ ```
+ `GenAllowed`: a `SharedSizeOf` row passes; a fleet row needs `Fleet`, `!gvisor`, readable `MemTotal`, `l.MemoryMax <= FleetMemoryBudget(total)`; anything else refuses. `ParentAllowed`: `ValidSharedParentLimit` passes (today's set, unchanged); otherwise `ValidParentLimit` (any one or two rows, new rows included) plus the same fleet, sandbox and budget conditions; anything else refuses. The zero `FleetGate` refuses every fleet limit.
+- `instancectl.Server.Fleet cgroup.FleetGate`, wired in production next to `EdgeFenceOff`. The `cgroup.Prepared`/strict paths receive the gate the same way they receive their other root configuration (follow the existing plumbing; if a path has none, it accepts `SharedSizeOf` only). Claims (P6) use `SharedSizeOf` only.
+- Existing `Sizes`, `SizeByName`, `SizeOf`, `SizedLimit`, `ValidParentLimit` keep their signatures and meaning.
+
+- [ ] **Step 1: Write the failing tests.**
+ - `TestFleetSizeBounds` (cgroup): the ten rows with Global Constraints' exact numbers, in order after xlarge; `FleetSize` false for small..xlarge and unknown; `FleetMemoryBudget`: 8 GiB→7 GiB, 32 GiB→28 GiB, 5 GiB→4 GiB, 0→0. Update `TestSizesTable` and the row count at `cgroup_test.go:479`; `TestSizeNamesAreCgroupSizes` with apppolicy's list extended.
+ - `TestFleetGate` (cgroup, table): zero gate: `GenAllowed(4g)` refuses, `ParentAllowed(4 GiB)` passes (xlarge+xlarge), `ParentAllowed(4g+xlarge = 6 GiB)` refuses, `GenAllowed(xlarge)` passes. Fleet gate with MemTotal 5 GiB: `GenAllowed(4g)` passes (exact budget), MemTotal 5 GiB − 1 byte refuses; MemTotal 8 GiB: 6g passes, 8g refuses, parent 4g+4g refuses, parent 4g+xlarge passes; gVisor refuses 4g; MemTotal error refuses every fleet limit and still passes xlarge; an arbitrary byte count refuses.
+ - `TestFleetSizeRootValidator` (instancectl, through the real handlers with a fake gate): with a zero gate, `/parent` with 6 GiB, a start with `memory_max` 4g, a gVisor slice tier of 4g and claim tier 4g are refused, and `/parent` 4 GiB is accepted; with a fleet gate of 8 GiB, start with 6g is accepted.
+ - `TestFleetSizeLiveSizeRefused` (instancectl): `/size` naming `192g` on a zero-gate server is refused before any write, asserting zero `Systemctl` calls; `/size xlarge` still applies.
+- [ ] **Step 2: Run** `go test ./internal/cgroup ./internal/apppolicy ./internal/instancectl -run 'TestFleet|TestSizesTable|TestSizeNamesAreCgroupSizes' -count=1`; expect FAIL.
+- [ ] **Step 3: Implement.** Rows and helpers in `sizes.go`/`fleetgate.go`. Each root gate in the Files list calls `GenAllowed` (single-generation limits, `/size`, slice tiers) or `ParentAllowed` (`/parent`, strict `SetParentLimit`) in place of its bare `SizeOf`/`ValidParentLimit` check. `MemTotal` reads `/proc/meminfo` in `fleetsize_linux.go`; the non-Linux stub returns an error.
+- [ ] **Step 4: Run** the Step 2 command; expect PASS. Then `go test ./internal/activator ./internal/host -run 'Size|Claim' -count=1`.
+- [ ] **Step 5: Mutation checks (4):** drop the `Fleet` check; `<` at the budget; `ParentAllowed` using `ValidParentLimit` without the fleet condition; skip the gate in `/size`.
+- [ ] **Step 6: Census** (card, CLAIMS, propose with `NAME=<branch>`); the controller briefs the reviewer.
+- [ ] **Step 7: Commit** `feat: fleet sizes 4g to 192g in the size table and root's gate (#892 S2)`.
+
+### Task 2: One fit predicate at every console door
+
+**Files:**
+- Create: `internal/console/fleetsize.go`
+- Modify: `internal/console/fleets.go` (placement handler, the `SetRecordRegion` walk ~l.1081, P7), `internal/console/fleetbox.go:161` (`chooseMoveDestination`, P7), `internal/console/fleetrelabel.go:246,610` (its callers pass the record's size), `internal/console/policysize.go` (`policySizeRecords` l.455 widened to every record of the app; `sizeBoxes` l.96-187 returns `fleetOnly`; `sizeRefusal` l.322-343; `sizeCommitted` l.355-369; `policySizeCheck` l.378-452), `internal/console/replicaplacement.go:171-187` (`replicaCandidates`, n==1 branch l.180-182, per-box check l.183), `internal/console/appcopies.go:416-464` (`copiesSizeRefusal`), `internal/console/apiinstances.go` (create, ~l.1584; and `copiesCreateCheck` callers `copiespublication.go:227`), `internal/console/apipolicy.go:66-67,1053-1068`
+- Test: `internal/console/fleetsize_test.go` (new)
+
+**Interfaces:**
+- Consumes: Task 1's `cgroup.FleetSize`, `cgroup.FleetMemoryBudget`.
+- Produces: `fleetSizeRefusal(boxes []sizeBox, complete, fleetOnly bool, size cgroup.Size) *doorRefusal` (nil when allowed); `sizeBoxes` gains a `fleetOnly bool` result; `sizeFits(totalMiB int64, size cgroup.Size) bool` used by placement, the copies door and `chooseMoveDestination` so no two disagree; `appFleetSize(policy) (cgroup.Size, bool)`, the largest fleet size among the app's default and overrides (stale overrides included); `(s *Server) appDestinationRefusal(ctx context.Context, acct *Account, app string, dest sizeBox) *doorRefusal` (P7), which loads the app's policy with the loader `policySizeCheck` already uses (never from `provision.Record`, which has no size, and not from `ReplicaSizes`, which skips unassigned records at `replicaplacement.go:629`). Task 3 adds the floor condition inside this same function.
+- The app-wide inventory: when the change involves a fleet size, the box set is every possible destination of every record of the app (not only the record whose override changes), so a fleet override on one instance is refused while another instance of the app sits on a shared or unfit destination.
+
+- [ ] **Step 1: Write the failing tests** in `fleetsize_test.go`, through the real handlers where one exists:
+ - `TestFleetSizeDoorBudget`: an owned fleet of 8 GiB boxes accepts 6g as default size and as an instance override; 8g refused with PS-2-C01; at the exact budget allowed, one byte over refused (table test on `fleetSizeRefusal`).
+ - `TestFleetSizeSharedRefused`: the same 6g on a platform route, an external route, a mixed placement, or an app with no records and no fleet placement is refused with PS-2-C02; xlarge on a 7990 MiB fleet box is still refused by the quarter rule (R12) and still allowed on a 16 GiB one.
+ - `TestFleetSizeSpareBoxCounts`: a 32 GiB fleet with one active spare roster row of 8 GiB refuses 12g (the smallest possible destination decides).
+ - `TestFleetSizeIncompleteFailsClosed`: a destination with no memory report refuses with the existing `sizeNoTotalMsg`/`sizeUnreadMsg` behaviour.
+ - `TestFleetPlacementShortfall`: `replicaCandidates` for a 16g app excludes a 16 GiB spare and the reply names the shortfall (SR-4-C86 path); the size is never lowered.
+ - `TestFleetSizeCreateChecked`: creating an instance of an app whose default size is 12g onto a destination that cannot hold it is refused at create.
+ - `TestFleetSizeCopiesDoor`: copies 2 for a 12g app on a fleet with one box too small is refused with SR-4-C85, as for existing sizes.
+ - `TestFleetSizeOverrideAppWide`: an app with instance A on an 8 GiB fleet box and instance B on a platform route: setting A's override to 4g is refused with PS-2-C02. A stale override naming a fleet size for a host that no longer exists still counts in `appFleetSize`.
+ - `TestFleetSizeCommittedWarns` (P8): projected = heartbeat `SizeCommittedMiB` + the new size of every instance of this app placed on that box. Heartbeat 20480 MiB on a 32 GiB box (budget 28672 MiB), setting one instance there to 12g: projected 32768 > 28672, success with PS-2-C03 naming the box; heartbeat 4096 MiB: projected 16384, no warning. A missing heartbeat total gives no warning and no refusal.
+ - `TestFleetSizedAppMoveRefused`: placing a 6g app on the platform, or on an owned fleet with a 4 GiB box, is refused with PS-2-C14 and no record's region changes; onto an owned fleet of 16 GiB boxes at the floor it moves; an xlarge app moves as today.
+ - `TestFleetRelabelSkipsUnfit`, through the real relabel worker and the drain: app with A overridden to 12g and B at xlarge; a new 8 GiB box joins the roster; B is never relabelled or drained onto it; with no fitting box the drain takes its existing no-destination refusal. The same with A's override stale (A deleted). An app with no fleet size relabels exactly as today.
+- [ ] **Step 2: Run** `go test ./internal/console -run 'TestFleet(Size|Placement|Relabel)' -count=1`; expect FAIL.
+- [ ] **Step 3: Implement.** For a fleet size, `fleetSizeRefusal` replaces the quarter rule; for every other size `sizeRefusal` is unchanged. Placement (both branches) and the copies door use `sizeFits`. Create checks the app's default size (and any size it carries) with the same predicate. The warning is reply information only, never a refusal (spec §4 S2 "a size is a limit, not a reservation"). Update `policyDefaultSizeMsg`/`policySizeMsg` to the approved PS-2 text that lists sizes.
+- [ ] **Step 4: Run** the Step 2 command, `go test ./internal/console -run 'Test(Copies|Replica|Policy).*Size' -count=1` and `go test ./internal/console -run 'Test.*(Relabel|Drain|Place)' -count=1`; expect PASS.
+- [ ] **Step 5: Mutation checks (5):** quarter rule applied to a fleet size; spare rows dropped from the box set; `fleetOnly` forced true; override inventory narrowed back to one record; the gate using the moved record's size instead of `appFleetSize`.
+- [ ] **Step 6: Commit** `feat: console checks fleet sizes against every possible box (#892 S2)`.
+
+### Task 3: The fleet-size floor
+
+**Files:**
+- Modify: `internal/release/layoutintent.go:429` (add `FleetSizesFloor`), `internal/console/replicafloor.go` (`replicaPolicyBarrier` l.349, `replicaFloorJudge` l.95-126), `internal/console/fleetbox.go:118-123`, the four doors from Task 2, `internal/console/appcopies.go:126-141`
+- Test: `internal/console/fleetsizefloor_test.go` (new)
+
+**Interfaces:**
+- Consumes: Task 2's doors and `fleetSizeRefusal`.
+- Produces: `replicaPolicyBarrier(ctx context.Context, acct *Account, app string, floor string) *doorRefusal` (the copies door passes `StatelessReplicasFloor`; fleet-size doors pass `FleetSizesFloor`). For `FleetSizesFloor` its box inventory is Task 2's app-wide set (every possible destination of every record of the app), not only the app's stored placement. `appDestinationRefusal` also refuses a destination box below `FleetSizesFloor` (judged by `AtFleetSizesFloor` and `RollbackAtFleetSizesFloor`) whenever `appFleetSize` is set; `fleetBoxView.AtFleetSizesFloor` and `RollbackAtFleetSizesFloor`, judged like the replica pair at `fleetbox.go:121-122`.
+
+- [ ] **Step 1: Write the failing tests:**
+ - `TestFleetSizeFloorEveryReader`: a fleet with one box at v0.42.1 (or whose `prev_release` is below the floor) refuses 12g at the policy, create, copies and placement doors with PS-2-C04 (the reworked SR-4-C20); the same fleet all at the floor accepts it; existing sizes are unaffected by the floor.
+ - `TestFleetSizeFloorOtherInstance`: instance A's box at the floor, instance B of the same app on a fleet box at v0.42.1: setting A's override to 4g is refused with PS-2-C04.
+ - `TestFleetSizeFloorRelabel`: an app with A at 4g and B at xlarge; a box at v0.42.1 joins the roster; B is never relabelled onto it.
+ - `TestFleetSizeFloorConsoleBuild`: a console build below the floor refuses.
+ - `TestFleetSizeFloorUnreadable`: an unreadable channel pointer refuses with the existing `copiesUnread` behaviour.
+ - `TestFleetSizeFloorJudge`: publishing a below-floor release to a channel any box of a fleet using a fleet size (default or override) follows is refused; with no fleet size in use it is not (R6 bullet 2).
+ - `TestFleetSizeFloorBothOrders`: a size door and a publication racing under `replicaFloorMu`, in both orders, never end with a fleet size on a below-floor channel (R11).
+- [ ] **Step 2: Run** `go test ./internal/console -run 'TestFleetSizeFloor' -count=1`; expect FAIL.
+- [ ] **Step 3: Implement.** Generalise the barrier by floor; the size doors take `replicaFloorMu` (lock order at `replicafloor.go:39-41`) and call it only when the size is a fleet size. The judge adds "a fleet size in use" beside `replicaAppsInUse`.
+- [ ] **Step 4: Run** the Step 2 command, then `go test ./internal/console -run 'Test(Copies|ReplicaFloor|Replica.*Barrier)' -count=1` and the region HA commands in Global Constraints; expect PASS.
+- [ ] **Step 5: Mutation checks (3):** skip the barrier on the policy door; drop the `prev_release` half; judge ignores overrides.
+- [ ] **Step 6: Commit** `feat: fleet sizes need FleetSizesFloor on every box that reads them (#892 S2)`.
+
+### Task 4: An overlap to a fleet size reserves its memory first
+
+**Files:**
+- Create: `internal/activator/fleetreserve.go`, `internal/activator/fleetreserve_linux.go` (+ `_other.go` stub)
+- Modify: `internal/activator/swap.go` (`swapOverlap` l.597; admission ~l.628-677; raise l.725-737; promotion ~l.848; drop paths ~l.870-892), `internal/activator/opset.go` (`genMember`; `dropMember` l.511; `leaveSet`; `reapExited` l.660), the activator's construction (one `fleetReservations` per `Service`)
+- Test: `internal/activator/fleetreserve_test.go`
+
+**Interfaces:**
+- Consumes: Task 1's `cgroup.FleetSize`/`SizeOf` (a successor tier whose `MemoryMax` is a fleet row).
+- Produces:
+ ```go
+ type fleetReservations struct { /* mu; reserved int64; avail func() (int64, error) */ }
+ // reserve admits need bytes when avail() - reserved >= need, else returns errFleetNoRoom
+ // (or avail's error). The token's release is idempotent: the first call returns the bytes.
+ func (r *fleetReservations) reserve(need int64) (*fleetToken, error)
+ type fleetToken struct { /* once; r; n */ }
+ func (t *fleetToken) release()
+ ```
+- Ownership (exactly once): the token is taken after admission and before `RaiseGenParent`, and stored on the successor's `genMember` (`m.reserve`). A failure proven to have run nothing (the raise refused, the context cancelled before spawn is called) releases it at once. A spawn error is not such a proof (`swap.go:768`, `opset.go:194`): the token stays with the member and follows its termination proof. If the successor is dropped, the token stays with that member and is released in `leaveSet` (proven termination), whether `dropMember` proved it or a later `reapExited` did. At promotion the token moves to the retiring member created at `swap.go:848` (it then guards the overlap until the incumbent is proven gone) and is released in that member's `leaveSet`. Nothing else releases it; cancellation follows the same paths.
+
+- [ ] **Step 1: Write the failing tests:**
+ - `TestFleetLargeSwapReservesHeadroom`: two apps on one box start overlaps to fleet-size successors at once with room for one: exactly one admitted; the refused one never raises its parent or spawns, its incumbent is not stopped and keeps serving, and the refusal carries PS-2-C05. The admitted overlap completes normally (its incumbent is stopped, as any swap), and its bytes return only when the retiring generation is proven empty. Contract for the refused side: `admittedOverlaps == 1 && refusedIncumbentStops == 0`; for the admitted side, `reserved == need` until proof and `0` after.
+ - `TestFleetReserveUnprovenCandidate`: a failed successor whose termination is not proven keeps its reservation; a later sweep's `reapExited` proof releases it, once.
+ - `TestFleetReserveUnprovenRetiring`: after promotion, an unproven retiring generation keeps the reservation until the sweep proves it gone.
+ - `TestFleetReserveFailBeforeSpawn`: a refused raise, and a cancelled context before spawn, release at once; a second `release()` is a no-op.
+ - `TestFleetReserveSpawnErrorKeeps`: a spawn error with no process handle and a failing termination proof keeps the reservation; it is released once, when a later sweep proves the generation empty.
+ - `TestFleetReserveSkipsExistingSizes`: an xlarge-to-xlarge overlap takes no reservation and is admitted whatever `avail` says.
+ - `TestFleetReserveUnreadable`: `avail` error refuses a fleet-size overlap, leaving the old build serving.
+- [ ] **Step 2: Run** `go test ./internal/activator -run 'TestFleet(LargeSwap|Reserve)' -count=1`; expect FAIL.
+- [ ] **Step 3: Implement** per the Ownership bullet. `need` is the successor tier's full `MemoryMax` (web and workers share it, S1). Production `avail` reads `/proc/meminfo` MemAvailable; the stub errors. No live memory growth, no bucket reads.
+- [ ] **Step 4: Run** the Step 2 command, `go test ./internal/activator -run 'Swap|Sweep|Reap|OpSet' -count=1`, and the region HA commands; expect PASS.
+- [ ] **Step 5: Mutation checks (4):** reserve after spawn; release in `dropMember` before proof; no transfer at promotion; skip the lock.
+- [ ] **Step 6: Census** if the card shows activator units; Astra and Fable review this task (termination path).
+- [ ] **Step 7: Commit** `feat: an overlap to a fleet size reserves its memory first (#892 S2)`.
+
+### Task 5: CLI and docs
+
+**Files:**
+- Modify: `apps_policy.go:37-43,152-178`, `instances_updates.go:104`, `internal/updatewords/words_surfaces.go:31`, `docs/site/cli.md:258,266`, `docs/site/one-instance-per-customer.md:121`, `docs/site/stateless-replicas.md:21`
+- Test: `approved_stateless_scale_copy_test.go` (extend with PS-2 rows), `go test ./internal/docsite`
+
+- [ ] **Step 1: Extend** `approved_stateless_scale_copy_test.go` so every PS-2 row's text appears verbatim in its file; run it; expect FAIL.
+- [ ] **Step 2: Apply** the approved PS-2 rows: CLI help and bad-size errors list the sizes; the docs say what the fleet sizes are, the budget rule, that they are for owned fleets only, the committed-total warning, and that an overlap needs room for the new generation (PS-2 rows for C29 and the CLI lists).
+- [ ] **Step 3: Run** `go test . -run 'TestApproved.*Scale|TestApps.*Size|TestInstances.*Size' -count=1` and `go test ./internal/docsite ./internal/updatewords -count=1`; expect PASS. Cross-compile the three targets.
+- [ ] **Step 4: Commit** `docs: fleet sizes in the CLI and docs (#892 S2)`.
+
+## After the tasks
+
+Astra and Fable review the whole branch; census re-proposed on the final tip with Astra's approval on #280; CI green; squash-merge with `-expect`; SHA to 8a3d302 and the self-hosted operator's session; post on #892 and #1350, saying that the release carrying S2 must be v0.43.0 or later (P3) and asking Paul whether it may ship before S3 (P5). Dev smoke after release: set 6g on a dev fleet app and read back `MemoryMax`; a capacity refusal is evidence of the gate, not a smoke.
diff --git a/docs/superpowers/reviews/CODEX-FINDINGS-892-S2-PLAN-R1.md b/docs/superpowers/reviews/CODEX-FINDINGS-892-S2-PLAN-R1.md
new file mode 100644
index 000000000..6997ccc89
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-FINDINGS-892-S2-PLAN-R1.md
@@ -0,0 +1,86 @@
+# Astra plan review, #892 S2, round 1
+
+Reviewer: Astra (codex exec -m gpt-6-astra, effort high, read-only). Brief: ASTRA-PLAN-BRIEF-S2 (round 1 addendum). Final answer verbatim below.
+
+Round 1: **NOT READY**. Read-only review completed; no Go commands run and no files changed.
+
+**P1 — Must fix before building**
+
+1. **Task 1’s validator cannot distinguish `4g` from `xlarge+xlarge`.**
+ The plan requires `/parent` to reject every fleet row on shared boxes while accepting `xlarge+xlarge` (plan line 54). Both are exactly 4 GiB, and [`Limit`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/cgroup/cgroup.go:94) contains only `MemoryMax`. [`ValidParentLimit`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/cgroup/gen.go:65) receives no component information. The proposed `FleetLimit(l)` therefore cannot satisfy both requirements.
+
+ Separate single-generation validation from parent validation. Preserve the existing parent-limit set, including 4 GiB, while refusing a single 4 GiB generation on shared boxes. Test both operations with the identical byte value.
+ **Fault family:** preserving existing parent limits while restricting new generation sizes.
+
+2. **Task 1 misses the live `/size` authority.**
+ [`handleSize`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/instancectl/size.go:69) accepts any table row and writes its CPU/IO settings at line 81. Adding the rows therefore lets a shared-box request apply `192g`’s **38,400% CPU quota**, despite the new start and parent gates. This handler is absent from Task 1.
+
+ Apply the fleet/sandbox eligibility check here before any write. Test shared-box refusal through the real handler and assert zero `Systemctl` calls.
+ **Fault family:** fleet-only resource authority.
+
+3. **Tasks 2–3 omit destination-changing paths.**
+ Updating `replicaCandidates` does not cover:
+ - App placement, which updates placement and rewrites existing records through [`SetRecordRegion`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/console/fleets.go:1081).
+ - Fleet relabel and drain, which select destinations at [`fleetrelabel.go:246`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/console/fleetrelabel.go:246) and line 610 using [`chooseMoveDestination`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/console/fleetbox.go:161). That selector checks neither size nor `FleetSizesFloor`.
+
+ A binary app can be moved from its fleet to platform placement while retaining its fleet-size policy. A non-assigned fleet record can also be relabelled onto a newly added smaller or below-floor box. Root refusal then causes an outage; an old binary may reject the policy instead.
+
+ Include these writers in the shared admission rule, or explicitly refuse these operations while fleet sizes are configured. Test app moves, drain and automatic relabel after roster changes.
+ **Fault family:** every destination change preserves size and release eligibility.
+
+4. **The “every reader” test does not cover the actual policy boundary.**
+ An override currently checks only its host’s record: [`policySizeRecords`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/console/policysize.go:455). The existing floor barrier follows only the app’s stored placement: [`replicaPolicyBarrier`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/console/replicafloor.go:354). Merely adding a `floor` argument does not widen either inventory.
+
+ However, [`Policy.Validate`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/apppolicy/apppolicy.go:98) validates **every override**, including overrides for another instance. An old reader rejects the whole policy, and reconciliation clears its policy columns at [`apppolicy_reconcile.go:137`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/provision/apppolicy_reconcile.go:137).
+
+ Specify an app-wide reader inventory independently of the instance whose size changes. Add a test with one updated fleet instance and another instance on an old/shared destination; setting the first instance’s override must refuse. Cover stale override entries too.
+ **Fault family:** whole-policy compatibility across every reader.
+
+5. **Task 4 leaves reservation ownership undefined after `swapOverlap` returns.**
+ [`dropMember`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/activator/opset.go:511) can return false and retain the member. [`swapOverlap`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/activator/swap.go:892) then returns while [`reapExited`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/activator/opset.go:660) supplies proof later. Promotion also replaces the successor member with a retiring member at `swap.go:848`.
+
+ A function-local deferred release frees the reservation too early; retaining only that local callback loses the eventual release. Specify an exactly-once reservation token, its owner before promotion, its transfer at promotion, and its release from proven cleanup. Include the sweep and operation-set files, or explicitly describe an equivalent completion mechanism.
+
+ Tests need unproven candidate termination, unproven incumbent retirement, later sweep success, cancellation and failure before spawn. Clarify that `incumbentStops == 0` concerns the **refused** overlap; a successful admitted overlap normally stops its incumbent.
+ **Fault family:** reservations remain owned until termination proof.
+
+**P2 — Should fix**
+
+6. **Task 1 needs concrete validator plumbing and a boundary witness.**
+ A `Server` method cannot directly serve `cgroup.Prepared` methods or the standalone `claimTier`. The separate production [`ClaimUnits` construction](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/host/claimlaunch_production.go:93) receives neither proposed field. Specify a shared validator interface and its wiring, or retain old-size-only acceptance in unsupported paths. Also add an exact-budget root case: none of the listed accepted limits equals the 7 GiB budget, so the proposed `<` mutation need not fail.
+
+7. **The committed-total warning lacks prospective arithmetic.**
+ [`sizeCommitted`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/console/policysize.go:355) returns heartbeat information; [`sizeCommittedMiB`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/host/sizestatus.go:137) describes awake instances. Those observations predate the policy write. Define how the requested change affects the warning, including pending changes and sleeping instances. Test with a heartbeat still below budget when the new setting crosses it.
+
+8. **Record S3’s release dependency explicitly.**
+ The supplied spec, lines 223–224, requires S2 and S3 in the same release behind the same floor. The plan’s release instructions do not carry that condition. S2 may be implemented separately, but its release handoff must prevent fleet-size activation before S3 is included.
+
+No P3 findings.
+
+`CARLOS_FLEET` is a reasonable trusted signal for the service launched with its existing root-owned `EnvironmentFile`. P4’s parent budget cap is consistent with the intended conservative rule: 4g→8g and 8g→8g fit a 32 GiB box’s budget; larger overlaps may require S3. Reserving the successor’s full limit against `MemAvailable` is implementable as admission accounting, once ownership and cleanup are specified.
+
+The table’s larger rows are explicitly required by the spec, so I would not cut them as YAGNI. Extending dormant claims machinery is avoidable: refusing fleet tiers there is sufficient unless supporting that path is an explicit requirement.
+
+The cited design commit is also **not an ancestor of the locally available `origin/main`**. Resolve the merged-authority prerequisite in the review template before implementation proceeds.
+
+---
+
+**FIRST PROMPT:**
+Read the S2 review brief and do what it says.
+
+**WHAT:**
+Review the fleet-size implementation plan against the source.
+
+**STATUS:**
+Round 1 complete: five substantive P1s and three P2s; merged-authority prerequisite unresolved.
+
+**NEEDED:**
+Nothing from you for this review.
+
+**RECOMMENDED:**
+Revise the named boundaries and lifecycle tests before building; retain this round’s findings.
+
+**SESSION:**
+Safe to close. No files changed or processes started.
+
+**NOT READY**
\ No newline at end of file
diff --git a/docs/superpowers/reviews/CODEX-FINDINGS-892-S2-PLAN-R2.md b/docs/superpowers/reviews/CODEX-FINDINGS-892-S2-PLAN-R2.md
new file mode 100644
index 000000000..415c8e3a3
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-FINDINGS-892-S2-PLAN-R2.md
@@ -0,0 +1,74 @@
+# Astra plan review, #892 S2, round 2
+
+Reviewer: Astra (codex exec -m gpt-6-astra, effort high, read-only). Brief: ASTRA-PLAN-BRIEF-S2 (round 2 addendum). Final answer verbatim below.
+
+| Round-1 finding | Disposition | Revised plan evidence |
+|---|---|---|
+| 1. `4g` versus `xlarge+xlarge` | **Fixed** | Lines 57–74 separate generation validation from the preserved shared parent-limit set. |
+| 2. Live `/size` authority | **Fixed** | Lines 52, 75 and 77 add the gate and require zero writes on refusal. |
+| 3. Destination-changing paths | **Partly** | Lines 21, 87 and 105–106 add placement/relabel checks, but the new selector still misses an app-wide compatibility case described below. |
+| 4. Whole-policy reader inventory | **Fixed for policy admission** | Lines 29–31, 92–103 and 121–125 explicitly cover other instances and stale overrides. |
+| 5. Reservation ownership | **Fixed structurally** | Lines 140 and 154 specify member ownership, promotion transfer and release through proven cleanup. One new test instruction conflicts with that contract. |
+| 6. Validator plumbing and boundary test | **Fixed** | Lines 57–68 provide a shared gate and shared-only fallback; line 73 tests an exact root budget. |
+| 7. Prospective committed warning | **Partly** | Line 104 supplies arithmetic and sleeping-instance handling, but its subtraction is not defined against the heartbeat’s actual accounting basis. |
+| 8. S3 release dependency | **Fixed as a recorded dependency** | Lines 19 and 183 explicitly retain the same-release requirement. Shipping separately remains a proposed exception requiring Paul’s decision. |
+
+Line references above are to the [revised plan](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/.superpowers/sdd/2026-11-22-892-s1-s2/2026-11-22-892-s2-fleet-sizes.md:13).
+
+**New P1 — Destination eligibility still depends on the moved instance’s size, rather than its whole policy.**
+
+Plan lines 21 and 106 make relabel/drain check the record’s fleet size and explicitly preserve an xlarge record’s old choice. Consider an app with A overridden to 4g and B using xlarge. After a below-`FleetSizesFloor` box joins the roster, B can be relabelled or drained onto it through [fleetrelabel.go:246](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/console/fleetrelabel.go:246) or line 610. The destination may satisfy all older runtime floors.
+
+That box validates A’s override too: [apppolicy.go:98](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/apppolicy/apppolicy.go:98). It rejects the policy, clearing B’s policy columns, including egress allowances, through [apppolicy_reconcile.go:137](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/provision/apppolicy_reconcile.go:137).
+
+Use one app-policy-aware destination gate: the release floor follows `appFleetSize(policy)`, independently of the moved instance’s effective size. Specify the policy read too: `provision.Record` has no size field, and the existing `ReplicaSizes` population skips unassigned copies=1 records at [replicaplacement.go:629](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/console/replicaplacement.go:629). Test through real relabel/drain paths with an xlarge sibling and a stale fleet-size override.
+
+**Fault family:** every destination change preserves whole-policy compatibility. This repeats round 1’s findings 3–4.
+
+**New P2 — “Spawn failure releases at once” contradicts termination-proof ownership.**
+
+[Plan line 160](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/.superpowers/sdd/2026-11-22-892-s1-s2/2026-11-22-892-s2-fleet-sizes.md:160) groups spawn failure with failures before spawning. A spawn error can mean the process ran or may still run: [swap.go:768](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/activator/swap.go:768) records that distinction, and [opset.go:194](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/activator/opset.go:194) explicitly says a missing process handle proves nothing.
+
+Restrict immediate release to proven no-execution failures. Add a spawn-error case with no process handle and an unsuccessful termination proof; its token must remain until the reaper succeeds.
+
+**Fault family:** reservations remain owned until termination proof.
+
+**New P2 — Warning arithmetic must subtract the contribution represented in the same heartbeat.**
+
+[Plan line 104](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/.superpowers/sdd/2026-11-22-892-s1-s2/2026-11-22-892-s2-fleet-sizes.md:104) subtracts each awake instance’s “current size.” However, [sizestatus.go:152](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/host/sizestatus.go:152) sums `SizeState.Want`, which uses the pending policy size at [size.go:145](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/activator/size.go:145). It need not equal either applied memory or the console’s latest policy.
+
+Specify how the console identifies each contribution from the same snapshot, including unknown/swap states. Test two policy changes before another heartbeat and a pending size change. Otherwise the reply can falsely report or miss crossing the budget.
+
+**Fault family:** prospective accounting uses consistent observations.
+
+**New P3 — Task 2’s targeted command omits two new tests.**
+
+Plan line 107’s `TestFleet(Size|Placement)` does not match `TestFleetSizedAppMoveRefused` or `TestFleetRelabelSkipsUnfit`. Include both in the red/green command.
+
+The revised root gate and P4 are sound as specified: preserve the old parent set, gate new generation limits separately, and bound newly permitted parent sums. Full-successor reservation is implementable as conservative admission accounting; the ownership scheme covers promotion and later reaping once the spawn-failure instruction is clarified. I found no additional scope to cut: the larger rows are required, and keeping claims shared-only avoids unnecessary work.
+
+The previously reported merged-authority prerequisite remains unresolved. Plan line 22 acknowledges the unmerged design; locally, `2d7fcb29` is still not an ancestor of `origin/main`.
+
+Under stopping rule 2, do not continue with another round of per-path fixes to the destination boundary. I recommend the centralized app-policy-aware gate with a regression test. Alternatives are refusing these moves upfront or cutting automatic moves for affected apps from S2.
+
+---
+
+**FIRST PROMPT:**
+Read the S2 round-2 review brief and do what it says.
+
+**WHAT:**
+Review the revised fleet-size implementation plan against the code.
+
+**STATUS:**
+Round 2 complete: one new P1, two P2s and one P3. Destination compatibility repeats a round-1 fault family.
+
+**NEEDED:**
+Nothing to complete this review.
+
+**RECOMMENDED:**
+Resolve the repeated boundary through one shared gate or an explicit scope cut; settle the merged design prerequisite before implementation.
+
+**SESSION:**
+Safe to close. No files changed, Go commands run or background processes started.
+
+**NOT READY**
\ No newline at end of file
diff --git a/docs/superpowers/reviews/CODEX-FINDINGS-892-S2-PLAN-R3.md b/docs/superpowers/reviews/CODEX-FINDINGS-892-S2-PLAN-R3.md
new file mode 100644
index 000000000..8635849e6
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-FINDINGS-892-S2-PLAN-R3.md
@@ -0,0 +1,39 @@
+# Astra plan review, #892 S2, round 3
+
+Reviewer: Astra (codex exec -m gpt-6-astra, effort high, read-only). Brief: ASTRA-PLAN-BRIEF-S2 (round 3 addendum). Final answer verbatim below.
+
+**READY.** Round 3 is complete. No new P1 findings.
+
+| Round-2 finding | Disposition |
+|---|---|
+| P1: destination checks used the moved instance’s size | **Fixed in the plan.** P7 requires the whole app policy, including stale overrides, at every destination gate. Tests cover an xlarge sibling and stale override through relabel/drain. [Plan:21](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/.superpowers/sdd/2026-11-22-892-s1-s2/2026-11-22-892-s2-fleet-sizes.md:21), [Plan:107](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/.superpowers/sdd/2026-11-22-892-s1-s2/2026-11-22-892-s2-fleet-sizes.md:107). |
+| P2: spawn errors released reservations prematurely | **Fixed.** Tokens survive spawn errors until termination proof; the new test covers a missing process handle and failed proof. [Plan:156](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/.superpowers/sdd/2026-11-22-892-s1-s2/2026-11-22-892-s2-fleet-sizes.md:156), [Plan:163](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/.superpowers/sdd/2026-11-22-892-s1-s2/2026-11-22-892-s2-fleet-sizes.md:163). |
+| P2: warning subtraction mixed accounting snapshots | **Resolved by P8.** The calculation uses a conservative upper bound without subtracting an unidentified heartbeat contribution. [Plan:22](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/.superpowers/sdd/2026-11-22-892-s1-s2/2026-11-22-892-s2-fleet-sizes.md:22). |
+| P3: targeted command omitted tests | **Fixed.** The expression includes relabel tests. Correction to round 2: `Size` already matched the prefix of `SizedAppMoveRefused`. [Plan:108](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/.superpowers/sdd/2026-11-22-892-s1-s2/2026-11-22-892-s2-fleet-sizes.md:108). |
+| Unmerged design authority | **Accepted for this review under the round-3 brief’s explicit direction.** The design remains unmerged; this is not represented as a completed merge. |
+
+Root’s gate and P4 remain sound as specified: preserve the existing shared parent-limit set, validate generation limits separately, and require fleet authority, budget and sandbox checks for newly permitted limits.
+
+The reservation lifecycle is implementable through the existing member cleanup: [opset.go:511](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/activator/opset.go:511) retains unproven members, and [opset.go:660](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/activator/opset.go:660) releases them through `leaveSet` after proof. Overlap results return directly without a hold-swap fallback at [swap.go:451](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/internal/activator/swap.go:451).
+
+No further plan-review round is needed. Implementation verification belongs to the task reviews.
+
+---
+
+**FIRST PROMPT:**
+Read the S2 round-3 brief and do what it says.
+
+**WHAT:**
+Review the revised fleet-size implementation plan.
+
+**STATUS:**
+Round 3 of 3 complete: READY; no new P1 findings.
+
+**NEEDED:**
+Nothing to complete this review.
+
+**RECOMMENDED:**
+Proceed with implementation and the planned task reviews.
+
+**SESSION:**
+Safe to close. No files changed, Go commands run, or background processes started.
\ No newline at end of file
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-892-S2-PLAN.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-892-S2-PLAN.md
new file mode 100644
index 000000000..092dd8d77
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-892-S2-PLAN.md
@@ -0,0 +1,23 @@
+# Astra brief: review the #892 S2 plan (round 1 of at most 3)
+
+You review an implementation plan before it is built. Read-only. Do not run go.
+
+Read:
+- The plan: /home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/.superpowers/sdd/2026-11-22-892-s1-s2/2026-11-22-892-s2-fleet-sizes.md (its "Rulings made for this plan" are the controller's; challenge them only with evidence).
+- The drift report the plan cites: /home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/.superpowers/sdd/2026-11-22-892-s1-s2/s2-drift-report.md.
+- The spec: `git show origin/design-stateless-replicas-scale:docs/superpowers/specs/2026-11-11-stateless-replicas-production-scale-design.md` §4 S2 and §6.
+- The source plan text: docs/superpowers/plans/2026-11-01-stateless-replicas-4-deploy-and-drill.md lines 13-187 (D7, R6, R11, R12, R16, R17) and 270-290 (Task 4).
+- The code in this worktree (= origin/main plus an unrelated rootfs env change), at the file:line anchors the plan names.
+
+Answer:
+1. Correctness gaps: any door, gate or reader of a size the plan misses, so a fleet size could reach a shared box, a below-floor box, or a box too small for it; or so an existing size's behaviour changes.
+2. Is root's gate (P2: CARLOS_FLEET from host.env, MemTotal budget, gVisor refusal) sound and complete across every root path that accepts a limit? Is P4 (parent sums bounded by the budget) right?
+3. Task 4's reservation: is reserving the successor's full MemoryMax against MemAvailable, under one lock, with release only after termination proof, implementable at swap.go's admission and raise points as described? Any exit path that leaks or double-releases?
+4. Is each task's test list enough to catch a wrong implementation, and are the steps unambiguous for an implementer who sees only that task?
+5. Scope: anything in the plan that S2 does not need (YAGNI), given the target user wants 4g to 8g on 32 GiB fleet boxes.
+
+Report P1 (must fix before building), P2 (should fix), P3 (nit), each with file:line evidence, then READY or NOT READY.
+
+## Round 3 (final)
+
+Revised after your round 2 (/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/.superpowers/sdd/2026-11-22-892-s1-s2/astra-plan-r2.md): P7 is now one app-policy-aware destination gate, P8 makes the warning an upper bound, Task 4 keeps the token on spawn errors, the P3 command is fixed. The merged-authority point is answered by the plan's authority note: the handoff from the release manager names the design branch as the authority; it is not merged and will not be before this build. Give a disposition table for your round-2 findings, then only NEW P1s (anything else goes to the build's task reviews). This is the last round; READY or NOT READY.