carlos / platform Public

fix: create reads published policy; code health back under record

Astra final re-review P1: revert the create door's row screen, so every
create reads the app's published policy and a bucket-only fleet size is
never missed. Perf locks +1 (instance create 55, claim create 109) with
the ruling's comment. putShopPolicy is bucket-only again; new
TestFleetSizeCreateReadsPublished covers a bucket-only policy with no
row and a stale settled row, each refused before any record write.

Code health: the create door's barrier unlock moves into
copiesCreateCheckHolding; the activator's BoxLabel and reservation into
an embedded fleetSizeService (a zero-value fleetReservations); the P7
test seams into replicaFloorHooks, leaving server.go as main has it.
Census: placeAppTarget re-pinned; root overlay re-proposed with the 12
claims (type Service reworded for the embedding).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 09f72df02579d34a8c0532964b6b4da9591feddd parent 1dec6d7
15 files changed, +137 −154
  • docs/superpowers/notes/census-proposal-stateless-scale-2-fleet-sizes.md +1 −1
  • internal/activator/activator.go +2 −9
  • internal/activator/fleetreserve.go +18 −2
  • internal/activator/fleetreserve_test.go +2 −2
  • internal/console/apiinstances.go +1 −8
  • internal/console/apipolicy.go +2 −2
  • internal/console/copiespublication.go +14 −5
  • internal/console/fleets.go +4 −4
  • internal/console/fleetsize.go +3 −28
  • internal/console/fleetsize_test.go +71 −76
  • internal/console/perfwrites_test.go +5 −3
  • internal/console/replicafloor.go +6 −0
  • internal/console/server.go +2 −10
  • internal/provision/stateless_scale_2_fleet_sizes_census_test.go +4 −2
  • internal/provision/testdata/plan14-root-reads-stateless-scale-2-fleet-sizes.tsv +2 −2

CI failed — run details

CI log
=== gate ===
go: downloading go1.26.10 (linux/arm64)
go version go1.26.10 linux/arm64
opentofu: arm64, tofu 1.13.9, aws 6.73.0, archive 2.8.1
  tofu: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/tofu_1.13.9_linux_arm64.tar.gz
  tofu: downloaded, digest verified
  aws: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-aws_6.73.0_linux_arm64.zip
  aws: downloaded, digest verified
  archive: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-archive_2.8.1_linux_arm64.zip
  archive: downloaded, digest verified
  installed in /tmp/carlos-opentofu-1wyDAw
