carlos / platform Public

Catch-all: a scoped pass that mints a route derives its alias (#1653)

A new instance's catch-all name waited 10-15 s for the full pass's alias leg: the scoped pass that mints the route skipped it, and fastFullClamp holds the full pass back 5 s. passLegs.run now notes alias sources before the scoped reconcile and, when one is gained, runs the alias leg in that pass as an adding pass (no removal: route_aliases, wildcard_domains, route_paths, account_namespaces and now regional_domains all keep rows; an incomplete adding run skips the HA ingress publishes and the asset clock). The alias pass body moves to aliaspass.go. Astra approved round 3 (code and census, #280).

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

Squashed from alias-with-mint-1653 into main.
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 834a7f527bc1547fb6eeada055a14413a9601354 parent ad61ec4
12 files changed, +716 −69
  • .amadan/code-health.tsv +1 −1
  • docs/superpowers/notes/census-proposal-alias-with-mint-1653.md +28 −0
  • internal/domains/aliases.go +46 −8
  • internal/domains/regional_noremoval_test.go +132 −0
  • internal/host/agent.go +1 −52
  • internal/host/aliaspass.go +115 −0
  • internal/host/changeindex.go +70 −4
  • internal/host/edgesfile_unread_claims_test.go +31 −3
  • internal/host/group_names_test.go +9 −1
  • internal/host/scopedalias_test.go +265 −0
  • internal/provision/testdata/plan14-root-reads-alias-with-mint-1653.tsv +17 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −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-YnQItT
.amadan/test-gate.sh
go: downloading github.com/aws/aws-sdk-go-v2 v1.44.0
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.68.0
go: downloading github.com/aws/aws-sdk-go-v2/service/costexplorer v1.67.5
go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading golang.org/x/net v0.62.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/sns v1.43.0
go: downloading golang.org/x/sys v0.49.0
go: downloading github.com/aws/aws-sdk-go-v2/service/route53 v1.64.1
go: downloading golang.org/x/crypto v0.58.0
go: downloading github.com/oschwald/maxminddb-golang v1.13.1
go: downloading github.com/aws/aws-sdk-go-v2/service/acm v1.45.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.324.0
go: downloading github.com/aws/aws-sdk-go-v2/service/iam v1.58.2
go: downloading github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi v1.37.0
go: downloading github.com/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/aws/aws-sdk-go-v2/internal/configsources v1.4.40
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.40
go: downloading github.com/pion/transport/v4 v4.0.2
go: downloading github.com/prometheus/common v0.45.0
go: downloading google.golang.org/protobuf v1.36.10
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.14
go: downloading golang.org/x/text v0.43.0
go: downloading github.com/pion/dtls/v3 v3.1.4
go: downloading github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading github.com/klauspost/compress v1.20.2
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/libc v1.74.1
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.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.015s
?   	amadan.net/carlos/platform.git/launchctx/controlname	[no test files]
?   	amadan.net/carlos/platform.git/launchctx/wireid	[no test files]
=== vet (176 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/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/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
=== vet-tags (201 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 modernc.org/mathutil v1.7.1
go: downloading github.com/google/uuid v1.6.0
go: downloading github.com/dustin/go-humanize v1.0.1
=== gofmt (1 s, from +0 s)
gofmt -l .: clean
=== rest (398 s, from +15 s)
ok  	github.com/carlosframework/platform/cmd/carlos-media	129.414s
?   	github.com/carlosframework/platform/cmd/changelog	[no test files]
ok  	github.com/carlosframework/platform/cmd/console	219.001s
ok  	github.com/carlosframework/platform/cmd/mediaimage	46.833s
ok  	github.com/carlosframework/platform/cmd/moveprobe	15.948s
ok  	github.com/carlosframework/platform/cmd/pricebook-export	0.061s
ok  	github.com/carlosframework/platform/cmd/rootfswitness	0.173s
ok  	github.com/carlosframework/platform/cmd/runsc-assets	0.226s
ok  	github.com/carlosframework/platform/cmd/zddprobe	0.967s
ok  	github.com/carlosframework/platform/internal/agentsock	0.105s
ok  	github.com/carlosframework/platform/internal/alerting	0.056s
ok  	github.com/carlosframework/platform/internal/analytics	0.271s
ok  	github.com/carlosframework/platform/internal/appconfig	46.960s
ok  	github.com/carlosframework/platform/internal/apperr	0.510s
ok  	github.com/carlosframework/platform/internal/applog	4.990s
ok  	github.com/carlosframework/platform/internal/apppolicy	2.817s
ok  	github.com/carlosframework/platform/internal/assetcache	0.893s
ok  	github.com/carlosframework/platform/internal/awsinv	0.024s
ok  	github.com/carlosframework/platform/internal/awsmanaged	7.039s
ok  	github.com/carlosframework/platform/internal/awsregiongroup	0.111s
ok  	github.com/carlosframework/platform/internal/awsterminations	0.029s
ok  	github.com/carlosframework/platform/internal/backupswords	0.024s
ok  	github.com/carlosframework/platform/internal/billing	0.084s
ok  	github.com/carlosframework/platform/internal/billing/billingtest	0.095s
ok  	github.com/carlosframework/platform/internal/billingstripe	2.321s
ok  	github.com/carlosframework/platform/internal/boxchoice	0.049s
ok  	github.com/carlosframework/platform/internal/boxid	2.724s
?   	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.028s
ok  	github.com/carlosframework/platform/internal/boxself	0.176s
ok  	github.com/carlosframework/platform/internal/boxvolumes	0.101s
ok  	github.com/carlosframework/platform/internal/caps	4.653s
ok  	github.com/carlosframework/platform/internal/certwarm	0.016s
ok  	github.com/carlosframework/platform/internal/cgroup	1.684s
ok  	github.com/carlosframework/platform/internal/changelog	4.577s
ok  	github.com/carlosframework/platform/internal/clamd	0.087s
?   	github.com/carlosframework/platform/internal/cliflag	[no test files]
ok  	github.com/carlosframework/platform/internal/clireg	0.018s
ok  	github.com/carlosframework/platform/internal/codehealth	16.923s
ok  	github.com/carlosframework/platform/internal/compute	0.018s
ok  	github.com/carlosframework/platform/internal/consolefleet	0.008s
?   	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.928s
ok  	github.com/carlosframework/platform/internal/dbdoor/dbdoortest	0.095s
ok  	github.com/carlosframework/platform/internal/dbquery	0.050s
ok  	github.com/carlosframework/platform/internal/dbreads	3.112s
?   	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.022s
ok  	github.com/carlosframework/platform/internal/demobuild	5.730s
ok  	github.com/carlosframework/platform/internal/democlaim	0.662s
ok  	github.com/carlosframework/platform/internal/devbox	17.397s
ok  	github.com/carlosframework/platform/internal/dnsrec	0.024s
ok  	github.com/carlosframework/platform/internal/docsite	0.120s
ok  	github.com/carlosframework/platform/internal/domainreg	0.036s
ok  	github.com/carlosframework/platform/internal/domains	75.554s
ok  	github.com/carlosframework/platform/internal/doorkey	0.051s
ok  	github.com/carlosframework/platform/internal/economics	0.009s
ok  	github.com/carlosframework/platform/internal/edgefence	0.117s
ok  	github.com/carlosframework/platform/internal/edgeguard	0.261s
?   	github.com/carlosframework/platform/internal/edgeproof	[no test files]
ok  	github.com/carlosframework/platform/internal/edgesfile	0.104s
ok  	github.com/carlosframework/platform/internal/egressaddr	0.008s
ok  	github.com/carlosframework/platform/internal/execsandbox	111.780s
ok  	github.com/carlosframework/platform/internal/fileacl	0.006s
ok  	github.com/carlosframework/platform/internal/fleetapi	2.095s
ok  	github.com/carlosframework/platform/internal/fleetstore	0.012s
ok  	github.com/carlosframework/platform/internal/fxrate	0.027s
ok  	github.com/carlosframework/platform/internal/gate	6.070s
ok  	github.com/carlosframework/platform/internal/genselect	0.103s
ok  	github.com/carlosframework/platform/internal/geo	0.031s
ok  	github.com/carlosframework/platform/internal/geoip	0.153s
ok  	github.com/carlosframework/platform/internal/groupadmission	0.007s
ok  	github.com/carlosframework/platform/internal/grouprollaws	17.794s
ok  	github.com/carlosframework/platform/internal/hadeparture	0.036s
ok  	github.com/carlosframework/platform/internal/hafresh	0.015s
ok  	github.com/carlosframework/platform/internal/hairpin	0.234s
ok  	github.com/carlosframework/platform/internal/historyreadback	1.136s
ok  	github.com/carlosframework/platform/internal/hostactors	22.429s
ok  	github.com/carlosframework/platform/internal/hostbox	21.911s
ok  	github.com/carlosframework/platform/internal/hostclaim	2.857s
ok  	github.com/carlosframework/platform/internal/hostenv	0.050s
ok  	github.com/carlosframework/platform/internal/hostevidence	0.031s
ok  	github.com/carlosframework/platform/internal/hostexec	25.422s
ok  	github.com/carlosframework/platform/internal/hostfence	0.262s
ok  	github.com/carlosframework/platform/internal/hostfiles	29.374s
ok  	github.com/carlosframework/platform/internal/hostfloor	0.255s
ok  	github.com/carlosframework/platform/internal/hostguard	1.773s
ok  	github.com/carlosframework/platform/internal/hostops	9.803s
?   	github.com/carlosframework/platform/internal/hostops/fencerelease	[no test files]
ok  	github.com/carlosframework/platform/internal/hostops/internal/fencerelease	0.027s
ok  	github.com/carlosframework/platform/internal/hostquarantine	0.013s
ok  	github.com/carlosframework/platform/internal/hostrelocate	2.115s
ok  	github.com/carlosframework/platform/internal/hostresolve	0.689s
ok  	github.com/carlosframework/platform/internal/hostwrite	0.007s
ok  	github.com/carlosframework/platform/internal/identity	0.007s
ok  	github.com/carlosframework/platform/internal/infraview	0.013s
ok  	github.com/carlosframework/platform/internal/ingresshealth	0.016s
ok  	github.com/carlosframework/platform/internal/ingresshealth/awstg	0.029s
ok  	github.com/carlosframework/platform/internal/instancectl	67.727s
ok  	github.com/carlosframework/platform/internal/instanceexec	9.738s
ok  	github.com/carlosframework/platform/internal/instancefs	18.080s
ok  	github.com/carlosframework/platform/internal/instancekey	0.013s
ok  	github.com/carlosframework/platform/internal/instanceupdates	0.043s
ok  	github.com/carlosframework/platform/internal/interactive	0.829s
ok  	github.com/carlosframework/platform/internal/launchd	0.007s
ok  	github.com/carlosframework/platform/internal/layout	26.729s
ok  	github.com/carlosframework/platform/internal/layout/pubclass	116.348s
ok  	github.com/carlosframework/platform/internal/lbhealth	0.016s
ok  	github.com/carlosframework/platform/internal/lease	150.172s
ok  	github.com/carlosframework/platform/internal/lease/leasetest	1.942s
ok  	github.com/carlosframework/platform/internal/lease/locktest	0.020s
ok  	github.com/carlosframework/platform/internal/ledger	0.084s
ok  	github.com/carlosframework/platform/internal/mail	3.778s
ok  	github.com/carlosframework/platform/internal/mailer	0.922s
ok  	github.com/carlosframework/platform/internal/mailsubmit	1.741s
ok  	github.com/carlosframework/platform/internal/mailwire	0.011s
ok  	github.com/carlosframework/platform/internal/maintenance	0.182s
ok  	github.com/carlosframework/platform/internal/maintenanceexec	9.052s
ok  	github.com/carlosframework/platform/internal/maintenanceguard	0.339s
ok  	github.com/carlosframework/platform/internal/managedboot	4.094s
?   	github.com/carlosframework/platform/internal/managedboot/boottest	[no test files]
?   	github.com/carlosframework/platform/internal/managedboot/roottest	[no test files]
ok  	github.com/carlosframework/platform/internal/media	2.429s
ok  	github.com/carlosframework/platform/internal/media/mediatest	0.018s
ok  	github.com/carlosframework/platform/internal/mediaaws	65.693s
ok  	github.com/carlosframework/platform/internal/mediahandler	47.189s
ok  	github.com/carlosframework/platform/internal/mediajobs	1.310s
ok  	github.com/carlosframework/platform/internal/medialocal	9.884s
ok  	github.com/carlosframework/platform/internal/metrics	0.159s
ok  	github.com/carlosframework/platform/internal/minorunits	0.007s
ok  	github.com/carlosframework/platform/internal/moves	56.532s
ok  	github.com/carlosframework/platform/internal/moves/archive	2.996s
ok  	github.com/carlosframework/platform/internal/moves/offlinerun	0.102s
ok  	github.com/carlosframework/platform/internal/namedunits	0.021s
ok  	github.com/carlosframework/platform/internal/objstore	2.595s
ok  	github.com/carlosframework/platform/internal/ops	13.813s
ok  	github.com/carlosframework/platform/internal/pageindex	3.749s
ok  	github.com/carlosframework/platform/internal/parity	0.187s
?   	github.com/carlosframework/platform/internal/parity/cmd/parity-doc	[no test files]
ok  	github.com/carlosframework/platform/internal/park	0.821s
ok  	github.com/carlosframework/platform/internal/perf	0.187s
ok  	github.com/carlosframework/platform/internal/plans	0.141s
ok  	github.com/carlosframework/platform/internal/privatefile	0.031s
ok  	github.com/carlosframework/platform/internal/provision	250.705s
ok  	github.com/carlosframework/platform/internal/proxyproto	0.959s
ok  	github.com/carlosframework/platform/internal/publicrelease	0.062s
ok  	github.com/carlosframework/platform/internal/ratelimit	0.223s
ok  	github.com/carlosframework/platform/internal/regionlabel	0.073s
ok  	github.com/carlosframework/platform/internal/regionname	0.065s
ok  	github.com/carlosframework/platform/internal/registrar	0.012s
ok  	github.com/carlosframework/platform/internal/registrar/openprovider	0.824s
?   	github.com/carlosframework/platform/internal/registrar/registrartest	[no test files]
ok  	github.com/carlosframework/platform/internal/registry	84.861s
ok  	github.com/carlosframework/platform/internal/relay	4.603s
ok  	github.com/carlosframework/platform/internal/release	134.573s
?   	github.com/carlosframework/platform/internal/release/requestwitness	[no test files]
ok  	github.com/carlosframework/platform/internal/replicagen	0.101s
ok  	github.com/carlosframework/platform/internal/replicas	0.122s
ok  	github.com/carlosframework/platform/internal/reqrec	6.775s
ok  	github.com/carlosframework/platform/internal/rollout	10.381s
ok  	github.com/carlosframework/platform/internal/rolloutwords	0.034s
ok  	github.com/carlosframework/platform/internal/rootaws	114.976s
ok  	github.com/carlosframework/platform/internal/rootfsimage	1.193s
ok  	github.com/carlosframework/platform/internal/rootparticipation	0.101s
ok  	github.com/carlosframework/platform/internal/rootstate	0.047s
ok  	github.com/carlosframework/platform/internal/runs	0.834s
ok  	github.com/carlosframework/platform/internal/s3compat	0.029s
ok  	github.com/carlosframework/platform/internal/s3fake	1.489s
ok  	github.com/carlosframework/platform/internal/s3meter	0.478s
ok  	github.com/carlosframework/platform/internal/safefile	0.064s
ok  	github.com/carlosframework/platform/internal/schedule	26.999s
ok  	github.com/carlosframework/platform/internal/seeds	0.109s
ok  	github.com/carlosframework/platform/internal/share	0.035s
ok  	github.com/carlosframework/platform/internal/sim/litestreamfacts	4.448s
ok  	github.com/carlosframework/platform/internal/sim/mediajobs	54.041s
ok  	github.com/carlosframework/platform/internal/sim/regionha	25.906s
ok  	github.com/carlosframework/platform/internal/status	0.393s
ok  	github.com/carlosframework/platform/internal/steering	0.273s
ok  	github.com/carlosframework/platform/internal/stopevidence	0.509s
ok  	github.com/carlosframework/platform/internal/storecfg	0.413s
ok  	github.com/carlosframework/platform/internal/svcrole	0.018s
ok  	github.com/carlosframework/platform/internal/systemd	6.191s
?   	github.com/carlosframework/platform/internal/systemdshow	[no test files]
ok  	github.com/carlosframework/platform/internal/team	3.632s
ok  	github.com/carlosframework/platform/internal/teamcontract	0.138s
ok  	github.com/carlosframework/platform/internal/telemetry	0.024s
ok  	github.com/carlosframework/platform/internal/termfence	4.388s
ok  	github.com/carlosframework/platform/internal/timerspec	0.017s
ok  	github.com/carlosframework/platform/internal/tsidentity	4.158s
ok  	github.com/carlosframework/platform/internal/tunnelclient	0.366s
ok  	github.com/carlosframework/platform/internal/unixdial	0.011s
ok  	github.com/carlosframework/platform/internal/updatewords	0.046s
ok  	github.com/carlosframework/platform/internal/upstreamguard	0.016s
?   	github.com/carlosframework/platform/internal/upstreamguard/guardtest	[no test files]
ok  	github.com/carlosframework/platform/internal/usage	0.126s
ok  	github.com/carlosframework/platform/internal/version	0.018s
ok  	github.com/carlosframework/platform/internal/vet	3.115s
ok  	github.com/carlosframework/platform/internal/zonehost	0.033s
ok  	github.com/carlosframework/platform/internal/zonehost/route53zones	0.049s
?   	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.014s
ok  	github.com/carlosframework/platform/scripts/pathmapcheck	0.082s
ok  	github.com/carlosframework/platform/scripts/region-ha-g2/fixture	5.136s
ok  	github.com/carlosframework/platform/scripts/stateless-replicas-drill	1.190s
ok  	github.com/carlosframework/platform/scripts/witness-pointer	0.027s
=== cutover-witness (167 s, from +15 s)
ok  	github.com/carlosframework/platform	3.834s
=== internal_grouproll@0 (281 s, from +75 s)
ok  	github.com/carlosframework/platform/internal/grouproll	279.271s
=== internal_grouproll@1 (284 s, from +75 s)
ok  	github.com/carlosframework/platform/internal/grouproll	281.964s
=== internal_activator@0 (162 s, from +144 s)
ok  	github.com/carlosframework/platform/internal/activator	158.106s
=== internal_activator@1 (143 s, from +144 s)
ok  	github.com/carlosframework/platform/internal/activator	137.886s
=== internal_activator@2 (146 s, from +144 s)
ok  	github.com/carlosframework/platform/internal/activator	141.356s
=== internal_activator@3 (178 s, from +144 s)
ok  	github.com/carlosframework/platform/internal/activator	173.703s
=== internal_edge@0 (257 s, from +177 s)
ok  	github.com/carlosframework/platform/internal/edge	246.344s
=== internal_edge@1 (138 s, from +177 s)
ok  	github.com/carlosframework/platform/internal/edge	127.555s
=== internal_edge@2 (168 s, from +177 s)
ok  	github.com/carlosframework/platform/internal/edge	156.153s
=== internal_edge@3 (164 s, from +177 s)
ok  	github.com/carlosframework/platform/internal/edge	151.116s
=== root@0 (117 s, from +178 s)
ok  	github.com/carlosframework/platform	104.043s
=== root@1 (119 s, from +178 s)
ok  	github.com/carlosframework/platform	104.334s
=== root@2 (145 s, from +178 s)
ok  	github.com/carlosframework/platform	133.152s
=== root@3 (117 s, from +179 s)
ok  	github.com/carlosframework/platform	104.869s
=== root@4 (105 s, from +179 s)
ok  	github.com/carlosframework/platform	92.525s
=== internal_host@0 (174 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	169.451s
=== internal_host@1 (214 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	209.380s
=== internal_host@2 (238 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	233.396s
=== internal_host@3 (168 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	163.688s
=== internal_host@4 (310 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	304.712s
=== internal_host@5 (142 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	136.510s
=== internal_console@0 (223 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	215.563s
=== internal_console@1 (222 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	215.147s
=== internal_console@2 (221 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	212.302s
=== internal_console@3 (276 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	267.324s
=== internal_console@4 (221 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	213.721s
=== internal_console@5 (266 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	259.062s
=== internal_console@6 (235 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	227.626s
=== internal_console@7 (228 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	219.360s
=== internal_console@8 (230 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	222.456s
=== internal_console@9 (236 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	228.667s
=== internal_console@10 (289 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	280.558s
=== internal_console@11 (263 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	255.024s
=== internal_console@12 (325 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	316.167s
=== internal_console@13 (233 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	224.914s
=== internal_console@14 (225 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	217.289s
=== internal_console@15 (257 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	249.985s
=== internal_console@16 (222 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	213.227s
=== internal_console@17 (222 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	214.105s
=== internal_console@18 (269 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	261.199s
=== internal_console@19 (222 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	213.764s
=== internal_console@20 (233 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	223.362s
=== internal_console@21 (270 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	262.193s
=== internal_console@22 (243 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	235.213s
=== internal_console@23 (285 s, from +229 s)
ok  	github.com/carlosframework/platform/internal/console	277.049s
=== lists: internal_console 228 s, internal_edge 175 s, internal_activator 143 s, internal_host 222 s, root 176 s, internal_grouproll 74 s
=== cpu: the gate used 13517 cpu-seconds in 555 s, about 24.4 of 32 cores; the machine as a whole was 81% busy
=== opentofu ===
opentofu: 40 test files in 11 suites, OpenTofu v1.13.9
  initialised in 14 s
  ok      13 s  infra/modules/box-fence-writer/tests/writer.tftest.hcl  Success! 1 passed, 0 failed.
  ok      13 s  infra/modules/deployment-buckets/tests/console_floors.tftest.hcl  Success! 1 passed, 0 failed.
  ok      29 s  infra/modules/deployment-buckets/tests/data_lifecycle.tftest.hcl  Success! 3 passed, 0 failed.
  ok      16 s  infra/modules/deployment-buckets/tests/db_reads.tftest.hcl  Success! 1 passed, 0 failed.
  ok      17 s  infra/modules/deployment-buckets/tests/evidence.tftest.hcl  Success! 1 passed, 0 failed.
  ok      25 s  infra/modules/deployment-buckets/tests/fence_writers.tftest.hcl  Success! 3 passed, 0 failed.
  ok      23 s  infra/modules/deployment-buckets/tests/media_results.tftest.hcl  Success! 2 passed, 0 failed.
  ok      29 s  infra/modules/deployment-buckets/tests/published_floors.tftest.hcl  Success! 3 passed, 0 failed.
  ok      82 s  infra/modules/media-engine/tests/media_engine.tftest.hcl  Success! 24 passed, 0 failed.
  ok      31 s  infra/modules/pdf-host/tests/computed.tftest.hcl  Success! 2 passed, 0 failed.
  ok      62 s  infra/modules/pdf-host/tests/pdf_host.tftest.hcl  Success! 24 passed, 0 failed.
  ok      45 s  infra/modules/region-group-operator-document/tests/document.tftest.hcl  Success! 12 passed, 0 failed.
  ok      19 s  infra/modules/region-host/ingress/tests/fixed-targets/tests/targets.tftest.hcl  Success! 2 passed, 0 failed.
  ok      65 s  infra/modules/region-host/ingress/tests/group_ingress.tftest.hcl  Success! 30 passed, 0 failed.
  ok      48 s  infra/modules/region-host/tests/alert_publish.tftest.hcl  Success! 18 passed, 0 failed.
  ok      44 s  infra/modules/region-host/tests/alerts_topic.tftest.hcl  Success! 16 passed, 0 failed.
  ok      11 s  infra/modules/region-host/tests/analytics_prune.tftest.hcl  Success! 2 passed, 0 failed.
  ok      16 s  infra/modules/region-host/tests/console_mail.tftest.hcl  Success! 4 passed, 0 failed.
  ok       7 s  infra/modules/region-host/tests/fixed_state_unchanged.tftest.hcl  Success! 1 passed, 0 failed.
  ok      71 s  infra/modules/region-host/tests/group.tftest.hcl  Success! 32 passed, 0 failed.
  ok      12 s  infra/modules/region-host/tests/group_alarms.tftest.hcl  Success! 4 passed, 0 failed.
  ok      10 s  infra/modules/region-host/tests/group_iam.tftest.hcl  Success! 4 passed, 0 failed.
  ok       5 s  infra/modules/region-host/tests/group_isolation.tftest.hcl  Success! 1 passed, 0 failed.
  ok      37 s  infra/modules/region-host/tests/group_operator.tftest.hcl  Success! 13 passed, 0 failed.
  ok       9 s  infra/modules/region-host/tests/group_user_data.tftest.hcl  Success! 3 passed, 0 failed.
  ok      29 s  infra/modules/region-host/tests/health_alarms.tftest.hcl  Success! 10 passed, 0 failed.
  ok      12 s  infra/modules/region-host/tests/ingress_drain_read.tftest.hcl  Success! 4 passed, 0 failed.
  ok       6 s  infra/modules/region-host/tests/instance_metadata.tftest.hcl  Success! 1 passed, 0 failed.
  ok      22 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      14 s  infra/modules/region-host/tests/managed_fleets/group_refusal.tftest.hcl  Success! 2 passed, 0 failed.
  ok     111 s  infra/modules/region-host/tests/managed_fleets/managed_fleets.tftest.hcl  Success! 46 passed, 0 failed.
  ok      79 s  infra/modules/region-host/tests/store_conversion.tftest.hcl  Success! 27 passed, 0 failed.
  ok      21 s  infra/modules/region-host/tests/store_scanning.tftest.hcl  Success! 4 passed, 0 failed.
  ok      30 s  infra/modules/region-host/tests/store_versioning.tftest.hcl  Success! 11 passed, 0 failed.
  ok      17 s  infra/modules/region-host/tests/store_write_credentials.tftest.hcl  Success! 4 passed, 0 failed.
  ok      19 s  infra/modules/region-host/tests/user_data_ignored.tftest.hcl  Success! 3 passed, 0 failed.
  ok      13 s  infra/modules/region-remote-host/tests/data_lifecycle.tftest.hcl  Success! 3 passed, 0 failed.
  ok      15 s  infra/modules/region-remote-host/tests/no_deployment_bucket.tftest.hcl  Success! 5 passed, 0 failed.
  ok      34 s  infra/modules/scanner-host/tests/scanner_host.tftest.hcl  Success! 14 passed, 0 failed.
opentofu: 40 files in 215 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: 66977954 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:39436
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.02s)
        --- 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.042s
=== RUN   TestT4StorageProbeMinio
2026/12/02 15:14:58 moves: T4: STORE: list: operation error S3: ListObjectsV2, https response error StatusCode: 403, RequestID: 18ED78AA3D4E5EAD, HostID: 5e20b8e4ca70f0d38c561a785ed5f083ee1bb0aaf5f21261eae3314f987b121d, 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.051s
=== RUN   TestS3StoreMinioContract
=== RUN   TestS3StoreMinioContract/conditional_get_and_etag_listing
=== RUN   TestS3StoreMinioContract/bump_through_every_mutation_path
--- PASS: TestS3StoreMinioContract (0.04s)
    --- 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.047s
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.04s)
PASS
ok  	github.com/carlosframework/platform/internal/release	0.048s
Bucket created successfully `local/store-versioned`.
local/store-versioned versioning is enabled
Created policy `store-versioned` successfully.
Added user `storeversioned` successfully.
Attached Policies: [store-versioned]
To User: storeversioned
=== RUN   TestVersionedContractMinio
--- PASS: TestVersionedContractMinio (0.01s)
PASS
ok  	github.com/carlosframework/platform/internal/objstore	0.021s
Bucket created successfully `local/wc-bucket`.
Created policy `writer` successfully.
Added user `wcwriter` successfully.
Attached Policies: [writer]
To User: wcwriter
=== RUN   TestWriteCredentialContractMinio
=== RUN   TestWriteCredentialContractMinio/put_under_the_prefix
=== RUN   TestWriteCredentialContractMinio/multipart_under_the_prefix
=== RUN   TestWriteCredentialContractMinio/refused:_put_beside_the_prefix
=== RUN   TestWriteCredentialContractMinio/refused:_copy_from_the_store
=== RUN   TestWriteCredentialContractMinio/refused:_read_elsewhere
=== RUN   TestWriteCredentialContractMinio/refused:_list
=== RUN   TestWriteCredentialContractMinio/refused:_tag
=== RUN   TestWriteCredentialContractMinio/refused:_put_outside_the_prefix
=== RUN   TestWriteCredentialContractMinio/refused:_put_to_another_bucket
=== RUN   TestWriteCredentialContractMinio/refused:_bucket_settings
=== RUN   TestWriteCredentialContractMinio/refused:_read_under_the_prefix
=== RUN   TestWriteCredentialContractMinio/refused:_head
=== RUN   TestWriteCredentialContractMinio/refused:_list_uploads
=== RUN   TestWriteCredentialContractMinio/refused:_delete
=== RUN   TestWriteCredentialContractMinio/refused:_put_tagged
=== RUN   TestWriteCredentialContractMinio/refused:_put_with_a_platform_tag
--- PASS: TestWriteCredentialContractMinio (0.04s)
    --- PASS: TestWriteCredentialContractMinio/put_under_the_prefix (0.00s)
    --- PASS: TestWriteCredentialContractMinio/multipart_under_the_prefix (0.01s)
    --- PASS: TestWriteCredentialContractMinio/refused:_put_beside_the_prefix (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_copy_from_the_store (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_read_elsewhere (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_list (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_tag (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_put_outside_the_prefix (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_put_to_another_bucket (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_bucket_settings (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_read_under_the_prefix (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_head (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_list_uploads (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_delete (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_put_tagged (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_put_with_a_platform_tag (0.00s)
PASS
ok  	github.com/carlosframework/platform/internal/objstore	0.055s
=== RUN   TestEndToEndMinio
=== RUN   TestEndToEndMinio/plan
=== RUN   TestEndToEndMinio/roll
=== RUN   TestEndToEndMinio/replace
=== RUN   TestEndToEndMinio/remove
--- PASS: TestEndToEndMinio (0.52s)
    --- PASS: TestEndToEndMinio/plan (0.01s)
    --- PASS: TestEndToEndMinio/roll (0.14s)
    --- PASS: TestEndToEndMinio/replace (0.17s)
    --- PASS: TestEndToEndMinio/remove (0.17s)
PASS
ok  	github.com/carlosframework/platform/internal/grouproll	0.531s
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/12/02 15:15:08 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/12/02 15:15:08 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/12/02 15:15:08 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/12/02 15:15:08 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/12/02 15:15:08 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/12/02 15:15:08 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/12/02 15:15:08 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/12/02 15:15:08 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=370
2026/12/02 15:15:08 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000002
2026/12/02 15:15:08 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/12/02 15:15:08 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=454
2026/12/02 15:15:08 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/12/02 15:15:08 console: CARLOS_SECRETS_PUBKEY is unset, so no region outside the home can be chosen automatically
2026/12/02 15:15:08 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%3A34799: could not determine target mailbox
    agent.go:136: dbreads: dbr_6kqwmjpvizniodfqz4ycu6wwwa: planned 3 files (1544 bytes) and restored to 3 in 18ms
    agent.go:136: dbreads: dbr_6kqwmjpvizniodfqz4ycu6wwwa: output 5 bytes in 1 confirmed chunks in 2ms
2026/12/02 15:15:09 console: db read dbr_6kqwmjpvizniodfqz4ycu6wwwa: relayed 1 chunks (102 bytes) in 1.006s, ended done
    agent.go:136: dbreads: dbr_w5r574qv7y3g2hhwgiqirsi3ni: planned 1 files (720 bytes) and restored to 1 in 13ms
    agent.go:136: dbreads: dbr_w5r574qv7y3g2hhwgiqirsi3ni: output 5 bytes in 1 confirmed chunks in 2ms
2026/12/02 15:15:10 console: db read dbr_w5r574qv7y3g2hhwgiqirsi3ni: relayed 1 chunks (102 bytes) in 1.005s, ended done
    agent.go:136: dbreads: dbr_hzkaeahspq3rhlocytv3gjaady: planned 3 files (1544 bytes) and held through 3 in 13ms
    agent.go:136: dbreads: dbr_hzkaeahspq3rhlocytv3gjaady: output 1544 bytes in 1 confirmed chunks in 1ms
2026/12/02 15:15:11 console: db read dbr_hzkaeahspq3rhlocytv3gjaady: relayed 1 chunks (1641 bytes) in 1.006s, ended done
=== RUN   TestDBForwardMinio/by_disconnect
=== NAME  TestDBForwardMinio
    agent.go:136: dbreads: dbr_ku7kiadyu2dg57k3j6bjmdy5iy: planned 3 files (1544 bytes) and restored to 3 in 16ms
2026/12/02 15:15:11 console: db read dbr_ku7kiadyu2dg57k3j6bjmdy5iy: relayed 0 chunks (0 bytes) in 31ms, ended client gone
    agent.go:136: dbreads: dbr_ku7kiadyu2dg57k3j6bjmdy5iy: output 5 bytes in 1 confirmed chunks in 105ms
=== RUN   TestDBForwardMinio/by_timeout
=== NAME  TestDBForwardMinio
    agent.go:136: dbreads: dbr_3u6ju3us6kxpw3exvdemn44w2q: planned 3 files (1544 bytes) and restored to 3 in 14ms
2026/12/02 15:15:31 console: db read dbr_3u6ju3us6kxpw3exvdemn44w2q: relayed 0 chunks (0 bytes) in 19.14s, ended no-result
    agent.go:136: dbreads: dbr_3u6ju3us6kxpw3exvdemn44w2q: output 5 bytes in 1 confirmed chunks in 19.115s
    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.86s)
    --- PASS: TestDBForwardMinio/by_disconnect (0.24s)
    --- PASS: TestDBForwardMinio/by_timeout (19.25s)
PASS
ok  	github.com/carlosframework/platform/internal/console	22.908s
Bucket created successfully `local/media-transfers`.
Bucket created successfully `local/media-transfer-results`.
local/media-transfer-results versioning is enabled
Created policy `media-transfers` successfully.
Added user `mediatransfers` successfully.
Attached Policies: [media-transfers]
To User: mediatransfers
=== RUN   TestMediaTransfersMinio
    upload.go:117: codec: the store already holds video.mp4
    upload.go:117: codec: the store already holds video.m3u8
    upload.go:117: codec: the store already holds poster.jpg
--- PASS: TestMediaTransfersMinio (0.08s)
PASS
ok  	github.com/carlosframework/platform/internal/mediaaws	0.086s
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.61s)
PASS
ok  	github.com/carlosframework/platform/internal/medialocal	0.615s
=== RUN   TestHeldHandoverTwoBoxMinio
2026/12/02 15:15:36 edge: mesh key: minted
2026/12/02 15:15:36 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 15:15:36 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 15:15:36 tenant admission is open. accepting tenant work
2026/12/02 15:15:36 activator: HA placement host=shop-e623c2c9.example.test kind=Place ref=annie reason=roomiest generation=2026-12-02T15:15:36Z lock_generation=0
2026/12/02 15:15:36 lease: t8-e623c2c9/shop-e623c2c9.example.test: HA lease acquired in 4ms (first wake)
2026/12/02 15:15:36 activator: shop-e623c2c9.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 15:15:36 activator: shop-e623c2c9.example.test: started carlos-instance@shop\x2de623c2c9.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 7ms, control socket 0s, key gate 0s, logs 0s) 8ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 15:15:36 activator: shop-e623c2c9.example.test: carlos-instance@shop\x2de623c2c9.example.test.service launched in 9ms, healthy 0s later
2026/12/02 15:15:36 activator: shop-e623c2c9.example.test: woke in 24ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 9ms, replicate 8ms
2026/12/02 15:15:36 lease: t8-e623c2c9/plain-e623c2c9.example.test: acquired in 2ms (client 0s, lock read and write 1ms)
2026/12/02 15:15:36 activator: no replica for plain-e623c2c9.example.test in s3://contract-bucket/t8-e623c2c9/plain-e623c2c9.example.test — booting fresh
2026/12/02 15:15:36 activator: plain-e623c2c9.example.test: started carlos-instance@plain\x2de623c2c9.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 1ms, instance key 0s, env 5ms, control socket 0s, key gate 0s, logs 0s) 7ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 15:15:36 activator: plain-e623c2c9.example.test: carlos-instance@plain\x2de623c2c9.example.test.service launched in 8ms, healthy 0s later
2026/12/02 15:15:36 activator: plain-e623c2c9.example.test: woke in 98ms: checks 0s, lease 2ms, restore 19ms, identity 0s, protect 0s, spawn 8ms, replicate 69ms
2026/12/02 15:15:36 lease: t8-e623c2c9/bot0.shop.bac.sidecar.internal: HA lease acquired in 4ms (first wake)
2026/12/02 15:15:36 activator: bot0.shop.bac.sidecar.internal: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 15:15:37 activator: bot0.shop.bac.sidecar.internal: woke in 71ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 8ms, settle 0s, replicate 57ms
2026/12/02 15:15:37 activator: next-due probe plain-e623c2c9.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 15:15:37 activator: bot0.shop.bac.sidecar.internal: released with a marker (clean true, txid 1, files 3:fdef15a32e8827ccb16ea78ebcfdbf8cf3712879c9272664442609212dac70fa) in 7ms: files 1ms, sync 3ms, record 1ms, marker 2ms
2026/12/02 15:15:37 activator: bot0.shop.bac.sidecar.internal hibernated
2026/12/02 15:15:37 activator: plain-e623c2c9.example.test hibernated
2026/12/02 15:15:37 activator: next-due probe shop-e623c2c9.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 15:15:37 activator: shop-e623c2c9.example.test: released with a marker (clean true, txid 1, files 3:3babccf5e0971e29ef84523b2c229b8026ab7f324f04b5f65608bf5c8a1825ea) in 9ms: files 1ms, sync 5ms, record 1ms, marker 2ms
2026/12/02 15:15:37 activator: shop-e623c2c9.example.test hibernated
2026/12/02 15:15:37 lease: t8-e623c2c9/shop-e623c2c9.example.test: HA lease acquired in 3ms (clean marker)
2026/12/02 15:15:37 activator: shop-e623c2c9.example.test: restored (other-box)
2026/12/02 15:15:37 activator: shop-e623c2c9.example.test: started carlos-instance@shop\x2de623c2c9.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 1ms, control socket 0s, key gate 0s, logs 0s) 1ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 15:15:37 activator: shop-e623c2c9.example.test: carlos-instance@shop\x2de623c2c9.example.test.service launched in 2ms, healthy 0s later
2026/12/02 15:15:37 activator: shop-e623c2c9.example.test: woke in 92ms: checks 0s, lease 5ms, restore 30ms, identity 0s, protect 1ms, spawn 2ms, replicate 55ms
2026/12/02 15:15:37 edge: ha-take shop-e623c2c9.example.test from annie (txn t8-witness, marker generation 1): holder betty, generation 2
2026/12/02 15:15:37 edge: forward shop-e623c2c9.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:93cf27e63fc29bce558918cee858ddfa Step:move Result:ok Reasons:[] Fence:t8-witness StartedAt:2026-12-02 15:15:37.042325638 +0000 UTC FinishedAt:2026-12-02 15:15:37.189706132 +0000 UTC Acked:[betty carol] Departed:[] Moved:[{Host:shop-e623c2c9.example.test Holder:betty Gen:2 Confirmed:take}] Released:[{Host:bot0.shop.bac.sidecar.internal Kind:worker Marker:true Clean:true Reason:} {Host:plain-e623c2c9.example.test Kind:other Marker:true Clean:true Reason:}] Unclean:[] Left:[] Holds:{LongestMS:139 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-e623c2c9.example.test <nil> stop bot0.shop.bac.sidecar.internal marker=true clean=true <nil> releasing shop-e623c2c9.example.test <nil> stop plain-e623c2c9.example.test marker=true clean=true <nil> stop shop-e623c2c9.example.test marker=true clean=true <nil> taken shop-e623c2c9.example.test betty <nil> end-moves]
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-e623c2c9/shop-e623c2c9.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-e623c2c9/bot0.shop.bac.sidecar.internal/0009/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-e623c2c9/bot0.shop.bac.sidecar.internal/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: DELETE /contract-bucket/t8-e623c2c9/plain-e623c2c9.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-e623c2c9/shop-e623c2c9.example.test/0009/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-e623c2c9/shop-e623c2c9.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-e623c2c9/shop-e623c2c9.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-e623c2c9/shop-e623c2c9.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-e623c2c9/shop-e623c2c9.example.test/head.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/generations/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0008/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0007/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0006/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0005/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0004/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0008/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0007/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0006/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0005/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0004/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-e623c2c9/shop-e623c2c9.example.test/0009/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-e623c2c9/shop-e623c2c9.example.test/files/0/manifest.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-e623c2c9/shop-e623c2c9.example.test/files/0/objects/0000000000000001-ada344676f4c61f6f5a60166643096ecc349531292663ad5f34a6bbf7c377d97
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-e623c2c9/shop-e623c2c9.example.test/files/0/objects/0000000000000003-3072944637490247b6a6b5dae10d118db4c5c1c96b9e80ee1db02aa288cf7da4
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-e623c2c9/shop-e623c2c9.example.test/0000/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e623c2c9/shop-e623c2c9.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-e623c2c9/shop-e623c2c9.example.test/0000/0000000000000002-0000000000000002.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-e623c2c9/shop-e623c2c9.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1243: drain took 184ms; S3 calls 43 (DELETE lock=1 GET files=3 GET head=1 GET lock=3 GET replica=2 LIST replica=27 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/12/02 15:15:37 lease: t8-e623c2c9/plain-e623c2c9.example.test: acquired in 2ms (client 0s, lock read and write 2ms)
2026/12/02 15:15:37 activator: plain-e623c2c9.example.test: started carlos-instance@plain\x2de623c2c9.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/12/02 15:15:37 activator: plain-e623c2c9.example.test: carlos-instance@plain\x2de623c2c9.example.test.service launched in 1ms, healthy 0s later
2026/12/02 15:15:37 lease: /tmp/carlos-minio-contract-wAzHGS/g/dw7209437/data/instances/plain-e623c2c9.example.test/plain-e623c2c9.example.test.db: continuity with the last clean close not proven; snapshot 1-0000000000000001 written before serving
2026/12/02 15:15:37 activator: plain-e623c2c9.example.test: woke in 12ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 1ms, spawn 2ms, replicate 7ms
2026/12/02 15:15:37 activator: next-due probe shop-e623c2c9.example.test: decode /api/next-due: invalid character 'b' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 15:15:37 activator: shop-e623c2c9.example.test: released with a marker (clean true, txid 2, files 3:3babccf5e0971e29ef84523b2c229b8026ab7f324f04b5f65608bf5c8a1825ea) in 4ms: files 1ms, sync 1ms, record 1ms, marker 2ms
2026/12/02 15:15:37 activator: shop-e623c2c9.example.test hibernated
2026/12/02 15:15:37 tenant admission is closed for shutdown
2026/12/02 15:15:37 activator: next-due probe plain-e623c2c9.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 15:15:37 activator: plain-e623c2c9.example.test hibernated
--- PASS: TestHeldHandoverTwoBoxMinio (0.63s)
=== RUN   TestHeldHandoverLostLeaseMinio
2026/12/02 15:15:37 edge: mesh key: minted
2026/12/02 15:15:37 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 15:15:37 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 15:15:37 tenant admission is open. accepting tenant work
2026/12/02 15:15:37 activator: HA placement host=shop-77a14c88.example.test kind=Place ref=annie reason=roomiest generation=2026-12-02T15:15:37Z lock_generation=0
2026/12/02 15:15:37 lease: t8-77a14c88/shop-77a14c88.example.test: HA lease acquired in 4ms (first wake)
2026/12/02 15:15:37 activator: shop-77a14c88.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 15:15:37 activator: shop-77a14c88.example.test: started carlos-instance@shop\x2d77a14c88.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) 7ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 15:15:37 activator: shop-77a14c88.example.test: carlos-instance@shop\x2d77a14c88.example.test.service launched in 8ms, healthy 0s later
2026/12/02 15:15:37 activator: shop-77a14c88.example.test: woke in 68ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 8ms, replicate 55ms
2026/12/02 15:15:37 activator: next-due probe shop-77a14c88.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 15:15:37 activator: final checkpoint shop-77a14c88.example.test: lease: release marker owed for s3://contract-bucket/t8-77a14c88/shop-77a14c88.example.test/lock.json (If-Match "f74a3871d93c290cf07c859497e591ee"): lease: write release marker: operation error S3: PutObject, https response error StatusCode: 503, RequestID: , HostID: , api error ServiceUnavailable: witness: refused
2026/12/02 15:15:37 activator: shop-77a14c88.example.test hibernated
2026/12/02 15:15:37 activator: handover of shop-77a14c88.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-77a14c88.example.test client 4 "
    hadrain_twobox_minio_linux_test.go:1486: driver calls: [begin shop-77a14c88.example.test <nil> releasing shop-77a14c88.example.test <nil> stop shop-77a14c88.example.test marker=false clean=false <nil> left shop-77a14c88.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/12/02 15:15:37 tenant admission is closed for shutdown
2026/12/02 15:15:37 http: proxy error: context canceled
--- PASS: TestHeldHandoverLostLeaseMinio (0.33s)
PASS
ok  	github.com/carlosframework/platform/internal/host	1.003s
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/12/02 15:15:38 lease: instances/gen-1796224538888195356.shop.example.com: HA lease acquired in 5ms (first wake)
2026/12/02 15:15:38 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/12/02 15:15:38 lease: instances/gen-1796224538888195356.shop.example.com: HA lease acquired in 3ms (holder terminated)
    gentake_minio_test.go:308: a second create-only copy onto instances/gen-1796224538888195356.shop.example.com/g-00000000000000000002/0009/0000000000000001-0000000000000001.ltx: <nil> (destination condition honoured: false)
2026/12/02 15:15:39 ERROR retention enforcement failed system=store db=w.example.com.db error="enforce snapshot retention: remove ltx files: lease: invalid or changed generation binding"
=== RUN   TestGenerationTakeMinio/switch-412
2026/12/02 15:15:39 lease: instances/gen-1796224539093702842.shop.example.com: HA lease acquired in 4ms (first wake)
2026/12/02 15:15:39 ERROR retention enforcement failed system=store db=seed.db error="enforce snapshot retention: remove ltx files: lease: invalid or changed generation binding"
2026/12/02 15:15:39 lease: instances/gen-1796224539093702842.shop.example.com: HA lease acquired in 3ms (clean marker)
=== RUN   TestGenerationTakeMinio/copy-version
=== RUN   TestGenerationTakeMinio/store-time
2026/12/02 15:15:39 lease: instances/gen-1796224539204233002.shop.example.com: HA lease acquired in 5ms (first wake)
2026/12/02 15:15:39 http: proxy error: context canceled
2026/12/02 15:15:39 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/12/02 15:15:39 lease: instances/gen-1796224539204233002.shop.example.com: HA lease acquired in 3ms (clean marker)
2026/12/02 15:15:39 lease: instances/gen-1796224539204233002.shop.example.com: HA lease acquired in 3ms (unclean marker)
2026/12/02 15:15:39 lease: instances/gen-1796224539204233002.shop.example.com: HA lease acquired in 3ms (unclean marker)
2026/12/02 15:15:39 lease: instances/gen-1796224539204233002.shop.example.com: HA lease acquired in 3ms (unclean marker)
2026/12/02 15:15:39 lease: instances/gen-1796224539204233002.shop.example.com: HA lease acquired in 3ms (unclean marker)
=== RUN   TestGenerationTakeMinio/skew
--- PASS: TestGenerationTakeMinio (0.46s)
    --- PASS: TestGenerationTakeMinio/take (0.21s)
    --- PASS: TestGenerationTakeMinio/switch-412 (0.10s)
    --- PASS: TestGenerationTakeMinio/copy-version (0.01s)
    --- PASS: TestGenerationTakeMinio/store-time (0.13s)
    --- PASS: TestGenerationTakeMinio/skew (0.01s)
PASS
ok  	github.com/carlosframework/platform/internal/lease	0.467s
minio contract: PASS
=== staticcheck ===
go version go1.26.10 linux/arm64
go: downloading honnef.co/go/tools v0.8.2
go: downloading golang.org/x/exp/typeparams v0.0.0-20231108232855-2478ac86f678
go: downloading github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c
go: downloading golang.org/x/sync v0.23.0
go: downloading golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa
staticcheck: clean
=== govulncheck ===
go version go1.26.10 linux/arm64
go: downloading golang.org/x/vuln v1.8.0
go: downloading golang.org/x/telemetry v0.0.0-20260908163034-4bcc4b2ee518
go: downloading golang.org/x/tools v0.50.0
govulncheck: scanned github.com/carlosframework/platform, amadan.net/carlos/platform.git/launchctx, carlos-vulnscan
GO-2026-6859  called  stdlib@v1.26.10, fixed in v1.26.11
    HTTP/1 server crash due to MaxBytesReader header race in net/http
    excepted until 2027-01-31 (.amadan/govulncheck-exceptions.tsv:9): net/http MaxBytesReader header race, fixed in go1.26.11. CI and releases stay on go1.26.10 because 1.26.11 deadlocks the edge's Expect: 100-continue path (#897, .amadan/go-toolchain.sh); #904 checked every production MaxBytesReader site and found it unreachable.
GO-2026-5932  required  golang.org/x/crypto@v0.58.0, fixed in v0.58.1-0.20261009181718-2f1f834330b2
    The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues
    not fatal: no call path to the vulnerable code
govulncheck: clean (2 finding(s), none called outside .amadan/govulncheck-exceptions.tsv)
=== code-health ===
go version go1.26.10 linux/arm64
    codehealth_test.go:42: scanned in 1m59.642s
    codehealth_test.go:107: line metrics (code lines, then physical):
          file-lines  5471  7324  internal/activator activator_test.go
          file-lines  4120  6283  . apimode.go
          file-lines  4051  6843  internal/console server.go
          file-lines  3785  7224  internal/activator activator.go
          file-lines  3530  4459  . apimode_test.go
          file-lines  3261  3864  internal/registry registry_test.go
          file-lines  3117  6287  internal/host agent.go
          file-lines  3094  3992  internal/provision reconcile_test.go
          func-lines   870   891  internal/host plan14InstalledClaimLaunch
          func-lines   810  1277  internal/provision Reconcile
          func-lines   769  1242  internal/console (*Server).handleAPIInstanceCreate
          func-lines   683  1240  internal/host runAgent
          func-lines   571   908  internal/activator (*Service).doWakeOnce
          func-lines   538   546  internal/host runServingParkPeerNamespace
          func-lines   519   712  . runRoute
          func-lines   509   569  internal/host TestPagingIsRateLimited
          func-lines   494   817  internal/release adoptHost
          func-lines   441   500  internal/host TestRootInstanceStopExecStop
          func-lines   421   436  internal/host (*ClaimWakeAssembly).Build
          func-lines   421   437  internal/team TestFixture
          func-lines   412   414  internal/console TestDemoProtectionsSourceToLimitAndTakedown
          func-lines   408   485  . TestFleetAppServesThroughTheHub
          func-lines   402   406  internal/registry (*Registry).haJournal
          func-lines   400   868  internal/provision rootReadArchivedChain
          func-lines   399   733  internal/release PassFilter
          func-lines   390   398  internal/host runFilesSeedPreparationWithLive
          func-lines   383   406  internal/console TestDemoSourceToLiveAndUpdate
          func-lines   374   377  internal/host plan14RequiredArtifactsRootRunner
          func-lines   371   417  internal/host TestRootEgressKernelProof
          func-lines   369   883  internal/edge (*Edge).ServeHTTP
          func-lines   367   584  internal/console (*Server).handleAPIShip
          func-lines   364   371  internal/host testRootMigrationBootstrap
          func-lines   360   362  internal/edge TestDemoAPIAliasBoundary
          func-lines   358   628  cmd/console serve
          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 (217 files):
          cmd/carlos-media/drill_other.go: built only for other systems or tags
          cmd/carlos-media/harden_other.go: built only for other systems or tags
          cmd/console/fleetsocket_other.go: built only for other systems or tags
          cmd/console/servelock_windows.go: built only for other systems or tags
          cmd/moveprobe/detach_windows.go: built only for other systems or tags
          cmd/rootfswitness/mmap_other.go: built only for other systems or tags
          devbox_acl_other.go: built only for other systems or tags
          devbox_envfile_darwin_test.go: built only for other systems or tags
          devbox_envfile_other.go: built only for other systems or tags
          domains_transfer_signals_other.go: built only for other systems or tags
          interactive_term_darwin.go: built only for other systems or tags
          interactive_term_other.go: built only for other systems or tags
          internal/activator/claimprocess_root_other.go: built only for other systems or tags
          internal/activator/escrow_stamp_other.go: built only for other systems or tags
          internal/activator/fleetreserve_other.go: built only for other systems or tags
          internal/activator/harecord_other.go: built only for other systems or tags
          internal/activator/ownenv_other.go: built only for other systems or tags
          internal/activator/pty_other.go: built only for other systems or tags
          internal/activator/race_on_test.go: built only for other systems or tags
          internal/activator/rolelaunch_other.go: built only for other systems or tags
          internal/assetcache/statfs_other.go: built only for other systems or tags
          internal/boxself/io_other.go: built only for other systems or tags
          internal/cgroup/cleanup_other.go: built only for other systems or tags
          internal/cgroup/cleanup_other_test.go: built only for other systems or tags
          internal/cgroup/hostprocs_other.go: built only for other systems or tags
          internal/cgroup/recreate_other.go: built only for other systems or tags
          internal/cgroup/role_other.go: built only for other systems or tags
          internal/cgroup/shim_other.go: built only for other systems or tags
          internal/cgroup/strict_other.go: built only for other systems or tags
          internal/cgroup/verify_other.go: built only for other systems or tags
          internal/console/claim_sql_identity_other.go: built only for other systems or tags
          internal/console/geoipverify_other.go: built only for other systems or tags
          internal/console/hostreports_process_other.go: built only for other systems or tags
          internal/console/replicaview_other.go: built only for other systems or tags
          internal/console/restore_sim_nice_other_test.go: built only for other systems or tags
          internal/console/scalecost_other_test.go: built only for other systems or tags
          internal/console/seedscratch_windows.go: built only for other systems or tags
          internal/dbreads/worker_other.go: built only for other systems or tags
          internal/demobuild/security_other.go: built only for other systems or tags
          internal/democlaim/source_other.go: built only for other systems or tags
          internal/devbox/peer_darwin.go: built only for other systems or tags
          internal/devbox/peer_darwin_test.go: built only for other systems or tags
          internal/devbox/peer_other.go: built only for other systems or tags
          internal/devbox/socketcheck_other.go: built only for other systems or tags
          internal/domains/certimport_read_portable.go: built only for other systems or tags
          internal/edge/devboxpeer_other.go: built only for other systems or tags
          internal/edge/hairpin_other.go: built only for other systems or tags
          internal/edge/heldbudget_other.go: built only for other systems or tags
          internal/edge/purge_listen_unix.go: built only for other systems or tags
          internal/edge/purge_listen_windows.go: built only for other systems or tags
          internal/edge/race_on_test.go: built only for other systems or tags
          internal/edge/replicaconsole_owner_other.go: built only for other systems or tags
          internal/edge/replicaconsole_peer_other.go: built only for other systems or tags
          internal/edge/replicaconsole_socket_other_test.go: built only for other systems or tags
          internal/edge/static_artifact_other.go: built only for other systems or tags
          internal/edge/static_recordlock_other.go: built only for other systems or tags
          internal/edge/static_sweep_other.go: built only for other systems or tags
          internal/execsandbox/cleanup_other.go: built only for other systems or tags
          internal/execsandbox/file_other.go: built only for other systems or tags
          internal/execsandbox/oci_other.go: built only for other systems or tags
          internal/fileacl/fileacl_darwin.go: built only for other systems or tags
          internal/fileacl/fileacl_darwin_amd64.s: built only for other systems or tags
          internal/fileacl/fileacl_darwin_arm64.s: built only for other systems or tags
          internal/fileacl/fileacl_darwin_test.go: built only for other systems or tags
          internal/grouproll/state_other.go: built only for other systems or tags
          internal/grouprollaws/pty_darwin.go: built only for other systems or tags
          internal/grouprollaws/pty_other.go: built only for other systems or tags
          internal/hairpin/native_other.go: built only for other systems or tags
          internal/host/applylock_other_test.go: built only for other systems or tags
          internal/host/bootstrapfs_other.go: built only for other systems or tags
          internal/host/boxroles_config_other.go: built only for other systems or tags
          internal/host/claimfilesseed_delegation_other.go: built only for other systems or tags
          internal/host/claimfilesseed_transport_other.go: built only for other systems or tags
          internal/host/claimjournal_containment_other.go: built only for other systems or tags
          internal/host/claimjournal_migration_other.go: built only for other systems or tags
          internal/host/claimlaunch_kernel_other.go: built only for other systems or tags
          internal/host/claimlaunch_rev2_other_test.go: built only for other systems or tags
          internal/host/claimproduction_other.go: built only for other systems or tags
          internal/host/claimready_other.go: built only for other systems or tags
          internal/host/claimroleassembly_other.go: built only for other systems or tags
          internal/host/claimservingartifact_other.go: built only for other systems or tags
          internal/host/claimservinghandover_reboot_other.go: built only for other systems or tags
          internal/host/claimservinghandover_reboot_other_test.go: built only for other systems or tags
          internal/host/claimservingpark_other.go: built only for other systems or tags
          internal/host/claimstate_other.go: built only for other systems or tags
          internal/host/claimstop_kernel_other.go: built only for other systems or tags
          internal/host/claimtoken_inventory_other.go: built only for other systems or tags
          internal/host/claimunit_dropin_other.go: built only for other systems or tags
          internal/host/claimunit_files_other.go: built only for other systems or tags
          internal/host/claimunit_migrate_other.go: built only for other systems or tags
          internal/host/claimunit_ready_other.go: built only for other systems or tags
          internal/host/claimunit_socket_migration_other.go: built only for other systems or tags
          internal/host/consolefleet_owner_other.go: built only for other systems or tags
          internal/host/dbreads_other.go: built only for other systems or tags
          internal/host/egress_rail_other.go: built only for other systems or tags
          internal/host/fileowner_other.go: built only for other systems or tags
          internal/host/flock_windows.go: built only for other systems or tags
          internal/host/group_config_other.go: built only for other systems or tags
          internal/host/group_maintenance_other.go: built only for other systems or tags
          internal/host/group_maintenance_verbs_other.go: built only for other systems or tags
          internal/host/group_receipt_other.go: built only for other systems or tags
          internal/host/hadrain_call_other.go: built only for other systems or tags
          internal/host/hadrain_socket_other.go: built only for other systems or tags
          internal/host/hadrainfence_other.go: built only for other systems or tags
          internal/host/headroom_other.go: built only for other systems or tags
          internal/host/installchannel_other.go: built only for other systems or tags
          internal/host/managedboot_other.go: built only for other systems or tags
          internal/host/metrics_nested_other.go: built only for other systems or tags
          internal/host/movesfloor_other.go: built only for other systems or tags
          internal/host/movesfloorgate_other.go: built only for other systems or tags
          internal/host/movesheldrelease_other.go: built only for other systems or tags
          internal/host/movesmeasure_other.go: built only for other systems or tags
          internal/host/offcloudcredentials_other.go: built only for other systems or tags
          internal/host/registrychild_exec_other.go: built only for other systems or tags
          internal/host/registrychild_other.go: built only for other systems or tags
          internal/host/registryowner_chown_other.go: built only for other systems or tags
          internal/host/registryowner_descriptor_unix.go: built only for other systems or tags
          internal/host/replicahealth_other.go: built only for other systems or tags
          internal/host/rootgeneration_census_other.go: built only for other systems or tags
          internal/host/rootgeneration_kernel_other.go: built only for other systems or tags
          internal/host/rootgeneration_payload_other.go: built only for other systems or tags
          internal/host/rootgeneration_retired_other.go: built only for other systems or tags
          internal/host/rootmigration_production_other.go: built only for other systems or tags
          internal/host/runscset_other.go: built only for other systems or tags
          internal/host/sandboxenv_other.go: built only for other systems or tags
          internal/host/statfs_windows.go: built only for other systems or tags
          internal/host/systemapply_other.go: built only for other systems or tags
          internal/hostbox/census_vendor_other.go: built only for other systems or tags
          internal/hostbox/inventory_identity_other.go: built only for other systems or tags
          internal/hostbox/journalmigration_other.go: built only for other systems or tags
          internal/hostbox/journalnamespace_other.go: built only for other systems or tags
          internal/hostbox/journaltrust_other.go: built only for other systems or tags
          internal/hostbox/migration_census_other.go: built only for other systems or tags
          internal/hostbox/typedpark_other.go: built only for other systems or tags
          internal/hostenv/group_other.go: built only for other systems or tags
          internal/hostenv/write_other.go: built only for other systems or tags
          internal/hostenv/write_other_test.go: built only for other systems or tags
          internal/hostexec/clock_other.go: built only for other systems or tags
          internal/hostexec/clock_other_test.go: built only for other systems or tags
          internal/hostexec/local_other.go: built only for other systems or tags
          internal/hostexec/pending_other.go: built only for other systems or tags
          internal/hostexec/probe_other.go: built only for other systems or tags
          internal/hostexec/rootprocess_other.go: built only for other systems or tags
          internal/hostfiles/dir_other.go: built only for other systems or tags
          internal/hostfiles/refuse_other.go: built only for other systems or tags
          internal/hostfiles/watch_other.go: built only for other systems or tags
          internal/hostfloor/controllers_other.go: built only for other systems or tags
          internal/hostfloor/image_other.go: built only for other systems or tags
          internal/hostguard/flock_other.go: built only for other systems or tags
          internal/hostguard/flock_other_test.go: built only for other systems or tags
          internal/hostguard/record_other.go: built only for other systems or tags
          internal/instancectl/claimexec_other.go: built only for other systems or tags
          internal/instancectl/claimexec_socket_other.go: built only for other systems or tags
          internal/instancectl/claimlaunch_snapshot_other.go: built only for other systems or tags
          internal/instancectl/claimnetwork_other.go: built only for other systems or tags
          internal/instancectl/demo_snapshot_other.go: built only for other systems or tags
          internal/instancectl/egress_cgroup_other.go: built only for other systems or tags
          internal/instancectl/egress_dropin_other.go: built only for other systems or tags
          internal/instancectl/fleetsize_other.go: built only for other systems or tags
          internal/instancectl/gvisorprobe_other.go: built only for other systems or tags
          internal/instancectl/peer_other.go: built only for other systems or tags
          internal/instancectl/peer_tuple_other.go: built only for other systems or tags
          internal/instancectl/rootfs_identity_other.go: built only for other systems or tags
          internal/instanceexec/claimexec_other.go: built only for other systems or tags
          internal/instanceexec/exec_rootfs_other.go: built only for other systems or tags
          internal/instanceexec/netlink_route_other.go: built only for other systems or tags
          internal/instanceexec/probe_gvisor_other.go: built only for other systems or tags
          internal/instanceexec/probe_hardening_other.go: built only for other systems or tags
          internal/instanceexec/probe_other.go: built only for other systems or tags
          internal/instanceexec/probe_rootfs_other.go: built only for other systems or tags
          internal/instanceexec/sandbox_other.go: built only for other systems or tags
          internal/instanceexec/scope_other.go: built only for other systems or tags
          internal/instanceexec/stop_other.go: built only for other systems or tags
          internal/instanceexec/tty_other.go: built only for other systems or tags
          internal/instancefs/instancefs_other.go: built only for other systems or tags
          internal/launchd/activate_darwin.go: built only for other systems or tags
          internal/launchd/activate_darwin_amd64.s: built only for other systems or tags
          internal/launchd/activate_darwin_arm64.s: built only for other systems or tags
          internal/launchd/activate_darwin_test.go: built only for other systems or tags
          internal/layout/journal_other.go: built only for other systems or tags
          internal/layout/links_other.go: built only for other systems or tags
          internal/mailer/keys_other.go: built only for other systems or tags
          internal/maintenanceexec/run_other.go: built only for other systems or tags
          internal/managedboot/admission_other.go: built only for other systems or tags
          internal/managedboot/identity_other.go: built only for other systems or tags
          internal/mediahandler/collect_other.go: built only for other systems or tags
          internal/mediahandler/procs_other.go: built only for other systems or tags
          internal/medialocal/runner_other.go: built only for other systems or tags
          internal/moves/archive/open_other.go: built only for other systems or tags
          internal/moves/archive/sync_other.go: built only for other systems or tags
          internal/ops/flock_windows.go: built only for other systems or tags
          internal/park/local_other.go: built only for other systems or tags
          internal/privatefile/io_other.go: built only for other systems or tags
          internal/proxyproto/peek_other.go: built only for other systems or tags
          internal/relay/race_on_test.go: built only for other systems or tags
          internal/release/consumedfence_other.go: built only for other systems or tags
          internal/release/digestcache_other.go: built only for other systems or tags
          internal/rootaws/credentials_other.go: built only for other systems or tags
          internal/rootaws/open_darwin.go: built only for other systems or tags
          internal/rootfsimage/dir_other.go: built only for other systems or tags
          internal/rootstate/authoritydir_other.go: built only for other systems or tags
          internal/rootstate/authorityfile_other.go: built only for other systems or tags
          internal/rootstate/file_other.go: built only for other systems or tags
          internal/rootstate/link_other.go: built only for other systems or tags
          internal/rootstate/persistent_other.go: built only for other systems or tags
          internal/rootstate/state_other.go: built only for other systems or tags
          internal/safefile/file_other.go: built only for other systems or tags
          internal/safefile/reap_other.go: built only for other systems or tags
          internal/schedule/envfile_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               1089 at  473 sites  log.Fatal*, (*log.Logger).Fatal* and os.Exit in the root package's production files
    codehealth_test.go:115: sleep               1006 at  812 sites  time.Sleep in test files
    codehealth_test.go:115: db-no-context        873 at  696 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         18582 at   45 sites  functions over 300 code lines (blank and comment-only lines not counted)
    codehealth_test.go:115: file-lines         30429 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
--- PASS: TestCodeHealth (119.65s)
PASS
ok  	github.com/carlosframework/platform/internal/codehealth	121.082s
=== code-health-record ===
go version go1.26.10 linux/arm64
code-health record: HEAD is on main; comparing with its parent ad61ec4b263557c52475ff4bdae9b61bb693fba3
=== RUN   TestRecordAgainstBase
--- PASS: TestRecordAgainstBase (0.01s)
PASS
ok  	github.com/carlosframework/platform/internal/codehealth	0.008s
code-health record: no line went up without a reason
=== race ===
go version go1.26.10 linux/arm64
GATE_RACE=1 .amadan/test-gate.sh
=== internal_systemd@0 (14 s, from +15 s)
ok  	github.com/carlosframework/platform/internal/systemd	13.405s
=== internal_rootaws@0 (27 s, from +35 s)
ok  	github.com/carlosframework/platform/internal/rootaws	26.164s
=== internal_activator@0 (253 s, from +115 s)
ok  	github.com/carlosframework/platform/internal/activator	250.428s
=== internal_activator@1 (282 s, from +115 s)
ok  	github.com/carlosframework/platform/internal/activator	279.454s
=== internal_activator@2 (301 s, from +115 s)
ok  	github.com/carlosframework/platform/internal/activator	298.607s
=== internal_activator@3 (367 s, from +115 s)
ok  	github.com/carlosframework/platform/internal/activator	364.853s
=== internal_activator@4 (314 s, from +115 s)
ok  	github.com/carlosframework/platform/internal/activator	312.312s
=== internal_activator@5 (306 s, from +115 s)
ok  	github.com/carlosframework/platform/internal/activator	304.160s
=== internal_activator@6 (308 s, from +115 s)
ok  	github.com/carlosframework/platform/internal/activator	305.730s
=== internal_activator@7 (408 s, from +115 s)
ok  	github.com/carlosframework/platform/internal/activator	405.863s
=== internal_edge@0 (83 s, from +139 s)
ok  	github.com/carlosframework/platform/internal/edge	79.877s
=== internal_edge@1 (83 s, from +139 s)
ok  	github.com/carlosframework/platform/internal/edge	79.746s
=== internal_edge@2 (215 s, from +139 s)
ok  	github.com/carlosframework/platform/internal/edge	211.797s
=== internal_edge@3 (144 s, from +139 s)
ok  	github.com/carlosframework/platform/internal/edge	140.142s
=== internal_edge@4 (178 s, from +139 s)
ok  	github.com/carlosframework/platform/internal/edge	174.282s
=== internal_edge@5 (237 s, from +139 s)
ok  	github.com/carlosframework/platform/internal/edge	233.066s
=== internal_edge@6 (196 s, from +139 s)
ok  	github.com/carlosframework/platform/internal/edge	191.921s
=== internal_edge@7 (229 s, from +139 s)
ok  	github.com/carlosframework/platform/internal/edge	224.853s
=== internal_edge@8 (220 s, from +139 s)
ok  	github.com/carlosframework/platform/internal/edge	216.134s
=== internal_edge@9 (246 s, from +139 s)
ok  	github.com/carlosframework/platform/internal/edge	242.465s
=== internal_edge@10 (334 s, from +139 s)
ok  	github.com/carlosframework/platform/internal/edge	330.526s
=== internal_edge@11 (228 s, from +139 s)
ok  	github.com/carlosframework/platform/internal/edge	224.805s
=== internal_edge@12 (249 s, from +139 s)
==================
WARNING: DATA RACE
Write at 0x0000062b3390 by goroutine 180:
  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 0x0000062b3390 by goroutine 269:
  github.com/carlosframework/platform/internal/edge.(*Edge).backhaulTransport.func1()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/edge.go:5021 +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 180 (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 269 (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:4942 +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:69 +0x33c
  github.com/carlosframework/platform/internal/edge.(*Edge).backhaulTo()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/edge.go:4893 +0x2b0
  github.com/carlosframework/platform/internal/edge.(*Edge).backhaul()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/edge.go:4886 +0x1dc
  github.com/carlosframework/platform/internal/edge.(*Edge).farForward()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/assetcatch.go:1376 +0x104
  github.com/carlosframework/platform/internal/edge.(*Edge).serveAssetFar.func4()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/assetcatch.go:1248 +0x308
  github.com/carlosframework/platform/internal/edge.(*Edge).serveAssetFar()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/assetcatch.go:1278 +0x1450
  github.com/carlosframework/platform/internal/edge.(*Edge).ServeHTTP()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/edge.go:2503 +0x2b08
  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.63s)
    --- FAIL: TestAssetE2ECoalescedWaitersAndRefusals/a_refusal_reaches_only_its_initiator (1.81s)
        testing.go:1712: race detected during execution of test
2026/12/02 15:25:11 edge: mesh key: minted
2026/12/02 15:25:12 edge: mesh key: minted
2026/12/02 15:25:17 edge: mesh key: minted
2026/12/02 15:25:17 edge: mesh key: minted
2026/12/02 15:25:20 edge: mesh key: minted
2026/12/02 15:25:21 edge: mesh key: minted
2026/12/02 15:25:23 edge: cert warmed for warm.test
2026/12/02 15:25:23 edge: cert warm for warm.test waits 30s for the other edges to learn the name
2026/12/02 15:25:23 certsync: mirrored entry "example.com" does not parse as a certificate (tls: failed to find any PEM data in certificate input) — skipping it
2026/12/02 15:25:23 certsync: mirrored entry "example.com" does not parse as a certificate (tls: failed to find any PEM data in certificate input) — skipping it
2026/12/02 15:25:23 edge: cert warmed for a.customer.test
2026/12/02 15:25:23 edge: cert warmed for b.customer.test
2026/12/02 15:25:23 edge: cert warmed for c.customer.test
2026/12/02 15:25:23 edge: cert warmed for d.customer.test
2026/12/02 15:25:23 edge: cert warmed for e.customer.test
2026/12/02 15:25:23 edge: cert warmed for f.customer.test
2026/12/02 15:25:23 edge: cert warmed for g.customer.test
2026/12/02 15:25:23 edge: cert warmed for h.customer.test
2026/12/02 15:25:23 edge: cert warmed for i.customer.test
2026/12/02 15:25:23 edge: cert warmed for j.customer.test
2026/12/02 15:25:39 edge: route able-acorn-00.example.com is a hibernating instance but this box has no activator, so nothing here will create /run/carlos/instances/able-acorn-00.example.com/app.sock or start its process. If this box runs `carlos agent`, set CARLOS_HIBERNATE_BUCKET in /etc/carlos/host.env and restart carlos-edge; `carlos edge` on its own never runs instances. (occurrence #1)
2026/12/02 15:25:47 edge: tunnel home/box-1: connected from 127.0.0.1:45082
2026/12/02 15:25:47 edge: registry watcher armed (2s fingerprint poll)
2026/12/02 15:25:49 edge: route sentinel.example.com: fleet-placed row has no account; served on fleet "home" as before accounts (occurrence #1)
2026/12/02 15:25:49 edge: registry changed — reloaded (2 route(s))
2026/12/02 15:25:51 edge: route shop.example.com is not served: account "bah" does not own fleet "home" (occurrence #1)
2026/12/02 15:25:51 edge: registry changed — reloaded (1 route(s))
2026/12/02 15:25:53 edge: registry changed — reloaded (2 route(s))
2026/12/02 15:25:55 edge: mesh key: minted
2026/12/02 15:25:55 edge: tunnel shop/box-a: connected from 127.0.0.1:58898
2026/12/02 15:26:13 edge: tunnel home/box-1: connected from 127.0.0.1:53688
2026/12/02 15:26:13 edge: geoip database ed972738 (GeoIP2-City, built 2026-02-04) loaded
2026/12/02 15:26:13 edge: geoip database ed972738 (GeoIP2-City, built 2026-02-04) loaded
2026/12/02 15:26:13 edge: geoip database ed972738 (GeoIP2-City, built 2026-02-04) loaded
2026/12/02 15:26:13 edge: geoip turned off; no database published
2026/12/02 15:26:39 edge: held stream for shop.example.com: upstream answered 200 without an identity text/event-stream; answered 502 (occurrence #1)
2026/12/02 15:26:40 edge: mesh key: minted
2026/12/02 15:26:41 edge: example.com is homed on betty but no mesh key is mirrored — not dialling (the request gets the unknown-host answer until the key lands) (occurrence #1)
2026/12/02 15:26:41 edge: 1 of 1 object(s) under control/edges/ unreadable this poll (#1, last: control/edges/annie.json: body names box "mallory", not the box its key names) — the previous copy of each is carried forward
2026/12/02 15:26:43 edge: tunnel link:0123456789ab/home: connected from 127.0.0.1:53442
2026/12/02 15:26:44 edge: tunnel link:0123456789ab/home: connected from 127.0.0.1:51636
2026/12/02 15:26:45 edge: tunnel link:0123456789ab/home: connected from 127.0.0.1:58650
2026/12/02 15:26:47 edge: tunnel link:0123456789ab/home: connected from 127.0.0.1:37078
2026/12/02 15:26:48 edge: probe shop.example.com 10.0.0.5:80 down (dial: Get "http://10.0.0.5:80/healthz": dial tcp: connection refused)
2026/12/02 15:26:48 edge: tunnel link:0123456789ab/home: ping failed (read tcp 127.0.0.1:33207->127.0.0.1:53442: use of closed network connection) — dropping channel
2026/12/02 15:26:49 http: proxy error: dial tcp 127.0.0.1:42401: connect: connection refused
2026/12/02 15:26:49 edge: tunnel link:0123456789ab/home: ping failed (read tcp 127.0.0.1:34833->127.0.0.1:51636: use of closed network connection) — dropping channel
2026/12/02 15:26:50 edge: tunnel link:0123456789ab/home: ping failed (read tcp 127.0.0.1:39145->127.0.0.1:58650: use of closed network connection) — dropping channel
2026/12/02 15:26:52 edge: tunnel link:0123456789ab/home: ping failed (read tcp 127.0.0.1:36981->127.0.0.1:37078: use of closed network connection) — dropping channel
2026/12/02 15:27:03 edge: mesh key: minted
2026/12/02 15:27:04 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:27:05 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:27:06 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:27:06 edge: mesh key: minted
2026/12/02 15:27:07 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:27:07 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:27:08 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:27:12 edge: mesh key: minted
2026/12/02 15:27:13 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:27:14 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:27:14 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:27:15 edge: mesh key: minted
2026/12/02 15:27:16 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:27:17 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:27:17 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:27:21 edge: paths on hub.example.com: prefix "acme" names tenant.example.com, which this box serves but not as a ready instance or static route of account bae; sent to the host's home (occurrence #1)
2026/12/02 15:27:31 edge: known.example.com declared 1 Carlos-Purge-Host value(s) this edge does not serve, first "ghost.example.com" — skipped, the rest of the declaration is honoured (occurrence #1)
2026/12/02 15:27:32 edge: a.example.com declared 65 Carlos-Purge targets (max 64) — purging the whole of 1 host(s) instead (occurrence #1)
2026/12/02 15:27:33 edge: go.tito.example declared 65 Carlos-Purge targets (max 64) — purging the whole of 2 host(s) instead (occurrence #1)
2026/12/02 15:27:33 edge: rate limit: refused a request for shop.example.com (fair-share), client 203.0.113.1/32 (occurrence #1)
2026/12/02 15:27:33 INFO edge: static site=bab/site version=v1 bytes=362 seconds=0.001
2026/12/02 15:27:35 edge: tunnel home/box-1: connected from 127.0.0.1:57124
2026/12/02 15:27:35 edge: route shop.example.com is not served: account "bah" does not own fleet "home" (occurrence #1)
2026/12/02 15:27:36 edge: mesh key: minted
2026/12/02 15:27:37 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:27:38 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:27:38 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:27:38 http: proxy error: tunnel "pi/box-01" not connected
2026/12/02 15:27:40 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/12/02 15:27:58 edge: tunnel link:0123456789ab/home: connected from 127.0.0.1:58762
2026/12/02 15:27:59 edge: static cache /tmp/TestStaticSplatIsNotExistence2527436554/004/cache: first start with the lock; sweeping from the next start
2026/12/02 15:27:59 INFO edge: static site=bab/site version=v1 bytes=158 seconds=0.001
2026/12/02 15:27:59 edge: static cache /tmp/TestStaticSplatIsNotExistence2527436554/008/cache: first start with the lock; sweeping from the next start
2026/12/02 15:27:59 INFO edge: static site=bab/site version=v1 bytes=158 seconds=0.001
2026/12/02 15:28:00 edge: static cache /tmp/TestStaticIgnoresASeededSharedCacheEntry2850027769/004/cache: first start with the lock; sweeping from the next start
2026/12/02 15:28:00 INFO edge: static site=bab/site version=v1 bytes=396 seconds=0.001
2026/12/02 15:28:00 edge: static cache /tmp/TestStaticPeriodicSweepSkipsWhileAnotherEdgeServesAndKeepsItsLoc83527054/001: another edge process serves from it; not swept this start
2026/12/02 15:28:00 edge: static cache /tmp/TestStaticPeriodicSweepSkipsWhileAnotherEdgeServesAndKeepsItsLoc83527054/001: another edge process serves from it; not swept (resource temporarily unavailable)
2026/12/02 15:28:00 edge: static cache /tmp/TestStaticPeriodicSweepSkipsWhileAnotherEdgeServesAndKeepsItsLoc83527054/001: swept 1 entr(ies) no handler serves
2026/12/02 15:28:02 edge: steering probe armed for edge.example.com (GET / answers 200; every other path on that host routes normally)
2026/12/02 15:28:02 edge: store door: get apps/ab12/web/channels/stable.json: object exceeds buffered GET limit of 67108864 bytes
2026/12/02 15:28:03 edge: tunnel link:0123456789ab/home: ping failed (read tcp 127.0.0.1:44783->127.0.0.1:58762: read: connection reset by peer) — dropping channel
2026/12/02 15:28:04 edge: tunnel pi-box: connected from 127.0.0.1:59966
2026/12/02 15:28:14 edge: tunnel home/box-1: connected from 127.0.0.1:46078
2026/12/02 15:28:15 edge: wildcard certs off (CARLOS_DNSIMPLE_TOKEN missing) — per-host issuance continues
2026/12/02 15:28:15 edge: wildcard *.bad.carlos.exciting.io: cannot publish the DNS-01 challenge: fake: no zone found for _acme-challenge.bad.carlos.exciting.io: no zone for this name in the configured DNS provider — per-host issuance keeps covering; retrying in 12h0m0s
2026/12/02 15:28:15 edge: mesh key: minted
2026/12/02 15:28:15 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:28:16 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:28:17 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:28:17 edge: backhaul connect fallback for ha.forward.test: annie to betty (occurrence #1)
2026/12/02 15:28:17 edge: mesh key: minted
2026/12/02 15:28:18 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:28:19 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/12/02 15:28:19 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:28:19 edge: tunnel pi-box: ping failed (EOF) — dropping channel
2026/12/02 15:28:20 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:28:20 edge: backhaul connect fallback for ha.forward.test: annie to betty (occurrence #1)
2026/12/02 15:28:20 edge: mesh key: minted
2026/12/02 15:28:21 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:28:22 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:28:22 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:28:23 edge: backhaul connect fallback for ha.forward.test: annie to betty (occurrence #1)
2026/12/02 15:28:23 edge: mesh key: minted
2026/12/02 15:28:23 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:28:24 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:28:25 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:28:25 edge: backhaul connect fallback for ha.forward.test: annie to betty (occurrence #1)
2026/12/02 15:28:25 edge: mesh key: minted
2026/12/02 15:28:26 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:28:27 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:28:28 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/12/02 15:28:28 edge: backhaul connect fallback for ha.forward.test: annie to betty (occurrence #1)
FAIL
FAIL	github.com/carlosframework/platform/internal/edge	245.307s
FAIL
=== internal_edge@13 (266 s, from +139 s)
ok  	github.com/carlosframework/platform/internal/edge	262.563s
=== internal_edge@14 (191 s, from +139 s)
ok  	github.com/carlosframework/platform/internal/edge	187.643s
=== internal_edge@15 (241 s, from +139 s)
ok  	github.com/carlosframework/platform/internal/edge	237.566s
=== internal_host@0 (15 s, from +200 s)
ok  	github.com/carlosframework/platform/internal/host	11.610s
=== internal_host@1 (9 s, from +200 s)
ok  	github.com/carlosframework/platform/internal/host	5.608s
=== lists: internal_edge 139 s, internal_activator 115 s, internal_host 200 s, internal_rootaws 35 s, internal_systemd 14 s
=== cpu: the gate used 7690 cpu-seconds in 523 s, about 14.7 of 32 cores; the machine as a whole was 45% busy

Failure summary:
--- internal_edge@12
--- FAIL: TestAssetE2ECoalescedWaitersAndRefusals (3.63s)
    --- FAIL: TestAssetE2ECoalescedWaitersAndRefusals/a_refusal_reaches_only_its_initiator (1.81s)
FAIL	github.com/carlosframework/platform/internal/edge	245.307s
WARNING: DATA RACE
Write at 0x0000062b3390 by goroutine 180:
  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 0x0000062b3390 by goroutine 269:
  github.com/carlosframework/platform/internal/edge.(*Edge).backhaulTransport.func1()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/edge.go:5021 +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 180 (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 269 (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:4942 +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:69 +0x33c
  github.com/carlosframework/platform/internal/edge.(*Edge).backhaulTo()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/edge.go:4893 +0x2b0
  github.com/carlosframework/platform/internal/edge.(*Edge).backhaul()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/edge.go:4886 +0x1dc
  github.com/carlosframework/platform/internal/edge.(*Edge).farForward()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/assetcatch.go:1376 +0x104
  github.com/carlosframework/platform/internal/edge.(*Edge).serveAssetFar.func4()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/assetcatch.go:1248 +0x308
  github.com/carlosframework/platform/internal/edge.(*Edge).serveAssetFar()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/assetcatch.go:1278 +0x1450
  github.com/carlosframework/platform/internal/edge.(*Edge).ServeHTTP()
      /home/ci/work/repos/carlos__platform/wt/main/internal/edge/edge.go:2503 +0x2b08
  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@12
make: *** [Makefile:156: 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/.amadan/code-health.tsv b/.amadan/code-health.tsv
index 47feb4089..95729aa29 100644
--- a/.amadan/code-health.tsv
+++ b/.amadan/code-health.tsv
@@ -2216,7 +2216,7 @@ file-lines . apimode_test.go - 3530 # raised: fdc912b (batch 2, #1123) landed be
file-lines internal/activator activator.go - 3785 # raised: the Service.ConfigBeforeWake field and doWakeOnce's one call to it (the body lives in configbeforewake.go); before it, #1290 step 2c
file-lines internal/activator activator_test.go - 5471
file-lines internal/console server.go - 4051 # raised: public shares, Config.Shares (one field; the settings type and every share function live in shares.go)
-file-lines internal/host agent.go - 3157
+file-lines internal/host agent.go - 3117
file-lines internal/provision reconcile_test.go - 3094
file-lines internal/registry registry_test.go - 3261
release-importers internal/release - - 66 # raised: scripts/pathmapcheck reads claims and edges files from the store (#186 pre-roll check)
diff --git a/docs/superpowers/notes/census-proposal-alias-with-mint-1653.md b/docs/superpowers/notes/census-proposal-alias-with-mint-1653.md
new file mode 100644
index 000000000..50b4d55f7
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-alias-with-mint-1653.md
@@ -0,0 +1,28 @@
+# Census approval: alias-with-mint-1653
+
+Ruling `census-ruling-alias-with-mint-1653`. The independent reviewer approves or rejects every change below, 4 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+| unit | change | read sites | what changed |
+|---|---|---|---|
+| `internal/domains/aliases.go` `ReconcileAliasesReport` | body | unchanged (89) | passes noRemoval (StartupNoRemoval) to writeRegional, so a no-removal pass (startup, or a scoped pass alias run) keeps regional_domains rows it would have removed, as it already kept aliases, wildcards, paths and account namespaces; comment updates; no read added; deletes less, never more, and only on a no-removal pass (#1653, Astra R2) |
+| `internal/domains/aliases.go` `writeRegional` | sites | +whole:RegionalDomain ×6 | takes noRemoval: when set, a claim no longer desired keeps its set and a desired set is written with any existing key it lacks kept beside it (keptRegionalRows), each marking the pass incomplete; ordinary passes unchanged; registry writes only, no new read; deletes less, never more (#1653, Astra R2) |
+
+Envelopes re-pinned: `internal/domains`, `internal/host`.
+
+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.
+
+Recorded dispositions, which each change must still satisfy:
+
+- `internal/domains/aliases.go` `ReconcileAliasesReport`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-asset-cache-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), in its alias pass (aliasPassReporting in runAgent; ReconcileAliases, now a wrapper, is its other caller): main's ReconcileAliases body, moved here with the same reads and writes, plus a completeness report (AliasReport) set false at every point that already logged a failure and carried on, and when relevantDropped names a listed claim the pass could not rule out; the box's asset authority clock advances only after a complete pass; one more whole:Route and whole:RouteAlias site each, the routes and alias rows the pass already read handed to relevantDropped; no registry, file or bucket read added; no root pass calls it; no root decision;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: in the alias pass inside the agent: reads the existing regional_domains rows (reg.ListRegional) beside the alias rows, derives a regional claim's rows through deriveRegional for AliasReport.Region (the caller's ReconcileConfig.Region, set by aliasPassReporting) and its wildcard parent when bound, skipping the alias, paths and catch-all halves for it, writes them through writeRegional, and keeps an unread regional claim's wildcard parent while the kept apex row still binds a target RegionalTarget accepts on the routes this pass read (same account and app, per-box cap); claims are read as before (the listing and per-claim GETs it already does); the added reads are the registry's regional rows and fields of rows the pass already holds;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 6 fix rounds 2-3: AliasReport.FleetRefused (edge.FleetArmVerdict's refused set) is called once on the pass's own listing; a Wildcard claim whose primary is fleet-refused derives no wildcard_domains row (an earlier one goes with the ordinary removal); the catch-all alias is derived as before (+registry:Host, +whole:Route). Rows already read; writes less, never more; no root pass calls it.;rev3=census-ruling-region-ha-g2-fixes;basis=Project accepted regional exact/catchall names and plain/delegated aliases into routing-only reports using existing claims and pre-pool metadata; new whole Route/RegionalDomain uses, no new external reader.;rev3=census-ruling-fix-incomplete-domains-pass;basis=adds AliasReport.StartupNoRemoval, an input set only by the agent startup HA ingress pass (host startupAliasPass via runHAIngressStartup): when set, the pass skips the route_aliases, wildcard_domains and route_paths removals (each skipped removal marks the pass incomplete) and the removal rules themselves are unchanged; derivations, refusals and writes are unchanged; same read sites (body change only); no new registry, file or bucket read; deletes less, never more, and only on the startup pass; no root pass calls it; no root decision;rev3=census-ruling-account-subdomains;basis=with AliasReport.AppsDomain set, reads the box's own account_namespaces table (reg.ListAccountNamespaces), sorts a listed-but-unread namespace claim (ParseNamespaceHost on the dropped host): a not-found body keeps nothing and is not counted by relevantDropped, any other failure keeps that name's recorded rows; runs deriveNamespaceAliases after deriveInstanceAliases on the routes, alias rows and claims it already read (AccountNamespaces over the read claims), keepNamespaceAliases for unread names, and writes the table through writeAccountNamespaces (once, only when it differs; no shrink under StartupNoRemoval); the added sites are the routes and alias rows already read handed to those helpers; no file or bucket read added; fix round 1: keepNamespaceAliases runs before deriveNamespaceAliases, and repairNamespaceStatus stamps "pointing" on derived-shape rows of exact claims and kept names, over claims and rows already read;rev3=census-ruling-path-routes-across-boxes;basis=#186: path derivation moved to derivePaths and the route_paths write to writePaths (pathwrite.go); its own route_paths reads moved with them; unread claims now keep their path rows like regional rows; no read added here;rev3=census-ruling-catchall-stamp-now;basis=#1516: the agent's alias pass (user carlos, no root pass calls it) resets AliasReport.Unstamped and hands deriveInstanceAliases the report's nil-safe noteUnstamped method, which appends each name to it; Unstamped is an output only; same reads and writes, body change only
+- `internal/domains/aliases.go` `writeRegional`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-regional-domains-447;basis=#447 Task 4 (ruling 7): new, in the alias pass inside the agent: groups existing and desired regional_domains rows by claim apex and writes each changed claim's set through Registry.ReplaceRegionalSet (one transaction), keeps a set unchanged when its claim was listed but not read, deletes an undesired claim's set; a failure leaves that claim's rows as they were and marks the pass incomplete; registry writes only, no new read
+
+New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+
+- new `internal/domains/aliases.go:keptRegionalRows`: reads +registry:Host ×2, +whole:RegionalDomain ×6; written legacy, accepted-legacy, frozen
+- new `internal/host/aliaspass.go:aliasPassWith`: reads +whole:RegionalDomain, +whole:Route ×4; written legacy, accepted-legacy, frozen
+- new `internal/host/changeindex.go:aliasSources`: reads +registry:Host, +registry:Provisioned, +registry:Replica, +whole:Route ×2; written legacy, accepted-legacy, frozen
+- quiet `internal/host/agent.go:aliasPassReportingComplete`: reads nothing now; retired while it reads nothing (or its row keeps no sites)
+
+Seal: `af91f62a3bddb72188801f27302643b160b6a6fbdf312315490407fad1f901ac` → `ce9536904e10de3f5e5c582061f130f870515ae0999de2946658ea49e4a17bf8`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-alias-with-mint-1653.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/domains/aliases.go b/internal/domains/aliases.go
index 185cb243d..613b18ed9 100644
--- a/internal/domains/aliases.go
+++ b/internal/domains/aliases.go
@@ -346,11 +346,15 @@ type AliasReport struct {
// table is the box's own wildcard manager's source. Nil refuses nothing.
FleetRefused func(routes []registry.Route) map[string]string
// StartupNoRemoval is an INPUT, set by the caller before the pass, and
- // ONLY by the agent's startup HA ingress pass (runHAIngressStartup). The
- // pass derives and writes as usual, but removes nothing from
- // route_aliases, wildcard_domains or route_paths: each row it would have
- // removed is left as it is, and the pass is incomplete. The removal rules
- // themselves are unchanged; the next ordinary pass applies them.
+ // only by two of the agent's passes: the startup HA ingress pass
+ // (runHAIngressStartup), and the alias run of a scoped pass that gave
+ // the box a new route (aliasPassAdding, #1653), whose removals are left
+ // to the full passes. The pass derives and writes as usual, but removes
+ // nothing from route_aliases, wildcard_domains, route_paths,
+ // regional_domains or account_namespaces: each row it would have
+ // removed is left as it is, and the pass is incomplete.
+ // The removal rules themselves are unchanged; the next ordinary pass
+ // applies them.
//
// Why: removal is only safe on a pass that read every claim, and the
// startup pass runs under a short deadline with a cold claim cache, so
@@ -774,12 +778,13 @@ func ReconcileAliasesReport(ctx context.Context, s release.Store, reg *registry.
// (a failed GET, an unparseable body, a not-found) is kept exactly as
// it is, and the pass is incomplete. Reload judges a kept row again
// against the routes it serves (spec §7.3), so keeping it never binds a
- // target that has stopped qualifying.
+ // target that has stopped qualifying. A no-removal pass keeps every row
+ // it would have removed, as it keeps aliases (#1653, Astra R2).
unread := make(map[string]bool, len(dropped))
for _, d := range dropped {
unread[d.host] = true
}
- if writeRegional(reg, existingRegional, desiredRegional, unread) {
+ if writeRegional(reg, existingRegional, desiredRegional, unread, noRemoval) {
incomplete = true
}
@@ -924,7 +929,18 @@ func deriveRegional(c Claim, byHost map[string]registry.Route, boxRegion string,
// longer desired has its rows removed as a set, unless the claim (the
// apex) is in unread, in which case they are kept as they are. It reports
// whether the result is incomplete: a set write failed, or rows were kept.
-func writeRegional(reg *registry.Registry, existing []registry.RegionalDomain, desired map[string]registry.RegionalDomain, unread map[string]bool) (incomplete bool) {
+//
+// With noRemoval (AliasReport.StartupNoRemoval) it adds and updates only: a
+// claim no longer desired keeps its rows as they are, and a desired set is
+// written with any existing key it lacks kept beside it, each time leaving
+// the pass incomplete for the next ordinary pass to settle. This holds for
+// both passes that set the flag, the startup pass and a scoped pass's alias
+// run, because the flag's reason is the same for every table: removal is
+// safe only on a pass that read every claim, and neither can vouch for
+// that. A regional claim missing from the listing or pending, on a pass
+// that also failed elsewhere, would otherwise lose its binding here while
+// the box's last HA ingress projection still names it.
+func writeRegional(reg *registry.Registry, existing []registry.RegionalDomain, desired map[string]registry.RegionalDomain, unread map[string]bool, noRemoval bool) (incomplete bool) {
claimOf := func(key string) string { return strings.TrimPrefix(key, "*.") }
have := map[string][]registry.RegionalDomain{}
for _, d := range existing {
@@ -950,6 +966,16 @@ func writeRegional(reg *registry.Registry, existing []registry.RegionalDomain, d
incomplete = true // kept as they are: the claim was not read
continue
}
+ if noRemoval {
+ if !desiredHere {
+ incomplete = true // left for the next ordinary pass
+ continue
+ }
+ if kept := keptRegionalRows(have[c], rows); len(kept) > 0 {
+ rows = append(slices.Clip(rows), kept...)
+ incomplete = true // its dropped keys are left for the next ordinary pass
+ }
+ }
if regionalSetEqual(have[c], rows) {
continue // already the rows we want: no write
}
@@ -962,6 +988,18 @@ func writeRegional(reg *registry.Registry, existing []registry.RegionalDomain, d
return incomplete
}
+// keptRegionalRows is the rows of have whose key want lacks: what a
+// no-removal pass keeps beside a claim's desired set.
+func keptRegionalRows(have, want []registry.RegionalDomain) []registry.RegionalDomain {
+ var kept []registry.RegionalDomain
+ for _, h := range have {
+ if !slices.ContainsFunc(want, func(w registry.RegionalDomain) bool { return w.Host == h.Host }) {
+ kept = append(kept, h)
+ }
+ }
+ return kept
+}
+
// regionalSetEqual reports whether two sets of one claim's rows hold the
// same keys with the same target, account, app and region (created_at is
// not part of any decision).
diff --git a/internal/domains/regional_noremoval_test.go b/internal/domains/regional_noremoval_test.go
new file mode 100644
index 000000000..040cf493e
--- /dev/null
+++ b/internal/domains/regional_noremoval_test.go
@@ -0,0 +1,132 @@
+package domains
+
+import (
+ "context"
+ "encoding/json"
+ "sort"
+ "testing"
+
+ "github.com/carlosframework/platform/internal/registry"
+)
+
+// #1653, Astra R2: a no-removal pass adds and updates regional_domains but
+// removes nothing. A claim no longer desired keeps its set, and a desired set
+// keeps any key it lacks; either leaves the pass incomplete. Without the flag
+// both go.
+func TestWriteRegionalNoRemovalKeepsRows(t *testing.T) {
+ t.Parallel()
+ for _, noRemoval := range []bool{true, false} {
+ reg, err := registry.Open(t.TempDir() + "/registry.db")
+ if err != nil {
+ t.Fatal(err)
+ }
+ t.Cleanup(func() { reg.Close() })
+ row := func(host, target string) registry.RegionalDomain {
+ return registry.RegionalDomain{Host: host, Target: target, Account: "bab", App: "shop", Region: "uk", CreatedAt: 1}
+ }
+ existing := []registry.RegionalDomain{row("a.example", "a-uk.example.net"), row("*.a.example", "a-uk.example.net"),
+ row("b.example", "b-uk.example.net"), row("*.b.example", "b-uk.example.net")}
+ if err := reg.ReplaceRegionalSet("a.example", existing[:2]); err != nil {
+ t.Fatal(err)
+ }
+ if err := reg.ReplaceRegionalSet("b.example", existing[2:]); err != nil {
+ t.Fatal(err)
+ }
+ // a is gone from the claims; b is desired with a new target and
+ // without its star.
+ desired := map[string]registry.RegionalDomain{"b.example": row("b.example", "")}
+ incomplete := writeRegional(reg, existing, desired, nil, noRemoval)
+ got, err := reg.ListRegional()
+ if err != nil {
+ t.Fatal(err)
+ }
+ hosts := map[string]string{}
+ for _, d := range got {
+ hosts[d.Host] = d.Target
+ }
+ if noRemoval {
+ want := map[string]string{"a.example": "a-uk.example.net", "*.a.example": "a-uk.example.net", "b.example": "", "*.b.example": "b-uk.example.net"}
+ if !incomplete || len(hosts) != len(want) {
+ t.Fatalf("no-removal: incomplete=%v rows %v, want %v", incomplete, hosts, want)
+ }
+ for h, tg := range want {
+ if got, ok := hosts[h]; !ok || got != tg {
+ t.Fatalf("no-removal: rows %v, want %v", hosts, want)
+ }
+ }
+ continue
+ }
+ if incomplete || len(hosts) != 1 || hosts["b.example"] != "" {
+ t.Fatalf("ordinary: incomplete=%v rows %v, want b.example alone, denied", incomplete, hosts)
+ }
+ }
+}
+
+// A regional binding whose claim has left the listing, or been replaced by a
+// pending one,
+// on a pass that is incomplete for another reason too (an unreadable claim):
+// the no-removal pass keeps the binding and reports incomplete, and the
+// ordinary pass that follows removes it.
+func TestNoRemovalPassKeepsRegionalBinding(t *testing.T) {
+ t.Parallel()
+ for _, how := range []string{"missing", "pending"} {
+ t.Run(how, func(t *testing.T) {
+ t.Parallel()
+ e := newAliasEnv(t)
+ c := regionalClaim()
+ putRegional(t, e.store, c)
+ addRoute(t, e.reg, "other.example.com", "bab", "other")
+ putClaim(t, e.store, Claim{Host: "www.other.example.com", Account: "bab", App: "other", Route: "other.example.com"})
+ e.mustPass()
+ rows := func() []string {
+ got, err := e.reg.ListRegional()
+ if err != nil {
+ t.Fatal(err)
+ }
+ var hosts []string
+ for _, d := range got {
+ hosts = append(hosts, d.Host)
+ }
+ sort.Strings(hosts)
+ return hosts
+ }
+ before := rows()
+ if len(before) == 0 {
+ t.Fatal("setup: the regional claim derived no rows")
+ }
+ deleteClaim(t, e.store, c.Host)
+ if how == "pending" {
+ // The regional claim detached and an unproven attach took the
+ // name: the host's claim reads, and is pending (a schema-2
+ // regional claim cannot be: its body would not read at all).
+ body, err := json.Marshal(Claim{Schema: 1, Host: c.Host, Account: "bcd", App: "else", Pending: true,
+ PendingUntil: "2099-01-01T00:00:00Z"})
+ if err != nil {
+ t.Fatal(err)
+ }
+ putRawClaim(t, e.store, c.Host, string(body))
+ }
+ // Another claim's body stops reading: the pass is incomplete
+ // whatever the regional rows do.
+ deleteClaim(t, e.store, "www.other.example.com")
+ putRawClaim(t, e.store, "www.other.example.com", "{not json")
+
+ rep := AliasReport{Complete: true, StartupNoRemoval: true}
+ if err := ReconcileAliasesReport(context.Background(), e.store, e.reg, aliasNow(), known(), nil, &rep); err != nil {
+ t.Fatal(err)
+ }
+ if rep.Complete {
+ t.Fatal("a no-removal pass with an unreadable claim reported complete")
+ }
+ if got := rows(); len(got) != len(before) {
+ t.Fatalf("the no-removal pass removed regional rows: %v, was %v", got, before)
+ }
+ if _, err := e.pass(e.store, known(), nil); err != nil {
+ t.Fatal(err)
+ }
+ if got := rows(); len(got) != 0 {
+ t.Fatalf("the ordinary pass kept regional rows %v for a %s claim", got, how)
+ }
+ })
+ }
+}
diff --git a/internal/host/agent.go b/internal/host/agent.go
index 9af566614..b17568d23 100644
--- a/internal/host/agent.go
+++ b/internal/host/agent.go
@@ -1577,58 +1577,7 @@ func aliasPassReporting(ctx context.Context, store release.Store, reg *registry.
// it sets domains.AliasReport.StartupNoRemoval, so a pass that could not read
// every claim under the startup deadline never removes a row.
func aliasPassReportingComplete(ctx context.Context, store release.Store, reg *registry.Registry, cache *domains.ClaimCache, auth *assetAuthority, region string, startup bool) (bool, error) {
- for !aliasPassMu.TryLock() {
- select {
- case <-ctx.Done():
- return false, ctx.Err()
- case <-time.After(10 * time.Millisecond):
- }
- }
- defer aliasPassMu.Unlock()
- if err := ctx.Err(); err != nil {
- return false, err
- }
- start := auth.passBegin()
- defer auth.passEnd()
- // A door box (#966) does not fold: the door refuses a list of the
- // platform-root status/boxes/ (other tenants' snapshots), and a fleet
- // box publishes no edges file. The route set stays unknown, so the pass
- // reports incomplete exactly as the refused list did (ruling 966-b),
- // without the request or its log line.
- var deploymentRoutes map[string]bool
- routesWhole := false
- if doorFleet(os.Getenv) == "" {
- deploymentRoutes, routesWhole = edgesfile.DeploymentRoutesComplete(ctx, store, time.Now())
- }
- rep := domains.AliasReport{DeploymentRoutesPartial: deploymentRoutes != nil && !routesWhole, Region: region, StartupNoRemoval: startup}
- // The apps domain as domainsTickConfig reads it: account subdomains
- // (spec §4.4) derive <prefix>.<name>.<apps> from it, and none without it.
- rep.AppsDomain = strings.TrimSpace(os.Getenv("PLATFORM_APPS_DOMAIN"))
- if routes := boxHAIngress.routes.Load(); routes != nil {
- rep.HAIngressRoutes = *routes
- }
- // The edge's fleet-arm refusal (fleet public routes §4.4): a Wildcard
- // claim on a primary the edge refuses derives no wildcard parent. When
- // the fleets table cannot be read the pass does not run (incomplete),
- // so no row is written or retired on a guess.
- refused, err := fleetRefusedFor(reg, os.Getenv)
- if err != nil {
- auth.aliasPass(start, rep)
- boxHAIngress.publishRegional(nil, false)
- boxHAIngress.publishAliases(nil, false)
- return false, fmt.Errorf("alias pass: %w", err)
- }
- rep.FleetRefused = refused
- err = domains.ReconcileAliasesReport(ctx, store, reg, time.Now, deploymentRoutes, cache, &rep)
- if ctx.Err() != nil {
- err = errors.Join(err, ctx.Err())
- rep.Complete = false
- }
- auth.aliasPass(start, rep)
- watchUnstamped(rep.Unstamped, err == nil && rep.Complete, time.Now())
- boxHAIngress.publishRegional(rep.RegionalIngress, err == nil && rep.Complete)
- boxHAIngress.publishAliases(rep.AliasIngress, err == nil && rep.Complete)
- return rep.Complete && err == nil, err
+ return aliasPassWith(ctx, store, reg, cache, auth, region, aliasPassRules{noRemoval: startup})
}
// statusSocketProbe is the kernel-table probe the status loop hands
diff --git a/internal/host/aliaspass.go b/internal/host/aliaspass.go
new file mode 100644
index 000000000..c5293d0d8
--- /dev/null
+++ b/internal/host/aliaspass.go
@@ -0,0 +1,115 @@
+package host
+
+import (
+ "context"
+ "errors"
+ "fmt"
+ "os"
+ "strings"
+ "time"
+
+ "github.com/carlosframework/platform/internal/domains"
+ "github.com/carlosframework/platform/internal/edgesfile"
+ "github.com/carlosframework/platform/internal/registry"
+ "github.com/carlosframework/platform/internal/release"
+)
+
+// The alias pass's core, under the rules each caller runs it by (#1653).
+// aliasPassReporting and aliasPassReportingComplete (agent.go) are the
+// ordinary and startup passes; aliasPassAdding is the scoped pass's.
+
+// aliasPassAdding is the alias pass a scoped pass runs when its reconcile
+// gave this box a new route (#1653). It derives and writes, as any alias
+// pass does, but removes nothing: removal stays with the full pass, the
+// instances floor and the backstop, which read the same claims on their own
+// schedule. Without this, a scoped pass that met an unreadable claim body
+// would delete the aliases that claim derives, a second trigger for what an
+// ordinary pass already does.
+//
+// An incomplete run (a claim it could not read, or a row it would have
+// removed and left) leaves what the last alias pass published as it was:
+// the HA ingress projection is not marked unknown, and the domain confirmed
+// time does not move (assetAuthority.aliasPass ignores an incomplete
+// report). So an incomplete adding run publishes exactly what would stand
+// had it not run, and the next ordinary pass decides. A complete one
+// removed nothing because nothing was to be removed, so it is an ordinary
+// pass's answer and publishes as one.
+func aliasPassAdding(ctx context.Context, store release.Store, reg *registry.Registry, cache *domains.ClaimCache, auth *assetAuthority, region string) error {
+ _, err := aliasPassWith(ctx, store, reg, cache, auth, region, aliasPassRules{noRemoval: true, keepPublished: true})
+ return err
+}
+
+// aliasPassRules is how one alias pass may change what earlier passes left.
+type aliasPassRules struct {
+ // noRemoval sets domains.AliasReport.StartupNoRemoval, so the pass
+ // removes no route_aliases, wildcard_domains, route_paths,
+ // regional_domains or account namespace row, and is incomplete when it
+ // left one.
+ noRemoval bool
+ // keepPublished: an incomplete pass does not publish its HA ingress
+ // names (regional and alias), so the last pass's projection stands.
+ // Unset, an incomplete pass marks every name it held unknown.
+ keepPublished bool
+}
+
+// aliasPassWith is one alias pass under rules; aliasPassReportingComplete's
+// doc says what it does.
+func aliasPassWith(ctx context.Context, store release.Store, reg *registry.Registry, cache *domains.ClaimCache, auth *assetAuthority, region string, rules aliasPassRules) (bool, error) {
+ for !aliasPassMu.TryLock() {
+ select {
+ case <-ctx.Done():
+ return false, ctx.Err()
+ case <-time.After(10 * time.Millisecond):
+ }
+ }
+ defer aliasPassMu.Unlock()
+ if err := ctx.Err(); err != nil {
+ return false, err
+ }
+ start := auth.passBegin()
+ defer auth.passEnd()
+ // A door box (#966) does not fold: the door refuses a list of the
+ // platform-root status/boxes/ (other tenants' snapshots), and a fleet
+ // box publishes no edges file. The route set stays unknown, so the pass
+ // reports incomplete exactly as the refused list did (ruling 966-b),
+ // without the request or its log line.
+ var deploymentRoutes map[string]bool
+ routesWhole := false
+ if doorFleet(os.Getenv) == "" {
+ deploymentRoutes, routesWhole = edgesfile.DeploymentRoutesComplete(ctx, store, time.Now())
+ }
+ rep := domains.AliasReport{DeploymentRoutesPartial: deploymentRoutes != nil && !routesWhole, Region: region, StartupNoRemoval: rules.noRemoval}
+ // The apps domain as domainsTickConfig reads it: account subdomains
+ // (spec §4.4) derive <prefix>.<name>.<apps> from it, and none without it.
+ rep.AppsDomain = strings.TrimSpace(os.Getenv("PLATFORM_APPS_DOMAIN"))
+ if routes := boxHAIngress.routes.Load(); routes != nil {
+ rep.HAIngressRoutes = *routes
+ }
+ // The edge's fleet-arm refusal (fleet public routes §4.4): a Wildcard
+ // claim on a primary the edge refuses derives no wildcard parent. When
+ // the fleets table cannot be read the pass does not run (incomplete),
+ // so no row is written or retired on a guess.
+ refused, err := fleetRefusedFor(reg, os.Getenv)
+ if err != nil {
+ auth.aliasPass(start, rep)
+ if !rules.keepPublished {
+ boxHAIngress.publishRegional(nil, false)
+ boxHAIngress.publishAliases(nil, false)
+ }
+ return false, fmt.Errorf("alias pass: %w", err)
+ }
+ rep.FleetRefused = refused
+ err = domains.ReconcileAliasesReport(ctx, store, reg, time.Now, deploymentRoutes, cache, &rep)
+ if ctx.Err() != nil {
+ err = errors.Join(err, ctx.Err())
+ rep.Complete = false
+ }
+ auth.aliasPass(start, rep)
+ complete := err == nil && rep.Complete
+ watchUnstamped(rep.Unstamped, complete, time.Now())
+ if complete || !rules.keepPublished {
+ boxHAIngress.publishRegional(rep.RegionalIngress, complete)
+ boxHAIngress.publishAliases(rep.AliasIngress, complete)
+ }
+ return complete, err
+}
diff --git a/internal/host/changeindex.go b/internal/host/changeindex.go
index e0fe69125..c237a67d9 100644
--- a/internal/host/changeindex.go
+++ b/internal/host/changeindex.go
@@ -384,6 +384,40 @@ type passLegs struct {
firstRan atomic.Bool
}
+// aliasSources is the hosts of reg's rows an alias pass can derive a name
+// from: provisioned, not a sidecar, not a replica (deriveInstanceAliases'
+// own test). nil when the registry cannot be listed.
+func aliasSources(reg *registry.Registry) map[string]bool {
+ routes, err := reg.List()
+ if err != nil {
+ log.Printf("agent: fast converge: list routes for the alias leg: %v", err)
+ return nil
+ }
+ out := make(map[string]bool, len(routes))
+ for _, rt := range routes {
+ if rt.Provisioned && !rt.IsSidecar() && !rt.Replica {
+ out[rt.Host] = true
+ }
+ }
+ return out
+}
+
+// gainedAliasSource reports whether reg now holds an alias source that
+// before (aliasSources' answer from before a reconcile) did not: a route
+// minted, or adopted into Provisioned. A nil before, or a registry that
+// cannot be listed now, answers false, and the scoped pass stays as it was.
+func gainedAliasSource(before map[string]bool, reg *registry.Registry) bool {
+ if before == nil {
+ return false
+ }
+ for host := range aliasSources(reg) {
+ if !before[host] {
+ return true
+ }
+ }
+ return false
+}
+
// passAfterReconcileHook, when set, runs in every pass right after its
// reconcile leg. Tests only.
var passAfterReconcileHook func()
@@ -396,7 +430,11 @@ func (l *passLegs) full(ctx context.Context) { l.run(ctx, "serial pass stages",
// scoped is the pass an index-only change runs (spec §4.5, codex 10): the
// same legs, with build states, adopt and config sync restricted to the
// hosted routes whose app scope moved, and without the box-wide alias and
-// plans legs, so changing one app re-reads that app only. Reconcile and the moves pass
+// plans legs, so changing one app re-reads that app only. The one exception
+// is a scoped pass whose reconcile left this box a route the alias pass
+// derives from (gainedAliasSource): it runs the alias leg too, in its usual
+// place and removing nothing (aliasPassAdding), so a new instance's
+// catch-all name follows its route in the same pass (#1653). Reconcile and the moves pass
// run whole, over the record view. Telemetry resolves every hosted app (its
// sink takes a whole map), but its reads are gated on their own scopes
// (telemetryReads), so only the moved apps' files are read. Reconcile's
@@ -440,10 +478,21 @@ func (l *passLegs) run(ctx context.Context, what string, keep func(registry.Rout
// have their config before any other leg runs (#1653, confignew.go).
// A scoped pass delivers them too, whatever app they belong to.
before := l.hostsBefore()
+ // A scoped pass notes the routes the alias pass derives from before its
+ // reconcile, to know afterwards whether it minted or adopted one.
+ var sources map[string]bool
+ if keep != nil {
+ sources = aliasSources(l.reg)
+ }
if err := reconcileSerialized(ctx, store, l.reg, cfg); err != nil {
log.Printf("agent: fast converge reconcile: %v", err)
}
mark("reconcile")
+ aliases := keep == nil
+ if !aliases && gainedAliasSource(sources, l.reg) {
+ log.Printf("agent: fast converge: the scoped pass gave this box a new route; its alias leg runs too")
+ aliases = true
+ }
if hook := passAfterReconcileHook; hook != nil {
hook()
}
@@ -482,8 +531,18 @@ func (l *passLegs) run(ctx context.Context, what string, keep func(registry.Rout
nudgeDBReads()
// Aliases are box-wide (every domain claim, every edges file), so the
// scoped pass leaves them out: the serial-triggered full pass, the
- // instances floor and the backstop's full pass run them.
- if keep == nil {
+ // instances floor and the backstop's full pass run them. A scoped pass
+ // that gave this box a new route runs them as well (#1653): an instance
+ // create moves the change index before the console's serial bump lands,
+ // so the scoped pass mints the route, and the full pass the bump asks
+ // for waits out fastFullClamp behind it. The catch-all name (and any
+ // exact alias naming the route) used to wait for that full pass, ten to
+ // fifteen seconds after the route. It is the same leg and the same
+ // derivation rules, through the same writer, but it removes nothing
+ // (aliasPassAdding); the scoped pass shares the full pass's clamp, so it
+ // adds at most one alias pass per fastFullClamp, and only when a route
+ // arrived.
+ if aliases {
// The deployment's routes are folded once per pass
// (aliasPassReporting) and handed in, never re-read inside the
// loop: this leg runs on every serial bump (a seconds cadence),
@@ -495,7 +554,14 @@ func (l *passLegs) run(ctx context.Context, what string, keep func(registry.Rout
// the domain claims, not the record families, so they read the
// bucket. The pass's report feeds the box's domain confirmed time
// (edge asset cache design §4.2).
- if err := aliasPassReporting(ctx, store, l.reg, &aliasClaimCache, boxAssetAuthority, cfg.Region); err != nil {
+ pass := aliasPassReporting
+ if keep != nil {
+ // The scoped pass's run adds and never removes, and an
+ // incomplete one leaves the last pass's publication standing
+ // (aliasPassAdding): removal stays with the full passes.
+ pass = aliasPassAdding
+ }
+ if err := pass(ctx, store, l.reg, &aliasClaimCache, boxAssetAuthority, cfg.Region); err != nil {
log.Printf("agent: fast converge alias pass: %v", err)
}
mark("aliases")
diff --git a/internal/host/edgesfile_unread_claims_test.go b/internal/host/edgesfile_unread_claims_test.go
index c8d57afef..820d61730 100644
--- a/internal/host/edgesfile_unread_claims_test.go
+++ b/internal/host/edgesfile_unread_claims_test.go
@@ -158,7 +158,10 @@ func TestStartupAliasPassRemovesNothing(t *testing.T) {
// TestStartupUsesTheNoRemovalPass pins the wiring: runHAIngressStartup's
// alias pass has startup set, the ordinary pass does not, and the flag
-// reaches the report only through that parameter.
+// reaches the report only through aliasPassRules.noRemoval. The one other
+// no-removal pass is the scoped pass's adding run (aliasPassAdding, #1653),
+// which also keeps the last publication when incomplete, and only the
+// scoped pass runs it.
func TestStartupUsesTheNoRemovalPass(t *testing.T) {
src, err := readHostSource("haingress.go")
if err != nil {
@@ -173,9 +176,34 @@ func TestStartupUsesTheNoRemovalPass(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- if strings.Count(agent, "StartupNoRemoval: startup") != 1 || strings.Contains(agent, "StartupNoRemoval: true") ||
+ core, err := readHostSource("aliaspass.go")
+ if err != nil {
+ t.Fatal(err)
+ }
+ agent += core
+ if strings.Count(agent, "StartupNoRemoval:") != 1 || strings.Count(agent, "StartupNoRemoval: rules.noRemoval") != 1 ||
!strings.Contains(agent, "aliasPassReportingComplete(ctx, store, reg, cache, auth, region, false)") {
- t.Fatal("StartupNoRemoval must be set only through the startup parameter, and the ordinary pass must pass false")
+ t.Fatal("StartupNoRemoval must be set only through aliasPassRules.noRemoval, and the ordinary pass must pass false")
+ }
+ if strings.Count(agent, "aliasPassRules{") != 2 || strings.Count(agent, "aliasPassRules{noRemoval: startup}") != 1 ||
+ strings.Count(agent, "aliasPassRules{noRemoval: true, keepPublished: true}") != 1 {
+ t.Fatal("aliasPassRules must be built only by the startup/ordinary wrapper (noRemoval: startup) and aliasPassAdding")
+ }
+ ci, err := readHostSource("changeindex.go")
+ if err != nil {
+ t.Fatal(err)
+ }
+ at := strings.Index(ci, "pass = aliasPassAdding")
+ if at < 0 || strings.Count(ci, "pass = aliasPassAdding") != 1 {
+ t.Fatal("the scoped pass no longer runs aliasPassAdding")
+ }
+ guard := ci[:at]
+ guard = guard[strings.LastIndex(guard, "\n\t\tif "):]
+ if !strings.HasPrefix(guard, "\n\t\tif keep != nil {") || strings.Contains(guard, "}") {
+ t.Fatal("only the scoped pass (keep != nil) may run aliasPassAdding")
+ }
+ if strings.Count(agent, "aliasPassAdding(") != 1 || strings.Contains(src, "aliasPassAdding") {
+ t.Fatal("aliasPassAdding is the scoped pass's alone")
}
}
diff --git a/internal/host/group_names_test.go b/internal/host/group_names_test.go
index efdbd9e3f..1fac1c64f 100644
--- a/internal/host/group_names_test.go
+++ b/internal/host/group_names_test.go
@@ -500,6 +500,14 @@ func (p *haIngressProjection) publishAliases(names map[string]Route) { p.aliases
// an output the agent uses only to stamp them early
// (domains.StampHealthHosts). No name is minted, published or renamed.
//
+// A no-removal pass keeps regional rows too (#1653, Astra round 2), within
+// the existing name classes:
+// - ReconcileAliasesReport hands StartupNoRemoval to writeRegional, which
+// then adds and updates regional_domains rows but removes none: a kept
+// row is one an earlier pass derived from a regional claim, and Reload
+// judges it again against the routes it serves (spec §7.3). No name is
+// minted, published or renamed; the next ordinary pass removes it.
+//
// TestHAIngressNamesWithoutLocalRow, TestHAIngressAliasBinding and
// TestHAIngressStartupNames exercise these existing name classes end to end.
var groupNameProducerInventory = map[string]string{
@@ -513,7 +521,7 @@ var groupNameProducerInventory = map[string]string{
"../provision/demo_claim_seed.go:abortDemoClaimSeed": "e010b4e6b026a0744b7eacf6ffdb09647de6e1541e33ce73e71e7c99964a9f7a",
// Path routes across boxes (#186): paths derived by derivePaths on every
// box, written by writePaths; an unread claim's rows are kept (above).
- "../domains/aliases.go:ReconcileAliasesReport": "62be26c027c4d37704783c965dedb8f2e6dff7256d0bce9ae79471b2a6f6f373",
+ "../domains/aliases.go:ReconcileAliasesReport": "ae6dc23dafea538d7b1ad6cd65ffdffde3031ac2e8185f5fd06dfd0b322b07d7",
// Path routes across boxes (#186): route_paths rows for every path-routed
// claim host, local or not, keyed by its exact host; no new name class.
"../domains/aliases.go:derivePaths": "b8ee17573968b7e38090747092e26cfb365aa7c91dcc6a6de122e6c1706bd37f",
diff --git a/internal/host/scopedalias_test.go b/internal/host/scopedalias_test.go
new file mode 100644
index 000000000..bc5e80a8f
--- /dev/null
+++ b/internal/host/scopedalias_test.go
@@ -0,0 +1,265 @@
+package host
+
+import (
+ "context"
+ "encoding/json"
+ "strings"
+ "testing"
+ "time"
+
+ "github.com/carlosframework/platform/internal/appconfig"
+ "github.com/carlosframework/platform/internal/domains"
+ "github.com/carlosframework/platform/internal/provision"
+ "github.com/carlosframework/platform/internal/registry"
+)
+
+// #1653: an instance create moves the change index before the console's
+// serial bump lands, so the scoped pass mints the route and the full pass
+// waits out fastFullClamp behind it. The scoped pass that minted the route
+// derives its instance catch-all name in the same pass, and hands it to the
+// early stamp; a scoped pass that minted nothing reads no claim and no edges
+// file, as before.
+func TestScopedPassDerivesCatchallNameForMintedRoute(t *testing.T) {
+ w := newCIWorld(t)
+ armView(t, w.live)
+ rcfg := ciReconcileConfig(t)
+ reg := restartTestRegistry(t)
+ legs := &passLegs{store: w.live, reg: reg, optDir: t.TempDir(), dd: t.TempDir(),
+ cfg: func() provision.ReconcileConfig { return rcfg }}
+ ctx := context.Background()
+ for _, c := range []domains.Claim{
+ {Schema: 1, Host: "patrix.site", Account: w.acct, App: "shop"},
+ {Schema: 1, Host: "*.patrix.site", Account: w.acct, App: "shop", Instances: true},
+ } {
+ b, err := json.Marshal(c)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if _, err := w.live.Put(ctx, domains.ClaimKey(c.Host), b, ""); err != nil {
+ t.Fatal(err)
+ }
+ }
+ t.Cleanup(func() { domainStampWatch.settled([]string{"shop.patrix.site", "relcheck.patrix.site"}) })
+ legs.full(ctx)
+ if a := aliasNamed(t, reg, "shop.patrix.site"); a == nil || a.Host != "shop.example.com" {
+ t.Fatalf("fixture: the full pass derived %+v for shop", a)
+ }
+
+ // The create: the record lands and moves shop's scope; the serial has
+ // not moved yet, so the tick runs the scoped pass.
+ w.record(t, "shop", "relcheck.example.com")
+ w.live.reset()
+ legs.scoped(ctx, []string{w.scope("shop")})
+ if rt, err := reg.Get("relcheck.example.com"); err != nil || rt == nil || !rt.Provisioned {
+ t.Fatalf("the scoped pass did not mint the new route: %+v %v", rt, err)
+ }
+ a := aliasNamed(t, reg, "relcheck.patrix.site")
+ if a == nil || a.Host != "relcheck.example.com" || a.Account != w.acct || a.App != "shop" {
+ t.Fatalf("the scoped pass that minted relcheck derived %+v, want relcheck.patrix.site on its route", a)
+ }
+ if a.DNSCheckedAt != 0 {
+ t.Fatalf("fixture: the new name was stamped already: %+v", a)
+ }
+ domainStampWatch.mu.Lock()
+ _, watched := domainStampWatch.since["relcheck.patrix.site"]
+ domainStampWatch.mu.Unlock()
+ if !watched {
+ t.Fatal("the new name was not handed to the early stamp")
+ }
+ if n := w.live.count("ListMod", "domains/"); n == 0 {
+ t.Fatalf("the alias leg did not run in the scoped pass: %v", w.live.got())
+ }
+
+ // A scoped pass that mints nothing keeps out of the box-wide legs.
+ if err := appconfig.SetEnv(ctx, w.live, w.acct, "shop", map[string]string{"APP": "shop2"}); err != nil {
+ t.Fatal(err)
+ }
+ w.live.reset()
+ legs.scoped(ctx, []string{w.scope("shop")})
+ for _, c := range w.live.got() {
+ if _, key, _ := strings.Cut(c, " "); strings.HasPrefix(key, "domains/") || strings.HasPrefix(key, "control/edges") {
+ t.Fatalf("a scoped pass that minted nothing ran the alias leg: read %s", c)
+ }
+ }
+}
+
+// Astra's round 1 on #1653: the scoped pass's alias run adds and never
+// removes. With a parent claim's body unreadable, an ordinary pass deletes
+// the instance names that parent lends (it is incomplete, and removes
+// anyway); the scoped pass that gained a route still derives the new name,
+// leaves those names alone, keeps a regional binding whose claim left the
+// listing (Astra's round 2), and leaves the HA ingress projection and the
+// domain confirmed time as the last pass left them.
+func TestScopedPassAliasRunRemovesNothing(t *testing.T) {
+ w := newCIWorld(t)
+ armView(t, w.live)
+ rcfg := ciReconcileConfig(t)
+ reg := restartTestRegistry(t)
+ legs := &passLegs{store: w.live, reg: reg, optDir: t.TempDir(), dd: t.TempDir(),
+ cfg: func() provision.ReconcileConfig { return rcfg }}
+ ctx := context.Background()
+ put := func(key string, body []byte) {
+ t.Helper()
+ if _, err := w.live.Put(ctx, key, body, ""); err != nil {
+ t.Fatal(err)
+ }
+ }
+ for _, c := range []domains.Claim{
+ {Schema: 1, Host: "patrix.site", Account: w.acct, App: "shop"},
+ {Schema: 1, Host: "*.patrix.site", Account: w.acct, App: "shop", Instances: true},
+ {Schema: 1, Host: "cafe.site", Account: w.acct, App: "cafe"},
+ {Schema: 1, Host: "*.cafe.site", Account: w.acct, App: "cafe", Instances: true},
+ } {
+ b, err := json.Marshal(c)
+ if err != nil {
+ t.Fatal(err)
+ }
+ put(domains.ClaimKey(c.Host), b)
+ }
+ // A regional claim (#447) bound to shop's route in this box's region
+ // (""): its regional_domains row is the binding Astra's round 2 found
+ // the adding run could drop.
+ regional := domains.Claim{Schema: 2, Host: "shop.regional.test", Account: w.acct, App: "shop",
+ Route: "shop.example.com", CreatedAt: "2026-10-29T00:00:00Z", CreatedBy: "owner@example.com",
+ Placements: []domains.Placement{{Region: "", Host: "shop.example.com"}}}
+ if changed, err := domains.SetClaimPlacements(ctx, w.live, regional, nil, ""); err != nil || !changed {
+ t.Fatalf("fixture: regional claim: changed=%v err=%v", changed, err)
+ }
+ t.Cleanup(func() {
+ domainStampWatch.settled([]string{"shop.patrix.site", "cafe.cafe.site", "relcheck.patrix.site"})
+ })
+ legs.full(ctx)
+ regionalRows := func() int {
+ t.Helper()
+ rows, err := reg.ListRegional()
+ if err != nil {
+ t.Fatal(err)
+ }
+ n := 0
+ for _, r := range rows {
+ if r.Host == "shop.regional.test" {
+ n++
+ }
+ }
+ return n
+ }
+ if regionalRows() != 1 {
+ t.Fatal("fixture: the full pass derived no regional binding")
+ }
+ for name, host := range map[string]string{"shop.patrix.site": "shop.example.com", "cafe.cafe.site": "cafe.example.com"} {
+ if a := aliasNamed(t, reg, name); a == nil || a.Host != host {
+ t.Fatalf("fixture: the full pass derived %+v for %s", a, name)
+ }
+ }
+
+ // The cafe parent's body stops reading; the scoped pass's run must not
+ // take that for the parent having gone.
+ _, etag, err := w.live.Get(ctx, domains.ClaimKey("cafe.site"))
+ if err != nil {
+ t.Fatal(err)
+ }
+ if _, err := w.live.Put(ctx, domains.ClaimKey("cafe.site"), []byte("{not json"), etag); err != nil {
+ t.Fatal(err)
+ }
+ // And the regional claim leaves the listing.
+ if err := w.live.Delete(ctx, domains.ClaimKey("shop.regional.test")); err != nil {
+ t.Fatal(err)
+ }
+ oldAliases, oldRegional := boxHAIngress.aliases.Load(), boxHAIngress.regional.Load()
+ t.Cleanup(func() {
+ boxHAIngress.aliases.Store(oldAliases)
+ boxHAIngress.regional.Store(oldRegional)
+ })
+ published := map[string]registry.Route{"ha.cafe.site": {Host: "cafe.example.com", Account: w.acct, App: "cafe"}}
+ publishedRegional := map[string]registry.RegionalDomain{"eu.cafe.site": {Host: "eu.cafe.site", Target: "cafe.example.com"}}
+ boxHAIngress.aliases.Store(&published)
+ boxHAIngress.regional.Store(&publishedRegional)
+ domainAt := func() (time.Time, bool) {
+ boxAssetAuthority.mu.Lock()
+ defer boxAssetAuthority.mu.Unlock()
+ return boxAssetAuthority.domain, boxAssetAuthority.domainOK
+ }
+ beforeAt, beforeOK := domainAt()
+
+ w.record(t, "shop", "relcheck.example.com")
+ legs.scoped(ctx, []string{w.scope("shop")})
+ if a := aliasNamed(t, reg, "relcheck.patrix.site"); a == nil || a.Host != "relcheck.example.com" {
+ t.Fatalf("the scoped pass did not derive the new name: %+v", a)
+ }
+ if a := aliasNamed(t, reg, "cafe.cafe.site"); a == nil || a.Host != "cafe.example.com" {
+ t.Fatalf("the scoped pass removed cafe.cafe.site over an unreadable parent claim: %+v", a)
+ }
+ if a := aliasNamed(t, reg, "shop.patrix.site"); a == nil {
+ t.Fatal("the scoped pass removed shop.patrix.site")
+ }
+ if regionalRows() != 1 {
+ t.Fatal("the scoped pass removed a regional binding whose claim left the listing")
+ }
+ if got := boxHAIngress.aliases.Load(); got != &published {
+ t.Fatalf("an incomplete scoped alias run republished the HA ingress aliases: %v", *got)
+ }
+ if got := boxHAIngress.regional.Load(); got != &publishedRegional {
+ t.Fatalf("an incomplete scoped alias run republished the HA ingress regional names: %v", *got)
+ }
+ if at, ok := domainAt(); at != beforeAt || ok != beforeOK {
+ t.Fatalf("an incomplete scoped alias run moved the domain confirmed time: %v %v, was %v %v", at, ok, beforeAt, beforeOK)
+ }
+
+ // The ordinary pass, for contrast: the removal this run held back.
+ legs.full(ctx)
+ if a := aliasNamed(t, reg, "cafe.cafe.site"); a != nil {
+ t.Fatalf("fixture: the full pass kept %+v; the scoped pass's restraint is untested", a)
+ }
+ if regionalRows() != 0 {
+ t.Fatal("fixture: the full pass kept the regional binding; the scoped pass's restraint is untested")
+ }
+}
+
+// Only a row the alias pass derives from counts as gained: a sidecar, a
+// replica or an unprovisioned row does not, and neither does a registry
+// that could not be listed before the reconcile.
+func TestGainedAliasSource(t *testing.T) {
+ t.Parallel()
+ reg := restartTestRegistry(t)
+ put := func(rt registry.Route) {
+ t.Helper()
+ if err := reg.Upsert(rt); err != nil {
+ t.Fatal(err)
+ }
+ }
+ put(registry.Route{Host: "a.example.com", Kind: "service", Addr: "127.0.0.1:1", Provisioned: true})
+ before := aliasSources(reg)
+ if len(before) != 1 || !before["a.example.com"] {
+ t.Fatalf("aliasSources = %v, want a.example.com alone", before)
+ }
+ if gainedAliasSource(before, reg) {
+ t.Fatal("gained a source with nothing new")
+ }
+ put(registry.Route{Host: "hand.example.com", Kind: "service", Addr: "127.0.0.1:2"})
+ put(registry.Route{Host: "rep.example.com", Kind: "service", Addr: "127.0.0.1:3", Provisioned: true, Replica: true})
+ put(registry.Route{Host: "side.example.com", Kind: "sidecar", Provisioned: true})
+ if gainedAliasSource(before, reg) {
+ t.Fatalf("a hand-added, replica or sidecar row counted as a source: %v", aliasSources(reg))
+ }
+ if gainedAliasSource(nil, reg) {
+ t.Fatal("an unknown before counted as gained")
+ }
+ put(registry.Route{Host: "new.example.com", Kind: "service", Addr: "127.0.0.1:4", Provisioned: true})
+ if !gainedAliasSource(before, reg) {
+ t.Fatal("a minted route was not a gained source")
+ }
+}
+
+func aliasNamed(t *testing.T, reg *registry.Registry, name string) *registry.RouteAlias {
+ t.Helper()
+ aliases, err := reg.ListAliases()
+ if err != nil {
+ t.Fatal(err)
+ }
+ for i := range aliases {
+ if aliases[i].Alias == name {
+ return &aliases[i]
+ }
+ }
+ return nil
+}
diff --git a/internal/provision/testdata/plan14-root-reads-alias-with-mint-1653.tsv b/internal/provision/testdata/plan14-root-reads-alias-with-mint-1653.tsv
new file mode 100644
index 000000000..8aa5ab69d
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-alias-with-mint-1653.tsv
@@ -0,0 +1,17 @@
+# Census overlay alias-with-mint-1653, written by census-propose (#369). census-ruling-alias-with-mint-1653, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-alias-with-mint-1653.md.
+# 1 body, 1 sites, 2 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 4 new dispositions: 0 reads re-frozen at their disposition with the claim, 3 new units frozen accepted-legacy, 1 quiet units retired while they read nothing, 0 other.
+@legacy 9564c30040054c0a7d83ccd293b979b1f95e63cdfb711db75f422fa3117055cd internal/domains/aliases.go ReconcileAliasesReport legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-asset-cache-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), in its alias pass (aliasPassReporting in runAgent; ReconcileAliases, now a wrapper, is its other caller): main's ReconcileAliases body, moved here with the same reads and writes, plus a completeness report (AliasReport) set false at every point that already logged a failure and carried on, and when relevantDropped names a listed claim the pass could not rule out; the box's asset authority clock advances only after a complete pass; one more whole:Route and whole:RouteAlias site each, the routes and alias rows the pass already read handed to relevantDropped; no registry, file or bucket read added; no root pass calls it; no root decision;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: in the alias pass inside the agent: reads the existing regional_domains rows (reg.ListRegional) beside the alias rows, derives a regional claim's rows through deriveRegional for AliasReport.Region (the caller's ReconcileConfig.Region, set by aliasPassReporting) and its wildcard parent when bound, skipping the alias, paths and catch-all halves for it, writes them through writeRegional, and keeps an unread regional claim's wildcard parent while the kept apex row still binds a target RegionalTarget accepts on the routes this pass read (same account and app, per-box cap); claims are read as before (the listing and per-claim GETs it already does); the added reads are the registry's regional rows and fields of rows the pass already holds;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 6 fix rounds 2-3: AliasReport.FleetRefused (edge.FleetArmVerdict's refused set) is called once on the pass's own listing; a Wildcard claim whose primary is fleet-refused derives no wildcard_domains row (an earlier one goes with the ordinary removal); the catch-all alias is derived as before (+registry:Host, +whole:Route). Rows already read; writes less, never more; no root pass calls it.;rev3=census-ruling-region-ha-g2-fixes;basis=Project accepted regional exact/catchall names and plain/delegated aliases into routing-only reports using existing claims and pre-pool metadata; new whole Route/RegionalDomain uses, no new external reader.;rev3=census-ruling-fix-incomplete-domains-pass;basis=adds AliasReport.StartupNoRemoval, an input set only by the agent startup HA ingress pass (host startupAliasPass via runHAIngressStartup): when set, the pass skips the route_aliases, wildcard_domains and route_paths removals (each skipped removal marks the pass incomplete) and the removal rules themselves are unchanged; derivations, refusals and writes are unchanged; same read sites (body change only); no new registry, file or bucket read; deletes less, never more, and only on the startup pass; no root pass calls it; no root decision;rev3=census-ruling-account-subdomains;basis=with AliasReport.AppsDomain set, reads the box's own account_namespaces table (reg.ListAccountNamespaces), sorts a listed-but-unread namespace claim (ParseNamespaceHost on the dropped host): a not-found body keeps nothing and is not counted by relevantDropped, any other failure keeps that name's recorded rows; runs deriveNamespaceAliases after deriveInstanceAliases on the routes, alias rows and claims it already read (AccountNamespaces over the read claims), keepNamespaceAliases for unread names, and writes the table through writeAccountNamespaces (once, only when it differs; no shrink under StartupNoRemoval); the added sites are the routes and alias rows already read handed to those helpers; no file or bucket read added; fix round 1: keepNamespaceAliases runs before deriveNamespaceAliases, and repairNamespaceStatus stamps "pointing" on derived-shape rows of exact claims and kept names, over claims and rows already read;rev3=census-ruling-path-routes-across-boxes;basis=#186: path derivation moved to derivePaths and the route_paths write to writePaths (pathwrite.go); its own route_paths reads moved with them; unread claims now keep their path rows like regional rows; no read added here;rev3=census-ruling-catchall-stamp-now;basis=#1516: the agent's alias pass (user carlos, no root pass calls it) resets AliasReport.Unstamped and hands deriveInstanceAliases the report's nil-safe noteUnstamped method, which appends each name to it; Unstamped is an output only; same reads and writes, body change only;rev3=census-ruling-alias-with-mint-1653;basis=passes noRemoval (StartupNoRemoval) to writeRegional, so a no-removal pass (startup, or a scoped pass alias run) keeps regional_domains rows it would have removed, as it already kept aliases, wildcards, paths and account namespaces; comment updates; no read added; deletes less, never more, and only on a no-removal pass (#1653, Astra R2) registry:Account@15118,registry:Account@15133,registry:Account@15251,registry:Account@15603,registry:Account@15616,registry:Alias@13001,registry:Alias@13134,registry:Alias@13204,registry:App@15146,registry:App@15157,registry:App@15264,registry:App@15629,registry:App@15638,registry:App@5204,registry:App@5400,registry:App@8746,registry:App@8946,registry:App@9102,registry:App@9303,registry:Host@14928,registry:Host@15003,registry:Host@15026,registry:Host@15078,registry:Host@15412,registry:Host@15484,registry:Host@15588,registry:Host@15899,registry:Host@16045,registry:Host@16117,registry:Host@856,registry:Host@9669,registry:Region@15273,registry:Target@15098,registry:Target@15203,whole:RegionalDomain@13881,whole:RegionalDomain@13899,whole:RegionalDomain@14856,whole:RegionalDomain@14894,whole:RegionalDomain@14915,whole:RegionalDomain@14938,whole:RegionalDomain@15065,whole:RegionalDomain@276,whole:RegionalDomain@3655,whole:RegionalDomain@3856,whole:Route@10551,whole:Route@1067,whole:Route@11676,whole:Route@11684,whole:Route@12534,whole:Route@12624,whole:Route@12632,whole:Route@15196,whole:Route@15247,whole:Route@2273,whole:Route@337,whole:Route@3837,whole:Route@4256,whole:Route@4547,whole:Route@5244,whole:Route@5395,whole:Route@5451,whole:Route@7493,whole:Route@809,whole:Route@838,whole:Route@849,whole:Route@867,whole:Route@8715,whole:Route@8790,whole:Route@8937,whole:Route@8999,whole:Route@9142,whole:Route@9298,whole:RouteAlias@11692,whole:RouteAlias@12516,whole:RouteAlias@12640,whole:RouteAlias@12795,whole:RouteAlias@12976,whole:RouteAlias@2281,whole:WildcardDomain@14962,whole:WildcardDomain@14991,whole:WildcardDomain@15472,whole:WildcardDomain@15494,whole:WildcardDomain@15518,whole:WildcardDomain@15567,whole:WildcardDomain@15730,whole:WildcardDomain@15858,whole:WildcardDomain@15887,whole:WildcardDomain@4070,whole:WildcardDomain@9865 bebe1570490c8eb4e5bcc02ad2e3910162f5ac0ba38a762e5f269290b19ede34
+@legacy e3cdb84f64a92c00316b5109c53678f832ef76fc39bdb4adb2c789231d626ad1 internal/domains/aliases.go keptRegionalRows legacy accepted-legacy accepted-legacy;rev3=census-ruling-alias-with-mint-1653;basis=new: pure helper over rows writeRegional already holds: the existing rows of one claim whose key the desired set lacks; no registry, file or bucket read registry:Host@228,registry:Host@238,whole:RegionalDomain@143,whole:RegionalDomain@176,whole:RegionalDomain@253,whole:RegionalDomain@267,whole:RegionalDomain@273,whole:RegionalDomain@291 95e34fc49b50775a02e7c8da3af60051d75a15b7bb82589a74ad54fdcb08339b
+@legacy 05f39ea764b5f685cfbd694096a6ea25af81feebd8614fc21cb27ac6ce058383 internal/host/aliaspass.go aliasPassWith legacy accepted-legacy accepted-legacy;rev3=census-ruling-alias-with-mint-1653;basis=new: the body of aliasPassReportingComplete (agent.go) moved to this new file with the same reads (fleets table, deployment route fold, ReconcileAliasesReport over the same store, registry and claim cache), not byte for byte: it takes aliasPassRules and names the completeness once (complete); noRemoval sets AliasReport.StartupNoRemoval (startup pass and the scoped pass run), which since Astra R2 also keeps regional_domains rows; keepPublished skips the HA ingress publishRegional/publishAliases when the pass is incomplete so the last projection stands. No read added; removal only ever narrowed (#1653, Astra R1 and R2) whole:RegionalDomain@2370,whole:Route@1382,whole:Route@1404,whole:Route@1423,whole:Route@2431 e36c537b889b1537592db40a361edc01a9a6d94aa296c613679cb3fb9bbaf11d
+@legacy a414b2083d26ffa88197e5a678f5d033d45471f79c42ed55f7ea69a5987d1ff9 internal/host/changeindex.go aliasSources legacy accepted-legacy accepted-legacy;rev3=census-ruling-alias-with-mint-1653;basis=new: lists the box registry (reg.List, the local SQLite routes table root already reads in every pass) and keeps the hosts of rows that are Provisioned, not sidecars and not replicas; read before and after the scoped pass reconcile only to decide whether that pass runs the alias leg too (aliasPassAdding). No new bucket, path or tenant input is opened; nothing is written; a list error returns nil and the scoped pass stays as before (#1653) registry:Host@332,registry:Provisioned@274,registry:Replica@312,whole:Route@231,whole:Route@260 4dc622abab6866a75def00825ce0176fd478f3ec82b5863f87b65cd5f8743090
+@legacy f5119961f7702007266a0902504e2471c72a984bf43c97edd502f7ed80ced0f0 internal/domains/aliases.go writeRegional legacy accepted-legacy accepted-legacy;rev3=census-ruling-regional-domains-447;basis=#447 Task 4 (ruling 7): new, in the alias pass inside the agent: groups existing and desired regional_domains rows by claim apex and writes each changed claim's set through Registry.ReplaceRegionalSet (one transaction), keeps a set unchanged when its claim was listed but not read, deletes an undesired claim's set; a failure leaves that claim's rows as they were and marks the pass incomplete; registry writes only, no new read;rev3=census-ruling-alias-with-mint-1653;basis=takes noRemoval: when set, a claim no longer desired keeps its set and a desired set is written with any existing key it lacks kept beside it (keptRegionalRows), each marking the pass incomplete; ordinary passes unchanged; registry writes only, no new read; deletes less, never more (#1653, Astra R2) registry:Host@1378,registry:Host@1393,registry:Host@353,registry:Host@384,registry:Host@492,registry:Host@523,whole:RegionalDomain@1072,whole:RegionalDomain@1081,whole:RegionalDomain@1092,whole:RegionalDomain@1108,whole:RegionalDomain@1134,whole:RegionalDomain@1141,whole:RegionalDomain@1259,whole:RegionalDomain@1268,whole:RegionalDomain@1343,whole:RegionalDomain@1378,whole:RegionalDomain@1393,whole:RegionalDomain@1447,whole:RegionalDomain@1566,whole:RegionalDomain@327,whole:RegionalDomain@340,whole:RegionalDomain@371,whole:RegionalDomain@394,whole:RegionalDomain@467,whole:RegionalDomain@479,whole:RegionalDomain@510,whole:RegionalDomain@533,whole:RegionalDomain@572,whole:RegionalDomain@582,whole:RegionalDomain@605,whole:RegionalDomain@660,whole:RegionalDomain@681,whole:RegionalDomain@806 70d11cd221743e9e19fb1a2f82ca90b7da1fcc500a0e50d50cba9cce282e7ed3
+internal/domains/aliases.go ReconcileAliasesReport legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-asset-cache-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), in its alias pass (aliasPassReporting in runAgent; ReconcileAliases, now a wrapper, is its other caller): main's ReconcileAliases body, moved here with the same reads and writes, plus a completeness report (AliasReport) set false at every point that already logged a failure and carried on, and when relevantDropped names a listed claim the pass could not rule out; the box's asset authority clock advances only after a complete pass; one more whole:Route and whole:RouteAlias site each, the routes and alias rows the pass already read handed to relevantDropped; no registry, file or bucket read added; no root pass calls it; no root decision;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: in the alias pass inside the agent: reads the existing regional_domains rows (reg.ListRegional) beside the alias rows, derives a regional claim's rows through deriveRegional for AliasReport.Region (the caller's ReconcileConfig.Region, set by aliasPassReporting) and its wildcard parent when bound, skipping the alias, paths and catch-all halves for it, writes them through writeRegional, and keeps an unread regional claim's wildcard parent while the kept apex row still binds a target RegionalTarget accepts on the routes this pass read (same account and app, per-box cap); claims are read as before (the listing and per-claim GETs it already does); the added reads are the registry's regional rows and fields of rows the pass already holds;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 6 fix rounds 2-3: AliasReport.FleetRefused (edge.FleetArmVerdict's refused set) is called once on the pass's own listing; a Wildcard claim whose primary is fleet-refused derives no wildcard_domains row (an earlier one goes with the ordinary removal); the catch-all alias is derived as before (+registry:Host, +whole:Route). Rows already read; writes less, never more; no root pass calls it.;rev3=census-ruling-region-ha-g2-fixes;basis=Project accepted regional exact/catchall names and plain/delegated aliases into routing-only reports using existing claims and pre-pool metadata; new whole Route/RegionalDomain uses, no new external reader.;rev3=census-ruling-fix-incomplete-domains-pass;basis=adds AliasReport.StartupNoRemoval, an input set only by the agent startup HA ingress pass (host startupAliasPass via runHAIngressStartup): when set, the pass skips the route_aliases, wildcard_domains and route_paths removals (each skipped removal marks the pass incomplete) and the removal rules themselves are unchanged; derivations, refusals and writes are unchanged; same read sites (body change only); no new registry, file or bucket read; deletes less, never more, and only on the startup pass; no root pass calls it; no root decision;rev3=census-ruling-account-subdomains;basis=with AliasReport.AppsDomain set, reads the box's own account_namespaces table (reg.ListAccountNamespaces), sorts a listed-but-unread namespace claim (ParseNamespaceHost on the dropped host): a not-found body keeps nothing and is not counted by relevantDropped, any other failure keeps that name's recorded rows; runs deriveNamespaceAliases after deriveInstanceAliases on the routes, alias rows and claims it already read (AccountNamespaces over the read claims), keepNamespaceAliases for unread names, and writes the table through writeAccountNamespaces (once, only when it differs; no shrink under StartupNoRemoval); the added sites are the routes and alias rows already read handed to those helpers; no file or bucket read added; fix round 1: keepNamespaceAliases runs before deriveNamespaceAliases, and repairNamespaceStatus stamps "pointing" on derived-shape rows of exact claims and kept names, over claims and rows already read;rev3=census-ruling-path-routes-across-boxes;basis=#186: path derivation moved to derivePaths and the route_paths write to writePaths (pathwrite.go); its own route_paths reads moved with them; unread claims now keep their path rows like regional rows; no read added here;rev3=census-ruling-catchall-stamp-now;basis=#1516: the agent's alias pass (user carlos, no root pass calls it) resets AliasReport.Unstamped and hands deriveInstanceAliases the report's nil-safe noteUnstamped method, which appends each name to it; Unstamped is an output only; same reads and writes, body change only;rev3=census-ruling-alias-with-mint-1653;basis=passes noRemoval (StartupNoRemoval) to writeRegional, so a no-removal pass (startup, or a scoped pass alias run) keeps regional_domains rows it would have removed, as it already kept aliases, wildcards, paths and account namespaces; comment updates; no read added; deletes less, never more, and only on a no-removal pass (#1653, Astra R2) registry:Account@15118,registry:Account@15133,registry:Account@15251,registry:Account@15603,registry:Account@15616,registry:Alias@13001,registry:Alias@13134,registry:Alias@13204,registry:App@15146,registry:App@15157,registry:App@15264,registry:App@15629,registry:App@15638,registry:App@5204,registry:App@5400,registry:App@8746,registry:App@8946,registry:App@9102,registry:App@9303,registry:Host@14928,registry:Host@15003,registry:Host@15026,registry:Host@15078,registry:Host@15412,registry:Host@15484,registry:Host@15588,registry:Host@15899,registry:Host@16045,registry:Host@16117,registry:Host@856,registry:Host@9669,registry:Region@15273,registry:Target@15098,registry:Target@15203,whole:RegionalDomain@13881,whole:RegionalDomain@13899,whole:RegionalDomain@14856,whole:RegionalDomain@14894,whole:RegionalDomain@14915,whole:RegionalDomain@14938,whole:RegionalDomain@15065,whole:RegionalDomain@276,whole:RegionalDomain@3655,whole:RegionalDomain@3856,whole:Route@10551,whole:Route@1067,whole:Route@11676,whole:Route@11684,whole:Route@12534,whole:Route@12624,whole:Route@12632,whole:Route@15196,whole:Route@15247,whole:Route@2273,whole:Route@337,whole:Route@3837,whole:Route@4256,whole:Route@4547,whole:Route@5244,whole:Route@5395,whole:Route@5451,whole:Route@7493,whole:Route@809,whole:Route@838,whole:Route@849,whole:Route@867,whole:Route@8715,whole:Route@8790,whole:Route@8937,whole:Route@8999,whole:Route@9142,whole:Route@9298,whole:RouteAlias@11692,whole:RouteAlias@12516,whole:RouteAlias@12640,whole:RouteAlias@12795,whole:RouteAlias@12976,whole:RouteAlias@2281,whole:WildcardDomain@14962,whole:WildcardDomain@14991,whole:WildcardDomain@15472,whole:WildcardDomain@15494,whole:WildcardDomain@15518,whole:WildcardDomain@15567,whole:WildcardDomain@15730,whole:WildcardDomain@15858,whole:WildcardDomain@15887,whole:WildcardDomain@4070,whole:WildcardDomain@9865 bebe1570490c8eb4e5bcc02ad2e3910162f5ac0ba38a762e5f269290b19ede34
+internal/domains/aliases.go keptRegionalRows legacy accepted-legacy accepted-legacy;rev3=census-ruling-alias-with-mint-1653;basis=new: pure helper over rows writeRegional already holds: the existing rows of one claim whose key the desired set lacks; no registry, file or bucket read registry:Host@228,registry:Host@238,whole:RegionalDomain@143,whole:RegionalDomain@176,whole:RegionalDomain@253,whole:RegionalDomain@267,whole:RegionalDomain@273,whole:RegionalDomain@291 95e34fc49b50775a02e7c8da3af60051d75a15b7bb82589a74ad54fdcb08339b
+internal/host/aliaspass.go aliasPassWith legacy accepted-legacy accepted-legacy;rev3=census-ruling-alias-with-mint-1653;basis=new: the body of aliasPassReportingComplete (agent.go) moved to this new file with the same reads (fleets table, deployment route fold, ReconcileAliasesReport over the same store, registry and claim cache), not byte for byte: it takes aliasPassRules and names the completeness once (complete); noRemoval sets AliasReport.StartupNoRemoval (startup pass and the scoped pass run), which since Astra R2 also keeps regional_domains rows; keepPublished skips the HA ingress publishRegional/publishAliases when the pass is incomplete so the last projection stands. No read added; removal only ever narrowed (#1653, Astra R1 and R2) whole:RegionalDomain@2370,whole:Route@1382,whole:Route@1404,whole:Route@1423,whole:Route@2431 e36c537b889b1537592db40a361edc01a9a6d94aa296c613679cb3fb9bbaf11d
+internal/host/changeindex.go aliasSources legacy accepted-legacy accepted-legacy;rev3=census-ruling-alias-with-mint-1653;basis=new: lists the box registry (reg.List, the local SQLite routes table root already reads in every pass) and keeps the hosts of rows that are Provisioned, not sidecars and not replicas; read before and after the scoped pass reconcile only to decide whether that pass runs the alias leg too (aliasPassAdding). No new bucket, path or tenant input is opened; nothing is written; a list error returns nil and the scoped pass stays as before (#1653) registry:Host@332,registry:Provisioned@274,registry:Replica@312,whole:Route@231,whole:Route@260 4dc622abab6866a75def00825ce0176fd478f3ec82b5863f87b65cd5f8743090
+internal/domains/aliases.go writeRegional legacy accepted-legacy accepted-legacy;rev3=census-ruling-regional-domains-447;basis=#447 Task 4 (ruling 7): new, in the alias pass inside the agent: groups existing and desired regional_domains rows by claim apex and writes each changed claim's set through Registry.ReplaceRegionalSet (one transaction), keeps a set unchanged when its claim was listed but not read, deletes an undesired claim's set; a failure leaves that claim's rows as they were and marks the pass incomplete; registry writes only, no new read;rev3=census-ruling-alias-with-mint-1653;basis=takes noRemoval: when set, a claim no longer desired keeps its set and a desired set is written with any existing key it lacks kept beside it (keptRegionalRows), each marking the pass incomplete; ordinary passes unchanged; registry writes only, no new read; deletes less, never more (#1653, Astra R2) registry:Host@1378,registry:Host@1393,registry:Host@353,registry:Host@384,registry:Host@492,registry:Host@523,whole:RegionalDomain@1072,whole:RegionalDomain@1081,whole:RegionalDomain@1092,whole:RegionalDomain@1108,whole:RegionalDomain@1134,whole:RegionalDomain@1141,whole:RegionalDomain@1259,whole:RegionalDomain@1268,whole:RegionalDomain@1343,whole:RegionalDomain@1378,whole:RegionalDomain@1393,whole:RegionalDomain@1447,whole:RegionalDomain@1566,whole:RegionalDomain@327,whole:RegionalDomain@340,whole:RegionalDomain@371,whole:RegionalDomain@394,whole:RegionalDomain@467,whole:RegionalDomain@479,whole:RegionalDomain@510,whole:RegionalDomain@533,whole:RegionalDomain@572,whole:RegionalDomain@582,whole:RegionalDomain@605,whole:RegionalDomain@660,whole:RegionalDomain@681,whole:RegionalDomain@806 70d11cd221743e9e19fb1a2f82ca90b7da1fcc500a0e50d50cba9cce282e7ed3
+@remove internal/host/agent.go aliasPassReportingComplete
+@removed internal/host/agent.go aliasPassReportingComplete H3 census-ruling-alias-with-mint-1653;basis=quiet: now a one-line call of aliasPassWith with noRemoval=startup and keepPublished=false, so the ordinary pass behaves exactly as before; its reads moved to aliasPassWith
+@coverage internal/domains 946460dc4002523e701700fd00c3099aca2fc6da271569bfc2f1bd4081ee3547
+@coverage internal/host b8f0f706a220859178ef382921a265fcc01fa3c8cfee3bbd2c173e91bca40824
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 2322446db..ceba84d9d 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -330,3 +330,4 @@ plan14-root-reads-canary-retire-cli-1634.tsv d57c8e17fe2db097089c9dad5cf108c10d9
plan14-root-reads-precert-cname-1441.tsv c566f93a6751a5c801787d2b0c6d965301af68fcf6d3a288d762f08be90f3248
plan14-root-reads-recordview-walk-strays.tsv 594b9e8f940d929bc1d03df932952bde791955b8a8f9dde37ee9c7cd7b2a0042
plan14-root-reads-config-new-first-1653.tsv af91f62a3bddb72188801f27302643b160b6a6fbdf312315490407fad1f901ac
+plan14-root-reads-alias-with-mint-1653.tsv ce9536904e10de3f5e5c582061f130f870515ae0999de2946658ea49e4a17bf8