carlos / platform Public

Merge remote-tracking branch 'origin/main' into gvisor-slice1-control-purge

claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 543b55dd3206e18f8ce7f7f274943ee9789c65ce parent 06b7dd9parent 47b2f5d
7 files changed, +533 −0
  • docs/superpowers/specs/2026-11-25-hub-ha-design.md +375 −0
  • docs/superpowers/specs/CODEX-FINDINGS-hub-ha-R1.md +47 −0
  • docs/superpowers/specs/CODEX-FINDINGS-hub-ha-R2.md +41 −0
  • docs/superpowers/specs/CODEX-FINDINGS-hub-ha-R3.md +35 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-hub-ha-R2.md +9 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-hub-ha-R3.md +10 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-hub-ha.md +16 −0

CI passed — 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-Y0CRRZ
.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 golang.org/x/net v0.62.0
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/config v1.32.6
go: downloading github.com/aws/aws-sdk-go-v2/service/sns v1.43.0
go: downloading golang.org/x/crypto v0.58.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/sys v0.49.0
go: downloading github.com/prometheus/client_golang v1.17.0
go: downloading github.com/pion/logging v0.2.4
go: downloading github.com/pion/stun/v3 v3.1.5
go: downloading github.com/pion/turn/v4 v4.1.4
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.3.0
go: downloading github.com/prometheus/client_model v0.5.0
go: downloading github.com/prometheus/common v0.45.0
go: downloading github.com/prometheus/procfs v0.12.0
go: downloading google.golang.org/protobuf v1.36.10
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/matttproud/golang_protobuf_extensions/v2 v2.0.0
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading golang.org/x/text v0.43.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading modernc.org/libc v1.74.1
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
go: downloading modernc.org/memory v1.11.0
go: downloading github.com/dustin/go-humanize v1.0.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/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 (172 s, from +0 s)
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/klauspost/compress v1.20.2
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 modernc.org/memory v1.11.0
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
=== vet-tags (189 s, from +0 s)
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
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
=== gofmt (1 s, from +0 s)
gofmt -l .: clean
=== rest (390 s, from +15 s)
ok  	github.com/carlosframework/platform/cmd/carlos-media	120.708s
?   	github.com/carlosframework/platform/cmd/changelog	[no test files]
ok  	github.com/carlosframework/platform/cmd/console	210.071s
ok  	github.com/carlosframework/platform/cmd/mediaimage	39.472s
ok  	github.com/carlosframework/platform/cmd/moveprobe	15.752s
ok  	github.com/carlosframework/platform/cmd/pricebook-export	0.068s
ok  	github.com/carlosframework/platform/cmd/rootfswitness	0.199s
ok  	github.com/carlosframework/platform/cmd/runsc-assets	0.174s
ok  	github.com/carlosframework/platform/cmd/zddprobe	1.059s
ok  	github.com/carlosframework/platform/internal/agentsock	0.100s
ok  	github.com/carlosframework/platform/internal/alerting	0.041s
ok  	github.com/carlosframework/platform/internal/analytics	0.421s
ok  	github.com/carlosframework/platform/internal/appconfig	41.253s
ok  	github.com/carlosframework/platform/internal/apperr	0.677s
ok  	github.com/carlosframework/platform/internal/applog	0.510s
ok  	github.com/carlosframework/platform/internal/apppolicy	2.428s
ok  	github.com/carlosframework/platform/internal/assetcache	0.517s
ok  	github.com/carlosframework/platform/internal/awsinv	0.053s
ok  	github.com/carlosframework/platform/internal/awsmanaged	12.606s
ok  	github.com/carlosframework/platform/internal/awsregiongroup	0.209s
ok  	github.com/carlosframework/platform/internal/awsterminations	0.052s
ok  	github.com/carlosframework/platform/internal/backupswords	0.019s
ok  	github.com/carlosframework/platform/internal/billing	0.082s
ok  	github.com/carlosframework/platform/internal/billing/billingtest	0.085s
ok  	github.com/carlosframework/platform/internal/billingstripe	2.012s
ok  	github.com/carlosframework/platform/internal/boxchoice	0.045s
ok  	github.com/carlosframework/platform/internal/boxid	4.143s
?   	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.026s
ok  	github.com/carlosframework/platform/internal/boxself	0.227s
ok  	github.com/carlosframework/platform/internal/boxvolumes	0.058s
ok  	github.com/carlosframework/platform/internal/caps	4.061s
ok  	github.com/carlosframework/platform/internal/certwarm	0.014s
ok  	github.com/carlosframework/platform/internal/cgroup	1.385s
ok  	github.com/carlosframework/platform/internal/changelog	4.754s
ok  	github.com/carlosframework/platform/internal/clamd	0.071s
?   	github.com/carlosframework/platform/internal/cliflag	[no test files]
ok  	github.com/carlosframework/platform/internal/clireg	0.009s
ok  	github.com/carlosframework/platform/internal/codehealth	16.072s
ok  	github.com/carlosframework/platform/internal/compute	0.013s
ok  	github.com/carlosframework/platform/internal/consolefleet	0.017s
?   	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.907s
ok  	github.com/carlosframework/platform/internal/dbdoor/dbdoortest	0.059s
ok  	github.com/carlosframework/platform/internal/dbquery	0.024s
ok  	github.com/carlosframework/platform/internal/dbreads	3.431s
?   	github.com/carlosframework/platform/internal/dbreads/dbreadstest	[no test files]
ok  	github.com/carlosframework/platform/internal/dbverify	0.024s
ok  	github.com/carlosframework/platform/internal/demo	0.006s
ok  	github.com/carlosframework/platform/internal/demobuild	4.677s
ok  	github.com/carlosframework/platform/internal/democlaim	0.376s
ok  	github.com/carlosframework/platform/internal/devbox	11.083s
ok  	github.com/carlosframework/platform/internal/dnsrec	0.013s
ok  	github.com/carlosframework/platform/internal/docsite	0.115s
ok  	github.com/carlosframework/platform/internal/domainreg	0.015s
ok  	github.com/carlosframework/platform/internal/domains	67.998s
ok  	github.com/carlosframework/platform/internal/doorkey	0.036s
ok  	github.com/carlosframework/platform/internal/economics	0.059s
ok  	github.com/carlosframework/platform/internal/edgefence	0.125s
ok  	github.com/carlosframework/platform/internal/edgeguard	0.396s
?   	github.com/carlosframework/platform/internal/edgeproof	[no test files]
ok  	github.com/carlosframework/platform/internal/edgesfile	0.160s
ok  	github.com/carlosframework/platform/internal/egressaddr	0.009s
ok  	github.com/carlosframework/platform/internal/execsandbox	105.427s
ok  	github.com/carlosframework/platform/internal/fileacl	0.014s
ok  	github.com/carlosframework/platform/internal/fleetapi	1.988s
ok  	github.com/carlosframework/platform/internal/fleetstore	0.012s
ok  	github.com/carlosframework/platform/internal/fxrate	0.023s
ok  	github.com/carlosframework/platform/internal/gate	4.329s
ok  	github.com/carlosframework/platform/internal/genselect	0.143s
ok  	github.com/carlosframework/platform/internal/geo	0.041s
ok  	github.com/carlosframework/platform/internal/geoip	0.190s
ok  	github.com/carlosframework/platform/internal/groupadmission	0.015s
ok  	github.com/carlosframework/platform/internal/grouprollaws	16.824s
ok  	github.com/carlosframework/platform/internal/hadeparture	0.034s
ok  	github.com/carlosframework/platform/internal/hafresh	0.014s
ok  	github.com/carlosframework/platform/internal/hairpin	0.246s
ok  	github.com/carlosframework/platform/internal/historyreadback	1.221s
ok  	github.com/carlosframework/platform/internal/hostactors	23.016s
ok  	github.com/carlosframework/platform/internal/hostbox	20.473s
ok  	github.com/carlosframework/platform/internal/hostclaim	3.098s
ok  	github.com/carlosframework/platform/internal/hostenv	0.055s
ok  	github.com/carlosframework/platform/internal/hostevidence	0.016s
ok  	github.com/carlosframework/platform/internal/hostexec	25.994s
ok  	github.com/carlosframework/platform/internal/hostfence	0.118s
ok  	github.com/carlosframework/platform/internal/hostfiles	24.565s
ok  	github.com/carlosframework/platform/internal/hostfloor	0.054s
ok  	github.com/carlosframework/platform/internal/hostguard	1.528s
ok  	github.com/carlosframework/platform/internal/hostops	8.137s
?   	github.com/carlosframework/platform/internal/hostops/fencerelease	[no test files]
ok  	github.com/carlosframework/platform/internal/hostops/internal/fencerelease	0.020s
ok  	github.com/carlosframework/platform/internal/hostquarantine	0.012s
ok  	github.com/carlosframework/platform/internal/hostrelocate	1.927s
ok  	github.com/carlosframework/platform/internal/hostresolve	1.074s
ok  	github.com/carlosframework/platform/internal/hostwrite	0.007s
ok  	github.com/carlosframework/platform/internal/infraview	0.011s
ok  	github.com/carlosframework/platform/internal/ingresshealth	0.012s
ok  	github.com/carlosframework/platform/internal/ingresshealth/awstg	0.012s
ok  	github.com/carlosframework/platform/internal/instancectl	65.559s
ok  	github.com/carlosframework/platform/internal/instanceexec	9.073s
ok  	github.com/carlosframework/platform/internal/instancefs	17.283s
ok  	github.com/carlosframework/platform/internal/instancekey	0.007s
ok  	github.com/carlosframework/platform/internal/instanceupdates	0.027s
ok  	github.com/carlosframework/platform/internal/interactive	0.607s
ok  	github.com/carlosframework/platform/internal/launchd	0.009s
ok  	github.com/carlosframework/platform/internal/layout	20.806s
ok  	github.com/carlosframework/platform/internal/layout/pubclass	103.208s
ok  	github.com/carlosframework/platform/internal/lbhealth	0.017s
ok  	github.com/carlosframework/platform/internal/lease	150.797s
ok  	github.com/carlosframework/platform/internal/lease/leasetest	1.372s
ok  	github.com/carlosframework/platform/internal/lease/locktest	0.013s
ok  	github.com/carlosframework/platform/internal/ledger	0.059s
ok  	github.com/carlosframework/platform/internal/mail	0.727s
ok  	github.com/carlosframework/platform/internal/mailer	0.785s
ok  	github.com/carlosframework/platform/internal/mailsubmit	1.092s
ok  	github.com/carlosframework/platform/internal/mailwire	0.017s
ok  	github.com/carlosframework/platform/internal/maintenance	0.216s
ok  	github.com/carlosframework/platform/internal/maintenanceexec	8.450s
ok  	github.com/carlosframework/platform/internal/maintenanceguard	0.259s
ok  	github.com/carlosframework/platform/internal/managedboot	3.350s
?   	github.com/carlosframework/platform/internal/managedboot/boottest	[no test files]
?   	github.com/carlosframework/platform/internal/managedboot/roottest	[no test files]
ok  	github.com/carlosframework/platform/internal/media	1.957s
ok  	github.com/carlosframework/platform/internal/media/mediatest	0.010s
ok  	github.com/carlosframework/platform/internal/mediaaws	60.361s
ok  	github.com/carlosframework/platform/internal/mediahandler	42.632s
ok  	github.com/carlosframework/platform/internal/mediajobs	0.936s
ok  	github.com/carlosframework/platform/internal/medialocal	9.942s
ok  	github.com/carlosframework/platform/internal/metrics	0.092s
ok  	github.com/carlosframework/platform/internal/minorunits	0.005s
ok  	github.com/carlosframework/platform/internal/moves	53.341s
ok  	github.com/carlosframework/platform/internal/moves/archive	3.405s
ok  	github.com/carlosframework/platform/internal/moves/offlinerun	0.099s
ok  	github.com/carlosframework/platform/internal/namedunits	0.060s
ok  	github.com/carlosframework/platform/internal/objstore	1.832s
ok  	github.com/carlosframework/platform/internal/ops	12.670s
ok  	github.com/carlosframework/platform/internal/pageindex	4.072s
ok  	github.com/carlosframework/platform/internal/parity	0.093s
?   	github.com/carlosframework/platform/internal/parity/cmd/parity-doc	[no test files]
ok  	github.com/carlosframework/platform/internal/park	0.746s
ok  	github.com/carlosframework/platform/internal/perf	0.203s
ok  	github.com/carlosframework/platform/internal/plans	0.121s
ok  	github.com/carlosframework/platform/internal/privatefile	0.010s
ok  	github.com/carlosframework/platform/internal/provision	240.469s
ok  	github.com/carlosframework/platform/internal/proxyproto	0.954s
ok  	github.com/carlosframework/platform/internal/publicrelease	0.056s
ok  	github.com/carlosframework/platform/internal/ratelimit	0.268s
ok  	github.com/carlosframework/platform/internal/regionlabel	0.079s
ok  	github.com/carlosframework/platform/internal/regionname	0.094s
ok  	github.com/carlosframework/platform/internal/registrar	0.016s
ok  	github.com/carlosframework/platform/internal/registrar/openprovider	0.600s
?   	github.com/carlosframework/platform/internal/registrar/registrartest	[no test files]
ok  	github.com/carlosframework/platform/internal/registry	86.742s
ok  	github.com/carlosframework/platform/internal/relay	7.601s
ok  	github.com/carlosframework/platform/internal/release	98.737s
ok  	github.com/carlosframework/platform/internal/replicagen	0.022s
ok  	github.com/carlosframework/platform/internal/replicas	0.088s
ok  	github.com/carlosframework/platform/internal/reqrec	6.478s
ok  	github.com/carlosframework/platform/internal/rollout	10.561s
ok  	github.com/carlosframework/platform/internal/rolloutwords	0.048s
ok  	github.com/carlosframework/platform/internal/rootaws	103.425s
ok  	github.com/carlosframework/platform/internal/rootfsimage	1.013s
ok  	github.com/carlosframework/platform/internal/rootparticipation	0.131s
ok  	github.com/carlosframework/platform/internal/rootstate	0.091s
ok  	github.com/carlosframework/platform/internal/runs	1.161s
ok  	github.com/carlosframework/platform/internal/s3compat	0.054s
ok  	github.com/carlosframework/platform/internal/s3fake	1.306s
ok  	github.com/carlosframework/platform/internal/safefile	0.043s
ok  	github.com/carlosframework/platform/internal/schedule	20.438s
ok  	github.com/carlosframework/platform/internal/seeds	0.104s
ok  	github.com/carlosframework/platform/internal/sim/litestreamfacts	4.440s
ok  	github.com/carlosframework/platform/internal/sim/mediajobs	50.268s
ok  	github.com/carlosframework/platform/internal/sim/regionha	23.508s
ok  	github.com/carlosframework/platform/internal/status	0.433s
ok  	github.com/carlosframework/platform/internal/steering	0.190s
ok  	github.com/carlosframework/platform/internal/stopevidence	0.451s
ok  	github.com/carlosframework/platform/internal/storecfg	0.329s
ok  	github.com/carlosframework/platform/internal/svcrole	0.010s
ok  	github.com/carlosframework/platform/internal/systemd	5.390s
?   	github.com/carlosframework/platform/internal/systemdshow	[no test files]
ok  	github.com/carlosframework/platform/internal/team	3.676s
ok  	github.com/carlosframework/platform/internal/teamcontract	0.224s
ok  	github.com/carlosframework/platform/internal/telemetry	0.021s
ok  	github.com/carlosframework/platform/internal/termfence	3.395s
ok  	github.com/carlosframework/platform/internal/timerspec	0.023s
ok  	github.com/carlosframework/platform/internal/tsidentity	4.131s
ok  	github.com/carlosframework/platform/internal/tunnelclient	0.401s
ok  	github.com/carlosframework/platform/internal/unixdial	0.014s
ok  	github.com/carlosframework/platform/internal/updatewords	0.061s
ok  	github.com/carlosframework/platform/internal/upstreamguard	0.021s
?   	github.com/carlosframework/platform/internal/upstreamguard/guardtest	[no test files]
ok  	github.com/carlosframework/platform/internal/usage	0.023s
ok  	github.com/carlosframework/platform/internal/version	0.015s
ok  	github.com/carlosframework/platform/internal/vet	3.100s
ok  	github.com/carlosframework/platform/internal/zonehost	0.021s
ok  	github.com/carlosframework/platform/internal/zonehost/route53zones	0.081s
?   	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.121s
ok  	github.com/carlosframework/platform/scripts/region-ha-g2/fixture	5.176s
ok  	github.com/carlosframework/platform/scripts/stateless-replicas-drill	1.272s
ok  	github.com/carlosframework/platform/scripts/witness-pointer	0.026s
=== cutover-witness (154 s, from +15 s)
ok  	github.com/carlosframework/platform	2.394s
=== internal_grouproll@0 (274 s, from +72 s)
ok  	github.com/carlosframework/platform/internal/grouproll	273.412s
=== internal_grouproll@1 (276 s, from +72 s)
ok  	github.com/carlosframework/platform/internal/grouproll	275.111s
=== internal_activator@0 (150 s, from +146 s)
ok  	github.com/carlosframework/platform/internal/activator	145.905s
=== internal_activator@1 (130 s, from +146 s)
ok  	github.com/carlosframework/platform/internal/activator	125.589s
=== internal_activator@2 (133 s, from +146 s)
ok  	github.com/carlosframework/platform/internal/activator	128.935s
=== internal_activator@3 (164 s, from +146 s)
ok  	github.com/carlosframework/platform/internal/activator	159.956s
=== internal_edge@0 (265 s, from +165 s)
ok  	github.com/carlosframework/platform/internal/edge	254.576s
=== internal_edge@1 (143 s, from +165 s)
ok  	github.com/carlosframework/platform/internal/edge	130.728s
=== internal_edge@2 (159 s, from +165 s)
ok  	github.com/carlosframework/platform/internal/edge	149.238s
=== internal_edge@3 (159 s, from +165 s)
ok  	github.com/carlosframework/platform/internal/edge	148.118s
=== root@0 (123 s, from +174 s)
ok  	github.com/carlosframework/platform	113.799s
=== root@1 (112 s, from +174 s)
ok  	github.com/carlosframework/platform	100.512s
=== root@2 (121 s, from +174 s)
ok  	github.com/carlosframework/platform	110.822s
=== root@3 (112 s, from +174 s)
ok  	github.com/carlosframework/platform	102.878s
=== root@4 (109 s, from +174 s)
ok  	github.com/carlosframework/platform	100.896s
=== internal_host@0 (181 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/host	176.849s
=== internal_host@1 (142 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/host	138.040s
=== internal_host@2 (205 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/host	201.044s
=== internal_host@3 (230 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/host	226.543s
=== internal_host@4 (244 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/host	240.543s
=== internal_host@5 (176 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/host	172.091s
=== internal_console@0 (165 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	158.394s
=== internal_console@1 (172 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	165.302s
=== internal_console@2 (202 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	195.581s
=== internal_console@3 (243 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	236.896s
=== internal_console@4 (204 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	197.935s
=== internal_console@5 (213 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	206.643s
=== internal_console@6 (201 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	193.729s
=== internal_console@7 (216 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	208.944s
=== internal_console@8 (224 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	216.745s
=== internal_console@9 (214 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	208.372s
=== internal_console@10 (216 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	208.252s
=== internal_console@11 (239 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	232.928s
=== internal_console@12 (284 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	277.240s
=== internal_console@13 (245 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	237.850s
=== internal_console@14 (232 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	224.894s
=== internal_console@15 (255 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	247.102s
=== internal_console@16 (230 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	222.566s
=== internal_console@17 (207 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	199.535s
=== internal_console@18 (208 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	200.864s
=== internal_console@19 (201 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	194.309s
=== internal_console@20 (216 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	208.338s
=== internal_console@21 (231 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	223.631s
=== internal_console@22 (221 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	213.547s
=== internal_console@23 (229 s, from +225 s)
ok  	github.com/carlosframework/platform/internal/console	221.541s
=== lists: internal_console 223 s, internal_edge 164 s, internal_activator 144 s, internal_host 216 s, root 173 s, internal_grouproll 71 s
=== cpu: the gate used 12846 cpu-seconds in 510 s, about 25.2 of 32 cores; the machine as a whole was 84% busy
=== opentofu ===
opentofu: 39 test files in 11 suites, OpenTofu v1.13.9
  initialised in 15 s
  ok      16 s  infra/modules/box-fence-writer/tests/writer.tftest.hcl  Success! 1 passed, 0 failed.
  ok      15 s  infra/modules/deployment-buckets/tests/console_floors.tftest.hcl  Success! 1 passed, 0 failed.
  ok      29 s  infra/modules/deployment-buckets/tests/data_lifecycle.tftest.hcl  Success! 3 passed, 0 failed.
  ok      17 s  infra/modules/deployment-buckets/tests/db_reads.tftest.hcl  Success! 1 passed, 0 failed.
  ok      16 s  infra/modules/deployment-buckets/tests/evidence.tftest.hcl  Success! 1 passed, 0 failed.
  ok      27 s  infra/modules/deployment-buckets/tests/fence_writers.tftest.hcl  Success! 3 passed, 0 failed.
  ok      23 s  infra/modules/deployment-buckets/tests/media_results.tftest.hcl  Success! 2 passed, 0 failed.
  ok      86 s  infra/modules/media-engine/tests/media_engine.tftest.hcl  Success! 24 passed, 0 failed.
  ok      26 s  infra/modules/pdf-host/tests/computed.tftest.hcl  Success! 2 passed, 0 failed.
  ok      59 s  infra/modules/pdf-host/tests/pdf_host.tftest.hcl  Success! 24 passed, 0 failed.
  ok      44 s  infra/modules/region-group-operator-document/tests/document.tftest.hcl  Success! 12 passed, 0 failed.
  ok      21 s  infra/modules/region-host/ingress/tests/fixed-targets/tests/targets.tftest.hcl  Success! 2 passed, 0 failed.
  ok      64 s  infra/modules/region-host/ingress/tests/group_ingress.tftest.hcl  Success! 30 passed, 0 failed.
  ok      46 s  infra/modules/region-host/tests/alert_publish.tftest.hcl  Success! 18 passed, 0 failed.
  ok      43 s  infra/modules/region-host/tests/alerts_topic.tftest.hcl  Success! 16 passed, 0 failed.
  ok      11 s  infra/modules/region-host/tests/analytics_prune.tftest.hcl  Success! 2 passed, 0 failed.
  ok      16 s  infra/modules/region-host/tests/console_mail.tftest.hcl  Success! 4 passed, 0 failed.
  ok       7 s  infra/modules/region-host/tests/fixed_state_unchanged.tftest.hcl  Success! 1 passed, 0 failed.
  ok      72 s  infra/modules/region-host/tests/group.tftest.hcl  Success! 32 passed, 0 failed.
  ok      11 s  infra/modules/region-host/tests/group_alarms.tftest.hcl  Success! 4 passed, 0 failed.
  ok      11 s  infra/modules/region-host/tests/group_iam.tftest.hcl  Success! 4 passed, 0 failed.
  ok       5 s  infra/modules/region-host/tests/group_isolation.tftest.hcl  Success! 1 passed, 0 failed.
  ok      38 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      30 s  infra/modules/region-host/tests/health_alarms.tftest.hcl  Success! 10 passed, 0 failed.
  ok      12 s  infra/modules/region-host/tests/ingress_drain_read.tftest.hcl  Success! 4 passed, 0 failed.
  ok       5 s  infra/modules/region-host/tests/instance_metadata.tftest.hcl  Success! 1 passed, 0 failed.
  ok      25 s  infra/modules/region-host/tests/mailer.tftest.hcl  Success! 6 passed, 0 failed.
  ok      10 s  infra/modules/region-host/tests/mailer_group.tftest.hcl  Success! 2 passed, 0 failed.
  ok      15 s  infra/modules/region-host/tests/managed_fleets/group_refusal.tftest.hcl  Success! 2 passed, 0 failed.
  ok     108 s  infra/modules/region-host/tests/managed_fleets/managed_fleets.tftest.hcl  Success! 46 passed, 0 failed.
  ok      73 s  infra/modules/region-host/tests/store_conversion.tftest.hcl  Success! 27 passed, 0 failed.
  ok      19 s  infra/modules/region-host/tests/store_scanning.tftest.hcl  Success! 4 passed, 0 failed.
  ok      31 s  infra/modules/region-host/tests/store_versioning.tftest.hcl  Success! 11 passed, 0 failed.
  ok      17 s  infra/modules/region-host/tests/store_write_credentials.tftest.hcl  Success! 4 passed, 0 failed.
  ok      17 s  infra/modules/region-host/tests/user_data_ignored.tftest.hcl  Success! 3 passed, 0 failed.
  ok      12 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      26 s  infra/modules/scanner-host/tests/scanner_host.tftest.hcl  Success! 14 passed, 0 failed.
opentofu: 39 files in 210 s
opentofu: PASS
=== cross ===
--- shard 0 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling darwin/arm64
--- shard 1 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling darwin/amd64
--- shard 2 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling linux/arm64
linux/arm64 carlos binary: 66388130 bytes (ceiling 70000000)
--- shard 3 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling windows/amd64
--- shard 4 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling windows/arm64
=== minio-contract ===
go version go1.26.10 linux/arm64
minio contract: arm64, minio RELEASE.2025-09-07T16-13-09Z, mc RELEASE.2025-08-13T08-35-41Z
  minio: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/minio/minio.linux-arm64.RELEASE.2025-09-07T16-13-09Z
  minio: downloaded, digest verified
  mc: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/minio/mc.linux-arm64.RELEASE.2025-08-13T08-35-41Z
  mc: downloaded, digest verified
  minio healthy on 127.0.0.1:36237
Added `local` successfully.
Bucket created successfully `local/contract-bucket`.
Bucket created successfully `local/denied-bucket`.
Created policy `contract-only` successfully.
Added user `scopeduser` successfully.
Attached Policies: [contract-only]
To User: scopeduser
  buckets and scoped user ready
=== RUN   TestDeliveredContractMinio
=== RUN   TestDeliveredContractMinio/put
=== RUN   TestDeliveredContractMinio/get_round-trips_the_body
=== RUN   TestDeliveredContractMinio/list_shows_the_key
=== RUN   TestDeliveredContractMinio/head_and_list_agree_on_the_version
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_its_own_object
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/not_by_PutObjectTagging
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/and_not_by_x-amz-tagging_on_upload
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CreateMultipartUpload
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CopyObject_with_a_REPLACE_tagging_directive
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/but_multipart_itself_is_allowed
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_copy_itself_is_allowed
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/a_POST-policy_forged_tag_with_a_matching_version_is_still_not_a_verdict
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_an_ordinary_tagged-with-something-else_upload_is_allowed
=== RUN   TestDeliveredContractMinio/delete_removes_it
=== RUN   TestDeliveredContractMinio/cross-bucket_denial
--- PASS: TestDeliveredContractMinio (0.03s)
    --- PASS: TestDeliveredContractMinio/put (0.00s)
    --- PASS: TestDeliveredContractMinio/get_round-trips_the_body (0.00s)
    --- PASS: TestDeliveredContractMinio/list_shows_the_key (0.00s)
    --- PASS: TestDeliveredContractMinio/head_and_list_agree_on_the_version (0.00s)
    --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/not_by_PutObjectTagging (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/and_not_by_x-amz-tagging_on_upload (0.00s)
    --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route (0.01s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CreateMultipartUpload (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CopyObject_with_a_REPLACE_tagging_directive (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/but_multipart_itself_is_allowed (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_copy_itself_is_allowed (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/a_POST-policy_forged_tag_with_a_matching_version_is_still_not_a_verdict (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_an_ordinary_tagged-with-something-else_upload_is_allowed (0.00s)
    --- PASS: TestDeliveredContractMinio/delete_removes_it (0.00s)
    --- PASS: TestDeliveredContractMinio/cross-bucket_denial (0.00s)
PASS
ok  	github.com/carlosframework/platform/internal/objstore	0.037s
=== RUN   TestT4StorageProbeMinio
2026/11/27 20:26:04 moves: T4: STORE: list: operation error S3: ListObjectsV2, https response error StatusCode: 403, RequestID: 18EC00BD5468D665, HostID: 9d37c5221a278cac2d301f9813de266da7540ece8132517a257f7199008536ff, api error SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.
--- PASS: TestT4StorageProbeMinio (0.01s)
PASS
ok  	github.com/carlosframework/platform/internal/host	0.047s
=== RUN   TestS3StoreMinioContract
=== RUN   TestS3StoreMinioContract/conditional_get_and_etag_listing
=== RUN   TestS3StoreMinioContract/bump_through_every_mutation_path
--- PASS: TestS3StoreMinioContract (0.03s)
    --- PASS: TestS3StoreMinioContract/conditional_get_and_etag_listing (0.01s)
    --- PASS: TestS3StoreMinioContract/bump_through_every_mutation_path (0.02s)
PASS
ok  	github.com/carlosframework/platform/internal/release	0.040s
Bucket created successfully `local/analytics-versions`.
local/analytics-versions versioning is enabled
Created policy `analytics-versions` successfully.
Added user `analyticsversions` successfully.
Attached Policies: [analytics-versions]
To User: analyticsversions
=== RUN   TestS3StoreMinioVersions
--- PASS: TestS3StoreMinioVersions (0.03s)
PASS
ok  	github.com/carlosframework/platform/internal/release	0.040s
Bucket created successfully `local/store-versioned`.
local/store-versioned versioning is enabled
Created policy `store-versioned` successfully.
Added user `storeversioned` successfully.
Attached Policies: [store-versioned]
To User: storeversioned
=== RUN   TestVersionedContractMinio
--- PASS: TestVersionedContractMinio (0.01s)
PASS
ok  	github.com/carlosframework/platform/internal/objstore	0.021s
Bucket created successfully `local/wc-bucket`.
Created policy `writer` successfully.
Added user `wcwriter` successfully.
Attached Policies: [writer]
To User: wcwriter
=== RUN   TestWriteCredentialContractMinio
=== RUN   TestWriteCredentialContractMinio/put_under_the_prefix
=== RUN   TestWriteCredentialContractMinio/multipart_under_the_prefix
=== RUN   TestWriteCredentialContractMinio/refused:_put_to_another_bucket
=== RUN   TestWriteCredentialContractMinio/refused:_list
=== RUN   TestWriteCredentialContractMinio/refused:_list_uploads
=== RUN   TestWriteCredentialContractMinio/refused:_delete
=== RUN   TestWriteCredentialContractMinio/refused:_put_beside_the_prefix
=== RUN   TestWriteCredentialContractMinio/refused:_copy_from_the_store
=== RUN   TestWriteCredentialContractMinio/refused:_bucket_settings
=== RUN   TestWriteCredentialContractMinio/refused:_read_under_the_prefix
=== RUN   TestWriteCredentialContractMinio/refused:_read_elsewhere
=== RUN   TestWriteCredentialContractMinio/refused:_head
=== RUN   TestWriteCredentialContractMinio/refused:_tag
=== RUN   TestWriteCredentialContractMinio/refused:_put_tagged
=== RUN   TestWriteCredentialContractMinio/refused:_put_with_a_platform_tag
=== RUN   TestWriteCredentialContractMinio/refused:_put_outside_the_prefix
--- PASS: TestWriteCredentialContractMinio (0.04s)
    --- PASS: TestWriteCredentialContractMinio/put_under_the_prefix (0.00s)
    --- PASS: TestWriteCredentialContractMinio/multipart_under_the_prefix (0.01s)
    --- PASS: TestWriteCredentialContractMinio/refused:_put_to_another_bucket (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_list (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_list_uploads (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_delete (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_put_beside_the_prefix (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_copy_from_the_store (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_bucket_settings (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_read_under_the_prefix (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_read_elsewhere (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_head (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_tag (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_put_tagged (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_put_with_a_platform_tag (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_put_outside_the_prefix (0.00s)
PASS
ok  	github.com/carlosframework/platform/internal/objstore	0.046s
=== RUN   TestEndToEndMinio
=== RUN   TestEndToEndMinio/plan
=== RUN   TestEndToEndMinio/roll
=== RUN   TestEndToEndMinio/replace
=== RUN   TestEndToEndMinio/remove
--- PASS: TestEndToEndMinio (0.47s)
    --- PASS: TestEndToEndMinio/plan (0.01s)
    --- PASS: TestEndToEndMinio/roll (0.13s)
    --- PASS: TestEndToEndMinio/replace (0.15s)
    --- PASS: TestEndToEndMinio/remove (0.15s)
PASS
ok  	github.com/carlosframework/platform/internal/grouproll	0.475s
Bucket created successfully `local/dbf-deploy`.
Bucket created successfully `local/dbf-data-ie`.
Bucket created successfully `local/dbf-data-uk`.
local/dbf-deploy versioning is enabled
Created policy `dbf-console` successfully.
Created policy `dbf-ukbox` successfully.
Added user `dbfconsole` successfully.
Added user `dbfukbox` successfully.
Attached Policies: [dbf-console]
To User: dbfconsole
Attached Policies: [dbf-ukbox]
To User: dbfukbox
=== RUN   TestDBForwardMinio
2026/11/27 20:26:12 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/27 20:26:12 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/11/27 20:26:12 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/11/27 20:26:12 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/11/27 20:26:12 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=370
2026/11/27 20:26:12 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000002
2026/11/27 20:26:12 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/11/27 20:26:12 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=454
2026/11/27 20:26:12 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/11/27 20:26:12 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/27 20:26:12 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/11/27 20:26:12 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/11/27 20:26:13 console: CARLOS_SECRETS_PUBKEY is unset, so no region outside the home can be chosen automatically
2026/11/27 20:26:13 console: could not notify member@example.com of a CLI token issue: keymail: lookup member@example.com: keymail: GET /api/federation/lookup?addr=member%40example.com&from=console%40127.0.0.1%3A43163: could not determine target mailbox
    agent.go:136: dbreads: dbr_afuzxmhcw4svjs56bulfpstb4q: planned 3 files (1544 bytes) and restored to 3 in 13ms
    agent.go:136: dbreads: dbr_afuzxmhcw4svjs56bulfpstb4q: output 5 bytes in 1 confirmed chunks in 2ms
2026/11/27 20:26:14 console: db read dbr_afuzxmhcw4svjs56bulfpstb4q: relayed 1 chunks (102 bytes) in 1.005s, ended done
    agent.go:136: dbreads: dbr_i2kbbskj7fpicfwc633y24iyzm: planned 1 files (720 bytes) and restored to 1 in 11ms
    agent.go:136: dbreads: dbr_i2kbbskj7fpicfwc633y24iyzm: output 5 bytes in 1 confirmed chunks in 2ms
2026/11/27 20:26:15 console: db read dbr_i2kbbskj7fpicfwc633y24iyzm: relayed 1 chunks (102 bytes) in 1.005s, ended done
    agent.go:136: dbreads: dbr_3pxysvyyngtc6vlenudwfp2ske: planned 3 files (1544 bytes) and held through 3 in 12ms
    agent.go:136: dbreads: dbr_3pxysvyyngtc6vlenudwfp2ske: output 1544 bytes in 1 confirmed chunks in 1ms
2026/11/27 20:26:16 console: db read dbr_3pxysvyyngtc6vlenudwfp2ske: relayed 1 chunks (1641 bytes) in 1.008s, ended done
=== RUN   TestDBForwardMinio/by_disconnect
=== NAME  TestDBForwardMinio
    agent.go:136: dbreads: dbr_xh2km74fkq6ukiqxciyfvb62u4: planned 3 files (1544 bytes) and restored to 3 in 13ms
2026/11/27 20:26:16 console: db read dbr_xh2km74fkq6ukiqxciyfvb62u4: relayed 0 chunks (0 bytes) in 18ms, ended client gone
    agent.go:136: dbreads: dbr_xh2km74fkq6ukiqxciyfvb62u4: output 5 bytes in 1 confirmed chunks in 104ms
=== RUN   TestDBForwardMinio/by_timeout
=== NAME  TestDBForwardMinio
    agent.go:136: dbreads: dbr_puavd4qgxgiqjfxiadq5w6m4fu: planned 3 files (1544 bytes) and restored to 3 in 13ms
2026/11/27 20:26:36 console: db read dbr_puavd4qgxgiqjfxiadq5w6m4fu: relayed 0 chunks (0 bytes) in 19.526s, ended no-result
    agent.go:136: dbreads: dbr_puavd4qgxgiqjfxiadq5w6m4fu: output 5 bytes in 1 confirmed chunks in 19.499s
--- PASS: TestDBForwardMinio (23.19s)
    --- PASS: TestDBForwardMinio/by_disconnect (0.23s)
    --- PASS: TestDBForwardMinio/by_timeout (19.64s)
PASS
ok  	github.com/carlosframework/platform/internal/console	23.231s
Bucket created successfully `local/media-transfers`.
Bucket created successfully `local/media-transfer-results`.
local/media-transfer-results versioning is enabled
Created policy `media-transfers` successfully.
Added user `mediatransfers` successfully.
Attached Policies: [media-transfers]
To User: mediatransfers
=== RUN   TestMediaTransfersMinio
    upload.go:117: codec: the store already holds video.mp4
    upload.go:117: codec: the store already holds video.m3u8
    upload.go:117: codec: the store already holds poster.jpg
--- PASS: TestMediaTransfersMinio (0.07s)
PASS
ok  	github.com/carlosframework/platform/internal/mediaaws	0.076s
Bucket created successfully `local/media-local-store`.
Bucket created successfully `local/media-local-results`.
Created policy `media-local` successfully.
Added user `medialocal` successfully.
Attached Policies: [media-local]
To User: medialocal
=== RUN   TestLocalEndToEndMinio
--- PASS: TestLocalEndToEndMinio (0.56s)
PASS
ok  	github.com/carlosframework/platform/internal/medialocal	0.561s
=== RUN   TestHeldHandoverTwoBoxMinio
2026/11/27 20:26:41 edge: mesh key: minted
2026/11/27 20:26:41 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/27 20:26:41 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/27 20:26:41 tenant admission is open. accepting tenant work
2026/11/27 20:26:41 activator: HA placement host=shop-28bd3472.example.test kind=Place ref=annie reason=roomiest generation=2026-11-27T20:26:41Z lock_generation=0
2026/11/27 20:26:41 lease: t8-28bd3472/shop-28bd3472.example.test: HA lease acquired in 4ms (first wake)
2026/11/27 20:26:41 activator: shop-28bd3472.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/27 20:26:41 activator: shop-28bd3472.example.test: started carlos-instance@shop\x2d28bd3472.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 6ms, control socket 0s, key gate 0s, logs 0s) 6ms, launch file 0s, gate 0s, root start 1ms)
2026/11/27 20:26:41 activator: shop-28bd3472.example.test: carlos-instance@shop\x2d28bd3472.example.test.service launched in 7ms, healthy 0s later
2026/11/27 20:26:41 activator: shop-28bd3472.example.test: woke in 21ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 7ms, replicate 8ms
2026/11/27 20:26:41 lease: t8-28bd3472/plain-28bd3472.example.test: acquired in 2ms (client 0s, lock read and write 1ms)
2026/11/27 20:26:41 activator: no replica for plain-28bd3472.example.test in s3://contract-bucket/t8-28bd3472/plain-28bd3472.example.test — booting fresh
2026/11/27 20:26:41 activator: plain-28bd3472.example.test: started carlos-instance@plain\x2d28bd3472.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 1ms, instance key 0s, env 4ms, control socket 0s, key gate 0s, logs 0s) 5ms, launch file 0s, gate 0s, root start 1ms)
2026/11/27 20:26:41 activator: plain-28bd3472.example.test: carlos-instance@plain\x2d28bd3472.example.test.service launched in 6ms, healthy 0s later
2026/11/27 20:26:41 activator: plain-28bd3472.example.test: woke in 46ms: checks 0s, lease 2ms, restore 18ms, identity 0s, protect 0s, spawn 7ms, replicate 19ms
2026/11/27 20:26:41 lease: t8-28bd3472/bot0.shop.bac.sidecar.internal: HA lease acquired in 4ms (first wake)
2026/11/27 20:26:41 activator: bot0.shop.bac.sidecar.internal: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/27 20:26:41 activator: bot0.shop.bac.sidecar.internal: woke in 69ms: checks 0s, lease 4ms, restore 0s, identity 0s, protect 0s, spawn 7ms, settle 0s, replicate 57ms
2026/11/27 20:26:41 activator: next-due probe plain-28bd3472.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/27 20:26:41 activator: plain-28bd3472.example.test hibernated
2026/11/27 20:26:41 activator: next-due probe shop-28bd3472.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/27 20:26:41 activator: bot0.shop.bac.sidecar.internal: released with a marker (clean true, txid 1, files 3:f58f212b9380c5c15276bf603cd3480ec27a7ecad215914e189650c0e8e7a2b3) in 6ms: files 1ms, sync 2ms, record 1ms, marker 2ms
2026/11/27 20:26:41 activator: bot0.shop.bac.sidecar.internal hibernated
2026/11/27 20:26:41 activator: shop-28bd3472.example.test: released with a marker (clean true, txid 1, files 3:cb18c737e0c7fe9807a615472cbf43ec5e7dbf22faf398e18d7971f6dce20889) in 5ms: files 1ms, sync 2ms, record 1ms, marker 2ms
2026/11/27 20:26:41 activator: shop-28bd3472.example.test hibernated
2026/11/27 20:26:41 lease: t8-28bd3472/shop-28bd3472.example.test: HA lease acquired in 3ms (clean marker)
2026/11/27 20:26:41 activator: shop-28bd3472.example.test: restored (other-box)
2026/11/27 20:26:41 activator: shop-28bd3472.example.test: started carlos-instance@shop\x2d28bd3472.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 1ms, control socket 0s, key gate 0s, logs 0s) 1ms, launch file 0s, gate 0s, root start 1ms)
2026/11/27 20:26:41 activator: shop-28bd3472.example.test: carlos-instance@shop\x2d28bd3472.example.test.service launched in 2ms, healthy 0s later
2026/11/27 20:26:41 activator: shop-28bd3472.example.test: woke in 88ms: checks 0s, lease 3ms, restore 24ms, identity 0s, protect 0s, spawn 2ms, replicate 58ms
2026/11/27 20:26:41 edge: ha-take shop-28bd3472.example.test from annie (txn t8-witness, marker generation 1): holder betty, generation 2
2026/11/27 20:26:41 edge: forward shop-28bd3472.example.test: annie handed the request over to betty; sending it there (occurrence #1)
    hadrain_twobox_minio_linux_test.go:1238: drain report: {V:1 Transaction:t8-witness Incarnation:cbd5b79acb8db598c67aea456bb7b536 Step:move Result:ok Reasons:[] Fence:t8-witness StartedAt:2026-11-27 20:26:41.478342723 +0000 UTC FinishedAt:2026-11-27 20:26:41.626897916 +0000 UTC Acked:[betty carol] Departed:[] Moved:[{Host:shop-28bd3472.example.test Holder:betty Gen:2 Confirmed:take}] Released:[{Host:plain-28bd3472.example.test Kind:other Marker:true Clean:true Reason:} {Host:bot0.shop.bac.sidecar.internal Kind:worker Marker:true Clean:true Reason:}] Unclean:[] Left:[] Holds:{LongestMS:119 Todays:0 RefusedAtOnce:1} Closed:0 Quiet:{DrainQuiet:{Waking:0 Stopping:0 Recovering:0 Owed:0} Held:[]}}
    hadrain_twobox_minio_linux_test.go:1239: driver calls: [begin shop-28bd3472.example.test <nil> stop plain-28bd3472.example.test marker=true clean=true <nil> releasing shop-28bd3472.example.test <nil> stop bot0.shop.bac.sidecar.internal marker=true clean=true <nil> stop shop-28bd3472.example.test marker=true clean=true <nil> taken shop-28bd3472.example.test betty <nil> end-moves]
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-28bd3472/shop-28bd3472.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: DELETE /contract-bucket/t8-28bd3472/plain-28bd3472.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-28bd3472/bot0.shop.bac.sidecar.internal/0009/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-28bd3472/bot0.shop.bac.sidecar.internal/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-28bd3472/shop-28bd3472.example.test/0009/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-28bd3472/shop-28bd3472.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-28bd3472/shop-28bd3472.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-28bd3472/shop-28bd3472.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-28bd3472/shop-28bd3472.example.test/head.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/generations/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0008/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0007/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0006/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0005/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0004/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0008/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0007/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0006/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0005/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0004/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-28bd3472/shop-28bd3472.example.test/0009/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-28bd3472/shop-28bd3472.example.test/files/0/manifest.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-28bd3472/shop-28bd3472.example.test/files/0/objects/0000000000000001-ecaaa67cdcfe54b44810637c040642f6a3f69f023e2b794b17b63ad3a24aaec0
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-28bd3472/shop-28bd3472.example.test/files/0/objects/0000000000000003-a2701510854f364572d6debcd34ba0ca0438ee6c0651c47717e231fff8fae8e7
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-28bd3472/shop-28bd3472.example.test/0000/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-28bd3472/shop-28bd3472.example.test/0000/0000000000000002-0000000000000002.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-28bd3472/shop-28bd3472.example.test/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-28bd3472/shop-28bd3472.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1243: drain took 192ms; S3 calls 45 (DELETE lock=1 GET files=3 GET head=1 GET lock=3 GET replica=2 LIST replica=29 PUT lock=3 PUT replica=3); deployment store calls 20 (GET edges=14 LIST edges=4 PUT edges=2)
    hadrain_twobox_minio_linux_test.go:1367: the fenced A's start gate answers 503 "This service is unavailable. Try again later.\n" (Retry-After "10")
2026/11/27 20:26:41 lease: t8-28bd3472/plain-28bd3472.example.test: acquired in 2ms (client 0s, lock read and write 1ms)
2026/11/27 20:26:41 activator: plain-28bd3472.example.test: started carlos-instance@plain\x2d28bd3472.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 0s, control socket 0s, key gate 0s, logs 0s) 0s, launch file 0s, gate 0s, root start 1ms)
2026/11/27 20:26:41 activator: plain-28bd3472.example.test: carlos-instance@plain\x2d28bd3472.example.test.service launched in 1ms, healthy 0s later
2026/11/27 20:26:41 lease: /tmp/carlos-minio-contract-vSlnhl/g/dw2579671700/data/instances/plain-28bd3472.example.test/plain-28bd3472.example.test.db: continuity with the last clean close not proven; snapshot 1-0000000000000001 written before serving
2026/11/27 20:26:41 activator: plain-28bd3472.example.test: woke in 8ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 1ms, replicate 4ms
2026/11/27 20:26:41 activator: next-due probe shop-28bd3472.example.test: decode /api/next-due: invalid character 'b' looking for beginning of value — recording none (it sleeps until a request)
2026/11/27 20:26:41 activator: shop-28bd3472.example.test: released with a marker (clean true, txid 2, files 3:cb18c737e0c7fe9807a615472cbf43ec5e7dbf22faf398e18d7971f6dce20889) in 4ms: files 1ms, sync 0s, record 1ms, marker 2ms
2026/11/27 20:26:41 activator: shop-28bd3472.example.test hibernated
2026/11/27 20:26:41 tenant admission is closed for shutdown
2026/11/27 20:26:41 activator: next-due probe plain-28bd3472.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/27 20:26:41 activator: plain-28bd3472.example.test hibernated
--- PASS: TestHeldHandoverTwoBoxMinio (0.57s)
=== RUN   TestHeldHandoverLostLeaseMinio
2026/11/27 20:26:41 edge: mesh key: minted
2026/11/27 20:26:41 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/27 20:26:41 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/27 20:26:41 tenant admission is open. accepting tenant work
2026/11/27 20:26:41 activator: HA placement host=shop-fa75b082.example.test kind=Place ref=annie reason=roomiest generation=2026-11-27T20:26:41Z lock_generation=0
2026/11/27 20:26:41 lease: t8-fa75b082/shop-fa75b082.example.test: HA lease acquired in 3ms (first wake)
2026/11/27 20:26:41 activator: shop-fa75b082.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/27 20:26:41 activator: shop-fa75b082.example.test: started carlos-instance@shop\x2dfa75b082.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 6ms, control socket 0s, key gate 0s, logs 0s) 6ms, launch file 0s, gate 0s, root start 1ms)
2026/11/27 20:26:41 activator: shop-fa75b082.example.test: carlos-instance@shop\x2dfa75b082.example.test.service launched in 7ms, healthy 0s later
2026/11/27 20:26:41 activator: shop-fa75b082.example.test: woke in 64ms: checks 0s, lease 4ms, restore 0s, identity 0s, protect 0s, spawn 7ms, replicate 53ms
2026/11/27 20:26:41 activator: next-due probe shop-fa75b082.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/27 20:26:41 activator: final checkpoint shop-fa75b082.example.test: lease: release marker owed for s3://contract-bucket/t8-fa75b082/shop-fa75b082.example.test/lock.json (If-Match "e086f444f9edb7fdeaf751cd369f57d6"): lease: write release marker: operation error S3: PutObject, https response error StatusCode: 503, RequestID: , HostID: , api error ServiceUnavailable: witness: refused
2026/11/27 20:26:41 activator: shop-fa75b082.example.test hibernated
2026/11/27 20:26:41 activator: handover of shop-fa75b082.example.test left: released without a marker; its held requests get today's answer
    hadrain_twobox_minio_linux_test.go:1469: the held request's hold ended "shop-fa75b082.example.test client 1 "
    hadrain_twobox_minio_linux_test.go:1486: driver calls: [begin shop-fa75b082.example.test <nil> releasing shop-fa75b082.example.test <nil> stop shop-fa75b082.example.test marker=false clean=false <nil> left shop-fa75b082.example.test released without a marker]
    hadrain_twobox_minio_linux_test.go:1487: a request after the loss: 503 "This instance cannot wake right now. Please try again shortly.\n" (Retry-After "10", holder "none", 0s, err <nil>)
2026/11/27 20:26:41 tenant admission is closed for shutdown
2026/11/27 20:26:41 http: proxy error: context canceled
--- PASS: TestHeldHandoverLostLeaseMinio (0.32s)
PASS
ok  	github.com/carlosframework/platform/internal/host	0.931s
Bucket created successfully `local/gen-take`.
local/gen-take versioning is enabled
Created policy `gen-take` successfully.
Added user `gentake` successfully.
Attached Policies: [gen-take]
To User: gentake
=== RUN   TestGenerationTakeMinio
=== RUN   TestGenerationTakeMinio/take
2026/11/27 20:26:43 lease: instances/gen-1795811203219676516.shop.example.com: HA lease acquired in 6ms (first wake)
2026/11/27 20:26:43 lease: instances/gen-1795811203219676516.shop.example.com: HA lease acquired in 3ms (holder terminated)
    gentake_minio_test.go:308: a second create-only copy onto instances/gen-1795811203219676516.shop.example.com/g-00000000000000000002/0000/0000000000000001-0000000000000001.ltx: <nil> (destination condition honoured: false)
2026/11/27 20:26:43 ERROR retention enforcement failed system=store db=w.example.com.db error="enforce snapshot retention: remove ltx files: lease: invalid or changed generation binding"
2026/11/27 20:26:43 ERROR enforce L0 time retention system=store db=w.example.com.db error="fetch l1 files: lease: a write has waited too long to reach storage (write fence)"
2026/11/27 20:26:43 http: proxy error: context canceled
2026/11/27 20:26:43 ERROR retention enforcement failed system=store db=w.example.com.db error="enforce snapshot retention: remove ltx files: lease: a write has waited too long to reach storage (write fence)"
=== RUN   TestGenerationTakeMinio/switch-412
2026/11/27 20:26:43 lease: instances/gen-1795811203387402536.shop.example.com: HA lease acquired in 3ms (first wake)
2026/11/27 20:26:43 ERROR retention enforcement failed system=store db=seed.db error="enforce snapshot retention: remove ltx files: lease: invalid or changed generation binding"
2026/11/27 20:26:43 lease: instances/gen-1795811203387402536.shop.example.com: HA lease acquired in 2ms (clean marker)
=== RUN   TestGenerationTakeMinio/copy-version
=== RUN   TestGenerationTakeMinio/store-time
2026/11/27 20:26:43 lease: instances/gen-1795811203482901863.shop.example.com: HA lease acquired in 3ms (first wake)
2026/11/27 20:26:43 ERROR retention enforcement failed system=store db=seed.db error="enforce snapshot retention: fetch ltx files: lease: a write has waited too long to reach storage (write fence)"
2026/11/27 20:26:43 lease: instances/gen-1795811203482901863.shop.example.com: HA lease acquired in 3ms (clean marker)
2026/11/27 20:26:43 lease: instances/gen-1795811203482901863.shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/11/27 20:26:43 lease: instances/gen-1795811203482901863.shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/11/27 20:26:43 lease: instances/gen-1795811203482901863.shop.example.com: HA lease acquired in 3ms (unclean marker)
2026/11/27 20:26:43 lease: instances/gen-1795811203482901863.shop.example.com: HA lease acquired in 2ms (unclean marker)
=== RUN   TestGenerationTakeMinio/skew
--- PASS: TestGenerationTakeMinio (0.38s)
    --- PASS: TestGenerationTakeMinio/take (0.17s)
    --- PASS: TestGenerationTakeMinio/switch-412 (0.09s)
    --- PASS: TestGenerationTakeMinio/copy-version (0.01s)
    --- PASS: TestGenerationTakeMinio/store-time (0.10s)
    --- PASS: TestGenerationTakeMinio/skew (0.01s)
PASS
ok  	github.com/carlosframework/platform/internal/lease	0.389s
minio contract: PASS
=== staticcheck ===
go version go1.26.10 linux/arm64
go: downloading honnef.co/go/tools v0.8.2
go: downloading golang.org/x/exp/typeparams v0.0.0-20231108232855-2478ac86f678
go: downloading github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c
go: downloading golang.org/x/sync v0.23.0
go: downloading golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa
staticcheck: clean
=== govulncheck ===
go version go1.26.10 linux/arm64
go: downloading golang.org/x/vuln v1.8.0
go: downloading golang.org/x/telemetry v0.0.0-20260908163034-4bcc4b2ee518
go: downloading golang.org/x/tools v0.50.0
govulncheck: scanned github.com/carlosframework/platform, amadan.net/carlos/platform.git/launchctx, carlos-vulnscan
GO-2026-6859  called  stdlib@v1.26.10, fixed in v1.26.11
    HTTP/1 server crash due to MaxBytesReader header race in net/http
    excepted until 2027-01-31 (.amadan/govulncheck-exceptions.tsv:9): net/http MaxBytesReader header race, fixed in go1.26.11. CI and releases stay on go1.26.10 because 1.26.11 deadlocks the edge's Expect: 100-continue path (#897, .amadan/go-toolchain.sh); #904 checked every production MaxBytesReader site and found it unreachable.
GO-2026-5932  required  golang.org/x/crypto@v0.58.0, fixed in v0.58.1-0.20261009181718-2f1f834330b2
    The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues
    not fatal: no call path to the vulnerable code
govulncheck: clean (2 finding(s), none called outside .amadan/govulncheck-exceptions.tsv)
=== code-health ===
go version go1.26.10 linux/arm64
    codehealth_test.go:42: scanned in 1m50.491s
    codehealth_test.go:107: line metrics (code lines, then physical):
          file-lines  5471  7324  internal/activator activator_test.go
          file-lines  4200  7033  internal/console server.go
          file-lines  4175  6358  . apimode.go
          file-lines  3785  7224  internal/activator activator.go
          file-lines  3530  4459  . apimode_test.go
          file-lines  3261  3864  internal/registry registry_test.go
          file-lines  3209  6403  internal/host agent.go
          file-lines  3094  3992  internal/provision reconcile_test.go
          func-lines   870   891  internal/host plan14InstalledClaimLaunch
          func-lines   810  1277  internal/provision Reconcile
          func-lines   769  1242  internal/console (*Server).handleAPIInstanceCreate
          func-lines   688  1243  internal/host runAgent
          func-lines   571   908  internal/activator (*Service).doWakeOnce
          func-lines   538   546  internal/host runServingParkPeerNamespace
          func-lines   519   712  . runRoute
          func-lines   509   569  internal/host TestPagingIsRateLimited
          func-lines   494   815  internal/release adoptHost
          func-lines   441   500  internal/host TestRootInstanceStopExecStop
          func-lines   421   436  internal/host (*ClaimWakeAssembly).Build
          func-lines   421   437  internal/team TestFixture
          func-lines   412   414  internal/console TestDemoProtectionsSourceToLimitAndTakedown
          func-lines   408   485  . TestFleetAppServesThroughTheHub
          func-lines   402   406  internal/registry (*Registry).haJournal
          func-lines   400   868  internal/provision rootReadArchivedChain
          func-lines   399   732  internal/release PassFilter
          func-lines   390   398  internal/host runFilesSeedPreparationWithLive
          func-lines   383   406  internal/console TestDemoSourceToLiveAndUpdate
          func-lines   378   898  internal/edge (*Edge).ServeHTTP
          func-lines   374   377  internal/host plan14RequiredArtifactsRootRunner
          func-lines   371   417  internal/host TestRootEgressKernelProof
          func-lines   367   584  internal/console (*Server).handleAPIShip
          func-lines   366   636  cmd/console serve
          func-lines   364   371  internal/host testRootMigrationBootstrap
          func-lines   360   362  internal/edge TestDemoAPIAliasBoundary
          func-lines   357   358  internal/registry (*Registry).dispatchRemote
          func-lines   355   372  internal/host TestRootSandboxUpdateFromOldBox
          func-lines   343   354  internal/analytics Prune
          func-lines   340   353  internal/host newColdRootHarness
          func-lines   335   557  internal/console (*Store).migrate
          func-lines   334   334  internal/host TestPlan12RecoveryRestoreSourceDatabase
          func-lines   330   371  internal/edge TestRegionalNameNeverLeavesItsRegion
          func-lines   329   471  . runDeploy
          func-lines   329   329  internal/host TestPlan12RecoveryRestoreSourceDatabase.func1
          func-lines   327   369  internal/edge TestTunnelWebSocketEndToEnd
          func-lines   325   455  internal/objstore TestDeliveredContractMinio
          func-lines   320   654  internal/appconfig SyncExecWithCallbacks
          func-lines   315   318  internal/host plan14TimerIntention
          func-lines   311   314  internal/host plan14TimerIntention.func1
          func-lines   310   315  internal/hostbox ColdHandover.Run
          func-lines   308   309  internal/host rootFilesSeedIsolatedWitness
          func-lines   305   323  internal/host hairpinKernelWitness
          func-lines   304   308  internal/console TestHAP2ProductionDoors
          func-lines   302   329  internal/host TestRootG2PoolIngress
        release-importers: . cmd/console internal/activator internal/analytics internal/appconfig internal/apperr internal/applog internal/apppolicy internal/boxid internal/boxvolumes internal/console internal/dbreads internal/dbreads/dbreadstest internal/dbverify internal/demobuild internal/domains internal/doorkey internal/edge internal/edgeproof internal/edgesfile internal/fleetapi internal/grouproll internal/grouprollaws internal/historyreadback internal/host internal/hostactors internal/hostbox internal/hostclaim internal/hostevidence internal/hostexec internal/hostfence internal/hostfiles internal/hostfloor internal/hostguard internal/hostops internal/hostrelocate internal/hostresolve internal/instancectl internal/instanceupdates internal/interactive internal/layout internal/lease internal/ledger internal/mail internal/mailer internal/mailsubmit internal/metrics internal/moves internal/objstore internal/ops internal/park internal/plans internal/provision internal/relay internal/rollout internal/rootfsimage internal/runs internal/s3fake internal/schedule internal/seeds internal/status internal/telemetry internal/usage internal/vet scripts/pathmapcheck scripts/witness-pointer
        not scanned (216 files):
          cmd/carlos-media/drill_other.go: built only for other systems or tags
          cmd/carlos-media/harden_other.go: built only for other systems or tags
          cmd/console/fleetsocket_other.go: built only for other systems or tags
          cmd/console/servelock_windows.go: built only for other systems or tags
          cmd/moveprobe/detach_windows.go: built only for other systems or tags
          cmd/rootfswitness/mmap_other.go: built only for other systems or tags
          devbox_acl_other.go: built only for other systems or tags
          devbox_envfile_darwin_test.go: built only for other systems or tags
          devbox_envfile_other.go: built only for other systems or tags
          domains_transfer_signals_other.go: built only for other systems or tags
          interactive_term_darwin.go: built only for other systems or tags
          interactive_term_other.go: built only for other systems or tags
          internal/activator/claimprocess_root_other.go: built only for other systems or tags
          internal/activator/escrow_stamp_other.go: built only for other systems or tags
          internal/activator/fleetreserve_other.go: built only for other systems or tags
          internal/activator/harecord_other.go: built only for other systems or tags
          internal/activator/ownenv_other.go: built only for other systems or tags
          internal/activator/pty_other.go: built only for other systems or tags
          internal/activator/race_on_test.go: built only for other systems or tags
          internal/activator/rolelaunch_other.go: built only for other systems or tags
          internal/assetcache/statfs_other.go: built only for other systems or tags
          internal/boxself/io_other.go: built only for other systems or tags
          internal/cgroup/cleanup_other.go: built only for other systems or tags
          internal/cgroup/cleanup_other_test.go: built only for other systems or tags
          internal/cgroup/hostprocs_other.go: built only for other systems or tags
          internal/cgroup/recreate_other.go: built only for other systems or tags
          internal/cgroup/role_other.go: built only for other systems or tags
          internal/cgroup/shim_other.go: built only for other systems or tags
          internal/cgroup/strict_other.go: built only for other systems or tags
          internal/cgroup/verify_other.go: built only for other systems or tags
          internal/console/claim_sql_identity_other.go: built only for other systems or tags
          internal/console/geoipverify_other.go: built only for other systems or tags
          internal/console/hostreports_process_other.go: built only for other systems or tags
          internal/console/replicaview_other.go: built only for other systems or tags
          internal/console/restore_sim_nice_other_test.go: built only for other systems or tags
          internal/console/scalecost_other_test.go: built only for other systems or tags
          internal/console/seedscratch_windows.go: built only for other systems or tags
          internal/dbreads/worker_other.go: built only for other systems or tags
          internal/demobuild/security_other.go: built only for other systems or tags
          internal/democlaim/source_other.go: built only for other systems or tags
          internal/devbox/peer_darwin.go: built only for other systems or tags
          internal/devbox/peer_darwin_test.go: built only for other systems or tags
          internal/devbox/peer_other.go: built only for other systems or tags
          internal/devbox/socketcheck_other.go: built only for other systems or tags
          internal/domains/certimport_read_portable.go: built only for other systems or tags
          internal/edge/devboxpeer_other.go: built only for other systems or tags
          internal/edge/hairpin_other.go: built only for other systems or tags
          internal/edge/heldbudget_other.go: built only for other systems or tags
          internal/edge/purge_listen_unix.go: built only for other systems or tags
          internal/edge/purge_listen_windows.go: built only for other systems or tags
          internal/edge/race_on_test.go: built only for other systems or tags
          internal/edge/replicaconsole_owner_other.go: built only for other systems or tags
          internal/edge/replicaconsole_peer_other.go: built only for other systems or tags
          internal/edge/replicaconsole_socket_other_test.go: built only for other systems or tags
          internal/edge/static_artifact_other.go: built only for other systems or tags
          internal/edge/static_recordlock_other.go: built only for other systems or tags
          internal/edge/static_sweep_other.go: built only for other systems or tags
          internal/execsandbox/cleanup_other.go: built only for other systems or tags
          internal/execsandbox/file_other.go: built only for other systems or tags
          internal/execsandbox/oci_other.go: built only for other systems or tags
          internal/fileacl/fileacl_darwin.go: built only for other systems or tags
          internal/fileacl/fileacl_darwin_amd64.s: built only for other systems or tags
          internal/fileacl/fileacl_darwin_arm64.s: built only for other systems or tags
          internal/fileacl/fileacl_darwin_test.go: built only for other systems or tags
          internal/grouproll/state_other.go: built only for other systems or tags
          internal/grouprollaws/pty_darwin.go: built only for other systems or tags
          internal/grouprollaws/pty_other.go: built only for other systems or tags
          internal/hairpin/native_other.go: built only for other systems or tags
          internal/host/applylock_other_test.go: built only for other systems or tags
          internal/host/bootstrapfs_other.go: built only for other systems or tags
          internal/host/boxroles_config_other.go: built only for other systems or tags
          internal/host/claimfilesseed_delegation_other.go: built only for other systems or tags
          internal/host/claimfilesseed_transport_other.go: built only for other systems or tags
          internal/host/claimjournal_containment_other.go: built only for other systems or tags
          internal/host/claimjournal_migration_other.go: built only for other systems or tags
          internal/host/claimlaunch_kernel_other.go: built only for other systems or tags
          internal/host/claimlaunch_rev2_other_test.go: built only for other systems or tags
          internal/host/claimproduction_other.go: built only for other systems or tags
          internal/host/claimready_other.go: built only for other systems or tags
          internal/host/claimroleassembly_other.go: built only for other systems or tags
          internal/host/claimservingartifact_other.go: built only for other systems or tags
          internal/host/claimservinghandover_reboot_other.go: built only for other systems or tags
          internal/host/claimservinghandover_reboot_other_test.go: built only for other systems or tags
          internal/host/claimservingpark_other.go: built only for other systems or tags
          internal/host/claimstate_other.go: built only for other systems or tags
          internal/host/claimstop_kernel_other.go: built only for other systems or tags
          internal/host/claimtoken_inventory_other.go: built only for other systems or tags
          internal/host/claimunit_dropin_other.go: built only for other systems or tags
          internal/host/claimunit_files_other.go: built only for other systems or tags
          internal/host/claimunit_migrate_other.go: built only for other systems or tags
          internal/host/claimunit_ready_other.go: built only for other systems or tags
          internal/host/claimunit_socket_migration_other.go: built only for other systems or tags
          internal/host/consolefleet_owner_other.go: built only for other systems or tags
          internal/host/dbreads_other.go: built only for other systems or tags
          internal/host/egress_rail_other.go: built only for other systems or tags
          internal/host/fileowner_other.go: built only for other systems or tags
          internal/host/flock_windows.go: built only for other systems or tags
          internal/host/group_config_other.go: built only for other systems or tags
          internal/host/group_maintenance_other.go: built only for other systems or tags
          internal/host/group_maintenance_verbs_other.go: built only for other systems or tags
          internal/host/group_receipt_other.go: built only for other systems or tags
          internal/host/hadrain_call_other.go: built only for other systems or tags
          internal/host/hadrain_socket_other.go: built only for other systems or tags
          internal/host/hadrainfence_other.go: built only for other systems or tags
          internal/host/headroom_other.go: built only for other systems or tags
          internal/host/installchannel_other.go: built only for other systems or tags
          internal/host/managedboot_other.go: built only for other systems or tags
          internal/host/metrics_nested_other.go: built only for other systems or tags
          internal/host/movesfloor_other.go: built only for other systems or tags
          internal/host/movesfloorgate_other.go: built only for other systems or tags
          internal/host/movesheldrelease_other.go: built only for other systems or tags
          internal/host/movesmeasure_other.go: built only for other systems or tags
          internal/host/offcloudcredentials_other.go: built only for other systems or tags
          internal/host/registrychild_exec_other.go: built only for other systems or tags
          internal/host/registrychild_other.go: built only for other systems or tags
          internal/host/registryowner_chown_other.go: built only for other systems or tags
          internal/host/registryowner_descriptor_unix.go: built only for other systems or tags
          internal/host/replicahealth_other.go: built only for other systems or tags
          internal/host/rootgeneration_census_other.go: built only for other systems or tags
          internal/host/rootgeneration_kernel_other.go: built only for other systems or tags
          internal/host/rootgeneration_payload_other.go: built only for other systems or tags
          internal/host/rootgeneration_retired_other.go: built only for other systems or tags
          internal/host/rootmigration_production_other.go: built only for other systems or tags
          internal/host/runscset_other.go: built only for other systems or tags
          internal/host/sandboxenv_other.go: built only for other systems or tags
          internal/host/statfs_windows.go: built only for other systems or tags
          internal/host/systemapply_other.go: built only for other systems or tags
          internal/hostbox/census_vendor_other.go: built only for other systems or tags
          internal/hostbox/inventory_identity_other.go: built only for other systems or tags
          internal/hostbox/journalmigration_other.go: built only for other systems or tags
          internal/hostbox/journalnamespace_other.go: built only for other systems or tags
          internal/hostbox/journaltrust_other.go: built only for other systems or tags
          internal/hostbox/migration_census_other.go: built only for other systems or tags
          internal/hostbox/typedpark_other.go: built only for other systems or tags
          internal/hostenv/group_other.go: built only for other systems or tags
          internal/hostenv/write_other.go: built only for other systems or tags
          internal/hostenv/write_other_test.go: built only for other systems or tags
          internal/hostexec/clock_other.go: built only for other systems or tags
          internal/hostexec/clock_other_test.go: built only for other systems or tags
          internal/hostexec/local_other.go: built only for other systems or tags
          internal/hostexec/pending_other.go: built only for other systems or tags
          internal/hostexec/probe_other.go: built only for other systems or tags
          internal/hostexec/rootprocess_other.go: built only for other systems or tags
          internal/hostfiles/dir_other.go: built only for other systems or tags
          internal/hostfiles/refuse_other.go: built only for other systems or tags
          internal/hostfiles/watch_other.go: built only for other systems or tags
          internal/hostfloor/controllers_other.go: built only for other systems or tags
          internal/hostfloor/image_other.go: built only for other systems or tags
          internal/hostguard/flock_other.go: built only for other systems or tags
          internal/hostguard/flock_other_test.go: built only for other systems or tags
          internal/hostguard/record_other.go: built only for other systems or tags
          internal/instancectl/claimexec_other.go: built only for other systems or tags
          internal/instancectl/claimexec_socket_other.go: built only for other systems or tags
          internal/instancectl/claimlaunch_snapshot_other.go: built only for other systems or tags
          internal/instancectl/claimnetwork_other.go: built only for other systems or tags
          internal/instancectl/demo_snapshot_other.go: built only for other systems or tags
          internal/instancectl/egress_cgroup_other.go: built only for other systems or tags
          internal/instancectl/egress_dropin_other.go: built only for other systems or tags
          internal/instancectl/fleetsize_other.go: built only for other systems or tags
          internal/instancectl/gvisorprobe_other.go: built only for other systems or tags
          internal/instancectl/peer_other.go: built only for other systems or tags
          internal/instancectl/peer_tuple_other.go: built only for other systems or tags
          internal/instancectl/rootfs_identity_other.go: built only for other systems or tags
          internal/instanceexec/claimexec_other.go: built only for other systems or tags
          internal/instanceexec/exec_rootfs_other.go: built only for other systems or tags
          internal/instanceexec/netlink_route_other.go: built only for other systems or tags
          internal/instanceexec/probe_gvisor_other.go: built only for other systems or tags
          internal/instanceexec/probe_hardening_other.go: built only for other systems or tags
          internal/instanceexec/probe_other.go: built only for other systems or tags
          internal/instanceexec/probe_rootfs_other.go: built only for other systems or tags
          internal/instanceexec/sandbox_other.go: built only for other systems or tags
          internal/instanceexec/scope_other.go: built only for other systems or tags
          internal/instanceexec/stop_other.go: built only for other systems or tags
          internal/instanceexec/tty_other.go: built only for other systems or tags
          internal/instancefs/instancefs_other.go: built only for other systems or tags
          internal/launchd/activate_darwin.go: built only for other systems or tags
          internal/launchd/activate_darwin_amd64.s: built only for other systems or tags
          internal/launchd/activate_darwin_arm64.s: built only for other systems or tags
          internal/launchd/activate_darwin_test.go: built only for other systems or tags
          internal/layout/journal_other.go: built only for other systems or tags
          internal/layout/links_other.go: built only for other systems or tags
          internal/mailer/keys_other.go: built only for other systems or tags
          internal/maintenanceexec/run_other.go: built only for other systems or tags
          internal/managedboot/admission_other.go: built only for other systems or tags
          internal/managedboot/identity_other.go: built only for other systems or tags
          internal/mediahandler/collect_other.go: built only for other systems or tags
          internal/mediahandler/procs_other.go: built only for other systems or tags
          internal/medialocal/runner_other.go: built only for other systems or tags
          internal/moves/archive/open_other.go: built only for other systems or tags
          internal/moves/archive/sync_other.go: built only for other systems or tags
          internal/ops/flock_windows.go: built only for other systems or tags
          internal/park/local_other.go: built only for other systems or tags
          internal/privatefile/io_other.go: built only for other systems or tags
          internal/proxyproto/peek_other.go: built only for other systems or tags
          internal/relay/race_on_test.go: built only for other systems or tags
          internal/release/consumedfence_other.go: built only for other systems or tags
          internal/release/digestcache_other.go: built only for other systems or tags
          internal/rootaws/credentials_other.go: built only for other systems or tags
          internal/rootaws/open_darwin.go: built only for other systems or tags
          internal/rootfsimage/dir_other.go: built only for other systems or tags
          internal/rootstate/authoritydir_other.go: built only for other systems or tags
          internal/rootstate/authorityfile_other.go: built only for other systems or tags
          internal/rootstate/file_other.go: built only for other systems or tags
          internal/rootstate/link_other.go: built only for other systems or tags
          internal/rootstate/persistent_other.go: built only for other systems or tags
          internal/rootstate/state_other.go: built only for other systems or tags
          internal/safefile/file_other.go: built only for other systems or tags
          internal/safefile/reap_other.go: built only for other systems or tags
          internal/stopevidence/fds_other.go: built only for other systems or tags
          internal/stopevidence/fds_other_test.go: built only for other systems or tags
          internal/stopevidence/holders_other.go: built only for other systems or tags
          internal/stopevidence/reconstruct_other.go: built only for other systems or tags
          internal/team/storelock_other.go: built only for other systems or tags
          internal/team/storelock_windows.go: built only for other systems or tags
          move_offline_run_other.go: built only for other systems or tags
          system_group_other.go: built only for other systems or tags
        
    codehealth_test.go:115: fatal               1094 at  474 sites  log.Fatal*, (*log.Logger).Fatal* and os.Exit in the root package's production files
    codehealth_test.go:115: sleep               1005 at  811 sites  time.Sleep in test files
    codehealth_test.go:115: db-no-context        885 at  703 sites  database calls with no context (dbOpWithoutContext) in production files
    codehealth_test.go:115: host-context         188 at  142 sites  context.Background and context.TODO in internal/host production files
    codehealth_test.go:115: func-lines         18604 at   45 sites  functions over 300 code lines (blank and comment-only lines not counted)
    codehealth_test.go:115: file-lines         30725 at    8 sites  files over 3,000 code lines, counted the same way
    codehealth_test.go:115: release-importers     66 at    1 sites  packages whose production files import internal/release
    codehealth_test.go:119: below the record: file-lines internal/console server.go -: 4200 in the code, the record allows 4210 (make code-health-record lowers it)
--- PASS: TestCodeHealth (110.49s)
PASS
ok  	github.com/carlosframework/platform/internal/codehealth	111.628s
=== code-health-record ===
go version go1.26.10 linux/arm64
code-health record: comparing with the merge base 47b2f5d8638824f76ac373f10495c686cc56131d (main is 47b2f5d8638824f76ac373f10495c686cc56131d)
=== RUN   TestRecordAgainstBase
--- PASS: TestRecordAgainstBase (0.01s)
PASS
ok  	github.com/carlosframework/platform/internal/codehealth	0.008s
code-health record: no line went up without a reason
=== race ===
go version go1.26.10 linux/arm64
GATE_RACE=1 .amadan/test-gate.sh
=== internal_systemd@0 (14 s, from +14 s)
ok  	github.com/carlosframework/platform/internal/systemd	13.353s
=== internal_rootaws@0 (26 s, from +34 s)
ok  	github.com/carlosframework/platform/internal/rootaws	25.454s
=== internal_activator@0 (267 s, from +112 s)
ok  	github.com/carlosframework/platform/internal/activator	265.009s
=== internal_activator@1 (262 s, from +112 s)
ok  	github.com/carlosframework/platform/internal/activator	260.809s
=== internal_activator@2 (278 s, from +112 s)
ok  	github.com/carlosframework/platform/internal/activator	276.213s
=== internal_activator@3 (421 s, from +112 s)
ok  	github.com/carlosframework/platform/internal/activator	419.867s
=== internal_activator@4 (277 s, from +112 s)
ok  	github.com/carlosframework/platform/internal/activator	275.188s
=== internal_activator@5 (312 s, from +112 s)
ok  	github.com/carlosframework/platform/internal/activator	310.450s
=== internal_activator@6 (318 s, from +112 s)
ok  	github.com/carlosframework/platform/internal/activator	316.284s
=== internal_activator@7 (408 s, from +112 s)
ok  	github.com/carlosframework/platform/internal/activator	406.436s
=== internal_edge@0 (84 s, from +134 s)
ok  	github.com/carlosframework/platform/internal/edge	81.407s
=== internal_edge@1 (131 s, from +134 s)
ok  	github.com/carlosframework/platform/internal/edge	128.412s
=== internal_edge@2 (221 s, from +134 s)
ok  	github.com/carlosframework/platform/internal/edge	218.215s
=== internal_edge@3 (131 s, from +134 s)
ok  	github.com/carlosframework/platform/internal/edge	128.030s
=== internal_edge@4 (149 s, from +134 s)
ok  	github.com/carlosframework/platform/internal/edge	146.484s
=== internal_edge@5 (236 s, from +134 s)
ok  	github.com/carlosframework/platform/internal/edge	233.228s
=== internal_edge@6 (213 s, from +134 s)
ok  	github.com/carlosframework/platform/internal/edge	209.427s
=== internal_edge@7 (273 s, from +134 s)
ok  	github.com/carlosframework/platform/internal/edge	270.019s
=== internal_edge@8 (230 s, from +134 s)
ok  	github.com/carlosframework/platform/internal/edge	227.215s
=== internal_edge@9 (268 s, from +134 s)
ok  	github.com/carlosframework/platform/internal/edge	264.666s
=== internal_edge@10 (222 s, from +134 s)
ok  	github.com/carlosframework/platform/internal/edge	218.925s
=== internal_edge@11 (219 s, from +134 s)
ok  	github.com/carlosframework/platform/internal/edge	215.538s
=== internal_edge@12 (243 s, from +134 s)
ok  	github.com/carlosframework/platform/internal/edge	240.101s
=== internal_edge@13 (246 s, from +134 s)
ok  	github.com/carlosframework/platform/internal/edge	242.806s
=== internal_edge@14 (194 s, from +134 s)
ok  	github.com/carlosframework/platform/internal/edge	191.118s
=== internal_edge@15 (229 s, from +134 s)
ok  	github.com/carlosframework/platform/internal/edge	225.655s
=== internal_host@0 (9 s, from +194 s)
ok  	github.com/carlosframework/platform/internal/host	5.023s
=== internal_host@1 (17 s, from +194 s)
ok  	github.com/carlosframework/platform/internal/host	13.186s
=== lists: internal_edge 133 s, internal_activator 111 s, internal_host 194 s, internal_rootaws 33 s, internal_systemd 14 s
=== cpu: the gate used 7634 cpu-seconds in 534 s, about 14.3 of 32 cores; the machine as a whole was 44% busy
=== gitleaks ===
go version go1.26.10 linux/arm64
go: downloading github.com/zricethezav/gitleaks/v8 v8.30.1
go: downloading github.com/rs/zerolog v1.33.0
go: downloading github.com/mholt/archives v0.1.2
go: downloading github.com/BobuSumisu/aho-corasick v1.0.3
go: downloading github.com/gitleaks/go-gitdiff v0.9.1
go: downloading github.com/fatih/semgroup v1.2.0
go: downloading github.com/charmbracelet/lipgloss v0.5.0
go: downloading golang.org/x/exp v0.0.0-20250218142911-aa4b98e5adaa
go: downloading github.com/spf13/viper v1.19.0
go: downloading github.com/spf13/cobra v1.9.1
go: downloading github.com/Masterminds/sprig/v3 v3.3.0
go: downloading github.com/h2non/filetype v1.1.3
go: downloading github.com/hashicorp/go-version v1.7.0
go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
go: downloading github.com/mattn/go-runewidth v0.0.14
go: downloading github.com/muesli/termenv v0.15.1
go: downloading github.com/muesli/reflow v0.2.1-0.20210115123740-9e1d0d53df68
go: downloading golang.org/x/sync v0.11.0
go: downloading github.com/pierrec/lz4/v4 v4.1.21
go: downloading github.com/klauspost/compress v1.17.11
go: downloading github.com/klauspost/pgzip v1.2.6
go: downloading github.com/STARRY-S/zip v0.2.1
go: downloading github.com/bodgit/sevenzip v1.6.0
go: downloading github.com/andybalholm/brotli v1.1.2-0.20250424173009-453214e765f3
go: downloading github.com/dsnet/compress v0.0.2-0.20230904184137-39efe44ab707
go: downloading github.com/minio/minlz v1.0.0
go: downloading github.com/nwaples/rardecode/v2 v2.1.0
go: downloading github.com/sorairolake/lzip-go v0.3.5
go: downloading github.com/therootcompany/xz v1.0.1
go: downloading github.com/ulikunitz/xz v0.5.12
go: downloading golang.org/x/text v0.22.0
go: downloading github.com/spf13/pflag v1.0.6
go: downloading dario.cat/mergo v1.0.1
go: downloading github.com/Masterminds/goutils v1.1.1
go: downloading github.com/Masterminds/semver/v3 v3.3.0
go: downloading github.com/huandu/xstrings v1.5.0
go: downloading github.com/mitchellh/copystructure v1.2.0
go: downloading github.com/shopspring/decimal v1.4.0
go: downloading github.com/spf13/cast v1.7.1
go: downloading golang.org/x/crypto v0.35.0
go: downloading github.com/fsnotify/fsnotify v1.8.0
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/sagikazarmark/slog-shim v0.1.0
go: downloading github.com/spf13/afero v1.12.0
go: downloading github.com/rivo/uniseg v0.2.0
go: downloading github.com/aymanbagabas/go-osc52/v2 v2.0.1
go: downloading golang.org/x/sys v0.30.0
go: downloading github.com/bodgit/plumbing v1.3.0
go: downloading github.com/bodgit/windows v1.0.1
go: downloading github.com/hashicorp/go-multierror v1.1.1
go: downloading go4.org v0.0.0-20230225012048-214862532bf5
go: downloading github.com/subosito/gotenv v1.6.0
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading gopkg.in/ini.v1 v1.67.0
go: downloading github.com/magiconair/properties v1.8.9
go: downloading github.com/pelletier/go-toml/v2 v2.2.3
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/mitchellh/reflectwalk v1.0.2
go: downloading github.com/hashicorp/golang-lru/v2 v2.0.7
go: downloading github.com/hashicorp/errwrap v1.1.0
go: downloading github.com/mattn/go-colorable v0.1.14
self-test: reported source file: a key
self-test: reported source file: a 64-hex key
self-test: reported source file: a census-shaped entry
self-test: reported source file: a key marked gitleaks:allow
self-test: reported source file: a test's fake value outside tests
self-test: reported allowed file: another key beside its allowed value
self-test: reported a tracked file named gitleaks-gate-sentinel.env
self-test: reported 100 near misses of the names notscanned.go lists
self-test: skipped  the 33 files notscanned.go lists
self-test: refused  a notscanned.go entry git does not track
self-test: refused  a config that does not parse
self-test: refused  a config that does not exist
self-test: refused  a missing gitleaks binary
self-test: 6 planted keys reported, 134 tracked files judged, 3 broken setups refused
gitleaks: scanned 11790 tracked files; 33 not scanned, by exact path (scripts/gitleaks-gate/notscanned.go)
gitleaks: clean
diff --git a/docs/superpowers/specs/2026-11-25-hub-ha-design.md b/docs/superpowers/specs/2026-11-25-hub-ha-design.md
new file mode 100644
index 000000000..94eeea255
--- /dev/null
+++ b/docs/superpowers/specs/2026-11-25-hub-ha-design.md
@@ -0,0 +1,375 @@
+# Hub HA: fleet traffic through hub restarts and hub loss (#1388, #908)
+
+Design, 2026-11-25, **rev 3.2, APPROVED** by Paul on 2026-11-25 (all five §6 recommendations, relayed by agent manager 8a3d302 and by Tito). Asked for by agent manager 8a3d302 with Paul's go, relayed through Tito. Branch `design-hub-ha`, cut from `origin/main` at bac71e00. Nothing here is built. Review budget: at most three Astra rounds (AGENTS.md stopping rules); a P1 in round three means cut scope and go to Paul.
+
+- **Rev 1** (dfd46a8e) was reviewed by Astra round 1 (`CODEX-FINDINGS-hub-ha-R1.md`): NOT READY, 6 P1 and 5 P2. **Rev 2** answers all eleven; §7 maps each one. The largest change is §2: on a W6-armed hub the listeners close at the **start** of W6's 30 s connection wait, so today's gap through other edges is about a minute on dev, not seconds. Part 1 gains S0 (a hub keeps accepting through its drain) and moves S3's hold inside connection acquisition. Part 2 drops the hub-to-hub forward for per-channel claims and the §25 handover answer, signs the hub view, and gives every hub's fleet credentials a lease.
+- **Rev 3** answers Astra round 2 (`CODEX-FINDINGS-hub-ha-R2.md`, 36f9a498): NOT READY, 2 P1 and 4 P2; R1-3, R1-5, R1-7 to R1-11 closed. Revocation and stale-hub reachability drew findings in both rounds, so under stopping rule 2 rev 3 **narrows** instead of adding mechanism: the lease is cut, and a revocation stays pending until every hub in the signed hub set acknowledges it (§4.4); Part 2 serves only fleets whose boxes are all at the floor, and the hub handover and client forward are cut (§4.5). S3's dialer no longer switches destination (§3.5), and S0's drain cuts only requests admitted before it (§3.2). §7 maps each finding.
+- **Rev 3.1** applies Astra round 3, the last allowed (`CODEX-FINDINGS-hub-ha-R3.md`, e81d2798): NOT READY on one P1 and one P2; everything else closed. The P2 is fixed (§3.5). The P1 is in the stale-reachability family for the third time, so it goes to Paul (§6 Q5) with Astra's recommended narrowing of H-3 already written in (§4.11). No fourth round.
+
+Line citations are to `origin/main` at bac71e00.
+
+The spec has two parts:
+- **Part 1 (short term, small):** a planned restart of the hub's edge drops no fleet request. It keeps one hub per region.
+- **Part 2 (the real fix):** two or more hubs per region, so losing a hub, planned or not, leaves fleet apps serving.
+
+## 1. The problem
+
+Every fleet box dials one reverse tunnel, to the region's hub: the console's box, whose edge has `CARLOS_TUNNEL_HOST` set and `CARLOS_FLEET` unset (`internal/edge/fleetforward.go:17-19`). Only the hub serves forward rows and replica-set rows (`fleetforward.go:72-73,89-90`), and only the hub publishes those names in its edges file (`internal/host/edgesfile.go:682-685`). Every other edge sends a fleet request to the hub by backhaul (`internal/edge/edge.go:4596`), dialling the hub's address directly on 443.
+
+So the hub's edge process is a single point of failure for every fleet app in the deployment. On Tito's v0.43.2 roll (2026-11-25 02:15Z) the IE hub's edge restart took billing.tito.io out for 15 s through every edge, UK included, while both copies (box-a, box-c) stayed healthy (#1388). Classic and Pro move to Tito's production fleet next. #908 asks for the same redundancy for the console, the home box's own apps and fleet entry.
+
+## 2. Today's gap, measured
+
+### 2.1 The dev hub (sophie), six restarts on 2026-11-24
+
+Read-only journal of `carlos-edge` on sophie (i-05498eada6f0afd23). Sophie has W6 armed for two target groups and `CARLOS_GROUP_ADMISSION=1`. Every drain report said `1 cut` or `2 cut`, which means W6's 30 s connection wait (`internal/host/ingressdrain.go:51`) ran to its bound. W6 closes the listeners at the **start** of that wait and logs "drain done" at its end (`ingressdrain.go:399`), so the listeners closed about 30 s before the logged time.
+
+| Restart | Drain began | Listeners closed (≈ done − 30 s) | Drain done | New edge started | Tunnel back | Tenant admission open |
+|---|---|---|---|---|---|---|
+| 10:32 | 10:31:39.05 | ≈10:32:12 | 10:32:42.18 | 10:32:43.04 | 10:32:44.25 | 10:33:13.74 |
+| 10:48 | 10:47:02.84 | ≈10:47:38 | 10:48:08.01 | 10:48:08.03 | 10:48:09.22 | 10:48:38.66 |
+| 12:31 | 12:30:20.32 | ≈12:30:56 | 12:31:25.51 | 12:31:26.58 | 12:31:27.71 | 12:31:57.32 |
+| 12:46 | 12:45:44.44 | ≈12:46:20 | 12:46:49.65 | 12:46:51.00 | 12:46:52.21 | 12:47:21.73 |
+| 13:01 | 13:00:56.15 | ≈13:01:29 | 13:01:59.30 | 13:01:59.32 | 13:02:00.51 | 13:02:30.05 |
+| 18:51 | 18:50:20.33 | ≈18:50:56 | 18:51:25.52 | 18:51:27.33 | 18:51:28.46 | 18:51:57.99 |
+
+Admission waited on `Reconciled, RolePublished, TerminationStarted, hosting, activator` every time.
+
+Reading it, for a fleet request that enters through another edge:
+1. **About 31 to 33 s refused.** From the listener close to the new process binding, every hop is refused, and the sender answers 502 (§2.3). Tenant units stop and the agent shuts down inside this window too; on dev that took about 1 s (drain done to new start), but its budgets are 18 s per tenant unit (`internal/host/units/carlos-instance@.service:14`) and 90 s for the agent's duties and activator (`internal/host/agent.go:1469`).
+2. **Tunnels come back fast:** about 1.1 s after start. The box's backoff starts at 250 ms (`internal/tunnelclient/tunnelclient.go:42-43`) and the hub loads fleet credentials before it listens (`edge.go:1060,1541`).
+3. **Then about 30 s more.** Until admission opens, sophie's edges file says `booting, admitted=false` (`internal/host/group_admission.go:150`). Every home claim needs `HomeEligible()` (`internal/edge/homemap.go:1070`, `internal/edgesfile/admission.go:19-27`), so senders treat the fleet names as having no eligible server. Locally, forward and replica-set rows are not exempt from tenant admission (`internal/host/group_admission.go:100` exempts only platform and unit-backed rows), so the hub itself answers 503 `Retry-After: 10` (`internal/edge/group_admission.go:10-24`). A fleet row needs neither the activator, a lease nor a reconcile.
+
+So a dev hub restart costs fleet traffic about **a minute** through other edges. This is read from the code and the journal; no fleet probe ran during these restarts. The witness (§3.9) counts it at a client before and after.
+
+### 2.2 Tito's hub (no NLB, no W6, no tenant admission)
+
+Tito's 15 s is not visible from here. Reconstructed from code, to be confirmed by Tito's witness:
+- **SIGTERM closes the listeners at once,** then waits up to 10 s for in-flight requests (`edge.go:5236-5248`). A tunnel is a hijacked connection, so `Shutdown` neither waits for it nor closes it; it dies at process exit. Any long response through the hub (a proxied SSE stream, a slow download) makes the wait the full 10 s.
+- **Agent shutdown and restart:** about 1 s typical (`carlos-edge.service`, `Restart=always`, `RestartSec=1`).
+- **Tunnels:** about 1 s.
+- **Replica copies:** a fresh process has no probe history. A copy is live after two passing probes one second apart (`internal/edge/replicaprober.go:18-21`). Until then a replica-set row answers 503 `Retry-After: 2` (`internal/edge/replicaproxy.go:57-60`). The fallback to the previous forward row's box needs a previous map entry, which a new process does not have.
+
+About 10 + 1 + 1 + 2 = 14 s, which matches the 15 s Tito saw.
+
+### 2.3 What each client gets during the gap
+
+| Where the request entered | Answer today |
+|---|---|
+| Another edge (another region, a region HA member, a fixed box) | **502 with no `Retry-After`** while the hub refuses (`internal/edge/backhaul_holder.go:298-316`; the alternative lookup finds no second claimant for a fleet name). While the hub's file says booting, no eligible server. Then whatever the hub answers. |
+| The hub's own listener (DNS straight to the hub's address) | connection refused |
+| The hub, after start, no tunnel yet | 503 `Retry-After: 2`, "fleet unreachable: no connected box" (`edge.go:4337-4340`) |
+| The hub, after start, copies not yet risen | 503 `Retry-After: 2`, "no healthy copy is available" |
+| The hub, admission closed | 503 `Retry-After: 10` |
+
+Nothing on the hub waits for a tunnel to come back, and nothing on a sending edge waits for the hub. W6 withdraws the hub from the NLB, but hops from other edges dial the hub's own address and never read its health answer.
+
+## 3. Part 1: a hub restart that drops no fleet request
+
+### 3.1 The critical path, and the guarantee
+
+For a planned restart of the hub's edge (a roll, `carlos system apply` or `rollback`, a host.env change, `systemctl restart`), the time during which a new fleet request cannot be served is:
+
+> **T = (listener closed → new process accepting) + (accepting → the request's tunnel back and its copy live)**
+
+Part 1 makes the first term as short as the process restart itself (S0, S4), makes the second about 1 to 2 s and waits through it (S2), keeps fleet names eligible while the new process boots (S1), and makes senders wait through T instead of failing (S3).
+
+**Guarantee.** A fleet request gets no error, and waits about T, when all of these hold:
+- the fleet box serving it stays connected before and after the restart, and its copy was healthy before;
+- it entered through another edge, through the NLB with W6 armed on the hub, or (with S4) through the hub's own listener;
+- T is under the **hold budget: 20 s at the sender plus 10 s at the hub, inside the hop's 30 s response-header timeout** (`edge.go:4580-4581`). On dev T is expected to be 2 to 4 s; on Tito about 12 s without S4 (the 10 s in-flight wait at SIGTERM, §2.2) and 2 to 4 s with it;
+- it is not already in flight through a tunnel when the old process exits. That keeps today's rule: the 10 s drain, then cut and never retried.
+
+Outside the budget, the answer is a retryable 503, never a bare 502. An unplanned hub death is not covered; it is Part 2's job.
+
+### 3.2 S0: a hub keeps accepting through its W6 drain
+
+W6 step 3 (`CloseIngress`, `internal/edge/ingressdrain.go:147`) closes the public listeners and then waits up to 30 s. On a hub that refuses every hop for the whole wait (§2.1). On a box where `TunnelsArmed` holds, step 3 changes:
+- it does **not** close the listeners; they close at SIGTERM, as on a box without W6;
+- it still sends `Connection: close` on every response, closes idle keep-alives and edge-held SSE streams at an event boundary (`closeAllHeld`), and waits up to 30 s for in-flight requests;
+- **the drain cohort** (R2-new-2): at the bound, `cut()` (`internal/edge/hadrainconns.go:190`, called at `ingressdrain.go:190`) cuts only requests admitted **before** step 3 began. A request admitted after that, fleet or not, is left to SIGTERM's own drain, so a short request arriving just before the bound is not cut at once. The tracker records each request's admission time against the step-3 boundary; on a box where S0 does not apply, nothing is admitted after the boundary, so behaviour is unchanged;
+- the 3-minute self-exit after step 3 stays.
+
+After step 2 the NLB sends no new flows, so what still arrives is hops from other edges and direct clients, which the hub can serve: fleet traffic does not depend on the tenant units that stop next. Requests for the hub's own tenants (the console, home-box apps) that arrive during the tenant stop get today's answer for a stopping host; those hosts are single-box and down for the restart anyway. W6's guarantee for NLB flows is unchanged, and a late NLB flow is now served rather than refused.
+
+### 3.3 S1: fleet rows ignore tenant admission, locally and in the edges file
+
+Two halves, both needed (R1-1):
+- **Local.** `fixedAdmission.exempt` (`internal/host/group_admission.go:100`) returns true for a row the fleet arm serves on a hub: a forward row or a replica-set row (`FleetBoxes != ""`) that `FleetServeEligible` accepts. Group members never take it (`a.group` stays authoritative).
+- **Published.** The edges file gains a box-level field, `fleet_serving: true`, written by a hub whose fleet state is loaded (§4.4: for the console's box, from its first Reload). A fleet claim's eligibility is `fleet_serving && addr != ""`, **not** `HomeEligible()`. `HomeEligible` stays the rule for every other claim, so ordinary tenants keep their admission. The booting write that admission already makes (`RolePublished`) carries `fleet_serving`, so a restarting hub's fleet names stay eligible throughout.
+- **Alternatives** (R2, R1-1 remainder). `backhaulAlternative` validates a candidate with `boxInRegionSnapshot`, which needs `HomeEligible()`, a fresh region HA headroom generation, the same data bucket and placement (`internal/edge/holderview.go:85-100`). Those are tenant-holder checks; a booting hub, or a hub in a flat region with no headroom record, fails them. For a fleet claim the candidate check is the fleet rule instead: same name authority (owner, class, target), `fleet_serving`, an address, and the same region as the claim. The owner and address checks stay; the holder checks do not apply.
+
+Why it is safe: tenant admission protects lease acquisition, local wakes and placement on a box that has not finished its first reconcile. A fleet row has none of these. Its readiness inputs are the routing map and fleet credentials, loaded before the listeners bind (`edge.go:4947,5314-5341`), and the tunnel, which S2 waits for.
+
+Test: the real path from the hub's edges-file writer through a sender's home map to a request, during startup, with admission closed.
+
+### 3.4 S2: the hub waits for a tunnel and a copy instead of refusing
+
+A **warm-up window** starts when the edge starts serving and lasts 60 s. In it, a request the fleet arm would answer "no connected box" or "no healthy copy" is **held**, at the front of the fleet arm, before any body preparation (R1-10: `replicaReplayableBody`, `replicaproxy.go:96`, reads known-length bodies up to 64 KiB, so the wait must come first):
+- it waits for the fleet's channel to register (forward row) or a copy to rise (replica-set row), or the bound;
+- the hub reads none of its body while it waits;
+- then it is served by a fresh selection: a new prober snapshot, then body preparation as today. At the bound it gets today's 503 `Retry-After: 2`.
+
+A copy whose channel registered inside the window rises on its **first** passing probe instead of two. A fresh channel and a passing probe both prove the copy answers now; the second probe guards against flapping, and a new process has no history of it. Outside the window the rise stays at two.
+
+| Bound | Value | When exceeded |
+|---|---|---|
+| Hold per request | 10 s, or the hop's remaining header time less 2 s if shorter | today's 503 `Retry-After: 2` |
+| Held per host | 64 | the new request gets today's answer |
+| Held per hub | 1,024 | the same |
+| Warm-up window | 60 s from first serve | no holds |
+
+One place: `fleetWarmHold`, called first in `fleetProxy` (`edge.go:4289`) and in the replica arm before `replicaReplayableBody`. Registration (`tunnel.go:326`) and the prober's rise signal a per-fleet condition.
+
+### 3.5 S3: a sending edge waits inside connection acquisition
+
+R1-2: on a dial failure Go's transport closes the request body (`net/http/transport.go`, `req.closeBody()` on connection-acquisition failure), and re-entering `backhaulAttempt` spends an attempt (`backhaul_holder.go:209`). So the hold cannot be a retry of the request. It is a wait **inside the dial**: the backhaul transport's dialer itself retries, and the transport sees one connection or one final error.
+
+- The backhaul dialer, on a refused connection, a reset before the TLS handshake ends, or the 5 s dial or handshake timeout, does not return. It waits 250 ms, 500 ms, then 1 s between tries, and re-dials **the same address**. It never switches destination (R2-new-1: the cached transport, its connection pool and the attempt's admission all belong to the original destination, `edge.go:4630,4699,4732`). Moving to another box is the attempt layer's job (Part 2, §4.5).
+- It gives up at the **sender hold bound, 20 s** from the first failure, or when the request's context ends, or, in Part 2 only, at once when another eligible claimant exists (§4.5).
+- The request is one attempt throughout: the attempt counter is untouched and I4 holds. No byte of the request has been written and the body has not been read, because the transport writes the request only on a connection it has. `Expect: 100-continue` is unaffected: the inbound server sends `100` only when the handler reads the body.
+- **Body ownership at the final failure** (R2, R1-2 remainder). The transport closes the outbound body when acquisition fails for good (`net/http/transport.go`), and today's `watchBody` passes that close to the inbound body (`replay.go:133`), whose close can block draining a stalled upload (`transfer.go`). For a backhaul attempt the outbound body becomes a wrapper whose `Close` does **not** reach the inbound body and which counts bytes read. On the final failure the edge answers **503 `Retry-After: 5`** through `edge.Unavailable` with a new site name, `backhaul-unreachable` (instead of today's bare 502), and ends the exchange through the bounded cleanup the edge already uses for an early answer, `finishEarlyAnswer` (`internal/edge/replay.go:167`): `Connection: close`, a read deadline `exitLingerBound` ahead, flush, then discard the client's body until it ends or the deadline passes, before the handler returns. (A response `Connection: close` alone is not enough: once the handler returns, net/http drains the body with no bound, `net/http/server.go`.) So a refused upload releases its connection within a bounded time.
+- Bounds: 64 waiting per destination host, 1,024 per sending edge. Over a bound, the new request gets the 503 at once. Held counts are logged once per episode per destination.
+
+This applies to every backhaul, not only fleet names. A single-claimant name whose box refuses connections now gets a wait of up to 20 s and then a retryable 503, instead of an instant bare 502 (Q2). A fixed box's planned restart (leo) also stops costing hops.
+
+Tests: slow, chunked and `Expect: 100-continue` POSTs held across a refused period, delivered once with the body intact; a cancelled client mid-hold; a box that never returns gives the 503 at 20 s even when the client's body never arrives (a stalled chunked upload), and the handler returns and the connection closes within the cleanup bound; two path routes sharing one wire hostname each keep their own destination; a connection that succeeded and then failed is not held (today's rules).
+
+### 3.6 S4: the hub's own listener survives the restart (socket handoff)
+
+S0 and S3 cover traffic from other edges and the NLB. A client whose DNS points straight at the hub (Tito today: no NLB) still meets a closed listener between SIGTERM and the new process's bind, about 12 s on Tito. S4 closes that.
+
+- **Two socket units** (R1-11: `FileDescriptorName=` names every descriptor of one unit): `carlos-edge-http.socket` (`ListenStream=80`, `FileDescriptorName=http`) and `carlos-edge-https.socket` (`ListenStream=443`, `FileDescriptorName=https`), each `Service=carlos-edge.service`, `Backlog=4096`. The edge takes its two listeners from `LISTEN_FDS` by name when present, and binds itself otherwise, so a box without the units is unchanged (`edge.go:5196`).
+- During a restart the sockets stay open in systemd. New connections complete the TCP handshake in the kernel and wait in the accept queue for the new process. Clients see a pause.
+- On SIGTERM the old process stops accepting and closes edge-held SSE streams at an event boundary **before** the 10 s in-flight wait, so a long stream no longer holds the wait at 10 s.
+- **The queue does not shorten the agent's own shutdown** (R1-3): duties and the activator still have their 90 s budget. A queued connection waits through it; a sender's TLS handshake times out at 5 s and S3's dialer re-dials. The pause is T, and the guarantee in §3.1 states the budget, not a promise that shutdown is short.
+- W6 (S0 applies on a hub, so `CloseIngress` does not close listeners there; on a non-hub fixed box it closes the process's copy and systemd's stays open, so a late NLB flow queues).
+- PPv2 wraps an inherited listener the same way it wraps a bound one.
+- **Rollback.** A binary below the S4 floor binds `:443` itself and fails while a socket unit holds it. So the root installs and enables the socket units only when it applies a release at or above the floor, and `rollback` to a release below the floor stops and disables both socket units first, then swaps the binary, in the one root verb. The floor goes in `release` beside the other floors.
+- **Tests on real systemd** (the root runner): first activation, restart under load, rollback below the floor, and the two named descriptors.
+
+S4 is the largest piece of Part 1 and matters only where clients reach the hub directly. It is listed separately in §5 so Paul can take Part 1 without it; Tito would then put its fleet app names on its NLB (#908's draft carlos-infrastructure #58) or the UK edge.
+
+### 3.7 Request budget
+
+No new store requests: S0 to S4 are memory, process and unit changes. S3's re-dials go to boxes, not to S3. Steady state per box per day with nothing changing: **0 additional requests.** A store-call counting test covers the hold paths.
+
+### 3.8 Tests
+
+- S0: a hub's W6 drain keeps accepting and serves a hop arriving during the 30 s wait; a non-hub fixed box still closes.
+- S1: as in §3.3; a group member still refuses; an ordinary tenant row on a booting hub still gets 503 and stays ineligible to senders.
+- S2: served on registration; the bound; caps; no body read while held (a POST whose body is blocked until a copy rises); the one-probe warm-up rise; two probes outside the window.
+- S3 and S4: as in §3.5 and §3.6.
+- `unavailable_guard_test.go` gains the new site names.
+
+### 3.9 Dev witness (after a release, in a booked window on #421)
+
+Probes from an in-region host, one address only (RELEASE-ROLL-CARD rule), about 20 requests a second each, against a fleet app on dev with two copies and against a forward-row app:
+- **P1** through leo's edge (backhaul);
+- **P2** through the IE NLB;
+- **P3** straight at sophie's EIP (only with S4).
+
+First a control on the current release, three restarts of sophie's edge, to count today's gap per probe. Then the same on the Part 1 release. Pass: 0 non-2xx, 0 timeouts, longest request under 10 s on dev, every POST landed exactly once. Tito repeats P1 and P3 on staging before production.
+
+### 3.10 Floor and rollout
+
+S0, S1 and S2 act when the hub runs the release; S1's published half acts on senders that read `fleet_serving`, so senders roll first. S3 acts on each sending edge as it gets the release. Order: dev boxes, dev console box (the hub), witness, flagship, Tito staging, Tito production (Tito rolls its own). No host.env changes; S4's units are installed by the root.
+
+## 4. Part 2: more than one hub per region
+
+### 4.1 The model
+
+A region has a **hub set**: two or more boxes, each a hub by today's definition. Every fleet box at the Part 2 floor keeps **one tunnel to every hub** in its home region. A hub publishes a fleet name only while it can serve it over its own tunnels, and senders choose among the hubs that publish it. So no tunnel or route has a single owner to fail over: losing a hub removes one of several equal paths.
+
+Rejected:
+- **One tunnel per box, failing over between hubs:** the publication lag of "which hub has the box now" is the outage.
+- **Non-hub edges dialling fleet boxes directly:** fleet boxes accept no inbound connections (#53).
+- **Hubs behind the NLB for tunnels:** the NLB picks the target per flow, so a box cannot reach each hub once.
+- **A hub forwarding a hop to another hub** (rev 1 §4.6): a hop cannot be forwarded again under I4 (R1-6). Per-channel claims (§4.5) make it unnecessary.
+
+### 4.2 Which boxes are hubs
+
+v1: fixed boxes with elastic IPs that the operator names. On dev, sophie and leo; for Tito, the IE home box plus one new small box in IE in another AZ. Group members are not hubs in v1: their public addresses are not stable.
+
+A hub that is not the console's box runs no tenants. It is set up with `CARLOS_POOLS=@none`, a new reserved token that serves no pool (`provision.ParseBoxPools`, `internal/provision/reconcile.go:3523`), so it adopts no tenant record, flat or nested. This works without region HA, so Tito's flat production can have two hubs before any HA migration.
+
+### 4.3 Fleet boxes reach every hub
+
+- The tunnel hostname resolves to every hub's address. That record is operator DNS (no code here writes it; `infra/remote-host.md`). The operator adds one A record per hub.
+- The box resolves the name on each dial pass and runs **one `tunnelclient.Loop` per address**, each with today's backoff and handshake bounds, TLS server name = the tunnel hostname. Every hub holds that certificate through the shared certificate mirror.
+- The hub's `101` answer adds `Carlos-Hub: <box ref>`. The box keys its loops by hub ref, so two addresses of one hub collapse to one tunnel.
+- The box re-resolves every 60 s, so a hub added or removed in DNS is picked up within a minute plus the record's TTL. A loop whose address left DNS ends with its connection.
+- The box's status reports each hub; "degraded" means some hubs but not all.
+- Each hub enforces its own upgrade cap (128 per channel), so a box may carry up to 128 upgrades per hub.
+
+**Floor gate** (R2, R1-6 remainder). A box below the floor keeps one tunnel and moves between hubs whenever its tunnel drops, which no sender can follow in time. So Part 2 is all or nothing per region: the console adds a second hub to the signed hub set (§4.4) only while every active fleet box of that region reports the floor in its registration caps (`Carlos-Tunnel-Caps` gains `multihub/1`), and lists the boxes below it otherwise. Once the set has two hubs, every hub refuses a registration without `multihub/1`, and system status lists that box. The release floor for fleet boxes keeps a box from being rolled below it while its region has more than one hub. A fleet box's install takes the current release, so new boxes are at the floor.
+
+### 4.4 Every hub has the fleet state, signed
+
+The fleet state a hub needs lives today only in the console box's registry, written by the console (`internal/console/fleets.go:258`, `hostsused.go:386-435`, `managedhistory.go:111`): the fleets table, fleet boxes with the sha256 of each bearer token (the credential set for `SetDynamicAuth` and the store door), and replica assignments. Forward rows are already derived on any hub by its bindings pass (`internal/host/fleetbind.go`).
+
+**The hub view.** After every committed change to those tables, the console publishes `control/fleet-hub/view.json` under a new change-index scope. It holds, per fleet: owner, the active boxes with label and token hash, and each replica host's assignment, plus a monotonic revision and a timestamp. Every hub that is not the console's box folds it into its registry, as the only writer of those tables there.
+
+- **Authority is a signature, not a storage path** (R1-5). Box roles can write deployment-wide objects (`infra/modules/region-host/main.tf:184`), and legacy direct-S3 fleet credentials exist (`internal/edge/replicaconsole.go:25`), so the object's location proves nothing. The console signs the view with an Ed25519 key that only the console holds (in its secrets, beside its other keys). Each extra hub carries the public half in host.env, `CARLOS_FLEET_HUB_VIEW_KEY`. A hub folds only a view whose signature verifies and whose revision is higher than the last it folded; anything else is logged and ignored.
+- **Token hashes in the store** are sha256 of 256-bit random tokens. They cannot be reversed; the plaintext never leaves the console's mint.
+- **The hub set is in the signed view.** The view names the hubs allowed to fold it (box refs). A hub folds only a view that names it, so a box the console does not know about never holds fleet credentials. The operator adds a hub with a console command (`carlos fleets hubs add <box>`, refused under the floor gate, §4.3) before its DNS record.
+- **No lease** (R2: rev 2's lease renewed from the change index, which is unsigned and best effort, `internal/release/changeindex.go:35,185`, so it proved nothing). Freshness of the view affects only how soon a new credential or assignment reaches a hub, never whether a revoked one is dropped.
+- **Revocation waits for every hub.** When the console removes or rotates a fleet box's credential, it updates its own table, publishes the new view, then sends a signed `/.carlos/fleet-revoke` hop (mesh key, bound to method, path, body and time, as `/.carlos/ha-take` is) to every other hub in the hub set. A hub applies it atomically under the tunnel hub's lock: it removes the credential from the table that registration **and** the store door authenticate against (`tunnel.go:473`), records the revision, and only then closes the matching tunnel (`tunnel.go:624`). A later fold of an older view cannot restore it. The revocation is **pending** until every hub in the set has acknowledged it: the console retries each unacknowledged hub every 10 s, the command and system status say "revoked on A; pending on B since <time>", and the fleet box stays listed as revoking. If a hub stays unreachable, the operator removes it from the hub set (`carlos fleets hubs remove <box>`, which re-signs the view without it and needs no acknowledgement from it) and stops the box or removes its DNS record. A removed hub cannot fold a view that does not name it, and its old credentials die with its process.
+
+**H-1:** once a revocation is reported complete, no hub in the hub set admits the credential, for registration or the store door. While it is pending, exactly the hubs named as pending may.
+
+### 4.5 Hubs publish only what they can serve
+
+Each hub's edges file publishes a fleet name only while it can serve it over its own tunnels:
+- a forward row: when the row's bound box (or, unlabelled, any box of the fleet) is connected to this hub;
+- a replica-set row: when at least one assigned copy's box is connected to this hub.
+
+Fleet claims are unstamped, like a static site's (`homemap.go:1140-1146`: unstamped duplicates are normal), with S1's `fleet_serving` eligibility. Name authority already accepts several claimants of a name with the same owner, class and target, and `backhaulAlternative` picks another eligible claimant (`backhaul_retry.go:54-93`). Among eligible hubs a sender prefers its own region and AZ, then spreads by a rendezvous hash of the host, so one hub's restart moves only its share.
+
+A sender's view lags a hub's file by up to the home map's poll (30 s, plus a change-watch). Two stale cases, each with one answer:
+- **The hub went away.** On the first refused connection, when the fleet rule (§3.3) finds another eligible claimant, S3's dialer gives up at once instead of holding, and the existing connect fallback (`backhaul_holder.go:298-316`) sends the request to that claimant as its **second and last attempt** (I4 holds). This fallback is allowed for any body, streamed included, exactly when S3's body wrapper shows zero bytes read: nothing reached any box and nothing of the body was consumed. Otherwise it keeps today's replayable-only rule. With no other claimant, S3 holds as in Part 1.
+- **The hub is up but the box's tunnel to it is down for a moment** (a reconnect after a blip). Under the floor gate every box keeps a tunnel to every hub, so this is a reconnect of a few seconds, not a box that moved. The hub holds the request with S2's hold (10 s, before any body read) until the tunnel returns, then serves it, or answers today's 503 `Retry-After: 2`. There is no handover answer and no hub-to-hub forward (cut in rev 3: both drew findings twice).
+
+The builder confirms with a table test that two hubs' fleet claims resolve `NameDialable` with both eligible under the fleet rule, that a hub that loses a box's tunnel for longer than the hold drops the name on its next write, and that withdrawing one hub's file leaves the other serving.
+
+### 4.6 Replica routing with several hubs
+
+Each hub runs its own replica prober over its own tunnels and its own round robin (`replicaprober.go`, `replicaproxy.go`). Copies see one probe a second per hub (tunnel traffic, no store requests). GET and HEAD retries stay within one hub. Placement and assignment stay the console's; extra hubs read the assignment from the view.
+
+### 4.7 The control doors fleet boxes use
+
+- **Arbiters that live in a hub's memory** (added rev 3.2): any hub-side decision that must be made once per fleet app, such as #1442's update turn (`internal/edge/updateturn.go`, one turn per app at a time), is made only on the console's hub. Each such door sits behind one predicate (for #1442, `turnAuthority()`), true on every hub in Part 1; Part 2 makes it true only on the console's box and relays the door there from other hubs, as below.
+
+- **The store door** (`internal/edge/storedoor.go`) is served by any hub with its own role and holds no state; it authenticates against the same credential table as registration, so a revocation covers both (§4.4).
+- **The replica coordinator door** (R1-7). The console's box proxies it to its loopback console (`CARLOS_REPLICA_CONSOLE_ADDR`, which accepts only a literal loopback address, `replicaconsole.go:52`, and speaks plain HTTP to it, `:134`). An extra hub does not proxy to the console itself. It relays the call to the **console box's edge** over the ordinary signed backhaul (TLS, mesh-signed hop to that box's address), and that edge applies its own coordinator door and loopback proxy as today. The loopback rule and its guarantees are unchanged; the fleet box's bearer token only ever travels inside TLS.
+- **Interactive sessions and other console doors** stay on the console's box, relayed the same way where a fleet box calls them through the tunnel host.
+
+When the console's box is down, coordinator calls fail on every hub, as today; serving does not depend on them.
+
+### 4.8 Planned and unplanned hub loss
+
+- **Planned restart of one hub:** Part 1 applies to it, and most senders do not notice: at the first refused connection S3's dialer moves to another claimant. Its tunnels end at exit; fleet boxes keep serving through the others and re-dial it with today's backoff.
+- **Hub death:** senders move away at the first refused connection and mark it suspect for 60 s at a time (`backhaul_retry.go:11`). Its edges file ages out of the claim set by the normal rule. A hung hub (accepts, never answers) costs requests already sent to it up to the 30 s header timeout, as any hung box does today.
+- **The console's box dies:** fleet apps keep serving through the other hubs, which hold their last folded view; nothing expires. A revocation cannot complete while the console is down. The control plane (deploys, scaling, the coordinator, new fleet boxes) waits for the console. Console HA is region HA G6's pool console path, not this spec.
+
+### 4.9 What this gives #908
+
+| #908 ask | After Part 2 |
+|---|---|
+| 1. The console and the home box's apps on more than one box | **Not covered.** Console HA is G6. Home-box apps (Tito Go) stay single-box until the existing-host migration slice (region HA N-HA7). |
+| 2. Existing hosts and fleet traffic entering through any box | Fleet traffic: yes, through any edge and any hub, surviving one hub's loss. Existing placed hosts already enter through any edge by backhaul; their home box stays their single point. |
+| 3. Migration path for a flat home region | Part 2 needs no HA migration: add one fixed box with `CARLOS_POOLS=@none`, `CARLOS_TUNNEL_HOST` and `CARLOS_FLEET_HUB_VIEW_KEY`, add it to the hub set (`carlos fleets hubs add`), then its A record. No moves or imports are refused while it runs. |
+| 4. DNS on the NLB | Unchanged: the hairpin redirect (region HA A21) covers a box reaching its own NLB. Part 2 does not need fleet app names on the NLB. |
+
+### 4.10 Request budget
+
+Per extra hub, steady state with nothing changing:
+- **The hub view:** one GET per change, seen through the change-index read the box already makes, plus the 30-minute backstop's conditional GET (48 a day). About **50 requests a day**.
+- **The fleet bindings pass** (R1-9): today it runs every 5 to 6 minutes, ungated (`internal/host/agent.go:4673`): one LIST of `fleets/`, one LIST per fleet, one GET per binding (`fleetbind.go:269`). That is 288 × (1 + F + B) a day for F fleets and B bindings, about 860 for one fleet with one binding, and it already costs that on today's single hub. Part 2 would multiply it by the number of hubs, so Part 2 first puts it behind a change-index scope that every binding write bumps (the store door's writes go through the hub's store wrapper, which bumps the index; the builder confirms, or adds the bump), with the 30-minute backstop. After that: about 48 × (1 + F + B) a day per hub, about **150 for one fleet with one binding**.
+
+A store-call counting test runs an idle extra hub for a simulated day and pins both.
+
+### 4.11 Tests
+
+- Seeded simulation of two or three hubs and several fleet boxes under restarts, deaths, store outages, revocations, hub set changes and folds. Invariants, each with a mutation that must fail the sweep:
+ - **H-1** as in §4.4;
+ - **H-2** a request is forwarded at most twice overall, and never after arriving as a hop;
+ - **H-3** (narrowed in rev 3.1, R3-1) under the floor gate, with one hub down, a request for a fleet is served within the hold budget when the sender's home map **already lists** a surviving hub's eligible claim for the name and that hub has the serving box's tunnel within its 10 s hold, unless the request's first attempt had already reached the dying hub. A claim published within the sender's last home-map poll (up to 30 s; in steady state every box is connected to every hub, so this is a box that connected to a hub less than 30 s before the other hub died) may not be listed yet; such a request gets the 503 at the hold bound. The simulation includes that publication interval as an explicit, expected-failure case.
+- Tunnel client: one loop per resolved address, dedupe by `Carlos-Hub`, DNS changes picked up.
+- Edges: per-channel publication, unstamped claims, the fleet alternative rule (a booting hub and a flat-region hub are valid candidates), sender preference and spread, a streamed POST falling back on a zero-bytes-read connect failure as its second attempt and never as a third.
+- Hub view: an unsigned, wrongly signed, lower-revision or not-naming-this-hub view is refused; a revoke cannot be undone by an older fold; the store door refuses a revoked credential; a revocation stays pending while one hub is unreachable and completes when it is removed from the hub set; the floor gate refuses a second hub while a box is below the floor.
+- `CARLOS_POOLS=@none` adopts no record.
+- Census card for `control/fleet-hub/view.json` (writer: the console; readers: hubs, by signature).
+
+### 4.12 Dev drill
+
+Add leo to dev's hub set. Probes as §3.9 P1 and P2. Pass:
+1. restart sophie's edge, then leo's: 0 errors;
+2. stop sophie's EC2 instance (the console's box) under load: fleet apps serve through leo with 0 errors after at most one held pause; deploys wait; start it again;
+3. revoke a throwaway fleet box's credential: both hubs drop its tunnel and refuse its store-door calls within 2 s;
+4. block the console's revoke hop to leo (a test-only deny): the revocation shows pending on leo; remove leo from the hub set: it completes;
+5. `carlos fleets hubs add` is refused while a pre-floor fleet box is active.
+
+### 4.13 Rollout and floor
+
+1. Release with Part 2 on every box; inert until a second hub exists.
+2. Fleet boxes reach the floor (they then dial every address).
+3. Console signing key minted; the second hub box (fixed, EIP, `CARLOS_POOLS=@none`, `CARLOS_TUNNEL_HOST`, `CARLOS_FLEET_HUB_VIEW_KEY`); `carlos fleets hubs add` (refused below the floor gate); then its A record.
+4. Dev drill, then flagship, then Tito staging, then Tito production.
+
+## 5. Estimate
+
+Rough, build only, Opus implementing with Astra reviewing, after approval:
+
+| Piece | Work | Notes |
+|---|---|---|
+| S0 hub keeps accepting through W6 | 1 day | |
+| S1 admission exemption and `fleet_serving` | 2 days | sender-side eligibility, real-path test |
+| S2 hub warm-up hold | 2 days | |
+| S3 hold inside the backhaul dialer | 3 days | §25/§7.5 boundary tests in CI |
+| S4 socket handoff (optional) | 4 days | root apply and rollback ordering, real systemd |
+| Part 1 dev witness and release | 2 days | one booked dev window |
+| **Part 1 total** | **about 2 weeks** (1½ without S4) | |
+| Bindings pass behind the change index | 2 days | worth doing for today's single hub too |
+| Signed hub view, hub set, revoke hop, floor gate | 5 days | census card |
+| Multi-hub tunnel client | 3 days | |
+| Per-channel claims, fleet alternative rule, sender choice | 4 days | |
+| `@none`, coordinator relay, simulation | 4 days | |
+| Infra (second hub module, DNS) and drill | 3 days | operator repos |
+| **Part 2 total** | **about 4 weeks** | |
+
+Part 1 on dev about two weeks after approval; Part 2 on dev about six weeks after approval. Both fit Tito's target of about two months before Classic and Pro cut over, with a thin margin for the release train and Tito's own rolls. If the date is tight, Part 1 without S4 plus Tito's fleet app names on its NLB is the fastest relief.
+
+## 6. Paul's rulings (2026-11-25)
+
+Paul took all five recommendations: Q1 build S4; Q2 S3 for every backhaul; Q3 the hub set is fixed boxes with EIPs, one extra small box for Tito; Q4 Part 1 first, then Part 2; Q5 accept the narrowed H-3. Build order from 8a3d302: Part 1 plan (one Astra plan review), subagent-driven build with Astra per task, Astra and Fable on the whole branch, census on #280, region HA tests in CI, merge on green. The dev drill and releases are Paul's GOs.
+
+The questions as asked:
+
+1. **S4 (socket handoff): build it, or require fleet app names to enter through an NLB or another edge?** Recommendation: build it. Tito has no NLB today, and it removes Tito's 10 s in-flight wait from the gap.
+2. **S3 applies to every backhaul, not only fleet names.** A dead single-home box's clients then wait up to 20 s and get a retryable 503, instead of an instant 502. Recommendation: yes, everywhere.
+3. **Part 2's hub set is fixed boxes with EIPs.** For Tito that is one more small always-on box in IE (roughly $15 to $30 a month). Recommendation: yes; group members as hubs later, if ever.
+4. **Order:** Part 1 first, then Part 2. Recommendation: yes. Part 1 is small, helps single-hub regions for good, and Part 2 relies on S1 and S3.
+5. **Astra's last P1 (R3-1): accept the narrowed H-3, or defer Part 2?** If a hub dies within about 30 s of a fleet box first connecting to the other hub, a sender may not yet know the surviving hub, and its requests for that box's apps get a retryable 503 after the 20 s hold until its next home-map poll. In steady state every box is connected to every hub long before, so the case is a hub death right after a box boots or reconnects. Recommendation: accept the narrowed H-3. Closing it fully needs a push from hubs to senders (or senders polling faster), which is a new mechanism for a rare window.
+
+## 7. Review record
+
+### Astra round 1 (dfd46a8e, NOT READY): where each finding went
+
+| Finding | Sev | Disposition | Where |
+|---|---|---|---|
+| R1-1 S1 local only; senders still see a booting hub ineligible | P1 | Accepted: `fleet_serving` publication and fleet-claim eligibility separate from `HomeEligible`; real-path test. | §3.3 |
+| R1-2 a failed dial closes the body; re-entry spends an attempt | P1 | Accepted: the hold moved inside the backhaul dialer; one attempt, body untouched; slow/chunked/100-continue tests. | §3.5 |
+| R1-3 gap and guarantee omit shutdown work; listeners close before W6's wait | P1 | Accepted: §2 corrected (about a minute on dev); S0 keeps a hub accepting through W6; the guarantee is stated as a hold budget on T, with shared deadlines. | §2.1, §3.1, §3.2, §3.6 |
+| R1-4 revocation cannot satisfy H-1 | P1 | Accepted: atomic credential removal covering registration and the store door, then close; acknowledgements or a 5-minute lease; H-1 restated. | §4.4 |
+| R1-5 hub view authority not established | P1 | Accepted: console Ed25519 signature, public key in hub host.env, monotonic revision. | §4.4 |
+| R1-6 hub-to-hub forward breaks I4; pre-floor reachability | P1 | Accepted: hub-to-hub forward of hops removed; hubs publish only names they can serve; §25 handover answer for stale senders; a client-entered request may be forwarded once. | §4.1, §4.5 |
+| R1-7 coordinator address must be loopback | P2 | Accepted: extra hubs relay to the console box's edge over signed TLS backhaul; loopback rule unchanged. | §4.7 |
+| R1-8 freshness rule closes idle hubs | P2 | Accepted: an unchanged generation read renews freshness. | §4.4 |
+| R1-9 bindings scan ungated | P2 | Accepted: budgeted honestly; put behind a change-index scope first. | §4.10 |
+| R1-10 replica hold after body preparation | P2 | Accepted: hold before `replicaReplayableBody`, then reselect. | §3.4 |
+| R1-11 one socket unit cannot name two descriptors | P2 | Accepted: two socket units; tests on real systemd. | §3.6 |
+
+### Astra round 2 (36f9a498, NOT READY): where each finding went
+
+R1-3, R1-5, R1-7, R1-8, R1-9, R1-10 and R1-11 were closed. Revocation (R1-4) and stale-hub reachability (R1-6) drew a P1 in both rounds, so rev 3 applies stopping rule 2 by narrowing scope, as Astra recommended, rather than adding a third mechanism.
+
+| Finding | Sev | Disposition | Where |
+|---|---|---|---|
+| R1-1 remainder: alternatives and handover use `boxInRegionSnapshot`, which rejects a booting hub | P2 | Accepted: fleet claims have their own candidate rule; handover cut. | §3.3, §4.5 |
+| R1-2 remainder: the final failure still closes and may drain a stalled body | P2 | Accepted: outbound body wrapper whose close never reaches the inbound body; 503 with `Connection: close`; stalled-upload test. | §3.5 |
+| R1-4 remainder: the lease renews from an unsigned, best-effort index | P1 | **Narrowed:** lease cut. Revocation is pending until every hub in the signed hub set acknowledges; an unreachable hub is removed from the set by the operator. H-1 restated. | §4.4 |
+| R1-6 remainder: pre-floor boxes move between hubs; streamed POST; handover lacks `gen` | P1 | **Narrowed:** floor gate (Part 2 only when every fleet box is at the floor; below-floor registrations refused once two hubs exist); handover answer and client forward cut; a zero-bytes-read connect failure falls back as the second attempt. H-3 restated. | §4.3, §4.5 |
+| New 1: switching destination inside the dialer breaks the transport's destination identity | P2 | Accepted: the dialer re-dials the same address only; switching is the attempt layer's existing connect fallback. | §3.5, §4.5 |
+| New 2: S0 admits requests into a drain that cuts all at its bound | P2 | Accepted: the drain cuts only requests admitted before step 3. | §3.2 |
+
+### Astra round 3 (e81d2798, final, NOT READY): where each finding went
+
+R1-1, R1-4 (under the narrowed H-1), R2-new-1 and R2-new-2 were closed.
+
+| Finding | Sev | Disposition | Where |
+|---|---|---|---|
+| R1-2 remainder: net/http drains an unread body after the handler returns; `Connection: close` does not stop it | P2 | Accepted: the final failure goes through `finishEarlyAnswer`'s bounded cleanup; the test checks connection closure and handler return. | §3.5 |
+| R1-6 remainder (R3-1): a surviving hub whose claim reached the sender's map less than one poll ago cannot be chosen within the hold | P1 | **To Paul (Q5).** Astra's recommended narrowing is written into H-3; the alternative is to defer Part 2. | §4.11, §6 |
+
+No new findings in round 3. The review budget is spent.
diff --git a/docs/superpowers/specs/CODEX-FINDINGS-hub-ha-R1.md b/docs/superpowers/specs/CODEX-FINDINGS-hub-ha-R1.md
new file mode 100644
index 000000000..8ff52710a
--- /dev/null
+++ b/docs/superpowers/specs/CODEX-FINDINGS-hub-ha-R1.md
@@ -0,0 +1,47 @@
+Reviewed `d0bc35cb4c09ce3bff0949a06b1b1ebdaddd10a1`. No files changed.
+
+1. **P1 — §3.2: S1 leaves fleet names unavailable to other edges during admission.**
+ Changing `fixedAdmission.exempt` only fixes local dispatch. [`internal/host/group_admission.go:150`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/host/group_admission.go:150) still publishes `booting, admitted=false`; [`internal/edge/homemap.go:1070`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/homemap.go:1070) makes every home claim depend on `HomeEligible()`. That predicate rejects booting boxes. Once a sender folds this publication, it refuses the name before dialing, so S3 cannot help.
+ **Fix:** define fleet-specific publication eligibility alongside the local exemption, preserving ordinary tenant admission. Test the real publisher-to-home-map-to-request path during startup.
+
+2. **P1 — §3.4: a failed dial does not leave the streamed body reusable through today’s proxy path.**
+ [`internal/edge/backhaul_holder.go:323`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/backhaul_holder.go:323) wraps the original body with `watchBody`, whose embedded `Close` reaches the original reader. On connection-acquisition failure, Go’s transport calls `req.closeBody()` before returning ([`transport.go:693`](/home/paulca/.local/go-dist/src/net/http/transport.go:693)); closing an inbound HTTP/1 body can consume and discard it ([`transfer.go:971`](/home/paulca/.local/go-dist/src/net/http/transfer.go:971)). Thus “no bytes sent upstream” does not prove “body intact.” Re-entering `backhaulAttempt` also spends another attempt at line 209.
+ **Fix:** hold connection acquisition before returning failure to the transport, or introduce explicit attempt-body ownership that prevents premature closure. Keep dial retries inside one forwarding attempt. Test slow, chunked and `Expect: 100-continue` POSTs, including cancellation and an alternative appearing mid-hold.
+
+3. **P1 — §§2.1–2.2, 3.1, 3.5: the reconstructed listener gap and 15-second guarantee omit shutdown work.**
+ W6 sets `ListenersClosedAt` **after** `CloseIngress` returns ([`internal/host/ingressdrain.go:399`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/host/ingressdrain.go:399)). Inside that call, listeners close before a connection wait of up to 30 seconds. Tenant units then stop before the edge, with an 18-second stop budget ([`carlos-instance@.service:14`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/host/units/carlos-instance@.service:14)). After the edge’s HTTP shutdown, the agent still joins duties and shuts down the activator ([`internal/host/agent.go:1469`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/host/agent.go:1469)), under a 90-second budget. Socket activation preserves the queue but does not shorten these waits; backhaul TLS handshakes time out after five seconds.
+ **Fix:** measure actual listener closure separately from drain completion, model the complete service restart, and either shorten that critical path or narrow the guarantee. Give S3 and S2 a shared end-to-end deadline; their separate 15- and 10-second holds already exceed the promised pause.
+
+4. **P1 — §§4.4, 4.12: revocation cannot satisfy H-1.**
+ A hub that folded moments ago can become unreachable from the console, miss a revoke, and accept the old credential for nearly ten minutes. Existing revoked tunnels can remain indefinitely because the stale rule preserves them. Even on a reached hub, the specified `CloseChannel` operation only removes the connection ([`internal/edge/tunnel.go:624`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/tunnel.go:624)); authentication still accepts the stored hash at [`tunnel.go:473`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/tunnel.go:473). The store door uses that same authentication table.
+ **Fix:** atomically invalidate the credential and record its revision before closing the matching connection, covering tunnel registration and store access. A successful revoke must await acknowledgements from every authorized hub or an enforceable authorization expiry. Logging an unreachable hub cannot establish the stated invariant.
+
+5. **P1 — §4.4: the hub view’s console-only authority is not established.**
+ Being outside the store door’s writable prefixes proves only that interface’s restriction. Fixed host roles currently receive deployment-wide object writes ([`infra/modules/region-host/main.tf:184`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/infra/modules/region-host/main.tf:184)). The repository also explicitly recognizes legacy direct-S3 fleet credentials ([`internal/edge/replicaconsole.go:25`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/replicaconsole.go:25)); removing their grant from a module does not revoke existing deployments. A forged view could install an attacker-chosen credential and fleet owner.
+ **Fix:** specify and enforce the writer boundary through bucket/IAM policy, including legacy credentials, or verify console-signed views against a separately trusted key. Include revision rollback protection and tests that attempt writes through every supported credential path.
+
+6. **P1 — §§4.3, 4.6, 4.12: hub forwarding cannot provide the promised pre-floor reachability under I4.**
+ Let fleet box F connect only to hub A. An ordinary edge C selects hub B, which also publishes F’s host. C→B is already a signed hop; B cannot forward to A. The guard is explicit at [`internal/edge/edge.go:4596`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/edge.go:4596). B’s connected-but-unavailable response also does not trigger the sender’s connect-failure fallback ([`internal/edge/backhaul_holder.go:298`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/backhaul_holder.go:298)). This violates H-3 without any hub being down.
+ **Fix:** make the first edge select a hub able to serve the required channel or replica set, with a defined stale-information path. Alternatively, require multi-hub-capable fleet boxes before enabling additional claimants and remove the pre-floor guarantee. Preserve I4.
+
+7. **P2 — §4.8: the proposed coordinator address prevents the extra hub from starting.**
+ [`internal/edge/replicaconsole.go:52`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/replicaconsole.go:52) accepts only literal loopback addresses and rejects the console’s private address. Simply relaxing that check would send fleet bearer tokens over plain HTTP, which the proxy selects at line 134.
+ **Fix:** design an authenticated TLS connection to a console-owned endpoint, restricted to the required fleet doors, with explicit listener and network configuration. Keep the existing local endpoint’s security guarantees.
+
+8. **P2 — §§4.4, 4.11: the freshness rule closes healthy idle hubs.**
+ The view is fetched on change or at a 30-minute backstop, but new registrations are refused ten minutes after the last completed fold. With nothing changing, that leaves a twenty-minute refusal interval. Existing read gates deliberately reuse successful reads until the backstop ([`internal/host/changeindex.go:76`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/host/changeindex.go:76)).
+ **Fix:** distinguish successful freshness verification from decoding a changed object. Define when an unchanged, freshly checked generation renews freshness, how failures expire it, and how that interacts with revocation.
+
+9. **P2 — §4.11: the approximately 50-request idle budget excludes an ungated binding scan.**
+ [`internal/host/agent.go:4673`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/host/agent.go:4673) invokes `ReconcileFleetBindings` every five to six minutes. [`internal/host/fleetbind.go:269`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/host/fleetbind.go:269) performs a fleet-directory LIST, a binding LIST per fleet, and a GET per binding, without a change-index gate. One fleet with one binding already costs roughly 720–864 requests daily per additional hub, before the new view.
+ **Fix:** put this scan behind an explicit change-index scope or budget its actual cost. Count the complete extra-hub workload in the idle test.
+
+10. **P2 — §3.3: the replica hold’s named insertion point reads the body before holding.**
+ [`internal/edge/replicaproxy.go:96`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/replicaproxy.go:96) calls `replicaReplayableBody` before entering the no-copy branch. That helper reads known-length bodies up to 64 KiB in full at line 297. A hold inserted into the specified branch therefore violates the unread-body guarantee and can block on an upload before starting its hold timer.
+ **Fix:** perform the wait before body preparation, then reselect from a fresh prober snapshot. Test a POST whose body remains blocked until a copy becomes available.
+
+11. **P2 — §3.5: one socket unit cannot assign the two proposed descriptor names.**
+ `FileDescriptorName=` names **all** descriptors belonging to a socket unit; it does not assign separate names to successive `ListenStream=` entries. The proposed single unit therefore cannot supply distinct `http` and `https` names to replace the separate listeners at [`internal/edge/edge.go:5196`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/edge.go:5196). This is documented in the installed [`systemd.socket(5)`](/usr/share/man/man5/systemd.socket.5.gz).
+ **Fix:** use two socket units targeting the same service, or identify inherited sockets by validated local addresses. Test the actual systemd unit configuration, including first activation and rollback, rather than only a child-process FD fixture.
+
+NOT READY
\ No newline at end of file
diff --git a/docs/superpowers/specs/CODEX-FINDINGS-hub-ha-R2.md b/docs/superpowers/specs/CODEX-FINDINGS-hub-ha-R2.md
new file mode 100644
index 000000000..206e05955
--- /dev/null
+++ b/docs/superpowers/specs/CODEX-FINDINGS-hub-ha-R2.md
@@ -0,0 +1,41 @@
+Reviewed rev 2 at `36f9a498ba846f2f16f24c7739a9c2719854fd59` against the cited code. No files changed.
+
+| Round 1 finding | Disposition | Evidence and remaining work |
+|---|---|---|
+| **R1-1 — Fleet admission/publication** | **PARTLY — P2 remains** | §3.3 fixes initial claim eligibility. But both alternative selection and handover still call `boxInRegionSnapshot`, which rejects a booting hub through [`holderview.go:93`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/holderview.go:93). A hub can therefore publish an eligible fleet claim yet be rejected as the fallback. **Fix:** carry fleet-specific eligibility through these checks, retaining the owner, region and address checks; test fallback to a booting hub. |
+| **R1-2 — Body ownership during failed connection acquisition** | **PARTLY — P2 remains** | §3.5 fixes successful recovery without closing the body or spending another attempt. At the final timeout, however, [`transport.go:695`](/home/paulca/.local/go-dist/src/net/http/transport.go:695) still closes the request body before returning the error. [`watchBody`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/replay.go:133) passes that close through; [`transfer.go:995`](/home/paulca/.local/go-dist/src/net/http/transfer.go:995) can block consuming a stalled chunked or small declared body. The promised 503 at 20 seconds need never reach the error handler. **Fix:** retain explicit body ownership through the final failure and send the refusal through bounded response/cleanup handling. Test a permanently unavailable destination with a body that never arrives. |
+| **R1-3 — Reconstructed gap and shutdown guarantee** | **CLOSED** | §§2.1–2.2 include listener closure before W6’s wait and subsequent shutdown work. §§3.1 and 3.6 make success conditional on the hold budget and explicitly retain the agent’s shutdown budget. |
+| **R1-4 — Revocation** | **PARTLY — P1 remains** | §4.4 fixes atomic credential removal, but its lease can renew indefinitely from an old generation. Index bumps are explicitly best effort: failures are swallowed at [`changeindex.go:185`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/release/changeindex.go:185). A successful view write followed by a failed bump leaves an unreachable hub repeatedly renewing its old credentials. Moreover, the index is unsigned ([`changeindex.go:35`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/release/changeindex.go:35)), and fixed host roles can overwrite it ([`main.tf:187`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/infra/modules/region-host/main.tf:187)). Signing the view does not authenticate its freshness. **Fix:** use an enforceable, authenticated expiry whose renewal cannot come from replayed index state, or keep revocation pending until every authorized hub acknowledges. Reconcile that choice with console-down availability and the request budget. |
+| **R1-5 — Hub-view writer authority** | **CLOSED** | §4.4 specifies a console-only signing key, separately installed verification key and monotonically increasing revisions. That establishes view-content authority at design level. The remaining freshness problem is recorded under R1-4. |
+| **R1-6 — I4 and pre-floor reachability** | **PARTLY — P1 remains** | §4.5 removes the forbidden second hop, but does not preserve the claimed reachability. A pre-floor box can move from A to B while C still selects A. A streamed POST cannot be replayed and returns 503 after A’s hold, although B serves the box. Even a replayable request cannot follow B until **C’s** view contains B’s eligible claim ([`backhaul_retry.go:109`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/backhaul_retry.go:109)). Also, the specified `holder=<ref>` header lacks the `gen` field required by [`handover.go:61`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/handover.go:61). **Fix:** remove the unconditional pre-floor/H-3 promise, or define a first-edge selection protocol that handles this case before streaming begins. Specify a compatible handover encoding. |
+| **R1-7 — Coordinator endpoint** | **CLOSED** | §4.7 replaces the invalid remote loopback configuration with TLS backhaul to the console box’s edge, retaining its existing local console endpoint. |
+| **R1-8 — Healthy idle hubs expire** | **CLOSED** | §4.4 explicitly renews freshness on a successful unchanged-generation check. Whether that check establishes authorization freshness is the separate remaining R1-4 issue. |
+| **R1-9 — Binding-scan budget** | **CLOSED** | §4.10 counts the existing scan, requires change-index gating and writer bumps, retains the backstop, and assigns a full-day store-call test. |
+| **R1-10 — Replica hold reads body first** | **CLOSED** | §3.4 places the hold before body preparation, requires fresh selection afterwards, and names the blocked-body test. |
+| **R1-11 — Socket descriptor names** | **CLOSED** | §3.6 specifies two socket units and real-systemd activation, restart and rollback tests. |
+
+New findings:
+
+1. **P2 — §3.5: switching destinations inside the dialer breaks the transport’s destination identity.**
+
+ **Invariant:** a pooled connection and its admission accounting must belong to the destination actually serving the request.
+
+ The cached transport is keyed by the original EIP, while its connections are pooled by the wire hostname ([`edge.go:4699`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/edge.go:4699), [`edge.go:4732`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/edge.go:4732)). Returning a connection to B from A’s dialer leaves B’s connection inside A’s transport. Subsequent requests can reuse it without running the new selection logic.
+
+ This matters beyond logging: different path routes share a wire hostname while selecting different route authorities ([`pathhop.go:21`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/pathhop.go:21)). A connection redirected for one route can be reused for another route B cannot serve. Admission also happens against the original box before dialing ([`edge.go:4630`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/edge.go:4630)); changing the log name does not transfer that capacity reservation.
+
+ **Fix:** define connection ownership across destination changes. A minimal approach uses a request-owned transport for redirected acquisition, preventing cross-request reuse, and transfers admission to the actual destination. Test two path targets sharing one wire hostname, plus concurrent requests and destination capacity limits.
+
+2. **P2 — §3.2: S0 keeps admitting requests into a drain that cuts every active request at its deadline.**
+
+ **Invariant:** keeping the listener open must not expose newly accepted fleet requests to an almost-expired drain deadline.
+
+ Today, `CloseIngress` calls `cut()` when its wait expires ([`ingressdrain.go:190`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/ingressdrain.go:190)). That operation cancels and closes **every currently tracked request**, without distinguishing when it arrived ([`hadrainconns.go:190`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/hadrainconns.go:190)).
+
+ With S0, a long request can keep the wait running while a short fleet request arrives just before its deadline. The short request is then cut almost immediately, before SIGTERM, despite a healthy tunnel. The proposed test only checks a request arriving during the wait; it does not cover this boundary.
+
+ **Fix:** define the hub’s drain cohort explicitly. Either cut only requests admitted before the drain boundary, or leave fleet requests to the final SIGTERM drain. Test a long-lived request alongside a short fleet POST arriving immediately before the W6 deadline.
+
+The revocation and stale-hub reachability fault families now recur in rounds 1 and 2. The stopping rule requires a choice before another fix: gate the unsupported cases, defer Part 2, or enforce each invariant through one protocol with a guard test or simulation. I recommend gating Part 2 on the fleet floor, narrowing H-3 to the supported connectivity conditions, and keeping unacknowledged revocations pending until an enforceable expiry exists. Round 3 remains the final allowed review round.
+
+NOT READY
\ No newline at end of file
diff --git a/docs/superpowers/specs/CODEX-FINDINGS-hub-ha-R3.md b/docs/superpowers/specs/CODEX-FINDINGS-hub-ha-R3.md
new file mode 100644
index 000000000..0efaba2d5
--- /dev/null
+++ b/docs/superpowers/specs/CODEX-FINDINGS-hub-ha-R3.md
@@ -0,0 +1,35 @@
+Reviewed rev 3 at `e81d2798cc6fb75b015107395fa9f2aca488d79e` against the cited code. No files changed. **One P1 and one P2 remain; no additional new findings.**
+
+| Round-2 finding | Disposition | Evidence |
+|---|---|---|
+| R1-1 — Fleet alternatives reject booting hubs | **CLOSED** | [§3.3:99](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/docs/superpowers/specs/2026-11-25-hub-ha-design.md:99) explicitly replaces tenant-holder eligibility with the fleet rule. §4.11 assigns booting-hub and flat-region tests. Handover is cut. |
+| R1-2 — Final connection failure closes a stalled body | **PARTLY — P2** | [§3.5:130](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/docs/superpowers/specs/2026-11-25-hub-ha-design.md:130) prevents the transport from closing the inbound body and permits the 503 to flush. Its assertion that the server then closes the connection without waiting on the body is incorrect; bounded cleanup remains missing. See below. |
+| R1-4 — Revocation freshness | **CLOSED under the narrowed H-1** | [§4.4:216](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/docs/superpowers/specs/2026-11-25-hub-ha-design.md:216) requires acknowledgements from every hub in the signed set, retries unacknowledged hubs, and keeps revocation pending. Removal explicitly changes that set. No lease or change-index freshness is relied upon. |
+| R1-6 — Stale-hub reachability | **PARTLY — P1** | The floor gate and removal of handover close the pre-floor and encoding cases. However, [H-3:274](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/docs/superpowers/specs/2026-11-25-hub-ha-design.md:274) still promises service when the surviving hub’s claim has not reached the sender. The fallback cannot discover that hub within the stated budget. See below. |
+| R2-new-1 — Switching destinations inside a pooled transport | **CLOSED** | [§3.5:127](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/docs/superpowers/specs/2026-11-25-hub-ha-design.md:127) fixes the dial destination. §4.5 switches through the attempt layer, which releases the first admission slot before starting the second ([backhaul_holder.go:329](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/backhaul_holder.go:329)). |
+| R2-new-2 — Late requests cut at the W6 deadline | **CLOSED at design level** | [§3.2:89](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/docs/superpowers/specs/2026-11-25-hub-ha-design.md:89) explicitly limits the cut to requests admitted before the drain boundary and leaves later requests to SIGTERM’s drain. |
+
+**R1-2 remainder — P2, §3.5. Invariant: a refused upload must release its connection within a bounded time.**
+
+Go’s server flushes the response, then unconditionally calls `w.reqBody.Close()` ([server.go:1681](/home/paulca/.local/go-dist/src/net/http/server.go:1681)). That close can drain an unread chunked or small declared body ([transfer.go:984](/home/paulca/.local/go-dist/src/net/http/transfer.go:984)). Setting the **response** header `Connection: close` does not prevent this cleanup read.
+
+Consequently, the client can receive its 503 while the server goroutine and socket remain stuck waiting for upload bytes. The repository already documents and handles this exact distinction in [finishEarlyAnswer, replay.go:167](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/replay.go:167).
+
+**Concrete fix:** route the final acquisition failure through bounded response-and-body cleanup equivalent to `finishEarlyAnswer`. Extend the stalled-upload test to verify connection closure and handler/server cleanup, not only receipt of the 503.
+
+**R1-6 remainder — P1, §§4.5 and 4.11. Invariant: H-3’s surviving path must be selectable before the hold expires.**
+
+A counterexample satisfies the narrowed floor rule:
+
+1. Every fleet box supports multiple hubs. Sender C has folded hub A’s claim.
+2. Fleet box F connects to hub B, which publishes its claim just after C’s poll.
+3. A dies. A new request at C gets connection refused; it never reached A.
+4. C still knows only A. It holds for 20 seconds, then returns 503, although B can serve F throughout.
+
+Alternative selection examines only the sender’s current snapshot ([backhaul_retry.go:58](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/backhaul_retry.go:58)). The map polls every 30 seconds ([homemap.go:124](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/homemap.go:124)); its change watch is consulted during that poll ([homemap.go:506](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-hub-ha/internal/edge/homemap.go:506)). Neither the fleet floor nor zero-body-read fallback closes this interval.
+
+This is the existing stale-reachability fault family, not a request to restore handover or forwarding.
+
+**Round 3 stops here.** Paul’s options are to narrow H-3 to require a surviving eligible claimant already known to the sender, with its required channel available within the hub hold; or defer Part 2 and proceed with Part 1 after the cleanup fix. I recommend the narrower guarantee and an explicit simulation case for the publication interval. No fourth review round is assumed.
+
+NOT READY
\ No newline at end of file
diff --git a/docs/superpowers/specs/CODEX-REVIEW-BRIEF-hub-ha-R2.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-hub-ha-R2.md
new file mode 100644
index 000000000..944a4f20a
--- /dev/null
+++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-hub-ha-R2.md
@@ -0,0 +1,9 @@
+# Astra review brief: hub HA design, round 2
+
+Same brief as `CODEX-REVIEW-BRIEF-hub-ha.md` (read it for context and the fixed rulings), applied to rev 2 of `docs/superpowers/specs/2026-11-25-hub-ha-design.md` at the commit named in the prompt. Your round 1 findings are in `CODEX-FINDINGS-hub-ha-R1.md`; §7 of the spec maps each one.
+
+1. First, a disposition table for every round 1 finding: CLOSED, PARTLY (say what is left), or OPEN, with the evidence.
+2. Then only NEW findings in rev 2, same format as round 1 (P1/P2/P3, section, file:line proof, concrete fix). Do not re-raise a closed finding in new words.
+3. Round 3 is the last allowed round. Prefer findings that change whether the design works over polish. Where a mechanism is named, bounded and assigned to the build with a test, treat it as complete at design level.
+
+End with a verdict line: READY, READY AFTER FIXES, or NOT READY.
diff --git a/docs/superpowers/specs/CODEX-REVIEW-BRIEF-hub-ha-R3.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-hub-ha-R3.md
new file mode 100644
index 000000000..a1129af29
--- /dev/null
+++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-hub-ha-R3.md
@@ -0,0 +1,10 @@
+# Astra review brief: hub HA design, round 3 (final)
+
+Same context and fixed rulings as `CODEX-REVIEW-BRIEF-hub-ha.md`. Review rev 3 of `docs/superpowers/specs/2026-11-25-hub-ha-design.md` at the commit named in the prompt. Rounds 1 and 2 are in `CODEX-FINDINGS-hub-ha-R1.md` and `-R2.md`; §7 maps every finding.
+
+Rev 3 applied stopping rule 2: revocation and stale-hub reachability are NARROWED (no lease; revocation pending until every hub in the signed hub set acknowledges; Part 2 only when every fleet box is at the floor; no handover answer and no hub-to-hub forward). Treat those narrowings as rulings: report only a mechanism that fails to honour the narrowed statements (H-1, H-3 as restated), not the absence of the cut mechanisms.
+
+1. A disposition table for every open or partly closed finding from round 2: CLOSED, PARTLY, OPEN, with evidence.
+2. Only NEW findings in rev 3 (P1/P2/P3, section, file:line proof, concrete fix). This is the final round: a P1 here goes to Paul with options, so name only what would make the design fail or cause an outage. Where a mechanism is named, bounded and assigned to the build with a test, treat it as complete at design level.
+
+End with a verdict line: READY, READY AFTER FIXES, or NOT READY.
diff --git a/docs/superpowers/specs/CODEX-REVIEW-BRIEF-hub-ha.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-hub-ha.md
new file mode 100644
index 000000000..301d61991
--- /dev/null
+++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-hub-ha.md
@@ -0,0 +1,16 @@
+# Astra review brief: hub HA design, round 1
+
+Review `docs/superpowers/specs/2026-11-25-hub-ha-design.md` on branch `design-hub-ha` (commit named in the prompt). The repo is this worktree, at origin/main bac71e00 plus the spec. You are an independent second reader. Read the spec, then check it against the code it cites.
+
+Context: CARLOS fleet boxes dial a reverse HTTP/2 tunnel to one "hub" per region (internal/edge/tunnel.go, internal/tunnelclient). The hub edge restarting takes every fleet app down ~15 s (#1388). Part 1 is a small short-term fix; Part 2 is several hubs per region. Related machinery: backhaul and alternatives (internal/edge/backhaul_holder.go, backhaul_retry.go, replay.go), edges-file name authority (internal/edgesfile), tenant admission (internal/host/group_admission.go, internal/edge/group_admission.go), W6 ingress drain (internal/host/ingressdrain.go, internal/edge/ingressdrain.go), replica routing (internal/edge/replicaprober.go, replicaproxy.go), region HA spec §25 held requests (2026-10-26-region-ha-without-claims-design.md on branch design-region-ha-held-requests; the merged code is on main).
+
+Fixed rulings (do not re-argue): no Kubernetes; fleet boxes accept no inbound connections; at most two forward attempts per request and a box never forwards a request it received as a hop (I4); new features must state a steady-state S3 request budget and must not add per-box polling outside the change index; bucket records are not a tenancy boundary, and root/hub must never read fleet-state authority from a fleet-writable key.
+
+Find what is wrong, not what is good. In particular:
+1. Correctness of the measured/reconstructed gap (§2) against the code.
+2. Part 1: is S1's admission exemption safe (anything a fleet row needs that admission protects)? S2's hold and the one-probe warm-up rise. S3: is holding on connect failure really safe for any method and body (is any request byte or body read before the dial in the backhaul path)? Interaction with the suspect set, the attempt counter, held-request bounds of §25, and the hop's own timeouts. S4: socket activation with this unit layout (carlos-edge.service, carlos-edge-drain.service, tenant units bound to the edge), PPv2, W6 CloseIngress, rollback below the floor.
+3. Part 2: revocation and credential freshness across hubs; the hub view's authority; whether several hubs' unstamped claims really resolve as described in edgesfile name authority and the home map; the hub-to-hub forward against I4; replica routing per hub; the fleet box dialling every resolved address; anything that today assumes exactly one hub (grep HubArmed, TunnelHub, replica coordinator, store door, fleet bindings pass, sole-box rule, fleet record labels).
+4. Request budget.
+5. Anything missing that would make the build fail or cause an outage.
+
+Output: a list of findings, each with severity P1 (blocks the design), P2 (must fix before build), P3 (minor), the spec section, the code citation (file:line) that proves it, and a concrete proposed fix. End with a verdict line: READY, READY AFTER FIXES, or NOT READY.