.amadan/test-gate.sh
go: downloading github.com/aws/aws-sdk-go-v2 v1.44.0
go: downloading github.com/aws/smithy-go v1.28.1
go: downloading github.com/benbjohnson/litestream v0.5.14
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/superfly/ltx v0.5.1
go: downloading golang.org/x/net v0.62.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading golang.org/x/crypto v0.58.0
go: downloading github.com/aws/aws-sdk-go-v2/service/sns v1.43.0
go: downloading golang.org/x/sys v0.49.0
go: downloading github.com/aws/aws-sdk-go-v2/service/route53 v1.64.1
go: downloading golang.org/x/mod v0.41.0
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.68.0
go: downloading github.com/oschwald/maxminddb-golang v1.13.1
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/ssm v1.74.0
go: downloading github.com/pion/dtls/v3 v3.1.4
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/pion/randutil v0.1.0
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.31
go: downloading github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.14
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.23
go: downloading github.com/prometheus/client_golang v1.17.0
go: downloading golang.org/x/sync v0.24.0
go: downloading github.com/lmittmann/tint v1.1.3
go: downloading github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.20.18
go: downloading github.com/prometheus/client_model v0.5.0
go: downloading github.com/prometheus/procfs v0.12.0
go: downloading github.com/prometheus/common v0.45.0
go: downloading github.com/cespare/xxhash/v2 v2.3.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading google.golang.org/protobuf v1.36.10
go: downloading modernc.org/sqlite v1.55.0
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
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 modernc.org/memory v1.11.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/google/uuid v1.6.0
=== 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 (170 s, from +0 s)
go: downloading modernc.org/sqlite v1.55.0
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
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
=== 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 golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
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
=== gofmt (1 s, from +0 s)
gofmt -l .: clean
=== rest (383 s, from +14 s)
ok  	github.com/carlosframework/platform/cmd/carlos-media	116.990s
?   	github.com/carlosframework/platform/cmd/changelog	[no test files]
ok  	github.com/carlosframework/platform/cmd/console	201.653s
ok  	github.com/carlosframework/platform/cmd/mediaimage	43.133s
ok  	github.com/carlosframework/platform/cmd/moveprobe	14.747s
ok  	github.com/carlosframework/platform/cmd/pricebook-export	0.045s
ok  	github.com/carlosframework/platform/cmd/rootfswitness	0.131s
ok  	github.com/carlosframework/platform/cmd/runsc-assets	0.162s
ok  	github.com/carlosframework/platform/cmd/zddprobe	0.908s
ok  	github.com/carlosframework/platform/internal/agentsock	0.052s
ok  	github.com/carlosframework/platform/internal/alerting	0.035s
ok  	github.com/carlosframework/platform/internal/analytics	0.315s
ok  	github.com/carlosframework/platform/internal/appconfig	43.480s
ok  	github.com/carlosframework/platform/internal/apperr	0.350s
ok  	github.com/carlosframework/platform/internal/applog	0.486s
ok  	github.com/carlosframework/platform/internal/apppolicy	2.283s
ok  	github.com/carlosframework/platform/internal/assetcache	0.481s
ok  	github.com/carlosframework/platform/internal/awsinv	0.015s
ok  	github.com/carlosframework/platform/internal/awsmanaged	0.471s
ok  	github.com/carlosframework/platform/internal/awsregiongroup	0.448s
ok  	github.com/carlosframework/platform/internal/awsterminations	0.025s
ok  	github.com/carlosframework/platform/internal/backupswords	0.009s
ok  	github.com/carlosframework/platform/internal/billing	0.067s
ok  	github.com/carlosframework/platform/internal/billing/billingtest	0.040s
ok  	github.com/carlosframework/platform/internal/billingstripe	2.067s
ok  	github.com/carlosframework/platform/internal/boxchoice	0.030s
ok  	github.com/carlosframework/platform/internal/boxid	3.279s
?   	github.com/carlosframework/platform/internal/boxid/boxidtest	[no test files]
?   	github.com/carlosframework/platform/internal/boxid/internal/signtest	[no test files]
ok  	github.com/carlosframework/platform/internal/boxroles	0.008s
ok  	github.com/carlosframework/platform/internal/boxself	0.202s
ok  	github.com/carlosframework/platform/internal/boxvolumes	0.054s
ok  	github.com/carlosframework/platform/internal/caps	0.094s
ok  	github.com/carlosframework/platform/internal/certwarm	0.015s
ok  	github.com/carlosframework/platform/internal/cgroup	1.436s
ok  	github.com/carlosframework/platform/internal/changelog	4.010s
ok  	github.com/carlosframework/platform/internal/clamd	0.079s
?   	github.com/carlosframework/platform/internal/cliflag	[no test files]
ok  	github.com/carlosframework/platform/internal/clireg	0.017s
ok  	github.com/carlosframework/platform/internal/codehealth	16.090s
ok  	github.com/carlosframework/platform/internal/compute	0.018s
?   	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	9.991s
ok  	github.com/carlosframework/platform/internal/dbdoor/dbdoortest	0.034s
ok  	github.com/carlosframework/platform/internal/dbquery	0.020s
ok  	github.com/carlosframework/platform/internal/dbreads	3.375s
?   	github.com/carlosframework/platform/internal/dbreads/dbreadstest	[no test files]
ok  	github.com/carlosframework/platform/internal/dbverify	0.020s
ok  	github.com/carlosframework/platform/internal/demo	0.004s
ok  	github.com/carlosframework/platform/internal/demobuild	2.318s
ok  	github.com/carlosframework/platform/internal/democlaim	0.474s
ok  	github.com/carlosframework/platform/internal/devbox	14.587s
ok  	github.com/carlosframework/platform/internal/dnsrec	0.019s
ok  	github.com/carlosframework/platform/internal/docsite	0.132s
ok  	github.com/carlosframework/platform/internal/domainreg	0.015s
ok  	github.com/carlosframework/platform/internal/domains	69.372s
ok  	github.com/carlosframework/platform/internal/doorkey	0.023s
ok  	github.com/carlosframework/platform/internal/economics	0.024s
ok  	github.com/carlosframework/platform/internal/edgefence	0.175s
ok  	github.com/carlosframework/platform/internal/edgeguard	0.419s
?   	github.com/carlosframework/platform/internal/edgeproof	[no test files]
ok  	github.com/carlosframework/platform/internal/edgesfile	0.045s
ok  	github.com/carlosframework/platform/internal/egressaddr	0.015s
ok  	github.com/carlosframework/platform/internal/execsandbox	102.710s
ok  	github.com/carlosframework/platform/internal/fileacl	0.006s
ok  	github.com/carlosframework/platform/internal/fleetapi	1.780s
ok  	github.com/carlosframework/platform/internal/fleetstore	0.014s
ok  	github.com/carlosframework/platform/internal/fxrate	0.021s
ok  	github.com/carlosframework/platform/internal/gate	4.184s
ok  	github.com/carlosframework/platform/internal/genselect	0.086s
ok  	github.com/carlosframework/platform/internal/geo	0.079s
ok  	github.com/carlosframework/platform/internal/geoip	0.140s
ok  	github.com/carlosframework/platform/internal/groupadmission	0.018s
ok  	github.com/carlosframework/platform/internal/grouprollaws	16.995s
ok  	github.com/carlosframework/platform/internal/hadeparture	0.026s
ok  	github.com/carlosframework/platform/internal/hafresh	0.016s
ok  	github.com/carlosframework/platform/internal/hairpin	0.251s
ok  	github.com/carlosframework/platform/internal/historyreadback	1.080s
ok  	github.com/carlosframework/platform/internal/hostactors	19.997s
ok  	github.com/carlosframework/platform/internal/hostbox	21.681s
ok  	github.com/carlosframework/platform/internal/hostclaim	2.561s
ok  	github.com/carlosframework/platform/internal/hostenv	0.052s
ok  	github.com/carlosframework/platform/internal/hostevidence	0.030s
ok  	github.com/carlosframework/platform/internal/hostexec	24.167s
ok  	github.com/carlosframework/platform/internal/hostfence	0.144s
ok  	github.com/carlosframework/platform/internal/hostfiles	23.078s
ok  	github.com/carlosframework/platform/internal/hostfloor	0.105s
ok  	github.com/carlosframework/platform/internal/hostguard	1.441s
ok  	github.com/carlosframework/platform/internal/hostops	6.834s
?   	github.com/carlosframework/platform/internal/hostops/fencerelease	[no test files]
ok  	github.com/carlosframework/platform/internal/hostops/internal/fencerelease	0.013s
ok  	github.com/carlosframework/platform/internal/hostquarantine	0.011s
ok  	github.com/carlosframework/platform/internal/hostrelocate	2.000s
ok  	github.com/carlosframework/platform/internal/hostresolve	0.744s
ok  	github.com/carlosframework/platform/internal/hostwrite	0.019s
ok  	github.com/carlosframework/platform/internal/infraview	0.018s
ok  	github.com/carlosframework/platform/internal/ingresshealth	0.033s
ok  	github.com/carlosframework/platform/internal/ingresshealth/awstg	0.011s
ok  	github.com/carlosframework/platform/internal/instancectl	55.558s
ok  	github.com/carlosframework/platform/internal/instanceexec	8.673s
ok  	github.com/carlosframework/platform/internal/instancefs	0.020s
ok  	github.com/carlosframework/platform/internal/instancekey	0.011s
ok  	github.com/carlosframework/platform/internal/instanceupdates	0.025s
ok  	github.com/carlosframework/platform/internal/interactive	0.622s
ok  	github.com/carlosframework/platform/internal/launchd	0.008s
ok  	github.com/carlosframework/platform/internal/layout	24.144s
ok  	github.com/carlosframework/platform/internal/layout/pubclass	100.743s
ok  	github.com/carlosframework/platform/internal/lbhealth	0.006s
ok  	github.com/carlosframework/platform/internal/lease	145.205s
ok  	github.com/carlosframework/platform/internal/lease/leasetest	1.317s
ok  	github.com/carlosframework/platform/internal/lease/locktest	0.017s
ok  	github.com/carlosframework/platform/internal/ledger	0.069s
ok  	github.com/carlosframework/platform/internal/mail	1.083s
ok  	github.com/carlosframework/platform/internal/mailer	0.904s
ok  	github.com/carlosframework/platform/internal/mailsubmit	1.130s
ok  	github.com/carlosframework/platform/internal/mailwire	0.010s
ok  	github.com/carlosframework/platform/internal/maintenance	0.185s
ok  	github.com/carlosframework/platform/internal/maintenanceexec	9.075s
ok  	github.com/carlosframework/platform/internal/maintenanceguard	0.243s
ok  	github.com/carlosframework/platform/internal/media	1.960s
ok  	github.com/carlosframework/platform/internal/media/mediatest	0.008s
ok  	github.com/carlosframework/platform/internal/mediaaws	62.030s
ok  	github.com/carlosframework/platform/internal/mediahandler	44.083s
ok  	github.com/carlosframework/platform/internal/mediajobs	1.009s
ok  	github.com/carlosframework/platform/internal/medialocal	10.538s
ok  	github.com/carlosframework/platform/internal/metrics	0.126s
ok  	github.com/carlosframework/platform/internal/minorunits	0.009s
ok  	github.com/carlosframework/platform/internal/moves	53.812s
ok  	github.com/carlosframework/platform/internal/moves/archive	3.082s
ok  	github.com/carlosframework/platform/internal/moves/offlinerun	0.080s
ok  	github.com/carlosframework/platform/internal/namedunits	0.019s
ok  	github.com/carlosframework/platform/internal/objstore	0.798s
ok  	github.com/carlosframework/platform/internal/ops	17.149s
ok  	github.com/carlosframework/platform/internal/pageindex	3.705s
ok  	github.com/carlosframework/platform/internal/parity	0.127s
?   	github.com/carlosframework/platform/internal/parity/cmd/parity-doc	[no test files]
ok  	github.com/carlosframework/platform/internal/park	0.475s
ok  	github.com/carlosframework/platform/internal/perf	0.179s
ok  	github.com/carlosframework/platform/internal/plans	0.094s
ok  	github.com/carlosframework/platform/internal/privatefile	0.013s
ok  	github.com/carlosframework/platform/internal/provision	239.358s
ok  	github.com/carlosframework/platform/internal/proxyproto	0.938s
ok  	github.com/carlosframework/platform/internal/publicrelease	0.042s
ok  	github.com/carlosframework/platform/internal/ratelimit	0.168s
ok  	github.com/carlosframework/platform/internal/regionlabel	0.057s
ok  	github.com/carlosframework/platform/internal/regionname	0.039s
ok  	github.com/carlosframework/platform/internal/registrar	0.010s
ok  	github.com/carlosframework/platform/internal/registrar/openprovider	0.227s
?   	github.com/carlosframework/platform/internal/registrar/registrartest	[no test files]
ok  	github.com/carlosframework/platform/internal/registry	88.267s
ok  	github.com/carlosframework/platform/internal/relay	7.722s
ok  	github.com/carlosframework/platform/internal/release	83.516s
ok  	github.com/carlosframework/platform/internal/replicagen	0.016s
ok  	github.com/carlosframework/platform/internal/replicas	0.044s
ok  	github.com/carlosframework/platform/internal/reqrec	8.389s
ok  	github.com/carlosframework/platform/internal/rollout	13.178s
ok  	github.com/carlosframework/platform/internal/rolloutwords	0.045s
ok  	github.com/carlosframework/platform/internal/rootaws	104.433s
ok  	github.com/carlosframework/platform/internal/rootfsimage	0.866s
ok  	github.com/carlosframework/platform/internal/rootparticipation	0.088s
ok  	github.com/carlosframework/platform/internal/rootstate	0.037s
ok  	github.com/carlosframework/platform/internal/runs	0.904s
ok  	github.com/carlosframework/platform/internal/s3compat	0.028s
ok  	github.com/carlosframework/platform/internal/s3fake	1.617s
ok  	github.com/carlosframework/platform/internal/safefile	0.049s
ok  	github.com/carlosframework/platform/internal/schedule	25.474s
ok  	github.com/carlosframework/platform/internal/seeds	0.044s
ok  	github.com/carlosframework/platform/internal/sim/litestreamfacts	5.032s
ok  	github.com/carlosframework/platform/internal/sim/mediajobs	47.094s
ok  	github.com/carlosframework/platform/internal/sim/regionha	26.827s
ok  	github.com/carlosframework/platform/internal/status	0.437s
ok  	github.com/carlosframework/platform/internal/steering	0.435s
ok  	github.com/carlosframework/platform/internal/stopevidence	0.437s
ok  	github.com/carlosframework/platform/internal/storecfg	0.534s
ok  	github.com/carlosframework/platform/internal/svcrole	0.017s
ok  	github.com/carlosframework/platform/internal/systemd	6.796s
?   	github.com/carlosframework/platform/internal/systemdshow	[no test files]
ok  	github.com/carlosframework/platform/internal/team	4.426s
ok  	github.com/carlosframework/platform/internal/teamcontract	0.323s
ok  	github.com/carlosframework/platform/internal/telemetry	0.036s
ok  	github.com/carlosframework/platform/internal/termfence	5.184s
ok  	github.com/carlosframework/platform/internal/timerspec	0.026s
ok  	github.com/carlosframework/platform/internal/tsidentity	4.250s
ok  	github.com/carlosframework/platform/internal/tunnelclient	0.436s
ok  	github.com/carlosframework/platform/internal/unixdial	0.014s
ok  	github.com/carlosframework/platform/internal/updatewords	0.074s
ok  	github.com/carlosframework/platform/internal/upstreamguard	0.038s
?   	github.com/carlosframework/platform/internal/upstreamguard/guardtest	[no test files]
ok  	github.com/carlosframework/platform/internal/usage	0.022s
ok  	github.com/carlosframework/platform/internal/version	0.017s
ok  	github.com/carlosframework/platform/internal/vet	3.204s
ok  	github.com/carlosframework/platform/internal/zonehost	0.018s
ok  	github.com/carlosframework/platform/internal/zonehost/route53zones	0.063s
?   	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.017s
ok  	github.com/carlosframework/platform/scripts/pathmapcheck	0.057s
ok  	github.com/carlosframework/platform/scripts/region-ha-g2/fixture	5.191s
ok  	github.com/carlosframework/platform/scripts/stateless-replicas-drill	1.197s
ok  	github.com/carlosframework/platform/scripts/witness-pointer	0.021s
=== cutover-witness (147 s, from +14 s)
ok  	github.com/carlosframework/platform	1.811s
=== internal_grouproll@0 (275 s, from +72 s)
ok  	github.com/carlosframework/platform/internal/grouproll	273.760s
=== internal_grouproll@1 (280 s, from +72 s)
ok  	github.com/carlosframework/platform/internal/grouproll	278.701s
=== internal_activator@0 (149 s, from +143 s)
ok  	github.com/carlosframework/platform/internal/activator	145.470s
=== internal_activator@1 (134 s, from +143 s)
ok  	github.com/carlosframework/platform/internal/activator	129.158s
=== internal_activator@2 (138 s, from +143 s)
ok  	github.com/carlosframework/platform/internal/activator	134.141s
=== internal_activator@3 (171 s, from +143 s)
ok  	github.com/carlosframework/platform/internal/activator	166.564s
=== internal_edge@0 (202 s, from +160 s)
ok  	github.com/carlosframework/platform/internal/edge	190.227s
=== internal_edge@1 (198 s, from +160 s)
ok  	github.com/carlosframework/platform/internal/edge	186.787s
=== internal_edge@2 (168 s, from +160 s)
ok  	github.com/carlosframework/platform/internal/edge	155.493s
=== internal_edge@3 (168 s, from +160 s)
ok  	github.com/carlosframework/platform/internal/edge	155.718s
=== root@0 (127 s, from +165 s)
ok  	github.com/carlosframework/platform	115.391s
=== root@1 (115 s, from +165 s)
ok  	github.com/carlosframework/platform	104.041s
=== root@2 (124 s, from +165 s)
ok  	github.com/carlosframework/platform	114.307s
=== root@3 (118 s, from +165 s)
ok  	github.com/carlosframework/platform	106.925s
=== root@4 (105 s, from +165 s)
ok  	github.com/carlosframework/platform	94.109s
=== internal_host@0 (231 s, from +214 s)
ok  	github.com/carlosframework/platform/internal/host	226.463s
=== internal_host@1 (149 s, from +214 s)
ok  	github.com/carlosframework/platform/internal/host	145.023s
=== internal_host@2 (256 s, from +214 s)
ok  	github.com/carlosframework/platform/internal/host	252.351s
=== internal_host@3 (161 s, from +214 s)
ok  	github.com/carlosframework/platform/internal/host	157.137s
=== internal_host@4 (249 s, from +214 s)
ok  	github.com/carlosframework/platform/internal/host	245.500s
=== internal_host@5 (138 s, from +214 s)
ok  	github.com/carlosframework/platform/internal/host	133.916s
=== internal_console@0 (153 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	146.792s
=== internal_console@1 (168 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	160.883s
=== internal_console@2 (222 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	215.063s
=== internal_console@3 (240 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	233.032s
=== internal_console@4 (181 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	173.145s
=== internal_console@5 (224 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	216.170s
=== internal_console@6 (206 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	199.117s
=== internal_console@7 (205 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	197.953s
=== internal_console@8 (209 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	202.507s
=== internal_console@9 (213 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	206.314s
=== internal_console@10 (216 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	209.295s
=== internal_console@11 (201 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	193.488s
=== internal_console@12 (274 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	266.566s
=== internal_console@13 (202 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	195.011s
=== internal_console@14 (196 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	188.995s
=== internal_console@15 (209 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	201.882s
=== internal_console@16 (206 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	199.044s
=== internal_console@17 (200 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	193.229s
=== internal_console@18 (204 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	197.593s
=== internal_console@19 (202 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	194.758s
=== internal_console@20 (202 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	194.068s
=== internal_console@21 (242 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	234.921s
=== internal_console@22 (245 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	237.746s
=== internal_console@23 (250 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	243.456s
=== lists: internal_console 217 s, internal_edge 159 s, internal_activator 142 s, internal_host 213 s, root 163 s, internal_grouproll 72 s
=== cpu: the gate used 12493 cpu-seconds in 492 s, about 25.4 of 32 cores; the machine as a whole was 85% busy
=== opentofu ===
opentofu: 35 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      30 s  infra/modules/deployment-buckets/tests/data_lifecycle.tftest.hcl  Success! 3 passed, 0 failed.
  ok      14 s  infra/modules/deployment-buckets/tests/db_reads.tftest.hcl  Success! 1 passed, 0 failed.
  ok      17 s  infra/modules/deployment-buckets/tests/evidence.tftest.hcl  Success! 1 passed, 0 failed.
  ok      29 s  infra/modules/deployment-buckets/tests/fence_writers.tftest.hcl  Success! 3 passed, 0 failed.
  ok      84 s  infra/modules/media-engine/tests/media_engine.tftest.hcl  Success! 24 passed, 0 failed.
  ok      31 s  infra/modules/pdf-host/tests/computed.tftest.hcl  Success! 2 passed, 0 failed.
  ok      70 s  infra/modules/pdf-host/tests/pdf_host.tftest.hcl  Success! 24 passed, 0 failed.
  ok      46 s  infra/modules/region-group-operator-document/tests/document.tftest.hcl  Success! 12 passed, 0 failed.
  ok      24 s  infra/modules/region-host/ingress/tests/fixed-targets/tests/targets.tftest.hcl  Success! 2 passed, 0 failed.
  ok      69 s  infra/modules/region-host/ingress/tests/group_ingress.tftest.hcl  Success! 30 passed, 0 failed.
  ok      45 s  infra/modules/region-host/tests/alert_publish.tftest.hcl  Success! 18 passed, 0 failed.
  ok      40 s  infra/modules/region-host/tests/alerts_topic.tftest.hcl  Success! 16 passed, 0 failed.
  ok      15 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      10 s  infra/modules/region-host/tests/fixed_state_unchanged.tftest.hcl  Success! 1 passed, 0 failed.
  ok      68 s  infra/modules/region-host/tests/group.tftest.hcl  Success! 32 passed, 0 failed.
  ok      10 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       6 s  infra/modules/region-host/tests/group_isolation.tftest.hcl  Success! 1 passed, 0 failed.
  ok      35 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      25 s  infra/modules/region-host/tests/health_alarms.tftest.hcl  Success! 10 passed, 0 failed.
  ok      11 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      20 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      12 s  infra/modules/region-host/tests/managed_fleets/group_refusal.tftest.hcl  Success! 2 passed, 0 failed.
  ok     106 s  infra/modules/region-host/tests/managed_fleets/managed_fleets.tftest.hcl  Success! 46 passed, 0 failed.
  ok      71 s  infra/modules/region-host/tests/store_conversion.tftest.hcl  Success! 27 passed, 0 failed.
  ok      21 s  infra/modules/region-host/tests/store_scanning.tftest.hcl  Success! 4 passed, 0 failed.
  ok      19 s  infra/modules/region-host/tests/user_data_ignored.tftest.hcl  Success! 3 passed, 0 failed.
  ok      13 s  infra/modules/region-remote-host/tests/data_lifecycle.tftest.hcl  Success! 3 passed, 0 failed.
  ok      18 s  infra/modules/region-remote-host/tests/no_deployment_bucket.tftest.hcl  Success! 5 passed, 0 failed.
  ok      28 s  infra/modules/scanner-host/tests/scanner_host.tftest.hcl  Success! 14 passed, 0 failed.
opentofu: 35 files in 206 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: 65732770 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:30551
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/22 19:19:20 moves: T4: STORE: list: operation error S3: ListObjectsV2, https response error StatusCode: 403, RequestID: 18EA74323E2B9B77, HostID: 703b5e210d713b96457ed88241274221a98432f291fa11687770af09119efb52, 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.042s
=== 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.041s
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
=== 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/22 19:19:26 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/22 19:19:26 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/11/22 19:19:26 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/11/22 19:19:26 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/11/22 19:19:26 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=370
2026/11/22 19:19:26 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000002
2026/11/22 19:19:26 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/11/22 19:19:26 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=454
2026/11/22 19:19:26 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/11/22 19:19:26 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/22 19:19:26 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/11/22 19:19:26 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/11/22 19:19:26 console: CARLOS_SECRETS_PUBKEY is unset, so no region outside the home can be chosen automatically
2026/11/22 19:19:26 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%3A37637: could not determine target mailbox
    agent.go:136: dbreads: dbr_ymsq6rjjap26pe3dszejody2oq: planned 1 files (720 bytes) and restored to 1 in 13ms
    agent.go:136: dbreads: dbr_ymsq6rjjap26pe3dszejody2oq: output 5 bytes in 1 confirmed chunks in 2ms
2026/11/22 19:19:27 console: db read dbr_ymsq6rjjap26pe3dszejody2oq: relayed 1 chunks (102 bytes) in 1.006s, ended done
    agent.go:136: dbreads: dbr_iamdp5zqkqooysqanp4et6wr4m: planned 3 files (1544 bytes) and restored to 3 in 14ms
    agent.go:136: dbreads: dbr_iamdp5zqkqooysqanp4et6wr4m: output 5 bytes in 1 confirmed chunks in 2ms
2026/11/22 19:19:27 console: db read dbr_iamdp5zqkqooysqanp4et6wr4m: relayed 1 chunks (102 bytes) in 51ms, ended done
    agent.go:136: dbreads: dbr_n2d6v2kuno26eleogns43rj7mq: planned 3 files (1544 bytes) and held through 3 in 13ms
    agent.go:136: dbreads: dbr_n2d6v2kuno26eleogns43rj7mq: output 1544 bytes in 1 confirmed chunks in 1ms
2026/11/22 19:19:28 console: db read dbr_n2d6v2kuno26eleogns43rj7mq: relayed 1 chunks (1641 bytes) in 1.006s, ended done
=== RUN   TestDBForwardMinio/by_disconnect
=== NAME  TestDBForwardMinio
    agent.go:136: dbreads: dbr_dnodjdou57wnqmakb2t2fu54qi: planned 3 files (1544 bytes) and restored to 3 in 16ms
2026/11/22 19:19:28 console: db read dbr_dnodjdou57wnqmakb2t2fu54qi: relayed 0 chunks (0 bytes) in 36ms, ended client gone
    agent.go:136: dbreads: dbr_dnodjdou57wnqmakb2t2fu54qi: output 5 bytes in 1 confirmed chunks in 104ms
=== RUN   TestDBForwardMinio/by_timeout
=== NAME  TestDBForwardMinio
    agent.go:136: dbreads: dbr_z4sabmjvafgewx6n2hag2s27pi: planned 3 files (1544 bytes) and restored to 3 in 13ms
2026/11/22 19:19:49 console: db read dbr_z4sabmjvafgewx6n2hag2s27pi: relayed 0 chunks (0 bytes) in 19.98s, ended no-result
    agent.go:136: dbreads: dbr_z4sabmjvafgewx6n2hag2s27pi: output 5 bytes in 1 confirmed chunks in 19.956s
--- PASS: TestDBForwardMinio (22.71s)
    --- PASS: TestDBForwardMinio/by_disconnect (0.25s)
    --- PASS: TestDBForwardMinio/by_timeout (20.09s)
PASS
ok  	github.com/carlosframework/platform/internal/console	22.752s
Bucket created successfully `local/media-transfers`.
Bucket created successfully `local/media-transfer-results`.
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.05s)
PASS
ok  	github.com/carlosframework/platform/internal/mediaaws	0.060s
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.54s)
PASS
ok  	github.com/carlosframework/platform/internal/medialocal	0.550s
=== RUN   TestHeldHandoverTwoBoxMinio
2026/11/22 19:19:53 edge: mesh key: minted
2026/11/22 19:19:54 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/22 19:19:54 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/22 19:19:54 tenant admission is open. accepting tenant work
2026/11/22 19:19:54 activator: HA placement host=shop-f5f5562d.example.test kind=Place ref=annie reason=roomiest generation=2026-11-22T19:19:54Z lock_generation=0
2026/11/22 19:19:54 lease: t8-f5f5562d/shop-f5f5562d.example.test: HA lease acquired in 4ms (first wake)
2026/11/22 19:19:54 activator: shop-f5f5562d.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/22 19:19:54 activator: shop-f5f5562d.example.test: started carlos-instance@shop\x2df5f5562d.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/22 19:19:54 activator: shop-f5f5562d.example.test: carlos-instance@shop\x2df5f5562d.example.test.service launched in 7ms, healthy 0s later
2026/11/22 19:19:54 activator: shop-f5f5562d.example.test: woke in 19ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 7ms, replicate 7ms
2026/11/22 19:19:54 lease: t8-f5f5562d/plain-f5f5562d.example.test: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/22 19:19:54 activator: no replica for plain-f5f5562d.example.test in s3://contract-bucket/t8-f5f5562d/plain-f5f5562d.example.test — booting fresh
2026/11/22 19:19:54 activator: plain-f5f5562d.example.test: started carlos-instance@plain\x2df5f5562d.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/22 19:19:54 activator: plain-f5f5562d.example.test: carlos-instance@plain\x2df5f5562d.example.test.service launched in 6ms, healthy 0s later
2026/11/22 19:19:54 activator: plain-f5f5562d.example.test: woke in 89ms: checks 0s, lease 2ms, restore 17ms, identity 0s, protect 0s, spawn 7ms, replicate 63ms
2026/11/22 19:19:54 lease: t8-f5f5562d/bot0.shop.bac.sidecar.internal: HA lease acquired in 3ms (first wake)
2026/11/22 19:19:54 activator: bot0.shop.bac.sidecar.internal: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/22 19:19:54 activator: bot0.shop.bac.sidecar.internal: woke in 16ms: checks 0s, lease 4ms, restore 0s, identity 0s, protect 0s, spawn 7ms, settle 0s, replicate 5ms
2026/11/22 19:19:54 activator: next-due probe plain-f5f5562d.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/22 19:19:54 activator: plain-f5f5562d.example.test hibernated
2026/11/22 19:19:54 activator: next-due probe shop-f5f5562d.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/22 19:19:54 activator: bot0.shop.bac.sidecar.internal: released with a marker (clean true, txid 1, files 3:7a08a79d9ea226abb608fdf9671c78525c1b1c414411996ac5b2e89c544139a3) in 8ms: files 1ms, sync 4ms, record 1ms, marker 2ms
2026/11/22 19:19:54 activator: bot0.shop.bac.sidecar.internal hibernated
2026/11/22 19:19:54 activator: shop-f5f5562d.example.test: released with a marker (clean true, txid 1, files 3:d2cc1c03fe748c5c6115ef440181a53cbb7c0e8a7dc8e85abcc10f40a54bf68d) in 6ms: files 1ms, sync 3ms, record 1ms, marker 2ms
2026/11/22 19:19:54 activator: shop-f5f5562d.example.test hibernated
2026/11/22 19:19:54 lease: t8-f5f5562d/shop-f5f5562d.example.test: HA lease acquired in 3ms (clean marker)
2026/11/22 19:19:54 activator: shop-f5f5562d.example.test: restored (other-box)
2026/11/22 19:19:54 activator: shop-f5f5562d.example.test: started carlos-instance@shop\x2df5f5562d.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) 1ms, launch file 0s, gate 0s, root start 1ms)
2026/11/22 19:19:54 activator: shop-f5f5562d.example.test: carlos-instance@shop\x2df5f5562d.example.test.service launched in 2ms, healthy 0s later
2026/11/22 19:19:54 activator: shop-f5f5562d.example.test: woke in 85ms: checks 0s, lease 3ms, restore 25ms, identity 0s, protect 0s, spawn 2ms, replicate 55ms
2026/11/22 19:19:54 edge: ha-take shop-f5f5562d.example.test from annie (txn t8-witness, marker generation 1): holder betty, generation 2
2026/11/22 19:19:54 edge: forward shop-f5f5562d.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:220c9f62c96fe43d9796cd56ca54af87 Step:move Result:ok Reasons:[] Fence:t8-witness StartedAt:2026-11-22 19:19:54.318673596 +0000 UTC FinishedAt:2026-11-22 19:19:54.465370129 +0000 UTC Acked:[betty carol] Departed:[] Moved:[{Host:shop-f5f5562d.example.test Holder:betty Gen:2 Confirmed:take}] Released:[{Host:plain-f5f5562d.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:115 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-f5f5562d.example.test <nil> releasing shop-f5f5562d.example.test <nil> stop plain-f5f5562d.example.test marker=true clean=true <nil> stop bot0.shop.bac.sidecar.internal marker=true clean=true <nil> stop shop-f5f5562d.example.test marker=true clean=true <nil> taken shop-f5f5562d.example.test betty <nil> end-moves]
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/bot0.shop.bac.sidecar.internal/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/bot0.shop.bac.sidecar.internal/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/bot0.shop.bac.sidecar.internal/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-f5f5562d/shop-f5f5562d.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: DELETE /contract-bucket/t8-f5f5562d/plain-f5f5562d.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-f5f5562d/bot0.shop.bac.sidecar.internal/0009/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-f5f5562d/bot0.shop.bac.sidecar.internal/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-f5f5562d/shop-f5f5562d.example.test/0009/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-f5f5562d/shop-f5f5562d.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-f5f5562d/shop-f5f5562d.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-f5f5562d/shop-f5f5562d.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-f5f5562d/shop-f5f5562d.example.test/head.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/generations/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0008/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0007/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0006/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0005/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0004/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0008/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0007/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0006/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0005/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0004/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-f5f5562d/shop-f5f5562d.example.test/0009/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-f5f5562d/shop-f5f5562d.example.test/files/0/manifest.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-f5f5562d/shop-f5f5562d.example.test/files/0/objects/0000000000000001-2968844af9e8bc6487c64d17f2a8279beb125b24eab2168e18639f0d95344675
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-f5f5562d/shop-f5f5562d.example.test/files/0/objects/0000000000000003-5dd000caacb420855e2f3a0b5361336f402bcc0d5eed011a39543e60cfbbae4e
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-f5f5562d/shop-f5f5562d.example.test/0000/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f5f5562d/shop-f5f5562d.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-f5f5562d/shop-f5f5562d.example.test/0000/0000000000000002-0000000000000002.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-f5f5562d/shop-f5f5562d.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1243: drain took 204ms; S3 calls 46 (DELETE lock=1 GET files=3 GET head=1 GET lock=3 GET replica=2 LIST replica=30 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/22 19:19:54 lease: t8-f5f5562d/plain-f5f5562d.example.test: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/22 19:19:54 activator: plain-f5f5562d.example.test: started carlos-instance@plain\x2df5f5562d.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/22 19:19:54 activator: plain-f5f5562d.example.test: carlos-instance@plain\x2df5f5562d.example.test.service launched in 1ms, healthy 0s later
2026/11/22 19:19:54 lease: /tmp/carlos-minio-contract-bVH6Sp/g/dw943544085/data/instances/plain-f5f5562d.example.test/plain-f5f5562d.example.test.db: continuity with the last clean close not proven; snapshot 1-0000000000000001 written before serving
2026/11/22 19:19:54 activator: plain-f5f5562d.example.test: woke in 10ms: checks 0s, lease 1ms, restore 0s, identity 0s, protect 1ms, spawn 1ms, replicate 6ms
2026/11/22 19:19:54 activator: next-due probe shop-f5f5562d.example.test: decode /api/next-due: invalid character 'b' looking for beginning of value — recording none (it sleeps until a request)
2026/11/22 19:19:54 activator: shop-f5f5562d.example.test: released with a marker (clean true, txid 2, files 3:d2cc1c03fe748c5c6115ef440181a53cbb7c0e8a7dc8e85abcc10f40a54bf68d) in 4ms: files 1ms, sync 0s, record 1ms, marker 2ms
2026/11/22 19:19:54 activator: shop-f5f5562d.example.test hibernated
2026/11/22 19:19:54 tenant admission is closed for shutdown
2026/11/22 19:19:54 activator: next-due probe plain-f5f5562d.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/22 19:19:54 activator: plain-f5f5562d.example.test hibernated
--- PASS: TestHeldHandoverTwoBoxMinio (0.57s)
=== RUN   TestHeldHandoverLostLeaseMinio
2026/11/22 19:19:54 edge: mesh key: minted
2026/11/22 19:19:54 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/22 19:19:54 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/22 19:19:54 tenant admission is open. accepting tenant work
2026/11/22 19:19:54 activator: HA placement host=shop-f986f91b.example.test kind=Place ref=annie reason=roomiest generation=2026-11-22T19:19:54Z lock_generation=0
2026/11/22 19:19:54 lease: t8-f986f91b/shop-f986f91b.example.test: HA lease acquired in 3ms (first wake)
2026/11/22 19:19:54 activator: shop-f986f91b.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/22 19:19:54 activator: shop-f986f91b.example.test: started carlos-instance@shop\x2df986f91b.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/22 19:19:54 activator: shop-f986f91b.example.test: carlos-instance@shop\x2df986f91b.example.test.service launched in 7ms, healthy 0s later
2026/11/22 19:19:54 activator: shop-f986f91b.example.test: woke in 64ms: checks 0s, lease 4ms, restore 0s, identity 0s, protect 0s, spawn 7ms, replicate 53ms
2026/11/22 19:19:54 activator: next-due probe shop-f986f91b.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/22 19:19:54 activator: final checkpoint shop-f986f91b.example.test: lease: release marker owed for s3://contract-bucket/t8-f986f91b/shop-f986f91b.example.test/lock.json (If-Match "744e37747a460914cb5d3340e234412b"): lease: write release marker: operation error S3: PutObject, https response error StatusCode: 503, RequestID: , HostID: , api error ServiceUnavailable: witness: refused
2026/11/22 19:19:54 activator: shop-f986f91b.example.test hibernated
2026/11/22 19:19:54 activator: handover of shop-f986f91b.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-f986f91b.example.test client 4 "
    hadrain_twobox_minio_linux_test.go:1486: driver calls: [begin shop-f986f91b.example.test <nil> releasing shop-f986f91b.example.test <nil> stop shop-f986f91b.example.test marker=false clean=false <nil> left shop-f986f91b.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/22 19:19:54 tenant admission is closed for shutdown
2026/11/22 19:19:54 http: proxy error: context canceled
--- PASS: TestHeldHandoverLostLeaseMinio (0.32s)
PASS
ok  	github.com/carlosframework/platform/internal/host	0.926s
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/22 19:19:56 lease: instances/gen-1795375196020943455.shop.example.com: HA lease acquired in 5ms (first wake)
2026/11/22 19:19:56 lease: instances/gen-1795375196020943455.shop.example.com: HA lease acquired in 3ms (holder terminated)
    gentake_minio_test.go:308: a second create-only copy onto instances/gen-1795375196020943455.shop.example.com/g-00000000000000000002/0000/0000000000000001-0000000000000001.ltx: <nil> (destination condition honoured: false)
2026/11/22 19:19:56 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/22 19:19:56 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)"
2026/11/22 19:19:56 http: proxy error: context canceled
=== RUN   TestGenerationTakeMinio/switch-412
2026/11/22 19:19:56 lease: instances/gen-1795375196149901248.shop.example.com: HA lease acquired in 3ms (first wake)
2026/11/22 19:19:56 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/22 19:19:56 lease: instances/gen-1795375196149901248.shop.example.com: HA lease acquired in 3ms (clean marker)
=== RUN   TestGenerationTakeMinio/copy-version
=== RUN   TestGenerationTakeMinio/store-time
2026/11/22 19:19:56 lease: instances/gen-1795375196198718129.shop.example.com: HA lease acquired in 3ms (first wake)
2026/11/22 19:19:56 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/22 19:19:56 lease: instances/gen-1795375196198718129.shop.example.com: HA lease acquired in 2ms (clean marker)
2026/11/22 19:19:56 lease: instances/gen-1795375196198718129.shop.example.com: HA lease acquired in 3ms (unclean marker)
2026/11/22 19:19:56 lease: instances/gen-1795375196198718129.shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/11/22 19:19:56 lease: instances/gen-1795375196198718129.shop.example.com: HA lease acquired in 3ms (unclean marker)
2026/11/22 19:19:56 lease: instances/gen-1795375196198718129.shop.example.com: HA lease acquired in 3ms (unclean marker)
=== RUN   TestGenerationTakeMinio/skew
--- PASS: TestGenerationTakeMinio (0.30s)
    --- PASS: TestGenerationTakeMinio/take (0.13s)
    --- PASS: TestGenerationTakeMinio/switch-412 (0.04s)
    --- PASS: TestGenerationTakeMinio/copy-version (0.01s)
    --- PASS: TestGenerationTakeMinio/store-time (0.11s)
    --- PASS: TestGenerationTakeMinio/skew (0.01s)
PASS
ok  	github.com/carlosframework/platform/internal/lease	0.306s
minio contract: PASS
=== staticcheck ===
go version go1.26.10 linux/arm64
go: downloading honnef.co/go/tools v0.8.2
go: downloading github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c
go: downloading golang.org/x/exp/typeparams v0.0.0-20231108232855-2478ac86f678
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
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 1m47.836s
    codehealth_test.go:107: line metrics (code lines, then physical):
          file-lines  5471  7324  internal/activator activator_test.go
          file-lines  4219  7040  internal/console server.go
          file-lines  4184  6365  . apimode.go
          file-lines  3783  7200  internal/activator activator.go
          file-lines  3530  4459  . apimode_test.go
          file-lines  3261  3864  internal/registry registry_test.go
          file-lines  3211  6362  internal/host agent.go
          file-lines  3094  3992  internal/provision reconcile_test.go
          func-lines   870   891  internal/host plan14InstalledClaimLaunch
          func-lines   811  1275  internal/provision Reconcile
          func-lines   769  1242  internal/console (*Server).handleAPIInstanceCreate
          func-lines   688  1232  internal/host runAgent
          func-lines   570   903  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   809  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   379   898  internal/edge (*Edge).ServeHTTP
          func-lines   378   600  internal/console (*Server).handleAPIShip
          func-lines   374   377  internal/host plan14RequiredArtifactsRootRunner
          func-lines   371   417  internal/host TestRootEgressKernelProof
          func-lines   367   635  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 (205 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/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
          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/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/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/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/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/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/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         18617 at   45 sites  functions over 300 code lines (blank and comment-only lines not counted)
    codehealth_test.go:115: file-lines         30753 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/host agent.go -: 3211 in the code, the record allows 3214 (make code-health-record lowers it)
--- PASS: TestCodeHealth (107.84s)
PASS
ok  	github.com/carlosframework/platform/internal/codehealth	108.870s
=== code-health-record ===
go version go1.26.10 linux/arm64
code-health record: comparing with the merge base 887caf2b16a29dfea99daa36bf58d6614feb1c66 (main is 887caf2b16a29dfea99daa36bf58d6614feb1c66)
=== 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 (12 s, from +14 s)
ok  	github.com/carlosframework/platform/internal/systemd	12.415s
=== internal_rootaws@0 (25 s, from +34 s)
ok  	github.com/carlosframework/platform/internal/rootaws	24.957s
=== internal_activator@0 (263 s, from +111 s)
ok  	github.com/carlosframework/platform/internal/activator	261.266s
=== internal_activator@1 (259 s, from +111 s)
ok  	github.com/carlosframework/platform/internal/activator	257.643s
=== internal_activator@2 (311 s, from +111 s)
ok  	github.com/carlosframework/platform/internal/activator	308.865s
=== internal_activator@3 (383 s, from +111 s)
ok  	github.com/carlosframework/platform/internal/activator	381.707s
=== internal_activator@4 (295 s, from +111 s)
ok  	github.com/carlosframework/platform/internal/activator	293.224s
=== internal_activator@5 (323 s, from +111 s)
ok  	github.com/carlosframework/platform/internal/activator	321.275s
=== internal_activator@6 (300 s, from +111 s)
ok  	github.com/carlosframework/platform/internal/activator	298.434s
=== internal_activator@7 (405 s, from +111 s)
ok  	github.com/carlosframework/platform/internal/activator	403.421s
=== internal_edge@0 (83 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	80.325s
=== internal_edge@1 (63 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	60.010s
=== internal_edge@2 (188 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	185.183s
=== internal_edge@3 (149 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	145.733s
=== internal_edge@4 (169 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	166.177s
=== internal_edge@5 (235 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	232.238s
=== internal_edge@6 (216 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	212.831s
=== internal_edge@7 (223 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	220.061s
=== internal_edge@8 (213 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	209.918s
=== internal_edge@9 (318 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	314.670s
=== internal_edge@10 (208 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	204.793s
=== internal_edge@11 (247 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	243.567s
=== internal_edge@12 (245 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	241.799s
=== internal_edge@13 (246 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	242.619s
=== internal_edge@14 (197 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	193.723s
=== internal_edge@15 (257 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	253.726s
=== internal_host@0 (14 s, from +190 s)
ok  	github.com/carlosframework/platform/internal/host	10.809s
=== internal_host@1 (9 s, from +190 s)
ok  	github.com/carlosframework/platform/internal/host	5.501s
=== lists: internal_edge 130 s, internal_activator 110 s, internal_host 189 s, internal_rootaws 33 s, internal_systemd 13 s
=== cpu: the gate used 7593 cpu-seconds in 516 s, about 14.7 of 32 cores; the machine as a whole was 45% 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/hashicorp/go-version v1.7.0
go: downloading github.com/BobuSumisu/aho-corasick v1.0.3
go: downloading golang.org/x/exp v0.0.0-20250218142911-aa4b98e5adaa
go: downloading github.com/Masterminds/sprig/v3 v3.3.0
go: downloading github.com/charmbracelet/lipgloss v0.5.0
go: downloading github.com/fatih/semgroup v1.2.0
go: downloading github.com/gitleaks/go-gitdiff v0.9.1
go: downloading github.com/mholt/archives v0.1.2
go: downloading github.com/spf13/cobra v1.9.1
go: downloading github.com/spf13/viper v1.19.0
go: downloading github.com/h2non/filetype v1.1.3
go: downloading golang.org/x/sync v0.11.0
go: downloading github.com/mattn/go-runewidth v0.0.14
go: downloading github.com/muesli/reflow v0.2.1-0.20210115123740-9e1d0d53df68
go: downloading github.com/muesli/termenv v0.15.1
go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
go: downloading github.com/huandu/xstrings v1.5.0
go: downloading github.com/shopspring/decimal v1.4.0
go: downloading golang.org/x/crypto v0.35.0
go: downloading github.com/Masterminds/goutils v1.1.1
go: downloading dario.cat/mergo v1.0.1
go: downloading github.com/spf13/cast v1.7.1
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/spf13/pflag v1.0.6
go: downloading github.com/sagikazarmark/slog-shim v0.1.0
go: downloading github.com/Masterminds/semver/v3 v3.3.0
go: downloading github.com/spf13/afero v1.12.0
go: downloading github.com/fsnotify/fsnotify v1.8.0
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/mitchellh/copystructure v1.2.0
go: downloading github.com/subosito/gotenv v1.6.0
go: downloading gopkg.in/ini.v1 v1.67.0
go: downloading github.com/magiconair/properties v1.8.9
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/pelletier/go-toml/v2 v2.2.3
go: downloading github.com/mattn/go-colorable v0.1.14
go: downloading github.com/mitchellh/reflectwalk v1.0.2
go: downloading golang.org/x/sys v0.30.0
go: downloading github.com/aymanbagabas/go-osc52/v2 v2.0.1
go: downloading golang.org/x/text v0.22.0
go: downloading github.com/ulikunitz/xz v0.5.12
go: downloading github.com/klauspost/compress v1.17.11
go: downloading github.com/bodgit/sevenzip v1.6.0
go: downloading github.com/pierrec/lz4/v4 v4.1.21
go: downloading github.com/sorairolake/lzip-go v0.3.5
go: downloading github.com/STARRY-S/zip v0.2.1
go: downloading github.com/nwaples/rardecode/v2 v2.1.0
go: downloading github.com/andybalholm/brotli v1.1.2-0.20250424173009-453214e765f3
go: downloading github.com/klauspost/pgzip v1.2.6
go: downloading github.com/minio/minlz v1.0.0
go: downloading github.com/dsnet/compress v0.0.2-0.20230904184137-39efe44ab707
go: downloading github.com/therootcompany/xz v1.0.1
go: downloading github.com/rivo/uniseg v0.2.0
go: downloading github.com/bodgit/plumbing v1.3.0
go: downloading github.com/hashicorp/go-multierror v1.1.1
go: downloading github.com/bodgit/windows v1.0.1
go: downloading go4.org v0.0.0-20230225012048-214862532bf5
go: downloading github.com/hashicorp/golang-lru/v2 v2.0.7
go: downloading github.com/hashicorp/errwrap v1.1.0
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 94 near misses of the names notscanned.go lists
self-test: skipped  the 31 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, 126 tracked files judged, 3 broken setups refused
gitleaks: scanned 11293 tracked files; 31 not scanned, by exact path (scripts/gitleaks-gate/notscanned.go)
internal/provision/stateless_scale_2_fleet_sizes_census_test.go:46: generic-api-key
internal/provision/stateless_scale_2_fleet_sizes_census_test.go:47: generic-api-key
gitleaks-gate: 2 findings above: remove the value and rotate it if it was ever real; a fake a test needs is allowed by exact value in .gitleaks.toml
exit status 1
make: *** [Makefile:142: gitleaks] Error 1

amadan: step gitleaks failed: exit status 2

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

Intent

Human

<task-notification> <task-id>a01e073e687605611</task-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/29a43d67-87d2-4557-8e9d-9b70d303a90b/tasks/a01e073e687605611.output</output-file> <status>completed</status> <summary>Agent "Fix S2 CI failures" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>**Status:** Two of the four failures (a and b) are fixed and committed, not pushed. The other two (c and d) are flakes, so I changed nothing for them. All the checks you listed pass: the failing tests, your console test set (ok, 995.8s), the provision census tests, `go build ./...` and the darwin, windows and linux/arm64 builds. `make census-card` came back clean, so nothing was re-proposed. **Commit:** `1dec6d76` fix: no new policy read on plain creates or replica passes (#892 S2) **Per failure:** - **(a) TestPerfWriteRoutesMeetTheBudget: fixed.** The one extra request was the create gate's `GET control/app-policy/...` (`appFleetSizeOf` in `copiesCreateCheck`), and the create path had no existing read to reuse. Creates now first check the console's own policy row, which is a database read and costs no S3 request. An app whose settled row names no fleet size, and which has no bucket object still waiting for the re-sign pass, now makes no policy read. A recorded fleet size, an unpublished change or an unreadable row still makes the full read. The locks stay at 54 and 108. I added `TestFleetSizeCreateScreen`, and three deliberate breakages of the new check were each caught. - **(b) TestReplicaEvidenceRefreshesChangedInventory: fixed.** The fleet-size check in replica placement now works from the policy the pass already reads plus the recorded row, following `readPolicyBase`'s rules. That is back to one policy GET per app per pass, so `TestReplicaPlacementReadAccounting` is back at its original budget of 1. `reconcileReplicaApp` is re-pinned in `stateless_scale_2_fleet_sizes_census_test.go`. - **(c) cmd/console TestServeMediaWiring: flake.** It passed 20 of 20 runs at the tip. The branch's startup-adjacent changes are only nil test hooks and a store helper split. The likely cause is a port race: `freeLoopbackAddr` closes the port before `serve` binds it. The serve output in the CI log would confirm this; I didn't have it. - **(d) activator TestRootfsWorkersStartAfterWebHealthy: flake.** It passed 20 of 20, then 30 of 30 with `GOMAXPROCS=2`. Task 4's reservation returns immediately for sizes that aren't fleet sizes, and the release added to `leaveSet` is on a nil token. The leftover directory belongs to the second rig, written by existing async generation code the branch doesn't change. **Concerns:** 1. **The create door can now miss a fleet size that exists only in the bucket.** This happens when another console wrote the policy, or after a database restore before the re-sign pass first lists the policies. In those cases the create is allowed, and the box's own refusal of a size it can't run is the safety net. Placement, copies, replica placement, relabel/drain and the policy door still read the bucket. There is no S3-free way to close this gap without the read, so this is a review decision. 2. **Four existing create tests needed a helper change.** They had written the policy to the bucket only. The test helper `putShopPolicy` now also records the console's row, which is the normal state for a policy the console wrote or adopted. 3. **The report is not in git.** It is at `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/.superpowers/sdd/2026-11-22-892-s2-fleet-sizes/ci-fix-report.md`, and `.superpowers` is gitignored, so it sits on disk only. 4. **Git printed a `packed-refs.lock` "file exists" error during the commit.** The commit still landed on the branch. The lock file is probably another session's, and I did not touch it.</result> <usage><subagent_tokens>159118</subagent_tokens><tool_uses>72</tool_uses><duration_ms>2291157</duration_ms></usage> </task-notification>

Human

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

Human

<task-notification> <task-id>a01e073e687605611</task-id> <tool-use-id>toolu_01HCc9eVeaCRTaXf6nitHa5V</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/29a43d67-87d2-4557-8e9d-9b70d303a90b/tasks/a01e073e687605611.output</output-file> <status>completed</status> <summary>Agent "Fix S2 CI failures" is waiting on its own background work</summary> <note>This agent stopped with background work of its own still running. It may resume on its own when that work completes or reports, and the same task-id notifies again if it does; the result below may be interim.</note> <result>Waiting for the verification run to finish.</result> <usage><subagent_tokens>173785</subagent_tokens><tool_uses>9</tool_uses><duration_ms>174168</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>bntmwhkbd</task-id> <tool-use-id>toolu_01DcwMnQcZgA9PuTBsT8oFaf</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/29a43d67-87d2-4557-8e9d-9b70d303a90b/tasks/bntmwhkbd.output</output-file> <status>completed</status> <summary>Monitor "S2 CI on 1dec6d76 finishes" stream ended</summary> <event>carlos/platform @ 1dec6d76c (branch stateless-scale-2-fleet-sizes): CI failed</event> </task-notification>

Human

<task-notification> <task-id>a01e073e687605611</task-id> <tool-use-id>toolu_011q9X7735hXk3aUYF8hqKCd</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/29a43d67-87d2-4557-8e9d-9b70d303a90b/tasks/a01e073e687605611.output</output-file> <status>completed</status> <summary>Agent "Fix S2 CI failures" is waiting on its own background work</summary> <note>This agent stopped with background work of its own still running. It may resume on its own when that work completes or reports, and the same task-id notifies again if it does; the result below may be interim.</note> <result>Waiting on the console test set before committing.</result> <usage><subagent_tokens>214205</subagent_tokens><tool_uses>40</tool_uses><duration_ms>1725525</duration_ms></usage> </task-notification>

Attributed to this commit: 32.7 g CO₂e (4,195,175 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on stateless-scale-2-fleet-sizes, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/docs/superpowers/notes/census-proposal-stateless-scale-2-fleet-sizes.md b/docs/superpowers/notes/census-proposal-stateless-scale-2-fleet-sizes.md
index 89364c2ef..600849d69 100644
--- a/docs/superpowers/notes/census-proposal-stateless-scale-2-fleet-sizes.md
+++ b/docs/superpowers/notes/census-proposal-stateless-scale-2-fleet-sizes.md
@@ -4,7 +4,7 @@ Ruling `census-ruling-stateless-scale-2-fleet-sizes`. The independent reviewer a
| unit | change | read sites | what changed |
|---|---|---|---|
-| `internal/activator/activator.go` `type Service` | body | unchanged (0) | the agent (carlos-edge.service, user carlos), not root: two fields (#892 S2): BoxLabel (string, the rollout's own box label, set by armRollout) and fleetReserve (*fleetReservations, made by New with memAvailable), the box's in-memory overlap reservation for fleet sizes. Declaration only; no read added |
+| `internal/activator/activator.go` `type Service` | body | unchanged (0) | the agent (carlos-edge.service, user carlos), not root: one embedded field (#892 S2), fleetSizeService (fleetreserve.go), which holds BoxLabel (string, the rollout's own box label, set by armRollout) and fleetReserve (fleetReservations, ready as its zero value; it reads /proc/meminfo through memAvailable only when a fleet-size overlap reserves), the box's in-memory overlap reservation for fleet sizes. Declaration only; no read added |
| `internal/activator/opset.go` `Service.leaveSet` | body | unchanged (2) | the agent as carlos (#892 S2): after a member's termination is proven and it leaves the set, the fleet-size overlap reservation it holds (genMember.reserve) is released, in memory, under a.mu. No read added; no root call added; the restore and the proof are unchanged |
| `internal/activator/swap.go` `Service.swapOverlap` | body | unchanged (17) | the agent as carlos (#892 S2): after admission and before the raise, a successor whose tier is a fleet size reserves its full MemoryMax through reserveFleetOverlap (memAvailable reads /proc/meminfo). With no room or an unreadable read the attempt is abandoned with PS-2-C05 before any raise, publication or spawn; the incumbent keeps serving. The token is stored on the member, released at once on a refused raise, a failed publication or a refused exec gate (nothing spawned), and otherwise moves to the retiring member at the switch. Adds a refusal only; the raise still goes to root's /parent unchanged; no root decision here. Read sites unchanged (17) |
| `internal/cgroup/cgroup.go` `setup` | body | unchanged (1) | the agent (carlos-edge.service, user carlos), not root: setup now also records a fleet-size gate on the agent's own Manager when CARLOS_FLEET is set in its environment (os.Getenv, beside the existing CARLOS_IMDS_FLAT_FENCE read). The gate's MemTotal closure reads /proc/meminfo through ReadMemTotal when a strict prepare is asked for a fleet size (#892 S2). It only lets the strict validators (PrepareStrict, PrepareGen, SetParentLimit) accept the new fleet rows within FleetMemoryBudget; without CARLOS_FLEET they take small..xlarge and today's parents exactly as before. Reads added: env CARLOS_FLEET; /proc/meminfo (kernel, fixed path) via the closure |
diff --git a/internal/activator/activator.go b/internal/activator/activator.go
index d3d63853c..c2b64e829 100644
--- a/internal/activator/activator.go
+++ b/internal/activator/activator.go
@@ -1413,13 +1413,8 @@ type Service struct {
// box at the route's Assigned), or on a fleet whose identity is invalid
// (every labelled wake refused). Set before Start, like Routes.
Fleet FleetWake
- // BoxLabel is this box's label as the rollout's events name it
- // (host.rolloutBox): PS-2-C05, a refused fleet-size overlap, names it.
- // Set before the rollout manager starts.
- BoxLabel string
- // fleetReserve is the box's overlap memory reservation for fleet sizes
- // (#892 S2, fleetreserve.go): one per Service.
- fleetReserve *fleetReservations
+
+ fleetSizeService // #892 S2: BoxLabel and the overlap reservation (fleetreserve.go)
// Logs, when non-nil, receives member-visible platform events (wake
// outcomes, restart bounces) for `carlos logs` — set before Start, like
@@ -1781,8 +1776,6 @@ func New(cfg Config, backend Backend, due DueStore) *Service {
now: time.Now,
entries: make(map[string]*actEntry),
gens: GenerationsEnabled(),
- // The fleet-size overlap reservation (#892 S2) reads MemAvailable.
- fleetReserve: newFleetReservations(memAvailable),
}
a.initHALosses()
a.wakeSlots = make(chan struct{}, wakeSlotCount(cfg.WakeSlots))
diff --git a/internal/activator/fleetreserve.go b/internal/activator/fleetreserve.go
index 4addab154..8ea8cab76 100644
--- a/internal/activator/fleetreserve.go
+++ b/internal/activator/fleetreserve.go
@@ -46,12 +46,24 @@ var ErrFleetOverlapRefused = errors.New("fleet-size overlap refused: no memory r
// the box's label, the one the rollout's own events name.
const fleetNoRoomMsg = "not enough free memory on %s to start the new build beside the old one. the old build is still serving"
+// fleetSizeService is the Service's fleet-size state (#892 S2), embedded
+// in Service.
+type fleetSizeService struct {
+ // BoxLabel is this box's label as the rollout's events name it
+ // (host.rolloutBox): PS-2-C05, a refused fleet-size overlap, names it.
+ // Set before the rollout manager starts.
+ BoxLabel string
+ // fleetReserve is the box's overlap memory reservation for fleet sizes:
+ // one per Service, ready as its zero value (it reads MemAvailable).
+ fleetReserve fleetReservations
+}
+
// fleetReservations is the box's reserved overlap memory. One per Service.
type fleetReservations struct {
mu sync.Mutex
reserved int64
// avail is the box's available memory in bytes: /proc/meminfo
- // MemAvailable in production (memAvailable).
+ // MemAvailable (memAvailable) when nil, as in production.
avail func() (int64, error)
}
@@ -67,7 +79,11 @@ func (r *fleetReservations) reserve(need int64) (*fleetToken, error) {
r.mu.Lock()
defer r.mu.Unlock()
held := r.reserved
- avail, err := r.avail()
+ read := r.avail
+ if read == nil {
+ read = memAvailable
+ }
+ avail, err := read()
if err != nil {
return nil, err
}
diff --git a/internal/activator/fleetreserve_test.go b/internal/activator/fleetreserve_test.go
index c5177f086..b8464c35c 100644
--- a/internal/activator/fleetreserve_test.go
+++ b/internal/activator/fleetreserve_test.go
@@ -53,10 +53,10 @@ func newFleetFixture(t *testing.T, avail func() (int64, error)) *fleetFixture {
})
ff := &fleetFixture{swapFixture: f, kb: kb}
f.a.BoxLabel = "box-1"
- f.a.fleetReserve = newFleetReservations(func() (int64, error) {
+ f.a.fleetReserve.avail = func() (int64, error) {
ff.reads.Add(1)
return avail()
- })
+ }
return ff
}
diff --git a/internal/console/apiinstances.go b/internal/console/apiinstances.go
index 949ed661d..ae7657c06 100644
--- a/internal/console/apiinstances.go
+++ b/internal/console/apiinstances.go
@@ -2634,14 +2634,7 @@ func (s *Server) handleAPIInstanceCreate(w http.ResponseWriter, r *http.Request)
jsonError(w, ref.Status, ref.Msg)
return
}
- unlockFloor, err := s.copiesCreateCheck(createContext, &rec)
- if err == nil {
- // Held with the create's hold, released before it (the
- // reverse of the order taken).
- unlockCreate := createUnlock
- createUnlock = func() { unlockFloor(); unlockCreate() }
- }
- if err != nil {
+ if err := s.copiesCreateCheckHolding(createContext, &rec, &createUnlock); err != nil {
var selection *statelessSelectionError
if errors.As(err, &selection) {
writeDoorRefusal(w, selection.ref)
diff --git a/internal/console/apipolicy.go b/internal/console/apipolicy.go
index 9c44bf265..f2976e9fc 100644
--- a/internal/console/apipolicy.go
+++ b/internal/console/apipolicy.go
@@ -554,8 +554,8 @@ func (s *Server) handleAPIPolicyPut(w http.ResponseWriter, r *http.Request) {
jsonError(w, ref.Status, ref.Msg)
return
}
- if s.policyAfterSizeCheck != nil {
- s.policyAfterSizeCheck(acct.Sqid, app)
+ if s.replicaFloorHooks.policyAfterSizeCheck != nil {
+ s.replicaFloorHooks.policyAfterSizeCheck(acct.Sqid, app)
}
notChecked := []string{}
if req.EgressAllow != nil {
diff --git a/internal/console/copiespublication.go b/internal/console/copiespublication.go
index 26a12209e..92fe30bc8 100644
--- a/internal/console/copiespublication.go
+++ b/internal/console/copiespublication.go
@@ -242,11 +242,6 @@ func (s *Server) copiesCreateCheck(ctx context.Context, rec *provision.Record) (
ctx = withAppPolicyMemo(ctx)
acct := &Account{ID: admitted.account, Sqid: rec.Account}
unlock = noop
- if !s.createMayNameFleetSize(ctx, acct, rec.App) {
- // No fleet size in the console's own record: every gate below
- // answers from it and the create reads nothing it did not before.
- seedAppFleetSize(ctx, acct, rec.App, appFleetSizeAnswer{})
- }
_, sized, ref := s.appFleetSizeOf(ctx, acct, rec.App)
if ref != nil {
return noop, &statelessSelectionError{ref}
@@ -268,6 +263,20 @@ func (s *Server) copiesCreateCheck(ctx context.Context, rec *provision.Record) (
return unlock, nil
}
+// copiesCreateCheckHolding is copiesCreateCheck for a door that already
+// holds *hold (the host-claim create's copies mutation): on success the
+// barrier's unlock joins it, released before it (the reverse of the order
+// taken); on an error *hold is unchanged.
+func (s *Server) copiesCreateCheckHolding(ctx context.Context, rec *provision.Record, hold *func()) error {
+ unlockFloor, err := s.copiesCreateCheck(ctx, rec)
+ if err != nil {
+ return err
+ }
+ unlockCreate := *hold
+ *hold = func() { unlockFloor(); unlockCreate() }
+ return nil
+}
+
func (s *Server) copiesCreateChecked(ctx context.Context, rec *provision.Record) error {
// Only authenticated create contexts participate; internal recovery keeps
// the admission attached to its durable allocation.
diff --git a/internal/console/fleets.go b/internal/console/fleets.go
index 23c102e2e..85012f6fe 100644
--- a/internal/console/fleets.go
+++ b/internal/console/fleets.go
@@ -1071,8 +1071,8 @@ func (s *Server) placeAppTarget(ctx context.Context, acct *Account, app, target
// takes them (beginCopiesMutation, then replicaFloorMu).
unlockName := s.store.lockAppNames(appNameKey{acct.ID, app})
defer unlockName()
- if s.placeNameLocked != nil {
- s.placeNameLocked(acct.Sqid, app)
+ if s.replicaFloorHooks.placeNameLocked != nil {
+ s.replicaFloorHooks.placeNameLocked(acct.Sqid, app)
}
// An app with a fleet size moving to a fleet also passes the
// FleetSizesFloor barrier over that fleet's boxes (#892 S2 P3,
@@ -1092,8 +1092,8 @@ func (s *Server) placeAppTarget(ctx context.Context, acct *Account, app, target
if ref := s.appTargetFloorBarrier(ctx, acct, app, target); ref != nil {
return ref.Status, ref.Msg
}
- if s.placeAfterCheck != nil {
- s.placeAfterCheck(acct.Sqid, app)
+ if s.replicaFloorHooks.placeAfterCheck != nil {
+ s.replicaFloorHooks.placeAfterCheck(acct.Sqid, app)
}
switch ok, err := s.store.setAppPlacementIfNameLocked(ctx, acct.ID, app, admitted, target); {
case err != nil:
diff --git a/internal/console/fleetsize.go b/internal/console/fleetsize.go
index ce5541fb3..4370ccea2 100644
--- a/internal/console/fleetsize.go
+++ b/internal/console/fleetsize.go
@@ -503,12 +503,8 @@ func seedAppFleetSize(ctx context.Context, acct *Account, app string, a appFleet
// console's own row (a database read, no store request).
type recordedPolicy struct {
size cgroup.Size
- ok bool // the recorded policy names a fleet size
- // pending: a recorded write whose publication is not yet confirmed, so
- // the bucket may still hold another policy. absent: a confirmed
- // absence (publication settled, no object).
- pending, absent bool
- rev uint64 // 0: no row
+ ok bool // the recorded policy names a fleet size
+ rev uint64 // 0: no row
}
// recordedFleetSize is appFleetSize of app's recorded policy row. A row
@@ -519,7 +515,7 @@ func (s *Server) recordedFleetSize(ctx context.Context, acct *Account, app strin
if err != nil || row.Revision == 0 {
return recordedPolicy{}, err
}
- r := recordedPolicy{pending: row.Pending, absent: !row.Pending && row.SyncedETag == "", rev: row.Revision}
+ r := recordedPolicy{rev: row.Revision}
p, err := apppolicy.OpenKey(s.policyPub(), row.Wire, acct.Sqid, app)
if err != nil {
return r, fmt.Errorf("recorded policy: %w", err)
@@ -528,27 +524,6 @@ func (s *Server) recordedFleetSize(ctx context.Context, acct *Account, app strin
return r, nil
}
-// createMayNameFleetSize is the create door's screen before
-// appFleetSizeOf's store read (#892 S2, CI fix): false only when the
-// console's own record shows app with no fleet size, recorded or
-// published. That is no row, or a settled row (publication confirmed, or a
-// confirmed absence) naming none, and no listed bucket object the re-sign
-// pass has not yet taken in (policyDiscovered). So a create of an app with
-// no fleet size makes no request it did not make before; anything else
-// (a recorded fleet size, a pending publication, an unreadable row) pays
-// the full read. A policy another console wrote and this one has not yet
-// adopted is not seen here; the box refuses a size it cannot run.
-func (s *Server) createMayNameFleetSize(ctx context.Context, acct *Account, app string) bool {
- r, err := s.recordedFleetSize(ctx, acct, app)
- if err != nil || r.pending || (r.ok && !r.absent) {
- return true
- }
- s.policyStateMu.Lock()
- discovered := s.policyDiscovered[[2]string{acct.Sqid, app}]
- s.policyStateMu.Unlock()
- return discovered
-}
-
// withAppPolicyPublished is withAppPolicyMemo holding app's appFleetSizeOf
// answer judged from published, the bucket's policy as the caller has just
// read it (nil: the object is absent), beside the recorded row (a database
diff --git a/internal/console/fleetsize_test.go b/internal/console/fleetsize_test.go
index 2abae225f..ed2e9a3a3 100644
--- a/internal/console/fleetsize_test.go
+++ b/internal/console/fleetsize_test.go
@@ -46,31 +46,16 @@ func fleetMemBeat(t *testing.T, fx *consoleFixture, fleet, box string, mib int64
}
}
-// putShopPolicy signs p as shop's policy in the bucket, replacing any, and
-// records it as the console's settled row, as a policy the console wrote
-// or adopted is (the create door screens on that row, createMayNameFleetSize).
+// putShopPolicy signs p as shop's policy in the bucket, replacing any.
func putShopPolicy(t *testing.T, fx *consoleFixture, p apppolicy.Policy) {
t.Helper()
- ctx := context.Background()
- _, cur, _ := fx.rel.Get(ctx, apppolicy.Key(fx.sqid, "shop"))
- old, _, _ := apppolicy.Get(ctx, fx.rel, fx.pub, fx.sqid, "shop", time.Now())
+ _, cur, _ := fx.rel.Get(context.Background(), apppolicy.Key(fx.sqid, "shop"))
+ old, _, _ := apppolicy.Get(context.Background(), fx.rel, fx.pub, fx.sqid, "shop", time.Now())
p.V, p.Account, p.App, p.SignedAt, p.Revision = 1, fx.sqid, "shop", time.Now(), 1
if old != nil {
p.Revision = old.Revision + 1
}
- etag, err := apppolicy.PutIfMatchETag(ctx, fx.rel, fx.priv, p, cur)
- if err != nil {
- t.Fatal(err)
- }
- wire, _, err := fx.rel.Get(ctx, apppolicy.Key(fx.sqid, "shop"))
- if err != nil {
- t.Fatal(err)
- }
- acct, err := fx.st.AccountBySqid(fx.sqid)
- if err != nil || acct == nil {
- t.Fatalf("account %s: %v", fx.sqid, err)
- }
- if err := fx.st.AdoptAppPolicyContext(ctx, acct.ID, "shop", p.Revision, wire, etag); err != nil {
+ if _, err := apppolicy.PutIfMatchETag(context.Background(), fx.rel, fx.priv, p, cur); err != nil {
t.Fatal(err)
}
}
@@ -276,61 +261,71 @@ func TestFleetSizeCreateChecked(t *testing.T) {
createShopAt(t, fx, token, "c.example.com")
}
-// TestFleetSizeCreateScreen: the create door's screen (createMayNameFleetSize,
-// CI fix for the perf lock). An app whose settled row names no fleet size
-// creates with no policy GET; a pending publication over a published fleet
-// size, and a listed bucket object the console has no row for yet, both
-// pay the full read and are refused.
-func TestFleetSizeCreateScreen(t *testing.T) {
- fx, token, _ := fleetBoxWorld(t, "code-fs-screen", "pi-1", "pi-2")
- fleetSizesConsole(fx)
- fleetMemBeat(t, fx, "pi", "pi-1", 32768, nil)
- fleetMemBeat(t, fx, "pi", "pi-2", 8192, nil)
- policyKey := apppolicy.Key(fx.sqid, "shop")
- refused := func(host, why string) {
- t.Helper()
- if code, out := createShop(t, fx, token, `{"host":"`+host+`"}`); code != http.StatusConflict {
- t.Fatalf("%s: create = %d %s; want 409", why, code, out)
- }
- }
-
- // A settled row naming no fleet size: no policy read at all.
- putShopPolicy(t, fx, apppolicy.Policy{DefaultSize: "xlarge"})
- real := fx.srv.cfg.Releases
- cs := newCountStore(real)
- fx.srv.cfg.Releases = cs
- createShopAt(t, fx, token, "a.example.com")
- fx.srv.cfg.Releases = real
- if n := cs.gets[policyKey]; n != 0 {
- t.Fatalf("create of an app with no fleet size read its policy %d times, want 0", n)
- }
-
- // Published 12g, a decrease to xlarge recorded but not yet published.
- putShopPolicy(t, fx, apppolicy.Policy{DefaultSize: "12g"})
- acct, err := fx.st.AccountBySqid(fx.sqid)
- if err != nil || acct == nil {
- t.Fatal(err)
- }
- down := apppolicy.Policy{V: 1, Account: fx.sqid, App: "shop", Revision: 3, SignedAt: time.Now(), DefaultSize: "xlarge"}
- if err := fx.st.RecordAppPolicyContext(context.Background(), acct.ID, "shop", 3, signPolicy(t, fx, down)); err != nil {
- t.Fatal(err)
- }
- refused("b.example.com", "pending decrease")
-
- // A bucket object the re-sign pass listed and has not taken in.
- fx2, token2, _ := fleetBoxWorld(t, "code-fs-screen-2", "pi-1", "pi-2")
- fleetSizesConsole(fx2)
- fleetMemBeat(t, fx2, "pi", "pi-1", 32768, nil)
- fleetMemBeat(t, fx2, "pi", "pi-2", 8192, nil)
- p := apppolicy.Policy{V: 1, Account: fx2.sqid, App: "shop", Revision: 1, SignedAt: time.Now(), DefaultSize: "12g"}
- if _, err := apppolicy.PutIfMatchETag(context.Background(), fx2.rel, fx2.priv, p, ""); err != nil {
- t.Fatal(err)
- }
- fx2.srv.policyStateMu.Lock()
- fx2.srv.policyDiscovered = map[[2]string]bool{{fx2.sqid, "shop"}: true}
- fx2.srv.policyStateMu.Unlock()
- if code, out := createShop(t, fx2, token2, `{"host":"c.example.com"}`); code != http.StatusConflict {
- t.Fatalf("discovered 12g policy: create = %d %s; want 409", code, out)
+// TestFleetSizeCreateReadsPublished (Astra final re-review P1): the create
+// door reads the app's published policy whatever the console's own row
+// says. A bucket-only 12g policy (no row, never listed by the re-sign
+// pass) and a settled row naming no fleet size under a newer 12g in the
+// bucket each refuse the create with PS-2-C14, with one policy GET and
+// before any record write.
+func TestFleetSizeCreateReadsPublished(t *testing.T) {
+ want := "shop uses size 12g, which needs a fleet of your own whose every box has room for it. choose such a fleet, or set a size of xlarge or smaller first"
+ for _, c := range []struct {
+ name, code string
+ seed func(t *testing.T, fx *consoleFixture)
+ }{
+ {"bucket-only policy, no row", "code-fs-pub-1", func(t *testing.T, fx *consoleFixture) {
+ putShopPolicy(t, fx, apppolicy.Policy{DefaultSize: "12g"})
+ }},
+ {"stale settled row", "code-fs-pub-2", func(t *testing.T, fx *consoleFixture) {
+ ctx := context.Background()
+ putShopPolicy(t, fx, apppolicy.Policy{DefaultSize: "xlarge"})
+ wire, etag, err := fx.rel.Get(ctx, apppolicy.Key(fx.sqid, "shop"))
+ if err != nil {
+ t.Fatal(err)
+ }
+ acct, err := fx.st.AccountBySqid(fx.sqid)
+ if err != nil || acct == nil {
+ t.Fatalf("account %s: %v", fx.sqid, err)
+ }
+ if err := fx.st.AdoptAppPolicyContext(ctx, acct.ID, "shop", 1, wire, etag); err != nil {
+ t.Fatal(err)
+ }
+ if row, err := fx.st.AppPolicyRecordContext(ctx, acct.ID, "shop"); err != nil || row.Pending || row.SyncedETag == "" {
+ t.Fatalf("row not settled: %+v %v", row, err)
+ }
+ // Another writer's newer revision the row does not know.
+ putShopPolicy(t, fx, apppolicy.Policy{DefaultSize: "12g"})
+ }},
+ } {
+ t.Run(c.name, func(t *testing.T) {
+ fx, token, _ := fleetBoxWorld(t, c.code, "pi-1", "pi-2")
+ fleetSizesConsole(fx)
+ fleetMemBeat(t, fx, "pi", "pi-1", 32768, nil)
+ fleetMemBeat(t, fx, "pi", "pi-2", 8192, nil)
+ c.seed(t, fx)
+ fx.srv.policyStateMu.Lock()
+ discovered := len(fx.srv.policyDiscovered)
+ fx.srv.policyStateMu.Unlock()
+ if discovered != 0 {
+ t.Fatal("fixture: the re-sign pass already discovered the policy")
+ }
+ cs := newCountStore(fx.rel)
+ fx.srv.cfg.Releases = cs
+ code, out := createShop(t, fx, token, `{"host":"c.example.com"}`)
+ fx.srv.cfg.Releases = fx.rel
+ if code != http.StatusConflict || errorOf(t, out) != want {
+ t.Fatalf("create = %d %s; want 409 PS-2-C14", code, out)
+ }
+ if n := cs.gets[apppolicy.Key(fx.sqid, "shop")]; n != 1 {
+ t.Errorf("policy GETs %d, want 1", n)
+ }
+ if n := cs.recordPuts(); n != 0 {
+ t.Errorf("a refused create wrote %d records", n)
+ }
+ if _, err := provision.GetRecord(context.Background(), fx.rel, fx.sqid, "shop", "c.example.com"); err == nil {
+ t.Fatal("a refused create wrote its record")
+ }
+ })
}
}
@@ -543,7 +538,7 @@ func TestFleetSizePolicyAndPlaceSerialize(t *testing.T) {
t.Run("policy first", func(t *testing.T) {
fx, token := setup(t, "code-fs-ser-policy")
checked, release := make(chan struct{}), make(chan struct{})
- fx.srv.policyAfterSizeCheck = func(string, string) { close(checked); <-release }
+ fx.srv.replicaFloorHooks.policyAfterSizeCheck = func(string, string) { close(checked); <-release }
putDone := make(chan result, 1)
go func() { c, o := put(fx, token); putDone <- result{c, o} }()
<-checked // the policy door holds the lock, its 12g checked against pi
@@ -569,7 +564,7 @@ func TestFleetSizePolicyAndPlaceSerialize(t *testing.T) {
t.Run("place first", func(t *testing.T) {
fx, token := setup(t, "code-fs-ser-place")
checked, release := make(chan struct{}), make(chan struct{})
- fx.srv.placeAfterCheck = func(string, string) { close(checked); <-release }
+ fx.srv.replicaFloorHooks.placeAfterCheck = func(string, string) { close(checked); <-release }
placeDone := make(chan result, 1)
go func() { c, o := place(fx, token); placeDone <- result{c, o} }()
<-checked // the place door holds the name lock, its move checked
diff --git a/internal/console/perfwrites_test.go b/internal/console/perfwrites_test.go
index 30fa389e3..7b3655ff4 100644
--- a/internal/console/perfwrites_test.go
+++ b/internal/console/perfwrites_test.go
@@ -337,10 +337,11 @@ type perfWriteLimit struct {
// cannot be made to serve a build that does not declare --mail submit.
// One object, one GET (the gate reads it as the agent does, never the
// legacy email.json fallback); every timing budget is unchanged.
+// Instance create 54 -> 55: +1 (#892 S2): create reads the app's published policy so a fleet size in the bucket alone is never missed (Astra final re-review P1); one GET per create, not per box or request.
func perfWriteLimits() map[string]perfWriteLimit {
return map[string]perfWriteLimit{
"ship": {Calls: 32, Budget: perfWriteBudget},
- "instance create": {Calls: 54, Budget: 700 * time.Millisecond, Over: "24 requests one after another: the manifest, the host holder (record then slot), the channel head (pointer then manifest), the plan cap's listings, then under the record lock the regional recheck's claim read (#447), the app's tombstone, this key's record and slot, every other app's, three writes in the lifetime protocol's order, the change index and the serial"},
+ "instance create": {Calls: 55, Budget: 700 * time.Millisecond, Over: "24 requests one after another: the manifest, the host holder (record then slot), the channel head (pointer then manifest), the plan cap's listings, then under the record lock the regional recheck's claim read (#447), the app's tombstone, this key's record and slot, every other app's, three writes in the lifetime protocol's order, the change index and the serial"},
"app create": {Calls: 50, Budget: perfWriteBudget},
"promote": {Calls: 20, Budget: 600 * time.Millisecond, Over: "the signed promote's own reads and writes, one after another, inside release.PromoteOnLadder: on flagship 470 ms before this branch, one read fewer after it"},
"config put": {Calls: 10, Budget: perfWriteBudget},
@@ -439,8 +440,9 @@ func perfClaimInstanceCreate(t *testing.T) {
}
requests := recorder.all()
most = max(most, len(requests))
- if len(requests) > 108 {
- t.Errorf("claim create #%d: %d S3 requests, budget 108", n, len(requests))
+ // +1 (#892 S2): create reads the app's published policy so a fleet size in the bucket alone is never missed (Astra final re-review P1); one GET per create, not per box or request.
+ if len(requests) > 109 {
+ t.Errorf("claim create #%d: %d S3 requests, budget 109", n, len(requests))
}
configReads := 0
for _, q := range requests {
diff --git a/internal/console/replicafloor.go b/internal/console/replicafloor.go
index 5708735f3..30be1605d 100644
--- a/internal/console/replicafloor.go
+++ b/internal/console/replicafloor.go
@@ -91,6 +91,12 @@ func (e replicaFloorError) Unwrap() error { return errReplicaFloorPromotion }
type replicaFloorHooks struct {
beforeLock, locked, copiesBeforeLock func()
sizeBeforeLock, sizeLocked func()
+ // policyAfterSizeCheck, placeNameLocked and placeAfterCheck are the
+ // policy/placement interleavings (#892 S2 P7): after the policy
+ // door's size check, under its lock; after the place door takes the
+ // app's name lock; after its fleet-size destination check, under that
+ // lock.
+ policyAfterSizeCheck, placeNameLocked, placeAfterCheck func(sqid, app string)
}
// replicaFloorJudge refuses moving channel from cur (nil: a first
diff --git a/internal/console/server.go b/internal/console/server.go
index ffec39ab3..06aecfa98 100644
--- a/internal/console/server.go
+++ b/internal/console/server.go
@@ -1322,16 +1322,8 @@ type Server struct {
policySynced map[string]uint64
policyAfterBase func(sqid, app string)
policyBeforeLock func(sqid, app string)
- // policyAfterSizeCheck, placeNameLocked and placeAfterCheck are TEST
- // SEAMS (nil in production) for the policy/placement interleavings
- // (#892 S2 P7): after the policy door's size check, under its lock;
- // after the place door takes the app's name lock; after its fleet-size
- // destination check, under that lock.
- policyAfterSizeCheck func(sqid, app string)
- placeNameLocked func(sqid, app string)
- placeAfterCheck func(sqid, app string)
- policyListedN uint64
- policyDiscovered map[[2]string]bool
+ policyListedN uint64
+ policyDiscovered map[[2]string]bool
// sendApp is how the per-operator notices (claim_runtime.go,
// storenotify.go) deliver keymail: km.SendApp in production, a capture
// in tests. A field rather than a direct call so a test needs no
diff --git a/internal/provision/stateless_scale_2_fleet_sizes_census_test.go b/internal/provision/stateless_scale_2_fleet_sizes_census_test.go
index c8d906bea..97272b1ea 100644
--- a/internal/provision/stateless_scale_2_fleet_sizes_census_test.go
+++ b/internal/provision/stateless_scale_2_fleet_sizes_census_test.go
@@ -17,7 +17,9 @@ package provision
// moves to setAppPlacementIfNameLocked (the same UPDATE without taking
// that lock again). On a host-claim console the gate and barrier run
// before the claim operation. Same record write (SetRecordRegion over
-// RecordsPrefix), no new field written.
+// RecordsPrefix), no new field written. Re-pinned for the code-health
+// fix: its two test seams moved into s.replicaFloorHooks (no
+// behaviour change).
// - Server.createRecordMarkedLocked (internal/console/hostsused.go): #892
// S2: copiesCreateCheck, which now runs the fleet-size destination gate
// and the FleetSizesFloor barrier before the write, returns the
@@ -40,7 +42,7 @@ package provision
func statelessScale2FleetSizesWriteCensusInventory() []censusEntry {
entries := append([]censusEntry(nil), fleetRestartWakeWriteCensusInventory()...)
for _, r := range []censusEntry{
- {"internal/console/fleets.go", "Server.placeAppTarget", "record-writer", "key:RecordsPrefix,key:SetRecordRegion", "256eda2756596af209fede5e9293759e71895b6908d28e6a1c2b0cc1dfc8e9f4"},
+ {"internal/console/fleets.go", "Server.placeAppTarget", "record-writer", "key:RecordsPrefix,key:SetRecordRegion", "93ef520d462b901a89540748d76a8bc008498f42eff04e934f6700e98a34283f"},
{"internal/console/hostsused.go", "Server.createRecordMarkedLocked", "record-writer", "key:CreateRecord,key:RecordKey", "7ad4669821eb63368d50ba901580ad980181d9d814a8d3f64035866564bf60bd"},
{"internal/console/lifetimes_create.go", "Server.createRecordWithLifetimeLocked", "key-site", "key:RecordKey", "0666e587d348137c533f0d64aa984efe031bf1cdb3d010bb56c85045310bd07b"},
{"internal/console/replicaplacement.go", "Server.reconcileReplicaApp", "key-site", "key:replicaRecordKey", "221b60a9eb78ad3ea043fd4c27eda098617450014c9b3ae1c6bcfe4edc3b81be"},
diff --git a/internal/provision/testdata/plan14-root-reads-stateless-scale-2-fleet-sizes.tsv b/internal/provision/testdata/plan14-root-reads-stateless-scale-2-fleet-sizes.tsv
index 64d8a57e3..ddf112881 100644
--- a/internal/provision/testdata/plan14-root-reads-stateless-scale-2-fleet-sizes.tsv
+++ b/internal/provision/testdata/plan14-root-reads-stateless-scale-2-fleet-sizes.tsv
@@ -11,7 +11,7 @@
@legacy 6f7a98c34688769cfcc2f83d118fccbc6687019f895a6e32e2c6134cfa33a75c internal/activator/fleetreserve_linux.go memAvailable legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-scale-2-fleet-sizes;basis=new (#892 S2), the agent as carlos, not root: os.ReadFile of the fixed /proc/meminfo (kernel-written; no tenant, app or agent can write or name it), then parseMemAvailable (the MemAvailable line in kB). Used only to admit or refuse a fleet-size overlap; an error refuses it and the old build keeps serving file:ReadFile@48 5d103dc06ce36dca4323999597c2ed1c15cbed2e63018549ca7b0581aee2c42f
@legacy cfc2cad27651e696bdb8b59a3f7caf137df9eae22cce0b3efd73b2509da19b82 internal/cgroup/fleetgate.go ReadMemTotal legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-scale-2-fleet-sizes;basis=new: os.ReadFile of the path its caller names, then ParseMemTotal (the MemTotal line in kB, positive, bounded). Its callers pass the fixed /proc/meminfo only (instancectl hostMemTotal for root, the agent's cgroup setup closure); kernel-written, not writable by a tenant, app or agent. Used only to bound fleet sizes; an error refuses every fleet size file:ReadFile@59 00e5b8e25b9e3dbc9ee3e449ceaa22d283d69969dfc6582b2cfcdc74c07ef69e
@legacy eab6790bd364743b94ceaee2b2a963d89f83a4205f98842ca502666fe85780a1 internal/rollout/scheduler.go scheduler.done legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-stateless-coordinator-route;basis=P25: classifies the preserved SwapResult.Err with errors.Is, including wrapped console-unreachable causes, to record the current scheduler revision and suppress duplicate abandoned logs. Diagnostic text no longer grants this classification. No new read sites or failure-book authority.;rev3=census-ruling-stateless-scale-2-fleet-sizes;basis=the agent as carlos (#892 S2, review fix round 1): an attempt abandoned with activator.ErrFleetOverlapRefused emits its reason (PS-2-C05, the activator's own text naming only this box) once as a swap.no_room warn event on the instance's event stream, through the existing m.emit with the route s.route already read for the other events (+whole:Route); hostSlot.noRoomShown deduplicates it until an attempt ends another way. In-memory only; no read of a new input, no root call. Fix round 2: a test seam, m.afterDone (nil in production), deferred first so it runs after the events and OnChange; no behaviour change file:Exec@5301,whole:Route@8917,whole:Route@9175,whole:Route@9333,whole:Route@9405,whole:Route@9524,whole:Route@9961 fb433c6ff1e3c8b5912d21dbd7f0f0904b39cd96275dbc024bc227a5d190d72f
-internal/activator/activator.go type Service authority B,C,D,F,J4 rev3=PROPOSED-seed; existing activator lifecycle and due-wake state plus owned seed exclusion and incarnation-keyed diagnostics; normal refusal and preparation ordering remain authoritative; PROPOSED-plans-2-box-limits adds the idleFor hook field, which only narrows idle windows;rev3=census-ruling-plans-4c-box-throttle;basis=gains the maxRunFor hook field beside idleFor (plans 4c). No read added.;rev3=census-ruling-plans-4d-lapse;basis=gains the disabledFor hook field beside maxRunFor (plans 4d). No read added.;rev3=census-ruling-remote-instance-metrics;basis=gains tenancySeq, hostTenants and hostMixed, in-memory fields for Tenancies; no read added;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more field, markers (markerRetry: an atomic running flag and the last log time) for retryOwedMarkers; no read added; merge of origin/main d7ae1d76: main's fields are kept as main has them (census-ruling-remote-instance-metrics: tenancySeq, hostTenants, hostMixed); this branch's change is the same as above;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: new fields for rootfs admission (rootfsArmed, rootfsSwept), the per-host gate ask and refusal memo, and residency state (lister, backoff, start ceiling, cursor, test seam); no read;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: one new field, releaseOps (host to the in-memory release record, under a.mu); no read;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one new field, leaseNow (a clock seam for a worker start's headroom against the lease deadline, nil is the real clock); no read;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: gains the holder cache and its single-flight state; no read;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (controller ruling after branch review R1, and Paul's R2 ruling): one field, Fleet (activator.FleetWake: the box's fleet state, not on a fleet by default, on a fleet with a known label and a record reader, or on a fleet with an invalid identity), set by the agent before Start and read only by routeCurrentUnderLease. No read in the declaration. Agent, not root.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a fix round 1: one field, drainBudget (time.Duration), which New copies from residentDrainBudget and a rootfs entry's lease watch reads in its place, so a test's change of the package var never races a watch goroutine; declaration only, reads nothing; merge of origin/main 6f1f6ca6: main's one field, Fleet (activator.FleetWake), is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b3a;basis=Add bounded placement peer and diagnostic state and the over-capacity callback; no read in this declaration and no new root authority.;rev3=census-ruling-stateless-replicas-1;basis=Add coordinator, existing-record observation callback and per-host preparation locks; no read in the declaration. Task 3a: Add optional canonical storage-selection and durable deploy-ID callbacks; declaration only, no read or authority in these fields.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds the heldLegs map to actEntry (legs by id, under a.mu) and heldWakeHook (atomic pointer to a callback) and heldLegSeq (atomic counter) to Service. State only, in memory; no read of tenant, app or box-agent-writable input.;rev3=census-ruling-wake-storm-cap;basis=the agent as carlos: one field, wakeSlots (chan struct{}, the wake semaphore made by New from Config.WakeSlots, default 4); declaration only, no read.;rev3=census-ruling-region-ha-p1b3b-t;basis=Add the B2 DutyStore interface field and process-local duty view, suppression and invalidation state. No read added. B2 adds the verified-successor identity callback; no read in the declaration. B3b adds a nonblocking departure-suspicion callback, invoked only after an accepted holder-forward failure and after cache locks release; it cannot authorize a take.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: immutable callbacks installed before Start for tenant admission, local start permission, fixed route exemptions and shutdown closure; nil callbacks preserve switch-off behavior; no new reads. Fix R1: add an immutable startup-phase callback for response copy, set before service startup. No new read or execution authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Add in-memory HA loss state and pool withdrawal jobs; no new read.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 1: one new field, drain (drainSources: two atomic func pointers for this box's and peers' drain state); no read added. region HA held-requests Task 2: one new field, moves (moveTable: per-host move state, hold counts and admission tickets in memory, under mu); no read added;rev3=census-ruling-held-move-speed;basis=the agent as carlos: one new field, moveStreams (per-host in-memory set of edge.StreamEnd for requests in flight, own mutex), for the move's early stream cut; actEntry gains drainRelease (bool, under a.mu), set by DrainStop; declarations only, no read added;rev3=census-ruling-fix-silent-start-kill-861;basis=#861: two fields, wakeFailMu and wakeFailLogged (per-host in-memory note of the last journalled wake failure); declaration only, no read;rev3=census-ruling-w6-ingress-drain;basis=new field TenantStartsClosed func() bool; when it answers true tenantStartRefusal refuses every start, exempt routes included. Wired only by fixedAdmission.bind to the ingress drain's closed flag. Struct field only; no read added.;rev3=census-ruling-stateless-replicas-4-task2;basis=Task 2: one field, replicaPolicies (host to the newest observed replica deploy and this box label, under mu), set only by SetReplicaDeploy; declaration only, no read.;rev3=census-ruling-stateless-replicas-4-task2-fix1;basis=Task 2 fix round 1: one more in-memory field, replicaFailed (host to the permit whose successor failed here, under mu), so that step only proves what it kept; declaration only, no read.;rev3=census-ruling-stateless-replicas-4-task3f;basis=Task 3F fix round 3 (#511 F11): two hook fields, MarkReplicaRelease and ReplicaReleaseMark (the failure book's per-host release mark on this box's disk). No read site.;rev3=census-ruling-stateless-replicas-4-task5;basis=Task 5 first commit (#511 F11): one in-memory field, heldSeen (host to the last held release attempt, error class and when it was met), under the existing wakeFailMu. Declaration only, no read.;rev3=census-ruling-stateless-replicas-4-merge-main;basis=Merge of main 5fac2ff1: both sides changed it. Main (27d3f501) adds the background atomic.Int64 field that tests wait on; this branch keeps its replica fields. Both kept as-is; no read added.;rev3=census-ruling-stateless-replicas-4-final;basis=#511 final wave item 3: adds replicaSwitched, an in-memory map of the permit each set row switched under (host -> permit key, time, resident flag); no read added; #511 micro-fix P1b: adds replicaNoGen, an in-memory map (host -> permit key and when first seen) that is only the bound's clock for a restarted permit holder with no generation; no read added;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R20 bound (round 1: clock with start and last seen): one in-memory field, releaseConfigWaits (per host, a stateless release's config wait), under mu; no read;rev3=census-ruling-stateless-replicas-4-r28;basis=R28 review round 2 (#511): one field, retiringCopy, an atomic pointer to the edge's in-memory retired-copy check, handed over by edge.New (SetRetiringCopy); no read, no root decision;rev3=census-ruling-g6-fence;basis=G6 F-C Task 3, the agent as carlos: four fields, fenceWatchers (sync.WaitGroup of running write-fence watchers) and three test seams nil in production (fenceWatchStarted, retainDB, wakeReturned). Declaration only, no read.;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R1/R2: actEntry gains checkpoint state (busy while CloseProven runs, unproven, named-once flag for C45), in-memory under a.mu; the worker gains fence pacing apart from crash backoff; Service gains test seams nil in production; declarations only, no read;rev3=census-ruling-race-activator-1249;basis=adds two test-only fields: leaseWork (a WaitGroup counting lease watches and the one-shot stops a short lease starts) and leaseWatchStop (a channel, nil in production, that a test closes to end every lease watch); no read added and production never waits on or closes either;rev3=census-ruling-fleet-restart-wake;basis=Fleet restart wake Task 1: the per-host journal note maps (wakeFailLogged, heldSeen) move into the embedded wakeNotes struct in wakefaillog.go, which adds fenceSeen. In-memory only; no read added.;rev3=census-ruling-stateless-scale-2-fleet-sizes;basis=the agent (carlos-edge.service, user carlos), not root: two fields (#892 S2): BoxLabel (string, the rollout's own box label, set by armRollout) and fleetReserve (*fleetReservations, made by New with memAvailable), the box's in-memory overlap reservation for fleet sizes. Declaration only; no read added 4ce9eb2bbad7a6583e2a1277d4b869dac5bc450c419dcf34c09cdfb4dd2bbef4
+internal/activator/activator.go type Service authority B,C,D,F,J4 rev3=PROPOSED-seed; existing activator lifecycle and due-wake state plus owned seed exclusion and incarnation-keyed diagnostics; normal refusal and preparation ordering remain authoritative; PROPOSED-plans-2-box-limits adds the idleFor hook field, which only narrows idle windows;rev3=census-ruling-plans-4c-box-throttle;basis=gains the maxRunFor hook field beside idleFor (plans 4c). No read added.;rev3=census-ruling-plans-4d-lapse;basis=gains the disabledFor hook field beside maxRunFor (plans 4d). No read added.;rev3=census-ruling-remote-instance-metrics;basis=gains tenancySeq, hostTenants and hostMixed, in-memory fields for Tenancies; no read added;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more field, markers (markerRetry: an atomic running flag and the last log time) for retryOwedMarkers; no read added; merge of origin/main d7ae1d76: main's fields are kept as main has them (census-ruling-remote-instance-metrics: tenancySeq, hostTenants, hostMixed); this branch's change is the same as above;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: new fields for rootfs admission (rootfsArmed, rootfsSwept), the per-host gate ask and refusal memo, and residency state (lister, backoff, start ceiling, cursor, test seam); no read;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: one new field, releaseOps (host to the in-memory release record, under a.mu); no read;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one new field, leaseNow (a clock seam for a worker start's headroom against the lease deadline, nil is the real clock); no read;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: gains the holder cache and its single-flight state; no read;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (controller ruling after branch review R1, and Paul's R2 ruling): one field, Fleet (activator.FleetWake: the box's fleet state, not on a fleet by default, on a fleet with a known label and a record reader, or on a fleet with an invalid identity), set by the agent before Start and read only by routeCurrentUnderLease. No read in the declaration. Agent, not root.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a fix round 1: one field, drainBudget (time.Duration), which New copies from residentDrainBudget and a rootfs entry's lease watch reads in its place, so a test's change of the package var never races a watch goroutine; declaration only, reads nothing; merge of origin/main 6f1f6ca6: main's one field, Fleet (activator.FleetWake), is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b3a;basis=Add bounded placement peer and diagnostic state and the over-capacity callback; no read in this declaration and no new root authority.;rev3=census-ruling-stateless-replicas-1;basis=Add coordinator, existing-record observation callback and per-host preparation locks; no read in the declaration. Task 3a: Add optional canonical storage-selection and durable deploy-ID callbacks; declaration only, no read or authority in these fields.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds the heldLegs map to actEntry (legs by id, under a.mu) and heldWakeHook (atomic pointer to a callback) and heldLegSeq (atomic counter) to Service. State only, in memory; no read of tenant, app or box-agent-writable input.;rev3=census-ruling-wake-storm-cap;basis=the agent as carlos: one field, wakeSlots (chan struct{}, the wake semaphore made by New from Config.WakeSlots, default 4); declaration only, no read.;rev3=census-ruling-region-ha-p1b3b-t;basis=Add the B2 DutyStore interface field and process-local duty view, suppression and invalidation state. No read added. B2 adds the verified-successor identity callback; no read in the declaration. B3b adds a nonblocking departure-suspicion callback, invoked only after an accepted holder-forward failure and after cache locks release; it cannot authorize a take.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: immutable callbacks installed before Start for tenant admission, local start permission, fixed route exemptions and shutdown closure; nil callbacks preserve switch-off behavior; no new reads. Fix R1: add an immutable startup-phase callback for response copy, set before service startup. No new read or execution authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Add in-memory HA loss state and pool withdrawal jobs; no new read.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 1: one new field, drain (drainSources: two atomic func pointers for this box's and peers' drain state); no read added. region HA held-requests Task 2: one new field, moves (moveTable: per-host move state, hold counts and admission tickets in memory, under mu); no read added;rev3=census-ruling-held-move-speed;basis=the agent as carlos: one new field, moveStreams (per-host in-memory set of edge.StreamEnd for requests in flight, own mutex), for the move's early stream cut; actEntry gains drainRelease (bool, under a.mu), set by DrainStop; declarations only, no read added;rev3=census-ruling-fix-silent-start-kill-861;basis=#861: two fields, wakeFailMu and wakeFailLogged (per-host in-memory note of the last journalled wake failure); declaration only, no read;rev3=census-ruling-w6-ingress-drain;basis=new field TenantStartsClosed func() bool; when it answers true tenantStartRefusal refuses every start, exempt routes included. Wired only by fixedAdmission.bind to the ingress drain's closed flag. Struct field only; no read added.;rev3=census-ruling-stateless-replicas-4-task2;basis=Task 2: one field, replicaPolicies (host to the newest observed replica deploy and this box label, under mu), set only by SetReplicaDeploy; declaration only, no read.;rev3=census-ruling-stateless-replicas-4-task2-fix1;basis=Task 2 fix round 1: one more in-memory field, replicaFailed (host to the permit whose successor failed here, under mu), so that step only proves what it kept; declaration only, no read.;rev3=census-ruling-stateless-replicas-4-task3f;basis=Task 3F fix round 3 (#511 F11): two hook fields, MarkReplicaRelease and ReplicaReleaseMark (the failure book's per-host release mark on this box's disk). No read site.;rev3=census-ruling-stateless-replicas-4-task5;basis=Task 5 first commit (#511 F11): one in-memory field, heldSeen (host to the last held release attempt, error class and when it was met), under the existing wakeFailMu. Declaration only, no read.;rev3=census-ruling-stateless-replicas-4-merge-main;basis=Merge of main 5fac2ff1: both sides changed it. Main (27d3f501) adds the background atomic.Int64 field that tests wait on; this branch keeps its replica fields. Both kept as-is; no read added.;rev3=census-ruling-stateless-replicas-4-final;basis=#511 final wave item 3: adds replicaSwitched, an in-memory map of the permit each set row switched under (host -> permit key, time, resident flag); no read added; #511 micro-fix P1b: adds replicaNoGen, an in-memory map (host -> permit key and when first seen) that is only the bound's clock for a restarted permit holder with no generation; no read added;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R20 bound (round 1: clock with start and last seen): one in-memory field, releaseConfigWaits (per host, a stateless release's config wait), under mu; no read;rev3=census-ruling-stateless-replicas-4-r28;basis=R28 review round 2 (#511): one field, retiringCopy, an atomic pointer to the edge's in-memory retired-copy check, handed over by edge.New (SetRetiringCopy); no read, no root decision;rev3=census-ruling-g6-fence;basis=G6 F-C Task 3, the agent as carlos: four fields, fenceWatchers (sync.WaitGroup of running write-fence watchers) and three test seams nil in production (fenceWatchStarted, retainDB, wakeReturned). Declaration only, no read.;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R1/R2: actEntry gains checkpoint state (busy while CloseProven runs, unproven, named-once flag for C45), in-memory under a.mu; the worker gains fence pacing apart from crash backoff; Service gains test seams nil in production; declarations only, no read;rev3=census-ruling-race-activator-1249;basis=adds two test-only fields: leaseWork (a WaitGroup counting lease watches and the one-shot stops a short lease starts) and leaseWatchStop (a channel, nil in production, that a test closes to end every lease watch); no read added and production never waits on or closes either;rev3=census-ruling-fleet-restart-wake;basis=Fleet restart wake Task 1: the per-host journal note maps (wakeFailLogged, heldSeen) move into the embedded wakeNotes struct in wakefaillog.go, which adds fenceSeen. In-memory only; no read added.;rev3=census-ruling-stateless-scale-2-fleet-sizes;basis=the agent (carlos-edge.service, user carlos), not root: one embedded field (#892 S2), fleetSizeService (fleetreserve.go), which holds BoxLabel (string, the rollout's own box label, set by armRollout) and fleetReserve (fleetReservations, ready as its zero value; it reads /proc/meminfo through memAvailable only when a fleet-size overlap reserves), the box's in-memory overlap reservation for fleet sizes. Declaration only; no read added 188c7cb58dfb0ba49601b85d677fea8d7234ae81da2180421136442bd8580b2e
internal/activator/opset.go Service.leaveSet legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-stateless-scale-2-fleet-sizes;basis=the agent as carlos (#892 S2): after a member's termination is proven and it leaves the set, the fleet-size overlap reservation it holds (genMember.reserve) is released, in memory, under a.mu. No read added; no root call added; the restore and the proof are unchanged whole:Route@167,whole:Route@262 d98d4d22859c0b0e0ce554518bd5f58a801746f0059195201eed1b481f9d2ecd
internal/activator/swap.go Service.swapOverlap legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling zddr4, with no further change from this branch. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; admission and the switch refuse while a run's unit is starting, and the switch interrupts runs on the retiring generation; read sites unchanged, offsets moved;rev3=census-ruling-instance-egress-sizes-328-329;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=#329 plan 3 Task 4 and the final review: the new kind is registry:Size, one site, rt.Size != "" in the successor's max rule (the successor starts at the larger of its own sized tier and the incumbent's captured tier when the route has a size now or the incumbent runs at a tier other than its build's), and two more whole:Route sites: the successor's route is now sizedRouteLocked(e) with the wake route kept beside it as wakeRt for the incumbent's tier, and a second GenTier(rt, incumbent.Build) in that rule. The column comes from the agent's registry row (reconcile, from the signed app policy). Admission also refuses while a live size change is in flight. The raise still goes to root's /parent, whose memory_max root checks against its size table; no root decision here;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 N1, Task 8 and Task D: the incumbent's tier is recorded through recordCurrentTierLocked; genHealthy takes rt (so a rootfs generation is checked within the rootfs bound); the successor is installed through installProcLocked; after step 8 a rootfs build's declared processes are logged, never started (rootfsProcessesHook); no new file read;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R, R2: two new parameters from releaseBeforeSwap (pass, the proven pass, and due, whether the build needed a release); the admission and the exec gate both also ask releaseAdmitsSwapLocked, which refuses while any release record of the host is open (INV-R4) and, when a release was due, unless pass is this attempt's for the successor's build (INV-R5); no release runs here; the same 18 read sites, no read added; adds refusals only;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W2: step 8 no longer calls rootfsProcessesHook(ctx, e, rt, m.gen); it calls handOverRootfsWorkers(e), which stops and proves the retiring generation's workers gone and then registers the switched generation's set as pending (starts nothing; the tick starts them, and the stray rule refuses a start while an old worker is a stray, so two sets never run at once); site -whole:Route (rt no longer handed to the hook); no read added;rev3=census-ruling-edge-page-cache-1;basis=noteCurrent(e) instead of noteCurrent(e.host, m.gen.N) at the switch, as Service.wake; read sites unchanged (17); no read added;rev3=census-ruling-stateless-scale-2-fleet-sizes;basis=the agent as carlos (#892 S2): after admission and before the raise, a successor whose tier is a fleet size reserves its full MemoryMax through reserveFleetOverlap (memAvailable reads /proc/meminfo). With no room or an unreadable read the attempt is abandoned with PS-2-C05 before any raise, publication or spawn; the incumbent keeps serving. The token is stored on the member, released at once on a refused raise, a failed publication or a refused exec gate (nothing spawned), and otherwise moves to the retiring member at the switch. Adds a refusal only; the raise still goes to root's /parent unchanged; no root decision here. Read sites unchanged (17) registry:Kind@2060,registry:Size@5198,whole:Route@11149,whole:Route@13230,whole:Route@13237,whole:Route@13277,whole:Route@2062,whole:Route@2386,whole:Route@3729,whole:Route@3733,whole:Route@3778,whole:Route@4373,whole:Route@4425,whole:Route@5244,whole:Route@6688,whole:Route@8434,whole:Route@9153 9e25dc3b8ffb4f73453f61b70075da5466040ed25ad213906254e96a56916689
internal/cgroup/cgroup.go setup legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-hunt-account-root-hardening;basis=setup records whether the flat IMDS fence is armed (CARLOS_IMDS_FLAT_FENCE); when armed, a flat start whose shim or placement is unavailable is refused instead of falling back to start-and-move; no read is added;rev3=census-ruling-stateless-scale-2-fleet-sizes;basis=the agent (carlos-edge.service, user carlos), not root: setup now also records a fleet-size gate on the agent's own Manager when CARLOS_FLEET is set in its environment (os.Getenv, beside the existing CARLOS_IMDS_FLAT_FENCE read). The gate's MemTotal closure reads /proc/meminfo through ReadMemTotal when a strict prepare is asked for a fleet size (#892 S2). It only lets the strict validators (PrepareStrict, PrepareGen, SetParentLimit) accept the new fleet rows within FleetMemoryBudget; without CARLOS_FLEET they take small..xlarge and today's parents exactly as before. Reads added: env CARLOS_FLEET; /proc/meminfo (kernel, fixed path) via the closure file:ReadFile@73 1c2d963c219576573ba11b9b1ba07c3823902b850615a93406f6cfc3c78065cb
@@ -24,7 +24,7 @@ internal/activator/fleetreserve_linux.go memAvailable legacy accepted-legacy acc
internal/cgroup/fleetgate.go ReadMemTotal legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-scale-2-fleet-sizes;basis=new: os.ReadFile of the path its caller names, then ParseMemTotal (the MemTotal line in kB, positive, bounded). Its callers pass the fixed /proc/meminfo only (instancectl hostMemTotal for root, the agent's cgroup setup closure); kernel-written, not writable by a tenant, app or agent. Used only to bound fleet sizes; an error refuses every fleet size file:ReadFile@59 00e5b8e25b9e3dbc9ee3e449ceaa22d283d69969dfc6582b2cfcdc74c07ef69e
internal/rollout/scheduler.go scheduler.done legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-stateless-coordinator-route;basis=P25: classifies the preserved SwapResult.Err with errors.Is, including wrapped console-unreachable causes, to record the current scheduler revision and suppress duplicate abandoned logs. Diagnostic text no longer grants this classification. No new read sites or failure-book authority.;rev3=census-ruling-stateless-scale-2-fleet-sizes;basis=the agent as carlos (#892 S2, review fix round 1): an attempt abandoned with activator.ErrFleetOverlapRefused emits its reason (PS-2-C05, the activator's own text naming only this box) once as a swap.no_room warn event on the instance's event stream, through the existing m.emit with the route s.route already read for the other events (+whole:Route); hostSlot.noRoomShown deduplicates it until an attempt ends another way. In-memory only; no read of a new input, no root call. Fix round 2: a test seam, m.afterDone (nil in production), deferred first so it runs after the events and OnChange; no behaviour change file:Exec@5301,whole:Route@8917,whole:Route@9175,whole:Route@9333,whole:Route@9405,whole:Route@9524,whole:Route@9961 fb433c6ff1e3c8b5912d21dbd7f0f0904b39cd96275dbc024bc227a5d190d72f
@coverage . ab2668859a5149ced73365f6441ce23a15d50220502c63947d66a8affa22eef8
-@coverage internal/activator 409bac58f019b723377efe6427e4d5c72c0640ab45819c33b8f3cacebdc4af49
+@coverage internal/activator 91f3191e88733f7aa9672dd05020b0c3f414dc828b88bdcbbade76b8dd4e7b62
@coverage internal/apppolicy 3b9c50e763f1142cbc9430f79aa5753ad88702fe30fb476016135e27cb99d182
@coverage internal/cgroup 18eb14bb51403da80ca35f8046278f79557a890d21527ec868a16b80d508e54f
@coverage internal/host 26bdb4c01d41fe2a8e3a179f97ae4ecd3f245e79866c9358c2baadb1cd03d573