carlos / platform Public

edge: allow four security headers in a static site's _headers

Static sites, devbox previews included, may set Content-Security-Policy,
X-Content-Type-Options, Referrer-Policy and X-DNS-Prefetch-Control in
_headers, each with a value check. Equipo writes all four into every
devbox preview, and ship refused them as not supported yet (discussion
1323). Values are fixed per path, so the shared cache rules in spec 4.4
are unchanged. Census: internal/edge envelope re-pinned, Astra READY
(#280). Docs rows approved in copy review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Squashed from headers-security-allowlist into main.
claude agent, operated by paul@keymail.dev 343a3394bde37403687d7613030d56bac71bf838 parent 21e821a
8 files changed, +210 −2
  • docs/site/cli.md +4 −0
  • docs/superpowers/notes/census-proposal-headers-security-allowlist.md +11 −0
  • docs/superpowers/specs/2026-10-29-static-headers-design.md +11 −2
  • internal/edge/headers.go +90 −0
  • internal/edge/headers_test.go +62 −0
  • internal/edge/static_headers_test.go +28 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-headers-security-allowlist.tsv +3 −0

CI failed — run details

CI log
=== gate ===
go: downloading go1.26.10 (linux/arm64)
go version go1.26.10 linux/arm64
opentofu: arm64, tofu 1.13.9, aws 6.73.0, archive 2.8.1
  tofu: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/tofu_1.13.9_linux_arm64.tar.gz
  tofu: downloaded, digest verified
  aws: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-aws_6.73.0_linux_arm64.zip
  aws: downloaded, digest verified
  archive: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-archive_2.8.1_linux_arm64.zip
  archive: downloaded, digest verified
  installed in /tmp/carlos-opentofu-VUgQJI
.amadan/test-gate.sh
go: downloading github.com/aws/aws-sdk-go-v2 v1.44.0
go: downloading github.com/aws/aws-sdk-go-v2/service/costexplorer v1.67.5
go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0
go: downloading github.com/aws/smithy-go v1.28.1
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.68.0
go: downloading github.com/benbjohnson/litestream v0.5.14
go: downloading golang.org/x/net v0.62.0
go: downloading github.com/superfly/ltx v0.5.1
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/sns v1.43.0
go: downloading github.com/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 golang.org/x/crypto v0.58.0
go: downloading github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi v1.37.0
go: downloading golang.org/x/sys v0.49.0
go: downloading github.com/aws/aws-sdk-go-v2/service/iam v1.58.2
go: downloading github.com/pion/logging v0.2.4
go: downloading github.com/pion/stun/v3 v3.1.5
go: downloading github.com/pion/turn/v4 v4.1.4
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/pion/dtls/v3 v3.1.4
go: downloading github.com/prometheus/client_golang v1.17.0
go: downloading golang.org/x/sync v0.24.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/pion/transport/v4 v4.0.2
go: downloading github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.20.18
go: downloading github.com/pion/randutil v0.1.0
go: downloading github.com/lmittmann/tint v1.1.3
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading github.com/prometheus/client_model v0.5.0
go: downloading github.com/prometheus/procfs v0.12.0
go: downloading google.golang.org/protobuf v1.36.10
go: downloading github.com/prometheus/common v0.45.0
go: downloading github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0
go: downloading golang.org/x/text v0.43.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 modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/libc v1.74.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
=== launchctx (4 s, from +0 s)
ok  	amadan.net/carlos/platform.git/launchctx	0.016s
?   	amadan.net/carlos/platform.git/launchctx/controlname	[no test files]
?   	amadan.net/carlos/platform.git/launchctx/wireid	[no test files]
=== vet (162 s, from +0 s)
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/memory v1.11.0
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/dustin/go-humanize v1.0.1
=== vet-tags (181 s, from +0 s)
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/memory v1.11.0
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/google/uuid v1.6.0
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
=== gofmt (1 s, from +0 s)
gofmt -l .: clean
=== rest (375 s, from +14 s)
ok  	github.com/carlosframework/platform/cmd/carlos-media	119.743s
?   	github.com/carlosframework/platform/cmd/changelog	[no test files]
ok  	github.com/carlosframework/platform/cmd/console	199.145s
ok  	github.com/carlosframework/platform/cmd/mediaimage	42.880s
ok  	github.com/carlosframework/platform/cmd/moveprobe	16.573s
ok  	github.com/carlosframework/platform/cmd/pricebook-export	0.058s
ok  	github.com/carlosframework/platform/cmd/rootfswitness	0.164s
ok  	github.com/carlosframework/platform/cmd/runsc-assets	0.084s
ok  	github.com/carlosframework/platform/cmd/zddprobe	0.984s
ok  	github.com/carlosframework/platform/internal/agentsock	0.065s
ok  	github.com/carlosframework/platform/internal/alerting	0.013s
ok  	github.com/carlosframework/platform/internal/analytics	0.257s
ok  	github.com/carlosframework/platform/internal/appconfig	43.270s
ok  	github.com/carlosframework/platform/internal/apperr	0.478s
ok  	github.com/carlosframework/platform/internal/applog	0.633s
ok  	github.com/carlosframework/platform/internal/apppolicy	2.516s
ok  	github.com/carlosframework/platform/internal/assetcache	0.419s
ok  	github.com/carlosframework/platform/internal/awsinv	0.015s
ok  	github.com/carlosframework/platform/internal/awsmanaged	0.460s
ok  	github.com/carlosframework/platform/internal/awsregiongroup	0.424s
ok  	github.com/carlosframework/platform/internal/awsterminations	0.018s
ok  	github.com/carlosframework/platform/internal/backupswords	0.015s
ok  	github.com/carlosframework/platform/internal/billing	0.062s
ok  	github.com/carlosframework/platform/internal/billing/billingtest	0.038s
ok  	github.com/carlosframework/platform/internal/billingstripe	1.750s
ok  	github.com/carlosframework/platform/internal/boxchoice	0.030s
ok  	github.com/carlosframework/platform/internal/boxid	2.584s
?   	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.020s
ok  	github.com/carlosframework/platform/internal/boxself	0.200s
ok  	github.com/carlosframework/platform/internal/boxvolumes	0.040s
ok  	github.com/carlosframework/platform/internal/caps	0.110s
ok  	github.com/carlosframework/platform/internal/certwarm	0.014s
ok  	github.com/carlosframework/platform/internal/cgroup	1.428s
ok  	github.com/carlosframework/platform/internal/changelog	4.083s
ok  	github.com/carlosframework/platform/internal/clamd	0.089s
?   	github.com/carlosframework/platform/internal/cliflag	[no test files]
ok  	github.com/carlosframework/platform/internal/clireg	0.010s
ok  	github.com/carlosframework/platform/internal/codehealth	18.737s
ok  	github.com/carlosframework/platform/internal/compute	0.017s
?   	github.com/carlosframework/platform/internal/controlname	[no test files]
?   	github.com/carlosframework/platform/internal/controlsock	[no test files]
ok  	github.com/carlosframework/platform/internal/dbdoor	10.401s
ok  	github.com/carlosframework/platform/internal/dbdoor/dbdoortest	0.033s
ok  	github.com/carlosframework/platform/internal/dbquery	0.028s
ok  	github.com/carlosframework/platform/internal/dbreads	3.190s
?   	github.com/carlosframework/platform/internal/dbreads/dbreadstest	[no test files]
ok  	github.com/carlosframework/platform/internal/dbverify	0.022s
ok  	github.com/carlosframework/platform/internal/demo	0.009s
ok  	github.com/carlosframework/platform/internal/demobuild	3.512s
ok  	github.com/carlosframework/platform/internal/democlaim	0.463s
ok  	github.com/carlosframework/platform/internal/devbox	16.195s
ok  	github.com/carlosframework/platform/internal/dnsrec	0.023s
ok  	github.com/carlosframework/platform/internal/docsite	0.074s
ok  	github.com/carlosframework/platform/internal/domainreg	0.014s
ok  	github.com/carlosframework/platform/internal/domains	68.108s
ok  	github.com/carlosframework/platform/internal/doorkey	0.017s
ok  	github.com/carlosframework/platform/internal/economics	0.017s
ok  	github.com/carlosframework/platform/internal/edgefence	0.079s
ok  	github.com/carlosframework/platform/internal/edgeguard	0.295s
?   	github.com/carlosframework/platform/internal/edgeproof	[no test files]
ok  	github.com/carlosframework/platform/internal/edgesfile	0.093s
ok  	github.com/carlosframework/platform/internal/egressaddr	0.009s
ok  	github.com/carlosframework/platform/internal/execsandbox	96.829s
ok  	github.com/carlosframework/platform/internal/fileacl	0.006s
ok  	github.com/carlosframework/platform/internal/fleetapi	1.697s
ok  	github.com/carlosframework/platform/internal/fleetstore	0.009s
ok  	github.com/carlosframework/platform/internal/fxrate	0.026s
ok  	github.com/carlosframework/platform/internal/gate	4.958s
ok  	github.com/carlosframework/platform/internal/genselect	0.155s
ok  	github.com/carlosframework/platform/internal/geo	0.034s
ok  	github.com/carlosframework/platform/internal/geoip	0.121s
ok  	github.com/carlosframework/platform/internal/groupadmission	0.010s
ok  	github.com/carlosframework/platform/internal/grouprollaws	16.898s
ok  	github.com/carlosframework/platform/internal/hadeparture	0.024s
ok  	github.com/carlosframework/platform/internal/hafresh	0.009s
ok  	github.com/carlosframework/platform/internal/hairpin	0.233s
ok  	github.com/carlosframework/platform/internal/historyreadback	0.940s
ok  	github.com/carlosframework/platform/internal/hostactors	25.785s
ok  	github.com/carlosframework/platform/internal/hostbox	23.451s
ok  	github.com/carlosframework/platform/internal/hostclaim	2.781s
ok  	github.com/carlosframework/platform/internal/hostenv	0.036s
ok  	github.com/carlosframework/platform/internal/hostevidence	0.032s
ok  	github.com/carlosframework/platform/internal/hostexec	24.874s
ok  	github.com/carlosframework/platform/internal/hostfence	0.186s
ok  	github.com/carlosframework/platform/internal/hostfiles	26.021s
ok  	github.com/carlosframework/platform/internal/hostfloor	0.064s
ok  	github.com/carlosframework/platform/internal/hostguard	1.471s
ok  	github.com/carlosframework/platform/internal/hostops	7.657s
?   	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.008s
ok  	github.com/carlosframework/platform/internal/hostrelocate	2.549s
ok  	github.com/carlosframework/platform/internal/hostresolve	0.861s
ok  	github.com/carlosframework/platform/internal/hostwrite	0.005s
ok  	github.com/carlosframework/platform/internal/infraview	0.006s
ok  	github.com/carlosframework/platform/internal/ingresshealth	0.015s
ok  	github.com/carlosframework/platform/internal/ingresshealth/awstg	0.015s
ok  	github.com/carlosframework/platform/internal/instancectl	55.190s
ok  	github.com/carlosframework/platform/internal/instanceexec	9.055s
ok  	github.com/carlosframework/platform/internal/instancefs	0.016s
ok  	github.com/carlosframework/platform/internal/instancekey	0.012s
ok  	github.com/carlosframework/platform/internal/instanceupdates	0.025s
ok  	github.com/carlosframework/platform/internal/interactive	0.685s
ok  	github.com/carlosframework/platform/internal/launchd	0.015s
ok  	github.com/carlosframework/platform/internal/layout	23.753s
ok  	github.com/carlosframework/platform/internal/layout/pubclass	98.659s
ok  	github.com/carlosframework/platform/internal/lbhealth	0.025s
ok  	github.com/carlosframework/platform/internal/lease	145.079s
ok  	github.com/carlosframework/platform/internal/lease/leasetest	1.133s
ok  	github.com/carlosframework/platform/internal/lease/locktest	0.025s
ok  	github.com/carlosframework/platform/internal/ledger	0.074s
ok  	github.com/carlosframework/platform/internal/mail	1.024s
ok  	github.com/carlosframework/platform/internal/mailer	0.892s
ok  	github.com/carlosframework/platform/internal/mailsubmit	1.279s
ok  	github.com/carlosframework/platform/internal/mailwire	0.003s
ok  	github.com/carlosframework/platform/internal/maintenance	0.150s
ok  	github.com/carlosframework/platform/internal/maintenanceexec	8.338s
ok  	github.com/carlosframework/platform/internal/maintenanceguard	0.234s
ok  	github.com/carlosframework/platform/internal/media	2.050s
ok  	github.com/carlosframework/platform/internal/media/mediatest	0.008s
ok  	github.com/carlosframework/platform/internal/mediaaws	63.158s
ok  	github.com/carlosframework/platform/internal/mediahandler	43.541s
ok  	github.com/carlosframework/platform/internal/mediajobs	0.947s
ok  	github.com/carlosframework/platform/internal/medialocal	9.656s
ok  	github.com/carlosframework/platform/internal/metrics	0.139s
ok  	github.com/carlosframework/platform/internal/minorunits	0.010s
ok  	github.com/carlosframework/platform/internal/moves	55.139s
ok  	github.com/carlosframework/platform/internal/moves/archive	2.652s
ok  	github.com/carlosframework/platform/internal/moves/offlinerun	0.086s
ok  	github.com/carlosframework/platform/internal/namedunits	0.042s
ok  	github.com/carlosframework/platform/internal/objstore	0.905s
ok  	github.com/carlosframework/platform/internal/ops	16.636s
ok  	github.com/carlosframework/platform/internal/pageindex	3.760s
ok  	github.com/carlosframework/platform/internal/parity	0.113s
?   	github.com/carlosframework/platform/internal/parity/cmd/parity-doc	[no test files]
ok  	github.com/carlosframework/platform/internal/park	0.642s
ok  	github.com/carlosframework/platform/internal/perf	0.186s
ok  	github.com/carlosframework/platform/internal/plans	0.176s
ok  	github.com/carlosframework/platform/internal/privatefile	0.018s
ok  	github.com/carlosframework/platform/internal/provision	235.911s
ok  	github.com/carlosframework/platform/internal/proxyproto	0.947s
ok  	github.com/carlosframework/platform/internal/publicrelease	0.076s
ok  	github.com/carlosframework/platform/internal/ratelimit	0.182s
ok  	github.com/carlosframework/platform/internal/regionlabel	0.070s
ok  	github.com/carlosframework/platform/internal/regionname	0.028s
ok  	github.com/carlosframework/platform/internal/registrar	0.011s
ok  	github.com/carlosframework/platform/internal/registrar/openprovider	0.203s
?   	github.com/carlosframework/platform/internal/registrar/registrartest	[no test files]
ok  	github.com/carlosframework/platform/internal/registry	87.221s
ok  	github.com/carlosframework/platform/internal/relay	7.850s
ok  	github.com/carlosframework/platform/internal/release	89.234s
ok  	github.com/carlosframework/platform/internal/replicagen	0.017s
ok  	github.com/carlosframework/platform/internal/replicas	0.055s
ok  	github.com/carlosframework/platform/internal/reqrec	5.988s
ok  	github.com/carlosframework/platform/internal/rollout	13.604s
ok  	github.com/carlosframework/platform/internal/rolloutwords	0.025s
ok  	github.com/carlosframework/platform/internal/rootaws	99.644s
ok  	github.com/carlosframework/platform/internal/rootfsimage	0.858s
ok  	github.com/carlosframework/platform/internal/rootparticipation	0.101s
ok  	github.com/carlosframework/platform/internal/rootstate	0.051s
ok  	github.com/carlosframework/platform/internal/runs	0.793s
ok  	github.com/carlosframework/platform/internal/s3compat	0.026s
ok  	github.com/carlosframework/platform/internal/s3fake	1.020s
ok  	github.com/carlosframework/platform/internal/safefile	0.019s
ok  	github.com/carlosframework/platform/internal/schedule	25.043s
ok  	github.com/carlosframework/platform/internal/seeds	0.099s
ok  	github.com/carlosframework/platform/internal/sim/litestreamfacts	5.506s
ok  	github.com/carlosframework/platform/internal/sim/mediajobs	48.165s
ok  	github.com/carlosframework/platform/internal/sim/regionha	25.204s
ok  	github.com/carlosframework/platform/internal/status	0.360s
ok  	github.com/carlosframework/platform/internal/steering	0.267s
ok  	github.com/carlosframework/platform/internal/stopevidence	0.611s
ok  	github.com/carlosframework/platform/internal/storecfg	0.438s
ok  	github.com/carlosframework/platform/internal/svcrole	0.020s
ok  	github.com/carlosframework/platform/internal/systemd	7.647s
?   	github.com/carlosframework/platform/internal/systemdshow	[no test files]
ok  	github.com/carlosframework/platform/internal/team	4.595s
ok  	github.com/carlosframework/platform/internal/teamcontract	0.345s
ok  	github.com/carlosframework/platform/internal/telemetry	0.035s
ok  	github.com/carlosframework/platform/internal/termfence	1.918s
ok  	github.com/carlosframework/platform/internal/timerspec	0.071s
ok  	github.com/carlosframework/platform/internal/tsidentity	4.152s
ok  	github.com/carlosframework/platform/internal/tunnelclient	0.434s
ok  	github.com/carlosframework/platform/internal/unixdial	0.018s
ok  	github.com/carlosframework/platform/internal/updatewords	0.089s
ok  	github.com/carlosframework/platform/internal/upstreamguard	0.017s
?   	github.com/carlosframework/platform/internal/upstreamguard/guardtest	[no test files]
ok  	github.com/carlosframework/platform/internal/usage	0.043s
ok  	github.com/carlosframework/platform/internal/version	0.030s
ok  	github.com/carlosframework/platform/internal/vet	3.578s
ok  	github.com/carlosframework/platform/internal/zonehost	0.036s
ok  	github.com/carlosframework/platform/internal/zonehost/route53zones	0.090s
?   	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.026s
ok  	github.com/carlosframework/platform/scripts/pathmapcheck	0.104s
ok  	github.com/carlosframework/platform/scripts/region-ha-g2/fixture	5.200s
ok  	github.com/carlosframework/platform/scripts/stateless-replicas-drill	1.280s
ok  	github.com/carlosframework/platform/scripts/witness-pointer	0.037s
=== cutover-witness (161 s, from +14 s)
ok  	github.com/carlosframework/platform	1.922s
=== internal_grouproll@0 (269 s, from +72 s)
ok  	github.com/carlosframework/platform/internal/grouproll	267.922s
=== internal_grouproll@1 (274 s, from +72 s)
ok  	github.com/carlosframework/platform/internal/grouproll	272.150s
=== internal_activator@0 (143 s, from +141 s)
ok  	github.com/carlosframework/platform/internal/activator	138.696s
=== internal_activator@1 (136 s, from +141 s)
ok  	github.com/carlosframework/platform/internal/activator	131.791s
=== internal_activator@2 (140 s, from +141 s)
ok  	github.com/carlosframework/platform/internal/activator	136.305s
=== internal_activator@3 (161 s, from +141 s)
ok  	github.com/carlosframework/platform/internal/activator	156.556s
=== internal_edge@0 (198 s, from +167 s)
ok  	github.com/carlosframework/platform/internal/edge	190.158s
=== internal_edge@1 (128 s, from +167 s)
ok  	github.com/carlosframework/platform/internal/edge	121.547s
=== internal_edge@2 (215 s, from +167 s)
ok  	github.com/carlosframework/platform/internal/edge	208.539s
=== internal_edge@3 (161 s, from +167 s)
ok  	github.com/carlosframework/platform/internal/edge	152.984s
=== root@0 (120 s, from +172 s)
ok  	github.com/carlosframework/platform	110.497s
=== root@1 (110 s, from +172 s)
ok  	github.com/carlosframework/platform	101.460s
=== root@2 (136 s, from +172 s)
ok  	github.com/carlosframework/platform	126.056s
=== root@3 (111 s, from +172 s)
ok  	github.com/carlosframework/platform	103.841s
=== root@4 (96 s, from +172 s)
ok  	github.com/carlosframework/platform	86.809s
=== internal_host@0 (135 s, from +210 s)
ok  	github.com/carlosframework/platform/internal/host	130.122s
=== internal_host@1 (144 s, from +210 s)
ok  	github.com/carlosframework/platform/internal/host	139.569s
=== internal_host@2 (269 s, from +210 s)
ok  	github.com/carlosframework/platform/internal/host	264.784s
=== internal_host@3 (192 s, from +210 s)
ok  	github.com/carlosframework/platform/internal/host	187.873s
=== internal_host@4 (212 s, from +210 s)
ok  	github.com/carlosframework/platform/internal/host	207.472s
=== internal_host@5 (173 s, from +210 s)
ok  	github.com/carlosframework/platform/internal/host	168.309s
=== internal_console@0 (176 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	168.287s
=== internal_console@1 (162 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	155.197s
=== internal_console@2 (194 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	186.470s
=== internal_console@3 (227 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	219.673s
=== internal_console@4 (178 s, from +218 s)
ok  	github.com/carlosframework/platform/internal/console	169.721s
=== internal_console@5 (190 s, from +219 s)
ok  	github.com/carlosframework/platform/internal/console	182.492s
=== internal_console@6 (190 s, from +219 s)
ok  	github.com/carlosframework/platform/internal/console	182.865s
=== internal_console@7 (190 s, from +219 s)
ok  	github.com/carlosframework/platform/internal/console	183.881s
=== internal_console@8 (198 s, from +219 s)
ok  	github.com/carlosframework/platform/internal/console	191.160s
=== internal_console@9 (203 s, from +219 s)
ok  	github.com/carlosframework/platform/internal/console	196.201s
=== internal_console@10 (219 s, from +219 s)
ok  	github.com/carlosframework/platform/internal/console	212.318s
=== internal_console@11 (200 s, from +219 s)
ok  	github.com/carlosframework/platform/internal/console	192.560s
=== internal_console@12 (301 s, from +219 s)
ok  	github.com/carlosframework/platform/internal/console	293.501s
=== internal_console@13 (198 s, from +219 s)
ok  	github.com/carlosframework/platform/internal/console	190.642s
=== internal_console@14 (185 s, from +219 s)
ok  	github.com/carlosframework/platform/internal/console	177.525s
=== internal_console@15 (205 s, from +219 s)
ok  	github.com/carlosframework/platform/internal/console	197.789s
=== internal_console@16 (190 s, from +219 s)
ok  	github.com/carlosframework/platform/internal/console	183.302s
=== internal_console@17 (217 s, from +219 s)
ok  	github.com/carlosframework/platform/internal/console	210.324s
=== internal_console@18 (227 s, from +219 s)
ok  	github.com/carlosframework/platform/internal/console	219.078s
=== internal_console@19 (224 s, from +219 s)
ok  	github.com/carlosframework/platform/internal/console	218.144s
=== internal_console@20 (185 s, from +219 s)
ok  	github.com/carlosframework/platform/internal/console	178.884s
=== internal_console@21 (207 s, from +219 s)
ok  	github.com/carlosframework/platform/internal/console	200.361s
=== internal_console@22 (203 s, from +219 s)
ok  	github.com/carlosframework/platform/internal/console	195.183s
=== internal_console@23 (207 s, from +219 s)
ok  	github.com/carlosframework/platform/internal/console	199.677s
=== lists: internal_console 217 s, internal_edge 165 s, internal_activator 140 s, internal_host 209 s, root 171 s, internal_grouproll 71 s
=== cpu: the gate used 12252 cpu-seconds in 520 s, about 23.6 of 32 cores; the machine as a whole was 79% busy
=== opentofu ===
opentofu: 35 test files in 11 suites, OpenTofu v1.13.9
  initialised in 15 s
  ok      17 s  infra/modules/box-fence-writer/tests/writer.tftest.hcl  Success! 1 passed, 0 failed.
  ok      31 s  infra/modules/deployment-buckets/tests/data_lifecycle.tftest.hcl  Success! 3 passed, 0 failed.
  ok      21 s  infra/modules/deployment-buckets/tests/db_reads.tftest.hcl  Success! 1 passed, 0 failed.
  ok      19 s  infra/modules/deployment-buckets/tests/evidence.tftest.hcl  Success! 1 passed, 0 failed.
  ok      30 s  infra/modules/deployment-buckets/tests/fence_writers.tftest.hcl  Success! 3 passed, 0 failed.
  ok      83 s  infra/modules/media-engine/tests/media_engine.tftest.hcl  Success! 24 passed, 0 failed.
  ok      34 s  infra/modules/pdf-host/tests/computed.tftest.hcl  Success! 2 passed, 0 failed.
  ok      69 s  infra/modules/pdf-host/tests/pdf_host.tftest.hcl  Success! 24 passed, 0 failed.
  ok      42 s  infra/modules/region-group-operator-document/tests/document.tftest.hcl  Success! 12 passed, 0 failed.
  ok      20 s  infra/modules/region-host/ingress/tests/fixed-targets/tests/targets.tftest.hcl  Success! 2 passed, 0 failed.
  ok      62 s  infra/modules/region-host/ingress/tests/group_ingress.tftest.hcl  Success! 30 passed, 0 failed.
  ok      41 s  infra/modules/region-host/tests/alert_publish.tftest.hcl  Success! 18 passed, 0 failed.
  ok      38 s  infra/modules/region-host/tests/alerts_topic.tftest.hcl  Success! 16 passed, 0 failed.
  ok      13 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       8 s  infra/modules/region-host/tests/fixed_state_unchanged.tftest.hcl  Success! 1 passed, 0 failed.
  ok      67 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       9 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      34 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      27 s  infra/modules/region-host/tests/health_alarms.tftest.hcl  Success! 10 passed, 0 failed.
  ok       8 s  infra/modules/region-host/tests/ingress_drain_read.tftest.hcl  Success! 4 passed, 0 failed.
  ok       4 s  infra/modules/region-host/tests/instance_metadata.tftest.hcl  Success! 1 passed, 0 failed.
  ok      19 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     107 s  infra/modules/region-host/tests/managed_fleets/managed_fleets.tftest.hcl  Success! 46 passed, 0 failed.
  ok      73 s  infra/modules/region-host/tests/store_conversion.tftest.hcl  Success! 27 passed, 0 failed.
  ok      19 s  infra/modules/region-host/tests/store_scanning.tftest.hcl  Success! 4 passed, 0 failed.
  ok      20 s  infra/modules/region-host/tests/user_data_ignored.tftest.hcl  Success! 3 passed, 0 failed.
  ok      12 s  infra/modules/region-remote-host/tests/data_lifecycle.tftest.hcl  Success! 3 passed, 0 failed.
  ok      15 s  infra/modules/region-remote-host/tests/no_deployment_bucket.tftest.hcl  Success! 5 passed, 0 failed.
  ok      27 s  infra/modules/scanner-host/tests/scanner_host.tftest.hcl  Success! 14 passed, 0 failed.
opentofu: 35 files in 205 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: 65667234 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:33123
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/21 23:24:20 moves: T4: STORE: list: operation error S3: ListObjectsV2, https response error StatusCode: 403, RequestID: 18EA32FC47EBFF66, HostID: 9a153eba14975dc0d7c79383f30ee3d271694ccc93edd198f88f92772d9df086, 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.041s
=== 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.12s)
    --- PASS: TestEndToEndMinio/replace (0.16s)
    --- PASS: TestEndToEndMinio/remove (0.15s)
PASS
ok  	github.com/carlosframework/platform/internal/grouproll	0.478s
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/21 23:24:26 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/21 23:24:26 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/11/21 23:24:26 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/11/21 23:24:26 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/11/21 23:24:26 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=370
2026/11/21 23:24:26 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000002
2026/11/21 23:24:26 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/11/21 23:24:26 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=454
2026/11/21 23:24:26 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/11/21 23:24:26 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/21 23:24:26 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/11/21 23:24:26 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/11/21 23:24:26 console: CARLOS_SECRETS_PUBKEY is unset, so no region outside the home can be chosen automatically
2026/11/21 23:24: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%3A34029: could not determine target mailbox
    agent.go:136: dbreads: dbr_ugflpbcfvj3fc527bfd6luy4ne: planned 3 files (1544 bytes) and restored to 3 in 13ms
    agent.go:136: dbreads: dbr_ugflpbcfvj3fc527bfd6luy4ne: output 5 bytes in 1 confirmed chunks in 2ms
2026/11/21 23:24:27 console: db read dbr_ugflpbcfvj3fc527bfd6luy4ne: relayed 1 chunks (102 bytes) in 1.005s, ended done
    agent.go:136: dbreads: dbr_jqlozwacpgfocx4gd5nhh5xmrm: planned 1 files (720 bytes) and restored to 1 in 11ms
    agent.go:136: dbreads: dbr_jqlozwacpgfocx4gd5nhh5xmrm: output 5 bytes in 1 confirmed chunks in 1ms
2026/11/21 23:24:28 console: db read dbr_jqlozwacpgfocx4gd5nhh5xmrm: relayed 1 chunks (102 bytes) in 1.005s, ended done
    agent.go:136: dbreads: dbr_s274uxrt444hwus2atsh4fjioq: planned 3 files (1544 bytes) and held through 3 in 12ms
    agent.go:136: dbreads: dbr_s274uxrt444hwus2atsh4fjioq: output 1544 bytes in 1 confirmed chunks in 1ms
2026/11/21 23:24:29 console: db read dbr_s274uxrt444hwus2atsh4fjioq: relayed 1 chunks (1641 bytes) in 1.005s, ended done
=== RUN   TestDBForwardMinio/by_disconnect
=== NAME  TestDBForwardMinio
    agent.go:136: dbreads: dbr_pshjwmkwcedw4auykxgom3tweu: planned 3 files (1544 bytes) and restored to 3 in 13ms
2026/11/21 23:24:29 console: db read dbr_pshjwmkwcedw4auykxgom3tweu: relayed 0 chunks (0 bytes) in 22ms, ended client gone
    agent.go:136: dbreads: dbr_pshjwmkwcedw4auykxgom3tweu: output 5 bytes in 1 confirmed chunks in 105ms
=== RUN   TestDBForwardMinio/by_timeout
=== NAME  TestDBForwardMinio
    agent.go:136: dbreads: dbr_mrozxzn23kfrws26rainy3oyji: planned 3 files (1544 bytes) and restored to 3 in 13ms
2026/11/21 23:24:49 console: db read dbr_mrozxzn23kfrws26rainy3oyji: relayed 0 chunks (0 bytes) in 19.013s, ended no-result
    agent.go:136: dbreads: dbr_mrozxzn23kfrws26rainy3oyji: output 5 bytes in 1 confirmed chunks in 18.989s
    agent.go:136: dbreads: list the uk queue: operation error S3: ListObjectsV2, https response error StatusCode: 0, RequestID: , HostID: , canceled, context canceled
--- PASS: TestDBForwardMinio (22.68s)
    --- PASS: TestDBForwardMinio/by_disconnect (0.23s)
    --- PASS: TestDBForwardMinio/by_timeout (19.12s)
PASS
ok  	github.com/carlosframework/platform/internal/console	22.722s
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.55s)
PASS
ok  	github.com/carlosframework/platform/internal/medialocal	0.553s
=== RUN   TestHeldHandoverTwoBoxMinio
2026/11/21 23:24:53 edge: mesh key: minted
2026/11/21 23:24:54 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/21 23:24:54 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/21 23:24:54 tenant admission is open. accepting tenant work
2026/11/21 23:24:54 activator: HA placement host=shop-31c5b03a.example.test kind=Place ref=annie reason=roomiest generation=2026-11-21T23:24:54Z lock_generation=0
2026/11/21 23:24:54 lease: t8-31c5b03a/shop-31c5b03a.example.test: HA lease acquired in 4ms (first wake)
2026/11/21 23:24:54 activator: shop-31c5b03a.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/21 23:24:54 activator: shop-31c5b03a.example.test: started carlos-instance@shop\x2d31c5b03a.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/21 23:24:54 activator: shop-31c5b03a.example.test: carlos-instance@shop\x2d31c5b03a.example.test.service launched in 7ms, healthy 0s later
2026/11/21 23:24:54 activator: shop-31c5b03a.example.test: woke in 20ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 7ms, replicate 8ms
2026/11/21 23:24:54 lease: t8-31c5b03a/plain-31c5b03a.example.test: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/21 23:24:54 activator: no replica for plain-31c5b03a.example.test in s3://contract-bucket/t8-31c5b03a/plain-31c5b03a.example.test — booting fresh
2026/11/21 23:24:54 activator: plain-31c5b03a.example.test: started carlos-instance@plain\x2d31c5b03a.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/21 23:24:54 activator: plain-31c5b03a.example.test: carlos-instance@plain\x2d31c5b03a.example.test.service launched in 6ms, healthy 0s later
2026/11/21 23:24:54 activator: plain-31c5b03a.example.test: woke in 95ms: checks 0s, lease 2ms, restore 18ms, identity 0s, protect 0s, spawn 7ms, replicate 68ms
2026/11/21 23:24:54 lease: t8-31c5b03a/bot0.shop.bac.sidecar.internal: HA lease acquired in 4ms (first wake)
2026/11/21 23:24:54 activator: bot0.shop.bac.sidecar.internal: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/21 23:24:54 activator: bot0.shop.bac.sidecar.internal: woke in 19ms: checks 0s, lease 4ms, restore 0s, identity 0s, protect 0s, spawn 7ms, settle 0s, replicate 7ms
2026/11/21 23:24:54 activator: next-due probe plain-31c5b03a.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/21 23:24:54 activator: bot0.shop.bac.sidecar.internal: released with a marker (clean true, txid 1, files 3:3754e238fcc3df3614a827dfbf4e526e0eed61f0d176ae2357d8e5ec184f149f) in 8ms: files 1ms, sync 4ms, record 1ms, marker 2ms
2026/11/21 23:24:54 activator: bot0.shop.bac.sidecar.internal hibernated
2026/11/21 23:24:54 activator: next-due probe shop-31c5b03a.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/21 23:24:54 activator: plain-31c5b03a.example.test hibernated
2026/11/21 23:24:54 activator: shop-31c5b03a.example.test: released with a marker (clean true, txid 1, files 3:7a00e343759c378518d6c6efa384ae9bcf2268297544af7cd3a52e071fc203a4) in 5ms: files 1ms, sync 2ms, record 1ms, marker 2ms
2026/11/21 23:24:54 activator: shop-31c5b03a.example.test hibernated
2026/11/21 23:24:54 lease: t8-31c5b03a/shop-31c5b03a.example.test: HA lease acquired in 3ms (clean marker)
2026/11/21 23:24:54 activator: shop-31c5b03a.example.test: restored (other-box)
2026/11/21 23:24:54 activator: shop-31c5b03a.example.test: started carlos-instance@shop\x2d31c5b03a.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/21 23:24:54 activator: shop-31c5b03a.example.test: carlos-instance@shop\x2d31c5b03a.example.test.service launched in 1ms, healthy 0s later
2026/11/21 23:24:54 activator: shop-31c5b03a.example.test: woke in 35ms: checks 0s, lease 4ms, restore 23ms, identity 0s, protect 0s, spawn 2ms, replicate 6ms
2026/11/21 23:24:54 edge: ha-take shop-31c5b03a.example.test from annie (txn t8-witness, marker generation 1): holder betty, generation 2
2026/11/21 23:24:54 edge: forward shop-31c5b03a.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:4a2869f92717da34966f8b291972ddf5 Step:move Result:ok Reasons:[] Fence:t8-witness StartedAt:2026-11-21 23:24:54.347231559 +0000 UTC FinishedAt:2026-11-21 23:24:54.44453393 +0000 UTC Acked:[betty carol] Departed:[] Moved:[{Host:shop-31c5b03a.example.test Holder:betty Gen:2 Confirmed:take}] Released:[{Host:bot0.shop.bac.sidecar.internal Kind:worker Marker:true Clean:true Reason:} {Host:plain-31c5b03a.example.test Kind:other Marker:true Clean:true Reason:}] Unclean:[] Left:[] Holds:{LongestMS:65 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-31c5b03a.example.test <nil> stop bot0.shop.bac.sidecar.internal marker=true clean=true <nil> releasing shop-31c5b03a.example.test <nil> stop plain-31c5b03a.example.test marker=true clean=true <nil> stop shop-31c5b03a.example.test marker=true clean=true <nil> taken shop-31c5b03a.example.test betty <nil> end-moves]
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/bot0.shop.bac.sidecar.internal/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/bot0.shop.bac.sidecar.internal/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/bot0.shop.bac.sidecar.internal/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-31c5b03a/shop-31c5b03a.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-31c5b03a/bot0.shop.bac.sidecar.internal/0009/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-31c5b03a/bot0.shop.bac.sidecar.internal/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: DELETE /contract-bucket/t8-31c5b03a/plain-31c5b03a.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-31c5b03a/shop-31c5b03a.example.test/0009/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-31c5b03a/shop-31c5b03a.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-31c5b03a/shop-31c5b03a.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-31c5b03a/shop-31c5b03a.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-31c5b03a/shop-31c5b03a.example.test/head.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/generations/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0008/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0007/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0006/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0005/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0004/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0008/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0007/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0006/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0005/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0004/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-31c5b03a/shop-31c5b03a.example.test/0009/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-31c5b03a/shop-31c5b03a.example.test/files/0/manifest.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-31c5b03a/shop-31c5b03a.example.test/files/0/objects/0000000000000001-08d1a83a203873cfc031b60002e333270232241e9a8a821ce31542b2883d4797
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-31c5b03a/shop-31c5b03a.example.test/files/0/objects/0000000000000003-95c9e9b596a8e155f8094fce0808996ebba492af5c13efaf98a0df0560a3892b
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-31c5b03a/shop-31c5b03a.example.test/0000/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-31c5b03a/shop-31c5b03a.example.test/0000/0000000000000002-0000000000000002.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-31c5b03a/shop-31c5b03a.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-31c5b03a/shop-31c5b03a.example.test/0003/
    hadrain_twobox_minio_linux_test.go:1243: drain took 144ms; S3 calls 48 (DELETE lock=1 GET files=3 GET head=1 GET lock=3 GET replica=2 LIST replica=32 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/21 23:24:54 lease: t8-31c5b03a/plain-31c5b03a.example.test: acquired in 2ms (client 0s, lock read and write 1ms)
2026/11/21 23:24:54 activator: plain-31c5b03a.example.test: started carlos-instance@plain\x2d31c5b03a.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/21 23:24:54 activator: plain-31c5b03a.example.test: carlos-instance@plain\x2d31c5b03a.example.test.service launched in 1ms, healthy 0s later
2026/11/21 23:24:54 lease: /tmp/carlos-minio-contract-3pn0sP/g/dw3195651917/data/instances/plain-31c5b03a.example.test/plain-31c5b03a.example.test.db: continuity with the last clean close not proven; snapshot 1-0000000000000001 written before serving
2026/11/21 23:24:54 activator: plain-31c5b03a.example.test: woke in 9ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 1ms, replicate 5ms
2026/11/21 23:24:54 activator: next-due probe shop-31c5b03a.example.test: decode /api/next-due: invalid character 'b' looking for beginning of value — recording none (it sleeps until a request)
2026/11/21 23:24:54 activator: shop-31c5b03a.example.test: released with a marker (clean true, txid 2, files 3:7a00e343759c378518d6c6efa384ae9bcf2268297544af7cd3a52e071fc203a4) in 4ms: files 1ms, sync 0s, record 1ms, marker 2ms
2026/11/21 23:24:54 activator: shop-31c5b03a.example.test hibernated
2026/11/21 23:24:54 tenant admission is closed for shutdown
2026/11/21 23:24:54 activator: next-due probe plain-31c5b03a.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/21 23:24:54 activator: plain-31c5b03a.example.test hibernated
--- PASS: TestHeldHandoverTwoBoxMinio (0.54s)
=== RUN   TestHeldHandoverLostLeaseMinio
2026/11/21 23:24:54 edge: mesh key: minted
2026/11/21 23:24:54 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/21 23:24:54 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/21 23:24:54 tenant admission is open. accepting tenant work
2026/11/21 23:24:54 activator: HA placement host=shop-7d28b2bd.example.test kind=Place ref=annie reason=roomiest generation=2026-11-21T23:24:54Z lock_generation=0
2026/11/21 23:24:54 lease: t8-7d28b2bd/shop-7d28b2bd.example.test: HA lease acquired in 3ms (first wake)
2026/11/21 23:24:54 activator: shop-7d28b2bd.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/21 23:24:54 activator: shop-7d28b2bd.example.test: started carlos-instance@shop\x2d7d28b2bd.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/21 23:24:54 activator: shop-7d28b2bd.example.test: carlos-instance@shop\x2d7d28b2bd.example.test.service launched in 7ms, healthy 0s later
2026/11/21 23:24:54 activator: shop-7d28b2bd.example.test: woke in 66ms: checks 0s, lease 4ms, restore 0s, identity 0s, protect 0s, spawn 7ms, replicate 54ms
2026/11/21 23:24:54 activator: next-due probe shop-7d28b2bd.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/21 23:24:54 activator: final checkpoint shop-7d28b2bd.example.test: lease: release marker owed for s3://contract-bucket/t8-7d28b2bd/shop-7d28b2bd.example.test/lock.json (If-Match "87cff8bf93a9ff9d5c58b387bbefa636"): lease: write release marker: operation error S3: PutObject, https response error StatusCode: 503, RequestID: , HostID: , api error ServiceUnavailable: witness: refused
2026/11/21 23:24:54 activator: shop-7d28b2bd.example.test hibernated
2026/11/21 23:24:54 activator: handover of shop-7d28b2bd.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-7d28b2bd.example.test client 4 "
    hadrain_twobox_minio_linux_test.go:1486: driver calls: [begin shop-7d28b2bd.example.test <nil> releasing shop-7d28b2bd.example.test <nil> stop shop-7d28b2bd.example.test marker=false clean=false <nil> left shop-7d28b2bd.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/21 23:24:54 tenant admission is closed for shutdown
2026/11/21 23:24:54 http: proxy error: context canceled
--- PASS: TestHeldHandoverLostLeaseMinio (0.32s)
PASS
ok  	github.com/carlosframework/platform/internal/host	0.904s
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/21 23:24:56 lease: instances/gen-1795303496040418036.shop.example.com: HA lease acquired in 5ms (first wake)
2026/11/21 23:24:56 lease: instances/gen-1795303496040418036.shop.example.com: HA lease acquired in 3ms (holder terminated)
    gentake_minio_test.go:308: a second create-only copy onto instances/gen-1795303496040418036.shop.example.com/g-00000000000000000002/0000/0000000000000001-0000000000000001.ltx: <nil> (destination condition honoured: false)
2026/11/21 23:24: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/21 23:24:56 http: proxy error: context canceled
2026/11/21 23:24: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)"
=== RUN   TestGenerationTakeMinio/switch-412
2026/11/21 23:24:56 lease: instances/gen-1795303496163584780.shop.example.com: HA lease acquired in 3ms (first wake)
2026/11/21 23:24: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/21 23:24:56 lease: instances/gen-1795303496163584780.shop.example.com: HA lease acquired in 2ms (clean marker)
=== RUN   TestGenerationTakeMinio/copy-version
=== RUN   TestGenerationTakeMinio/store-time
2026/11/21 23:24:56 lease: instances/gen-1795303496212883852.shop.example.com: HA lease acquired in 4ms (first wake)
2026/11/21 23:24: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/21 23:24:56 lease: instances/gen-1795303496212883852.shop.example.com: HA lease acquired in 3ms (clean marker)
2026/11/21 23:24:56 lease: instances/gen-1795303496212883852.shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/11/21 23:24:56 lease: instances/gen-1795303496212883852.shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/11/21 23:24:56 lease: instances/gen-1795303496212883852.shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/11/21 23:24:56 lease: instances/gen-1795303496212883852.shop.example.com: HA lease acquired in 2ms (unclean marker)
=== RUN   TestGenerationTakeMinio/skew
--- PASS: TestGenerationTakeMinio (0.28s)
    --- PASS: TestGenerationTakeMinio/take (0.12s)
    --- PASS: TestGenerationTakeMinio/switch-412 (0.04s)
    --- PASS: TestGenerationTakeMinio/copy-version (0.01s)
    --- PASS: TestGenerationTakeMinio/store-time (0.10s)
    --- PASS: TestGenerationTakeMinio/skew (0.01s)
PASS
ok  	github.com/carlosframework/platform/internal/lease	0.294s
minio contract: PASS
=== staticcheck ===
go version go1.26.10 linux/arm64
go: downloading honnef.co/go/tools v0.8.2
go: downloading golang.org/x/exp/typeparams v0.0.0-20231108232855-2478ac86f678
go: downloading github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c
go: downloading golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa
go: downloading golang.org/x/sync v0.23.0
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 1m47s
    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  3782  7198  internal/activator activator.go
          file-lines  3530  4459  . apimode_test.go
          file-lines  3261  3864  internal/registry registry_test.go
          file-lines  3211  6356  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   400   868  internal/provision rootReadArchivedChain
          func-lines   399   732  internal/release PassFilter
          func-lines   390   398  internal/host runFilesSeedPreparationWithLive
          func-lines   384   905  internal/edge (*Edge).ServeHTTP
          func-lines   383   406  internal/console TestDemoSourceToLiveAndUpdate
          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   358   362  internal/registry (*Registry).haJournal
          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 (203 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/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/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         18578 at   45 sites  functions over 300 code lines (blank and comment-only lines not counted)
    codehealth_test.go:115: file-lines         30752 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/activator activator.go -: 3782 in the code, the record allows 3783 (make code-health-record lowers it)
    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.00s)
PASS
ok  	github.com/carlosframework/platform/internal/codehealth	107.961s
=== code-health-record ===
go version go1.26.10 linux/arm64
code-health record: HEAD is on main; comparing with its parent 21e821a6880addcb5be9a5c4ac85fd97dd0f8695
=== 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 (13 s, from +14 s)
ok  	github.com/carlosframework/platform/internal/systemd	12.419s
=== internal_rootaws@0 (26 s, from +35 s)
ok  	github.com/carlosframework/platform/internal/rootaws	25.127s
=== internal_activator@0 (289 s, from +111 s)
ok  	github.com/carlosframework/platform/internal/activator	287.658s
=== internal_activator@1 (249 s, from +111 s)
ok  	github.com/carlosframework/platform/internal/activator	247.528s
=== internal_activator@2 (301 s, from +111 s)
ok  	github.com/carlosframework/platform/internal/activator	299.438s
=== internal_activator@3 (361 s, from +111 s)
ok  	github.com/carlosframework/platform/internal/activator	358.956s
=== internal_activator@4 (283 s, from +111 s)
ok  	github.com/carlosframework/platform/internal/activator	280.936s
=== internal_activator@5 (288 s, from +111 s)
ok  	github.com/carlosframework/platform/internal/activator	285.977s
=== internal_activator@6 (313 s, from +111 s)
ok  	github.com/carlosframework/platform/internal/activator	311.693s
=== internal_activator@7 (423 s, from +111 s)
ok  	github.com/carlosframework/platform/internal/activator	421.484s
=== internal_edge@0 (84 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	81.030s
=== internal_edge@1 (72 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	69.119s
=== internal_edge@2 (207 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	203.861s
=== internal_edge@3 (143 s, from +131 s)
==================
WARNING: DATA RACE
Write at 0x000005f6d160 by goroutine 165:
  github.com/carlosframework/platform/internal/edge.newBackhaulSceneWith.func1()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/backhaul_e2e_test.go:579 +0x3c
  testing.(*common).Cleanup.func1()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/testing/testing.go:1317 +0x124
  testing.(*common).runCleanup()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/testing/testing.go:1667 +0x16c
  testing.tRunner.func2()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/testing/testing.go:2030 +0x48
  runtime.deferreturn()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/runtime/panic.go:668 +0x5c
  testing.(*T).Run.gowrap1()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/testing/testing.go:2101 +0x34

Previous read at 0x000005f6d160 by goroutine 256:
  github.com/carlosframework/platform/internal/edge.(*Edge).backhaulTransport.func1()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/edge.go:4716 +0x50
  net/http.(*Transport).dial()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/transport.go:1307 +0x90
  net/http.(*Transport).dialConn()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/transport.go:1815 +0xa4c
  net/http.(*Transport).dialConnFor()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/transport.go:1648 +0xb0
  net/http.(*Transport).startDialConnForLocked.func1()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/transport.go:1629 +0x34

Goroutine 165 (running) created at:
  testing.(*T).Run()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/testing/testing.go:2101 +0x7bc
  github.com/carlosframework/platform/internal/edge.TestAssetE2ECoalescedWaitersAndRefusals()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/asset_e2e_test.go:830 +0x194
  testing.tRunner()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/testing/testing.go:2036 +0x164
  testing.(*T).Run.gowrap1()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/testing/testing.go:2101 +0x34

Goroutine 256 (running) created at:
  net/http.(*Transport).startDialConnForLocked()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/transport.go:1628 +0x1a4
  net/http.(*Transport).queueForDial()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/transport.go:1601 +0x3cc
  net/http.(*Transport).getConn()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/transport.go:1548 +0x4b4
  net/http.(*Transport).roundTrip()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/transport.go:693 +0xee0
  net/http.(*Transport).RoundTrip()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/roundtrip.go:33 +0x34
  github.com/carlosframework/platform/internal/edge.backhaulHolderTransport.RoundTrip()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/backhaul_holder.go:184 +0x50
  github.com/carlosframework/platform/internal/edge.(*backhaulHolderTransport).RoundTrip()
      <autogenerated>:1 +0x48
  net/http/httputil.(*ReverseProxy).ServeHTTP()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/httputil/reverseproxy.go:579 +0x12dc
  github.com/carlosframework/platform/internal/edge.(*Edge).hopTo()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/edge.go:4637 +0x59c
  github.com/carlosframework/platform/internal/edge.(*Edge).backhaulAttempt()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/backhaul_holder.go:329 +0xdcc
  github.com/carlosframework/platform/internal/edge.(*Edge).backhaulRouteTo()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/pathhop.go:59 +0x320
  github.com/carlosframework/platform/internal/edge.(*Edge).backhaulTo()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/edge.go:4588 +0x2b0
  github.com/carlosframework/platform/internal/edge.(*Edge).backhaul()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/edge.go:4581 +0x1dc
  github.com/carlosframework/platform/internal/edge.(*Edge).farForward()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/assetcatch.go:1366 +0x104
  github.com/carlosframework/platform/internal/edge.(*Edge).serveAssetFar.func4()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/assetcatch.go:1238 +0x308
  github.com/carlosframework/platform/internal/edge.(*Edge).serveAssetFar()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/assetcatch.go:1268 +0x13e4
  github.com/carlosframework/platform/internal/edge.(*Edge).ServeHTTP()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/edge.go:2416 +0x2e20
  github.com/carlosframework/platform/internal/edge.newBackhaulEdgeWith.func1()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/backhaul_e2e_test.go:384 +0x288
  net/http.HandlerFunc.ServeHTTP()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/server.go:2306 +0x48
  net/http.serverHandler.ServeHTTP()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/server.go:3331 +0x268
  net/http.(*conn).serve()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/server.go:2087 +0xa30
  net/http.(*Server).Serve.gowrap3()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/server.go:3484 +0x40
==================
--- FAIL: TestAssetE2ECoalescedWaitersAndRefusals (3.76s)
    --- FAIL: TestAssetE2ECoalescedWaitersAndRefusals/a_refusal_reaches_only_its_initiator (1.94s)
        testing.go:1712: race detected during execution of test
2026/11/21 23:32:47 edge: mesh key: minted
2026/11/21 23:32:48 edge: mesh key: minted
2026/11/21 23:32:49 edge: mesh key: minted
2026/11/21 23:32:51 edge: wildcard *.go.tito.io: acme register: Get "http://127.0.0.1:42555/directory": dial tcp 127.0.0.1:42555: connect: connection refused — per-host issuance keeps covering; retrying in 1h0m0s
2026/11/21 23:32:51 edge: cert warmed for shop.example.com
2026/11/21 23:32:51 edge: cert warm standing down: another box holds the issuer lease
2026/11/21 23:32:51 edge: cert warm for bad.customer.test: order failed — retrying in 1h0m0s
2026/11/21 23:32:52 edge: route shop.kmqa.oncarlos.com (app "shop", account kmqa): a Set-Cookie on shop.kmqa.oncarlos.com named a Domain outside the app's own account; removed it so the cookie is host-only (logged once per route)
2026/11/21 23:32:53 edge: static cache /tmp/TestDemoAPIAliasIsolationstatic_cache_gzip_burst_and_usage3373701267/003/cache: first start with the lock; sweeping from the next start
2026/11/21 23:32:53 edge: mesh key: minted
2026/11/21 23:32:53 INFO edge: static site=bab/shop version=v1 bytes=243 seconds=0.001
2026/11/21 23:32:54 edge: mesh key: minted
2026/11/21 23:32:55 edge: mesh key: minted
2026/11/21 23:32:56 edge: mesh key: minted
2026/11/21 23:32:56 edge: rate limit: refused a request for console.example.com (backstop), client 192.0.2.1/32 (occurrence #1)
2026/11/21 23:33:07 edge: route shop.example.com is not served: forward row on a box that is not the hub (occurrence #1)
2026/11/21 23:33:08 edge: tunnel pi/pi-1: connected from 127.0.0.1:44594
2026/11/21 23:33:09 edge: tunnel home/box-1: connected from 127.0.0.1:56786
2026/11/21 23:33:09 edge: mesh key: minted
2026/11/21 23:33:10 edge: a hub-forwarded host this box does not route yet answered 503 (latest a.test) (occurrence #1)
2026/11/21 23:33:14 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/21 23:33:19 edge: geoip database ed972738 expired (GeoLite2, 30 days after build) and was removed
2026/11/21 23:33:20 edge: mesh key: minted
2026/11/21 23:33:33 edge: home map: 1 host(s) published by two boxes at the same installation stamp, e.g. shop.example.com
2026/11/21 23:33:33 edge: home map: 1 host(s) published by two boxes at the same installation stamp, e.g. shop.example.com
2026/11/21 23:33:33 edge: home map: 1 host(s) published by two boxes at the same installation stamp, e.g. shop.example.com
2026/11/21 23:33:33 edge: home map: 1 host(s) published by two boxes at the same installation stamp, e.g. shop.example.com
2026/11/21 23:33:33 edge: 1 of 3 object(s) under control/edges/ unreadable this poll (#1, last: control/edges/box-b.json: json: cannot unmarshal string into Go struct field edgesHostView.hosts.stamp of type int64) — the previous copy of each is carried forward
2026/11/21 23:33:33 edge: 1 of 3 object(s) under control/edges/ unreadable this poll (#1, last: control/edges/box-b.json: json: cannot unmarshal string into Go struct field edgesHostView.hosts.stamp of type int64) — the previous copy of each is carried forward
2026/11/21 23:33:33 edge: 1 of 3 object(s) under control/edges/ unreadable this poll (#1, last: control/edges/box-b.json: json: cannot unmarshal string into Go struct field edgesHostView.hosts.stamp of type int64) — the previous copy of each is carried forward
2026/11/21 23:33:33 edge: 1 of 3 object(s) under control/edges/ unreadable this poll (#1, last: control/edges/box-b.json: json: cannot unmarshal string into Go struct field edgesHostView.hosts.stamp of type int64) — the previous copy of each is carried forward
2026/11/21 23:33:33 edge: 1 of 1 object(s) under control/edges/ unreadable this poll (#1, last: control/edges/betty.json: unexpected end of JSON input) — the previous copy of each is carried forward
2026/11/21 23:33:33 edge: mesh key: minted
2026/11/21 23:33:34 edge: mesh key: minted
2026/11/21 23:33:35 edge: stale hop refusal on box annie for example.com (#1) — the sending edge's home map has not caught up yet
2026/11/21 23:33:37 edge: tunnel link:0123456789ab/home: connected from 127.0.0.1:38630
2026/11/21 23:33:38 edge: tunnel link:0123456789ab/home: connected from 127.0.0.1:43296
2026/11/21 23:33:38 edge: tunnel link:0123456789ab/home: connected from 127.0.0.1:43298
2026/11/21 23:33:42 edge: tunnel link:0123456789ab/home: ping failed (read tcp 127.0.0.1:37853->127.0.0.1:38630: use of closed network connection) — dropping channel
2026/11/21 23:33:43 edge: tunnel link:0123456789ab/home: ping failed (read tcp 127.0.0.1:41505->127.0.0.1:43296: use of closed network connection) — dropping channel
2026/11/21 23:33:43 edge: tunnel link:0123456789ab/home: ping failed (EOF) — dropping channel
2026/11/21 23:33:50 edge: mesh key: minted
2026/11/21 23:33:51 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/21 23:33:51 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/21 23:33:52 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/21 23:33:52 edge: mesh key: minted
2026/11/21 23:33:53 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/21 23:33:54 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/21 23:33:55 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/21 23:33:58 edge: probe m.example.com 127.0.0.1:33325 down (dial failed on a live request)
2026/11/21 23:33:58 edge: probe m.example.com 127.0.0.1:33325 up
2026/11/21 23:34:05 edge: a.example.com (app "", account "") declared Carlos-Purge-Host "b.example.com", which belongs to app "", account "" — a purge crosses an app boundary only when "b.example.com" path-routes to the serving route, and never crosses an account boundary; the whole declaration is ignored (occurrence #1)
2026/11/21 23:34:07 edge: rate limit: refused a request for shop.example.com (backstop), client 203.0.113.1/32 (occurrence #1)
2026/11/21 23:34:09 edge: tunnel home/box-1: connected from 127.0.0.1:45392
2026/11/21 23:34:09 edge: route shop.example.com is not served: account "bah" does not own fleet "home" (occurrence #1)
2026/11/21 23:34:11 edge: tunnel home/box-1: connected from 127.0.0.1:41260
2026/11/21 23:34:12 edge: route shop.example.com is not served: account "bah" does not own fleet "home" (occurrence #1)
2026/11/21 23:34:16 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/21 23:34:21 edge: mesh key: minted
2026/11/21 23:34:22 edge: static cache /tmp/TestStaticGuardOffServesAsBefore3340505269/004/cache: first start with the lock; sweeping from the next start
2026/11/21 23:34:22 INFO edge: static site=bab/site version=v1 bytes=196 seconds=0.001
2026/11/21 23:34:22 INFO edge: static site=bab/site version=v1 bytes=132646 seconds=0.001
2026/11/21 23:34:22 INFO edge: static site=bab/site version=v1 bytes=106 seconds=0.000
2026/11/21 23:34:22 INFO edge: static site=bab/site version=v2 bytes=106 seconds=0.000
2026/11/21 23:34:22 edge: static site/canary/x: stage v1: release: manifest does not hash to the digest its signer recorded: site/v1 hashes to db78d6a9db48, the pointer signed a0e63635d7e6 — still serving cached v2
2026/11/21 23:34:24 edge: tunnel pi-box: connected from 127.0.0.1:44536
2026/11/21 23:34:26 edge: tunnel home/box-1: connected from 127.0.0.1:38858
2026/11/21 23:34:27 edge: wildcard certs off (CARLOS_DNSIMPLE_TOKEN missing) — per-host issuance continues
2026/11/21 23:34:27 edge: delegated wildcard aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.example.com dropped: composed challenge name exceeds 253 bytes
2026/11/21 23:34:27 edge: mesh key: minted
2026/11/21 23:34:28 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/21 23:34:29 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/21 23:34:29 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/21 23:34:29 activator: LEASE HELD for ha.forward.test by "box/v1;ref=betty;iid=i-b;pid=7;ha=1" — a previous incarnation hasn't released; refusing to wake (retry after 59m57.431194593s)
2026/11/21 23:34:29 edge: backhaul holder learned for ha.forward.test: betty (occurrence #1)
2026/11/21 23:34:29 edge: backhaul holder for ha.forward.test: annie to betty (occurrence #1)
2026/11/21 23:34:30 edge: backhaul holder dropped for ha.forward.test: betty (connect failure) (occurrence #1)
2026/11/21 23:34:30 edge: backhaul connect fallback for ha.forward.test: betty to annie (occurrence #1)
FAIL
FAIL	github.com/carlosframework/platform/internal/edge	139.523s
FAIL
=== internal_edge@4 (142 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	139.441s
=== internal_edge@5 (240 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	236.776s
=== internal_edge@6 (205 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	202.409s
=== internal_edge@7 (292 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	288.939s
=== internal_edge@8 (200 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	197.480s
=== internal_edge@9 (251 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	248.034s
=== internal_edge@10 (227 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	224.339s
=== internal_edge@11 (223 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	219.886s
=== internal_edge@12 (249 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	245.787s
=== internal_edge@13 (256 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	253.198s
=== internal_edge@14 (214 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	211.091s
=== internal_edge@15 (241 s, from +131 s)
ok  	github.com/carlosframework/platform/internal/edge	237.661s
=== internal_host@0 (14 s, from +190 s)
ok  	github.com/carlosframework/platform/internal/host	10.595s
=== internal_host@1 (8 s, from +190 s)
ok  	github.com/carlosframework/platform/internal/host	5.477s
=== lists: internal_edge 130 s, internal_activator 110 s, internal_host 189 s, internal_rootaws 34 s, internal_systemd 14 s
=== cpu: the gate used 7503 cpu-seconds in 534 s, about 14.1 of 32 cores; the machine as a whole was 43% busy

Failure summary:
--- internal_edge@3
--- FAIL: TestAssetE2ECoalescedWaitersAndRefusals (3.76s)
    --- FAIL: TestAssetE2ECoalescedWaitersAndRefusals/a_refusal_reaches_only_its_initiator (1.94s)
FAIL	github.com/carlosframework/platform/internal/edge	139.523s
WARNING: DATA RACE
Write at 0x000005f6d160 by goroutine 165:
  github.com/carlosframework/platform/internal/edge.newBackhaulSceneWith.func1()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/backhaul_e2e_test.go:579 +0x3c
  testing.(*common).Cleanup.func1()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/testing/testing.go:1317 +0x124
  testing.(*common).runCleanup()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/testing/testing.go:1667 +0x16c
  testing.tRunner.func2()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/testing/testing.go:2030 +0x48
  runtime.deferreturn()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/runtime/panic.go:668 +0x5c
  testing.(*T).Run.gowrap1()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/testing/testing.go:2101 +0x34

Previous read at 0x000005f6d160 by goroutine 256:
  github.com/carlosframework/platform/internal/edge.(*Edge).backhaulTransport.func1()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/edge.go:4716 +0x50
  net/http.(*Transport).dial()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/transport.go:1307 +0x90
  net/http.(*Transport).dialConn()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/transport.go:1815 +0xa4c
  net/http.(*Transport).dialConnFor()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/transport.go:1648 +0xb0
  net/http.(*Transport).startDialConnForLocked.func1()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/transport.go:1629 +0x34

Goroutine 165 (running) created at:
  testing.(*T).Run()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/testing/testing.go:2101 +0x7bc
  github.com/carlosframework/platform/internal/edge.TestAssetE2ECoalescedWaitersAndRefusals()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/asset_e2e_test.go:830 +0x194
  testing.tRunner()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/testing/testing.go:2036 +0x164
  testing.(*T).Run.gowrap1()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/testing/testing.go:2101 +0x34

Goroutine 256 (running) created at:
  net/http.(*Transport).startDialConnForLocked()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/transport.go:1628 +0x1a4
  net/http.(*Transport).queueForDial()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/transport.go:1601 +0x3cc
  net/http.(*Transport).getConn()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/transport.go:1548 +0x4b4
  net/http.(*Transport).roundTrip()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/transport.go:693 +0xee0
  net/http.(*Transport).RoundTrip()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/roundtrip.go:33 +0x34
  github.com/carlosframework/platform/internal/edge.backhaulHolderTransport.RoundTrip()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/backhaul_holder.go:184 +0x50
  github.com/carlosframework/platform/internal/edge.(*backhaulHolderTransport).RoundTrip()
      <autogenerated>:1 +0x48
  net/http/httputil.(*ReverseProxy).ServeHTTP()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/httputil/reverseproxy.go:579 +0x12dc
  github.com/carlosframework/platform/internal/edge.(*Edge).hopTo()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/edge.go:4637 +0x59c
  github.com/carlosframework/platform/internal/edge.(*Edge).backhaulAttempt()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/backhaul_holder.go:329 +0xdcc
  github.com/carlosframework/platform/internal/edge.(*Edge).backhaulRouteTo()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/pathhop.go:59 +0x320
  github.com/carlosframework/platform/internal/edge.(*Edge).backhaulTo()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/edge.go:4588 +0x2b0
  github.com/carlosframework/platform/internal/edge.(*Edge).backhaul()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/edge.go:4581 +0x1dc
  github.com/carlosframework/platform/internal/edge.(*Edge).farForward()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/assetcatch.go:1366 +0x104
  github.com/carlosframework/platform/internal/edge.(*Edge).serveAssetFar.func4()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/assetcatch.go:1238 +0x308
  github.com/carlosframework/platform/internal/edge.(*Edge).serveAssetFar()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/assetcatch.go:1268 +0x13e4
  github.com/carlosframework/platform/internal/edge.(*Edge).ServeHTTP()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/edge.go:2416 +0x2e20
  github.com/carlosframework/platform/internal/edge.newBackhaulEdgeWith.func1()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/backhaul_e2e_test.go:384 +0x288
  net/http.HandlerFunc.ServeHTTP()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/server.go:2306 +0x48
  net/http.serverHandler.ServeHTTP()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/server.go:3331 +0x268
  net/http.(*conn).serve()
      /home/ci/work/repos/carlos__platform/cache/go-mod/golang.org/toolchain@v0.0.1-go1.26.10.linux-arm64/src/net/http/server.go:2087 +0xa30

FAILED: internal_edge@3
make: *** [Makefile:154: race] Error 1

amadan: step race failed: exit status 2

amadan: job failed at step race — its output is above, not at the tail of this log
diff --git a/docs/site/cli.md b/docs/site/cli.md
index 428ea03cf..3923a88ca 100644
--- a/docs/site/cli.md
+++ b/docs/site/cli.md
@@ -541,6 +541,10 @@ These headers can be set:
| `Access-Control-Expose-Headers` | a list of header names |
| `Cross-Origin-Resource-Policy` | `same-origin`, `same-site` or `cross-origin` |
| `Timing-Allow-Origin` | `*` |
+| `Content-Security-Policy` | a policy, such as `default-src 'self'` |
+| `X-Content-Type-Options` | `nosniff` |
+| `Referrer-Policy` | one or more policies, such as `no-referrer` |
+| `X-DNS-Prefetch-Control` | `on` or `off` |
`carlos ship` and `carlos deploy` refuse a `_headers` file with a line they
cannot use, and name the line. Any other header is refused too. A file can
diff --git a/docs/superpowers/notes/census-proposal-headers-security-allowlist.md b/docs/superpowers/notes/census-proposal-headers-security-allowlist.md
new file mode 100644
index 000000000..c7d235320
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-headers-security-allowlist.md
@@ -0,0 +1,11 @@
+# Census approval: headers-security-allowlist
+
+Ruling `census-ruling-headers-security-allowlist`. The independent reviewer approves or rejects every change below, 0 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+Envelopes re-pinned: `internal/edge`.
+
+Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
+
+Seal: `f959a3626e83650aaad1880eecc3feddebdbd78474937f4c619df658eb46a1d6` → `f959a3626e83650aaad1880eecc3feddebdbd78474937f4c619df658eb46a1d6`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-headers-security-allowlist.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/docs/superpowers/specs/2026-10-29-static-headers-design.md b/docs/superpowers/specs/2026-10-29-static-headers-design.md
index 7aa0c651d..75a5e8264 100644
--- a/docs/superpowers/specs/2026-10-29-static-headers-design.md
+++ b/docs/superpowers/specs/2026-10-29-static-headers-design.md
@@ -1,6 +1,6 @@
# Static sites: response headers by path (`_headers`)
-Status: draft rev 3, 2026-10-29 (rev 2: builder check, two minor points in 3.4 and 4.3; rev 3: Astra R1, findings marked **(R1-n)**; rev 4: Astra R2 READY AFTER FIXES, its three P2s marked **(R2-n)**. Review closed: no further rounds). Discussions #195 (item 2) and #450.
+Status: draft rev 3, 2026-10-29 (rev 2: builder check, two minor points in 3.4 and 4.3; rev 3: Astra R1, findings marked **(R1-n)**; rev 4: Astra R2 READY AFTER FIXES, its three P2s marked **(R2-n)**. Review closed: no further rounds; 2026-11-21: four security headers added to 3.2 for Equipo's devbox previews, discussion 1323). Discussions #195 (item 2) and #450.
Branch `static-headers`. Review budget: at most three Astra rounds; the
review stops at the first round with no P1 (AGENTS.md, "Stopping rules").
@@ -75,6 +75,8 @@ One feature answers both discussions: #195 item 2 is a `Cache-Control` rule,
through the edge's shared response cache (section 4.4).
- No header the platform owns (`X-Carlos-*`, `Set-Cookie`, `Content-*`,
hop-by-hop headers, `ETag`, `Location`, `Vary`) can be set.
+ `Content-Security-Policy` is the page's own policy, not content metadata,
+ and is the one `Content-*` name allowed (3.2).
## 3. The file
@@ -116,6 +118,10 @@ Version 1 allows these, and refuses every other name at ship:
| `Access-Control-Expose-Headers` | a comma-separated list of header names |
| `Cross-Origin-Resource-Policy` | `same-origin`, `same-site` or `cross-origin` |
| `Timing-Allow-Origin` | `*` |
+| `Content-Security-Policy` | policies separated by `,`, each directives separated by `;`; a directive name is letters, digits and `-` (added 2026-11-21, discussion 1323) |
+| `X-Content-Type-Options` | `nosniff` (added 2026-11-21) |
+| `Referrer-Policy` | a comma-separated list of the eight standard policies (added 2026-11-21) |
+| `X-DNS-Prefetch-Control` | `on` or `off` (added 2026-11-21) |
`Access-Control-Allow-Origin` is `*` only because any other value is either
one fixed origin (rarely what a CDN wants) or a list, which needs the edge to
@@ -124,7 +130,10 @@ response sharable (`assetAdmit`, `internal/edge/assetadmit.go`, already
treats `*` as shareable and anything else as not). `Cross-Origin-Resource-Policy`
and `Timing-Allow-Origin` are on the list because a CDN's users need them: a
page with `Cross-Origin-Embedder-Policy: require-corp` cannot load a
-cross-origin file without CORP. Widening the list later is additive.
+cross-origin file without CORP. Widening the list later is additive. The four
+security headers were added for Equipo's devbox previews (discussion 1323):
+each value is fixed per path, the same for every visitor, so none affects
+what the shared cache may store (4.4).
The refusal names the header and says it is not supported yet, so the next
asker files a discussion rather than shipping around it.
diff --git a/internal/edge/headers.go b/internal/edge/headers.go
index b94d06f4e..424927fe6 100644
--- a/internal/edge/headers.go
+++ b/internal/edge/headers.go
@@ -66,6 +66,13 @@ var headerChecks = map[string]func(value string) error{
"Access-Control-Expose-Headers": checkNameList,
"Cross-Origin-Resource-Policy": checkResourcePolicy,
"Timing-Allow-Origin": checkWildcard,
+ // The security headers a page sets for itself (discussion 1323). Each
+ // value is the same for every visitor on a path, so none changes what
+ // the shared response cache may store.
+ "Content-Security-Policy": checkContentSecurityPolicy,
+ "X-Content-Type-Options": checkNosniff,
+ "Referrer-Policy": checkReferrerPolicy,
+ "X-Dns-Prefetch-Control": checkOnOff,
}
// parseHeaders parses a _headers file. It returns the rules it could use and
@@ -309,3 +316,86 @@ func checkResourcePolicy(v string) error {
}
return fmt.Errorf("want same-origin, same-site or cross-origin, not %q", v)
}
+
+// checkContentSecurityPolicy: one or more policies separated by commas, each
+// a list of directives separated by semicolons. A directive is a name of
+// letters, digits and hyphens, then its sources. A trailing semicolon is
+// allowed, as browsers allow it; a policy with no directive is not. Sources
+// are not checked: the value is already visible ASCII, and a browser ignores
+// a source it does not understand.
+func checkContentSecurityPolicy(v string) error {
+ for _, policy := range strings.Split(v, ",") {
+ directives := 0
+ for _, d := range strings.Split(policy, ";") {
+ d = strings.Trim(d, " \t")
+ if d == "" {
+ continue
+ }
+ name, _, _ := strings.Cut(d, " ")
+ if !isDirectiveName(name) {
+ return fmt.Errorf("want directives separated by semicolons, such as \"default-src 'self'\"; %q is not a directive name", name)
+ }
+ directives++
+ }
+ if directives == 0 {
+ return fmt.Errorf("want directives separated by semicolons, such as \"default-src 'self'\", not %q", v)
+ }
+ }
+ return nil
+}
+
+// isDirectiveName reports whether s is a CSP directive name: letters, digits
+// and hyphens (CSP3, section 2.2.1).
+func isDirectiveName(s string) bool {
+ if s == "" {
+ return false
+ }
+ for i := 0; i < len(s); i++ {
+ c := s[i]
+ if !(c >= '0' && c <= '9' || c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c == '-') {
+ return false
+ }
+ }
+ return true
+}
+
+// checkNosniff: the one value X-Content-Type-Options has.
+func checkNosniff(v string) error {
+ if !strings.EqualFold(v, "nosniff") {
+ return fmt.Errorf("want nosniff only, not %q", v)
+ }
+ return nil
+}
+
+// referrerPolicies are the policies Referrer-Policy names.
+var referrerPolicies = []string{
+ "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin",
+ "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url",
+}
+
+// checkReferrerPolicy: a comma-separated list of policies, the last one a
+// browser knows taking effect, so older browsers can be given a fallback.
+func checkReferrerPolicy(v string) error {
+ for _, p := range strings.Split(v, ",") {
+ p = strings.Trim(p, " \t")
+ known := false
+ for _, rp := range referrerPolicies {
+ if strings.EqualFold(p, rp) {
+ known = true
+ break
+ }
+ }
+ if !known {
+ return fmt.Errorf("want a referrer policy such as no-referrer or strict-origin-when-cross-origin, not %q", p)
+ }
+ }
+ return nil
+}
+
+// checkOnOff: on or off, as X-DNS-Prefetch-Control takes.
+func checkOnOff(v string) error {
+ if !strings.EqualFold(v, "on") && !strings.EqualFold(v, "off") {
+ return fmt.Errorf("want on or off, not %q", v)
+ }
+ return nil
+}
diff --git a/internal/edge/headers_test.go b/internal/edge/headers_test.go
index 9b2f395ae..a6f741397 100644
--- a/internal/edge/headers_test.go
+++ b/internal/edge/headers_test.go
@@ -248,3 +248,65 @@ func TestPackDirRefusesABadHeadersFile(t *testing.T) {
t.Fatalf("PackDir with a nested _headers: %v", err)
}
}
+
+// Equipo's devbox previews ship these four on every path (discussion 1323).
+func TestParseHeadersSecurityHeaders(t *testing.T) {
+ file := "/*\n" +
+ " Content-Security-Policy: default-src 'none'; connect-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; media-src 'self'; form-action 'none'; frame-src 'none'; base-uri 'none'; object-src 'none'; frame-ancestors https://equipo.example\n" +
+ " X-Content-Type-Options: nosniff\n" +
+ " Referrer-Policy: no-referrer\n" +
+ " X-DNS-Prefetch-Control: off\n"
+ hs, err := parseHeaders([]byte(file))
+ if err != nil {
+ t.Fatalf("parseHeaders: %v", err)
+ }
+ got := hs.lookup("a.example", "/index.html")
+ for name, want := range map[string]string{
+ "Content-Security-Policy": "default-src 'none'; connect-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; media-src 'self'; form-action 'none'; frame-src 'none'; base-uri 'none'; object-src 'none'; frame-ancestors https://equipo.example",
+ "X-Content-Type-Options": "nosniff",
+ "Referrer-Policy": "no-referrer",
+ "X-Dns-Prefetch-Control": "off",
+ } {
+ if got.Get(name) != want {
+ t.Errorf("%s = %q, want %q", name, got.Get(name), want)
+ }
+ }
+}
+
+func TestParseHeadersSecurityHeaderValues(t *testing.T) {
+ for _, tc := range []struct {
+ name, value string
+ ok bool
+ }{
+ {"Content-Security-Policy", "default-src 'self'", true},
+ {"Content-Security-Policy", "default-src 'self';", true},
+ {"Content-Security-Policy", "upgrade-insecure-requests; default-src https: 'nonce-abc+/='", true},
+ {"Content-Security-Policy", "default-src 'self', frame-ancestors 'none'", true},
+ {"Content-Security-Policy", "Default-Src 'self'", true},
+ {"Content-Security-Policy", ";", false},
+ {"Content-Security-Policy", "default-src 'self',", false},
+ {"Content-Security-Policy", "'self' default-src", false},
+ {"Content-Security-Policy", "default_src 'self'", false},
+ {"X-Content-Type-Options", "nosniff", true},
+ {"X-Content-Type-Options", "NoSniff", true},
+ {"X-Content-Type-Options", "sniff", false},
+ {"Referrer-Policy", "no-referrer", true},
+ {"Referrer-Policy", "no-referrer, strict-origin-when-cross-origin", true},
+ {"Referrer-Policy", "unsafe-url", true},
+ {"Referrer-Policy", "never", false},
+ {"Referrer-Policy", "no-referrer,", false},
+ {"X-DNS-Prefetch-Control", "off", true},
+ {"X-DNS-Prefetch-Control", "on", true},
+ {"X-DNS-Prefetch-Control", "no", false},
+ } {
+ t.Run(tc.name+"/"+tc.value, func(t *testing.T) {
+ _, err := parseHeaders([]byte("/a\n " + tc.name + ": " + tc.value + "\n"))
+ if tc.ok && err != nil {
+ t.Fatalf("refused: %v", err)
+ }
+ if !tc.ok && (err == nil || strings.Contains(err.Error(), "not supported yet")) {
+ t.Fatalf("err = %v, want the value refused", err)
+ }
+ })
+ }
+}
diff --git a/internal/edge/static_headers_test.go b/internal/edge/static_headers_test.go
index 18d0a9a6c..6c96f0c0f 100644
--- a/internal/edge/static_headers_test.go
+++ b/internal/edge/static_headers_test.go
@@ -357,3 +357,31 @@ func seedSentinel(e *Edge) {
TTL: time.Minute,
})
}
+
+// A devbox preview's security headers (discussion 1323) reach the browser
+// through the real edge, on the page and on a HEAD of it.
+func TestStaticHeadersSecurityHeadersServed(t *testing.T) {
+ files := staticHeadersTree()
+ files[headersFile] = "/*\n" +
+ " Content-Security-Policy: default-src 'none'; style-src 'self'; frame-ancestors https://equipo.example\n" +
+ " X-Content-Type-Options: nosniff\n" +
+ " Referrer-Policy: no-referrer\n" +
+ " X-DNS-Prefetch-Control: off\n"
+ srv, _ := headersEdge(t, files)
+ for _, method := range []string{"GET", "HEAD"} {
+ resp, _ := staticDo(t, srv, method, "/", nil)
+ if resp.StatusCode != http.StatusOK {
+ t.Fatalf("%s / = %d, want 200", method, resp.StatusCode)
+ }
+ for name, want := range map[string]string{
+ "Content-Security-Policy": "default-src 'none'; style-src 'self'; frame-ancestors https://equipo.example",
+ "X-Content-Type-Options": "nosniff",
+ "Referrer-Policy": "no-referrer",
+ "X-Dns-Prefetch-Control": "off",
+ } {
+ if got := resp.Header.Values(name); len(got) != 1 || got[0] != want {
+ t.Errorf("%s /: %s = %q, want %q", method, name, got, want)
+ }
+ }
+ }
+}
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 7891132dc..d6b71e9a3 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -273,3 +273,4 @@ plan14-root-reads-ci-opentofu-tests.tsv 57ba3cadaf39de336f9a077d59a80148012e6d20
plan14-root-reads-media-spike-fixes.tsv 194e88ad9cd7413c93b1181c0ac1e962107039ad84525e065893a8c14cdb3138
plan14-root-reads-media-spike-values.tsv 194e88ad9cd7413c93b1181c0ac1e962107039ad84525e065893a8c14cdb3138
plan14-root-reads-path-routes-across-boxes.tsv f959a3626e83650aaad1880eecc3feddebdbd78474937f4c619df658eb46a1d6
+plan14-root-reads-headers-security-allowlist.tsv f959a3626e83650aaad1880eecc3feddebdbd78474937f4c619df658eb46a1d6
diff --git a/internal/provision/testdata/plan14-root-reads-headers-security-allowlist.tsv b/internal/provision/testdata/plan14-root-reads-headers-security-allowlist.tsv
new file mode 100644
index 000000000..def9c0771
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-headers-security-allowlist.tsv
@@ -0,0 +1,3 @@
+# Census overlay headers-security-allowlist, written by census-propose (#369). census-ruling-headers-security-allowlist, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-headers-security-allowlist.md.
+# 0 body, 0 sites, 1 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+@coverage internal/edge 5013c107eeb2845c9c0ab8cc9d888964c86d29c84ba24e27889d27aeb020a1f3