Catch-all names: stamp a new instance's name at once (#1516)
A name an instance catch-all derives (<slug>.patrix.site) was born with no DNS stamp and waited for the domains loop's 5-minute tick, then for the status snapshot's and edges file's own timers: about 6 minutes in pending-dns for a name whose wildcard record existed all along. - The alias pass reports derived names no stamp has looked at (AliasReport.Unstamped); the agent watches them and stamps just those at once (domains.StampHealthHosts), then every 20 s until each points with a certificate, for at most 10 minutes (internal/host/stampwatch.go). - A stamp that moves wakes the status snapshot and the edges file. - The console reads a row never looked up as checking, not pending-dns. - A due full tick always runs first; only new names wake the loop; early stamps reuse the edge set for a minute; a spent watch stays spent. Reviews: Astra, three code rounds and three census rounds (approved, recorded on #280). CI's known main flake is #1521. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Squashed from catchall-stamp-now into main.
16 files changed,
+809
−21
docs/superpowers/notes/census-proposal-catchall-stamp-now.md+29 −0internal/console/domainstate.go+9 −2internal/console/domainstate_test.go+11 −9internal/domains/aliases.go+22 −2internal/domains/instancecatchall_test.go+35 −0internal/domains/reconcile.go+96 −0internal/domains/stamphosts_test.go+113 −0internal/host/agent.go+3 −3internal/host/edgesfile.go+5 −0internal/host/edgesschedule.go+13 −1internal/host/group_names_test.go+12 −2internal/host/rollout.go+4 −2internal/host/stampwatch.go+263 −0internal/host/stampwatch_test.go+176 −0internal/provision/testdata/plan14-root-reads-catchall-stamp-now.tsv+17 −0internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0
CI passed — run details
CI log
=== gate ===
go: downloading go1.26.10 (linux/arm64)
go version go1.26.10 linux/arm64
opentofu: arm64, tofu 1.13.9, aws 6.73.0, archive 2.8.1
tofu: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/tofu_1.13.9_linux_arm64.tar.gz
tofu: downloaded, digest verified
aws: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-aws_6.73.0_linux_arm64.zip
aws: downloaded, digest verified
archive: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-archive_2.8.1_linux_arm64.zip
archive: downloaded, digest verified
installed in /tmp/carlos-opentofu-Kfkfbg
.amadan/test-gate.sh
go: downloading github.com/aws/aws-sdk-go-v2 v1.44.0
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.68.0
go: downloading github.com/aws/aws-sdk-go-v2/service/costexplorer v1.67.5
go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0
go: downloading github.com/aws/smithy-go v1.28.1
go: downloading golang.org/x/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/prometheus/client_golang v1.17.0
go: downloading golang.org/x/crypto v0.58.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 golang.org/x/sys v0.49.0
go: downloading github.com/aws/aws-sdk-go-v2/service/sesv2 v1.66.6
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/pion/dtls/v3 v3.1.4
go: downloading github.com/pion/transport/v4 v4.0.2
go: downloading github.com/prometheus/common v0.45.0
go: downloading github.com/prometheus/procfs v0.12.0
go: downloading google.golang.org/protobuf v1.36.10
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.14
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading golang.org/x/text v0.43.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/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 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
=== 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 (169 s, from +0 s)
go: downloading github.com/klauspost/compress v1.20.2
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
=== vet-tags (194 s, from +0 s)
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/memory v1.11.0
go: downloading github.com/google/uuid v1.6.0
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
=== gofmt (1 s, from +0 s)
gofmt -l .: clean
=== rest (377 s, from +15 s)
ok github.com/carlosframework/platform/cmd/carlos-media 123.916s
? github.com/carlosframework/platform/cmd/changelog [no test files]
ok github.com/carlosframework/platform/cmd/console 212.539s
ok github.com/carlosframework/platform/cmd/mediaimage 44.631s
ok github.com/carlosframework/platform/cmd/moveprobe 16.396s
ok github.com/carlosframework/platform/cmd/pricebook-export 0.057s
ok github.com/carlosframework/platform/cmd/rootfswitness 0.164s
ok github.com/carlosframework/platform/cmd/runsc-assets 0.199s
ok github.com/carlosframework/platform/cmd/zddprobe 0.952s
ok github.com/carlosframework/platform/internal/agentsock 0.065s
ok github.com/carlosframework/platform/internal/alerting 0.016s
ok github.com/carlosframework/platform/internal/analytics 0.355s
ok github.com/carlosframework/platform/internal/appconfig 44.625s
ok github.com/carlosframework/platform/internal/apperr 0.453s
ok github.com/carlosframework/platform/internal/applog 4.361s
ok github.com/carlosframework/platform/internal/apppolicy 2.527s
ok github.com/carlosframework/platform/internal/assetcache 0.443s
ok github.com/carlosframework/platform/internal/awsinv 0.036s
ok github.com/carlosframework/platform/internal/awsmanaged 8.027s
ok github.com/carlosframework/platform/internal/awsregiongroup 0.248s
ok github.com/carlosframework/platform/internal/awsterminations 0.015s
ok github.com/carlosframework/platform/internal/backupswords 0.010s
ok github.com/carlosframework/platform/internal/billing 0.037s
ok github.com/carlosframework/platform/internal/billing/billingtest 0.050s
ok github.com/carlosframework/platform/internal/billingstripe 2.226s
ok github.com/carlosframework/platform/internal/boxchoice 0.028s
ok github.com/carlosframework/platform/internal/boxid 2.424s
? 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.007s
ok github.com/carlosframework/platform/internal/boxself 0.161s
ok github.com/carlosframework/platform/internal/boxvolumes 0.023s
ok github.com/carlosframework/platform/internal/caps 4.410s
ok github.com/carlosframework/platform/internal/certwarm 0.011s
ok github.com/carlosframework/platform/internal/cgroup 1.343s
ok github.com/carlosframework/platform/internal/changelog 4.307s
ok github.com/carlosframework/platform/internal/clamd 0.090s
? github.com/carlosframework/platform/internal/cliflag [no test files]
ok github.com/carlosframework/platform/internal/clireg 0.011s
ok github.com/carlosframework/platform/internal/codehealth 16.606s
ok github.com/carlosframework/platform/internal/compute 0.014s
ok github.com/carlosframework/platform/internal/consolefleet 0.010s
? 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 11.018s
ok github.com/carlosframework/platform/internal/dbdoor/dbdoortest 0.035s
ok github.com/carlosframework/platform/internal/dbquery 0.023s
ok github.com/carlosframework/platform/internal/dbreads 3.059s
? github.com/carlosframework/platform/internal/dbreads/dbreadstest [no test files]
ok github.com/carlosframework/platform/internal/dbverify 0.029s
ok github.com/carlosframework/platform/internal/demo 0.016s
ok github.com/carlosframework/platform/internal/demobuild 4.647s
ok github.com/carlosframework/platform/internal/democlaim 0.640s
ok github.com/carlosframework/platform/internal/devbox 17.784s
ok github.com/carlosframework/platform/internal/dnsrec 0.021s
ok github.com/carlosframework/platform/internal/docsite 0.134s
ok github.com/carlosframework/platform/internal/domainreg 0.012s
ok github.com/carlosframework/platform/internal/domains 72.930s
ok github.com/carlosframework/platform/internal/doorkey 0.027s
ok github.com/carlosframework/platform/internal/economics 0.025s
ok github.com/carlosframework/platform/internal/edgefence 0.145s
ok github.com/carlosframework/platform/internal/edgeguard 0.443s
? github.com/carlosframework/platform/internal/edgeproof [no test files]
ok github.com/carlosframework/platform/internal/edgesfile 0.054s
ok github.com/carlosframework/platform/internal/egressaddr 0.006s
ok github.com/carlosframework/platform/internal/execsandbox 103.183s
ok github.com/carlosframework/platform/internal/fileacl 0.006s
ok github.com/carlosframework/platform/internal/fleetapi 2.101s
ok github.com/carlosframework/platform/internal/fleetstore 0.010s
ok github.com/carlosframework/platform/internal/fxrate 0.037s
ok github.com/carlosframework/platform/internal/gate 4.578s
ok github.com/carlosframework/platform/internal/genselect 0.138s
ok github.com/carlosframework/platform/internal/geo 0.061s
ok github.com/carlosframework/platform/internal/geoip 0.145s
ok github.com/carlosframework/platform/internal/groupadmission 0.008s
ok github.com/carlosframework/platform/internal/grouprollaws 16.861s
ok github.com/carlosframework/platform/internal/hadeparture 0.035s
ok github.com/carlosframework/platform/internal/hafresh 0.010s
ok github.com/carlosframework/platform/internal/hairpin 0.207s
ok github.com/carlosframework/platform/internal/historyreadback 1.100s
ok github.com/carlosframework/platform/internal/hostactors 22.534s
ok github.com/carlosframework/platform/internal/hostbox 21.751s
ok github.com/carlosframework/platform/internal/hostclaim 2.406s
ok github.com/carlosframework/platform/internal/hostenv 0.023s
ok github.com/carlosframework/platform/internal/hostevidence 0.036s
ok github.com/carlosframework/platform/internal/hostexec 26.878s
ok github.com/carlosframework/platform/internal/hostfence 0.186s
ok github.com/carlosframework/platform/internal/hostfiles 26.303s
ok github.com/carlosframework/platform/internal/hostfloor 0.411s
ok github.com/carlosframework/platform/internal/hostguard 1.384s
ok github.com/carlosframework/platform/internal/hostops 8.423s
? github.com/carlosframework/platform/internal/hostops/fencerelease [no test files]
ok github.com/carlosframework/platform/internal/hostops/internal/fencerelease 0.013s
ok github.com/carlosframework/platform/internal/hostquarantine 0.016s
ok github.com/carlosframework/platform/internal/hostrelocate 1.485s
ok github.com/carlosframework/platform/internal/hostresolve 0.629s
ok github.com/carlosframework/platform/internal/hostwrite 0.008s
ok github.com/carlosframework/platform/internal/infraview 0.010s
ok github.com/carlosframework/platform/internal/ingresshealth 0.013s
ok github.com/carlosframework/platform/internal/ingresshealth/awstg 0.012s
ok github.com/carlosframework/platform/internal/instancectl 67.497s
ok github.com/carlosframework/platform/internal/instanceexec 9.492s
ok github.com/carlosframework/platform/internal/instancefs 15.438s
ok github.com/carlosframework/platform/internal/instancekey 0.017s
ok github.com/carlosframework/platform/internal/instanceupdates 0.016s
ok github.com/carlosframework/platform/internal/interactive 0.687s
ok github.com/carlosframework/platform/internal/launchd 0.015s
ok github.com/carlosframework/platform/internal/layout 21.830s
ok github.com/carlosframework/platform/internal/layout/pubclass 98.619s
ok github.com/carlosframework/platform/internal/lbhealth 0.006s
ok github.com/carlosframework/platform/internal/lease 145.891s
ok github.com/carlosframework/platform/internal/lease/leasetest 1.637s
ok github.com/carlosframework/platform/internal/lease/locktest 0.022s
ok github.com/carlosframework/platform/internal/ledger 0.060s
ok github.com/carlosframework/platform/internal/mail 1.053s
ok github.com/carlosframework/platform/internal/mailer 0.870s
ok github.com/carlosframework/platform/internal/mailsubmit 1.595s
ok github.com/carlosframework/platform/internal/mailwire 0.010s
ok github.com/carlosframework/platform/internal/maintenance 0.202s
ok github.com/carlosframework/platform/internal/maintenanceexec 9.113s
ok github.com/carlosframework/platform/internal/maintenanceguard 0.266s
ok github.com/carlosframework/platform/internal/managedboot 3.540s
? github.com/carlosframework/platform/internal/managedboot/boottest [no test files]
? github.com/carlosframework/platform/internal/managedboot/roottest [no test files]
ok github.com/carlosframework/platform/internal/media 1.973s
ok github.com/carlosframework/platform/internal/media/mediatest 0.014s
ok github.com/carlosframework/platform/internal/mediaaws 63.134s
ok github.com/carlosframework/platform/internal/mediahandler 42.896s
ok github.com/carlosframework/platform/internal/mediajobs 1.072s
ok github.com/carlosframework/platform/internal/medialocal 10.039s
ok github.com/carlosframework/platform/internal/metrics 0.176s
ok github.com/carlosframework/platform/internal/minorunits 0.015s
ok github.com/carlosframework/platform/internal/moves 56.171s
ok github.com/carlosframework/platform/internal/moves/archive 2.979s
ok github.com/carlosframework/platform/internal/moves/offlinerun 0.137s
ok github.com/carlosframework/platform/internal/namedunits 0.044s
ok github.com/carlosframework/platform/internal/objstore 3.042s
ok github.com/carlosframework/platform/internal/ops 14.503s
ok github.com/carlosframework/platform/internal/pageindex 4.152s
ok github.com/carlosframework/platform/internal/parity 0.151s
? github.com/carlosframework/platform/internal/parity/cmd/parity-doc [no test files]
ok github.com/carlosframework/platform/internal/park 0.768s
ok github.com/carlosframework/platform/internal/perf 0.190s
ok github.com/carlosframework/platform/internal/plans 0.116s
ok github.com/carlosframework/platform/internal/privatefile 0.022s
ok github.com/carlosframework/platform/internal/provision 235.202s
ok github.com/carlosframework/platform/internal/proxyproto 0.961s
ok github.com/carlosframework/platform/internal/publicrelease 0.067s
ok github.com/carlosframework/platform/internal/ratelimit 0.232s
ok github.com/carlosframework/platform/internal/regionlabel 0.100s
ok github.com/carlosframework/platform/internal/regionname 0.031s
ok github.com/carlosframework/platform/internal/registrar 0.014s
ok github.com/carlosframework/platform/internal/registrar/openprovider 0.507s
? github.com/carlosframework/platform/internal/registrar/registrartest [no test files]
ok github.com/carlosframework/platform/internal/registry 85.552s
ok github.com/carlosframework/platform/internal/relay 7.576s
ok github.com/carlosframework/platform/internal/release 124.553s
? github.com/carlosframework/platform/internal/release/requestwitness [no test files]
ok github.com/carlosframework/platform/internal/replicagen 0.025s
ok github.com/carlosframework/platform/internal/replicas 0.070s
ok github.com/carlosframework/platform/internal/reqrec 6.790s
ok github.com/carlosframework/platform/internal/rollout 10.528s
ok github.com/carlosframework/platform/internal/rolloutwords 0.010s
ok github.com/carlosframework/platform/internal/rootaws 97.823s
ok github.com/carlosframework/platform/internal/rootfsimage 0.978s
ok github.com/carlosframework/platform/internal/rootparticipation 0.159s
ok github.com/carlosframework/platform/internal/rootstate 0.039s
ok github.com/carlosframework/platform/internal/runs 0.705s
ok github.com/carlosframework/platform/internal/s3compat 0.021s
ok github.com/carlosframework/platform/internal/s3fake 1.319s
ok github.com/carlosframework/platform/internal/s3meter 0.574s
ok github.com/carlosframework/platform/internal/safefile 0.035s
ok github.com/carlosframework/platform/internal/schedule 23.781s
ok github.com/carlosframework/platform/internal/seeds 0.099s
ok github.com/carlosframework/platform/internal/share 0.052s
ok github.com/carlosframework/platform/internal/sim/litestreamfacts 4.702s
ok github.com/carlosframework/platform/internal/sim/mediajobs 53.732s
ok github.com/carlosframework/platform/internal/sim/regionha 23.948s
ok github.com/carlosframework/platform/internal/status 0.411s
ok github.com/carlosframework/platform/internal/steering 0.235s
ok github.com/carlosframework/platform/internal/stopevidence 0.368s
ok github.com/carlosframework/platform/internal/storecfg 0.268s
ok github.com/carlosframework/platform/internal/svcrole 0.013s
ok github.com/carlosframework/platform/internal/systemd 5.521s
? github.com/carlosframework/platform/internal/systemdshow [no test files]
ok github.com/carlosframework/platform/internal/team 3.660s
ok github.com/carlosframework/platform/internal/teamcontract 0.131s
ok github.com/carlosframework/platform/internal/telemetry 0.022s
ok github.com/carlosframework/platform/internal/termfence 3.512s
ok github.com/carlosframework/platform/internal/timerspec 0.017s
ok github.com/carlosframework/platform/internal/tsidentity 4.191s
ok github.com/carlosframework/platform/internal/tunnelclient 0.398s
ok github.com/carlosframework/platform/internal/unixdial 0.010s
ok github.com/carlosframework/platform/internal/updatewords 0.039s
ok github.com/carlosframework/platform/internal/upstreamguard 0.010s
? github.com/carlosframework/platform/internal/upstreamguard/guardtest [no test files]
ok github.com/carlosframework/platform/internal/usage 0.022s
ok github.com/carlosframework/platform/internal/version 0.029s
ok github.com/carlosframework/platform/internal/vet 3.071s
ok github.com/carlosframework/platform/internal/zonehost 0.020s
ok github.com/carlosframework/platform/internal/zonehost/route53zones 0.136s
? 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.028s
ok github.com/carlosframework/platform/scripts/pathmapcheck 0.134s
ok github.com/carlosframework/platform/scripts/region-ha-g2/fixture 5.129s
ok github.com/carlosframework/platform/scripts/stateless-replicas-drill 1.237s
ok github.com/carlosframework/platform/scripts/witness-pointer 0.019s
=== cutover-witness (165 s, from +15 s)
ok github.com/carlosframework/platform 3.586s
=== internal_grouproll@0 (268 s, from +74 s)
ok github.com/carlosframework/platform/internal/grouproll 267.101s
=== internal_grouproll@1 (273 s, from +74 s)
ok github.com/carlosframework/platform/internal/grouproll 272.035s
=== internal_activator@0 (155 s, from +141 s)
ok github.com/carlosframework/platform/internal/activator 148.993s
=== internal_activator@1 (133 s, from +141 s)
ok github.com/carlosframework/platform/internal/activator 127.875s
=== internal_activator@2 (143 s, from +141 s)
ok github.com/carlosframework/platform/internal/activator 137.181s
=== internal_activator@3 (160 s, from +141 s)
ok github.com/carlosframework/platform/internal/activator 154.602s
=== internal_edge@0 (249 s, from +170 s)
ok github.com/carlosframework/platform/internal/edge 239.917s
=== internal_edge@1 (131 s, from +170 s)
ok github.com/carlosframework/platform/internal/edge 119.741s
=== internal_edge@2 (171 s, from +170 s)
ok github.com/carlosframework/platform/internal/edge 160.835s
=== internal_edge@3 (151 s, from +170 s)
ok github.com/carlosframework/platform/internal/edge 140.772s
=== root@0 (118 s, from +172 s)
ok github.com/carlosframework/platform 108.107s
=== root@1 (115 s, from +172 s)
ok github.com/carlosframework/platform 104.031s
=== root@2 (121 s, from +172 s)
ok github.com/carlosframework/platform 110.922s
=== root@3 (111 s, from +172 s)
ok github.com/carlosframework/platform 99.975s
=== root@4 (121 s, from +172 s)
ok github.com/carlosframework/platform 109.871s
=== internal_host@0 (173 s, from +215 s)
ok github.com/carlosframework/platform/internal/host 169.073s
=== internal_host@1 (149 s, from +215 s)
ok github.com/carlosframework/platform/internal/host 144.712s
=== internal_host@2 (169 s, from +215 s)
ok github.com/carlosframework/platform/internal/host 164.804s
=== internal_host@3 (190 s, from +215 s)
ok github.com/carlosframework/platform/internal/host 185.547s
=== internal_host@4 (200 s, from +215 s)
ok github.com/carlosframework/platform/internal/host 195.528s
=== internal_host@5 (265 s, from +215 s)
ok github.com/carlosframework/platform/internal/host 259.864s
=== internal_console@0 (175 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 168.111s
=== internal_console@1 (176 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 170.684s
=== internal_console@2 (239 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 233.038s
=== internal_console@3 (254 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 247.731s
=== internal_console@4 (222 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 214.487s
=== internal_console@5 (240 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 233.740s
=== internal_console@6 (215 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 209.417s
=== internal_console@7 (233 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 225.680s
=== internal_console@8 (238 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 231.479s
=== internal_console@9 (233 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 226.480s
=== internal_console@10 (238 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 232.074s
=== internal_console@11 (244 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 238.419s
=== internal_console@12 (363 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 356.011s
=== internal_console@13 (210 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 204.326s
=== internal_console@14 (204 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 197.979s
=== internal_console@15 (223 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 217.200s
=== internal_console@16 (229 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 222.651s
=== internal_console@17 (249 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 241.562s
=== internal_console@18 (276 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 270.093s
=== internal_console@19 (240 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 232.715s
=== internal_console@20 (210 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 201.737s
=== internal_console@21 (233 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 226.313s
=== internal_console@22 (237 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 230.244s
=== internal_console@23 (232 s, from +222 s)
ok github.com/carlosframework/platform/internal/console 224.660s
=== lists: internal_console 220 s, internal_edge 168 s, internal_activator 139 s, internal_host 214 s, root 170 s, internal_grouproll 73 s
=== cpu: the gate used 12868 cpu-seconds in 585 s, about 22.0 of 32 cores; the machine as a whole was 73% busy
=== opentofu ===
opentofu: 39 test files in 11 suites, OpenTofu v1.13.9
initialised in 15 s
ok 23 s infra/modules/box-fence-writer/tests/writer.tftest.hcl Success! 1 passed, 0 failed.
ok 22 s infra/modules/deployment-buckets/tests/console_floors.tftest.hcl Success! 1 passed, 0 failed.
ok 32 s infra/modules/deployment-buckets/tests/data_lifecycle.tftest.hcl Success! 3 passed, 0 failed.
ok 22 s infra/modules/deployment-buckets/tests/db_reads.tftest.hcl Success! 1 passed, 0 failed.
ok 23 s infra/modules/deployment-buckets/tests/evidence.tftest.hcl Success! 1 passed, 0 failed.
ok 28 s infra/modules/deployment-buckets/tests/fence_writers.tftest.hcl Success! 3 passed, 0 failed.
ok 27 s infra/modules/deployment-buckets/tests/media_results.tftest.hcl Success! 2 passed, 0 failed.
ok 89 s infra/modules/media-engine/tests/media_engine.tftest.hcl Success! 24 passed, 0 failed.
ok 23 s infra/modules/pdf-host/tests/computed.tftest.hcl Success! 2 passed, 0 failed.
ok 56 s infra/modules/pdf-host/tests/pdf_host.tftest.hcl Success! 24 passed, 0 failed.
ok 39 s infra/modules/region-group-operator-document/tests/document.tftest.hcl Success! 12 passed, 0 failed.
ok 19 s infra/modules/region-host/ingress/tests/fixed-targets/tests/targets.tftest.hcl Success! 2 passed, 0 failed.
ok 63 s infra/modules/region-host/ingress/tests/group_ingress.tftest.hcl Success! 30 passed, 0 failed.
ok 47 s infra/modules/region-host/tests/alert_publish.tftest.hcl Success! 18 passed, 0 failed.
ok 42 s infra/modules/region-host/tests/alerts_topic.tftest.hcl Success! 16 passed, 0 failed.
ok 12 s infra/modules/region-host/tests/analytics_prune.tftest.hcl Success! 2 passed, 0 failed.
ok 15 s infra/modules/region-host/tests/console_mail.tftest.hcl Success! 4 passed, 0 failed.
ok 6 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 11 s infra/modules/region-host/tests/group_alarms.tftest.hcl Success! 4 passed, 0 failed.
ok 10 s infra/modules/region-host/tests/group_iam.tftest.hcl Success! 4 passed, 0 failed.
ok 6 s infra/modules/region-host/tests/group_isolation.tftest.hcl Success! 1 passed, 0 failed.
ok 37 s infra/modules/region-host/tests/group_operator.tftest.hcl Success! 13 passed, 0 failed.
ok 11 s infra/modules/region-host/tests/group_user_data.tftest.hcl Success! 3 passed, 0 failed.
ok 27 s infra/modules/region-host/tests/health_alarms.tftest.hcl Success! 10 passed, 0 failed.
ok 13 s infra/modules/region-host/tests/ingress_drain_read.tftest.hcl Success! 4 passed, 0 failed.
ok 7 s infra/modules/region-host/tests/instance_metadata.tftest.hcl Success! 1 passed, 0 failed.
ok 19 s infra/modules/region-host/tests/mailer.tftest.hcl Success! 6 passed, 0 failed.
ok 10 s infra/modules/region-host/tests/mailer_group.tftest.hcl Success! 2 passed, 0 failed.
ok 12 s infra/modules/region-host/tests/managed_fleets/group_refusal.tftest.hcl Success! 2 passed, 0 failed.
ok 105 s infra/modules/region-host/tests/managed_fleets/managed_fleets.tftest.hcl Success! 46 passed, 0 failed.
ok 74 s infra/modules/region-host/tests/store_conversion.tftest.hcl Success! 27 passed, 0 failed.
ok 18 s infra/modules/region-host/tests/store_scanning.tftest.hcl Success! 4 passed, 0 failed.
ok 29 s infra/modules/region-host/tests/store_versioning.tftest.hcl Success! 11 passed, 0 failed.
ok 16 s infra/modules/region-host/tests/store_write_credentials.tftest.hcl Success! 4 passed, 0 failed.
ok 17 s infra/modules/region-host/tests/user_data_ignored.tftest.hcl Success! 3 passed, 0 failed.
ok 11 s infra/modules/region-remote-host/tests/data_lifecycle.tftest.hcl Success! 3 passed, 0 failed.
ok 13 s infra/modules/region-remote-host/tests/no_deployment_bucket.tftest.hcl Success! 5 passed, 0 failed.
ok 32 s infra/modules/scanner-host/tests/scanner_host.tftest.hcl Success! 14 passed, 0 failed.
opentofu: 39 files in 210 s
opentofu: PASS
=== cross ===
--- shard 0 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling darwin/arm64
--- shard 1 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling darwin/amd64
--- shard 2 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling linux/arm64
linux/arm64 carlos binary: 66715810 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:37576
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.038s
=== RUN TestT4StorageProbeMinio
2026/11/30 00:17:00 moves: T4: STORE: list: operation error S3: ListObjectsV2, https response error StatusCode: 403, RequestID: 18ECAA8074271ADB, HostID: 8b3ccd48282327f45b5a44dd2226e82c933fdab8f73e54fa3675e91f1cc891b0, 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.046s
=== 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.043s
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.08s)
PASS
ok github.com/carlosframework/platform/internal/release 0.090s
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.020s
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:_read_under_the_prefix
=== RUN TestWriteCredentialContractMinio/refused:_read_elsewhere
=== RUN TestWriteCredentialContractMinio/refused:_list
=== RUN TestWriteCredentialContractMinio/refused:_list_uploads
=== RUN TestWriteCredentialContractMinio/refused:_tag
=== RUN TestWriteCredentialContractMinio/refused:_put_beside_the_prefix
=== RUN TestWriteCredentialContractMinio/refused:_copy_from_the_store
=== RUN TestWriteCredentialContractMinio/refused:_head
=== RUN TestWriteCredentialContractMinio/refused:_delete
=== RUN TestWriteCredentialContractMinio/refused:_put_tagged
=== RUN TestWriteCredentialContractMinio/refused:_put_with_a_platform_tag
=== RUN TestWriteCredentialContractMinio/refused:_put_outside_the_prefix
=== RUN TestWriteCredentialContractMinio/refused:_put_to_another_bucket
=== RUN TestWriteCredentialContractMinio/refused:_bucket_settings
--- PASS: TestWriteCredentialContractMinio (0.04s)
--- PASS: TestWriteCredentialContractMinio/put_under_the_prefix (0.00s)
--- PASS: TestWriteCredentialContractMinio/multipart_under_the_prefix (0.01s)
--- PASS: TestWriteCredentialContractMinio/refused:_read_under_the_prefix (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_read_elsewhere (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_list (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_list_uploads (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_tag (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_put_beside_the_prefix (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_copy_from_the_store (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_head (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: 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
ok github.com/carlosframework/platform/internal/objstore 0.049s
=== RUN TestEndToEndMinio
=== RUN TestEndToEndMinio/plan
=== RUN TestEndToEndMinio/roll
=== RUN TestEndToEndMinio/replace
=== RUN TestEndToEndMinio/remove
--- PASS: TestEndToEndMinio (0.48s)
--- PASS: TestEndToEndMinio/plan (0.01s)
--- PASS: TestEndToEndMinio/roll (0.13s)
--- PASS: TestEndToEndMinio/replace (0.15s)
--- PASS: TestEndToEndMinio/remove (0.15s)
PASS
ok github.com/carlosframework/platform/internal/grouproll 0.486s
Bucket created successfully `local/dbf-deploy`.
Bucket created successfully `local/dbf-data-ie`.
Bucket created successfully `local/dbf-data-uk`.
local/dbf-deploy versioning is enabled
Created policy `dbf-console` successfully.
Created policy `dbf-ukbox` successfully.
Added user `dbfconsole` successfully.
Added user `dbfukbox` successfully.
Attached Policies: [dbf-console]
To User: dbfconsole
Attached Policies: [dbf-ukbox]
To User: dbfukbox
=== RUN TestDBForwardMinio
2026/11/30 00:17:08 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/30 00:17:08 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/11/30 00:17:08 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/11/30 00:17:08 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/11/30 00:17:08 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=370
2026/11/30 00:17:08 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000002
2026/11/30 00:17:08 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/11/30 00:17:08 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=454
2026/11/30 00:17:08 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/11/30 00:17:08 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/30 00:17:08 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/11/30 00:17:08 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/11/30 00:17:09 console: CARLOS_SECRETS_PUBKEY is unset, so no region outside the home can be chosen automatically
2026/11/30 00:17:09 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%3A46561: could not determine target mailbox
agent.go:136: dbreads: dbr_xzf3pxvxba6jtb32kg6fpkpitq: planned 1 files (720 bytes) and restored to 1 in 11ms
agent.go:136: dbreads: dbr_xzf3pxvxba6jtb32kg6fpkpitq: output 5 bytes in 1 confirmed chunks in 2ms
2026/11/30 00:17:10 console: db read dbr_xzf3pxvxba6jtb32kg6fpkpitq: relayed 1 chunks (102 bytes) in 1.005s, ended done
agent.go:136: dbreads: dbr_d4wx2mkz4xwsmckk66fc2bfrsa: planned 3 files (1544 bytes) and restored to 3 in 13ms
agent.go:136: dbreads: dbr_d4wx2mkz4xwsmckk66fc2bfrsa: output 5 bytes in 1 confirmed chunks in 2ms
2026/11/30 00:17:11 console: db read dbr_d4wx2mkz4xwsmckk66fc2bfrsa: relayed 1 chunks (102 bytes) in 1.005s, ended done
agent.go:136: dbreads: dbr_4ahh2jpaxzbhysfollo6wfel3a: planned 3 files (1544 bytes) and held through 3 in 12ms
agent.go:136: dbreads: dbr_4ahh2jpaxzbhysfollo6wfel3a: output 1544 bytes in 1 confirmed chunks in 1ms
2026/11/30 00:17:12 console: db read dbr_4ahh2jpaxzbhysfollo6wfel3a: relayed 1 chunks (1641 bytes) in 1.005s, ended done
=== RUN TestDBForwardMinio/by_disconnect
=== NAME TestDBForwardMinio
agent.go:136: dbreads: dbr_vshoxhy4hi34huu65g5h4isoae: planned 3 files (1544 bytes) and restored to 3 in 15ms
2026/11/30 00:17:12 console: db read dbr_vshoxhy4hi34huu65g5h4isoae: relayed 0 chunks (0 bytes) in 35ms, ended client gone
agent.go:136: dbreads: dbr_vshoxhy4hi34huu65g5h4isoae: output 5 bytes in 1 confirmed chunks in 104ms
=== RUN TestDBForwardMinio/by_timeout
=== NAME TestDBForwardMinio
agent.go:136: dbreads: dbr_3ivks473vf6yebsbz56h6nthui: planned 3 files (1544 bytes) and restored to 3 in 13ms
2026/11/30 00:17:32 console: db read dbr_3ivks473vf6yebsbz56h6nthui: relayed 0 chunks (0 bytes) in 19.543s, ended no-result
agent.go:136: dbreads: dbr_3ivks473vf6yebsbz56h6nthui: output 5 bytes in 1 confirmed chunks in 19.516s
--- PASS: TestDBForwardMinio (23.24s)
--- PASS: TestDBForwardMinio/by_disconnect (0.25s)
--- PASS: TestDBForwardMinio/by_timeout (19.65s)
PASS
ok github.com/carlosframework/platform/internal/console 23.290s
Bucket created successfully `local/media-transfers`.
Bucket created successfully `local/media-transfer-results`.
local/media-transfer-results versioning is enabled
Created policy `media-transfers` successfully.
Added user `mediatransfers` successfully.
Attached Policies: [media-transfers]
To User: mediatransfers
=== RUN TestMediaTransfersMinio
upload.go:117: codec: the store already holds video.mp4
upload.go:117: codec: the store already holds video.m3u8
upload.go:117: codec: the store already holds poster.jpg
--- PASS: TestMediaTransfersMinio (0.07s)
PASS
ok github.com/carlosframework/platform/internal/mediaaws 0.074s
Bucket created successfully `local/media-local-store`.
Bucket created successfully `local/media-local-results`.
Created policy `media-local` successfully.
Added user `medialocal` successfully.
Attached Policies: [media-local]
To User: medialocal
=== RUN TestLocalEndToEndMinio
--- PASS: TestLocalEndToEndMinio (0.54s)
PASS
ok github.com/carlosframework/platform/internal/medialocal 0.550s
=== RUN TestHeldHandoverTwoBoxMinio
2026/11/30 00:17:37 edge: mesh key: minted
2026/11/30 00:17:37 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/30 00:17:37 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/30 00:17:37 tenant admission is open. accepting tenant work
2026/11/30 00:17:37 activator: HA placement host=shop-08bf4b31.example.test kind=Place ref=annie reason=roomiest generation=2026-11-30T00:17:37Z lock_generation=0
2026/11/30 00:17:37 lease: t8-08bf4b31/shop-08bf4b31.example.test: HA lease acquired in 4ms (first wake)
2026/11/30 00:17:37 activator: shop-08bf4b31.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/30 00:17:37 activator: shop-08bf4b31.example.test: started carlos-instance@shop\x2d08bf4b31.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 6ms, control socket 0s, key gate 0s, logs 0s) 6ms, launch file 0s, gate 0s, root start 1ms)
2026/11/30 00:17:37 activator: shop-08bf4b31.example.test: carlos-instance@shop\x2d08bf4b31.example.test.service launched in 7ms, healthy 0s later
2026/11/30 00:17:37 activator: shop-08bf4b31.example.test: woke in 66ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 8ms, replicate 53ms
2026/11/30 00:17:37 lease: t8-08bf4b31/plain-08bf4b31.example.test: acquired in 2ms (client 0s, lock read and write 1ms)
2026/11/30 00:17:37 activator: no replica for plain-08bf4b31.example.test in s3://contract-bucket/t8-08bf4b31/plain-08bf4b31.example.test — booting fresh
2026/11/30 00:17:37 activator: plain-08bf4b31.example.test: started carlos-instance@plain\x2d08bf4b31.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 1ms, instance key 0s, env 4ms, control socket 0s, key gate 0s, logs 0s) 6ms, launch file 0s, gate 0s, root start 1ms)
2026/11/30 00:17:37 activator: plain-08bf4b31.example.test: carlos-instance@plain\x2d08bf4b31.example.test.service launched in 7ms, healthy 0s later
2026/11/30 00:17:37 activator: plain-08bf4b31.example.test: woke in 45ms: checks 0s, lease 2ms, restore 19ms, identity 0s, protect 0s, spawn 7ms, replicate 17ms
2026/11/30 00:17:37 lease: t8-08bf4b31/bot0.shop.bac.sidecar.internal: HA lease acquired in 4ms (first wake)
2026/11/30 00:17:37 activator: bot0.shop.bac.sidecar.internal: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/30 00:17:37 activator: bot0.shop.bac.sidecar.internal: woke in 19ms: checks 0s, lease 4ms, restore 0s, identity 0s, protect 0s, spawn 7ms, settle 0s, replicate 7ms
2026/11/30 00:17:37 activator: next-due probe plain-08bf4b31.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/30 00:17:37 activator: bot0.shop.bac.sidecar.internal: released with a marker (clean true, txid 1, files 3:a808faa87332341276adb87365664d95f1800f246967cfca744fecb81b10df33) in 5ms: files 1ms, sync 2ms, record 1ms, marker 2ms
2026/11/30 00:17:37 activator: bot0.shop.bac.sidecar.internal hibernated
2026/11/30 00:17:37 activator: plain-08bf4b31.example.test hibernated
2026/11/30 00:17:37 activator: next-due probe shop-08bf4b31.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/30 00:17:37 activator: shop-08bf4b31.example.test: released with a marker (clean true, txid 1, files 3:4db7b0fd2ef90e7797f9e9dfcd93921a4b56cfe821cacd9792705400df834c50) in 7ms: files 1ms, sync 4ms, record 1ms, marker 2ms
2026/11/30 00:17:37 activator: shop-08bf4b31.example.test hibernated
2026/11/30 00:17:37 lease: t8-08bf4b31/shop-08bf4b31.example.test: HA lease acquired in 3ms (clean marker)
2026/11/30 00:17:37 activator: shop-08bf4b31.example.test: restored (other-box)
2026/11/30 00:17:37 activator: shop-08bf4b31.example.test: started carlos-instance@shop\x2d08bf4b31.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 1ms, control socket 0s, key gate 0s, logs 0s) 1ms, launch file 0s, gate 0s, root start 1ms)
2026/11/30 00:17:37 activator: shop-08bf4b31.example.test: carlos-instance@shop\x2d08bf4b31.example.test.service launched in 2ms, healthy 0s later
2026/11/30 00:17:37 activator: shop-08bf4b31.example.test: woke in 37ms: checks 0s, lease 3ms, restore 24ms, identity 0s, protect 0s, spawn 2ms, replicate 7ms
2026/11/30 00:17:37 edge: ha-take shop-08bf4b31.example.test from annie (txn t8-witness, marker generation 1): holder betty, generation 2
2026/11/30 00:17:37 edge: forward shop-08bf4b31.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:2655b67d92cf8eaa3c4d3ec8911a0c1b Step:move Result:ok Reasons:[] Fence:t8-witness StartedAt:2026-11-30 00:17:37.435321772 +0000 UTC FinishedAt:2026-11-30 00:17:37.533247174 +0000 UTC Acked:[betty carol] Departed:[] Moved:[{Host:shop-08bf4b31.example.test Holder:betty Gen:2 Confirmed:take}] Released:[{Host:bot0.shop.bac.sidecar.internal Kind:worker Marker:true Clean:true Reason:} {Host:plain-08bf4b31.example.test Kind:other Marker:true Clean:true Reason:}] Unclean:[] Left:[] Holds:{LongestMS:69 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-08bf4b31.example.test <nil> stop bot0.shop.bac.sidecar.internal marker=true clean=true <nil> stop plain-08bf4b31.example.test marker=true clean=true <nil> releasing shop-08bf4b31.example.test <nil> stop shop-08bf4b31.example.test marker=true clean=true <nil> taken shop-08bf4b31.example.test betty <nil> end-moves]
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/bot0.shop.bac.sidecar.internal/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/bot0.shop.bac.sidecar.internal/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/bot0.shop.bac.sidecar.internal/0002/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/bot0.shop.bac.sidecar.internal/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/bot0.shop.bac.sidecar.internal/0003/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-08bf4b31/shop-08bf4b31.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-08bf4b31/bot0.shop.bac.sidecar.internal/0009/0000000000000001-0000000000000001.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-08bf4b31/bot0.shop.bac.sidecar.internal/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: DELETE /contract-bucket/t8-08bf4b31/plain-08bf4b31.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-08bf4b31/shop-08bf4b31.example.test/0009/0000000000000001-0000000000000001.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-08bf4b31/shop-08bf4b31.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-08bf4b31/shop-08bf4b31.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-08bf4b31/shop-08bf4b31.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-08bf4b31/shop-08bf4b31.example.test/head.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/generations/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0009/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0008/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0007/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0006/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0005/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0004/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0003/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0002/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0009/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0008/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0007/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0006/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0005/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0004/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0003/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0002/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-08bf4b31/shop-08bf4b31.example.test/0009/0000000000000001-0000000000000001.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-08bf4b31/shop-08bf4b31.example.test/files/0/manifest.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-08bf4b31/shop-08bf4b31.example.test/files/0/objects/0000000000000001-52e3c5b5f3d014464fd2f20afcaf6cc0d4b3365a808ee0c74efd4c19d8798c16
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-08bf4b31/shop-08bf4b31.example.test/files/0/objects/0000000000000003-1a98fe2379744e2fc9d00884c5ff377d7c8a303a2233eaa62817a2ee6246788d
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-08bf4b31/shop-08bf4b31.example.test/0000/0000000000000001-0000000000000001.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0009/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0009/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-08bf4b31/shop-08bf4b31.example.test/0000/0000000000000002-0000000000000002.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0002/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0003/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-08bf4b31/shop-08bf4b31.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-08bf4b31/shop-08bf4b31.example.test/0001/0000000000000001-0000000000000002.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-08bf4b31/shop-08bf4b31.example.test/0000/
hadrain_twobox_minio_linux_test.go:1243: drain took 146ms; S3 calls 55 (DELETE lock=1 GET files=3 GET head=1 GET lock=3 GET replica=2 LIST replica=38 PUT lock=3 PUT replica=4); deployment store calls 20 (GET edges=14 LIST edges=4 PUT edges=2)
hadrain_twobox_minio_linux_test.go:1367: the fenced A's start gate answers 503 "This service is unavailable. Try again later.\n" (Retry-After "10")
2026/11/30 00:17:37 lease: t8-08bf4b31/plain-08bf4b31.example.test: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/30 00:17:37 activator: plain-08bf4b31.example.test: started carlos-instance@plain\x2d08bf4b31.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 0s, control socket 0s, key gate 0s, logs 0s) 0s, launch file 0s, gate 0s, root start 1ms)
2026/11/30 00:17:37 activator: plain-08bf4b31.example.test: carlos-instance@plain\x2d08bf4b31.example.test.service launched in 1ms, healthy 0s later
2026/11/30 00:17:37 lease: /tmp/carlos-minio-contract-p0CCVG/g/dw502114968/data/instances/plain-08bf4b31.example.test/plain-08bf4b31.example.test.db: continuity with the last clean close not proven; snapshot 1-0000000000000001 written before serving
2026/11/30 00:17:37 activator: plain-08bf4b31.example.test: woke in 7ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 1ms, replicate 4ms
2026/11/30 00:17:37 activator: next-due probe shop-08bf4b31.example.test: decode /api/next-due: invalid character 'b' looking for beginning of value — recording none (it sleeps until a request)
2026/11/30 00:17:37 activator: shop-08bf4b31.example.test: released with a marker (clean true, txid 2, files 3:4db7b0fd2ef90e7797f9e9dfcd93921a4b56cfe821cacd9792705400df834c50) in 4ms: files 1ms, sync 0s, record 1ms, marker 2ms
2026/11/30 00:17:37 activator: shop-08bf4b31.example.test hibernated
2026/11/30 00:17:37 tenant admission is closed for shutdown
2026/11/30 00:17:37 activator: next-due probe plain-08bf4b31.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/30 00:17:37 activator: plain-08bf4b31.example.test hibernated
--- PASS: TestHeldHandoverTwoBoxMinio (0.52s)
=== RUN TestHeldHandoverLostLeaseMinio
2026/11/30 00:17:37 edge: mesh key: minted
2026/11/30 00:17:37 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/30 00:17:37 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/30 00:17:37 tenant admission is open. accepting tenant work
2026/11/30 00:17:37 activator: HA placement host=shop-73e757a9.example.test kind=Place ref=annie reason=roomiest generation=2026-11-30T00:17:37Z lock_generation=0
2026/11/30 00:17:37 lease: t8-73e757a9/shop-73e757a9.example.test: HA lease acquired in 3ms (first wake)
2026/11/30 00:17:37 activator: shop-73e757a9.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/30 00:17:37 activator: shop-73e757a9.example.test: started carlos-instance@shop\x2d73e757a9.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 5ms, control socket 0s, key gate 0s, logs 0s) 6ms, launch file 0s, gate 0s, root start 1ms)
2026/11/30 00:17:37 activator: shop-73e757a9.example.test: carlos-instance@shop\x2d73e757a9.example.test.service launched in 7ms, healthy 0s later
2026/11/30 00:17:37 activator: shop-73e757a9.example.test: woke in 65ms: checks 0s, lease 4ms, restore 0s, identity 0s, protect 0s, spawn 7ms, replicate 54ms
2026/11/30 00:17:37 activator: next-due probe shop-73e757a9.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/30 00:17:37 activator: final checkpoint shop-73e757a9.example.test: lease: release marker owed for s3://contract-bucket/t8-73e757a9/shop-73e757a9.example.test/lock.json (If-Match "fe5135c401efce6f165959c97ecb39c2"): lease: write release marker: operation error S3: PutObject, https response error StatusCode: 503, RequestID: , HostID: , api error ServiceUnavailable: witness: refused
2026/11/30 00:17:37 activator: shop-73e757a9.example.test hibernated
2026/11/30 00:17:37 activator: handover of shop-73e757a9.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-73e757a9.example.test client 4 "
hadrain_twobox_minio_linux_test.go:1486: driver calls: [begin shop-73e757a9.example.test <nil> releasing shop-73e757a9.example.test <nil> stop shop-73e757a9.example.test marker=false clean=false <nil> left shop-73e757a9.example.test released without a marker]
hadrain_twobox_minio_linux_test.go:1487: a request after the loss: 503 "This instance cannot wake right now. Please try again shortly.\n" (Retry-After "10", holder "none", 0s, err <nil>)
2026/11/30 00:17:37 tenant admission is closed for shutdown
2026/11/30 00:17:37 http: proxy error: context canceled
--- PASS: TestHeldHandoverLostLeaseMinio (0.32s)
PASS
ok github.com/carlosframework/platform/internal/host 0.882s
Bucket created successfully `local/gen-take`.
local/gen-take versioning is enabled
Created policy `gen-take` successfully.
Added user `gentake` successfully.
Attached Policies: [gen-take]
To User: gentake
=== RUN TestGenerationTakeMinio
=== RUN TestGenerationTakeMinio/take
2026/11/30 00:17:39 lease: instances/gen-1795997859112718238.shop.example.com: HA lease acquired in 5ms (first wake)
2026/11/30 00:17:39 lease: instances/gen-1795997859112718238.shop.example.com: HA lease acquired in 3ms (holder terminated)
gentake_minio_test.go:308: a second create-only copy onto instances/gen-1795997859112718238.shop.example.com/g-00000000000000000002/0000/0000000000000001-0000000000000001.ltx: <nil> (destination condition honoured: false)
2026/11/30 00:17: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"
2026/11/30 00:17:39 http: proxy error: context canceled
2026/11/30 00:17:39 ERROR retention enforcement failed system=store db=w.example.com.db error="enforce snapshot retention: remove ltx files: lease: a write has waited too long to reach storage (write fence)"
=== RUN TestGenerationTakeMinio/switch-412
2026/11/30 00:17:39 lease: instances/gen-1795997859238179787.shop.example.com: HA lease acquired in 3ms (first wake)
2026/11/30 00:17: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/11/30 00:17:39 lease: instances/gen-1795997859238179787.shop.example.com: HA lease acquired in 2ms (clean marker)
=== RUN TestGenerationTakeMinio/copy-version
=== RUN TestGenerationTakeMinio/store-time
2026/11/30 00:17:39 lease: instances/gen-1795997859289297893.shop.example.com: HA lease acquired in 3ms (first wake)
2026/11/30 00:17:39 ERROR retention enforcement failed system=store db=seed.db error="enforce snapshot retention: remove ltx files: lease: invalid or changed generation binding"
2026/11/30 00:17:39 lease: instances/gen-1795997859289297893.shop.example.com: HA lease acquired in 3ms (clean marker)
2026/11/30 00:17:39 lease: instances/gen-1795997859289297893.shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/11/30 00:17:39 lease: instances/gen-1795997859289297893.shop.example.com: HA lease acquired in 3ms (unclean marker)
2026/11/30 00:17:39 lease: instances/gen-1795997859289297893.shop.example.com: HA lease acquired in 3ms (unclean marker)
2026/11/30 00:17:39 lease: instances/gen-1795997859289297893.shop.example.com: HA lease acquired in 3ms (unclean marker)
=== RUN TestGenerationTakeMinio/skew
--- PASS: TestGenerationTakeMinio (0.34s)
--- PASS: TestGenerationTakeMinio/take (0.13s)
--- PASS: TestGenerationTakeMinio/switch-412 (0.04s)
--- PASS: TestGenerationTakeMinio/copy-version (0.01s)
--- PASS: TestGenerationTakeMinio/store-time (0.15s)
--- PASS: TestGenerationTakeMinio/skew (0.01s)
PASS
ok github.com/carlosframework/platform/internal/lease 0.353s
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 1m53.807s
codehealth_test.go:107: line metrics (code lines, then physical):
file-lines 5471 7324 internal/activator activator_test.go
file-lines 4191 7043 internal/console server.go
file-lines 4147 6311 . apimode.go
file-lines 3785 7224 internal/activator activator.go
file-lines 3530 4459 . apimode_test.go
file-lines 3261 3864 internal/registry registry_test.go
file-lines 3204 6398 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 1238 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 362 631 cmd/console serve
func-lines 360 362 internal/edge TestDemoAPIAliasBoundary
func-lines 357 358 internal/registry (*Registry).dispatchRemote
func-lines 355 372 internal/host TestRootSandboxUpdateFromOldBox
func-lines 343 354 internal/analytics Prune
func-lines 340 353 internal/host newColdRootHarness
func-lines 335 557 internal/console (*Store).migrate
func-lines 334 334 internal/host TestPlan12RecoveryRestoreSourceDatabase
func-lines 330 371 internal/edge TestRegionalNameNeverLeavesItsRegion
func-lines 329 471 . runDeploy
func-lines 329 329 internal/host TestPlan12RecoveryRestoreSourceDatabase.func1
func-lines 327 369 internal/edge TestTunnelWebSocketEndToEnd
func-lines 325 455 internal/objstore TestDeliveredContractMinio
func-lines 320 654 internal/appconfig SyncExecWithCallbacks
func-lines 315 318 internal/host plan14TimerIntention
func-lines 311 314 internal/host plan14TimerIntention.func1
func-lines 310 315 internal/hostbox ColdHandover.Run
func-lines 308 309 internal/host rootFilesSeedIsolatedWitness
func-lines 305 323 internal/host hairpinKernelWitness
func-lines 304 308 internal/console TestHAP2ProductionDoors
func-lines 302 329 internal/host TestRootG2PoolIngress
release-importers: . cmd/console internal/activator internal/analytics internal/appconfig internal/apperr internal/applog internal/apppolicy internal/boxid internal/boxvolumes internal/console internal/dbreads internal/dbreads/dbreadstest internal/dbverify internal/demobuild internal/domains internal/doorkey internal/edge internal/edgeproof internal/edgesfile internal/fleetapi internal/grouproll internal/grouprollaws internal/historyreadback internal/host internal/hostactors internal/hostbox internal/hostclaim internal/hostevidence internal/hostexec internal/hostfence internal/hostfiles internal/hostfloor internal/hostguard internal/hostops internal/hostrelocate internal/hostresolve internal/instancectl internal/instanceupdates internal/interactive internal/layout internal/lease internal/ledger internal/mail internal/mailer internal/mailsubmit internal/metrics internal/moves internal/objstore internal/ops internal/park internal/plans internal/provision internal/relay internal/rollout internal/rootfsimage internal/runs internal/s3fake internal/schedule internal/seeds internal/status internal/telemetry internal/usage internal/vet scripts/pathmapcheck scripts/witness-pointer
not scanned (216 files):
cmd/carlos-media/drill_other.go: built only for other systems or tags
cmd/carlos-media/harden_other.go: built only for other systems or tags
cmd/console/fleetsocket_other.go: built only for other systems or tags
cmd/console/servelock_windows.go: built only for other systems or tags
cmd/moveprobe/detach_windows.go: built only for other systems or tags
cmd/rootfswitness/mmap_other.go: built only for other systems or tags
devbox_acl_other.go: built only for other systems or tags
devbox_envfile_darwin_test.go: built only for other systems or tags
devbox_envfile_other.go: built only for other systems or tags
domains_transfer_signals_other.go: built only for other systems or tags
interactive_term_darwin.go: built only for other systems or tags
interactive_term_other.go: built only for other systems or tags
internal/activator/claimprocess_root_other.go: built only for other systems or tags
internal/activator/escrow_stamp_other.go: built only for other systems or tags
internal/activator/fleetreserve_other.go: built only for other systems or tags
internal/activator/harecord_other.go: built only for other systems or tags
internal/activator/ownenv_other.go: built only for other systems or tags
internal/activator/pty_other.go: built only for other systems or tags
internal/activator/race_on_test.go: built only for other systems or tags
internal/activator/rolelaunch_other.go: built only for other systems or tags
internal/assetcache/statfs_other.go: built only for other systems or tags
internal/boxself/io_other.go: built only for other systems or tags
internal/cgroup/cleanup_other.go: built only for other systems or tags
internal/cgroup/cleanup_other_test.go: built only for other systems or tags
internal/cgroup/hostprocs_other.go: built only for other systems or tags
internal/cgroup/recreate_other.go: built only for other systems or tags
internal/cgroup/role_other.go: built only for other systems or tags
internal/cgroup/shim_other.go: built only for other systems or tags
internal/cgroup/strict_other.go: built only for other systems or tags
internal/cgroup/verify_other.go: built only for other systems or tags
internal/console/claim_sql_identity_other.go: built only for other systems or tags
internal/console/geoipverify_other.go: built only for other systems or tags
internal/console/hostreports_process_other.go: built only for other systems or tags
internal/console/replicaview_other.go: built only for other systems or tags
internal/console/restore_sim_nice_other_test.go: built only for other systems or tags
internal/console/scalecost_other_test.go: built only for other systems or tags
internal/console/seedscratch_windows.go: built only for other systems or tags
internal/dbreads/worker_other.go: built only for other systems or tags
internal/demobuild/security_other.go: built only for other systems or tags
internal/democlaim/source_other.go: built only for other systems or tags
internal/devbox/peer_darwin.go: built only for other systems or tags
internal/devbox/peer_darwin_test.go: built only for other systems or tags
internal/devbox/peer_other.go: built only for other systems or tags
internal/devbox/socketcheck_other.go: built only for other systems or tags
internal/domains/certimport_read_portable.go: built only for other systems or tags
internal/edge/devboxpeer_other.go: built only for other systems or tags
internal/edge/hairpin_other.go: built only for other systems or tags
internal/edge/heldbudget_other.go: built only for other systems or tags
internal/edge/purge_listen_unix.go: built only for other systems or tags
internal/edge/purge_listen_windows.go: built only for other systems or tags
internal/edge/race_on_test.go: built only for other systems or tags
internal/edge/replicaconsole_owner_other.go: built only for other systems or tags
internal/edge/replicaconsole_peer_other.go: built only for other systems or tags
internal/edge/replicaconsole_socket_other_test.go: built only for other systems or tags
internal/edge/static_artifact_other.go: built only for other systems or tags
internal/edge/static_recordlock_other.go: built only for other systems or tags
internal/edge/static_sweep_other.go: built only for other systems or tags
internal/execsandbox/cleanup_other.go: built only for other systems or tags
internal/execsandbox/file_other.go: built only for other systems or tags
internal/execsandbox/oci_other.go: built only for other systems or tags
internal/fileacl/fileacl_darwin.go: built only for other systems or tags
internal/fileacl/fileacl_darwin_amd64.s: built only for other systems or tags
internal/fileacl/fileacl_darwin_arm64.s: built only for other systems or tags
internal/fileacl/fileacl_darwin_test.go: built only for other systems or tags
internal/grouproll/state_other.go: built only for other systems or tags
internal/grouprollaws/pty_darwin.go: built only for other systems or tags
internal/grouprollaws/pty_other.go: built only for other systems or tags
internal/hairpin/native_other.go: built only for other systems or tags
internal/host/applylock_other_test.go: built only for other systems or tags
internal/host/bootstrapfs_other.go: built only for other systems or tags
internal/host/boxroles_config_other.go: built only for other systems or tags
internal/host/claimfilesseed_delegation_other.go: built only for other systems or tags
internal/host/claimfilesseed_transport_other.go: built only for other systems or tags
internal/host/claimjournal_containment_other.go: built only for other systems or tags
internal/host/claimjournal_migration_other.go: built only for other systems or tags
internal/host/claimlaunch_kernel_other.go: built only for other systems or tags
internal/host/claimlaunch_rev2_other_test.go: built only for other systems or tags
internal/host/claimproduction_other.go: built only for other systems or tags
internal/host/claimready_other.go: built only for other systems or tags
internal/host/claimroleassembly_other.go: built only for other systems or tags
internal/host/claimservingartifact_other.go: built only for other systems or tags
internal/host/claimservinghandover_reboot_other.go: built only for other systems or tags
internal/host/claimservinghandover_reboot_other_test.go: built only for other systems or tags
internal/host/claimservingpark_other.go: built only for other systems or tags
internal/host/claimstate_other.go: built only for other systems or tags
internal/host/claimstop_kernel_other.go: built only for other systems or tags
internal/host/claimtoken_inventory_other.go: built only for other systems or tags
internal/host/claimunit_dropin_other.go: built only for other systems or tags
internal/host/claimunit_files_other.go: built only for other systems or tags
internal/host/claimunit_migrate_other.go: built only for other systems or tags
internal/host/claimunit_ready_other.go: built only for other systems or tags
internal/host/claimunit_socket_migration_other.go: built only for other systems or tags
internal/host/consolefleet_owner_other.go: built only for other systems or tags
internal/host/dbreads_other.go: built only for other systems or tags
internal/host/egress_rail_other.go: built only for other systems or tags
internal/host/fileowner_other.go: built only for other systems or tags
internal/host/flock_windows.go: built only for other systems or tags
internal/host/group_config_other.go: built only for other systems or tags
internal/host/group_maintenance_other.go: built only for other systems or tags
internal/host/group_maintenance_verbs_other.go: built only for other systems or tags
internal/host/group_receipt_other.go: built only for other systems or tags
internal/host/hadrain_call_other.go: built only for other systems or tags
internal/host/hadrain_socket_other.go: built only for other systems or tags
internal/host/hadrainfence_other.go: built only for other systems or tags
internal/host/headroom_other.go: built only for other systems or tags
internal/host/installchannel_other.go: built only for other systems or tags
internal/host/managedboot_other.go: built only for other systems or tags
internal/host/metrics_nested_other.go: built only for other systems or tags
internal/host/movesfloor_other.go: built only for other systems or tags
internal/host/movesfloorgate_other.go: built only for other systems or tags
internal/host/movesheldrelease_other.go: built only for other systems or tags
internal/host/movesmeasure_other.go: built only for other systems or tags
internal/host/offcloudcredentials_other.go: built only for other systems or tags
internal/host/registrychild_exec_other.go: built only for other systems or tags
internal/host/registrychild_other.go: built only for other systems or tags
internal/host/registryowner_chown_other.go: built only for other systems or tags
internal/host/registryowner_descriptor_unix.go: built only for other systems or tags
internal/host/replicahealth_other.go: built only for other systems or tags
internal/host/rootgeneration_census_other.go: built only for other systems or tags
internal/host/rootgeneration_kernel_other.go: built only for other systems or tags
internal/host/rootgeneration_payload_other.go: built only for other systems or tags
internal/host/rootgeneration_retired_other.go: built only for other systems or tags
internal/host/rootmigration_production_other.go: built only for other systems or tags
internal/host/runscset_other.go: built only for other systems or tags
internal/host/sandboxenv_other.go: built only for other systems or tags
internal/host/statfs_windows.go: built only for other systems or tags
internal/host/systemapply_other.go: built only for other systems or tags
internal/hostbox/census_vendor_other.go: built only for other systems or tags
internal/hostbox/inventory_identity_other.go: built only for other systems or tags
internal/hostbox/journalmigration_other.go: built only for other systems or tags
internal/hostbox/journalnamespace_other.go: built only for other systems or tags
internal/hostbox/journaltrust_other.go: built only for other systems or tags
internal/hostbox/migration_census_other.go: built only for other systems or tags
internal/hostbox/typedpark_other.go: built only for other systems or tags
internal/hostenv/group_other.go: built only for other systems or tags
internal/hostenv/write_other.go: built only for other systems or tags
internal/hostenv/write_other_test.go: built only for other systems or tags
internal/hostexec/clock_other.go: built only for other systems or tags
internal/hostexec/clock_other_test.go: built only for other systems or tags
internal/hostexec/local_other.go: built only for other systems or tags
internal/hostexec/pending_other.go: built only for other systems or tags
internal/hostexec/probe_other.go: built only for other systems or tags
internal/hostexec/rootprocess_other.go: built only for other systems or tags
internal/hostfiles/dir_other.go: built only for other systems or tags
internal/hostfiles/refuse_other.go: built only for other systems or tags
internal/hostfiles/watch_other.go: built only for other systems or tags
internal/hostfloor/controllers_other.go: built only for other systems or tags
internal/hostfloor/image_other.go: built only for other systems or tags
internal/hostguard/flock_other.go: built only for other systems or tags
internal/hostguard/flock_other_test.go: built only for other systems or tags
internal/hostguard/record_other.go: built only for other systems or tags
internal/instancectl/claimexec_other.go: built only for other systems or tags
internal/instancectl/claimexec_socket_other.go: built only for other systems or tags
internal/instancectl/claimlaunch_snapshot_other.go: built only for other systems or tags
internal/instancectl/claimnetwork_other.go: built only for other systems or tags
internal/instancectl/demo_snapshot_other.go: built only for other systems or tags
internal/instancectl/egress_cgroup_other.go: built only for other systems or tags
internal/instancectl/egress_dropin_other.go: built only for other systems or tags
internal/instancectl/fleetsize_other.go: built only for other systems or tags
internal/instancectl/gvisorprobe_other.go: built only for other systems or tags
internal/instancectl/peer_other.go: built only for other systems or tags
internal/instancectl/peer_tuple_other.go: built only for other systems or tags
internal/instancectl/rootfs_identity_other.go: built only for other systems or tags
internal/instanceexec/claimexec_other.go: built only for other systems or tags
internal/instanceexec/exec_rootfs_other.go: built only for other systems or tags
internal/instanceexec/netlink_route_other.go: built only for other systems or tags
internal/instanceexec/probe_gvisor_other.go: built only for other systems or tags
internal/instanceexec/probe_hardening_other.go: built only for other systems or tags
internal/instanceexec/probe_other.go: built only for other systems or tags
internal/instanceexec/probe_rootfs_other.go: built only for other systems or tags
internal/instanceexec/sandbox_other.go: built only for other systems or tags
internal/instanceexec/scope_other.go: built only for other systems or tags
internal/instanceexec/stop_other.go: built only for other systems or tags
internal/instanceexec/tty_other.go: built only for other systems or tags
internal/instancefs/instancefs_other.go: built only for other systems or tags
internal/launchd/activate_darwin.go: built only for other systems or tags
internal/launchd/activate_darwin_amd64.s: built only for other systems or tags
internal/launchd/activate_darwin_arm64.s: built only for other systems or tags
internal/launchd/activate_darwin_test.go: built only for other systems or tags
internal/layout/journal_other.go: built only for other systems or tags
internal/layout/links_other.go: built only for other systems or tags
internal/mailer/keys_other.go: built only for other systems or tags
internal/maintenanceexec/run_other.go: built only for other systems or tags
internal/managedboot/admission_other.go: built only for other systems or tags
internal/managedboot/identity_other.go: built only for other systems or tags
internal/mediahandler/collect_other.go: built only for other systems or tags
internal/mediahandler/procs_other.go: built only for other systems or tags
internal/medialocal/runner_other.go: built only for other systems or tags
internal/moves/archive/open_other.go: built only for other systems or tags
internal/moves/archive/sync_other.go: built only for other systems or tags
internal/ops/flock_windows.go: built only for other systems or tags
internal/park/local_other.go: built only for other systems or tags
internal/privatefile/io_other.go: built only for other systems or tags
internal/proxyproto/peek_other.go: built only for other systems or tags
internal/relay/race_on_test.go: built only for other systems or tags
internal/release/consumedfence_other.go: built only for other systems or tags
internal/release/digestcache_other.go: built only for other systems or tags
internal/rootaws/credentials_other.go: built only for other systems or tags
internal/rootaws/open_darwin.go: built only for other systems or tags
internal/rootfsimage/dir_other.go: built only for other systems or tags
internal/rootstate/authoritydir_other.go: built only for other systems or tags
internal/rootstate/authorityfile_other.go: built only for other systems or tags
internal/rootstate/file_other.go: built only for other systems or tags
internal/rootstate/link_other.go: built only for other systems or tags
internal/rootstate/persistent_other.go: built only for other systems or tags
internal/rootstate/state_other.go: built only for other systems or tags
internal/safefile/file_other.go: built only for other systems or tags
internal/safefile/reap_other.go: built only for other systems or tags
internal/stopevidence/fds_other.go: built only for other systems or tags
internal/stopevidence/fds_other_test.go: built only for other systems or tags
internal/stopevidence/holders_other.go: built only for other systems or tags
internal/stopevidence/reconstruct_other.go: built only for other systems or tags
internal/team/storelock_other.go: built only for other systems or tags
internal/team/storelock_windows.go: built only for other systems or tags
move_offline_run_other.go: built only for other systems or tags
system_group_other.go: built only for other systems or tags
codehealth_test.go:115: fatal 1093 at 474 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 18586 at 45 sites functions over 300 code lines (blank and comment-only lines not counted)
codehealth_test.go:115: file-lines 30683 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 (113.81s)
PASS
ok github.com/carlosframework/platform/internal/codehealth 114.836s
=== code-health-record ===
go version go1.26.10 linux/arm64
code-health record: HEAD is on main; comparing with its parent 4799995f73519e17658758951f597e603a5a00df
=== 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.694s
=== internal_rootaws@0 (26 s, from +35 s)
ok github.com/carlosframework/platform/internal/rootaws 25.358s
=== internal_activator@0 (277 s, from +113 s)
ok github.com/carlosframework/platform/internal/activator 275.420s
=== internal_activator@1 (244 s, from +113 s)
ok github.com/carlosframework/platform/internal/activator 241.566s
=== internal_activator@2 (271 s, from +113 s)
ok github.com/carlosframework/platform/internal/activator 269.026s
=== internal_activator@3 (399 s, from +113 s)
ok github.com/carlosframework/platform/internal/activator 396.967s
=== internal_activator@4 (288 s, from +113 s)
ok github.com/carlosframework/platform/internal/activator 285.665s
=== internal_activator@5 (297 s, from +113 s)
ok github.com/carlosframework/platform/internal/activator 295.336s
=== internal_activator@6 (322 s, from +113 s)
ok github.com/carlosframework/platform/internal/activator 319.984s
=== internal_activator@7 (436 s, from +113 s)
ok github.com/carlosframework/platform/internal/activator 433.855s
=== internal_edge@0 (85 s, from +135 s)
ok github.com/carlosframework/platform/internal/edge 81.890s
=== internal_edge@1 (76 s, from +135 s)
ok github.com/carlosframework/platform/internal/edge 72.344s
=== internal_edge@2 (204 s, from +135 s)
ok github.com/carlosframework/platform/internal/edge 200.517s
=== internal_edge@3 (153 s, from +135 s)
ok github.com/carlosframework/platform/internal/edge 149.823s
=== internal_edge@4 (146 s, from +135 s)
ok github.com/carlosframework/platform/internal/edge 142.946s
=== internal_edge@5 (286 s, from +135 s)
ok github.com/carlosframework/platform/internal/edge 282.310s
=== internal_edge@6 (224 s, from +135 s)
ok github.com/carlosframework/platform/internal/edge 220.249s
=== internal_edge@7 (245 s, from +135 s)
ok github.com/carlosframework/platform/internal/edge 241.494s
=== internal_edge@8 (224 s, from +135 s)
ok github.com/carlosframework/platform/internal/edge 220.113s
=== internal_edge@9 (289 s, from +135 s)
ok github.com/carlosframework/platform/internal/edge 285.568s
=== internal_edge@10 (243 s, from +135 s)
ok github.com/carlosframework/platform/internal/edge 239.063s
=== internal_edge@11 (239 s, from +135 s)
ok github.com/carlosframework/platform/internal/edge 235.155s
=== internal_edge@12 (242 s, from +135 s)
ok github.com/carlosframework/platform/internal/edge 238.466s
=== internal_edge@13 (269 s, from +135 s)
ok github.com/carlosframework/platform/internal/edge 265.449s
=== internal_edge@14 (172 s, from +135 s)
ok github.com/carlosframework/platform/internal/edge 168.012s
=== internal_edge@15 (258 s, from +135 s)
ok github.com/carlosframework/platform/internal/edge 254.696s
=== internal_host@0 (15 s, from +196 s)
ok github.com/carlosframework/platform/internal/host 11.433s
=== internal_host@1 (9 s, from +196 s)
ok github.com/carlosframework/platform/internal/host 5.781s
=== lists: internal_edge 135 s, internal_activator 112 s, internal_host 195 s, internal_rootaws 34 s, internal_systemd 14 s
=== cpu: the gate used 7698 cpu-seconds in 549 s, about 14.0 of 32 cores; the machine as a whole was 43% busy
=== gitleaks ===
go version go1.26.10 linux/arm64
go: downloading github.com/zricethezav/gitleaks/v8 v8.30.1
go: downloading github.com/spf13/cobra v1.9.1
go: downloading github.com/gitleaks/go-gitdiff v0.9.1
go: downloading github.com/h2non/filetype v1.1.3
go: downloading github.com/mholt/archives v0.1.2
go: downloading github.com/charmbracelet/lipgloss v0.5.0
go: downloading github.com/rs/zerolog v1.33.0
go: downloading github.com/fatih/semgroup v1.2.0
go: downloading golang.org/x/exp v0.0.0-20250218142911-aa4b98e5adaa
go: downloading github.com/BobuSumisu/aho-corasick v1.0.3
go: downloading github.com/Masterminds/sprig/v3 v3.3.0
go: downloading github.com/hashicorp/go-version v1.7.0
go: downloading github.com/spf13/viper v1.19.0
go: downloading golang.org/x/sync v0.11.0
go: downloading github.com/huandu/xstrings v1.5.0
go: downloading golang.org/x/crypto v0.35.0
go: downloading github.com/Masterminds/goutils v1.1.1
go: downloading github.com/Masterminds/semver/v3 v3.3.0
go: downloading github.com/mitchellh/copystructure v1.2.0
go: downloading github.com/spf13/cast v1.7.1
go: downloading github.com/shopspring/decimal v1.4.0
go: downloading dario.cat/mergo v1.0.1
go: downloading github.com/spf13/pflag v1.0.6
go: downloading github.com/fsnotify/fsnotify v1.8.0
go: downloading github.com/spf13/afero v1.12.0
go: downloading gopkg.in/ini.v1 v1.67.0
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/sagikazarmark/slog-shim v0.1.0
go: downloading github.com/subosito/gotenv v1.6.0
go: downloading github.com/magiconair/properties v1.8.9
go: downloading github.com/pelletier/go-toml/v2 v2.2.3
go: downloading github.com/andybalholm/brotli v1.1.2-0.20250424173009-453214e765f3
go: downloading github.com/STARRY-S/zip v0.2.1
go: downloading github.com/bodgit/sevenzip v1.6.0
go: downloading github.com/dsnet/compress v0.0.2-0.20230904184137-39efe44ab707
go: downloading github.com/klauspost/compress v1.17.11
go: downloading github.com/klauspost/pgzip v1.2.6
go: downloading github.com/minio/minlz v1.0.0
go: downloading github.com/nwaples/rardecode/v2 v2.1.0
go: downloading github.com/pierrec/lz4/v4 v4.1.21
go: downloading github.com/sorairolake/lzip-go v0.3.5
go: downloading github.com/therootcompany/xz v1.0.1
go: downloading github.com/ulikunitz/xz v0.5.12
go: downloading golang.org/x/text v0.22.0
go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
go: downloading github.com/mattn/go-runewidth v0.0.14
go: downloading github.com/muesli/reflow v0.2.1-0.20210115123740-9e1d0d53df68
go: downloading github.com/muesli/termenv v0.15.1
go: downloading github.com/mattn/go-colorable v0.1.14
go: downloading github.com/mitchellh/reflectwalk v1.0.2
go: downloading golang.org/x/sys v0.30.0
go: downloading github.com/bodgit/plumbing v1.3.0
go: downloading github.com/bodgit/windows v1.0.1
go: downloading github.com/hashicorp/go-multierror v1.1.1
go: downloading go4.org v0.0.0-20230225012048-214862532bf5
go: downloading github.com/hashicorp/golang-lru/v2 v2.0.7
go: downloading github.com/rivo/uniseg v0.2.0
go: downloading github.com/aymanbagabas/go-osc52/v2 v2.0.1
go: downloading github.com/hashicorp/errwrap v1.1.0
self-test: reported source file: a key
self-test: reported source file: a 64-hex key
self-test: reported source file: a census-shaped entry
self-test: reported source file: a key marked gitleaks:allow
self-test: reported source file: a test's fake value outside tests
self-test: reported allowed file: another key beside its allowed value
self-test: reported a tracked file named gitleaks-gate-sentinel.env
self-test: reported 100 near misses of the names notscanned.go lists
self-test: skipped the 33 files notscanned.go lists
self-test: refused a notscanned.go entry git does not track
self-test: refused a config that does not parse
self-test: refused a config that does not exist
self-test: refused a missing gitleaks binary
self-test: 6 planted keys reported, 134 tracked files judged, 3 broken setups refused
gitleaks: scanned 12018 tracked files; 33 not scanned, by exact path (scripts/gitleaks-gate/notscanned.go)
gitleaks: clean
diff --git a/docs/superpowers/notes/census-proposal-catchall-stamp-now.md b/docs/superpowers/notes/census-proposal-catchall-stamp-now.md| new file mode 100644 |
| index 000000000..904d17bef |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-proposal-catchall-stamp-now.md |
| @@ -0,0 +1,29 @@ |
| +# Census approval: catchall-stamp-now |
| + |
| +Ruling `census-ruling-catchall-stamp-now`. The independent reviewer approves or rejects every change below, 3 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) | #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/host/agent.go` `aliasPassReportingComplete` | body | unchanged (5) | #1516: hands rep.Unstamped and whether the pass was complete to watchUnstamped, an in-memory watch list that may wake the domains loop through a buffered channel; same reads and calls, body change only | |
| +| `internal/domains/reconcile.go` `StampHealth` | sites | -registry:Alias ×7, -registry:DNSCheckedAt ×2, -registry:DNSStatus ×4, -registry:Host ×6, -whole:Route ×5, -whole:RouteAlias ×11 | #1516: now a one-line wrapper over stampHealth(ctx, reg, cfg, routes, nil); its body moved there unchanged, hence its dropped sites | |
| + |
| +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 |
| +- `internal/host/agent.go` `aliasPassReportingComplete`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Extract the existing serialized alias pass, add cancellable locking and routing-only alias/regional publication from its completeness report; existing deployment/claim/registry reads retained, new in-memory Route/RegionalDomain passes.;rev3=census-ruling-fix-incomplete-domains-pass;basis=gains a startup bool parameter that it copies into domains.AliasReport.StartupNoRemoval; runHAIngressStartup passes true, aliasPassReporting (the ordinary agent pass) passes false; same reads and calls, body change only; no root pass calls it; no root decision;rev3=census-ruling-account-subdomains;basis=sets AliasReport.AppsDomain from PLATFORM_APPS_DOMAIN (trimmed), the variable domainsTickConfig reads; same reads and calls otherwise; body change only;rev3=census-ruling-sr-followups;basis=#966, the agent pass (user carlos, no root pass calls it): on a door box (doorFleet: no CARLOS_DEPLOYMENT_BUCKET or CARLOS_DEPLOYMENT_DIR and a fleet identity from the process environment, CARLOS_FLEET and its box label, as openDeployStoreEnv decides) it skips edgesfile.DeploymentRoutesComplete, the status/boxes/ list the store door refuses, and reports the route set incomplete (DeploymentRoutesPartial false, routesWhole false) as the refused list did. One store list fewer on door boxes, none added, every other box unchanged, no file, bucket or root call added |
| +- `internal/domains/reconcile.go` `StampHealth`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-dns-fresh-lookup-724;basis=section 4 now computes every cached verdict first, then freshUpgrade gives up to 64 randomly ordered names that could have a public zone (not under the apps domain, not special-use like .internal) and whose verdict is "" or "elsewhere" an uncached lookup (30 s pass budget) that may only upgrade to "pointing", then stamps; the extra sites are the indexed loops over the same rows (#724);rev3=census-ruling-no-negative-prime-724;basis=section 4 now hands each route and alias, with its previous stamp (the two new registry:DNSStatus reads, rt.DNSStatus and a.DNSStatus, same rows already listed), to dnsVerdicts, which first hands the pass's hostnames to Config.FreshRetain (the resolver forgets its in-memory backoff and strike for names no longer carried) and then decides each hostname once per pass and applies the verdict to every row carrying it: a name not "pointing" before this pass and eligible for a fresh lookup (public name, not under the apps domain, ResolveFresh set) is looked at uncached first within the same 64-lookup/30 s budget (shared, with previously "pointing" names' upgrade looks serviced before any fresh-first name so new names cannot starve a published one) and stamped from it (edge address, A or AAAA, "pointing", other "elsewhere", authoritative not-found "", authoritative NODATA for A and AAAA with the zone's SOA "" with no cached query), falling back to the cached lookup past the budget or on the second fresh failure in a row; the first fresh failure in a row is held (stamp and check time untouched, the resolver forgives it so the next pass asks fresh again); a previously "pointing" name keeps cached-first plus the upgrade-only fresh look (ResolveUpgrade, nearest zones first), so the fresh path still never unpublishes; a fresh-first name that ends the pass "pointing" (fresh or cached) has its fresh failure backoff cleared through Config.FreshForget, so an onboarding failure never suppresses the upgrade look that keeps it published; new names are ordered never-checked first then oldest check, and lookups answered from the backoff do not count against the budget; StampHealth's own body is unchanged by the last round; no new file, path or command input; the dropped Alias/Host/Route/RouteAlias sites are the old indexed loops folded into the candidate build (#724);rev3=census-ruling-account-subdomains;basis=reads the box's own account_namespaces table (only when DNS stamping runs) and leaves out of the DNS loop the alias rows isNamespaceDerived names (an alias under a held name, of that name's account, pointing at its sqid twin); if that read fails it logs and leaves out every alias two or more labels under the apps domain, still stamping every other alias, every route and all TLS expiry (fix round 1); the added RouteAlias sites are that filter over rows already listed; stamps less, never more; TLS stamping unchanged |
| + |
| +New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff: |
| + |
| +- new `internal/domains/reconcile.go:StampHealthHosts`: reads +registry:Alias ×2, +registry:CertExpiresAt ×3, +registry:DNSCheckedAt ×2, +registry:DNSStatus ×3, +whole:RouteAlias ×6; written legacy, accepted-legacy, frozen |
| +- new `internal/domains/reconcile.go:stampHealth`: reads +registry:Alias ×8, +registry:DNSCheckedAt ×2, +registry:DNSStatus ×4, +registry:Host ×6, +whole:Route ×6, +whole:RouteAlias ×18; written legacy, accepted-legacy, frozen |
| +- reads `internal/domains/aliases.go:deriveInstanceAliases`: +registry:DNSCheckedAt; keeps legacy, task accepted-legacy |
| + |
| +Seal: `0fdff597ef83fb9966e07c70b4283001eb97f7dfa71a83a19bde92382192eb6b` → `c9940b1b6fb0146a30a2fb2b557f898ac6d28ba80df7dfe642cc623b581f347b`. |
| + |
| +Overlay: `internal/provision/testdata/plan14-root-reads-catchall-stamp-now.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
diff --git a/internal/console/domainstate.go b/internal/console/domainstate.go| index 9c5c304e0..12591bd13 100644 |
| --- a/internal/console/domainstate.go |
| +++ b/internal/console/domainstate.go |
| @@ -115,9 +115,16 @@ const domainFailedAttempts = 3 |
| // none — and nil is the ordinary case, because a record exists only while a |
| // host is failing. |
| func domainState(reading status.AliasReading, seen bool, warm *certwarm.Record, now time.Time) (state, reason, detail string) { |
| + const notYet = "No edge has reported on this hostname yet. Checks run every few minutes, so this should settle shortly after attaching." |
| if !seen { |
| - return StateChecking, "no-reading", |
| - "No edge has reported on this hostname yet. Checks run every few minutes, so this should settle shortly after attaching." |
| + return StateChecking, "no-reading", notYet |
| + } |
| + // A row a box carries but has never looked up (an instance catch-all |
| + // name the alias pass just derived, #1516) has no verdict, which is |
| + // "checking", not the customer's missing record. The fold keeps the |
| + // freshest stamp, so this reading wins only when no box has checked. |
| + if reading.DNSStatus == "" && reading.DNSCheckedAt == 0 { |
| + return StateChecking, "not-checked-yet", notYet |
| } |
| switch reading.DNSStatus { |
| case "unresolved": |
diff --git a/internal/console/domainstate_test.go b/internal/console/domainstate_test.go| index 41bfbc2f6..21effadad 100644 |
| --- a/internal/console/domainstate_test.go |
| +++ b/internal/console/domainstate_test.go |
| @@ -21,14 +21,15 @@ func TestDomainStateVocabulary(t *testing.T) { |
| wantState string |
| wantReason string |
| }{ |
| - "no box has reported": {seen: false, wantState: StateChecking, wantReason: "no-reading"}, |
| - "our lookup failed": {reading: status.AliasReading{DNSStatus: "unresolved"}, seen: true, wantState: StateUnknown, wantReason: "lookup-failed"}, |
| - "no record yet": {reading: status.AliasReading{DNSStatus: ""}, seen: true, wantState: StatePendingDNS, wantReason: "no-record"}, |
| - "points elsewhere": {reading: status.AliasReading{DNSStatus: "elsewhere"}, seen: true, wantState: StateMisdirected, wantReason: "points-elsewhere"}, |
| - "pointing, no cert": {reading: status.AliasReading{DNSStatus: "pointing"}, seen: true, wantState: StateIssuingCert, wantReason: "awaiting-certificate"}, |
| - "pointing, dead cert": {reading: status.AliasReading{DNSStatus: "pointing", CertExpiresAt: past}, seen: true, wantState: StateIssuingCert, wantReason: "awaiting-certificate"}, |
| - "pointing, live cert": {reading: status.AliasReading{DNSStatus: "pointing", CertExpiresAt: future}, seen: true, wantState: StateLive, wantReason: "serving"}, |
| - "a status we don't know": {reading: status.AliasReading{DNSStatus: "quantum"}, seen: true, wantState: StateUnknown, wantReason: "unrecognised-status"}, |
| + "no box has reported": {seen: false, wantState: StateChecking, wantReason: "no-reading"}, |
| + "our lookup failed": {reading: status.AliasReading{DNSStatus: "unresolved"}, seen: true, wantState: StateUnknown, wantReason: "lookup-failed"}, |
| + "no record yet": {reading: status.AliasReading{DNSStatus: "", DNSCheckedAt: now.Unix()}, seen: true, wantState: StatePendingDNS, wantReason: "no-record"}, |
| + "never looked up (#1516)": {reading: status.AliasReading{DNSStatus: ""}, seen: true, wantState: StateChecking, wantReason: "not-checked-yet"}, |
| + "points elsewhere": {reading: status.AliasReading{DNSStatus: "elsewhere"}, seen: true, wantState: StateMisdirected, wantReason: "points-elsewhere"}, |
| + "pointing, no cert": {reading: status.AliasReading{DNSStatus: "pointing"}, seen: true, wantState: StateIssuingCert, wantReason: "awaiting-certificate"}, |
| + "pointing, dead cert": {reading: status.AliasReading{DNSStatus: "pointing", CertExpiresAt: past}, seen: true, wantState: StateIssuingCert, wantReason: "awaiting-certificate"}, |
| + "pointing, live cert": {reading: status.AliasReading{DNSStatus: "pointing", CertExpiresAt: future}, seen: true, wantState: StateLive, wantReason: "serving"}, |
| + "a status we don't know": {reading: status.AliasReading{DNSStatus: "quantum"}, seen: true, wantState: StateUnknown, wantReason: "unrecognised-status"}, |
| } { |
| state, reason, detail := domainState(tc.reading, tc.seen, nil, now) |
| if state != tc.wantState || reason != tc.wantReason { |
| @@ -47,7 +48,7 @@ func TestDomainStateVocabulary(t *testing.T) { |
| func TestDomainStateNeverBlamesTheCustomerForOurOutage(t *testing.T) { |
| now := time.Unix(1_000_000, 0) |
| ourFault, _, ourDetail := domainState(status.AliasReading{DNSStatus: "unresolved"}, true, nil, now) |
| - theirs, _, _ := domainState(status.AliasReading{DNSStatus: ""}, true, nil, now) |
| + theirs, _, _ := domainState(status.AliasReading{DNSStatus: "", DNSCheckedAt: now.Unix()}, true, nil, now) |
| if ourFault == theirs { |
| t.Fatalf("a failed lookup and a missing record both read %q", ourFault) |
| } |
| @@ -84,6 +85,7 @@ func TestAdvertisedStatesAreExactlyTheReachableOnes(t *testing.T) { |
| {seen: false}, |
| {r: status.AliasReading{DNSStatus: "unresolved"}, seen: true}, |
| {r: status.AliasReading{DNSStatus: ""}, seen: true}, |
| + {r: status.AliasReading{DNSStatus: "", DNSCheckedAt: now.Unix()}, seen: true}, |
| {r: status.AliasReading{DNSStatus: "elsewhere"}, seen: true}, |
| {r: status.AliasReading{DNSStatus: "pointing"}, seen: true}, |
| {r: status.AliasReading{DNSStatus: "pointing", CertExpiresAt: now.Unix() + 86400}, seen: true}, |
diff --git a/internal/domains/aliases.go b/internal/domains/aliases.go| index f829c3d6f..3560c8285 100644 |
| --- a/internal/domains/aliases.go |
| +++ b/internal/domains/aliases.go |
| @@ -132,7 +132,7 @@ func sayInstanceCatchallOnce(host, reason string) { |
| // The result is true when the pass was INCOMPLETE here: the label count |
| // failed (the names were kept, not decided), a label's count was unknown, |
| // or an alias write failed. The caller folds it into the pass's report. |
| -func deriveInstanceAliases(claims []Claim, listed map[string]bool, routes []registry.Route, byHost map[string]registry.Route, existing []registry.RouteAlias, deploymentRoutes map[string]bool, desired map[string]bool, labelHosts func(account, app string) (map[string]int, map[string]bool, error), budget *int, reg *registry.Registry, now func() time.Time) (incomplete bool) { |
| +func deriveInstanceAliases(claims []Claim, listed map[string]bool, routes []registry.Route, byHost map[string]registry.Route, existing []registry.RouteAlias, deploymentRoutes map[string]bool, desired map[string]bool, labelHosts func(account, app string) (map[string]int, map[string]bool, error), budget *int, reg *registry.Registry, now func() time.Time, unstamped func(name string)) (incomplete bool) { |
| claimed := make(map[string]Claim, len(claims)) |
| for _, c := range claims { |
| claimed[c.Host] = c |
| @@ -244,6 +244,9 @@ func deriveInstanceAliases(claims []Claim, listed map[string]bool, routes []regi |
| *budget-- |
| desired[name] = true |
| if a, ok := have[name]; ok && a.Host == rt.Host && a.Account == c.Account && a.App == c.App { |
| + if a.DNSCheckedAt == 0 && unstamped != nil { |
| + unstamped(name) // written earlier, never looked at yet (#1516) |
| + } |
| continue // already the row we want: no write, so no reload |
| } |
| if err := reg.UpsertAlias(registry.RouteAlias{ |
| @@ -252,6 +255,8 @@ func deriveInstanceAliases(claims []Claim, listed map[string]bool, routes []regi |
| }); err != nil { |
| log.Printf("domains: upsert instance alias %s: %v", name, err) |
| incomplete = true |
| + } else if unstamped != nil { |
| + unstamped(name) |
| } |
| } |
| } |
| @@ -312,6 +317,13 @@ type AliasReport struct { |
| // Complete is the pass's answer; written by ReconcileAliasesReport. |
| Complete bool |
| + // Unstamped is an OUTPUT: the instance catch-all names (deriveInstanceAliases) |
| + // this pass wrote, or found written, whose DNS has never been checked. |
| + // Nothing else looks at such a row until the domains loop's next |
| + // five-minute tick, so the agent hands these to it for an early, |
| + // host-scoped stamp (StampHealthHosts, #1516): the name's record is the |
| + // parent's wildcard, there before the instance was. |
| + Unstamped []string |
| // DeploymentRoutesPartial is an INPUT, set by the caller before the pass: |
| // the deploymentRoutes it passes came from a read that skipped an |
| // unusable edges file (edgesfile.DeploymentRoutesComplete said so). The |
| @@ -411,6 +423,13 @@ func relevantDropped(dropped []droppedClaim, routes []registry.Route, aliases [] |
| return out |
| } |
| +// noteUnstamped adds name to Unstamped; a nil report keeps nothing. |
| +func (r *AliasReport) noteUnstamped(name string) { |
| + if r != nil { |
| + r.Unstamped = append(r.Unstamped, name) |
| + } |
| +} |
| + |
| // ReconcileAliasesReport is ReconcileAliases plus a completeness report. A |
| // nil rep is legal (ReconcileAliases passes one). rep.Complete is false on |
| // every error return, and is otherwise written once, at the end, true only if |
| @@ -439,6 +458,7 @@ func ReconcileAliasesReport(ctx context.Context, s release.Store, reg *registry. |
| rep.Complete = false // any early error return leaves it so |
| rep.RegionalIngress = map[string]registry.RegionalDomain{} |
| rep.AliasIngress = map[string]registry.Route{} |
| + rep.Unstamped = nil |
| } |
| // incomplete is set at every point that logs a failure and carries on; |
| // the report is written once, at the end. |
| @@ -709,7 +729,7 @@ func ReconcileAliasesReport(ctx context.Context, s release.Store, reg *registry. |
| // The judge rides in the pass's context (provision.WithLifetimes |
| // records it here too); none is today's key count. |
| return InstanceLabelCountsJudged(ctx, s, InstanceObserverFrom(ctx), account, app, 2) |
| - }, &budget, reg, now) { |
| + }, &budget, reg, now, rep.noteUnstamped) { |
| incomplete = true |
| } |
| noRemoval := rep != nil && rep.StartupNoRemoval |
diff --git a/internal/domains/instancecatchall_test.go b/internal/domains/instancecatchall_test.go| index eff0f61e2..2e2e38d7f 100644 |
| --- a/internal/domains/instancecatchall_test.go |
| +++ b/internal/domains/instancecatchall_test.go |
| @@ -4,6 +4,8 @@ import ( |
| "context" |
| "encoding/json" |
| "errors" |
| + "slices" |
| + "sort" |
| "strconv" |
| "strings" |
| "testing" |
| @@ -543,3 +545,36 @@ func TestInstanceLabelCounts(t *testing.T) { |
| t.Fatalf("counts = %v, %v", got, err) |
| } |
| } |
| + |
| +// #1516: the pass reports the names it derived that no stamp has looked at |
| +// yet, so the agent can stamp them at once instead of at its next tick. A |
| +// name already stamped is not reported again. |
| +func TestInstanceCatchallReportsUnstampedNames(t *testing.T) { |
| + s := jellyStore(t) |
| + reg := aliasRegWith(t) |
| + addInstance(t, reg, "acme.bad.carlos.exciting.io", "acme", "bad", "dev-managed-jelly") |
| + addInstance(t, reg, "smoketest.bad.carlos.exciting.io", "smoketest", "bad", "dev-managed-jelly") |
| + pass := func() []string { |
| + t.Helper() |
| + var rep AliasReport |
| + if err := ReconcileAliasesReport(context.Background(), s, reg, aliasNow(), nil, nil, &rep); err != nil { |
| + t.Fatal(err) |
| + } |
| + sort.Strings(rep.Unstamped) |
| + return rep.Unstamped |
| + } |
| + if got := pass(); !slices.Equal(got, []string{"acme.letsjelly.dev", "smoketest.letsjelly.dev"}) { |
| + t.Fatalf("first pass reported %v, want both new names", got) |
| + } |
| + // Written but still never looked at (an agent restarted mid-wait): still |
| + // reported. |
| + if got := pass(); len(got) != 2 { |
| + t.Fatalf("second pass reported %v, want both names again", got) |
| + } |
| + if err := reg.SetAliasDNSStatus("acme.letsjelly.dev", "pointing", 100); err != nil { |
| + t.Fatal(err) |
| + } |
| + if got := pass(); !slices.Equal(got, []string{"smoketest.letsjelly.dev"}) { |
| + t.Fatalf("after a stamp the pass reported %v, want only the unstamped name", got) |
| + } |
| +} |
diff --git a/internal/domains/reconcile.go b/internal/domains/reconcile.go| index 6a6cd1f3a..b224589d6 100644 |
| --- a/internal/domains/reconcile.go |
| +++ b/internal/domains/reconcile.go |
| @@ -452,6 +452,93 @@ func Reconcile(ctx context.Context, s release.Store, reg *registry.Registry, cfg |
| // routes may be nil, in which case the registry is listed here. Inert with |
| // no AppsDomain, per Config's contract. |
| func StampHealth(ctx context.Context, reg *registry.Registry, cfg Config, routes []registry.Route) error { |
| + return stampHealth(ctx, reg, cfg, routes, nil) |
| +} |
| + |
| +// StampHealthHosts is StampHealth for the named aliases alone, run between |
| +// the loop's ticks so a name the alias pass just derived is judged in |
| +// seconds rather than at the next five-minute tick (#1516). Routes are not |
| +// stamped, and neither is any other alias. The verdict rules are |
| +// StampHealth's own (fresh-first for a name not yet pointing, the |
| +// two-strike rule, the hold on our own failures), but the pass does not |
| +// hand its names to cfg.FreshRetain: they are not every name the box |
| +// carries, and retaining only them would drop the resolver's memory of |
| +// every other name. |
| +// |
| +// An error after the stamp ran (re-reading the rows) comes with changed |
| +// true, since the stamps may have moved; an error before it, with false. |
| +// |
| +// It answers which of hosts are settled: pointing with a certificate that |
| +// has not expired, or no longer an alias row here at all. A watcher stops |
| +// asking about those. changed is whether any named row's DNS verdict, |
| +// certificate expiry or checked-at-all moved in this pass, which is what the |
| +// status snapshot and the edges file need to hear about. |
| +func StampHealthHosts(ctx context.Context, reg *registry.Registry, cfg Config, hosts []string) (settled []string, changed bool, err error) { |
| + if cfg.AppsDomain == "" || len(hosts) == 0 { |
| + return nil, false, nil |
| + } |
| + if cfg.Now == nil { |
| + cfg.Now = time.Now |
| + } |
| + only := make(map[string]bool, len(hosts)) |
| + for _, h := range hosts { |
| + only[stampKey(h)] = true |
| + } |
| + read := func() (map[string]registry.RouteAlias, error) { |
| + all, err := reg.ListAliases() |
| + if err != nil { |
| + return nil, fmt.Errorf("domains: list aliases: %w", err) |
| + } |
| + rows := map[string]registry.RouteAlias{} |
| + for _, a := range all { |
| + if only[stampKey(a.Alias)] { |
| + rows[stampKey(a.Alias)] = a |
| + } |
| + } |
| + return rows, nil |
| + } |
| + before, err := read() |
| + if err != nil { |
| + return nil, false, err |
| + } |
| + cfg.FreshRetain = nil |
| + if err := stampHealth(ctx, reg, cfg, []registry.Route{}, only); err != nil { |
| + return nil, false, err |
| + } |
| + after, err := read() |
| + if err != nil { |
| + // The stamps may have been written: say changed, so the caller |
| + // still wakes the publishers. On its retry the written rows are |
| + // the "before", and the change would not be seen again. |
| + return nil, true, err |
| + } |
| + now := cfg.Now().Unix() |
| + for _, h := range hosts { |
| + a, ok := after[stampKey(h)] |
| + if !ok { |
| + settled = append(settled, h) |
| + continue |
| + } |
| + b := before[stampKey(h)] |
| + // A first verdict that leaves the status "" (no record) is news |
| + // too: the console reads a row never checked as checking. |
| + if a.DNSStatus != b.DNSStatus || a.CertExpiresAt != b.CertExpiresAt || |
| + (b.DNSCheckedAt == 0) != (a.DNSCheckedAt == 0) { |
| + changed = true |
| + } |
| + if a.DNSStatus == "pointing" && a.CertExpiresAt > now { |
| + settled = append(settled, h) |
| + } |
| + } |
| + return settled, changed, nil |
| +} |
| + |
| +// stampKey is how StampHealthHosts matches a name to its row. |
| +func stampKey(host string) string { return strings.ToLower(strings.TrimSuffix(host, ".")) } |
| + |
| +// stampHealth is StampHealth, limited to the aliases in only when only is |
| +// not nil (StampHealthHosts). |
| +func stampHealth(ctx context.Context, reg *registry.Registry, cfg Config, routes []registry.Route, only map[string]bool) error { |
| if cfg.AppsDomain == "" { |
| return nil |
| } |
| @@ -476,6 +563,15 @@ func StampHealth(ctx context.Context, reg *registry.Registry, cfg Config, routes |
| if err != nil { |
| return fmt.Errorf("domains: list aliases: %w", err) |
| } |
| + if only != nil { |
| + kept := aliases[:0] |
| + for _, a := range aliases { |
| + if only[stampKey(a.Alias)] { |
| + kept = append(kept, a) |
| + } |
| + } |
| + aliases = kept |
| + } |
| } |
| // The account namespaces' derived rows (spec §4.4, §4.7) are not |
| // DNS-stamped here: the alias pass keeps each "pointing" |
diff --git a/internal/domains/stamphosts_test.go b/internal/domains/stamphosts_test.go| new file mode 100644 |
| index 000000000..9faff0dd5 |
| --- /dev/null |
| +++ b/internal/domains/stamphosts_test.go |
| @@ -0,0 +1,113 @@ |
| +package domains_test |
| + |
| +import ( |
| + "context" |
| + "testing" |
| + "time" |
| + |
| + "github.com/carlosframework/platform/internal/domains" |
| + "github.com/carlosframework/platform/internal/registry" |
| +) |
| + |
| +// #1516: an instance catch-all name is born unstamped, and before this |
| +// nothing looked at it until the domains loop's next five-minute tick. |
| +// StampHealthHosts is the early stamp: the named aliases only, by |
| +// StampHealth's own rules. |
| + |
| +func TestStampHealthHostsStampsOnlyTheNamedAliases(t *testing.T) { |
| + reg := regWithAlias(t, "new.patrix.site") |
| + if err := reg.UpsertAlias(registry.RouteAlias{Alias: "other.example.com", Host: "app.acct.oncarlos.test", Account: "acct", App: "app"}); err != nil { |
| + t.Fatal(err) |
| + } |
| + var calls []string |
| + cfg := freshCfg(pointingAt, pointingAt, &calls) |
| + retained := false |
| + cfg.FreshRetain = func([]string) { retained = true } |
| + |
| + settled, changed, err := domains.StampHealthHosts(context.Background(), reg, cfg, []string{"New.Patrix.Site."}) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + if got := aliasStatus(t, reg, "new.patrix.site"); got != "pointing" { |
| + t.Fatalf("named alias dns_status = %q, want pointing", got) |
| + } |
| + if got := aliasRow(t, reg, "other.example.com"); got.DNSStatus != "" || got.DNSCheckedAt != 0 { |
| + t.Fatalf("an alias not named was stamped: %+v", got) |
| + } |
| + if got := mustGet(t, reg, "app.acct.oncarlos.test"); got.DNSCheckedAt != 0 { |
| + t.Fatalf("a route was stamped: %+v", got) |
| + } |
| + if len(calls) != 1 || calls[0] != "new.patrix.site" { |
| + t.Fatalf("fresh lookups = %v, want [new.patrix.site]", calls) |
| + } |
| + // Retaining only the named names would drop the resolver's memory of |
| + // every other name the box carries. |
| + if retained { |
| + t.Fatal("a host-scoped stamp handed its names to FreshRetain") |
| + } |
| + if !changed { |
| + t.Fatal("the verdict moved from none to pointing, but changed is false") |
| + } |
| + if len(settled) != 0 { |
| + t.Fatalf("settled = %v with no certificate yet, want none", settled) |
| + } |
| + |
| + // Nothing moves on a second look: not changed, still not settled. |
| + settled, changed, err = domains.StampHealthHosts(context.Background(), reg, cfg, []string{"new.patrix.site"}) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + if changed || len(settled) != 0 { |
| + t.Fatalf("second look: settled %v changed %v, want none and false", settled, changed) |
| + } |
| +} |
| + |
| +func TestStampHealthHostsSettlesOnACertificate(t *testing.T) { |
| + reg := regWithAlias(t, "new.patrix.site") |
| + var calls []string |
| + cfg := freshCfg(pointingAt, pointingAt, &calls) |
| + cfg.AcmeDir = t.TempDir() |
| + writeCertBundle(t, cfg.AcmeDir, "new.patrix.site", time.Unix(5000, 0).Add(90*24*time.Hour)) |
| + |
| + settled, changed, err := domains.StampHealthHosts(context.Background(), reg, cfg, []string{"new.patrix.site", "gone.patrix.site"}) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + if !changed { |
| + t.Fatal("changed is false") |
| + } |
| + want := map[string]bool{"new.patrix.site": true, "gone.patrix.site": true} |
| + if len(settled) != 2 || !want[settled[0]] || !want[settled[1]] { |
| + t.Fatalf("settled = %v, want the pointing name with a certificate and the name with no row", settled) |
| + } |
| +} |
| + |
| +// A name whose record is missing is stamped "" with its check time, so the |
| +// console tells the customer, and it stays watched. |
| +func TestStampHealthHostsRecordMissing(t *testing.T) { |
| + reg := regWithAlias(t, "new.patrix.site") |
| + var calls []string |
| + cfg := freshCfg(nxdomain, nxdomain, &calls) |
| + settled, changed, err := domains.StampHealthHosts(context.Background(), reg, cfg, []string{"new.patrix.site"}) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + if !changed { |
| + t.Fatal("never checked to checked is a change the console must hear") |
| + } |
| + if got := aliasRow(t, reg, "new.patrix.site"); got.DNSStatus != "" || got.DNSCheckedAt == 0 { |
| + t.Fatalf("row = %+v, want an authoritative \"\" with its check time", got) |
| + } |
| + if len(settled) != 0 { |
| + t.Fatalf("settled = %v, want none", settled) |
| + } |
| +} |
| + |
| +func TestStampHealthHostsInertWithoutNames(t *testing.T) { |
| + reg := regWithAlias(t, "new.patrix.site") |
| + var calls []string |
| + settled, changed, err := domains.StampHealthHosts(context.Background(), reg, freshCfg(pointingAt, pointingAt, &calls), nil) |
| + if err != nil || changed || settled != nil || len(calls) != 0 { |
| + t.Fatalf("no names: settled %v changed %v err %v lookups %v", settled, changed, err, calls) |
| + } |
| +} |
diff --git a/internal/host/agent.go b/internal/host/agent.go| index 2b5947037..dac79e5b6 100644 |
| --- a/internal/host/agent.go |
| +++ b/internal/host/agent.go |
| @@ -1623,6 +1623,7 @@ func aliasPassReportingComplete(ctx context.Context, store release.Store, reg *r |
| 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 |
| @@ -4616,10 +4617,9 @@ func domainsLoop(reg *registry.Registry, acmeCacheFlag string, hostClaim bool) { |
| return domains.Reconcile(ctx, store, reg, cfg) |
| }) |
| fleetBox := shouldSkipPublisherElection(os.Getenv) |
| - delay := time.Minute |
| + early := newEarlyStamper(reg, cfg, fleetBox, time.Minute) |
| for { |
| - time.Sleep(delay) |
| - delay = 5*time.Minute + rand.N(time.Minute) |
| + early.wait(ctx) // the next tick; early stamps for new names meanwhile (stampwatch.go) |
| // The deployment-global half, gated; then the per-box half on EVERY |
| // platform box (#303): DNS and TLS health stamp this box's own |
| // registry from this box's own view, no lease involved, ONCE per |
diff --git a/internal/host/edgesfile.go b/internal/host/edgesfile.go| index f7849e24f..82220f941 100644 |
| --- a/internal/host/edgesfile.go |
| +++ b/internal/host/edgesfile.go |
| @@ -1413,6 +1413,11 @@ func edgesFileLoop(reg *registry.Registry, lifetimes bool, assets *assetPolicy, |
| // EC2 each read can block for the probe's whole timeout. |
| eip := readPublicIP() |
| for now := range tick.C { |
| + select { |
| + case <-edgesStampNudge: |
| + state.stampsChanged() |
| + default: |
| + } |
| armedFixedAdmission.Load().tick(context.Background()) |
| fp, err := reg.Fingerprint() |
| if err != nil { |
diff --git a/internal/host/edgesschedule.go b/internal/host/edgesschedule.go| index 8d3dbc961..5f9831dea 100644 |
| --- a/internal/host/edgesschedule.go |
| +++ b/internal/host/edgesschedule.go |
| @@ -12,8 +12,17 @@ type edgesLoopState struct { |
| sched *edgesFileSchedule |
| schedDue bool |
| assetDue bool |
| + // stampsDue: a DNS or certificate stamp on one of this box's names moved |
| + // between ticks (stampsChanged). The fingerprint leaves those stamps out |
| + // on purpose, so without this the name would wait for the timer to be |
| + // published (#1516). Cleared by the next pass that succeeds. |
| + stampsDue bool |
| } |
| +// stampsChanged makes a pass due on the next tick, as a fingerprint change |
| +// would, with the schedule's retry backoff. |
| +func (s *edgesLoopState) stampsChanged() { s.stampsDue = true } |
| + |
| // due reports whether to run a pass on this tick. |
| func (s *edgesLoopState) due(now time.Time, fp string, fpOK bool) bool { |
| return s.dueWith(now, fp, fpOK, false) |
| @@ -26,7 +35,7 @@ func (s *edgesLoopState) due(now time.Time, fp string, fpOK bool) bool { |
| // asked on every tick. It is never the timer's. |
| func (s *edgesLoopState) dueWith(now time.Time, fp string, fpOK, assetsDue bool) bool { |
| s.schedDue = s.sched.due(now, fp, fpOK) |
| - s.assetDue = assetsDue && !now.Before(s.sched.retryAt) |
| + s.assetDue = (assetsDue || s.stampsDue) && !now.Before(s.sched.retryAt) |
| return s.schedDue || s.assetDue |
| } |
| @@ -40,6 +49,9 @@ func (s *edgesLoopState) timed() bool { return s.schedDue && s.sched.timed } |
| func (s *edgesLoopState) done(now time.Time, ok bool) { |
| if s.schedDue || s.assetDue { |
| s.sched.done(now, ok) |
| + if ok { |
| + s.stampsDue = false // every pass publishes the stamps as they are |
| + } |
| } |
| } |
diff --git a/internal/host/group_names_test.go b/internal/host/group_names_test.go| index 109922428..3a495ba48 100644 |
| --- a/internal/host/group_names_test.go |
| +++ b/internal/host/group_names_test.go |
| @@ -490,6 +490,16 @@ func (p *haIngressProjection) publishAliases(names map[string]Route) { p.aliases |
| // entry to the hosts map: no name is published, derived or made locally |
| // served; a selection through it is checked at request time (§5.3). |
| // |
| +// Early stamps for instance catch-all names (#1516) keep the existing name |
| +// classes: |
| +// - deriveInstanceAliases also reports, through a callback, each name it |
| +// wrote or found written whose DNS has never been checked. It derives, |
| +// writes and caps exactly as before; the report changes no row. |
| +// - ReconcileAliasesReport collects those names in AliasReport.Unstamped |
| +// (noteUnstamped), |
| +// an output the agent uses only to stamp them early |
| +// (domains.StampHealthHosts). No name is minted, published or renamed. |
| +// |
| // TestHAIngressNamesWithoutLocalRow, TestHAIngressAliasBinding and |
| // TestHAIngressStartupNames exercise these existing name classes end to end. |
| var groupNameProducerInventory = map[string]string{ |
| @@ -503,11 +513,11 @@ 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": "1d4e6fce767e9b72eabad602db74d895c344b61ba23ded81022fab8e51ffd01f", |
| + "../domains/aliases.go:ReconcileAliasesReport": "62be26c027c4d37704783c965dedb8f2e6dff7256d0bce9ae79471b2a6f6f373", |
| // 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", |
| - "../domains/aliases.go:deriveInstanceAliases": "8393d746112286a43f77877067c1d4eaf8035e588c02acad71364b58e93f9a9c", |
| + "../domains/aliases.go:deriveInstanceAliases": "f81d4ea35478d67b610355b71a357c22346f401a68d06c95a9c371351b85147a", |
| "../domains/namespacealiases.go:deriveNamespaceAliases": "b4066d58cc5618c1323dadfc885d940143ba3abbcee0287df9639578e45fb67d", |
| "../domains/namespacealiases.go:repairNamespaceStatus": "1b9bae5baa6aeb724e484f17edaaafecc1df9d249f7c8723e9581be83b0536c0", |
| "../domains/aliases.go:deriveRegional": "79fd7c432e6b0a9ffd945312851e52af2c450769416ef44ff9a4bea681b44cde", |
diff --git a/internal/host/rollout.go b/internal/host/rollout.go| index ca7aeeb66..7d20b1530 100644 |
| --- a/internal/host/rollout.go |
| +++ b/internal/host/rollout.go |
| @@ -71,8 +71,10 @@ func armedRollout() *rollout.Manager { return rolloutMgr.Load() } |
| // statusNudge asks the status loop for an early tick: a rollout transition |
| // should reach status/boxes/<label>.json in seconds, not at the next |
| -// five-minute tick. Never sent to with the flag off. Capacity one, and every |
| -// send is non-blocking, so a burst of transitions is one nudge. |
| +// five-minute tick. The domains loop sends it too, when an early stamp of a |
| +// newly derived name moves (#1516), so the console sees the name go live. |
| +// Capacity one, and every send is non-blocking, so a burst of transitions is |
| +// one nudge. |
| var statusNudge = make(chan struct{}, 1) |
| // nudgeStatus is the scheduler's OnChange: a non-blocking send that |
diff --git a/internal/host/stampwatch.go b/internal/host/stampwatch.go| new file mode 100644 |
| index 000000000..9c2c2ffab |
| --- /dev/null |
| +++ b/internal/host/stampwatch.go |
| @@ -0,0 +1,263 @@ |
| +package host |
| + |
| +import ( |
| + "context" |
| + "log" |
| + "math/rand/v2" |
| + "strings" |
| + "sync" |
| + "time" |
| + |
| + "github.com/carlosframework/platform/internal/domains" |
| + "github.com/carlosframework/platform/internal/registry" |
| +) |
| + |
| +// The early stamp for newly derived names (#1516). |
| +// |
| +// An instance catch-all (`*.patrix.site` on an app) derives one alias row per |
| +// instance on the alias pass, which runs within seconds of the instance's |
| +// route. The row is born with no DNS stamp, and before this nothing looked at |
| +// it until the domains loop's next tick, five minutes and up to a minute of |
| +// jitter away. Until it reads "pointing" the edges file does not publish it, |
| +// and the console reports it as pending-dns. Its record is the parent's |
| +// wildcard, there before the instance was, so the first look nearly always |
| +// says pointing: the whole wait was the timer. |
| +// |
| +// The alias pass now hands those names to domainStampWatch and nudges the |
| +// domains loop, which stamps just them at once (domains.StampHealthHosts), |
| +// then again every stampWatchEvery while any of them is not yet pointing |
| +// with a certificate, for at most stampWatchFor. When a stamp moves, the |
| +// loop nudges the status snapshot and the edges file, so the console and |
| +// the other edges hear in seconds too. A name still unsettled after |
| +// stampWatchFor (its record is missing, or points elsewhere) is left to the |
| +// ordinary tick, as every name was before. |
| + |
| +// How often a watched name is stamped again, and for how long. |
| +const ( |
| + stampWatchEvery = 20 * time.Second |
| + stampWatchFor = 10 * time.Minute |
| +) |
| + |
| +// stampWatch is the set of names waiting for their early stamps. Safe for |
| +// the alias pass to add to while the domains loop reads it. |
| +type stampWatch struct { |
| + mu sync.Mutex |
| + since map[string]time.Time // name -> when it was first watched |
| + // spent holds the names watched for stampWatchFor without settling. The |
| + // alias pass reports a never-checked name on every pass, and a name |
| + // whose checks keep standing down (no edge set) stays never checked, so |
| + // without this each report would start another watch. A name leaves it |
| + // when a report no longer holds it: checked by the tick, or gone. |
| + spent map[string]bool |
| + last time.Time // when the loop last stamped them |
| +} |
| + |
| +// add watches names from now, and reports whether any was not watched |
| +// already. A name already watched keeps its start, so a name the alias pass |
| +// keeps reporting is not watched for ever, and does not wake the loop again: |
| +// the alias pass runs on every serial bump, and each early stamp reads the |
| +// deployment's edge set. |
| +// |
| +// When whole is true names is a complete alias pass's report, so add also |
| +// forgets the spent names it no longer holds. A pass that failed part way |
| +// reports only some names, and forgetting on it would start the watches |
| +// again. |
| +func (w *stampWatch) add(names []string, whole bool, now time.Time) (added bool) { |
| + w.mu.Lock() |
| + defer w.mu.Unlock() |
| + if w.since == nil { |
| + w.since, w.spent = map[string]time.Time{}, map[string]bool{} |
| + } |
| + reported := make(map[string]bool, len(names)) |
| + for _, n := range names { |
| + k := strings.ToLower(strings.TrimSuffix(n, ".")) |
| + reported[k] = true |
| + if _, ok := w.since[k]; !ok && !w.spent[k] { |
| + w.since[k] = now |
| + added = true |
| + } |
| + } |
| + for k := range w.spent { |
| + if whole && !reported[k] { |
| + delete(w.spent, k) |
| + } |
| + } |
| + return added |
| +} |
| + |
| +// due answers the names to stamp now, or nil: none watched, or the last |
| +// stamp was less than stampWatchEvery ago and nudged is false. A nudge (a |
| +// name just added) skips the wait, but never stamps twice in one second. |
| +// Names watched longer than stampWatchFor are dropped, and so are not |
| +// answered. |
| +func (w *stampWatch) due(now time.Time, nudged bool) []string { |
| + w.mu.Lock() |
| + defer w.mu.Unlock() |
| + for n, at := range w.since { |
| + if now.Sub(at) >= stampWatchFor { |
| + delete(w.since, n) |
| + w.spent[n] = true |
| + } |
| + } |
| + if len(w.since) == 0 { |
| + return nil |
| + } |
| + wait := stampWatchEvery |
| + if nudged { |
| + wait = time.Second |
| + } |
| + if !w.last.IsZero() && now.Sub(w.last) < wait { |
| + return nil |
| + } |
| + w.last = now |
| + names := make([]string, 0, len(w.since)) |
| + for n := range w.since { |
| + names = append(names, n) |
| + } |
| + return names |
| +} |
| + |
| +// settled stops watching names. |
| +func (w *stampWatch) settled(names []string) { |
| + w.mu.Lock() |
| + defer w.mu.Unlock() |
| + for _, n := range names { |
| + delete(w.since, strings.ToLower(strings.TrimSuffix(n, "."))) |
| + } |
| +} |
| + |
| +// watching reports whether any name is watched, so the loop knows to wake. |
| +func (w *stampWatch) watching() bool { |
| + w.mu.Lock() |
| + defer w.mu.Unlock() |
| + return len(w.since) > 0 |
| +} |
| + |
| +// domainStampWatch is the box's watch: one agent per process, as with |
| +// aliasClaimCache. |
| +var domainStampWatch stampWatch |
| + |
| +// domainsNudge wakes the domains loop for an early stamp. Capacity one and |
| +// every send non-blocking, as statusNudge. |
| +var domainsNudge = make(chan struct{}, 1) |
| + |
| +// edgesStampNudge tells the edges file loop a stamp moved (stampsChanged). |
| +var edgesStampNudge = make(chan struct{}, 1) |
| + |
| +// watchUnstamped is the alias pass's hand-off: watch the names it reported |
| +// and wake the domains loop. whole is whether the pass was complete. |
| +func watchUnstamped(names []string, whole bool, now time.Time) { |
| + if domainStampWatch.add(names, whole, now) { |
| + nudge(domainsNudge) |
| + } |
| +} |
| + |
| +// edgeIPsFor is the edge set for early stamps: the loop's own fold, read at |
| +// most once a minute. The fold lists and reads every box's edges file, and |
| +// an early stamp may run every stampWatchEvery; the set changes when a box |
| +// joins or leaves, which the full tick reads afresh. |
| +func edgeIPsFor(fold func() []string, now func() time.Time) func() []string { |
| + var ( |
| + mu sync.Mutex |
| + at time.Time |
| + last []string |
| + ) |
| + return func() []string { |
| + mu.Lock() |
| + defer mu.Unlock() |
| + if t := now(); last == nil || t.Sub(at) >= time.Minute { |
| + if ips := fold(); len(ips) > 0 { |
| + last, at = ips, t |
| + } else { |
| + return ips // unknown: StampHealth stands down; ask again next time |
| + } |
| + } |
| + return last |
| + } |
| +} |
| + |
| +// nudge is a non-blocking send that coalesces. |
| +func nudge(ch chan struct{}) { |
| + select { |
| + case ch <- struct{}{}: |
| + default: |
| + } |
| +} |
| + |
| +// earlyStamper is the domains loop's wait between its ticks: the tick's |
| +// timer, and the early stamps for watched names while it runs. |
| +type earlyStamper struct { |
| + reg *registry.Registry |
| + cfg domains.Config // the loop's, with the edge set read at most once a minute |
| + fleet bool // a fleet box: no stamps, as the tick's own (domainsLoop) |
| + tick *time.Timer |
| +} |
| + |
| +func newEarlyStamper(reg *registry.Registry, cfg domains.Config, fleet bool, first time.Duration) *earlyStamper { |
| + cfg.EdgeIPs = edgeIPsFor(cfg.EdgeIPs, time.Now) |
| + return &earlyStamper{reg: reg, cfg: cfg, fleet: fleet, tick: time.NewTimer(first)} |
| +} |
| + |
| +// wait returns when the loop's tick is due, then arms the next one five |
| +// minutes and up to a minute of jitter on, as the loop's sleep did. |
| +// Meanwhile it stamps the watched names: at once when the alias pass wakes |
| +// it, then every stampWatchEvery while any is unsettled. A tick that is due |
| +// always goes first: an early stamp can take most of a minute (fresh |
| +// lookups, an edge-set read), so the timer is checked again whenever a wake |
| +// wins the select, and a nudge that loses to it is kept for after the tick. |
| +func (s *earlyStamper) wait(ctx context.Context) { |
| + defer func() { s.tick.Reset(5*time.Minute + rand.N(time.Minute)) }() |
| + for !timerFired(s.tick) { |
| + var every <-chan time.Time |
| + if !s.fleet && domainStampWatch.watching() { |
| + every = time.After(stampWatchEvery) |
| + } |
| + nudged := false |
| + select { |
| + case <-s.tick.C: |
| + return |
| + case <-domainsNudge: |
| + nudged = true |
| + case <-every: |
| + } |
| + if timerFired(s.tick) { |
| + if nudged { |
| + nudge(domainsNudge) |
| + } |
| + return |
| + } |
| + stampWatched(ctx, s.reg, s.cfg, s.fleet, nudged) |
| + } |
| +} |
| + |
| +// timerFired takes a fired timer's tick without waiting. |
| +func timerFired(t *time.Timer) bool { |
| + select { |
| + case <-t.C: |
| + return true |
| + default: |
| + return false |
| + } |
| +} |
| + |
| +// stampWatched stamps the watched names now (domains.StampHealthHosts), stops |
| +// watching those that are settled, and tells the status snapshot and the |
| +// edges file when a stamp moved. Inert on a fleet box. |
| +func stampWatched(ctx context.Context, reg *registry.Registry, cfg domains.Config, fleetBox, nudged bool) { |
| + if fleetBox { |
| + return |
| + } |
| + names := domainStampWatch.due(time.Now(), nudged) |
| + if len(names) == 0 { |
| + return |
| + } |
| + settled, changed, err := domains.StampHealthHosts(ctx, reg, cfg, names) |
| + if err != nil { |
| + log.Printf("agent: domains early stamp: %v", err) |
| + } |
| + domainStampWatch.settled(settled) |
| + if changed { // with an error too: the stamps may have been written |
| + nudge(edgesStampNudge) |
| + nudgeStatus() |
| + } |
| +} |
diff --git a/internal/host/stampwatch_test.go b/internal/host/stampwatch_test.go| new file mode 100644 |
| index 000000000..f8fe15ee2 |
| --- /dev/null |
| +++ b/internal/host/stampwatch_test.go |
| @@ -0,0 +1,176 @@ |
| +package host |
| + |
| +import ( |
| + "runtime" |
| + "testing" |
| + "time" |
| +) |
| + |
| +func TestStampWatchDue(t *testing.T) { |
| + var w stampWatch |
| + t0 := time.Unix(1_000_000, 0) |
| + if w.watching() || w.due(t0, true) != nil { |
| + t.Fatal("an empty watch is watching or due") |
| + } |
| + w.add([]string{"New.Patrix.Site."}, true, t0) |
| + if !w.watching() { |
| + t.Fatal("not watching after add") |
| + } |
| + if got := w.due(t0, true); len(got) != 1 || got[0] != "new.patrix.site" { |
| + t.Fatalf("due on the nudge = %v, want [new.patrix.site]", got) |
| + } |
| + // A second nudge inside a second is coalesced; past it, a nudge stamps. |
| + if got := w.due(t0.Add(500*time.Millisecond), true); got != nil { |
| + t.Fatalf("due twice in one second: %v", got) |
| + } |
| + if got := w.due(t0.Add(2*time.Second), true); len(got) != 1 { |
| + t.Fatalf("a nudge after a second = %v, want the name", got) |
| + } |
| + // Without a nudge, the follow-up waits stampWatchEvery from the last stamp. |
| + if got := w.due(t0.Add(2*time.Second+stampWatchEvery-time.Second), false); got != nil { |
| + t.Fatalf("follow-up before stampWatchEvery: %v", got) |
| + } |
| + if got := w.due(t0.Add(2*time.Second+stampWatchEvery), false); len(got) != 1 { |
| + t.Fatalf("follow-up at stampWatchEvery = %v, want the name", got) |
| + } |
| + w.settled([]string{"NEW.patrix.site"}) |
| + if w.watching() { |
| + t.Fatal("still watching a settled name") |
| + } |
| +} |
| + |
| +// A name that never settles (its record is missing) is given up after |
| +// stampWatchFor and left to the ordinary tick; adding it again does not |
| +// restart its clock while it is still watched. |
| +func TestStampWatchGivesUp(t *testing.T) { |
| + var w stampWatch |
| + t0 := time.Unix(1_000_000, 0) |
| + if !w.add([]string{"a.patrix.site"}, true, t0) { |
| + t.Fatal("a new name was not reported added") |
| + } |
| + if w.add([]string{"A.patrix.site."}, true, t0.Add(5*time.Minute)) { |
| + t.Fatal("a watched name was reported added again") |
| + } |
| + if got := w.due(t0.Add(stampWatchFor-time.Second), true); len(got) != 1 { |
| + t.Fatalf("due just before the limit = %v", got) |
| + } |
| + if got := w.due(t0.Add(stampWatchFor), true); got != nil { |
| + t.Fatalf("due at the limit = %v, want none", got) |
| + } |
| + if w.watching() { |
| + t.Fatal("still watching after the limit") |
| + } |
| + // Reported again by a later pass (still never checked): not watched |
| + // again, and no wake. |
| + if w.add([]string{"a.patrix.site"}, true, t0.Add(stampWatchFor+time.Minute)) || w.watching() { |
| + t.Fatal("a spent name started a new watch") |
| + } |
| + // Once a report no longer holds it (the tick checked it, or it went), |
| + // it may be watched again if it ever comes back unchecked. |
| + // A pass that failed part way reports nothing, and forgets nothing. |
| + w.add(nil, false, t0.Add(stampWatchFor+2*time.Minute)) |
| + if w.add([]string{"a.patrix.site"}, true, t0.Add(stampWatchFor+3*time.Minute)) { |
| + t.Fatal("an incomplete pass forgot a spent name") |
| + } |
| + w.add(nil, true, t0.Add(stampWatchFor+4*time.Minute)) |
| + if !w.add([]string{"a.patrix.site"}, true, t0.Add(stampWatchFor+5*time.Minute)) { |
| + t.Fatal("a spent name the reports had dropped could not be watched again") |
| + } |
| +} |
| + |
| +func TestTimerFired(t *testing.T) { |
| + tm := time.NewTimer(time.Hour) |
| + defer tm.Stop() |
| + if timerFired(tm) { |
| + t.Fatal("an unfired timer read as fired") |
| + } |
| + tm.Reset(time.Nanosecond) |
| + for !timerFired(tm) { // a fired timer is read without blocking |
| + runtime.Gosched() |
| + } |
| + if timerFired(tm) { |
| + t.Fatal("a fired timer's tick was taken twice") |
| + } |
| +} |
| + |
| +func TestWatchUnstampedNudgesOnce(t *testing.T) { |
| + // Package-level state: drain whatever an earlier test left. |
| + select { |
| + case <-domainsNudge: |
| + default: |
| + } |
| + defer domainStampWatch.settled([]string{"x.patrix.site", "y.patrix.site"}) |
| + watchUnstamped(nil, false, time.Now()) |
| + select { |
| + case <-domainsNudge: |
| + t.Fatal("nudged with no names") |
| + default: |
| + } |
| + watchUnstamped([]string{"x.patrix.site"}, false, time.Now()) |
| + watchUnstamped([]string{"y.patrix.site"}, false, time.Now()) // coalesces, never blocks |
| + select { |
| + case <-domainsNudge: |
| + default: |
| + t.Fatal("no nudge after names were watched") |
| + } |
| + // Reported again by a later alias pass: already watched, no wake. |
| + watchUnstamped([]string{"x.patrix.site"}, false, time.Now()) |
| + select { |
| + case <-domainsNudge: |
| + t.Fatal("a name already watched woke the loop again") |
| + default: |
| + } |
| + select { |
| + case <-domainsNudge: |
| + t.Fatal("two nudges queued") |
| + default: |
| + } |
| +} |
| + |
| +// A stamp that moved makes an edges-file pass due though the fingerprint, |
| +// which leaves stamps out, has not moved; a successful pass clears it, and a |
| +// failed one keeps it for the retry. |
| +func TestEdgesLoopStampsChanged(t *testing.T) { |
| + t0 := time.Unix(1_000_000, 0) |
| + s := &edgesLoopState{sched: newEdgesFileSchedule(t0, func() time.Duration { return 5 * time.Minute })} |
| + if s.dueWith(t0, "fp", true, false) { |
| + t.Fatal("due on the baseline tick") |
| + } |
| + s.stampsChanged() |
| + if !s.dueWith(t0.Add(2*time.Second), "fp", true, false) { |
| + t.Fatal("not due after a stamp moved") |
| + } |
| + s.done(t0.Add(2*time.Second), false) |
| + if s.dueWith(t0.Add(3*time.Second), "fp", true, false) { |
| + t.Fatal("due inside the retry backoff") |
| + } |
| + if !s.dueWith(t0.Add(5*time.Second), "fp", true, false) { |
| + t.Fatal("a failed pass dropped the stamp change") |
| + } |
| + s.done(t0.Add(5*time.Second), true) |
| + if s.dueWith(t0.Add(7*time.Second), "fp", true, false) { |
| + t.Fatal("still due after a successful pass") |
| + } |
| +} |
| + |
| +func TestEdgeIPsForReadsOnceAMinute(t *testing.T) { |
| + now := time.Unix(1_000_000, 0) |
| + reads := 0 |
| + answer := []string{} |
| + ips := edgeIPsFor(func() []string { reads++; return answer }, func() time.Time { return now }) |
| + if got := ips(); len(got) != 0 || reads != 1 { |
| + t.Fatalf("unknown set: %v after %d reads", got, reads) |
| + } |
| + answer = []string{"203.0.113.7"} |
| + if got := ips(); len(got) != 1 || reads != 2 { |
| + t.Fatalf("an unknown set is asked again: %v after %d reads", got, reads) |
| + } |
| + now = now.Add(59 * time.Second) |
| + if ips(); reads != 2 { |
| + t.Fatalf("read again inside the minute (%d reads)", reads) |
| + } |
| + now = now.Add(time.Second) |
| + if ips(); reads != 3 { |
| + t.Fatalf("not read again after the minute (%d reads)", reads) |
| + } |
| +} |
diff --git a/internal/provision/testdata/plan14-root-reads-catchall-stamp-now.tsv b/internal/provision/testdata/plan14-root-reads-catchall-stamp-now.tsv| new file mode 100644 |
| index 000000000..836c13eab |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-catchall-stamp-now.tsv |
| @@ -0,0 +1,17 @@ |
| +# Census overlay catchall-stamp-now, written by census-propose (#369). census-ruling-catchall-stamp-now, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-catchall-stamp-now.md. |
| +# 2 body, 1 sites, 2 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +# 3 new dispositions: 1 reads re-frozen at their disposition with the claim, 2 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| +@legacy 76d1043d3ba8ec7045dfec5084f5b7865b70cae7ddfed232e49a6e61266b25dd 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 registry:Account@15007,registry:Account@15022,registry:Account@15140,registry:Account@15492,registry:Account@15505,registry:Alias@13001,registry:Alias@13134,registry:Alias@13204,registry:App@15035,registry:App@15046,registry:App@15153,registry:App@15518,registry:App@15527,registry:App@5204,registry:App@5400,registry:App@8746,registry:App@8946,registry:App@9102,registry:App@9303,registry:Host@14817,registry:Host@14892,registry:Host@14915,registry:Host@14967,registry:Host@15301,registry:Host@15373,registry:Host@15477,registry:Host@15788,registry:Host@15934,registry:Host@16006,registry:Host@856,registry:Host@9669,registry:Region@15162,registry:Target@14987,registry:Target@15092,whole:RegionalDomain@13781,whole:RegionalDomain@13799,whole:RegionalDomain@14745,whole:RegionalDomain@14783,whole:RegionalDomain@14804,whole:RegionalDomain@14827,whole:RegionalDomain@14954,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@15085,whole:Route@15136,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@14851,whole:WildcardDomain@14880,whole:WildcardDomain@15361,whole:WildcardDomain@15383,whole:WildcardDomain@15407,whole:WildcardDomain@15456,whole:WildcardDomain@15619,whole:WildcardDomain@15747,whole:WildcardDomain@15776,whole:WildcardDomain@4070,whole:WildcardDomain@9865 857931e794c6043d988e98264f12a75ac22261e71defb17147f9a0af86905d32 |
| +@legacy e3edd8099a611304e9140e1f869ccdbc48400a298f2150912ed6fc0553d5712a internal/host/agent.go aliasPassReportingComplete legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Extract the existing serialized alias pass, add cancellable locking and routing-only alias/regional publication from its completeness report; existing deployment/claim/registry reads retained, new in-memory Route/RegionalDomain passes.;rev3=census-ruling-fix-incomplete-domains-pass;basis=gains a startup bool parameter that it copies into domains.AliasReport.StartupNoRemoval; runHAIngressStartup passes true, aliasPassReporting (the ordinary agent pass) passes false; same reads and calls, body change only; no root pass calls it; no root decision;rev3=census-ruling-account-subdomains;basis=sets AliasReport.AppsDomain from PLATFORM_APPS_DOMAIN (trimmed), the variable domainsTickConfig reads; same reads and calls otherwise; body change only;rev3=census-ruling-sr-followups;basis=#966, the agent pass (user carlos, no root pass calls it): on a door box (doorFleet: no CARLOS_DEPLOYMENT_BUCKET or CARLOS_DEPLOYMENT_DIR and a fleet identity from the process environment, CARLOS_FLEET and its box label, as openDeployStoreEnv decides) it skips edgesfile.DeploymentRoutesComplete, the status/boxes/ list the store door refuses, and reports the route set incomplete (DeploymentRoutesPartial false, routesWhole false) as the refused list did. One store list fewer on door boxes, none added, every other box unchanged, no file, bucket or root call added;rev3=census-ruling-catchall-stamp-now;basis=#1516: hands rep.Unstamped and whether the pass was complete to watchUnstamped, an in-memory watch list that may wake the domains loop through a buffered channel; same reads and calls, body change only whole:RegionalDomain@2271,whole:Route@1379,whole:Route@1401,whole:Route@1420,whole:Route@2349 92645a7c4fb12251a01cd37ba0879c6979bdc93db67de9831eb2b3fe98e60ddf |
| +@legacy 004909c028c40503f21b5d3b2b7dd84f26fc9fa9bb3eb21cb6b9351f90f9a70e internal/domains/reconcile.go StampHealthHosts legacy accepted-legacy accepted-legacy;rev3=census-ruling-catchall-stamp-now;basis=#1516: new. Called only by the agent's domains loop (user carlos), never by root: lists the box's own alias rows before and after, runs stampHealth over the named aliases only with no routes and FreshRetain unset, and compares DNSStatus, DNSCheckedAt and CertExpiresAt to report settled names and whether any changed; a failed re-read reports changed (census round 1 P2); no file, bucket or command input added beyond stampHealth's own registry:Alias@621,registry:Alias@651,registry:CertExpiresAt@1482,registry:CertExpiresAt@1501,registry:CertExpiresAt@1628,registry:DNSCheckedAt@1524,registry:DNSCheckedAt@1549,registry:DNSStatus@1452,registry:DNSStatus@1467,registry:DNSStatus@1599,whole:RouteAlias@1214,whole:RouteAlias@1299,whole:RouteAlias@595,whole:RouteAlias@637,whole:RouteAlias@663,whole:RouteAlias@683 0fec173690c96a0c696ce3161ccadb0eef99c8f849880f8e027114f4465f01cb |
| +@legacy d0e8d0c793b6b7d05f30c5335847fdbf1be73ba8be55a018355c5afefa0094a1 internal/domains/reconcile.go stampHealth legacy accepted-legacy accepted-legacy;rev3=census-ruling-catchall-stamp-now;basis=#1516: StampHealth's body moved here unchanged, plus an optional only-set that keeps the listed alias rows whose name it holds; same registry reads, stamps, resolver calls and acme-dir certificate reads as StampHealth; the agent's domains loop (user carlos) is its only caller; no root pass calls it registry:Alias@1006,registry:Alias@2161,registry:Alias@4639,registry:Alias@5228,registry:Alias@5318,registry:Alias@5752,registry:Alias@5816,registry:Alias@5904,registry:DNSCheckedAt@4514,registry:DNSCheckedAt@4661,registry:DNSStatus@4500,registry:DNSStatus@4648,registry:DNSStatus@4853,registry:DNSStatus@5152,registry:Host@4491,registry:Host@4925,registry:Host@5009,registry:Host@5521,registry:Host@5580,registry:Host@5662,whole:Route@221,whole:Route@258,whole:Route@4315,whole:Route@4431,whole:Route@4760,whole:Route@5475,whole:RouteAlias@1023,whole:RouteAlias@1037,whole:RouteAlias@1043,whole:RouteAlias@1060,whole:RouteAlias@1070,whole:RouteAlias@1869,whole:RouteAlias@2095,whole:RouteAlias@2247,whole:RouteAlias@2295,whole:RouteAlias@2315,whole:RouteAlias@2327,whole:RouteAlias@4361,whole:RouteAlias@4575,whole:RouteAlias@5055,whole:RouteAlias@5705,whole:RouteAlias@802,whole:RouteAlias@942,whole:RouteAlias@975 1be38ed3a6254e4227a33843acf162fbd43b626feb1b636052ee6e2a8d78684e |
| +@legacy 9f0ad1d9e14118531860eb3f222d3c3be8bf067f640b9ef01ddc2ad5435f6728 internal/domains/aliases.go deriveInstanceAliases legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=root-route; the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): rev3=J1's body; a stale body under a retired lifetime no longer makes a label shared, and a label with a record that cannot be judged keeps its existing alias row of the catch-all's own account and app (reading that row's Account and App) only once the derived name has passed every precedence check a derived name answers to (validity, an exact claim, a local real route, a deployment route, the per-box cap), and derives no new one; a report-only conservative keep, never a new route;rev3=census-ruling-regional-domains-447;basis=#447 Task 2: an instance catch-all whose parent claim is regional is inert (logged once, continue), as one whose parent is not held is; it only narrows what derives; no read added;rev3=census-ruling-account-subdomains;basis=takes a *int budget shared with the namespace pass instead of a local counter; the same checks and cap (maxInstanceAliases, now a var so a test can lower it); names kept on a failed instance listing now take the budget too, each once (fix round 1, Astra I-2), so the cap holds on that branch; same reads; body change only; derives and keeps less, never more;rev3=census-ruling-catchall-stamp-now;basis=#1516: reports through the new callback each derived name it wrote, or found already written with dns_checked_at 0 (the added registry:DNSCheckedAt site is a.DNSCheckedAt on the alias row it already read); derives, writes and caps exactly as before; no file, bucket or root read added registry:Account@2694,registry:Account@4286,registry:Account@5085,registry:Alias@2756,registry:Alias@2824,registry:Alias@2863,registry:Alias@3142,registry:Alias@603,registry:App@2016,registry:App@2720,registry:App@4312,registry:App@5111,registry:DNSCheckedAt@5135,registry:Host@2173,registry:Host@5064,registry:Host@5074,registry:Host@5394,registry:Provisioned@1966,registry:Replica@2002,registry:Slug@2105,whole:Route@1950,whole:Route@2056,whole:Route@3828,whole:RouteAlias@2674,whole:RouteAlias@4268,whole:RouteAlias@5046,whole:RouteAlias@555,whole:RouteAlias@585,whole:RouteAlias@598,whole:RouteAlias@614 16186a15572f852d45b3302b98593dee1cef90b2ea8db6026966d1b653d5f592 |
| +@legacy 933320c65725f4b6dd9c621583e7329fb065112e2784813983dbdf594a6d7ef9 internal/domains/reconcile.go StampHealth legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-dns-fresh-lookup-724;basis=section 4 now computes every cached verdict first, then freshUpgrade gives up to 64 randomly ordered names that could have a public zone (not under the apps domain, not special-use like .internal) and whose verdict is "" or "elsewhere" an uncached lookup (30 s pass budget) that may only upgrade to "pointing", then stamps; the extra sites are the indexed loops over the same rows (#724);rev3=census-ruling-no-negative-prime-724;basis=section 4 now hands each route and alias, with its previous stamp (the two new registry:DNSStatus reads, rt.DNSStatus and a.DNSStatus, same rows already listed), to dnsVerdicts, which first hands the pass's hostnames to Config.FreshRetain (the resolver forgets its in-memory backoff and strike for names no longer carried) and then decides each hostname once per pass and applies the verdict to every row carrying it: a name not "pointing" before this pass and eligible for a fresh lookup (public name, not under the apps domain, ResolveFresh set) is looked at uncached first within the same 64-lookup/30 s budget (shared, with previously "pointing" names' upgrade looks serviced before any fresh-first name so new names cannot starve a published one) and stamped from it (edge address, A or AAAA, "pointing", other "elsewhere", authoritative not-found "", authoritative NODATA for A and AAAA with the zone's SOA "" with no cached query), falling back to the cached lookup past the budget or on the second fresh failure in a row; the first fresh failure in a row is held (stamp and check time untouched, the resolver forgives it so the next pass asks fresh again); a previously "pointing" name keeps cached-first plus the upgrade-only fresh look (ResolveUpgrade, nearest zones first), so the fresh path still never unpublishes; a fresh-first name that ends the pass "pointing" (fresh or cached) has its fresh failure backoff cleared through Config.FreshForget, so an onboarding failure never suppresses the upgrade look that keeps it published; new names are ordered never-checked first then oldest check, and lookups answered from the backoff do not count against the budget; StampHealth's own body is unchanged by the last round; no new file, path or command input; the dropped Alias/Host/Route/RouteAlias sites are the old indexed loops folded into the candidate build (#724);rev3=census-ruling-account-subdomains;basis=reads the box's own account_namespaces table (only when DNS stamping runs) and leaves out of the DNS loop the alias rows isNamespaceDerived names (an alias under a held name, of that name's account, pointing at its sqid twin); if that read fails it logs and leaves out every alias two or more labels under the apps domain, still stamping every other alias, every route and all TLS expiry (fix round 1); the added RouteAlias sites are that filter over rows already listed; stamps less, never more; TLS stamping unchanged;rev3=census-ruling-catchall-stamp-now;basis=#1516: now a one-line wrapper over stampHealth(ctx, reg, cfg, routes, nil); its body moved there unchanged, hence its dropped sites whole:Route@142 c589f2e7e31ac631a4dedbfe66e070b835a7ed010bd9d07d4df96d1f4f6912df |
| +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 registry:Account@15007,registry:Account@15022,registry:Account@15140,registry:Account@15492,registry:Account@15505,registry:Alias@13001,registry:Alias@13134,registry:Alias@13204,registry:App@15035,registry:App@15046,registry:App@15153,registry:App@15518,registry:App@15527,registry:App@5204,registry:App@5400,registry:App@8746,registry:App@8946,registry:App@9102,registry:App@9303,registry:Host@14817,registry:Host@14892,registry:Host@14915,registry:Host@14967,registry:Host@15301,registry:Host@15373,registry:Host@15477,registry:Host@15788,registry:Host@15934,registry:Host@16006,registry:Host@856,registry:Host@9669,registry:Region@15162,registry:Target@14987,registry:Target@15092,whole:RegionalDomain@13781,whole:RegionalDomain@13799,whole:RegionalDomain@14745,whole:RegionalDomain@14783,whole:RegionalDomain@14804,whole:RegionalDomain@14827,whole:RegionalDomain@14954,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@15085,whole:Route@15136,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@14851,whole:WildcardDomain@14880,whole:WildcardDomain@15361,whole:WildcardDomain@15383,whole:WildcardDomain@15407,whole:WildcardDomain@15456,whole:WildcardDomain@15619,whole:WildcardDomain@15747,whole:WildcardDomain@15776,whole:WildcardDomain@4070,whole:WildcardDomain@9865 857931e794c6043d988e98264f12a75ac22261e71defb17147f9a0af86905d32 |
| +internal/host/agent.go aliasPassReportingComplete legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Extract the existing serialized alias pass, add cancellable locking and routing-only alias/regional publication from its completeness report; existing deployment/claim/registry reads retained, new in-memory Route/RegionalDomain passes.;rev3=census-ruling-fix-incomplete-domains-pass;basis=gains a startup bool parameter that it copies into domains.AliasReport.StartupNoRemoval; runHAIngressStartup passes true, aliasPassReporting (the ordinary agent pass) passes false; same reads and calls, body change only; no root pass calls it; no root decision;rev3=census-ruling-account-subdomains;basis=sets AliasReport.AppsDomain from PLATFORM_APPS_DOMAIN (trimmed), the variable domainsTickConfig reads; same reads and calls otherwise; body change only;rev3=census-ruling-sr-followups;basis=#966, the agent pass (user carlos, no root pass calls it): on a door box (doorFleet: no CARLOS_DEPLOYMENT_BUCKET or CARLOS_DEPLOYMENT_DIR and a fleet identity from the process environment, CARLOS_FLEET and its box label, as openDeployStoreEnv decides) it skips edgesfile.DeploymentRoutesComplete, the status/boxes/ list the store door refuses, and reports the route set incomplete (DeploymentRoutesPartial false, routesWhole false) as the refused list did. One store list fewer on door boxes, none added, every other box unchanged, no file, bucket or root call added;rev3=census-ruling-catchall-stamp-now;basis=#1516: hands rep.Unstamped and whether the pass was complete to watchUnstamped, an in-memory watch list that may wake the domains loop through a buffered channel; same reads and calls, body change only whole:RegionalDomain@2271,whole:Route@1379,whole:Route@1401,whole:Route@1420,whole:Route@2349 92645a7c4fb12251a01cd37ba0879c6979bdc93db67de9831eb2b3fe98e60ddf |
| +internal/domains/reconcile.go StampHealthHosts legacy accepted-legacy accepted-legacy;rev3=census-ruling-catchall-stamp-now;basis=#1516: new. Called only by the agent's domains loop (user carlos), never by root: lists the box's own alias rows before and after, runs stampHealth over the named aliases only with no routes and FreshRetain unset, and compares DNSStatus, DNSCheckedAt and CertExpiresAt to report settled names and whether any changed; a failed re-read reports changed (census round 1 P2); no file, bucket or command input added beyond stampHealth's own registry:Alias@621,registry:Alias@651,registry:CertExpiresAt@1482,registry:CertExpiresAt@1501,registry:CertExpiresAt@1628,registry:DNSCheckedAt@1524,registry:DNSCheckedAt@1549,registry:DNSStatus@1452,registry:DNSStatus@1467,registry:DNSStatus@1599,whole:RouteAlias@1214,whole:RouteAlias@1299,whole:RouteAlias@595,whole:RouteAlias@637,whole:RouteAlias@663,whole:RouteAlias@683 0fec173690c96a0c696ce3161ccadb0eef99c8f849880f8e027114f4465f01cb |
| +internal/domains/reconcile.go stampHealth legacy accepted-legacy accepted-legacy;rev3=census-ruling-catchall-stamp-now;basis=#1516: StampHealth's body moved here unchanged, plus an optional only-set that keeps the listed alias rows whose name it holds; same registry reads, stamps, resolver calls and acme-dir certificate reads as StampHealth; the agent's domains loop (user carlos) is its only caller; no root pass calls it registry:Alias@1006,registry:Alias@2161,registry:Alias@4639,registry:Alias@5228,registry:Alias@5318,registry:Alias@5752,registry:Alias@5816,registry:Alias@5904,registry:DNSCheckedAt@4514,registry:DNSCheckedAt@4661,registry:DNSStatus@4500,registry:DNSStatus@4648,registry:DNSStatus@4853,registry:DNSStatus@5152,registry:Host@4491,registry:Host@4925,registry:Host@5009,registry:Host@5521,registry:Host@5580,registry:Host@5662,whole:Route@221,whole:Route@258,whole:Route@4315,whole:Route@4431,whole:Route@4760,whole:Route@5475,whole:RouteAlias@1023,whole:RouteAlias@1037,whole:RouteAlias@1043,whole:RouteAlias@1060,whole:RouteAlias@1070,whole:RouteAlias@1869,whole:RouteAlias@2095,whole:RouteAlias@2247,whole:RouteAlias@2295,whole:RouteAlias@2315,whole:RouteAlias@2327,whole:RouteAlias@4361,whole:RouteAlias@4575,whole:RouteAlias@5055,whole:RouteAlias@5705,whole:RouteAlias@802,whole:RouteAlias@942,whole:RouteAlias@975 1be38ed3a6254e4227a33843acf162fbd43b626feb1b636052ee6e2a8d78684e |
| +internal/domains/aliases.go deriveInstanceAliases legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=root-route; the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): rev3=J1's body; a stale body under a retired lifetime no longer makes a label shared, and a label with a record that cannot be judged keeps its existing alias row of the catch-all's own account and app (reading that row's Account and App) only once the derived name has passed every precedence check a derived name answers to (validity, an exact claim, a local real route, a deployment route, the per-box cap), and derives no new one; a report-only conservative keep, never a new route;rev3=census-ruling-regional-domains-447;basis=#447 Task 2: an instance catch-all whose parent claim is regional is inert (logged once, continue), as one whose parent is not held is; it only narrows what derives; no read added;rev3=census-ruling-account-subdomains;basis=takes a *int budget shared with the namespace pass instead of a local counter; the same checks and cap (maxInstanceAliases, now a var so a test can lower it); names kept on a failed instance listing now take the budget too, each once (fix round 1, Astra I-2), so the cap holds on that branch; same reads; body change only; derives and keeps less, never more;rev3=census-ruling-catchall-stamp-now;basis=#1516: reports through the new callback each derived name it wrote, or found already written with dns_checked_at 0 (the added registry:DNSCheckedAt site is a.DNSCheckedAt on the alias row it already read); derives, writes and caps exactly as before; no file, bucket or root read added registry:Account@2694,registry:Account@4286,registry:Account@5085,registry:Alias@2756,registry:Alias@2824,registry:Alias@2863,registry:Alias@3142,registry:Alias@603,registry:App@2016,registry:App@2720,registry:App@4312,registry:App@5111,registry:DNSCheckedAt@5135,registry:Host@2173,registry:Host@5064,registry:Host@5074,registry:Host@5394,registry:Provisioned@1966,registry:Replica@2002,registry:Slug@2105,whole:Route@1950,whole:Route@2056,whole:Route@3828,whole:RouteAlias@2674,whole:RouteAlias@4268,whole:RouteAlias@5046,whole:RouteAlias@555,whole:RouteAlias@585,whole:RouteAlias@598,whole:RouteAlias@614 16186a15572f852d45b3302b98593dee1cef90b2ea8db6026966d1b653d5f592 |
| +internal/domains/reconcile.go StampHealth legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-dns-fresh-lookup-724;basis=section 4 now computes every cached verdict first, then freshUpgrade gives up to 64 randomly ordered names that could have a public zone (not under the apps domain, not special-use like .internal) and whose verdict is "" or "elsewhere" an uncached lookup (30 s pass budget) that may only upgrade to "pointing", then stamps; the extra sites are the indexed loops over the same rows (#724);rev3=census-ruling-no-negative-prime-724;basis=section 4 now hands each route and alias, with its previous stamp (the two new registry:DNSStatus reads, rt.DNSStatus and a.DNSStatus, same rows already listed), to dnsVerdicts, which first hands the pass's hostnames to Config.FreshRetain (the resolver forgets its in-memory backoff and strike for names no longer carried) and then decides each hostname once per pass and applies the verdict to every row carrying it: a name not "pointing" before this pass and eligible for a fresh lookup (public name, not under the apps domain, ResolveFresh set) is looked at uncached first within the same 64-lookup/30 s budget (shared, with previously "pointing" names' upgrade looks serviced before any fresh-first name so new names cannot starve a published one) and stamped from it (edge address, A or AAAA, "pointing", other "elsewhere", authoritative not-found "", authoritative NODATA for A and AAAA with the zone's SOA "" with no cached query), falling back to the cached lookup past the budget or on the second fresh failure in a row; the first fresh failure in a row is held (stamp and check time untouched, the resolver forgives it so the next pass asks fresh again); a previously "pointing" name keeps cached-first plus the upgrade-only fresh look (ResolveUpgrade, nearest zones first), so the fresh path still never unpublishes; a fresh-first name that ends the pass "pointing" (fresh or cached) has its fresh failure backoff cleared through Config.FreshForget, so an onboarding failure never suppresses the upgrade look that keeps it published; new names are ordered never-checked first then oldest check, and lookups answered from the backoff do not count against the budget; StampHealth's own body is unchanged by the last round; no new file, path or command input; the dropped Alias/Host/Route/RouteAlias sites are the old indexed loops folded into the candidate build (#724);rev3=census-ruling-account-subdomains;basis=reads the box's own account_namespaces table (only when DNS stamping runs) and leaves out of the DNS loop the alias rows isNamespaceDerived names (an alias under a held name, of that name's account, pointing at its sqid twin); if that read fails it logs and leaves out every alias two or more labels under the apps domain, still stamping every other alias, every route and all TLS expiry (fix round 1); the added RouteAlias sites are that filter over rows already listed; stamps less, never more; TLS stamping unchanged;rev3=census-ruling-catchall-stamp-now;basis=#1516: now a one-line wrapper over stampHealth(ctx, reg, cfg, routes, nil); its body moved there unchanged, hence its dropped sites whole:Route@142 c589f2e7e31ac631a4dedbfe66e070b835a7ed010bd9d07d4df96d1f4f6912df |
| +@coverage internal/domains 15c2c51705378862e5a8005c128ebe9554a19ca9b29788a0de6c016d3bca04dd |
| +@coverage internal/host 8ae295467b61170d602585245065624bb28e483c65d0304678ead1aa9c4889c7 |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index 6e51bfc67..4b56ce3b3 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -312,3 +312,4 @@ plan14-root-reads-moved-at-floor-v0-44-1.tsv ed1957bc7d18714e39984e757b73b8c590f |
| plan14-root-reads-gvisor-slice2-explicit-mode.tsv ed1957bc7d18714e39984e757b73b8c590f1a2a924ca35e20e9041fc09f2ca78 |
| plan14-root-reads-public-share.tsv ed1957bc7d18714e39984e757b73b8c590f1a2a924ca35e20e9041fc09f2ca78 |
| plan14-root-reads-gvisor-slice3-containment.tsv 0fdff597ef83fb9966e07c70b4283001eb97f7dfa71a83a19bde92382192eb6b |
| +plan14-root-reads-catchall-stamp-now.tsv c9940b1b6fb0146a30a2fb2b557f898ac6d28ba80df7dfe642cc623b581f347b |