carlos / platform Public

Private store create: time each step; scan names concurrently (#1653)

Step 0: objstore.Trace times every step of a private-storage create (ceiling, locks, preflight, scan with list pages and GETs, colliders and claims with GETs and PUTs, each IAM and S3 call, record and serial) and logs one console line with no ARNs, names or error text; listings count real S3 pages through the mutation boundary and claim-effect store. A-minimal: storeNamingBucket runs level by level, concurrently, under a process-wide limit of 32 in flight and 32 workers per scan, fail-closed; the write walk (GrantInFor) is unchanged. Perf test: same 219 S3 requests, median create 4.7 s to 2.0 s. Design docs/superpowers/specs/2026-12-02-async-private-store-design.md (option B deferred). Astra: design round 2, code rounds 1-3, census (#280).

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

Squashed from private-store-scan-1653 into main.
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 2218edfee9c98e6d49797207e1e399477a5763df parent 834a7f5
36 files changed, +3,050 −96
  • cmd/console/main.go +1 −1
  • docs/superpowers/notes/census-proposal-private-store-scan-1653.md +11 −0
  • docs/superpowers/specs/2026-12-02-async-private-store-design.md +348 −0
  • internal/console/apiinstances.go +7 −7
  • internal/console/claim_authority_census_test.go +1 −1
  • internal/console/claim_invariant_test.go +4 −1
  • internal/console/claim_store_effects.go +11 −0
  • internal/console/claim_store_effects_counted_test.go +52 −0
  • internal/console/copiespublication.go +2 −0
  • internal/console/hostsused.go +6 −1
  • internal/console/instanceprivatestore.go +16 −2
  • internal/console/instancestoretrace.go +73 −0
  • internal/console/instancestoretrace_test.go +122 −0
  • internal/console/lifetimes_create.go +4 −0
  • internal/console/perfprivatecreate_test.go +205 −0
  • internal/console/perfs3.go +9 −0
  • internal/console/perfwrites_test.go +1 −0
  • internal/console/testdata/claim-authority-sites.txt +1 −1
  • internal/hostops/mutation_boundary.go +13 −0
  • internal/hostops/mutation_boundary_counted_test.go +85 −0
  • internal/objstore/aws.go +31 −2
  • internal/objstore/aws_versioning.go +12 −4
  • internal/objstore/nameclaim.go +9 −52
  • internal/objstore/objstore.go +52 −11
  • internal/objstore/storescan.go +350 −0
  • internal/objstore/storescan_probe_test.go +239 −0
  • internal/objstore/storescan_test.go +600 −0
  • internal/objstore/trace.go +347 −0
  • internal/objstore/trace_test.go +315 −0
  • internal/objstore/walk.go +36 −6
  • internal/provision/plan9_b8_census_test.go +1 −1
  • internal/provision/private_store_scan_1653_census_test.go +29 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-private-store-scan-1653.tsv +5 −0
  • internal/release/store.go +47 −5
  • internal/rootaws/guard_test.go +4 −1

CI failed — run details

CI log
=== gate ===
go: downloading go1.26.10 (linux/arm64)
go version go1.26.10 linux/arm64
opentofu: arm64, tofu 1.13.9, aws 6.73.0, archive 2.8.1
  tofu: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/tofu_1.13.9_linux_arm64.tar.gz
  tofu: downloaded, digest verified
  aws: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-aws_6.73.0_linux_arm64.zip
  aws: downloaded, digest verified
  archive: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-archive_2.8.1_linux_arm64.zip
  archive: downloaded, digest verified
  installed in /tmp/carlos-opentofu-zGzOnD
.amadan/test-gate.sh
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/iam v1.58.2
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading golang.org/x/net v0.62.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/acm v1.45.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.324.0
go: downloading github.com/aws/aws-sdk-go-v2/service/route53 v1.64.1
go: downloading golang.org/x/sys v0.49.0
go: downloading github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi v1.37.0
go: downloading golang.org/x/crypto v0.58.0
go: downloading golang.org/x/mod v0.41.0
go: downloading github.com/pion/logging v0.2.4
go: downloading github.com/pion/stun/v3 v3.1.5
go: downloading github.com/pion/turn/v4 v4.1.4
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/aws/aws-sdk-go-v2/service/sns v1.43.0
go: downloading github.com/aws/aws-sdk-go-v2/service/sesv2 v1.66.6
go: downloading google.golang.org/protobuf v1.36.10
go: downloading github.com/klauspost/compress v1.20.2
go: downloading golang.org/x/text v0.43.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/libc v1.74.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
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 (178 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
=== vet-tags (191 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/pierrec/lz4/v4 v4.1.22
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/memory v1.11.0
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/google/uuid v1.6.0
=== gofmt (1 s, from +0 s)
gofmt -l .: clean
=== rest (389 s, from +16 s)
ok  	github.com/carlosframework/platform/cmd/carlos-media	130.326s
?   	github.com/carlosframework/platform/cmd/changelog	[no test files]
ok  	github.com/carlosframework/platform/cmd/console	213.796s
ok  	github.com/carlosframework/platform/cmd/mediaimage	42.065s
ok  	github.com/carlosframework/platform/cmd/moveprobe	16.933s
ok  	github.com/carlosframework/platform/cmd/pricebook-export	0.023s
ok  	github.com/carlosframework/platform/cmd/rootfswitness	0.218s
ok  	github.com/carlosframework/platform/cmd/runsc-assets	0.176s
ok  	github.com/carlosframework/platform/cmd/zddprobe	1.083s
ok  	github.com/carlosframework/platform/internal/agentsock	0.049s
ok  	github.com/carlosframework/platform/internal/alerting	0.031s
ok  	github.com/carlosframework/platform/internal/analytics	0.343s
ok  	github.com/carlosframework/platform/internal/appconfig	45.649s
ok  	github.com/carlosframework/platform/internal/apperr	0.378s
ok  	github.com/carlosframework/platform/internal/applog	3.430s
ok  	github.com/carlosframework/platform/internal/apppolicy	2.541s
ok  	github.com/carlosframework/platform/internal/assetcache	0.484s
ok  	github.com/carlosframework/platform/internal/awsinv	0.010s
ok  	github.com/carlosframework/platform/internal/awsmanaged	9.182s
ok  	github.com/carlosframework/platform/internal/awsregiongroup	0.518s
ok  	github.com/carlosframework/platform/internal/awsterminations	0.021s
ok  	github.com/carlosframework/platform/internal/backupswords	0.022s
ok  	github.com/carlosframework/platform/internal/billing	0.096s
ok  	github.com/carlosframework/platform/internal/billing/billingtest	0.086s
ok  	github.com/carlosframework/platform/internal/billingstripe	2.396s
ok  	github.com/carlosframework/platform/internal/boxchoice	0.025s
ok  	github.com/carlosframework/platform/internal/boxid	3.704s
?   	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.017s
ok  	github.com/carlosframework/platform/internal/boxself	0.173s
ok  	github.com/carlosframework/platform/internal/boxvolumes	0.041s
ok  	github.com/carlosframework/platform/internal/caps	4.733s
ok  	github.com/carlosframework/platform/internal/certwarm	0.025s
ok  	github.com/carlosframework/platform/internal/cgroup	1.572s
ok  	github.com/carlosframework/platform/internal/changelog	4.633s
ok  	github.com/carlosframework/platform/internal/clamd	0.067s
?   	github.com/carlosframework/platform/internal/cliflag	[no test files]
ok  	github.com/carlosframework/platform/internal/clireg	0.020s
ok  	github.com/carlosframework/platform/internal/codehealth	17.545s
ok  	github.com/carlosframework/platform/internal/compute	0.016s
ok  	github.com/carlosframework/platform/internal/consolefleet	0.007s
?   	github.com/carlosframework/platform/internal/controlname	[no test files]
?   	github.com/carlosframework/platform/internal/controlsock	[no test files]
ok  	github.com/carlosframework/platform/internal/dbdoor	10.905s
ok  	github.com/carlosframework/platform/internal/dbdoor/dbdoortest	0.023s
ok  	github.com/carlosframework/platform/internal/dbquery	0.015s
ok  	github.com/carlosframework/platform/internal/dbreads	2.906s
?   	github.com/carlosframework/platform/internal/dbreads/dbreadstest	[no test files]
ok  	github.com/carlosframework/platform/internal/dbverify	0.032s
ok  	github.com/carlosframework/platform/internal/demo	0.011s
ok  	github.com/carlosframework/platform/internal/demobuild	5.411s
ok  	github.com/carlosframework/platform/internal/democlaim	0.450s
ok  	github.com/carlosframework/platform/internal/devbox	17.958s
ok  	github.com/carlosframework/platform/internal/dnsrec	0.010s
ok  	github.com/carlosframework/platform/internal/docsite	0.193s
ok  	github.com/carlosframework/platform/internal/domainreg	0.025s
ok  	github.com/carlosframework/platform/internal/domains	73.249s
ok  	github.com/carlosframework/platform/internal/doorkey	0.056s
ok  	github.com/carlosframework/platform/internal/economics	0.018s
ok  	github.com/carlosframework/platform/internal/edgefence	0.149s
ok  	github.com/carlosframework/platform/internal/edgeguard	0.411s
?   	github.com/carlosframework/platform/internal/edgeproof	[no test files]
ok  	github.com/carlosframework/platform/internal/edgesfile	0.104s
ok  	github.com/carlosframework/platform/internal/egressaddr	0.019s
ok  	github.com/carlosframework/platform/internal/execsandbox	105.248s
ok  	github.com/carlosframework/platform/internal/fileacl	0.022s
ok  	github.com/carlosframework/platform/internal/fleetapi	2.566s
ok  	github.com/carlosframework/platform/internal/fleetstore	0.009s
ok  	github.com/carlosframework/platform/internal/fxrate	0.015s
ok  	github.com/carlosframework/platform/internal/gate	3.833s
ok  	github.com/carlosframework/platform/internal/genselect	0.136s
ok  	github.com/carlosframework/platform/internal/geo	0.046s
ok  	github.com/carlosframework/platform/internal/geoip	0.123s
ok  	github.com/carlosframework/platform/internal/groupadmission	0.010s
ok  	github.com/carlosframework/platform/internal/grouprollaws	17.424s
ok  	github.com/carlosframework/platform/internal/hadeparture	0.025s
ok  	github.com/carlosframework/platform/internal/hafresh	0.014s
ok  	github.com/carlosframework/platform/internal/hairpin	0.223s
ok  	github.com/carlosframework/platform/internal/historyreadback	1.281s
ok  	github.com/carlosframework/platform/internal/hostactors	23.628s
ok  	github.com/carlosframework/platform/internal/hostbox	23.364s
ok  	github.com/carlosframework/platform/internal/hostclaim	2.636s
ok  	github.com/carlosframework/platform/internal/hostenv	0.050s
ok  	github.com/carlosframework/platform/internal/hostevidence	0.016s
ok  	github.com/carlosframework/platform/internal/hostexec	27.583s
ok  	github.com/carlosframework/platform/internal/hostfence	0.359s
ok  	github.com/carlosframework/platform/internal/hostfiles	27.483s
ok  	github.com/carlosframework/platform/internal/hostfloor	0.392s
ok  	github.com/carlosframework/platform/internal/hostguard	1.608s
ok  	github.com/carlosframework/platform/internal/hostops	36.006s
?   	github.com/carlosframework/platform/internal/hostops/fencerelease	[no test files]
ok  	github.com/carlosframework/platform/internal/hostops/internal/fencerelease	0.007s
ok  	github.com/carlosframework/platform/internal/hostquarantine	0.016s
ok  	github.com/carlosframework/platform/internal/hostrelocate	1.675s
ok  	github.com/carlosframework/platform/internal/hostresolve	0.710s
ok  	github.com/carlosframework/platform/internal/hostwrite	0.021s
ok  	github.com/carlosframework/platform/internal/identity	0.023s
ok  	github.com/carlosframework/platform/internal/infraview	0.025s
ok  	github.com/carlosframework/platform/internal/ingresshealth	0.022s
ok  	github.com/carlosframework/platform/internal/ingresshealth/awstg	0.008s
ok  	github.com/carlosframework/platform/internal/instancectl	66.883s
ok  	github.com/carlosframework/platform/internal/instanceexec	9.645s
ok  	github.com/carlosframework/platform/internal/instancefs	16.757s
ok  	github.com/carlosframework/platform/internal/instancekey	0.004s
ok  	github.com/carlosframework/platform/internal/instanceupdates	0.022s
ok  	github.com/carlosframework/platform/internal/interactive	0.633s
ok  	github.com/carlosframework/platform/internal/launchd	0.012s
ok  	github.com/carlosframework/platform/internal/layout	24.110s
ok  	github.com/carlosframework/platform/internal/layout/pubclass	100.970s
ok  	github.com/carlosframework/platform/internal/lbhealth	0.009s
ok  	github.com/carlosframework/platform/internal/lease	144.928s
ok  	github.com/carlosframework/platform/internal/lease/leasetest	1.441s
ok  	github.com/carlosframework/platform/internal/lease/locktest	0.017s
ok  	github.com/carlosframework/platform/internal/ledger	0.053s
ok  	github.com/carlosframework/platform/internal/mail	3.015s
ok  	github.com/carlosframework/platform/internal/mailer	0.901s
ok  	github.com/carlosframework/platform/internal/mailsubmit	1.435s
ok  	github.com/carlosframework/platform/internal/mailwire	0.010s
ok  	github.com/carlosframework/platform/internal/maintenance	0.188s
ok  	github.com/carlosframework/platform/internal/maintenanceexec	8.344s
ok  	github.com/carlosframework/platform/internal/maintenanceguard	0.452s
ok  	github.com/carlosframework/platform/internal/managedboot	3.587s
?   	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.905s
ok  	github.com/carlosframework/platform/internal/media/mediatest	0.008s
ok  	github.com/carlosframework/platform/internal/mediaaws	63.769s
ok  	github.com/carlosframework/platform/internal/mediahandler	41.774s
ok  	github.com/carlosframework/platform/internal/mediajobs	1.105s
ok  	github.com/carlosframework/platform/internal/medialocal	10.036s
ok  	github.com/carlosframework/platform/internal/metrics	0.100s
ok  	github.com/carlosframework/platform/internal/minorunits	0.011s
ok  	github.com/carlosframework/platform/internal/moves	55.649s
ok  	github.com/carlosframework/platform/internal/moves/archive	3.242s
ok  	github.com/carlosframework/platform/internal/moves/offlinerun	0.118s
ok  	github.com/carlosframework/platform/internal/namedunits	0.022s
ok  	github.com/carlosframework/platform/internal/objstore	18.186s
ok  	github.com/carlosframework/platform/internal/ops	14.752s
ok  	github.com/carlosframework/platform/internal/pageindex	3.780s
ok  	github.com/carlosframework/platform/internal/parity	0.138s
?   	github.com/carlosframework/platform/internal/parity/cmd/parity-doc	[no test files]
ok  	github.com/carlosframework/platform/internal/park	0.734s
ok  	github.com/carlosframework/platform/internal/perf	0.204s
ok  	github.com/carlosframework/platform/internal/plans	0.109s
ok  	github.com/carlosframework/platform/internal/privatefile	0.007s
ok  	github.com/carlosframework/platform/internal/provision	238.383s
ok  	github.com/carlosframework/platform/internal/proxyproto	0.938s
ok  	github.com/carlosframework/platform/internal/publicrelease	0.069s
ok  	github.com/carlosframework/platform/internal/ratelimit	0.250s
ok  	github.com/carlosframework/platform/internal/regionlabel	0.049s
ok  	github.com/carlosframework/platform/internal/regionname	0.048s
ok  	github.com/carlosframework/platform/internal/registrar	0.011s
ok  	github.com/carlosframework/platform/internal/registrar/openprovider	0.674s
?   	github.com/carlosframework/platform/internal/registrar/registrartest	[no test files]
ok  	github.com/carlosframework/platform/internal/registry	87.127s
ok  	github.com/carlosframework/platform/internal/relay	7.675s
ok  	github.com/carlosframework/platform/internal/release	129.165s
?   	github.com/carlosframework/platform/internal/release/requestwitness	[no test files]
ok  	github.com/carlosframework/platform/internal/replicagen	0.021s
ok  	github.com/carlosframework/platform/internal/replicas	0.124s
ok  	github.com/carlosframework/platform/internal/reqrec	6.193s
ok  	github.com/carlosframework/platform/internal/rollout	11.644s
ok  	github.com/carlosframework/platform/internal/rolloutwords	0.075s
ok  	github.com/carlosframework/platform/internal/rootaws	98.873s
ok  	github.com/carlosframework/platform/internal/rootfsimage	1.058s
ok  	github.com/carlosframework/platform/internal/rootparticipation	0.183s
ok  	github.com/carlosframework/platform/internal/rootstate	0.093s
ok  	github.com/carlosframework/platform/internal/runs	1.173s
ok  	github.com/carlosframework/platform/internal/s3compat	0.025s
ok  	github.com/carlosframework/platform/internal/s3fake	1.521s
ok  	github.com/carlosframework/platform/internal/s3meter	0.507s
ok  	github.com/carlosframework/platform/internal/safefile	0.042s
ok  	github.com/carlosframework/platform/internal/schedule	22.360s
ok  	github.com/carlosframework/platform/internal/seeds	0.120s
ok  	github.com/carlosframework/platform/internal/share	0.039s
ok  	github.com/carlosframework/platform/internal/sim/litestreamfacts	5.112s
ok  	github.com/carlosframework/platform/internal/sim/mediajobs	49.714s
ok  	github.com/carlosframework/platform/internal/sim/regionha	20.750s
ok  	github.com/carlosframework/platform/internal/status	0.382s
ok  	github.com/carlosframework/platform/internal/steering	0.256s
ok  	github.com/carlosframework/platform/internal/stopevidence	0.382s
ok  	github.com/carlosframework/platform/internal/storecfg	0.382s
ok  	github.com/carlosframework/platform/internal/svcrole	0.020s
ok  	github.com/carlosframework/platform/internal/systemd	6.035s
?   	github.com/carlosframework/platform/internal/systemdshow	[no test files]
ok  	github.com/carlosframework/platform/internal/team	3.365s
ok  	github.com/carlosframework/platform/internal/teamcontract	0.115s
ok  	github.com/carlosframework/platform/internal/telemetry	0.023s
ok  	github.com/carlosframework/platform/internal/termfence	2.903s
ok  	github.com/carlosframework/platform/internal/timerspec	0.035s
ok  	github.com/carlosframework/platform/internal/tsidentity	4.176s
ok  	github.com/carlosframework/platform/internal/tunnelclient	0.449s
ok  	github.com/carlosframework/platform/internal/unixdial	0.018s
ok  	github.com/carlosframework/platform/internal/updatewords	0.035s
ok  	github.com/carlosframework/platform/internal/upstreamguard	0.036s
?   	github.com/carlosframework/platform/internal/upstreamguard/guardtest	[no test files]
ok  	github.com/carlosframework/platform/internal/usage	0.186s
ok  	github.com/carlosframework/platform/internal/version	0.028s
ok  	github.com/carlosframework/platform/internal/vet	2.972s
ok  	github.com/carlosframework/platform/internal/zonehost	0.026s
ok  	github.com/carlosframework/platform/internal/zonehost/route53zones	0.101s
?   	github.com/carlosframework/platform/internal/zonehost/zonehosttest	[no test files]
?   	github.com/carlosframework/platform/scripts/gitleaks-gate	[no test files]
ok  	github.com/carlosframework/platform/scripts/govulncheck-gate	0.017s
ok  	github.com/carlosframework/platform/scripts/pathmapcheck	0.087s
ok  	github.com/carlosframework/platform/scripts/region-ha-g2/fixture	5.160s
ok  	github.com/carlosframework/platform/scripts/stateless-replicas-drill	1.204s
ok  	github.com/carlosframework/platform/scripts/witness-pointer	0.031s
=== cutover-witness (163 s, from +16 s)
ok  	github.com/carlosframework/platform	1.961s
=== internal_grouproll@0 (275 s, from +76 s)
ok  	github.com/carlosframework/platform/internal/grouproll	274.242s
=== internal_grouproll@1 (280 s, from +76 s)
ok  	github.com/carlosframework/platform/internal/grouproll	279.230s
=== internal_activator@0 (153 s, from +147 s)
ok  	github.com/carlosframework/platform/internal/activator	147.577s
=== internal_activator@1 (135 s, from +147 s)
ok  	github.com/carlosframework/platform/internal/activator	129.221s
=== internal_activator@2 (145 s, from +147 s)
ok  	github.com/carlosframework/platform/internal/activator	140.244s
=== internal_activator@3 (172 s, from +147 s)
2026/12/02 17:14:49 activator: hook.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:14:49 activator: fresh.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, seed 0s, spawn 0s, replicate 0s
2026/12/02 17:14:49 activator: restorefail.example.com: wake failed: restore restorefail.example.com: s3 down
2026/12/02 17:14:49 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:14:49 activator: LEASE HELD for held.example.com by "old-incarnation" — a previous incarnation hasn't released; refusing to wake (retry after 7s)
2026/12/02 17:14:50 activator: tick.bab.oncarlos.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:14:50 activator: fenced.bab.oncarlos.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:14:50 activator: bot.x.internal: wake failed: start bot.x.internal: exec: no argv
2026/12/02 17:14:50 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:14:50 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:14:50 activator: damaged.example.com restored CORRUPT from s3://test-bucket/damaged.example.com: integrity_check: file is not a database (26) — quarantined at /tmp/TestExecBackendRestoreCorruptReplicaFailsAndQuarantines177029384/002/damaged.example.com.db.corrupt, instance NOT started
2026/12/02 17:14:50 activator: restored damaged.example.com from s3://test-bucket/damaged.example.com
2026/12/02 17:14:50 activator: seeding custom-db.example.com: /tmp/TestExecBackendSeedHonoursRouteDBPath4231851750/001/live/custom-db.example.com seed --db /tmp/TestExecBackendSeedHonoursRouteDBPath4231851750/004/elsewhere.db
2026/12/02 17:14:50 activator: seeded custom-db.example.com
2026/12/02 17:14:50 activator: seeding hangs.example.com: /tmp/TestExecBackendSeedIsTimeBounded1549198939/001/live/hangs.example.com seed --db /tmp/TestExecBackendSeedIsTimeBounded1549198939/002/hangs.example.com.db
2026/12/02 17:14:51 activator: hangs.example.com: the seed ran with no delegated cgroup; its leader's exit is the only proof there is
2026/12/02 17:14:51 activator: owned.example.com: strict group did not drain: cgroup: strict containment requires a live deadline
2026/12/02 17:14:51 activator: owned.example.com: strict group cleaned up on retry 1
2026/12/02 17:14:51 activator: owned.example.com: strict group not closed: cgroup: strict containment refused
2026/12/02 17:14:52 activator: owned.example.com: strict group cleaned up on retry 1
2026/12/02 17:14:52 activator: gone.example.com: wake failed: start gone.example.com: Unit carlos-app@gone.example.com.service not found
2026/12/02 17:14:52 activator: h.example.com: started carlos-instance-gen@h.example.com:7.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 0s)
2026/12/02 17:14:52 activator: blog.example.com: this kernel has no cgroup.kill, so the host cgroup cannot be killed; its leader's exit is the only proof there is
2026/12/02 17:14:53 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:14:53 activator: tenant.test: v1 not started: its build state could not be written: bucket refused the build state
2026/12/02 17:14:53 activator: tenant.test not started: the executable it hashed (/tmp/rl3500256318/app) is build "v1", but the start names build "v2" (the live link moved between the two reads); the next wake reads it again
2026/12/02 17:14:53 activator: c.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:14:53 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:14:53 activator: seeding helper-seed.example.com: /tmp/TestAFlagOnSeedKillsAHelperThatOutlivesIt2852276416/002/live/helper-seed.example.com seed --db /tmp/TestAFlagOnSeedKillsAHelperThatOutlivesIt2852276416/003/helper-seed.example.com.db
2026/12/02 17:14:53 activator: seeded helper-seed.example.com
2026/12/02 17:14:53 activator: seeding no-room.example.com: /tmp/TestASeedWhoseObligationCannotBeWrittenRunsNothing4283645585/002/live/no-room.example.com seed --db /tmp/TestASeedWhoseObligationCannotBeWrittenRunsNothing4283645585/003/no-room.example.com.db
2026/12/02 17:14:53 activator: shop.example.com: release command of build v2 started
2026/12/02 17:14:53 activator: shop.example.com: the release command of build v2 is proven stopped
2026/12/02 17:14:53 activator: shop.example.com: stopping the release command of build v2: the instance's lease is ending
2026/12/02 17:14:53 activator: h.example.com: placed seed sd_5mqtmas6kzmuws6gbvu4h73ove (8192 bytes)
2026/12/02 17:14:53 activator: h.example.com: seed sd_dqnjvqb3ysckanegeafjyyjkzy: h.example.com could not start from its seed: the snapshot could not be read. The next wake tries again.: file does not exist
2026/12/02 17:14:53 activator: shop.example.com: wake failed: first replica not confirmed
2026/12/02 17:14:53 activator: shop.example.com: failed wake's generation 15 is not proven stopped; keeping the lease until it is
2026/12/02 17:14:53 activator: shop.example.com: wake failed: first replica not confirmed
2026/12/02 17:14:53 activator: bright-otter-42.example.com: v1 not started: its build state could not be written: DEMO-POLICY
2026/12/02 17:14:53 activator: bright-otter-42.example.com: wake failed: DEMO-DATA
2026/12/02 17:14:54 activator: bright-otter-42.example.com: wake failed: DEMO-DATA
2026/12/02 17:14:54 activator: bright-otter-42.example.com: refusing to wake: the route changed while the wake waited for its lease: its record names box "demo-1" assigned "2026-10-30T10:00:00.000000001Z", not this box "demo-2" at "2026-10-30T10:00:00.000000001Z"; giving the lease back
2026/12/02 17:14:54 activator: bright-otter-42.example.com: wake failed: bright-otter-42.example.com: refusing to wake: the route changed while the wake waited for its lease: its record names box "demo-1" assigned "2026-10-30T10:00:00.000000001Z", not this box "demo-2" at "2026-10-30T10:00:00.000000001Z"
2026/12/02 17:14:54 activator: bright-otter-42.example.com: wake failed: DEMO-DATA
2026/12/02 17:14:54 activator: DEMO-DATA; giving the lease back
2026/12/02 17:14:54 activator: bright-otter-42.example.com: wake failed: DEMO-DATA
2026/12/02 17:14:54 lease: shop.example.com: acquired in 11ms (client 0s, lock read and write 11ms)
2026/12/02 17:14:54 activator: CARLOS_ADMIN_TOKEN in /tmp/TestEscrowLostReplyRechecksWriteOnceinstance.key254627613/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (64 hex characters) — left in place, because the running instance holds this same value and rotating it would lock the platform out of a live instance; if it is corrupt, stop the instance, delete the line and restart it to have one minted
2026/12/02 17:14:54 activator: CARLOS_INSTANCE_KEY in /tmp/TestEscrowLostReplyRechecksWriteOnceinstance.key254627613/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (44 base64 characters, 32 bytes): left in place, because the app may already have sealed data with it
2026/12/02 17:14:54 ALERT: shop.example.com: escrow: shop.example.com/instance.key differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestEscrowLostReplyRechecksWriteOnceinstance.key254627613/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestEscrowLostReplyRechecksWriteOnceinstance.key254627613/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:14:54 lease: shop.example.com: acquired in 5ms (client 0s, lock read and write 5ms)
2026/12/02 17:14:54 activator: CARLOS_ADMIN_TOKEN in /tmp/TestEscrowLostReplyRechecksWriteOncereport.token3936697265/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (64 hex characters) — left in place, because the running instance holds this same value and rotating it would lock the platform out of a live instance; if it is corrupt, stop the instance, delete the line and restart it to have one minted
2026/12/02 17:14:54 activator: CARLOS_INSTANCE_KEY in /tmp/TestEscrowLostReplyRechecksWriteOncereport.token3936697265/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (44 base64 characters, 32 bytes): left in place, because the app may already have sealed data with it
2026/12/02 17:14:54 ALERT: shop.example.com: escrow: shop.example.com/report.token differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestEscrowLostReplyRechecksWriteOncereport.token3936697265/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestEscrowLostReplyRechecksWriteOncereport.token3936697265/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:14:55 lease: shop.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:55 activator: CARLOS_ADMIN_TOKEN in /tmp/TestEscrowLostReplyRechecksWriteOnceenv.sealed2624484588/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (64 hex characters) — left in place, because the running instance holds this same value and rotating it would lock the platform out of a live instance; if it is corrupt, stop the instance, delete the line and restart it to have one minted
2026/12/02 17:14:55 activator: CARLOS_INSTANCE_KEY in /tmp/TestEscrowLostReplyRechecksWriteOnceenv.sealed2624484588/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (44 base64 characters, 32 bytes): left in place, because the app may already have sealed data with it
2026/12/02 17:14:55 ALERT: shop.example.com: escrow: CARLOS_ADMIN_TOKEN and CARLOS_INSTANCE_KEY differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestEscrowLostReplyRechecksWriteOnceenv.sealed2624484588/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestEscrowLostReplyRechecksWriteOnceenv.sealed2624484588/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:14:55 lease: shop.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:55 lease: shop.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:55 activator: restored shop.example.com from s3://locks/shop.example.com
2026/12/02 17:14:55 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:14:55 activator: shop.example.com: started carlos-instance@shop.example.com.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 0s)
2026/12/02 17:14:55 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 1ms, healthy 0s later
2026/12/02 17:14:55 activator: shop.example.com: woke in 65ms: checks 0s, lease 1ms, restore 1ms, identity 0s, protect 0s, spawn 1ms, replicate 62ms
2026/12/02 17:14:55 lease: shop.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:55 activator: restored shop.example.com from s3://locks/shop.example.com
2026/12/02 17:14:55 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 1ms, instance key 0s, env 12ms, control socket 0s, key gate 0s, logs 0s) 13ms, launch file 0s, gate 0s, root start 0s)
2026/12/02 17:14:55 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 14ms, healthy 0s later
2026/12/02 17:14:55 activator: shop.example.com: woke in 78ms: checks 0s, lease 1ms, restore 1ms, identity 0s, protect 0s, spawn 14ms, replicate 62ms
2026/12/02 17:14:55 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:14:55 activator: shop.example.com hibernated
2026/12/02 17:14:55 lease: shop.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:55 activator: shop.example.com: escrow: restored shop.example.com.env from the bucket
2026/12/02 17:14:55 activator: shop.example.com: escrow: restored shop.example.com/instance.key from the bucket
2026/12/02 17:14:55 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 20ms, instance key 0s, env 0s, control socket 0s, key gate 0s, logs 0s) 20ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:14:55 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 21ms, healthy 8ms later
2026/12/02 17:14:55 lease: /tmp/TestEscrowSurvivesALostEnvAcrossWakes1266951769/002/data/instances/shop.example.com/shop.example.com.db: continuity with the last clean close not proven; snapshot 1-0000000000000001 written before serving
2026/12/02 17:14:55 activator: shop.example.com: woke in 44ms: checks 0s, lease 1ms, restore 0s, identity 0s, protect 1ms, spawn 29ms, replicate 13ms
2026/12/02 17:14:55 lease: shop.example.com: acquired in 4ms (client 0s, lock read and write 3ms)
2026/12/02 17:14:55 lease: shop.example.com: acquired in 3ms (client 0s, lock read and write 2ms)
2026/12/02 17:14:56 lease: shop.example.com: acquired in 15ms (client 0s, lock read and write 15ms)
2026/12/02 17:14:56 activator: shop.example.com: escrow: store unavailable (launching; the next sweep escrows it again)
2026/12/02 17:14:56 lease: shop.example.com: acquired in 2ms (client 0s, lock read and write 2ms)
2026/12/02 17:14:56 activator: shop.example.com: escrow: store unavailable (launching; the next sweep escrows it again)
2026/12/02 17:14:56 lease: shop.example.com: acquired in 12ms (client 0s, lock read and write 12ms)
2026/12/02 17:14:56 lease: shop.example.com: acquired in 2ms (client 0s, lock read and write 2ms)
2026/12/02 17:14:56 ALERT: shop.example.com: escrow: another writer publishes this host's escrow
2026/12/02 17:14:57 lease: shop.example.com: acquired in 7ms (client 0s, lock read and write 7ms)
2026/12/02 17:14:57 lease: h000.example.com: acquired in 6ms (client 0s, lock read and write 6ms)
2026/12/02 17:14:57 lease: h001.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h002.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h003.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h004.example.com: acquired in 9ms (client 0s, lock read and write 9ms)
2026/12/02 17:14:57 lease: h005.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h006.example.com: acquired in 4ms (client 0s, lock read and write 4ms)
2026/12/02 17:14:57 lease: h007.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h008.example.com: acquired in 5ms (client 0s, lock read and write 5ms)
2026/12/02 17:14:57 lease: h009.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h010.example.com: acquired in 13ms (client 0s, lock read and write 13ms)
2026/12/02 17:14:57 lease: h011.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h012.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h013.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h014.example.com: acquired in 7ms (client 0s, lock read and write 7ms)
2026/12/02 17:14:57 lease: h015.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h016.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h017.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h018.example.com: acquired in 19ms (client 0s, lock read and write 19ms)
2026/12/02 17:14:57 lease: h019.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h020.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h021.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h022.example.com: acquired in 11ms (client 0s, lock read and write 11ms)
2026/12/02 17:14:57 lease: h023.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h024.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h025.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h026.example.com: acquired in 4ms (client 0s, lock read and write 4ms)
2026/12/02 17:14:57 lease: h027.example.com: acquired in 6ms (client 2ms, lock read and write 4ms)
2026/12/02 17:14:57 lease: h028.example.com: acquired in 4ms (client 0s, lock read and write 4ms)
2026/12/02 17:14:57 lease: h029.example.com: acquired in 4ms (client 0s, lock read and write 4ms)
2026/12/02 17:14:57 lease: h030.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h031.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h032.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h033.example.com: acquired in 7ms (client 0s, lock read and write 7ms)
2026/12/02 17:14:57 lease: h034.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h035.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h036.example.com: acquired in 8ms (client 0s, lock read and write 8ms)
2026/12/02 17:14:57 lease: h037.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h038.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h039.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h040.example.com: acquired in 15ms (client 0s, lock read and write 15ms)
2026/12/02 17:14:57 lease: h041.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h042.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h043.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h044.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h045.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h046.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h047.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h048.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h049.example.com: acquired in 8ms (client 0s, lock read and write 8ms)
2026/12/02 17:14:57 lease: h050.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h051.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h052.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h053.example.com: acquired in 10ms (client 0s, lock read and write 10ms)
2026/12/02 17:14:57 lease: h054.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h055.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h056.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h057.example.com: acquired in 6ms (client 6ms, lock read and write 1ms)
2026/12/02 17:14:57 lease: h058.example.com: acquired in 2ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h059.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h060.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h061.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h062.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h063.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h064.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h065.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h066.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h067.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h068.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h069.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h070.example.com: acquired in 2ms (client 1ms, lock read and write 1ms)
2026/12/02 17:14:57 lease: h071.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h072.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h073.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h074.example.com: acquired in 10ms (client 0s, lock read and write 10ms)
2026/12/02 17:14:57 lease: h075.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h076.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h077.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h078.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h079.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h080.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h081.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h082.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h083.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h084.example.com: acquired in 5ms (client 0s, lock read and write 5ms)
2026/12/02 17:14:57 lease: h085.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h086.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h087.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h088.example.com: acquired in 6ms (client 0s, lock read and write 6ms)
2026/12/02 17:14:57 lease: h089.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h090.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h091.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h092.example.com: acquired in 2ms (client 1ms, lock read and write 1ms)
2026/12/02 17:14:57 lease: h093.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h094.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h095.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h096.example.com: acquired in 7ms (client 0s, lock read and write 7ms)
2026/12/02 17:14:57 lease: h097.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h098.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h099.example.com: acquired in 4ms (client 0s, lock read and write 4ms)
2026/12/02 17:14:57 lease: h100.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h101.example.com: acquired in 5ms (client 0s, lock read and write 4ms)
2026/12/02 17:14:57 lease: h102.example.com: acquired in 6ms (client 0s, lock read and write 6ms)
2026/12/02 17:14:57 lease: h103.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h104.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h105.example.com: acquired in 4ms (client 0s, lock read and write 3ms)
2026/12/02 17:14:57 lease: h106.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h107.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h108.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h109.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h110.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h111.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h112.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h113.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h114.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h115.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h116.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h117.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h118.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h119.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h120.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h121.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h122.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h123.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h124.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h125.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h126.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h127.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h128.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h129.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h130.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h131.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h132.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h133.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h134.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h135.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h136.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h137.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h138.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h139.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h140.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h141.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h142.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h143.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h144.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h145.example.com: acquired in 4ms (client 0s, lock read and write 4ms)
2026/12/02 17:14:57 lease: h146.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h147.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h148.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h149.example.com: acquired in 2ms (client 0s, lock read and write 2ms)
2026/12/02 17:14:57 lease: h150.example.com: acquired in 4ms (client 0s, lock read and write 3ms)
2026/12/02 17:14:57 lease: h151.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h152.example.com: acquired in 5ms (client 0s, lock read and write 5ms)
2026/12/02 17:14:57 lease: h153.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h154.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h155.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h156.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h157.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h158.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h159.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h160.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h161.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h162.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h163.example.com: acquired in 7ms (client 0s, lock read and write 7ms)
2026/12/02 17:14:57 lease: h164.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h165.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h166.example.com: acquired in 2ms (client 0s, lock read and write 2ms)
2026/12/02 17:14:57 lease: h167.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h168.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h169.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h170.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h171.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h172.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h173.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h174.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h175.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h176.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h177.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h178.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h179.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h180.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h181.example.com: acquired in 4ms (client 0s, lock read and write 4ms)
2026/12/02 17:14:57 lease: h182.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h183.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h184.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h185.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h186.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h187.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h188.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h189.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h190.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h191.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h192.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h193.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h194.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h195.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h196.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h197.example.com: acquired in 4ms (client 0s, lock read and write 4ms)
2026/12/02 17:14:57 lease: h198.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h199.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h200.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h201.example.com: acquired in 3ms (client 0s, lock read and write 3ms)
2026/12/02 17:14:57 lease: h202.example.com: acquired in 9ms (client 0s, lock read and write 9ms)
2026/12/02 17:14:57 lease: h203.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h204.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h205.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h206.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h207.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h208.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h209.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h210.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h211.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h212.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h213.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h214.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h215.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h216.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h217.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h218.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h219.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h220.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h221.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h222.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h223.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h224.example.com: acquired in 5ms (client 0s, lock read and write 5ms)
2026/12/02 17:14:57 lease: h225.example.com: acquired in 3ms (client 0s, lock read and write 3ms)
2026/12/02 17:14:57 lease: h226.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h227.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h228.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h229.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h230.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h231.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h232.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:57 lease: h233.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h234.example.com: acquired in 4ms (client 0s, lock read and write 4ms)
2026/12/02 17:14:57 lease: h235.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h236.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h237.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h238.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h239.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h240.example.com: acquired in 3ms (client 0s, lock read and write 3ms)
2026/12/02 17:14:57 lease: h241.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h242.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h243.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h244.example.com: acquired in 2ms (client 0s, lock read and write 2ms)
2026/12/02 17:14:57 lease: h245.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h246.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h247.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h248.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h249.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h250.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:57 lease: h251.example.com: acquired in 1ms (client 0s, lock read and write 0s)
2026/12/02 17:14:59 lease: shop.example.com: acquired in 13ms (client 0s, lock read and write 13ms)
2026/12/02 17:14:59 activator: shop.example.com: escrow: the ledger was not written (disk full) and the stale one could not be removed (read-only); this agent reads the bucket for the host instead
2026/12/02 17:14:59 lease: shop.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:14:59 activator: shop.example.com: escrow: restored shop.example.com/instance.key from the bucket
2026/12/02 17:14:59 activator: CARLOS_ADMIN_TOKEN in /tmp/TestStaleLedgerAndANoOpSweepNeverSuppressARestore878247143/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (64 hex characters) — left in place, because the running instance holds this same value and rotating it would lock the platform out of a live instance; if it is corrupt, stop the instance, delete the line and restart it to have one minted
2026/12/02 17:14:59 activator: CARLOS_INSTANCE_KEY in /tmp/TestStaleLedgerAndANoOpSweepNeverSuppressARestore878247143/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (44 base64 characters, 32 bytes): left in place, because the app may already have sealed data with it
2026/12/02 17:14:59 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:14:59 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:14:59 activator: generation 2199023255552 of shop.example.com did not prove its exit; keeping it in the operation set
2026/12/02 17:14:59 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:14:59 activator: swap.example.com: generation 25's child is not proven empty: the child still holds a process
2026/12/02 17:14:59 activator: generation 25 of swap.example.com did not prove its exit; keeping it in the operation set
2026/12/02 17:14:59 activator: swap.example.com: generation 25's child is not proven empty: the child still holds a process
2026/12/02 17:14:59 activator: publish generations to /tmp/TestStartDoesNotFailOnAnUnwritableGenerationsFile326213283/002/not-a-dir/zdd/generations.json: open directory /tmp/TestStartDoesNotFailOnAnUnwritableGenerationsFile326213283/002/not-a-dir/zdd: not a directory; the sweep retries
2026/12/02 17:14:59 activator: plain.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:14:59 activator: due.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:14:59 activator: due.example.com hibernated
2026/12/02 17:14:59 activator: due.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:14:59 activator: due.example.com hibernated
2026/12/02 17:15:00 activator: bot.x.internal: woke in 20ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 20ms, replicate 0s
2026/12/02 17:15:00 lease: shop.example.com: HA lease acquired in 6ms (unclean marker)
2026/12/02 17:15:00 ha_adoption host=shop.example.com cause=departure-finalize generation=6
2026/12/02 17:15:00 lease: shop.example.com: HA lease acquired in 8ms (clean marker)
2026/12/02 17:15:00 ha_adoption host=shop.example.com cause=departure-finalize generation=6
2026/12/02 17:15:01 ha_takeover host=shop.example.com iid=i-b cause=departure-finalize confirmed=true error=false
2026/12/02 17:15:01 lease: shop.example.com: HA lease acquired in 2ms (holder terminated)
2026/12/02 17:15:01 ha_adoption host=shop.example.com cause=departure-finalize generation=6
2026/12/02 17:15:01 lease: shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/12/02 17:15:01 lease: shop.example.com: HA lease acquired in 14ms (unclean marker)
2026/12/02 17:15:02 lease: shop.example.com: HA lease acquired in 3ms (unclean marker)
2026/12/02 17:15:02 ha_adoption host=shop.example.com cause=departure-finalize generation=6
2026/12/02 17:15:02 lease: shop.example.com: HA lease acquired in 3ms (unclean marker)
2026/12/02 17:15:02 ha_adoption host=shop.example.com cause=departure-finalize generation=6
2026/12/02 17:15:04 lease: shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/12/02 17:15:04 ha_adoption host=shop.example.com cause=departure-finalize generation=6
2026/12/02 17:15:04 activator: shop.example.com: same-box recovery: the startup sweep proved every unit stopped and the host's slice reads empty
2026/12/02 17:15:04 lease: shop.example.com: HA lease acquired in 2ms (same-box takeover)
2026/12/02 17:15:04 ha_adoption host=shop.example.com cause=departure-finalize generation=7
2026/12/02 17:15:04 activator: shop.example.com: same-box recovery: the startup sweep proved every unit stopped and the host's slice reads empty
2026/12/02 17:15:04 lease: shop.example.com: HA lease acquired in 8ms (same-box takeover)
2026/12/02 17:15:04 ha_adoption host=shop.example.com cause=departure-finalize generation=7
2026/12/02 17:15:05 lease: shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/12/02 17:15:05 ha_adoption host=shop.example.com cause=departure-finalize generation=6
2026/12/02 17:15:05 lease: shop.example.com: HA lease acquired in 6ms (unclean marker)
2026/12/02 17:15:05 activator: shop.example.com: restored (unclean)
2026/12/02 17:15:05 activator: CARLOS_ADMIN_TOKEN in /tmp/TestHAAdoptThenOrdinaryRestore3261985886/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (64 hex characters) — left in place, because the running instance holds this same value and rotating it would lock the platform out of a live instance; if it is corrupt, stop the instance, delete the line and restart it to have one minted
2026/12/02 17:15:05 activator: CARLOS_INSTANCE_KEY in /tmp/TestHAAdoptThenOrdinaryRestore3261985886/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (44 base64 characters, 32 bytes): left in place, because the app may already have sealed data with it
2026/12/02 17:15:05 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 2ms, control socket 2ms, key gate 0s, logs 0s) 4ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:05 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 5ms, healthy 0s later
2026/12/02 17:15:05 activator: shop.example.com: woke in 103ms: checks 0s, lease 6ms, restore 21ms, identity 0s, protect 0s, spawn 5ms, replicate 70ms
2026/12/02 17:15:05 lease: shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/12/02 17:15:05 lease: shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/12/02 17:15:05 ha_adoption host=shop.example.com cause=departure-finalize generation=6
2026/12/02 17:15:06 lease: shop.example.com: HA lease acquired in 10ms (unclean marker)
2026/12/02 17:15:06 ha_adoption host=shop.example.com cause=departure-finalize generation=6
2026/12/02 17:15:06 lease: shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/12/02 17:15:06 ha_adoption host=shop.example.com cause=departure-finalize generation=6
2026/12/02 17:15:07 lease: shop.example.com: HA lease acquired in 13ms (first wake)
2026/12/02 17:15:07 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:07 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 3ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:07 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:15:07 activator: shop.example.com: woke in 82ms: checks 0s, lease 14ms, restore 0s, identity 0s, protect 0s, spawn 4ms, replicate 64ms
2026/12/02 17:15:07 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:07 activator: shop.example.com: files: the final publish is not complete (too large [], not regular ["pipe"], unreadable [], replaced [], torn []); the release is not clean
2026/12/02 17:15:07 activator: shop.example.com: released with a marker (clean false, txid 1, files 4:b22c907a870c09a40385e8c398402983ef6911e72db6547994b2e9244aaa7ea3) in 16ms: files 3ms, sync 10ms, record 0s, marker 3ms
2026/12/02 17:15:07 activator: shop.example.com hibernated
2026/12/02 17:15:07 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:07 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:07 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 37ms, control socket 0s, key gate 0s, logs 1ms) 39ms, launch file 0s, gate 0s, root start 14ms)
2026/12/02 17:15:07 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 60ms, healthy 0s later
2026/12/02 17:15:07 activator: shop.example.com: woke in 116ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 61ms, replicate 53ms
2026/12/02 17:15:07 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:07 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:daeca4556645ba8532668290963cecf89368e2f600e486d69aee0e2d4538b6a9) in 20ms: files 1ms, sync 9ms, record 1ms, marker 10ms
2026/12/02 17:15:07 activator: shop.example.com hibernated
2026/12/02 17:15:08 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:08 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:08 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 10ms, control socket 0s, key gate 0s, logs 0s) 10ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:08 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 11ms, healthy 0s later
2026/12/02 17:15:08 activator: shop.example.com: woke in 82ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 11ms, replicate 69ms
2026/12/02 17:15:08 activator: handover of shop.example.com left: test; its held requests get today's answer
2026/12/02 17:15:08 lease: shop.example.com: HA lease acquired in 3ms (first wake)
2026/12/02 17:15:08 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:08 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 2ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:08 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 3ms, healthy 0s later
2026/12/02 17:15:08 activator: shop.example.com: woke in 61ms: checks 0s, lease 3ms, restore 0s, identity 0s, protect 0s, spawn 4ms, replicate 54ms
2026/12/02 17:15:08 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:08 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:7f0c77f94f9e28e517aeb34a7088ccb170f40e058254aa068ad679875acdca84) in 3ms: files 1ms, sync 1ms, record 1ms, marker 1ms
2026/12/02 17:15:08 activator: shop.example.com hibernated
2026/12/02 17:15:08 lease: shop.example.com: HA lease acquired in 19ms (clean marker)
2026/12/02 17:15:08 activator: shop.example.com: kept local
2026/12/02 17:15:08 activator: shop.example.com: started carlos-instance@shop.example.com.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 38ms)
2026/12/02 17:15:08 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 39ms, healthy 0s later
2026/12/02 17:15:09 activator: shop.example.com: woke in 113ms: checks 0s, lease 19ms, restore 1ms, identity 0s, protect 0s, spawn 39ms, replicate 53ms
2026/12/02 17:15:09 activator: shop.example.com is no longer hibernate-managed — releasing
2026/12/02 17:15:09 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:09 activator: shop.example.com: released with a marker (clean true, txid 2, files 3:7f0c77f94f9e28e517aeb34a7088ccb170f40e058254aa068ad679875acdca84) in 2ms: files 1ms, sync 0s, record 1ms, marker 1ms
2026/12/02 17:15:09 activator: shop.example.com hibernated
2026/12/02 17:15:09 lease: shop.example.com: HA lease acquired in 1ms (clean marker)
2026/12/02 17:15:09 activator: shop.example.com: kept local
2026/12/02 17:15:09 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 1ms, control socket 0s, key gate 0s, logs 0s) 1ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:09 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 2ms, healthy 0s later
2026/12/02 17:15:09 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:15:09 lease: shop.example.com: HA lease acquired in 7ms (unclean marker)
2026/12/02 17:15:09 activator: shop.example.com: restored (unclean)
2026/12/02 17:15:09 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 24ms, control socket 0s, key gate 0s, logs 0s) 25ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:09 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 26ms, healthy 0s later
2026/12/02 17:15:09 activator: shop.example.com: woke in 96ms: checks 0s, lease 7ms, restore 2ms, identity 0s, protect 0s, spawn 26ms, replicate 60ms
2026/12/02 17:15:09 lease: shop.example.com: HA lease acquired in 7ms (first wake)
2026/12/02 17:15:09 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:09 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 9ms, control socket 0s, key gate 0s, logs 0s) 9ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:09 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 10ms, healthy 0s later
2026/12/02 17:15:09 activator: shop.example.com: woke in 76ms: checks 0s, lease 9ms, restore 0s, identity 0s, protect 0s, spawn 11ms, replicate 56ms
2026/12/02 17:15:10 lease: shop.example.com: HA lease acquired in 1ms (same-box takeover)
2026/12/02 17:15:10 ALERT: shop.example.com: escrow: CARLOS_ADMIN_TOKEN differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHAPublicationRefusesChangedMintedValuesplatformCARLOS_ADMI976030654/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHAPublicationRefusesChangedMintedValuesplatformCARLOS_ADMI976030654/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:11 ALERT: shop.example.com: escrow: CARLOS_INSTANCE_KEY differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHAPublicationRefusesChangedMintedValuesplatformCARLOS_INST2540718340/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHAPublicationRefusesChangedMintedValuesplatformCARLOS_INST2540718340/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:11 ALERT: shop.example.com: escrow: shop.example.com/instance.key differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHAPublicationRefusesChangedMintedValuesplatforminstance.ke3210899223/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHAPublicationRefusesChangedMintedValuesplatforminstance.ke3210899223/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:11 ALERT: shop.example.com: escrow: shop.example.com/report.token differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHAPublicationRefusesChangedMintedValuesplatformreport.toke482647962/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHAPublicationRefusesChangedMintedValuesplatformreport.toke482647962/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:12 ALERT: shop.example.com: escrow: CARLOS_ADMIN_TOKEN differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHAPublicationRefusesChangedMintedValuessnapshotCARLOS_ADMI832800853/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHAPublicationRefusesChangedMintedValuessnapshotCARLOS_ADMI832800853/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:12 ALERT: shop.example.com: escrow: CARLOS_INSTANCE_KEY differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHAPublicationRefusesChangedMintedValuessnapshotCARLOS_INST3806032294/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHAPublicationRefusesChangedMintedValuessnapshotCARLOS_INST3806032294/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:12 ALERT: shop.example.com: escrow: shop.example.com/instance.key differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHAPublicationRefusesChangedMintedValuessnapshotinstance.ke3281117462/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHAPublicationRefusesChangedMintedValuessnapshotinstance.ke3281117462/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:12 ALERT: shop.example.com: escrow: shop.example.com/report.token differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHAPublicationRefusesChangedMintedValuessnapshotreport.toke2540944540/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHAPublicationRefusesChangedMintedValuessnapshotreport.toke2540944540/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:12 ALERT: shop.example.com: escrow: CARLOS_ADMIN_TOKEN differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHAPublicationRefusesChangedMintedValuesfinalCARLOS_ADMIN_T2033190757/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHAPublicationRefusesChangedMintedValuesfinalCARLOS_ADMIN_T2033190757/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:12 ALERT: shop.example.com: escrow: CARLOS_INSTANCE_KEY differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHAPublicationRefusesChangedMintedValuesfinalCARLOS_INSTANC2514603182/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHAPublicationRefusesChangedMintedValuesfinalCARLOS_INSTANC2514603182/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:12 ALERT: shop.example.com: escrow: shop.example.com/instance.key differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHAPublicationRefusesChangedMintedValuesfinalinstance.key3623653981/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHAPublicationRefusesChangedMintedValuesfinalinstance.key3623653981/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:13 ALERT: shop.example.com: escrow: shop.example.com/report.token differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHAPublicationRefusesChangedMintedValuesfinalreport.token430049323/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHAPublicationRefusesChangedMintedValuesfinalreport.token430049323/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:13 activator: CARLOS_ADMIN_TOKEN in /tmp/TestHAPublicationRefusesChangedMintedValueslaunchCARLOS_ADMIN_246821869/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (64 hex characters) — left in place, because the running instance holds this same value and rotating it would lock the platform out of a live instance; if it is corrupt, stop the instance, delete the line and restart it to have one minted
2026/12/02 17:15:13 activator: CARLOS_INSTANCE_KEY in /tmp/TestHAPublicationRefusesChangedMintedValueslaunchCARLOS_ADMIN_246821869/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (44 base64 characters, 32 bytes): left in place, because the app may already have sealed data with it
2026/12/02 17:15:13 ALERT: shop.example.com: escrow: CARLOS_ADMIN_TOKEN differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHAPublicationRefusesChangedMintedValueslaunchCARLOS_ADMIN_246821869/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHAPublicationRefusesChangedMintedValueslaunchCARLOS_ADMIN_246821869/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:13 activator: CARLOS_ADMIN_TOKEN in /tmp/TestHAPublicationRefusesChangedMintedValueslaunchCARLOS_INSTAN1767200030/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (64 hex characters) — left in place, because the running instance holds this same value and rotating it would lock the platform out of a live instance; if it is corrupt, stop the instance, delete the line and restart it to have one minted
2026/12/02 17:15:13 activator: CARLOS_INSTANCE_KEY in /tmp/TestHAPublicationRefusesChangedMintedValueslaunchCARLOS_INSTAN1767200030/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (44 base64 characters, 32 bytes): left in place, because the app may already have sealed data with it
2026/12/02 17:15:13 ALERT: shop.example.com: escrow: CARLOS_INSTANCE_KEY differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHAPublicationRefusesChangedMintedValueslaunchCARLOS_INSTAN1767200030/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHAPublicationRefusesChangedMintedValueslaunchCARLOS_INSTAN1767200030/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:13 activator: CARLOS_ADMIN_TOKEN in /tmp/TestHAPublicationRefusesChangedMintedValueslaunchinstance.key2865171442/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (64 hex characters) — left in place, because the running instance holds this same value and rotating it would lock the platform out of a live instance; if it is corrupt, stop the instance, delete the line and restart it to have one minted
2026/12/02 17:15:13 activator: CARLOS_INSTANCE_KEY in /tmp/TestHAPublicationRefusesChangedMintedValueslaunchinstance.key2865171442/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (44 base64 characters, 32 bytes): left in place, because the app may already have sealed data with it
2026/12/02 17:15:13 ALERT: shop.example.com: escrow: shop.example.com/instance.key differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHAPublicationRefusesChangedMintedValueslaunchinstance.key2865171442/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHAPublicationRefusesChangedMintedValueslaunchinstance.key2865171442/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:13 activator: CARLOS_ADMIN_TOKEN in /tmp/TestHAPublicationRefusesChangedMintedValueslaunchreport.token3954604196/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (64 hex characters) — left in place, because the running instance holds this same value and rotating it would lock the platform out of a live instance; if it is corrupt, stop the instance, delete the line and restart it to have one minted
2026/12/02 17:15:13 activator: CARLOS_INSTANCE_KEY in /tmp/TestHAPublicationRefusesChangedMintedValueslaunchreport.token3954604196/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (44 base64 characters, 32 bytes): left in place, because the app may already have sealed data with it
2026/12/02 17:15:13 ALERT: shop.example.com: escrow: shop.example.com/report.token differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHAPublicationRefusesChangedMintedValueslaunchreport.token3954604196/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHAPublicationRefusesChangedMintedValueslaunchreport.token3954604196/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:13 ALERT: shop.example.com: escrow: shop.example.com/instance.key differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHALostReplyRechecksWriteOnceplatforminstance.key3811657606/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHALostReplyRechecksWriteOnceplatforminstance.key3811657606/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:14 ALERT: shop.example.com: escrow: shop.example.com/report.token differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHALostReplyRechecksWriteOnceplatformreport.token2855044121/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHALostReplyRechecksWriteOnceplatformreport.token2855044121/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:14 ALERT: shop.example.com: escrow: shop.example.com/instance.key differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHALostReplyRechecksWriteOncesnapshotinstance.key437692630/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHALostReplyRechecksWriteOncesnapshotinstance.key437692630/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:14 ALERT: shop.example.com: escrow: shop.example.com/report.token differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHALostReplyRechecksWriteOncesnapshotreport.token3829828237/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHALostReplyRechecksWriteOncesnapshotreport.token3829828237/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:14 ALERT: shop.example.com: escrow: shop.example.com/instance.key differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHALostReplyRechecksWriteOncefinalinstance.key128546505/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHALostReplyRechecksWriteOncefinalinstance.key128546505/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:15 ALERT: shop.example.com: escrow: shop.example.com/report.token differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHALostReplyRechecksWriteOncefinalreport.token765922295/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHALostReplyRechecksWriteOncefinalreport.token765922295/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:15 activator: CARLOS_ADMIN_TOKEN in /tmp/TestHALostReplyRechecksWriteOncelaunchinstance.key329310862/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (64 hex characters) — left in place, because the running instance holds this same value and rotating it would lock the platform out of a live instance; if it is corrupt, stop the instance, delete the line and restart it to have one minted
2026/12/02 17:15:15 activator: CARLOS_INSTANCE_KEY in /tmp/TestHALostReplyRechecksWriteOncelaunchinstance.key329310862/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (44 base64 characters, 32 bytes): left in place, because the app may already have sealed data with it
2026/12/02 17:15:15 ALERT: shop.example.com: escrow: shop.example.com/instance.key differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHALostReplyRechecksWriteOncelaunchinstance.key329310862/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHALostReplyRechecksWriteOncelaunchinstance.key329310862/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:15 activator: CARLOS_ADMIN_TOKEN in /tmp/TestHALostReplyRechecksWriteOncelaunchreport.token2034353214/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (64 hex characters) — left in place, because the running instance holds this same value and rotating it would lock the platform out of a live instance; if it is corrupt, stop the instance, delete the line and restart it to have one minted
2026/12/02 17:15:15 activator: CARLOS_INSTANCE_KEY in /tmp/TestHALostReplyRechecksWriteOncelaunchreport.token2034353214/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (44 base64 characters, 32 bytes): left in place, because the app may already have sealed data with it
2026/12/02 17:15:15 ALERT: shop.example.com: escrow: shop.example.com/report.token differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestHALostReplyRechecksWriteOncelaunchreport.token2034353214/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestHALostReplyRechecksWriteOncelaunchreport.token2034353214/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:16 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:16 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh in g-00000000000000000001
2026/12/02 17:15:16 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 2ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:16 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 3ms, healthy 0s later
2026/12/02 17:15:16 activator: shop.example.com: woke in 60ms: checks 0s, lease 2ms, restore 1ms, identity 0s, protect 0s, spawn 4ms, replicate 53ms
2026/12/02 17:15:16 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:17 activator: shop.example.com: released with a marker (clean true, txid 2, files 3:282ae24a12f9871258ccd52b95ec3e7157d6e173d32994e2c55b1498cedd55c6) in 11ms: files 1ms, sync 8ms, record 1ms, marker 1ms
2026/12/02 17:15:17 activator: shop.example.com hibernated
2026/12/02 17:15:17 lease: shop.example.com: HA lease acquired in 1ms (clean marker)
2026/12/02 17:15:17 activator: shop.example.com: restored (no-db) from g-00000000000000000001 into g-00000000000000000002 at TXID 2
2026/12/02 17:15:17 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 3ms, env 1ms, control socket 0s, key gate 0s, logs 0s) 4ms, launch file 0s, gate 0s, root start 0s)
2026/12/02 17:15:17 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 6ms, healthy 1ms later
2026/12/02 17:15:17 lease: /tmp/TestHAWakeTakesAGeneration3469127650/002/data/instances/shop.example.com/shop.example.com.db: continuity with the last clean close not proven; snapshot 1-0000000000000003 written before serving
2026/12/02 17:15:17 activator: shop.example.com: woke in 48ms: checks 0s, lease 2ms, restore 22ms, identity 0s, protect 1ms, spawn 7ms, replicate 17ms
2026/12/02 17:15:17 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:17 activator: shop.example.com: released with a marker (clean true, txid 4, files 3:d79db118778189acdda0061c0160a0f6bfe41d9e557956a9a7f43d10676e51c1) in 19ms: files 1ms, sync 15ms, record 1ms, marker 3ms
2026/12/02 17:15:17 activator: shop.example.com hibernated
2026/12/02 17:15:17 lease: shop.example.com: HA lease acquired in 5ms (first wake)
2026/12/02 17:15:17 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:17 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 3ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:17 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 8ms, healthy 0s later
2026/12/02 17:15:17 activator: shop.example.com: woke in 68ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 8ms, replicate 54ms
2026/12/02 17:15:17 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:17 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:7f613d2137295e26bcfcd9f4bc37723631cc2eb6f6dd0c9c58f6fea640d65e40) in 4ms: files 1ms, sync 1ms, record 1ms, marker 2ms
2026/12/02 17:15:17 activator: shop.example.com hibernated
2026/12/02 17:15:17 lease: shop.example.com: HA lease acquired in 1ms (clean marker)
2026/12/02 17:15:17 ha_generation_refused host=shop.example.com reason=lock_not_generations: head.json exists and the lock is not a storage generations lock
2026/12/02 17:15:17 activator: shop.example.com: wake failed: restore shop.example.com: instance lease refused: ha_generation_refused reason=lock_not_generations
2026/12/02 17:15:17 lease: shop.example.com: HA lease acquired in 1ms (unclean marker)
2026/12/02 17:15:17 ha_generation_refused host=shop.example.com reason=lock_not_generations: head.json exists and the lock is not a storage generations lock
2026/12/02 17:15:17 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:17 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh in g-00000000000000000001
2026/12/02 17:15:17 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 2ms, control socket 0s, key gate 0s, logs 0s) 2ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:17 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:15:17 activator: shop.example.com: woke in 13ms: checks 0s, lease 2ms, restore 1ms, identity 0s, protect 0s, spawn 4ms, replicate 6ms
2026/12/02 17:15:17 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:17 activator: shop.example.com: released with a marker (clean true, txid 2, files 3:d269b28deae4240252f9aa174e99283859b2a08fc2f1a0a3f74739c0226814b8) in 14ms: files 1ms, sync 12ms, record 1ms, marker 1ms
2026/12/02 17:15:17 activator: shop.example.com hibernated
2026/12/02 17:15:17 lease: shop.example.com: HA lease acquired in 1ms (clean marker)
2026/12/02 17:15:17 activator: shop.example.com: restored (no-db) from g-00000000000000000001 into g-00000000000000000002 at TXID 2
2026/12/02 17:15:17 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 1ms, control socket 0s, key gate 0s, logs 0s) 1ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:17 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 2ms, healthy 0s later
2026/12/02 17:15:17 lease: /tmp/TestHAWakeRetiresAfterTheReplicatorStarts4080083101/002/data/instances/shop.example.com/shop.example.com.db: continuity with the last clean close not proven; snapshot 1-0000000000000003 written before serving
2026/12/02 17:15:17 activator: shop.example.com: woke in 28ms: checks 0s, lease 2ms, restore 11ms, identity 0s, protect 1ms, spawn 2ms, replicate 12ms
2026/12/02 17:15:17 activator: shop.example.com: retired generations [@root] (1 objects); kept abandoned under a day old [g-00000000000000000000]
2026/12/02 17:15:17 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:17 activator: shop.example.com: released with a marker (clean true, txid 3, files 3:e53573d35f81c71a476b353867b118bdbf383d4596f37b60bb23a6d2a0836e7a) in 2ms: files 1ms, sync 0s, record 1ms, marker 0s
2026/12/02 17:15:17 activator: shop.example.com hibernated
2026/12/02 17:15:17 lease: shop.example.com: HA lease acquired in 1ms (first wake)
2026/12/02 17:15:17 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh in g-00000000000000000001
2026/12/02 17:15:17 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 2ms, control socket 0s, key gate 0s, logs 0s) 2ms, launch file 0s, gate 0s, root start 4ms)
2026/12/02 17:15:17 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 7ms, healthy 0s later
2026/12/02 17:15:17 activator: shop.example.com: woke in 21ms: checks 0s, lease 2ms, restore 1ms, identity 0s, protect 0s, spawn 7ms, replicate 11ms
2026/12/02 17:15:17 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:17 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:7b0b4390b24508ba1550f7424b2906b0556828659ed3b7cd3a370b83d4ba1a48) in 3ms: files 1ms, sync 1ms, record 1ms, marker 1ms
2026/12/02 17:15:17 activator: shop.example.com hibernated
2026/12/02 17:15:17 lease: shop.example.com: HA lease acquired in 1ms (clean marker)
2026/12/02 17:15:17 activator: shop.example.com: kept local, replicating to g-00000000000000000002 from TXID 1
2026/12/02 17:15:17 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 1ms, control socket 0s, key gate 0s, logs 0s) 1ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:17 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 2ms, healthy 0s later
2026/12/02 17:15:17 activator: shop.example.com: wake failed: replicate shop.example.com: open litestream store: cannot remove tmp files: remove /tmp/TestHAWakeReplicationFailureStartsNoRetirement3043732420/002/data/instances/shop.example.com/.activator-shop.example.com.db-litestream/locked/stuck.tmp: permission denied
2026/12/02 17:15:18 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:18 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:18 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 7ms, control socket 0s, key gate 0s, logs 0s) 8ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:18 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 12ms, healthy 0s later
2026/12/02 17:15:18 activator: shop.example.com: woke in 123ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 12ms, replicate 109ms
2026/12/02 17:15:18 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:18 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:8c95369f56816ddc9bc139ba5b7f6854f18eaa8f592422003ca35cf514f47744) in 3ms: files 1ms, sync 1ms, record 1ms, marker 0s
2026/12/02 17:15:18 activator: shop.example.com hibernated
2026/12/02 17:15:18 lease: shop.example.com: HA lease acquired in 3ms (first wake)
2026/12/02 17:15:18 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:18 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 2ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 8ms)
2026/12/02 17:15:18 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 11ms, healthy 3ms later
2026/12/02 17:15:18 activator: shop.example.com: woke in 80ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 13ms, replicate 62ms
2026/12/02 17:15:18 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:18 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:b7e0f891c2535f7405bb6eb2595d85426d19feb81d08c2cf0b5bf27e0f10b8b0) in 3ms: files 1ms, sync 1ms, record 1ms, marker 0s
2026/12/02 17:15:18 activator: shop.example.com hibernated
2026/12/02 17:15:18 lease: shop.example.com: HA lease acquired in 1ms (first wake)
2026/12/02 17:15:18 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:18 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 17ms, control socket 0s, key gate 0s, logs 0s) 18ms, launch file 0s, gate 0s, root start 12ms)
2026/12/02 17:15:18 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 30ms, healthy 2ms later
2026/12/02 17:15:18 activator: shop.example.com: woke in 107ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 33ms, replicate 73ms
2026/12/02 17:15:18 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:18 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:f839405eb704420db68a38e5c8b6d75d29ca8e4423987b5e410c9589a0d1cfb4) in 5ms: files 1ms, sync 1ms, record 1ms, marker 3ms
2026/12/02 17:15:18 activator: shop.example.com hibernated
2026/12/02 17:15:19 lease: shop.example.com: HA lease acquired in 19ms (first wake)
2026/12/02 17:15:19 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:19 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 3ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 5ms)
2026/12/02 17:15:19 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 9ms, healthy 1ms later
2026/12/02 17:15:19 activator: shop.example.com: woke in 46ms: checks 0s, lease 19ms, restore 0s, identity 0s, protect 0s, spawn 10ms, replicate 16ms
2026/12/02 17:15:19 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:19 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:bb1c37d7a6552176184e2bc9069359e5ad21fb7e0849cd956db87b5b1233e082) in 17ms: files 1ms, sync 1ms, record 1ms, marker 15ms
2026/12/02 17:15:19 activator: shop.example.com hibernated
2026/12/02 17:15:19 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:19 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:19 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 9ms, control socket 0s, key gate 0s, logs 0s) 9ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:19 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 23ms, healthy 0s later
2026/12/02 17:15:19 activator: shop.example.com: woke in 49ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 23ms, replicate 23ms
2026/12/02 17:15:19 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:19 activator: final checkpoint shop.example.com: lease: release marker owed for s3://locks/shop.example.com/lock.json (If-Match "21e399e23467d8991eea30c64f5ccdeb"): lease: write release marker: operation error S3: PutObject, https response error StatusCode: 403, RequestID: , HostID: , api error AccessDenied: AccessDenied
2026/12/02 17:15:19 activator: shop.example.com hibernated
2026/12/02 17:15:19 activator: shop.example.com: wake failed: acquire HA lease: settle the owed release first: lease: release marker owed for s3://locks/shop.example.com/lock.json (If-Match "21e399e23467d8991eea30c64f5ccdeb"): lease: write release marker: operation error S3: PutObject, https response error StatusCode: 403, RequestID: , HostID: , api error AccessDenied: AccessDenied
2026/12/02 17:15:19 lease: shop.example.com: HA lease acquired in 3ms (clean marker)
2026/12/02 17:15:19 activator: shop.example.com: kept local
2026/12/02 17:15:19 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 1ms, control socket 0s, key gate 0s, logs 0s) 1ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:19 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 2ms, healthy 1ms later
2026/12/02 17:15:20 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:15:20 lease: shop.example.com: HA lease acquired in 19ms (first wake)
2026/12/02 17:15:20 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:20 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 11ms, control socket 0s, key gate 0s, logs 0s) 12ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:20 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 12ms, healthy 0s later
2026/12/02 17:15:20 activator: shop.example.com: woke in 59ms: checks 0s, lease 19ms, restore 0s, identity 0s, protect 0s, spawn 13ms, replicate 27ms
2026/12/02 17:15:21 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:21 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:6dc9154a11dbe2e160c4283305b3c411eb8bc0258cd89ce63181a5bc98697a70) in 3ms: files 1ms, sync 1ms, record 1ms, marker 1ms
2026/12/02 17:15:21 activator: shop.example.com hibernated
2026/12/02 17:15:21 activator: shop.example.com: wake failed: instance lease refused: generations lock on a box that takes none (a fixed box, or the switch off)
2026/12/02 17:15:21 lease: shop.example.com: HA lease acquired in 3ms (first wake)
2026/12/02 17:15:21 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:21 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 7ms, control socket 1ms, key gate 0s, logs 0s) 8ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:21 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 10ms, healthy 0s later
2026/12/02 17:15:21 activator: shop.example.com: woke in 68ms: checks 0s, lease 3ms, restore 2ms, identity 0s, protect 0s, spawn 10ms, replicate 53ms
2026/12/02 17:15:21 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:21 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:21 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 6ms, control socket 0s, key gate 0s, logs 0s) 7ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:21 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 9ms, healthy 2ms later
2026/12/02 17:15:21 activator: shop.example.com: woke in 24ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 11ms, replicate 11ms
2026/12/02 17:15:21 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:21 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:d5e4b31257a730f72b30adc6b9fabdf0963c8d1b54ff8bac62f4a8ac0c9898d1) in 9ms: files 1ms, sync 1ms, record 1ms, marker 7ms
2026/12/02 17:15:21 activator: shop.example.com hibernated
2026/12/02 17:15:21 lease: shop.example.com: HA lease acquired in 10ms (first wake)
2026/12/02 17:15:21 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:21 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 8ms, control socket 1ms, key gate 0s, logs 0s) 9ms, launch file 1ms, gate 0s, root start 11ms)
2026/12/02 17:15:21 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 20ms, healthy 0s later
2026/12/02 17:15:21 activator: shop.example.com: woke in 90ms: checks 0s, lease 11ms, restore 0s, identity 0s, protect 0s, spawn 21ms, replicate 58ms
2026/12/02 17:15:21 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:21 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:c900b8ac96ca91d90c43175e1dc2dd9dc21b31d33f7acf3a7dc0facb40f861b0) in 3ms: files 1ms, sync 1ms, record 1ms, marker 1ms
2026/12/02 17:15:21 activator: shop.example.com hibernated
2026/12/02 17:15:22 lease: shop.example.com: HA lease acquired in 3ms (first wake)
2026/12/02 17:15:22 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:22 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 4ms, control socket 0s, key gate 0s, logs 0s) 4ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:22 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 6ms, healthy 0s later
2026/12/02 17:15:22 activator: shop.example.com: woke in 15ms: checks 0s, lease 3ms, restore 0s, identity 0s, protect 0s, spawn 6ms, replicate 5ms
2026/12/02 17:15:22 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:22 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:000ccbb9519292667ab2d31196f468cdf6477ea98a97ebf133c3da0567245975) in 3ms: files 1ms, sync 1ms, record 1ms, marker 0s
2026/12/02 17:15:22 activator: shop.example.com hibernated
2026/12/02 17:15:22 lease: shop.example.com: HA lease acquired in 3ms (first wake)
2026/12/02 17:15:22 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:22 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 7ms, control socket 0s, key gate 0s, logs 0s) 7ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:22 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 9ms, healthy 0s later
2026/12/02 17:15:22 activator: shop.example.com: woke in 70ms: checks 0s, lease 3ms, restore 0s, identity 0s, protect 0s, spawn 9ms, replicate 57ms
2026/12/02 17:15:22 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:22 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:e63496a1ab293c17c8daf23b7358cf071bc9fcac699ac8dd168968dfea47b230) in 4ms: files 1ms, sync 1ms, record 2ms, marker 1ms
2026/12/02 17:15:22 activator: shop.example.com hibernated
2026/12/02 17:15:22 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:22 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:22 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 3ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:22 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:15:22 activator: shop.example.com: woke in 67ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 4ms, replicate 60ms
2026/12/02 17:15:22 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:22 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:fd0ad5e2f797e58eb6fb6f76b25b3a450ff73e4371b0a40c29e75e8ff24a7e55) in 3ms: files 1ms, sync 1ms, record 1ms, marker 0s
2026/12/02 17:15:22 activator: shop.example.com hibernated
2026/12/02 17:15:22 lease: shop.example.com: HA lease acquired in 10ms (first wake)
2026/12/02 17:15:22 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:22 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 2ms, control socket 3ms, key gate 0s, logs 0s) 6ms, launch file 1ms, gate 0s, root start 5ms)
2026/12/02 17:15:22 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 12ms, healthy 1ms later
2026/12/02 17:15:22 activator: shop.example.com: woke in 29ms: checks 0s, lease 10ms, restore 0s, identity 0s, protect 0s, spawn 13ms, replicate 6ms
2026/12/02 17:15:22 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:22 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:26c2e8cd66b3c6a4a7c6602cc085e2f66755f663760e536cbd38e3798206ac28) in 3ms: files 1ms, sync 1ms, record 1ms, marker 0s
2026/12/02 17:15:22 activator: shop.example.com hibernated
2026/12/02 17:15:23 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:23 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:23 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 3ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:23 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:15:23 activator: shop.example.com: woke in 63ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 4ms, replicate 55ms
2026/12/02 17:15:23 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:23 activator: final checkpoint shop.example.com: lease: release marker owed for s3://locks/shop.example.com/lock.json (If-Match "19c5090d1bbb3f9165442459c679321c"): lease: write release marker: operation error S3: PutObject, https response error StatusCode: 403, RequestID: , HostID: , api error AccessDenied: AccessDenied
2026/12/02 17:15:23 activator: shop.example.com hibernated
2026/12/02 17:15:23 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:23 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:23 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 7ms, control socket 0s, key gate 0s, logs 0s) 8ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:23 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 9ms, healthy 0s later
2026/12/02 17:15:23 activator: shop.example.com: woke in 75ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 9ms, replicate 64ms
2026/12/02 17:15:23 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:23 activator: final checkpoint shop.example.com: lease: release marker owed for s3://locks/shop.example.com/lock.json (If-Match "1ce0b9c0e9c33b408bd3c361179cc53d"): lease: write release marker: operation error S3: PutObject, https response error StatusCode: 403, RequestID: , HostID: , api error AccessDenied: AccessDenied
2026/12/02 17:15:23 activator: shop.example.com hibernated
2026/12/02 17:15:23 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:23 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:23 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 9ms, control socket 0s, key gate 0s, logs 0s) 9ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:23 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 10ms, healthy 0s later
2026/12/02 17:15:23 activator: shop.example.com: woke in 73ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 11ms, replicate 60ms
2026/12/02 17:15:23 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:23 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:23 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 9ms, control socket 0s, key gate 0s, logs 0s) 10ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:23 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 11ms, healthy 0s later
2026/12/02 17:15:23 activator: shop.example.com: woke in 74ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 11ms, replicate 61ms
2026/12/02 17:15:24 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:24 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:24 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 4ms, control socket 0s, key gate 0s, logs 0s) 4ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:24 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 5ms, healthy 1ms later
2026/12/02 17:15:24 activator: shop.example.com: woke in 17ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 6ms, replicate 9ms
2026/12/02 17:15:24 lease: shop.example.com: HA lease acquired in 6ms (first wake)
2026/12/02 17:15:24 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:24 activator: shop.example.com: started carlos-instance@shop.example.com.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/12/02 17:15:24 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 7ms, healthy 0s later
2026/12/02 17:15:24 activator: shop.example.com: woke in 80ms: checks 0s, lease 8ms, restore 0s, identity 0s, protect 0s, spawn 7ms, replicate 65ms
2026/12/02 17:15:24 lease: shop.example.com: HA lease acquired in 5ms (first wake)
2026/12/02 17:15:24 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:24 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 7ms, control socket 0s, key gate 0s, logs 0s) 7ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:24 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 8ms, healthy 0s later
2026/12/02 17:15:24 activator: shop.example.com: woke in 71ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 8ms, replicate 58ms
2026/12/02 17:15:24 lease: shop.example.com: HA lease acquired in 14ms (first wake)
2026/12/02 17:15:24 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:24 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 18ms, control socket 0s, key gate 0s, logs 0s) 18ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:24 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 19ms, healthy 0s later
2026/12/02 17:15:25 activator: shop.example.com: woke in 100ms: checks 0s, lease 14ms, restore 0s, identity 0s, protect 0s, spawn 19ms, replicate 66ms
2026/12/02 17:15:25 lease: shop.example.com: HA lease acquired in 9ms (first wake)
2026/12/02 17:15:25 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:25 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 14ms, control socket 2ms, key gate 0s, logs 0s) 16ms, launch file 3ms, gate 0s, root start 6ms)
2026/12/02 17:15:25 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 25ms, healthy 0s later
2026/12/02 17:15:25 activator: shop.example.com: woke in 94ms: checks 0s, lease 9ms, restore 0s, identity 0s, protect 0s, spawn 26ms, replicate 58ms
2026/12/02 17:15:25 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:25 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:25 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 2ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:25 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:15:25 activator: shop.example.com: woke in 70ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 4ms, replicate 64ms
2026/12/02 17:15:26 lease: shop.example.com: HA lease acquired in 4ms (first wake)
2026/12/02 17:15:26 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:26 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 2ms, instance key 0s, env 6ms, control socket 0s, key gate 0s, logs 0s) 8ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:26 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 20ms, healthy 0s later
2026/12/02 17:15:26 activator: shop.example.com: woke in 82ms: checks 0s, lease 7ms, restore 1ms, identity 0s, protect 0s, spawn 20ms, replicate 54ms
2026/12/02 17:15:26 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:26 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:e88c1b05e0c0da242a79baf4326935fc2ee18c3b9491c1f9b5916ddf7b24ef25) in 3ms: files 1ms, sync 1ms, record 1ms, marker 1ms
2026/12/02 17:15:26 activator: shop.example.com hibernated
2026/12/02 17:15:26 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:26 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:26 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 6ms, control socket 0s, key gate 0s, logs 0s) 7ms, launch file 0s, gate 0s, root start 7ms)
2026/12/02 17:15:26 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 14ms, healthy 0s later
2026/12/02 17:15:26 activator: shop.example.com: woke in 86ms: checks 0s, lease 16ms, restore 0s, identity 0s, protect 0s, spawn 14ms, replicate 56ms
2026/12/02 17:15:27 activator: HA placement host=shop.example.com kind=Place ref=b reason=roomiest generation=2026-12-02T17:15:27Z lock_generation=0
2026/12/02 17:15:27 activator: HA placement host=other.example.com kind=Place ref=a reason=roomiest generation=2026-12-02T17:15:27Z lock_generation=0
2026/12/02 17:15:27 activator: HA placement host=shop.example.com kind=Place ref=b reason=clean-releaser generation=2026-12-02T17:15:27Z lock_generation=6
2026/12/02 17:15:27 activator: HA placement host=other.example.com kind=Place ref=a reason=roomiest generation=2026-12-02T17:15:27Z lock_generation=0
2026/12/02 17:15:27 activator: HA placement host=shop.example.com kind=Place ref=b reason=roomiest generation=2026-12-02T17:15:27Z lock_generation=0
2026/12/02 17:15:27 activator: HA placement host=other.example.com kind=Place ref=a reason=roomiest generation=2026-12-02T17:15:27Z lock_generation=0
2026/12/02 17:15:27 activator: HA placement host=shop.example.com kind=Place ref=b reason=clean-releaser generation=2026-12-02T17:15:27Z lock_generation=6
2026/12/02 17:15:27 activator: HA placement host=other.example.com kind=Place ref=a reason=roomiest generation=2026-12-02T17:15:27Z lock_generation=0
2026/12/02 17:15:28 activator: HA placement host=shop.example.com kind=Place ref=b reason=roomiest generation=2026-12-02T17:15:28Z lock_generation=0
2026/12/02 17:15:28 activator: HA placement host=other.example.com kind=Place ref=a reason=roomiest generation=2026-12-02T17:15:28Z lock_generation=0
2026/12/02 17:15:28 activator: HA placement host=shop.example.com kind=Place ref=b reason=clean-releaser generation=2026-12-02T17:15:28Z lock_generation=6
2026/12/02 17:15:28 activator: HA placement host=other.example.com kind=Place ref=a reason=roomiest generation=2026-12-02T17:15:28Z lock_generation=0
2026/12/02 17:15:28 activator: HA placement host=shop.example.com kind=Place ref=b reason=roomiest generation=2026-12-02T17:15:28Z lock_generation=0
2026/12/02 17:15:28 activator: HA placement host=other.example.com kind=Place ref=a reason=roomiest generation=2026-12-02T17:15:28Z lock_generation=0
2026/12/02 17:15:28 activator: HA placement host=shop.example.com kind=Place ref=b reason=clean-releaser generation=2026-12-02T17:15:28Z lock_generation=6
2026/12/02 17:15:28 activator: HA placement host=other.example.com kind=Place ref=a reason=roomiest generation=2026-12-02T17:15:28Z lock_generation=0
2026/12/02 17:15:28 activator: HA placement host=shop.example.com kind=Place ref=b reason=roomiest generation=2026-12-02T17:15:28Z lock_generation=0
2026/12/02 17:15:28 activator: HA placement host=other.example.com kind=Place ref=a reason=roomiest generation=2026-12-02T17:15:28Z lock_generation=0
2026/12/02 17:15:28 activator: HA placement host=shop.example.com kind=Place ref=b reason=clean-releaser generation=2026-12-02T17:15:28Z lock_generation=6
2026/12/02 17:15:28 activator: HA placement host=other.example.com kind=Place ref=a reason=roomiest generation=2026-12-02T17:15:28Z lock_generation=0
2026/12/02 17:15:28 activator: HA placement host=shop.example.com kind=Place ref=b reason=roomiest generation=2026-12-02T17:15:28Z lock_generation=0
2026/12/02 17:15:28 activator: HA placement host=other.example.com kind=Place ref=a reason=roomiest generation=2026-12-02T17:15:28Z lock_generation=0
2026/12/02 17:15:29 activator: HA placement host=shop.example.com kind=Place ref=b reason=clean-releaser generation=2026-12-02T17:15:29Z lock_generation=6
2026/12/02 17:15:29 activator: HA placement host=other.example.com kind=Place ref=a reason=roomiest generation=2026-12-02T17:15:29Z lock_generation=0
2026/12/02 17:15:29 activator: HA placement host=shop.example.com kind=Place ref=b reason=roomiest generation=2026-12-02T17:15:29Z lock_generation=0
2026/12/02 17:15:29 activator: HA placement host=other.example.com kind=Place ref=b reason=roomiest generation=2026-12-02T17:15:29Z lock_generation=0
2026/12/02 17:15:29 activator: HA placement host=shop.example.com kind=Place ref=b reason=clean-releaser generation=2026-12-02T17:15:29Z lock_generation=6
2026/12/02 17:15:29 activator: HA placement host=other.example.com kind=Place ref=b reason=roomiest generation=2026-12-02T17:15:29Z lock_generation=0
2026/12/02 17:15:29 activator: HA placement host=shop.example.com kind=Place ref=b reason=roomiest generation=2026-12-02T17:15:29Z lock_generation=0
2026/12/02 17:15:29 activator: HA placement host=shop.example.com kind=Base ref= reason=base-no-snapshot generation= lock_generation=0
2026/12/02 17:15:29 activator: HA placement host=shop.example.com kind=Place ref=b reason=roomiest generation=2026-12-02T17:15:29Z lock_generation=0
2026/12/02 17:15:29 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:29 activator: HA placement host=shop.example.com kind=Place ref=b reason=roomiest generation=2026-12-02T17:15:29Z lock_generation=0
2026/12/02 17:15:29 lease: shop.example.com: HA lease acquired in 1ms (first wake)
2026/12/02 17:15:29 activator: HA placement host=shop.example.com kind=Place ref=b reason=roomiest generation=2026-12-02T17:15:29Z lock_generation=0
2026/12/02 17:15:30 lease: shutdown.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:30 activator: shutdown.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:30 activator: shutdown.example.com: started carlos-instance@shutdown.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 2ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:30 activator: shutdown.example.com: carlos-instance@shutdown.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:15:30 activator: shutdown.example.com: woke in 60ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 4ms, replicate 54ms
2026/12/02 17:15:30 activator: next-due probe shutdown.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:31 activator: shutdown.example.com: released with a marker (clean false, txid 1, files 3:6f984a1657f8a81565f07f922469b70b2c2e95f36812874192e4c869fadb5de1) in 1.001s: files 1s, sync 1ms, record 0s, marker 0s
2026/12/02 17:15:31 activator: final checkpoint shutdown.example.com: files: context deadline exceeded
2026/12/02 17:15:31 activator: shutdown.example.com hibernated
2026/12/02 17:15:32 lease: shop.example.com: HA lease acquired in 1ms (first wake)
2026/12/02 17:15:32 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:32 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 16ms, control socket 0s, key gate 0s, logs 0s) 16ms, launch file 0s, gate 0s, root start 5ms)
2026/12/02 17:15:32 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 21ms, healthy 0s later
2026/12/02 17:15:32 activator: shop.example.com: woke in 90ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 22ms, replicate 66ms
2026/12/02 17:15:33 ALERT: shop.example.com: escrow: shop.example.com/instance.key differs from what the host's escrow in the bucket holds, and an escrowed instance.key, report.token or platform-minted env variable is never replaced; the bucket's copy came first, so this launch stops and the local files (/tmp/TestNoWriteAfterMarker1141868281/002/data/instances/shop.example.com/shop.example.com.env and the files directory) are left for an operator; every launch of the host on this box is refused until the operator settles them against the escrow and removes /tmp/TestNoWriteAfterMarker1141868281/002/data/.escrow/shop.example.com.conflict
2026/12/02 17:15:33 activator: shop.example.com: released with a marker (clean false, txid 3, files 4:ba94709b1a59deabac680a635f1825ddd38e4dd2f7c11c8fa731712d64af1e45) in 19ms: files 1ms, sync 3ms, record 0s, marker 15ms
2026/12/02 17:15:35 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:35 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:35 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 3ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:35 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:15:35 activator: shop.example.com: woke in 66ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 5ms, replicate 56ms
2026/12/02 17:15:35 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:35 activator: shop.example.com: released with a marker (clean true, txid 1, files 5:c1c9944155d264ba87c1b894acbfd90cdc8a8262e8cabc120d73aaabc7672233) in 11ms: files 2ms, sync 1ms, record 5ms, marker 3ms
2026/12/02 17:15:35 activator: shop.example.com hibernated
2026/12/02 17:15:35 lease: shop.example.com: HA lease acquired in 1ms (clean marker)
2026/12/02 17:15:35 activator: shop.example.com: kept local
2026/12/02 17:15:35 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 1ms, control socket 2ms, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:35 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:15:35 activator: shop.example.com: woke in 66ms: checks 0s, lease 1ms, restore 1ms, identity 0s, protect 0s, spawn 4ms, replicate 60ms
2026/12/02 17:15:35 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:15:35 activator: shop.example.com: released with a marker (clean true, txid 3, files 5:c1c9944155d264ba87c1b894acbfd90cdc8a8262e8cabc120d73aaabc7672233) in 13ms: files 1ms, sync 11ms, record 1ms, marker 0s
2026/12/02 17:15:35 activator: shop.example.com hibernated
2026/12/02 17:15:35 lease: shop.example.com: HA lease acquired in 1ms (first wake)
2026/12/02 17:15:35 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:35 activator: shop.example.com: started carlos-instance@shop.example.com.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) 5ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:35 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 6ms, healthy 0s later
2026/12/02 17:15:35 activator: shop.example.com: woke in 64ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 6ms, replicate 56ms
2026/12/02 17:15:35 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:35 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:35 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 1ms, env 5ms, control socket 0s, key gate 0s, logs 0s) 7ms, launch file 0s, gate 0s, root start 3ms)
2026/12/02 17:15:35 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 10ms, healthy 0s later
2026/12/02 17:15:35 activator: shop.example.com: woke in 68ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 10ms, replicate 55ms
2026/12/02 17:15:35 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:35 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:35 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 3ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:35 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:15:35 activator: shop.example.com: woke in 12ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 4ms, replicate 4ms
2026/12/02 17:15:35 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:35 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:35 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 3ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 3ms)
2026/12/02 17:15:35 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 7ms, healthy 0s later
2026/12/02 17:15:36 activator: shop.example.com: failed wake: the host's slice is not proven empty: it holds a process; keeping the lease until it is
2026/12/02 17:15:36 activator: shop.example.com: wake failed: files shop.example.com: no files store configured
2026/12/02 17:15:36 activator: shop.example.com: failed wake's generation 80 is proven stopped; lease given back
2026/12/02 17:15:36 activator: shop.example.com: same-box recovery: the startup sweep proved every unit stopped and the host's slice reads empty
2026/12/02 17:15:36 activator: ALERT shop.example.com: same-box recovery refused: this agent's startup sweep did not prove every instance unit stopped (the HA lock expired on this box; no other box takes it, so the host stays down until this proof holds)
2026/12/02 17:15:36 activator: ALERT shop.example.com: same-box recovery refused: this agent's startup sweep did not prove every instance unit stopped (the HA lock expired on this box; no other box takes it, so the host stays down until this proof holds)
2026/12/02 17:15:36 activator: ALERT shop.example.com: same-box recovery refused: this agent process acquired the host itself; its own stop and marker settle the lock (the HA lock expired on this box; no other box takes it, so the host stays down until this proof holds)
2026/12/02 17:15:36 activator: ALERT shop.example.com: same-box recovery refused: the host's slice is populated (the HA lock expired on this box; no other box takes it, so the host stays down until this proof holds)
2026/12/02 17:15:36 activator: ALERT shop.example.com: same-box recovery refused: the host's slice: permission denied (the HA lock expired on this box; no other box takes it, so the host stays down until this proof holds)
2026/12/02 17:15:36 activator: ALERT shop.example.com: same-box recovery refused: not contained: the row's layout is flat (the HA lock expired on this box; no other box takes it, so the host stays down until this proof holds)
2026/12/02 17:15:36 activator: ALERT shop.example.com: same-box recovery refused: not contained: the row is unit-backed (the HA lock expired on this box; no other box takes it, so the host stays down until this proof holds)
2026/12/02 17:15:36 activator: ALERT shop.example.com: same-box recovery refused: not contained: shop.example.com: instance control channel not configured (the HA lock expired on this box; no other box takes it, so the host stays down until this proof holds)
2026/12/02 17:15:36 activator: ALERT shop.example.com: same-box recovery refused: not contained: shop.example.com: refusing to wake an isolated instance: instance control not ready (the HA lock expired on this box; no other box takes it, so the host stays down until this proof holds)
2026/12/02 17:15:36 activator: shop.example.com: same-box recovery: the startup sweep proved every unit stopped and the host's slice reads empty
2026/12/02 17:15:36 activator: ALERT shop.example.com: same-box recovery refused: the host's flat cgroup is populated (the HA lock expired on this box; no other box takes it, so the host stays down until this proof holds)
2026/12/02 17:15:37 activator: shop.example.com: same-box recovery: the startup sweep proved every unit stopped and the host's slice reads empty
2026/12/02 17:15:37 activator: ALERT shop.example.com: same-box recovery refused: the host's flat cgroup: permission denied (the HA lock expired on this box; no other box takes it, so the host stays down until this proof holds)
2026/12/02 17:15:37 activator: ALERT shop.example.com: same-box recovery refused: the host's flat cgroup: cgroup: no delegated manager (the HA lock expired on this box; no other box takes it, so the host stays down until this proof holds)
2026/12/02 17:15:37 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:15:37 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:37 activator: shop.example.com: started carlos-instance@shop.example.com.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/12/02 17:15:37 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 7ms, healthy 0s later
2026/12/02 17:15:37 activator: shop.example.com: woke in 64ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 7ms, replicate 54ms
2026/12/02 17:15:37 activator: ALERT shop.example.com: same-box recovery refused: this agent's startup sweep did not prove every instance unit stopped (the HA lock expired on this box; no other box takes it, so the host stays down until this proof holds)
2026/12/02 17:15:37 activator: shop.example.com: wake failed: instance lease refused: same box without emptiness proof: this agent's startup sweep did not prove every instance unit stopped
2026/12/02 17:15:37 activator: shop.example.com: same-box recovery: the startup sweep proved every unit stopped and the host's slice reads empty
2026/12/02 17:15:37 lease: shop.example.com: HA lease acquired in 6ms (same-box takeover)
2026/12/02 17:15:37 activator: shop.example.com: restored (no-marker)
2026/12/02 17:15:37 activator: shop.example.com: started carlos-instance@shop.example.com.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 0s)
2026/12/02 17:15:37 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 1ms, healthy 0s later
2026/12/02 17:15:37 activator: shop.example.com: woke in 69ms: checks 0s, lease 7ms, restore 7ms, identity 0s, protect 0s, spawn 2ms, replicate 53ms
2026/12/02 17:15:37 activator: CARLOS_ADMIN_TOKEN in /tmp/TestHALaunchAcknowledgedEnvWritesNothing2168306505/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (64 hex characters) — left in place, because the running instance holds this same value and rotating it would lock the platform out of a live instance; if it is corrupt, stop the instance, delete the line and restart it to have one minted
2026/12/02 17:15:37 activator: CARLOS_INSTANCE_KEY in /tmp/TestHALaunchAcknowledgedEnvWritesNothing2168306505/002/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (44 base64 characters, 32 bytes): left in place, because the app may already have sealed data with it
2026/12/02 17:15:37 activator: shop.example.com: files: this box has no CARLOS_SECRETS_KEY to seal the host's secrets with; HA publication refuses
2026/12/02 17:15:37 activator: shop.example.com: reading the holder: lease: read shop.example.com/lock.json: operation error S3: GetObject, https response error StatusCode: 403, RequestID: , HostID: , api error AccessDenied: AccessDenied; serving here
2026/12/02 17:15:40 lease: shop.example.com: HA lease acquired in 5ms (first wake)
2026/12/02 17:15:40 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:15:40 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 6ms, control socket 0s, key gate 0s, logs 0s) 7ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:40 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 8ms, healthy 0s later
2026/12/02 17:15:40 activator: shop.example.com: woke in 67ms: checks 1ms, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 8ms, replicate 54ms
2026/12/02 17:15:41 activator: HA placement host=shop.example.com kind=Base ref= reason=base-switch-off generation= lock_generation=9
2026/12/02 17:15:41 activator: shop.example.com: the holder i-b is terminated (EC2) and its lease expired; taking the host over
2026/12/02 17:15:41 lease: shop.example.com: HA lease acquired in 1ms (holder terminated)
2026/12/02 17:15:41 activator: shop.example.com: restored (no-marker)
2026/12/02 17:15:41 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 2ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:15:41 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 3ms, healthy 0s later
2026/12/02 17:15:41 activator: shop.example.com: woke in 14ms: checks 0s, lease 2ms, restore 3ms, identity 0s, protect 0s, spawn 4ms, replicate 5ms
2026/12/02 17:15:41 activator: ALERT host-00.example.com: the host has been refused for over 10 minutes. Its lease belongs to instance i-b, which is not confirmed terminated. (ha_suspect_holder)
2026/12/02 17:15:41 activator: ALERT other.example.com: the host has been refused for over 10 minutes. Its lease belongs to instance i-c, which is not confirmed terminated. (ha_suspect_holder)
2026/12/02 17:15:41 ha_takeover host=shop.example.com iid=i-b cause=visitor confirmed=false error=false
2026/12/02 17:15:41 activator: ALERT shop.example.com: the takeover of i-b's expired HA lock is refused: owner i-b is not terminated (the host stays down until EC2 confirms the holder terminated)
2026/12/02 17:15:41 activator: shop.example.com: same-box recovery: the startup sweep proved every unit stopped and the host's slice reads empty
2026/12/02 17:15:41 lease: shop.example.com: HA lease acquired in 1ms (same-box takeover)
2026/12/02 17:15:41 activator: ALERT shop.example.com: the host has been refused for over 10 minutes. Its lease belongs to instance i-b, which is not confirmed terminated. (ha_suspect_holder)
2026/12/02 17:15:41 activator: ALERT active.example.com: the host has been refused for over 10 minutes. Its lease belongs to instance i-b, which is not confirmed terminated. (ha_suspect_holder)
2026/12/02 17:15:42 activator: LEASE HELD for shop.example.com by "box/v1;ref=c;iid=i-c;pid=9;ha=1" — a previous incarnation hasn't released; refusing to wake (retry after 59.997683189s)
2026/12/02 17:15:42 provision: minted sidecar route bot.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 17:15:43 activator: shop.example.com: restored (lifetime)
2026/12/02 17:15:43 activator: shop.example.com: restored (unclean)
2026/12/02 17:15:43 activator: shop.example.com: restored (txid)
2026/12/02 17:15:43 activator: shop.example.com: restored (tree-changed)
2026/12/02 17:15:43 activator: shop.example.com: restored (other-box)
2026/12/02 17:15:43 lease: shop.example.com: HA lease acquired in 9ms (clean marker)
2026/12/02 17:15:43 activator: shop.example.com: files: ALERT: the manifest at revision 5 holds raw secret item(s) ["host.env" "instance.key"] written after the host's secrets were sealed: a box on an older release published them
2026/12/02 17:15:43 activator: shop.example.com: wake failed: restore shop.example.com: shop.example.com: restore files: hostfiles: sealed item "instance.key.sealed": envelope: decryption failed (sealed for another app or account, or corrupt): cipher: message authentication failed
2026/12/02 17:15:44 lease: shop.example.com: HA lease acquired in 1ms (clean marker)
2026/12/02 17:15:44 activator: shop.example.com: files: ALERT: the manifest at revision 5 holds raw secret item(s) ["host.env" "instance.key"] written after the host's secrets were sealed: a box on an older release published them
2026/12/02 17:15:44 activator: shop.example.com: wake failed: restore shop.example.com: shop.example.com: restore files: hostfiles: sealed item "instance.key.sealed": its digest is not this host's and item's
2026/12/02 17:15:44 lease: hand.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:15:44 activator: wake shop.example.com: instance lease refused: high availability needs the nested layout: the row's layout is flat
2026/12/02 17:15:44 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:15:44 activator: swap.example.com hibernated
2026/12/02 17:15:44 activator: swap.example.com: generation 86 of v2: record 0s, start 19ms, healthy 0s later
2026/12/02 17:15:44 activator: swap.example.com: woke in 1m0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 1m0s, replicate 0s
2026/12/02 17:15:54 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/12/02 17:15:55 activator: shop.example.com hibernated
2026/12/02 17:15:55 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 81ms, replicate 0s
2026/12/02 17:15:55 activator: shop.example.com hibernated
2026/12/02 17:15:55 activator: shop.example.com: woke in 83ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 83ms, replicate 0s
2026/12/02 17:15:55 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:15:55 activator: shop.example.com hibernated
2026/12/02 17:15:55 activator: shop.example.com: woke in 86ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 85ms, replicate 0s
2026/12/02 17:15:56 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:15:56 http: proxy error: context canceled
2026/12/02 17:15:56 activator: shop.example.com hibernated
2026/12/02 17:15:56 activator: shop.example.com: woke in 41ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 41ms, replicate 0s
2026/12/02 17:15:56 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:15:56 activator: shop.example.com hibernated
2026/12/02 17:15:56 activator: shop.example.com: woke in 40ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 40ms, replicate 0s
2026/12/02 17:15:56 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:15:56 http: proxy error: context canceled
2026/12/02 17:15:56 activator: shop.example.com hibernated
2026/12/02 17:15:56 activator: shop.example.com: woke in 40ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 40ms, replicate 0s
2026/12/02 17:15:56 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:02 activator: shop.example.com hibernated
2026/12/02 17:16:02 activator: shop.example.com: woke in 43ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 43ms, replicate 0s
2026/12/02 17:16:02 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:02 activator: shop.example.com hibernated
2026/12/02 17:16:02 activator: shop.example.com: woke in 43ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 43ms, replicate 0s
2026/12/02 17:16:02 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:02 activator: shop.example.com hibernated
2026/12/02 17:16:02 activator: shop.example.com: woke in 41ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 40ms, replicate 0s
2026/12/02 17:16:03 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:03 activator: shop.example.com hibernated
2026/12/02 17:16:03 activator: shop.example.com: woke in 40ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 40ms, replicate 0s
2026/12/02 17:16:03 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:03 http: proxy error: context canceled
2026/12/02 17:16:03 activator: shop.example.com hibernated
2026/12/02 17:16:03 activator: shop.example.com: woke in 39ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 39ms, replicate 0s
2026/12/02 17:16:03 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:03 activator: shop.example.com hibernated
2026/12/02 17:16:03 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/12/02 17:16:03 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:03 activator: shop.example.com hibernated
2026/12/02 17:16:04 activator: shop.example.com: woke in 39ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 39ms, replicate 0s
2026/12/02 17:16:04 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:04 activator: shop.example.com hibernated
2026/12/02 17:16:04 activator: shop.example.com: woke in 40ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 40ms, replicate 0s
2026/12/02 17:16:04 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:04 http: proxy error: context canceled
2026/12/02 17:16:04 activator: shop.example.com hibernated
2026/12/02 17:16:04 activator: shop.example.com: woke in 39ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 39ms, replicate 0s
2026/12/02 17:16:04 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:04 activator: shop.example.com hibernated
2026/12/02 17:16:04 activator: shop.example.com: woke in 18ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 18ms, replicate 0s
2026/12/02 17:16:05 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:05 activator: shop.example.com hibernated
2026/12/02 17:16:05 activator: shop.example.com: woke in 40ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 40ms, replicate 0s
2026/12/02 17:16:05 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:05 activator: shop.example.com hibernated
2026/12/02 17:16:05 activator: shop.example.com: woke in 40ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 40ms, replicate 0s
2026/12/02 17:16:05 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:05 http: proxy error: context canceled
2026/12/02 17:16:05 activator: shop.example.com hibernated
2026/12/02 17:16:05 activator: shop.example.com: woke in 41ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 41ms, replicate 0s
2026/12/02 17:16:06 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:06 activator: shop.example.com hibernated
2026/12/02 17:16:06 activator: shop.example.com: woke in 40ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 40ms, replicate 0s
2026/12/02 17:16:06 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:06 activator: shop.example.com hibernated
2026/12/02 17:16:06 activator: shop.example.com: woke in 39ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 39ms, replicate 0s
2026/12/02 17:16:06 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:12 activator: shop.example.com hibernated
2026/12/02 17:16:12 activator: shop.example.com: woke in 87ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 87ms, replicate 0s
2026/12/02 17:16:12 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:12 activator: shop.example.com hibernated
2026/12/02 17:16:12 activator: shop.example.com: woke in 83ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 83ms, replicate 0s
2026/12/02 17:16:12 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:12 activator: shop.example.com hibernated
2026/12/02 17:16:13 activator: shop.example.com: woke in 83ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 83ms, replicate 0s
2026/12/02 17:16:13 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:13 activator: shop.example.com hibernated
2026/12/02 17:16:13 activator: shop.example.com: woke in 83ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 83ms, replicate 0s
2026/12/02 17:16:13 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:13 http: proxy error: context canceled
2026/12/02 17:16:13 activator: shop.example.com hibernated
2026/12/02 17:16:14 activator: shop.example.com: woke in 82ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 82ms, replicate 0s
2026/12/02 17:16:14 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:14 activator: shop.example.com hibernated
2026/12/02 17:16:14 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 81ms, replicate 0s
2026/12/02 17:16:14 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:14 activator: shop.example.com hibernated
2026/12/02 17:16:15 activator: shop.example.com: woke in 89ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 89ms, replicate 0s
2026/12/02 17:16:15 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:15 activator: shop.example.com hibernated
2026/12/02 17:16:15 activator: shop.example.com: woke in 43ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 43ms, replicate 0s
2026/12/02 17:16:15 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:15 http: proxy error: context canceled
2026/12/02 17:16:15 activator: shop.example.com hibernated
2026/12/02 17:16:16 activator: shop.example.com: woke in 84ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 84ms, replicate 0s
2026/12/02 17:16:16 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:16 activator: shop.example.com hibernated
2026/12/02 17:16:16 activator: shop.example.com: woke in 86ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 86ms, replicate 0s
2026/12/02 17:16:16 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:16 http: proxy error: context canceled
2026/12/02 17:16:16 activator: shop.example.com hibernated
2026/12/02 17:16:17 activator: shop.example.com: woke in 82ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 82ms, replicate 0s
2026/12/02 17:16:17 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:17 activator: shop.example.com hibernated
2026/12/02 17:16:17 activator: shop.example.com: woke in 85ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 85ms, replicate 0s
2026/12/02 17:16:17 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:17 activator: shop.example.com hibernated
2026/12/02 17:16:17 activator: shop.example.com: woke in 79ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 79ms, replicate 0s
2026/12/02 17:16:18 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:18 activator: shop.example.com hibernated
2026/12/02 17:16:18 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/12/02 17:16:18 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:18 activator: shop.example.com hibernated
2026/12/02 17:16:19 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 81ms, replicate 0s
2026/12/02 17:16:19 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:19 activator: shop.example.com hibernated
2026/12/02 17:16:19 activator: shop.example.com: woke in 93ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 93ms, replicate 0s
2026/12/02 17:16:19 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:19 activator: shop.example.com hibernated
2026/12/02 17:16:20 activator: shop.example.com: woke in 83ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 83ms, replicate 0s
2026/12/02 17:16:20 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:26 activator: shop.example.com hibernated
2026/12/02 17:16:26 activator: shop.example.com: woke in 79ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 79ms, replicate 0s
2026/12/02 17:16:26 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:26 activator: shop.example.com hibernated
2026/12/02 17:16:27 activator: shop.example.com: woke in 39ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 39ms, replicate 0s
2026/12/02 17:16:27 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:27 http: proxy error: context canceled
2026/12/02 17:16:27 activator: shop.example.com hibernated
2026/12/02 17:16:27 activator: shop.example.com: woke in 82ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 82ms, replicate 0s
2026/12/02 17:16:27 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:27 activator: shop.example.com hibernated
2026/12/02 17:16:28 activator: shop.example.com: woke in 86ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 86ms, replicate 0s
2026/12/02 17:16:28 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:28 activator: shop.example.com hibernated
2026/12/02 17:16:28 activator: shop.example.com: woke in 42ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 42ms, replicate 0s
2026/12/02 17:16:28 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:28 activator: shop.example.com hibernated
2026/12/02 17:16:29 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 81ms, replicate 0s
2026/12/02 17:16:29 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:29 activator: shop.example.com hibernated
2026/12/02 17:16:29 activator: shop.example.com: woke in 38ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 38ms, replicate 0s
2026/12/02 17:16:29 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:29 http: proxy error: context canceled
2026/12/02 17:16:29 activator: shop.example.com hibernated
2026/12/02 17:16:30 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 81ms, replicate 0s
2026/12/02 17:16:30 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:30 activator: shop.example.com hibernated
2026/12/02 17:16:30 activator: shop.example.com: woke in 43ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 43ms, replicate 0s
2026/12/02 17:16:30 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:30 http: proxy error: context canceled
2026/12/02 17:16:30 activator: shop.example.com hibernated
2026/12/02 17:16:31 activator: shop.example.com: woke in 82ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 82ms, replicate 0s
2026/12/02 17:16:31 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:31 activator: shop.example.com hibernated
2026/12/02 17:16:31 activator: shop.example.com: woke in 82ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 82ms, replicate 0s
2026/12/02 17:16:31 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:31 activator: shop.example.com hibernated
2026/12/02 17:16:32 activator: shop.example.com: woke in 39ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 39ms, replicate 0s
2026/12/02 17:16:32 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:32 activator: shop.example.com hibernated
2026/12/02 17:16:32 activator: shop.example.com: woke in 40ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 40ms, replicate 0s
2026/12/02 17:16:32 activator: shop.example.com idle 0s — hibernating
2026/12/02 17:16:32 http: proxy error: context canceled
2026/12/02 17:16:32 activator: shop.example.com hibernated
2026/12/02 17:16:33 activator: shop.example.com: woke in 86ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 86ms, replicate 0s
2026/12/02 17:16:33 activator: shop.example.com hibernated
2026/12/02 17:16:33 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 81ms, replicate 0s
2026/12/02 17:16:34 activator: shop.example.com hibernated
2026/12/02 17:16:34 activator: seeding seedexe.example.com: /tmp/TestSeedExeFlatRunsTheRecordedFile42374297/001/versions/vA/app seed --db /tmp/TestSeedExeFlatRunsTheRecordedFile42374297/002/seedexe.example.com.db
2026/12/02 17:16:34 activator: seeded seedexe.example.com
2026/12/02 17:16:34 activator: seeding seedexe.example.com: /tmp/TestSeedExeFlatRunsTheRecordedFile42374297/001/live/seedexe.example.com seed --db /tmp/TestSeedExeFlatRunsTheRecordedFile42374297/002/seedexe.example.com.db
2026/12/02 17:16:34 activator: seeded seedexe.example.com
  shop.example.com: config updated
  shop.example.com: config updated
2026/12/02 17:16:34 activator: CARLOS_INSTANCE_KEY in /tmp/TestAKeyThatAppearsDuringTheBucketReadIsKeptinto_the_own_file4107866279/001/shop.example.com.env is not the shape the platform mints (44 base64 characters, 32 bytes): left in place, because the app may already have sealed data with it
2026/12/02 17:16:34 activator: CARLOS_INSTANCE_KEY is set by the app's configuration for /tmp/TestAKeyThatAppearsDuringTheBucketReadIsKeptdelivered_in_the_co349667982/001/shop.example.com.env: the platform mints none while it is
2026/12/02 17:16:34 activator: CARLOS_INSTANCE_KEY in /tmp/TestEnsureInstanceKeyLeavesAFileWithTwoKeysAlone3771765980/001/shop.example.com.env is not the shape the platform mints (44 base64 characters, 32 bytes): left in place, because the app may already have sealed data with it
2026/12/02 17:16:34 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/12/02 17:16:34 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:16:34 activator: shop.example.com hibernated
2026/12/02 17:16:34 activator: ERROR: route flatmail.example.com has no instance record, so it cannot submit mail for switched app bab/; give it a record (adoption) or switch submission off
2026/12/02 17:16:34 activator: fence.example hibernated
2026/12/02 17:16:35 activator: fence.example hibernated
2026/12/02 17:16:35 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:16:35 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:16:35 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 3ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:16:35 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:16:35 activator: shop.example.com: woke in 11ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 5ms, replicate 5ms
2026/12/02 17:16:35 activator: barrier.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:16:35 activator: restored shop.example.com from s3://test-bucket/shop.example.com
2026/12/02 17:16:35 activator: shop.example.com: woke in 2ms: checks 0s, lease 0s, restore 1ms, identity 0s, spawn 0s, replicate 0s
2026/12/02 17:16:35 activator: shop.example.com hibernated
2026/12/02 17:16:35 activator: restored shop.example.com from s3://test-bucket/shop.example.com
2026/12/02 17:16:35 activator: shop.example.com: woke in 2ms: checks 0s, lease 0s, restore 1ms, identity 0s, spawn 0s, replicate 0s
2026/12/02 17:16:35 activator: shop.example.com hibernated
2026/12/02 17:16:35 activator: shop.example.com: refusing to wake: the route changed while the wake waited for its lease: it is gone; giving the lease back
2026/12/02 17:16:35 activator: shop.example.com: wake failed: shop.example.com: refusing to wake: the route changed while the wake waited for its lease: it is gone
2026/12/02 17:16:35 activator: restored shop.example.com from s3://test-bucket/shop.example.com
2026/12/02 17:16:35 activator: shop.example.com: woke in 2ms: checks 0s, lease 0s, restore 1ms, identity 0s, spawn 0s, replicate 0s
2026/12/02 17:16:35 activator: shop.example.com hibernated
2026/12/02 17:16:35 activator: shop.example.com: refusing to wake: the route changed while the wake waited for its lease: its fleet assignment is "2026-10-30T12:00:00.000000003Z" (moved true) now, not "2026-10-30T10:00:00.000000001Z" (moved false); giving the lease back
2026/12/02 17:16:35 activator: shop.example.com: wake failed: shop.example.com: refusing to wake: the route changed while the wake waited for its lease: its fleet assignment is "2026-10-30T12:00:00.000000003Z" (moved true) now, not "2026-10-30T10:00:00.000000001Z" (moved false)
2026/12/02 17:16:35 activator: shop.example.com: SET ASIDE the local copy at /tmp/TestPendingWakeDoesNotBootAStaleCopymoved_away_and_back3827302384/003/shop.example.com.db (kept under assignment "2026-10-30T10:00:00.000000001Z", the record is now assigned "2026-10-30T12:00:00.000000003Z"): moved to /tmp/TestPendingWakeDoesNotBootAStaleCopymoved_away_and_back3827302384/003/.superseded/shop.example.com/1796231795597719395, nothing deleted
2026/12/02 17:16:35 activator: restored shop.example.com from s3://test-bucket/shop.example.com
2026/12/02 17:16:35 activator: shop.example.com: woke in 2ms: checks 0s, lease 0s, restore 1ms, identity 0s, spawn 0s, replicate 0s
2026/12/02 17:16:35 activator: restored shop.example.com from s3://test-bucket/shop.example.com
2026/12/02 17:16:35 activator: shop.example.com: woke in 2ms: checks 0s, lease 0s, restore 1ms, identity 0s, spawn 0s, replicate 0s
2026/12/02 17:16:35 activator: shop.example.com hibernated
2026/12/02 17:16:35 activator: shop.example.com: refusing to wake: the route changed while the wake waited for its lease: its record names box "pi-2" assigned "2026-10-30T11:00:00.000000002Z", not this box "pi-1" at "2026-10-30T10:00:00.000000001Z"; giving the lease back
2026/12/02 17:16:35 activator: shop.example.com: wake failed: shop.example.com: refusing to wake: the route changed while the wake waited for its lease: its record names box "pi-2" assigned "2026-10-30T11:00:00.000000002Z", not this box "pi-1" at "2026-10-30T10:00:00.000000001Z"
2026/12/02 17:16:35 activator: shop.example.com: refusing to wake: the route changed while the wake waited for its lease: the instance record could not be read under the lease: bucket unavailable; giving the lease back
2026/12/02 17:16:35 activator: shop.example.com: wake failed: shop.example.com: refusing to wake: the route changed while the wake waited for its lease: the instance record could not be read under the lease: bucket unavailable
2026/12/02 17:16:35 activator: shop.example.com: refusing to wake: the route changed while the wake waited for its lease: the instance record could not be read under the lease: it is gone or retired; giving the lease back
2026/12/02 17:16:35 activator: shop.example.com: wake failed: shop.example.com: refusing to wake: the route changed while the wake waited for its lease: the instance record could not be read under the lease: it is gone or retired
2026/12/02 17:16:36 activator: shop.example.com: refusing to wake: the route changed while the wake waited for its lease: the instance record could not be read under the lease: it is gone or retired; giving the lease back
2026/12/02 17:16:36 activator: shop.example.com: wake failed: shop.example.com: refusing to wake: the route changed while the wake waited for its lease: the instance record could not be read under the lease: it is gone or retired
2026/12/02 17:16:36 activator: shop.example.com: refusing to wake: the route changed while the wake waited for its lease: the instance record could not be read under the lease: no deployment store to read the instance record from; giving the lease back
2026/12/02 17:16:36 activator: shop.example.com: wake failed: shop.example.com: refusing to wake: the route changed while the wake waited for its lease: the instance record could not be read under the lease: no deployment store to read the instance record from
2026/12/02 17:16:36 activator: shop.example.com: refusing to wake: the route changed while the wake waited for its lease: the record is tied to a box, but this route has not caught up: it names box "pi-2" assigned "2026-10-30T11:00:00.000000002Z"; giving the lease back
2026/12/02 17:16:36 activator: shop.example.com: wake failed: shop.example.com: refusing to wake: the route changed while the wake waited for its lease: the record is tied to a box, but this route has not caught up: it names box "pi-2" assigned "2026-10-30T11:00:00.000000002Z"
2026/12/02 17:16:36 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:16:36 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:16:36 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 3ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:16:36 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:16:36 activator: shop.example.com: woke in 63ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 5ms, replicate 56ms
2026/12/02 17:16:36 lease: shop.example.com: HA lease acquired in 3ms (first wake)
2026/12/02 17:16:36 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:16:36 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 2ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:16:36 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:16:37 activator: shop.example.com: woke in 66ms: checks 0s, lease 4ms, restore 0s, identity 0s, protect 0s, spawn 4ms, replicate 57ms
2026/12/02 17:16:37 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:16:37 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:e166f5a3092b1e80f02fe64fb2a044d61a4a17b5f2fc8807c5ac7bbe5fd47f6f) in 3ms: files 1ms, sync 1ms, record 1ms, marker 0s
2026/12/02 17:16:37 activator: shop.example.com hibernated
2026/12/02 17:16:37 lease: shop.example.com: HA lease acquired in 1ms (clean marker)
2026/12/02 17:16:37 activator: shop.example.com: kept local
2026/12/02 17:16:37 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 4ms, control socket 0s, key gate 0s, logs 0s) 4ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:16:37 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 5ms, healthy 0s later
2026/12/02 17:16:38 activator: shop.example.com: woke in 1.024s: checks 0s, lease 1ms, restore 1ms, identity 0s, protect 0s, spawn 6ms, replicate 1.017s
2026/12/02 17:16:38 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:16:38 activator: final checkpoint shop.example.com: lease: release marker owed for s3://locks/shop.example.com/lock.json (If-Match "f9f940501003f073c740460f843e8144"): lease: write release marker: operation error S3: PutObject, https response error StatusCode: 403, RequestID: , HostID: , api error AccessDenied: AccessDenied
2026/12/02 17:16:38 activator: shop.example.com hibernated
--- FAIL: TestPoolWithdrawalFreshProcess (8.92s)
    --- FAIL: TestPoolWithdrawalFreshProcess/own-clean-store-unopened (0.15s)
        poolwithdrawal_restart_test.go:76: fresh process: exit status 1
            2026/12/02 17:16:40 ha_pool_withdrawal_proof_start host=shop.example.com
            2026/12/02 17:16:40 ha_pool_withdrawal_proof_finish host=shop.example.com result=error error=ha_pool_withdrawal_pending code=stop cause=activator: maintenance fence not installed
            --- FAIL: TestPoolWithdrawalFreshProcess (0.10s)
                poolwithdrawal_restart_test.go:246: unopened store must keep release pending: ha_pool_withdrawal_pending code=stop
            FAIL
2026/12/02 17:16:46 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:16:46 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:16:46 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 6ms, control socket 0s, key gate 0s, logs 0s) 7ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:16:46 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 9ms, healthy 0s later
2026/12/02 17:16:46 activator: shop.example.com: woke in 21ms: checks 0s, lease 6ms, restore 0s, identity 0s, protect 0s, spawn 10ms, replicate 4ms
2026/12/02 17:16:46 ha_pool_withdrawal_proof_start host=shop.example.com
2026/12/02 17:16:46 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:16:46 ha_pool_withdrawal_proof_finish host=shop.example.com result=error error=ha_pool_withdrawal_pending code=stop cause=<nil>
2026/12/02 17:16:46 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:b90a7f1010659dc7460c9d3b3e298c9d075e69f0cf54ce3ae897f228c07c1def) in 3ms: files 1ms, sync 1ms, record 1ms, marker 0s
2026/12/02 17:16:46 activator: shop.example.com hibernated
2026/12/02 17:16:46 ha_pool_withdrawal_proof_start host=shop.example.com
2026/12/02 17:16:46 ha_pool_withdrawal_proof_finish host=shop.example.com result=success
2026/12/02 17:16:46 ha_pool_withdrawal_proof_start host=shop.example.com
2026/12/02 17:16:46 ha_pool_withdrawal_proof_finish host=shop.example.com result=success
2026/12/02 17:16:46 ha_pool_withdrawal_proof_start host=shop.example.com
2026/12/02 17:16:46 ha_pool_withdrawal_proof_finish host=shop.example.com result=error error=ha_pool_withdrawal_pending code=ownership cause=<nil>
2026/12/02 17:16:46 lease: shop.example.com: HA lease acquired in 1ms (first wake)
2026/12/02 17:16:46 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:16:46 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 2ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:16:46 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:16:46 activator: shop.example.com: woke in 60ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 4ms, replicate 54ms
2026/12/02 17:16:46 ha_pool_withdrawal_proof_start host=shop.example.com
2026/12/02 17:16:46 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:16:46 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:88e0fa0b875161278bebc82c4d6884040583105ee685d497f8fb7b9bb1759ae8) in 3ms: files 1ms, sync 1ms, record 1ms, marker 1ms
2026/12/02 17:16:46 activator: shop.example.com hibernated
2026/12/02 17:16:46 ha_pool_withdrawal_proof_finish host=shop.example.com result=success
2026/12/02 17:16:46 lease: shop.example.com: HA lease acquired in 1ms (clean marker)
2026/12/02 17:16:46 activator: shop.example.com: kept local
2026/12/02 17:16:46 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 1ms, control socket 0s, key gate 0s, logs 0s) 1ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:16:46 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 2ms, healthy 0s later
2026/12/02 17:16:47 activator: shop.example.com: woke in 1.025s: checks 0s, lease 1ms, restore 2ms, identity 0s, protect 0s, spawn 2ms, replicate 1.019s
2026/12/02 17:16:47 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:16:47 activator: shop.example.com: released with a marker (clean true, txid 2, files 3:88e0fa0b875161278bebc82c4d6884040583105ee685d497f8fb7b9bb1759ae8) in 3ms: files 1ms, sync 0s, record 1ms, marker 1ms
2026/12/02 17:16:47 activator: shop.example.com hibernated
2026/12/02 17:16:47 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:16:47 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:16:47 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 2ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:16:47 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:16:47 activator: shop.example.com: woke in 60ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 4ms, replicate 53ms
2026/12/02 17:16:47 ha_pool_withdrawal_proof_start host=shop.example.com
2026/12/02 17:16:47 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:16:47 ha_pool_withdrawal_proof_finish host=shop.example.com result=error error=ha_pool_withdrawal_pending code=stop cause=<nil>
2026/12/02 17:16:47 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:a19df7d7fec0fde3886502e1ca0f28cc44dc5fdd2e10159e8d8600a9036ed81c) in 3ms: files 1ms, sync 1ms, record 1ms, marker 0s
2026/12/02 17:16:47 activator: shop.example.com hibernated
2026/12/02 17:16:47 ha_pool_withdrawal_proof_start host=shop.example.com
2026/12/02 17:16:47 ha_pool_withdrawal_proof_finish host=shop.example.com result=success
2026/12/02 17:16:47 lease: shop.example.com: HA lease acquired in 1ms (first wake)
2026/12/02 17:16:47 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:16:47 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 2ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:16:47 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:16:47 activator: shop.example.com: woke in 59ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 4ms, replicate 53ms
2026/12/02 17:16:47 ha_pool_withdrawal_proof_start host=shop.example.com
2026/12/02 17:16:47 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:16:47 ha_pool_withdrawal_proof_finish host=shop.example.com result=error error=ha_pool_withdrawal_pending code=stop cause=<nil>
2026/12/02 17:16:47 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:569b3b12bbc75b86a8901e71fac92629baf01d90a1f848d273f77cf1a1f58e2c) in 3ms: files 1ms, sync 1ms, record 1ms, marker 0s
2026/12/02 17:16:47 activator: shop.example.com hibernated
2026/12/02 17:16:47 ha_pool_withdrawal_proof_start host=shop.example.com
2026/12/02 17:16:47 ha_pool_withdrawal_proof_finish host=shop.example.com result=success
2026/12/02 17:16:47 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:16:47 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:16:47 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 3ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:16:47 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 1ms later
2026/12/02 17:16:48 activator: shop.example.com: woke in 62ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 5ms, replicate 55ms
2026/12/02 17:16:48 ha_pool_withdrawal_proof_start host=shop.example.com
2026/12/02 17:16:48 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:16:48 ha_pool_withdrawal_proof_finish host=shop.example.com result=error error=ha_pool_withdrawal_pending code=stop cause=<nil>
2026/12/02 17:16:48 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:9f8b559f16465d7e59c869e267804462923c8b9cb6912c154b34b614af034b03) in 10ms: files 1ms, sync 1ms, record 8ms, marker 1ms
2026/12/02 17:16:48 activator: shop.example.com hibernated
2026/12/02 17:16:48 ha_pool_withdrawal_proof_start host=shop.example.com
2026/12/02 17:16:48 ha_pool_withdrawal_proof_finish host=shop.example.com result=success
2026/12/02 17:16:48 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:16:48 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:16:48 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 3ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:16:48 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:16:48 activator: shop.example.com: woke in 11ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 5ms, replicate 4ms
2026/12/02 17:16:48 ha_pool_withdrawal_proof_start host=shop.example.com
2026/12/02 17:16:48 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:16:48 ha_pool_withdrawal_proof_finish host=shop.example.com result=error error=ha_pool_withdrawal_pending code=stop cause=<nil>
2026/12/02 17:16:48 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:f2da09a2d6fff16b91af940358fd10708edddc3858500c8e56b1d242a916eb87) in 3ms: files 1ms, sync 1ms, record 1ms, marker 1ms
2026/12/02 17:16:48 activator: shop.example.com hibernated
2026/12/02 17:16:48 ha_pool_withdrawal_proof_start host=shop.example.com
2026/12/02 17:16:48 ha_pool_withdrawal_proof_finish host=shop.example.com result=success
2026/12/02 17:16:48 activator: h.example.com: started carlos-instance-tty@h.example.com.service for session sess_a
2026/12/02 17:16:48 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:16:48 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:7.service memory.max=1073741824 (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 0s)
2026/12/02 17:16:48 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 1ms, healthy 0s later
2026/12/02 17:16:48 activator: shop.example.com: started carlos-instance-rootfs-tty@shop.example.com.service (console of build v2) memory.max=1073741824
2026/12/02 17:16:48 activator: tty handoff /tmp/pty1356695183/s.tty.sock: handing over the pty: write unix /tmp/pty1356695183/s.tty.sock: sendmsg: broken pipe
2026/12/02 17:16:48 activator: shop.example.com: files: ALERT: the manifest at revision 5 holds raw secret item(s) ["host.env"] written after the host's secrets were sealed: a box on an older release published them
2026/12/02 17:16:48 activator: x.example recovery probe healthy, but its fence changed; stopping it
2026/12/02 17:16:48 activator: x.example hibernated
2026/12/02 17:16:48 activator: x.example recovery probe healthy, but its fence changed; stopping it
2026/12/02 17:16:48 activator: x.example hibernated
2026/12/02 17:16:48 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:16:48 activator: x.example hibernated
2026/12/02 17:16:48 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:16:48 activator: x.example source opened on the recovery probe's session; serving
2026/12/02 17:16:48 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:16:48 activator: x.example source opened on the recovery probe's session; serving
2026/12/02 17:16:48 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:16:48 activator: x.example source opened on the recovery probe's session; serving
2026/12/02 17:16:48 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:16:48 activator: x.example source opened on the recovery probe's session; serving
2026/12/02 17:16:48 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:16:48 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/12/02 17:16:48 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/12/02 17:16:48 activator: shop.example.com: release command of build v2 started
2026/12/02 17:16:48 activator: shop.example.com: the release command of build v2 is proven stopped
2026/12/02 17:16:48 activator: shop.example.com: generation 171 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:16:48 activator: shop.example.com: woke in 0s: identity 0s
2026/12/02 17:16:48 activator: shop.example.com hibernated
2026/12/02 17:16:48 lease: shop.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:16:48 activator: shop.example.com: escrow: restored shop.example.com.env from the bucket
2026/12/02 17:16:48 activator: CARLOS_ADMIN_TOKEN in /tmp/TestStatelessEscrowRecordsAbsencenever_written2220258209/009/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (64 hex characters) — left in place, because the running instance holds this same value and rotating it would lock the platform out of a live instance; if it is corrupt, stop the instance, delete the line and restart it to have one minted
2026/12/02 17:16:48 activator: CARLOS_INSTANCE_KEY in /tmp/TestStatelessEscrowRecordsAbsencenever_written2220258209/009/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (44 base64 characters, 32 bytes): left in place, because the app may already have sealed data with it
2026/12/02 17:16:49 lease: shop.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:16:49 activator: shop.example.com: escrow: restored shop.example.com.env from the bucket
2026/12/02 17:16:49 activator: shop.example.com: escrow: restored shop.example.com/instance.key from the bucket
2026/12/02 17:16:49 activator: shop.example.com: escrow: restored shop.example.com/report.token from the bucket
2026/12/02 17:16:49 activator: CARLOS_ADMIN_TOKEN in /tmp/TestStatelessEscrowRecordsAbsencewritten44553829/009/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (64 hex characters) — left in place, because the running instance holds this same value and rotating it would lock the platform out of a live instance; if it is corrupt, stop the instance, delete the line and restart it to have one minted
2026/12/02 17:16:49 activator: CARLOS_INSTANCE_KEY in /tmp/TestStatelessEscrowRecordsAbsencewritten44553829/009/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (44 base64 characters, 32 bytes): left in place, because the app may already have sealed data with it
2026/12/02 17:16:49 lease: shop.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:16:49 activator: shop.example.com: escrow: restored shop.example.com.env from the bucket
2026/12/02 17:16:49 lease: shop.example.com: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 17:16:49 activator: shop.example.com: escrow: restored shop.example.com.env from the bucket
2026/12/02 17:16:49 activator: CARLOS_ADMIN_TOKEN in /tmp/TestStatelessEscrowRecordsAbsenceupgraded421110404/009/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (64 hex characters) — left in place, because the running instance holds this same value and rotating it would lock the platform out of a live instance; if it is corrupt, stop the instance, delete the line and restart it to have one minted
2026/12/02 17:16:49 activator: CARLOS_INSTANCE_KEY in /tmp/TestStatelessEscrowRecordsAbsenceupgraded421110404/009/data/instances/shop.example.com/shop.example.com.env is not the shape the platform mints (44 base64 characters, 32 bytes): left in place, because the app may already have sealed data with it
2026/12/02 17:16:49 activator: shop.example.com: wake failed: the new copy is waiting for the instance's shared secrets. existing copies keep serving: replicas: coordinator held
2026/12/02 17:16:49 activator: shop.example.com: generation 174 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:16:49 activator: shop.example.com: woke in 0s: identity 0s
2026/12/02 17:16:49 activator: shop.example.com hibernated
2026/12/02 17:16:49 activator: shop.example.com: wake failed: shop.example.com: refusing to wake: no build is installed for this instance yet
2026/12/02 17:16:49 activator: shop.example.com: wake failed: shop.example.com: refusing to wake: this instance is still moving to another build
2026/12/02 17:16:49 activator: shop.example.com: wake failed: shop.example.com: refusing to wake: this instance is still moving to another build
2026/12/02 17:16:49 activator: shop.example.com: wake failed: shop.example.com: refusing to wake: this instance is still moving to another build
2026/12/02 17:16:49 activator: shop.example.com: wake failed: shop.example.com: refusing to wake: this instance is still moving to another build
2026/12/02 17:16:49 activator: shop.example.com: generation 175 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:16:49 activator: shop.example.com: woke in 0s: identity 0s
2026/12/02 17:16:49 activator: instance shop.example.com exited unexpectedly — recycling
2026/12/02 17:16:49 activator: shop.example.com: wake failed: could not verify this build's storage declaration, so it was not started: the staged build cannot be read
2026/12/02 17:16:49 activator: shop.example.com hibernated
2026/12/02 17:16:49 activator: shop.example.com: wake failed: shop.example.com: refusing to wake: no build is installed for this instance yet
2026/12/02 17:16:50 activator: replica shop-au.example.com not started: CARLOS_INSTANCE_KEY is not its home's key
2026/12/02 17:16:50 activator: replica h.example.com not started: CARLOS_INSTANCE_KEY is not its home's key
2026/12/02 17:16:50 activator: replica shop-au.example.com not started: it has no key of its home's and no control socket, so an app on the instance-key helper would mint its own
2026/12/02 17:16:50 activator: seeding shop-au.example.com: /tmp/TestReplicaSeedIsGatedthe_homes_key1051419369/001/live/shop-au.example.com seed --db /tmp/TestReplicaSeedIsGatedthe_homes_key1051419369/002/shop-au.example.com.db
2026/12/02 17:16:50 activator: seeded shop-au.example.com
2026/12/02 17:16:50 activator: replica shop-au.example.com not started: where its CARLOS_INSTANCE_KEY came from is unknown
2026/12/02 17:16:50 activator: replica shop-au.example.com not started: CARLOS_INSTANCE_KEY cannot be checked against its home's key (no entry for it in /etc/carlos/replica-home-keys; O8)
2026/12/02 17:16:50 activator: replica shop-au.example.com not started: the bucket's configuration could not be read: bucket unreachable
2026/12/02 17:16:50 activator: shop.example.com: generation 176 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:16:50 activator: shop.example.com: woke in 0s: identity 0s
2026/12/02 17:16:50 activator: shop.example.com: generation 177 of v1: record 0s, start 0s, healthy 0s later
2026/12/02 17:16:50 activator: shop.example.com: woke in 0s: identity 0s
2026/12/02 17:16:50 activator: shop.example.com hibernated
2026/12/02 17:16:50 activator: shop.example.com hibernated
2026/12/02 17:16:50 activator: shop.example.com: generation 178 of v1: record 0s, start 0s, healthy 0s later
2026/12/02 17:16:50 activator: shop.example.com: woke in 0s: identity 0s
2026/12/02 17:16:50 activator: shop.example.com hibernated
2026/12/02 17:16:50 activator: shop.example.com: stopping the release command of build v2: the instance's lease is ending
2026/12/02 17:16:50 activator: shop.example.com: release command of build v2 started
2026/12/02 17:16:50 activator: shop.example.com: the release command of build v2 is proven stopped
2026/12/02 17:16:50 activator: shop.example.com: release command of build v2 started
2026/12/02 17:16:50 activator: shop.example.com: the release command of build v2 is proven stopped
2026/12/02 17:16:50 activator: www.example.com: release command of build v2 started
2026/12/02 17:16:50 activator: www.example.com: the release command of build v2 is proven stopped
2026/12/02 17:16:51 activator: shop.example.com: release command of build v2 started
2026/12/02 17:16:51 activator: shop.example.com: the release command of build v2 is proven stopped
2026/12/02 17:16:51 activator: shop.example.com: release command of build v2 started
2026/12/02 17:16:52 activator: shop.example.com: the release command of build v2 is proven stopped
2026/12/02 17:16:52 activator: shop.example.com: release command of build v2 started
2026/12/02 17:16:52 activator: shop.example.com: the release command of build v2 is proven stopped
2026/12/02 17:16:52 activator: shop.example.com: the release command of build v2 ended with code "" status "" result ""
2026/12/02 17:16:52 activator: shop.example.com: release command of build v2 started
2026/12/02 17:16:52 activator: shop.example.com: the release command of build v2 is not proven stopped: activator: stop unproven; processes remain; the sweep retries
2026/12/02 17:16:52 activator: shop.example.com: generation 180 of v1: record 0s, start 0s, healthy 0s later
2026/12/02 17:16:52 activator: shop.example.com: woke in 0s: identity 0s
2026/12/02 17:16:52 activator: instance shop.example.com exited unexpectedly — recycling
2026/12/02 17:16:52 activator: shop.example.com hibernated
2026/12/02 17:16:52 activator: shop.example.com: wake failed: could not verify this build's storage declaration, so it was not started: the staged build cannot be read
2026/12/02 17:16:52 activator: shop.example.com: generation 182 of v1: record 0s, start 0s, healthy 0s later
2026/12/02 17:16:52 activator: shop.example.com: woke in 0s: identity 0s
2026/12/02 17:16:52 activator: instance shop.example.com exited unexpectedly — recycling
2026/12/02 17:16:52 activator: shop.example.com hibernated
2026/12/02 17:16:52 activator: shop.example.com: wake failed: could not verify this build's storage declaration, so it was not started: the staged build cannot be read
2026/12/02 17:16:52 activator: shop.example.com: generation 184 of v1: record 0s, start 0s, healthy 0s later
2026/12/02 17:16:52 activator: shop.example.com: woke in 0s: identity 0s
2026/12/02 17:16:52 activator: shop.example.com: build v1: its declared processes cannot be read, so this box runs web alone: processes.json: unexpected end of JSON input
2026/12/02 17:16:52 activator: shop.example.com hibernated
2026/12/02 17:16:52 activator: shop.example.com: generation 185 of v1: record 0s, start 0s, healthy 0s later
2026/12/02 17:16:52 activator: shop.example.com: woke in 0s: identity 0s
2026/12/02 17:16:52 activator: shop.example.com: build v1: its declared processes are not valid, so this box runs no worker of it: the processes declare no web process. a rootfs release needs exactly one, named web
2026/12/02 17:16:52 activator: shop.example.com hibernated
2026/12/02 17:16:52 activator: shop.example.com: generation 186 of v1: record 0s, start 0s, healthy 0s later
2026/12/02 17:16:52 activator: shop.example.com: woke in 0s: identity 0s
2026/12/02 17:16:52 activator: shop.example.com hibernated
2026/12/02 17:16:52 activator: protect.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, seed 0s, spawn 0s, replicate 0s
  shop.example.com: updated  -> v1 (canary/test)
2026/12/02 17:16:52 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/12/02 17:16:53 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/12/02 17:16:53 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:16:53 activator: shop.example.com hibernated
2026/12/02 17:16:53 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:16:53 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:16:53 activator: swap.example.com hibernated
2026/12/02 17:16:53 activator: swap.example.com: generation 193 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:16:53 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:16:53 activator: shop.example.com: release command of build v2 started
2026/12/02 17:16:53 activator: shop.example.com: stopping the release command of build v2: the instance's lease is ending
2026/12/02 17:16:53 activator: shop.example.com: the release command of build v2 is proven stopped
2026/12/02 17:16:53 activator: shop.example.com: release command of build v2 started
2026/12/02 17:16:53 activator: shop.example.com: the release command of build v2 is proven stopped
2026/12/02 17:16:53 activator: shop.example.com: generation 194 of v1: record 0s, start 0s, healthy 0s later
2026/12/02 17:16:53 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:16:53 activator: shop.example.com hibernated
2026/12/02 17:16:53 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:16:53 activator: swap.example.com: release command of build v2 started
2026/12/02 17:16:53 activator: swap.example.com: the release command of build v2 is proven stopped
2026/12/02 17:16:53 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:16:53 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:16:53 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:197.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 0s, control socket 0s, key gate 0s, logs 0s) 1ms, launch file 0s, gate 0s, root start 0s)
2026/12/02 17:16:53 activator: shop.example.com: started carlos-instance-rootfs-worker@shop.example.com:jobs.service (worker jobs of build v2) memory.max=536870912
2026/12/02 17:16:53 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:198.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 0s)
2026/12/02 17:16:53 activator: shop.example.com: started carlos-instance-rootfs-worker@shop.example.com:jobs.service (worker jobs of build v2) memory.max=536870912
2026/12/02 17:16:53 activator: shop.example.com: not started, refused before the lease: shop.example.com: runtime "rootfs-v2": activator: this agent does not know the instance's runtime
2026/12/02 17:16:53 activator: shop.example.com: not started, refused before the lease: shop.example.com: runtime "rootfs-v2": activator: this agent does not know the instance's runtime
2026/12/02 17:16:53 activator: shop.example.com: not started, refused before the lease: shop.example.com: runtime "rootfs-v2": activator: this agent does not know the instance's runtime
2026/12/02 17:16:53 activator: shop.example.com: not started, refused before the lease: shop.example.com: runtime "rootfs-v2": activator: this agent does not know the instance's runtime
2026/12/02 17:16:54 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: rootfs instances need generations and the overlap scheduler armed on this box
2026/12/02 17:16:54 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: rootfs instances need generations and the overlap scheduler armed on this box
2026/12/02 17:16:54 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: rootfs instances need generations and the overlap scheduler armed on this box
2026/12/02 17:16:54 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: rootfs instances need generations and the overlap scheduler armed on this box
2026/12/02 17:16:54 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: rootfs instances need generations and the overlap scheduler armed on this box
2026/12/02 17:16:54 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: rootfs instances need generations and the overlap scheduler armed on this box
2026/12/02 17:16:54 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: rootfs instances need generations and the overlap scheduler armed on this box
2026/12/02 17:16:54 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: rootfs instances need generations and the overlap scheduler armed on this box
2026/12/02 17:16:54 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: rootfs instances stay off until the agent restarts: the startup sweep did not prove every leftover unit gone
2026/12/02 17:16:54 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: rootfs instances stay off until the agent restarts: the startup sweep did not prove every leftover unit gone
2026/12/02 17:16:54 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: rootfs instances stay off until the agent restarts: the startup sweep did not prove every leftover unit gone
2026/12/02 17:16:54 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: rootfs instances stay off until the agent restarts: the startup sweep did not prove every leftover unit gone
2026/12/02 17:16:54 activator: shop.example.com: not started, refused before the lease: shop.example.com: refusing to wake an isolated instance: no isolation mounts
2026/12/02 17:16:54 activator: shop.example.com: not started, refused before the lease: shop.example.com: refusing to wake an isolated instance: no isolation mounts
2026/12/02 17:16:54 activator: shop.example.com: not started, refused before the lease: shop.example.com: refusing to wake an isolated instance: no isolation mounts
2026/12/02 17:16:54 activator: shop.example.com: not started, refused before the lease: shop.example.com: refusing to wake an isolated instance: no isolation mounts
2026/12/02 17:16:54 activator: shop.example.com: not started, refused before the lease: shop.example.com: rootfs instances need nested isolation, and this box does not have it yet
2026/12/02 17:16:55 activator: shop.example.com: not started, refused before the lease: shop.example.com: rootfs instances need nested isolation, and this box does not have it yet
2026/12/02 17:16:55 activator: shop.example.com: not started, refused before the lease: shop.example.com: rootfs instances need nested isolation, and this box does not have it yet
2026/12/02 17:16:55 activator: shop.example.com: not started, refused before the lease: shop.example.com: rootfs instances need nested isolation, and this box does not have it yet
2026/12/02 17:16:55 activator: shop.example.com: not started, refused before the lease: shop.example.com: refusing to wake: instance identifier collides with other.example.com; neither host wakes until one is removed
2026/12/02 17:16:55 activator: shop.example.com: not started, refused before the lease: shop.example.com: refusing to wake: instance identifier collides with other.example.com; neither host wakes until one is removed
2026/12/02 17:16:55 activator: shop.example.com: not started, refused before the lease: shop.example.com: refusing to wake: instance identifier collides with other.example.com; neither host wakes until one is removed
2026/12/02 17:16:55 activator: shop.example.com: not started, refused before the lease: shop.example.com: refusing to wake: instance identifier collides with other.example.com; neither host wakes until one is removed
2026/12/02 17:16:55 activator: shop.example.com: not started, refused before the lease: shop.example.com: refusing to wake a rootfs instance: root-image fail
2026/12/02 17:16:55 activator: shop.example.com: not started, refused before the lease: shop.example.com: refusing to wake a rootfs instance: root-image fail
2026/12/02 17:16:55 activator: shop.example.com: not started, refused before the lease: shop.example.com: refusing to wake a rootfs instance: root-image fail
2026/12/02 17:16:55 activator: shop.example.com: not started, refused before the lease: shop.example.com: refusing to wake a rootfs instance: root-image fail
2026/12/02 17:16:56 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: the instance control channel cannot start a rootfs instance: no rootfs probe on this box
2026/12/02 17:16:56 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: the instance control channel cannot start a rootfs instance: no rootfs probe on this box
2026/12/02 17:16:56 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: the instance control channel cannot start a rootfs instance: no rootfs probe on this box
2026/12/02 17:16:56 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: the instance control channel cannot start a rootfs instance: no rootfs probe on this box
2026/12/02 17:16:56 activator: shop.example.com: not started, refused before the lease: shop.example.com: this box is shared
2026/12/02 17:16:56 activator: shop.example.com: not started, refused before the lease: shop.example.com: this box is shared
2026/12/02 17:16:56 activator: shop.example.com: not started, refused before the lease: shop.example.com: this box is shared
2026/12/02 17:16:56 activator: shop.example.com: not started, refused before the lease: shop.example.com: this box is shared
2026/12/02 17:16:56 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: the instance control channel cannot start a rootfs instance: no rootfs placement check on this box
2026/12/02 17:16:56 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: the instance control channel cannot start a rootfs instance: no rootfs placement check on this box
2026/12/02 17:16:56 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: the instance control channel cannot start a rootfs instance: no rootfs placement check on this box
2026/12/02 17:16:56 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: the instance control channel cannot start a rootfs instance: no rootfs placement check on this box
2026/12/02 17:16:57 activator: shop.example.com: not started, refused before the lease: hostbox: unresolved lifecycle contract: isolated root launcher cannot carry claim reservations
2026/12/02 17:16:57 activator: shop.example.com: not started, refused before the lease: hostbox: unresolved lifecycle contract: isolated root launcher cannot carry claim reservations
2026/12/02 17:16:57 activator: shop.example.com: not started, refused before the lease: hostbox: unresolved lifecycle contract: isolated root launcher cannot carry claim reservations
2026/12/02 17:16:57 activator: shop.example.com: not started, refused before the lease: hostbox: unresolved lifecycle contract: isolated root launcher cannot carry claim reservations
2026/12/02 17:16:57 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: the instance control channel cannot start a rootfs instance
2026/12/02 17:16:57 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: the instance control channel cannot start a rootfs instance
2026/12/02 17:16:57 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: the instance control channel cannot start a rootfs instance
2026/12/02 17:16:57 activator: shop.example.com: not started, refused before the lease: shop.example.com: activator: the instance control channel cannot start a rootfs instance
2026/12/02 17:16:57 activator: c.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:16:57 activator: blog.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:16:57 activator: a.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:16:57 activator: a.example.com: not started, refused before the lease: context canceled
2026/12/02 17:16:57 activator: blog.example.com hibernated
2026/12/02 17:16:57 activator: a.example.com hibernated
2026/12/02 17:16:57 activator: c.example.com hibernated
2026/12/02 17:16:58 activator: a.example.com has a scheduled delivery due — waking it
2026/12/02 17:16:58 activator: blog.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:16:58 activator: blog.example.com hibernated
2026/12/02 17:16:58 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:16:58 activator: shop.example.com: started carlos-instance-rootfs-cmd@shop.example.com.service (release of build v2) memory.max=1073741824
2026/12/02 17:16:58 activator: shop.example.com: started carlos-instance-rootfs-worker@shop.example.com:jobs.service (worker jobs of build v2) memory.max=1073741824
2026/12/02 17:16:58 activator: shop.example.com: processes remain after inactive; not releasing
2026/12/02 17:16:59 activator: shop.example.com: carlos-instance-rootfs-worker@shop.example.com:jobs.service after its stop: context deadline exceeded
2026/12/02 17:16:59 activator: shop.example.com: started carlos-instance-rootfs-cmd@shop.example.com.service (cmd of build v2) memory.max=1073741824
2026/12/02 17:16:59 activator: shop.example.com: carlos-instance-rootfs-cmd@shop.example.com.service after its kill: context deadline exceeded
2026/12/02 17:17:01 activator: shop.example.com: started carlos-instance-rootfs-tty@shop.example.com.service (console of build v2) memory.max=1073741824
2026/12/02 17:17:01 activator: shop.example.com: carlos-instance-rootfs-tty@shop.example.com.service after its kill: context deadline exceeded
2026/12/02 17:17:01 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:01 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:7.service memory.max=1073741824 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 0s, control socket 0s, key gate 0s, logs 0s) 1ms, launch file 0s, gate 0s, root start 0s)
2026/12/02 17:17:01 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 1ms, healthy 0s later
2026/12/02 17:17:01 activator: shop.example.com: processes remain after inactive; not releasing
2026/12/02 17:17:01 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:01 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:7.service memory.max=1073741824 (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 0s)
2026/12/02 17:17:01 activator: shop.example.com: processes remain after inactive; not releasing
2026/12/02 17:17:02 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:02 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:7.service memory.max=1073741824 (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 0s)
2026/12/02 17:17:02 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 0s, healthy 0s later
2026/12/02 17:17:02 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:02 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:7.service memory.max=1073741824 (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 0s)
2026/12/02 17:17:02 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 0s, healthy 0s later
2026/12/02 17:17:02 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:02 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:7.service memory.max=2147483648 (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 0s)
2026/12/02 17:17:02 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 1ms, healthy 0s later
2026/12/02 17:17:02 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:02 activator: shop.example.com: started carlos-instance-rootfs-cmd@shop.example.com.service (release of build v2) memory.max=1073741824
2026/12/02 17:17:03 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:03 activator: shop.example.com: started carlos-instance-rootfs-cmd@shop.example.com.service (release of build v2) memory.max=1073741824
2026/12/02 17:17:03 activator: shop.example.com: release command of build v2 started
2026/12/02 17:17:03 activator: shop.example.com: the release command of build v2 is not proven stopped: instance control /stop: 502: stop: Job for carlos-instance-rootfs-cmd@shop.example.com.service canceled. exit status 1
processes remained after 200ms; the sweep retries
2026/12/02 17:17:03 activator: shop.example.com: the release command of build v2 is proven stopped
2026/12/02 17:17:03 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:03 activator: shop.example.com: started carlos-instance-rootfs-cmd@shop.example.com.service (release of build v2) memory.max=1073741824
2026/12/02 17:17:03 activator: shop.example.com: release command of build v2 started
2026/12/02 17:17:04 activator: shop.example.com: the release command of build v2 is proven stopped
2026/12/02 17:17:04 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/12/02 17:17:04 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:04 activator: LEASE LOST for always-on shop.example.com (renew: the lock was taken); killing it
2026/12/02 17:17:04 activator: shop.example.com: generation 203 killed and proven gone after its lease was lost
2026/12/02 17:17:04 activator: shop.example.com hibernated
2026/12/02 17:17:04 activator: shop.example.com: wake failed: start shop.example.com: health: socket never accepted
2026/12/02 17:17:04 activator: wake shop.example.com: start shop.example.com: health: socket never accepted
2026/12/02 17:17:04 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/12/02 17:17:04 activator: LEASE HELD for shop.example.com by "box-b" — a previous incarnation hasn't released; refusing to wake (retry after 10s)
2026/12/02 17:17:04 activator: LEASE HELD for shop.example.com by "box-b" — a previous incarnation hasn't released; refusing to wake (retry after 10s)
2026/12/02 17:17:04 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/12/02 17:17:04 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:04 activator: shop.example.com hibernated
2026/12/02 17:17:04 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/12/02 17:17:04 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:04 activator: rootfs instance shop.example.com exited; stopping it
2026/12/02 17:17:04 activator: shop.example.com hibernated
2026/12/02 17:17:04 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/12/02 17:17:04 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:04 activator: rootfs instance shop.example.com exited; stopping it
2026/12/02 17:17:04 activator: shop.example.com hibernated
2026/12/02 17:17:04 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/12/02 17:17:04 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:04 activator: rootfs instance shop.example.com exited; stopping it
2026/12/02 17:17:04 activator: shop.example.com hibernated
2026/12/02 17:17:04 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/12/02 17:17:04 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:04 activator: rootfs instance shop.example.com exited; stopping it
2026/12/02 17:17:04 activator: shop.example.com hibernated
2026/12/02 17:17:04 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/12/02 17:17:04 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:04 activator: rootfs instance shop.example.com exited; stopping it
2026/12/02 17:17:04 activator: shop.example.com hibernated
2026/12/02 17:17:04 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/12/02 17:17:04 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:04 activator: rootfs instance shop.example.com exited; stopping it
2026/12/02 17:17:04 activator: shop.example.com hibernated
2026/12/02 17:17:04 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/12/02 17:17:04 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:04 activator: rootfs instance shop.example.com exited; stopping it
2026/12/02 17:17:04 activator: shop.example.com hibernated
2026/12/02 17:17:04 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/12/02 17:17:04 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:04 activator: shop.example.com hibernated
2026/12/02 17:17:04 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/12/02 17:17:04 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:04 activator: shop.example.com serving v1 but v2 is adopted — cycling onto the new build
2026/12/02 17:17:04 activator: shop.example.com hibernated
2026/12/02 17:17:04 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/12/02 17:17:04 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:04 activator: shop.example.com hibernated
2026/12/02 17:17:04 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:04 activator: swap.example.com: release command of build v2 started
2026/12/02 17:17:04 activator: swap.example.com: the release command of build v2 is proven stopped
2026/12/02 17:17:04 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:05 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:05 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:05 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:05 activator: swap.example.com: release command of build v2 started
2026/12/02 17:17:05 activator: swap.example.com: stopping the release command of build v2: the instance's lease is ending
2026/12/02 17:17:05 activator: swap.example.com: the release command of build v2 is proven stopped
2026/12/02 17:17:05 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:05 activator: swap.example.com: release command of build v2 started
2026/12/02 17:17:05 activator: swap.example.com: the release command of build v2 is proven stopped
2026/12/02 17:17:05 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:4.service after its kill: context deadline exceeded
2026/12/02 17:17:05 activator: shop.example.com: generation 4's child is not proven empty: context deadline exceeded
2026/12/02 17:17:05 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:05 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:05 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:05 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:05 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:2.service memory.max=1073741824 (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 0s)
2026/12/02 17:17:05 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:2.service launched in 0s, healthy 0s later
2026/12/02 17:17:05 activator: shop.example.com: unit restarted outside the activator (invocation inv-foreign, ours inv1); stop failed, trying again: instance-control: HTTP 502: stop: termination unproven
2026/12/02 17:17:05 activator: shop.example.com: unit restarted outside the activator (invocation inv-foreign, ours inv1); stop accepted, waiting for termination proof
2026/12/02 17:17:05 activator: shop.example.com: processes remain after active; not releasing
2026/12/02 17:17:06 activator: h.example.com: started carlos-instance@h.example.com.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 0s)
2026/12/02 17:17:06 activator: h.example.com: carlos-instance@h.example.com.service launched in 0s, healthy 0s later
2026/12/02 17:17:06 activator: h.example.com: unit restarted outside the activator (invocation inv-foreign, ours inv1); stopping it
2026/12/02 17:17:06 activator: h.example.com: stop foreign invocation: instance-control: HTTP 502: stop: timed out
2026/12/02 17:17:06 activator: shop.example.com: generation 226 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:06 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:06 activator: shop.example.com hibernated
2026/12/02 17:17:06 activator: blog.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:06 activator: shop.example.com: release command of build v2 started
2026/12/02 17:17:06 activator: shop.example.com: stopping the release command of build v2: the instance's lease is ending
2026/12/02 17:17:06 activator: shop.example.com: the release command of build v2 is proven stopped
2026/12/02 17:17:06 activator: shop.example.com: not started, refused before the lease: hostbox: unresolved lifecycle contract: isolated root launcher cannot carry claim reservations
2026/12/02 17:17:06 activator: shop.example.com: release command of build v2 started
2026/12/02 17:17:06 activator: shop.example.com: the release command of build v2 is proven stopped
2026/12/02 17:17:06 activator: publish generations to /tmp/TestReleaseBuildPublishedBeforeExec2360665686/007/file/generations.json: open directory /tmp/TestReleaseBuildPublishedBeforeExec2360665686/007/file: not a directory; the sweep retries
2026/12/02 17:17:06 activator: shop.example.com: release command of build v2 started
2026/12/02 17:17:06 activator: shop.example.com: the release command of build v2 is proven stopped
2026/12/02 17:17:07 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:07 activator: shop.example.com: worker jobs started as its instance stopped or lost its lease; stopping it
2026/12/02 17:17:07 activator: shop.example.com: worker jobs ended with no exit status to tell (a failed start, no exit record, or an unknown signal); starting it again in 4s
2026/12/02 17:17:07 activator: shop.example.com hibernated
2026/12/02 17:17:07 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:07 activator: shop.example.com: worker jobs of build v1 not started: swap: lease lost
2026/12/02 17:17:07 activator: shop.example.com hibernated
2026/12/02 17:17:07 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:07 activator: shop.example.com: worker jobs of build v1 not started: swap: a stop-evidence operation holds the host
2026/12/02 17:17:07 activator: shop.example.com hibernated
2026/12/02 17:17:07 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:07 activator: shop.example.com: worker jobs of build v1 not started: swap: another generation operation is in flight: a release command of this instance is still running or not proven stopped
2026/12/02 17:17:07 activator: shop.example.com hibernated
2026/12/02 17:17:07 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:07 activator: shop.example.com: worker jobs of build v1 not started: activator: the worker's generation is no longer the instance's current one
2026/12/02 17:17:07 activator: shop.example.com hibernated
2026/12/02 17:17:07 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:07 activator: plain.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:07 activator: plain.example.com hibernated
2026/12/02 17:17:07 activator: shop.example.com hibernated
2026/12/02 17:17:07 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:07 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:7.service memory.max=1073741824 (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 0s)
2026/12/02 17:17:07 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 1ms, healthy 0s later
2026/12/02 17:17:07 activator: shop.example.com: started carlos-instance-rootfs-worker@shop.example.com:jobs.service (worker jobs of build v2) memory.max=1073741824
2026/12/02 17:17:07 activator: shop.example.com: start of carlos-instance-rootfs-worker@shop.example.com:jobs.service (worker jobs of build v2) failed, it may have begun: lost response
2026/12/02 17:17:07 activator: shop.example.com: stop carlos-instance-rootfs-worker@shop.example.com:jobs.service: proof unavailable
2026/12/02 17:17:07 provision: a.shop.example.com: swapped for import sd_yu5qw5utcaytb5cxaobnqsneji (the original route is journaled)
2026/12/02 17:17:07 provision: a.shop.example.com: import sd_yu5qw5utcaytb5cxaobnqsneji rolled back to its original route
2026/12/02 17:17:07 provision: a.shop.example.com: import sd_yu5qw5utcaytb5cxaobnqsneji is cleaned up and its journal row retired
2026/12/02 17:17:07 activator: h.example.com: placed seed sd_xzkb7qmax6b3tpah2xazv6ugay (8192 bytes)
2026/12/02 17:17:07 activator: h.example.com: seed sd_5zu23qfq4ebudqhylnjxrxbig4: h.example.com could not start from its seed: a copy of data already exists for this hostname.: objects under moves/h.example.com/
2026/12/02 17:17:07 activator: h.example.com: seed sd_kajknraxgx47ffmn2rrnxxrilq: h.example.com could not start from its seed: a copy of data already exists for this hostname.: objects under moves/h.example.com/
2026/12/02 17:17:07 activator: h.example.com: seed sd_rd427rdjqhrpqrnmiqle4aj4xu failed for good (copy-exists), and this box has no door to report it to
2026/12/02 17:17:07 activator: h.example.com: seed sd_rd427rdjqhrpqrnmiqle4aj4xu: h.example.com could not start from its seed: a copy of data already exists for this hostname.: the host has a replica, and /tmp/nb1605842522/data/instances/h.example.com/h.example.com.db is not this seed's placed database with its marker
2026/12/02 17:17:07 activator: h.example.com: seed sd_ejrhwlmt5qz26mwpibtcs4ujly failed for good (copy-exists), and this box has no door to report it to
2026/12/02 17:17:07 activator: h.example.com: seed sd_ejrhwlmt5qz26mwpibtcs4ujly: h.example.com could not start from its seed: a copy of data already exists for this hostname.: objects under moves/h.example.com/
2026/12/02 17:17:07 activator: h.example.com: seed sd_v473ujfxqh3zaupmkjg6esp4yy: h.example.com could not start from its seed: the snapshot could not be read. The next wake tries again.: no seed reader on this box
2026/12/02 17:17:08 provision: minted instance route shop.example.com (app "shop" acct "bac")
2026/12/02 17:17:08 activator: shop.example.com: placed seed sd_55k3esxxnhiqvqjya3n4asus3a (8192 bytes)
2026/12/02 17:17:08 provision: removed instance route shop.example.com (its seed sd_55k3esxxnhiqvqjya3n4asus3a was aborted); the next pass rolls it back
2026/12/02 17:17:08 provision: shop.example.com: aborted seed sd_55k3esxxnhiqvqjya3n4asus3a keeps its hostname: a copy of its data is still in the fleet's storage (1 object(s) under instances/shop.example.com/, 0 under moves/shop.example.com/)
2026/12/02 17:17:08 provision: shop.example.com: aborted seed sd_55k3esxxnhiqvqjya3n4asus3a keeps its hostname: a copy of its data is still in the fleet's storage (1 object(s) under instances/shop.example.com/, 0 under moves/shop.example.com/)
2026/12/02 17:17:08 provision: shop.example.com: aborted seed sd_55k3esxxnhiqvqjya3n4asus3a: nothing of it is left on this box or in the fleet's storage; reported rolled back
2026/12/02 17:17:08 provision: minted instance route shop.example.com (app "shop" acct "bac")
2026/12/02 17:17:08 activator: shop.example.com: placed seed sd_27l43jpa2rd2jtu7z4y2hcrtei (8192 bytes)
2026/12/02 17:17:08 activator: h.example.com: placed seed sd_fovxo6bz5aptk66miitldb7gee (8192 bytes)
2026/12/02 17:17:08 activator: CARLOS_INSTANCE_KEY in /tmp/nb3949509668/data/instances/h.example.com/h.example.com.env is not the shape the platform mints (44 base64 characters, 32 bytes): left in place, because the app may already have sealed data with it
2026/12/02 17:17:08 activator: h.example.com: placed seed sd_s4sreknl55ekpphfeuwupxop2u (8192 bytes)
2026/12/02 17:17:08 activator: h.example.com: placed seed sd_qxipqybxz7n7qw2awlogpal524 (8192 bytes)
2026/12/02 17:17:08 activator: h.example.com: seed sd_4sblo5r4wmad3lzlxzf3slp63i: h.example.com could not start from its seed: this box already has database files for it with no marker tying them to this seed, so they were kept and the seed was not placed. An operator has to check them.: /tmp/nb3481794867/data/instances/h.example.com/h.example.com.db holds data no marker attributes to this seed; refusing to purge it
2026/12/02 17:17:08 activator: restored h.example.com from s3://test-bucket/h.example.com
2026/12/02 17:17:08 activator: h.example.com: placed seed sd_bnuouifq44sjle3lbinfiu7pj4 (8192 bytes)
2026/12/02 17:17:08 activator: no replica for h.example.com in s3://test-bucket/h.example.com — booting fresh
2026/12/02 17:17:08 activator: no replica for h.example.com in s3://test-bucket/h.example.com — booting fresh
2026/12/02 17:17:08 activator: no replica for h.example.com in s3://test-bucket/h.example.com — booting fresh
2026/12/02 17:17:08 activator: h.example.com: placed seed sd_bgem2e353ohtu4o65anxcfd5rm (8192 bytes)
2026/12/02 17:17:08 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:08 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:08 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:09 provision: minted sidecar route bot.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 17:17:09 lease: bot.shop.bac.sidecar.internal: HA lease acquired in 2ms (first wake)
2026/12/02 17:17:09 activator: bot.shop.bac.sidecar.internal: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:17:09 activator: bot.shop.bac.sidecar.internal: woke in 63ms: checks 0s, lease 3ms, restore 0s, identity 0s, protect 0s, spawn 4ms, settle 0s, replicate 55ms
2026/12/02 17:17:10 activator: bot.shop.bac.sidecar.internal: released with a marker (clean true, txid 1, files 4:4b493282d57d4af8ba3b27429514409b4d7e8a1944f4f81bf62b7c3a04acec2c) in 9ms: files 1ms, sync 1ms, record 1ms, marker 7ms
2026/12/02 17:17:10 activator: bot.shop.bac.sidecar.internal hibernated
2026/12/02 17:17:10 lease: bot.shop.bac.sidecar.internal: HA lease acquired in 9ms (clean marker)
2026/12/02 17:17:10 ha_adoption host=bot.shop.bac.sidecar.internal cause=departure-finalize generation=2
2026/12/02 17:17:10 activator: bot.shop.bac.sidecar.internal has a scheduled delivery due — waking it
2026/12/02 17:17:10 lease: bot.shop.bac.sidecar.internal: HA lease acquired in 2ms (unclean marker)
2026/12/02 17:17:10 activator: bot.shop.bac.sidecar.internal: restored (unclean)
2026/12/02 17:17:10 activator: bot.shop.bac.sidecar.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:10 activator: bot.shop.bac.sidecar.internal: released with a marker (clean true, txid 2, files 5:1c13726e7ee14a096f9fc0ce1af7002ff3880d5c1d74d00a9cad6ffdef4df596) in 6ms: files 1ms, sync 1ms, record 2ms, marker 2ms
2026/12/02 17:17:10 activator: bot.shop.bac.sidecar.internal hibernated
2026/12/02 17:17:10 provision: minted sidecar route bot.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 17:17:11 provision: minted sidecar route bot.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 17:17:11 provision: minted sidecar route bot.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 17:17:11 provision: minted sidecar route bot.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 17:17:11 activator: shop.example.com: SET ASIDE the local copy at /tmp/TestAssignmentChangeSetsTheCopyAside2093696001/002/shop.example.com.db (kept under assignment "2026-10-30T10:00:00.000000001Z", the record is now assigned "2026-10-30T11:00:00.000000002Z"): moved to /tmp/TestAssignmentChangeSetsTheCopyAside2093696001/002/.superseded/shop.example.com/1796231831216852362, nothing deleted
2026/12/02 17:17:11 activator: restored shop.example.com from s3://test-bucket/shop.example.com
2026/12/02 17:17:11 activator: shop.example.com: woke in 2ms: checks 0s, lease 0s, restore 2ms, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:11 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:11 activator: no replica for shop.example.com in s3://test-bucket/shop.example.com — booting fresh
2026/12/02 17:17:11 activator: no replica for shop.example.com in s3://test-bucket/shop.example.com — booting fresh
2026/12/02 17:17:11 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:11 activator: shop.example.com: SET ASIDE the local copy at /tmp/TestNothingToRestoreRefusesEveryTime3892055794/002/shop.example.com.db (kept under assignment "2026-10-30T10:00:00.000000001Z", the record is now assigned "2026-10-30T11:00:00.000000002Z"): moved to /tmp/TestNothingToRestoreRefusesEveryTime3892055794/002/.superseded/shop.example.com/1796231831371399616, nothing deleted
2026/12/02 17:17:11 activator: no replica for shop.example.com in s3://test-bucket/shop.example.com — NOT booting fresh: refusing to start shop.example.com empty: it was tied to this box and there is no saved copy to restore. set-aside copies: /tmp/TestNothingToRestoreRefusesEveryTime3892055794/002/.superseded/shop.example.com/1796231831371399616
2026/12/02 17:17:11 activator: shop.example.com: wake failed: restore shop.example.com: refusing to start shop.example.com empty: it was tied to this box and there is no saved copy to restore. set-aside copies: /tmp/TestNothingToRestoreRefusesEveryTime3892055794/002/.superseded/shop.example.com/1796231831371399616
2026/12/02 17:17:11 activator: no replica for shop.example.com in s3://test-bucket/shop.example.com — NOT booting fresh: refusing to start shop.example.com empty: it was tied to this box and there is no saved copy to restore. set-aside copies: /tmp/TestNothingToRestoreRefusesEveryTime3892055794/002/.superseded/shop.example.com/1796231831371399616
2026/12/02 17:17:11 activator: shop.example.com: wake failed: restore shop.example.com: refusing to start shop.example.com empty: it was tied to this box and there is no saved copy to restore. set-aside copies: /tmp/TestNothingToRestoreRefusesEveryTime3892055794/002/.superseded/shop.example.com/1796231831371399616
2026/12/02 17:17:11 activator: no replica for shop.example.com in s3://test-bucket/shop.example.com — NOT booting fresh: refusing to start shop.example.com empty: it was tied to this box and there is no saved copy to restore. set-aside copies: /tmp/TestNothingToRestoreRefusesEveryTime3892055794/002/.superseded/shop.example.com/1796231831371399616
2026/12/02 17:17:11 activator: shop.example.com: wake failed: restore shop.example.com: refusing to start shop.example.com empty: it was tied to this box and there is no saved copy to restore. set-aside copies: /tmp/TestNothingToRestoreRefusesEveryTime3892055794/002/.superseded/shop.example.com/1796231831371399616
2026/12/02 17:17:11 activator: no replica for shop.example.com in s3://test-bucket/shop.example.com — NOT booting fresh: refusing to start shop.example.com empty: it was tied to this box and there is no saved copy to restore. set-aside copies: /tmp/TestNothingToRestoreRefusesEveryTime3892055794/002/.superseded/shop.example.com/1796231831371399616
2026/12/02 17:17:11 activator: no replica for shop.example.com in s3://test-bucket/shop.example.com — NOT booting fresh: refusing to start shop.example.com empty: it was tied to this box and there is no saved copy to restore. set-aside copies: /tmp/TestInterruptedSetAsideRefusespartial_directory_left_by_a_crash1247368035/002/.superseded/shop.example.com/1761818400000000000.partial
2026/12/02 17:17:11 activator: shop.example.com: SET ASIDE the local copy at /tmp/TestInterruptedSetAsideRefusescrash_in_the_middle_of_the_move2903349490/002/shop.example.com.db (no assignment marker, the record is assigned "2026-10-30T11:00:00.000000002Z"): moved to /tmp/TestInterruptedSetAsideRefusescrash_in_the_middle_of_the_move2903349490/002/.superseded/shop.example.com/1796231831500492259, nothing deleted
2026/12/02 17:17:11 activator: no replica for shop.example.com in s3://test-bucket/shop.example.com — NOT booting fresh: refusing to start shop.example.com empty: it was tied to this box and there is no saved copy to restore. set-aside copies: /tmp/TestInterruptedSetAsideRefusescrash_in_the_middle_of_the_move2903349490/002/.superseded/shop.example.com/1796231831500492259, /tmp/TestInterruptedSetAsideRefusescrash_in_the_middle_of_the_move2903349490/002/.superseded/shop.example.com/1796231831500338941.partial
2026/12/02 17:17:11 activator: shop.example.com: SET ASIDE the local copy at /tmp/TestUnreplicatedTailSurvivesset_aside_with_its_WAL3251016272/002/shop.example.com.db (kept under assignment "2026-10-30T10:00:00.000000001Z", the record is now assigned "2026-10-30T11:00:00.000000002Z"): moved to /tmp/TestUnreplicatedTailSurvivesset_aside_with_its_WAL3251016272/002/.superseded/shop.example.com/1796231831509946320, nothing deleted
2026/12/02 17:17:11 activator: restored shop.example.com from s3://test-bucket/shop.example.com
2026/12/02 17:17:11 activator: shop.example.com: generation 249 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:11 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:11 activator: shop.example.com hibernated
2026/12/02 17:17:11 activator: shop.example.com: generation 250 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:11 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:11 activator: shop.example.com hibernated
2026/12/02 17:17:11 activator: shop.example.com: wake failed: could not verify this build's storage declaration, so it was not started: file does not exist
2026/12/02 17:17:11 activator: shop.example.com: wake failed: could not verify this build's storage declaration, so it was not started: store unavailable
2026/12/02 17:17:11 activator: shop.example.com: generation 253's child is not proven empty: activator: generation start failed and its termination is unproven
2026/12/02 17:17:11 activator: shop.example.com: failed wake's generation 253 is not proven stopped; keeping the lease until it is
2026/12/02 17:17:11 activator: shop.example.com: wake failed and its generation is not proven stopped: start shop.example.com: generation exited before it was observed; the good build v1 failed too: good build start: activator: generation start failed and its termination is unproven
2026/12/02 17:17:11 activator: shop.example.com: failed wake's generation 253 is proven stopped; lease given back
2026/12/02 17:17:11 activator: shop.example.com: release command of build v2 started
2026/12/02 17:17:11 activator: shop.example.com: the release command of build v2 is proven stopped
2026/12/02 17:17:11 activator: shop.example.com: generation 254's child is not proven empty: activator: generation start failed and its termination is unproven
2026/12/02 17:17:11 activator: shop.example.com: failed wake's generation 254 is not proven stopped; keeping the lease until it is
2026/12/02 17:17:11 activator: shop.example.com: wake failed and its generation is not proven stopped: start shop.example.com: the release command of build v2 exited with status 1; the good build v1 failed too: good build start: activator: generation start failed and its termination is unproven
2026/12/02 17:17:11 activator: shop.example.com: failed wake's generation 254 is proven stopped; lease given back
2026/12/02 17:17:12 activator: shop.example.com: wake failed: could not verify this build's storage declaration, so it was not started: file does not exist
2026/12/02 17:17:12 activator: shop.example.com: wake failed: could not verify this build's storage declaration, so it was not started: store unavailable
2026/12/02 17:17:12 activator: shop.example.com: generation 255 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:12 activator: shop.example.com: woke in 0s: identity 0s
2026/12/02 17:17:12 activator: shop.example.com hibernated
2026/12/02 17:17:12 activator: shop.example.com: wake failed: could not verify this build's storage declaration, so it was not started: dirstore: apps/acme/shop/releases/v2/manifest.json: file does not exist — if this deployment predates account-scoped bucket keys its objects are still at apps/shop/, which the runtime no longer reads; move them once with: carlos accounts migrate --app shop --from legacy --to acme
2026/12/02 17:17:12 activator: shop.example.com: wake failed: could not verify this build's storage declaration, so it was not started: staged artifact is not the release's canonical artifact
2026/12/02 17:17:12 activator: shop.example.com: generation 256 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:12 activator: shop.example.com: build v2: its declared processes are not valid, so this box runs no worker of it: the processes declare no web process. a rootfs release needs exactly one, named web
2026/12/02 17:17:12 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:12 activator: shop.example.com hibernated
2026/12/02 17:17:12 activator: shop.example.com: generation 257 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:12 activator: shop.example.com: build v2: its declared processes are not valid, so this box runs no worker of it: the processes declare no web process. a rootfs release needs exactly one, named web
2026/12/02 17:17:12 activator: shop.example.com: woke in 0s: identity 0s
2026/12/02 17:17:12 activator: shop.example.com hibernated
2026/12/02 17:17:12 activator: shop.example.com: generation 258 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:12 activator: shop.example.com: build v2: its declared processes are not valid, so this box runs no worker of it: the processes declare no web process. a rootfs release needs exactly one, named web
2026/12/02 17:17:12 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:12 activator: shop.example.com hibernated
2026/12/02 17:17:12 activator: shop.example.com: generation 259 of v1: record 0s, start 0s, healthy 21ms later
2026/12/02 17:17:12 activator: shop.example.com: woke in 0s: identity 0s
2026/12/02 17:17:12 activator: shop.example.com hibernated
2026/12/02 17:17:12 activator: h.example.com: started carlos-instance-gen@h.example.com:7.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 0s)
2026/12/02 17:17:13 activator: shop.example.com: generation 261 of v1: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:13 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:13 activator: shop.example.com hibernated
2026/12/02 17:17:13 activator: shop.example.com: generation 262 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:13 activator: shop.example.com: woke in 0s: identity 0s
2026/12/02 17:17:13 activator: shop.example.com hibernated
2026/12/02 17:17:13 activator: shop.example.com: generation 263 of v1: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:13 activator: shop.example.com: woke in 0s: identity 0s
2026/12/02 17:17:13 activator: shop.example.com hibernated
2026/12/02 17:17:13 activator: shop.example.com: generation 264 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:13 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:13 activator: shop.example.com hibernated
2026/12/02 17:17:13 activator: shop.example.com: generation 265 of v1: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:13 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:13 activator: shop.example.com: release command of build v2 started
2026/12/02 17:17:13 activator: shop.example.com: the release command of build v2 is proven stopped
2026/12/02 17:17:13 activator: shop.example.com hibernated
2026/12/02 17:17:13 activator: shop.example.com: generation 266 of v1: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:13 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:13 activator: shop.example.com: release command of build v2 started
2026/12/02 17:17:13 activator: shop.example.com: the release command of build v2 is proven stopped
2026/12/02 17:17:13 activator: shop.example.com hibernated
2026/12/02 17:17:13 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:13 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:13 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:13 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:13 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:13 activator: shop.example.com: release command of build v2 started
2026/12/02 17:17:13 activator: shop.example.com: the release command of build v2 is proven stopped
2026/12/02 17:17:13 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:13 activator: swap.example.com hibernated
2026/12/02 17:17:13 activator: swap.example.com: hold's pinned wake refused or abandoned: start swap.example.com: swap: superseded by a newer attempt
2026/12/02 17:17:13 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:13 activator: swap.example.com hibernated
2026/12/02 17:17:13 activator: swap.example.com: generation 274 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:13 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:13 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:13 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:13 activator: swap.example.com hibernated
2026/12/02 17:17:13 activator: swap.example.com: generation 277 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:13 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:13 activator: h.example.com: start of carlos-instance-gen@h.example.com:7.service failed, it may have begun: 502 from root; killing it
2026/12/02 17:17:13 activator: h.example.com: kill carlos-instance-gen@h.example.com:7.service after a failed start: processes remain
2026/12/02 17:17:13 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:13 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:13 activator: swap.example.com hibernated
2026/12/02 17:17:21 activator: eu.shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:21 activator: wake shop.example.com: open directory /opt/carlos/versions/g3r1: read-only file system
2026/12/02 17:17:21 activator: one.example.com: wake failed: one.example.com: the installed build is not this instance's build, and root has not installed it yet: one.example.com is on "v3", wants v1
2026/12/02 17:17:21 activator: one.example.com not woken: it is held on v1, and this wake would run "" (the live link moved after the check); the next wake checks again
2026/12/02 17:17:21 activator: one.example.com: wake failed: start one.example.com: the installed build is not this instance's build, and root has not installed it yet: one.example.com would run "", wants v1
2026/12/02 17:17:22 activator: one.example.com: wake failed: one.example.com: build unknown: use Update now or set a pin
2026/12/02 17:17:22 activator: one.example.com: wake failed: one.example.com: this instance's build failed on this box, so it is not started again: v1 on one.example.com
2026/12/02 17:17:22 activator: one.example.com: wake failed: one.example.com: the installed build is not this instance's build, and root has not installed it yet: one.example.com's target changed from v1 while it waited
2026/12/02 17:17:22 activator: one.example.com: wake failed: one.example.com: the installed build is not this instance's build, and root has not installed it yet: one.example.com's target changed from v1 while it waited
2026/12/02 17:17:22 activator: u.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, seed 0s, spawn 0s, replicate 0s
2026/12/02 17:17:22 activator: e.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:23 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s, sidecar 0s
2026/12/02 17:17:23 activator: one.example.com: generation 883 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:23 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:23 activator: x.example: hold's pinned wake refused or abandoned: the claims admission refused before the exec: hostbox: unresolved lifecycle contract: isolated root launcher cannot carry claim reservations
2026/12/02 17:17:23 activator: bot.x.internal: worker generation 0's host cgroup is not proven empty: the host cgroup still holds a process
2026/12/02 17:17:23 activator: bot.x.internal: worker generation 884's host cgroup is not proven empty: the host cgroup still holds a process
2026/12/02 17:17:23 activator: bot.x.internal: failed wake's generation 884 is not proven stopped; keeping the lease until it is
2026/12/02 17:17:23 activator: bot.x.internal: wake failed: start bot.x.internal: worker exited during its settle window; its end was not proven, so the good build was not started: activator: stop unproven; processes remain
2026/12/02 17:17:23 activator: publish generations to /tmp/TestAPlannedWorkerRefusedAtItsPublicationAttemptsNoSpawn4089471616/002/not-a-dir/generations.json: open directory /tmp/TestAPlannedWorkerRefusedAtItsPublicationAttemptsNoSpawn4089471616/002/not-a-dir: not a directory; the sweep retries
2026/12/02 17:17:23 activator: bot.x.internal: wake failed: bot.x.internal: refusing to wake: staged build not published before its exec
2026/12/02 17:17:23 activator: publish generations to /tmp/TestAPlannedWorkerRefusedAtItsPublicationAttemptsNoSpawn4089471616/002/not-a-dir/generations.json: open directory /tmp/TestAPlannedWorkerRefusedAtItsPublicationAttemptsNoSpawn4089471616/002/not-a-dir: not a directory; the sweep retries
2026/12/02 17:17:23 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:23 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:23 activator: one.example.com hibernated
2026/12/02 17:17:26 activator: one.example.com: waited 2.5s for a wake slot (1 at once on this box)
2026/12/02 17:17:26 activator: one.example.com: generation 887 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:26 activator: one.example.com: woke in 2.501s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:26 activator: bot.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:26 activator: worker bot.example.com exited — restarting (backoff now 2s)
2026/12/02 17:17:26 activator: worker bot.example.com exited; no captured build to recycle onto, so it respawns from live/bot.example.com
2026/12/02 17:17:26 activator: worker bot.example.com respawned (exited), now running 
2026/12/02 17:17:26 activator: bot.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:26 activator: worker bot.example.com exited — restarting (backoff now 2s)
2026/12/02 17:17:26 activator: worker bot.example.com exited; no captured build to recycle onto, so it respawns from live/bot.example.com
2026/12/02 17:17:27 activator: worker bot.example.com respawned (exited), now running 
2026/12/02 17:17:27 activator: bot8.example.com: worker generation 890's host cgroup is not proven empty: the host cgroup still holds a process
2026/12/02 17:17:27 activator: bot8.example.com: failed wake's generation 890 is not proven stopped; keeping the lease until it is
2026/12/02 17:17:27 activator: bot8.example.com: wake failed: start bot8.example.com: worker exited during its settle window
2026/12/02 17:17:27 activator: bot8.example.com: failed wake's generation 890 is proven stopped; lease given back
2026/12/02 17:17:27 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:27 activator: worker bot.x.internal respawned (attempt (release)), now running v2
2026/12/02 17:17:27 activator: worker bot.x.internal exited — restarting (backoff now 2s)
2026/12/02 17:17:27 activator: worker bot.x.internal exited; a queued release attempt makes the spawn instead of a recycle
2026/12/02 17:17:27 activator: worker bot.x.internal respawned (falling back to v1), now running v1
2026/12/02 17:17:27 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:27 activator: worker bot.x.internal respawned (attempt (release)), now running v2
2026/12/02 17:17:27 activator: bot.x.internal hibernated
2026/12/02 17:17:27 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:27 activator: worker bot.x.internal respawned (attempt (release)), now running v2
2026/12/02 17:17:28 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:28 activator: worker bot.x.internal NOT respawned (attempt (release)): swap: superseded by a newer attempt; abandoning it
2026/12/02 17:17:28 activator: worker bot.x.internal respawned (restoring v1), now running v1
2026/12/02 17:17:28 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:28 activator: worker bot.x.internal respawned (attempt (release)), now running v2
2026/12/02 17:17:28 activator: worker bot.x.internal respawned (falling back to v1), now running v1
2026/12/02 17:17:28 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:17:28 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:17:28 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 3ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:17:28 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:17:28 activator: shop.example.com: woke in 10ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 4ms, replicate 4ms
2026/12/02 17:17:28 activator: shop.example.com: write fence: standing down (stopping)
2026/12/02 17:17:28 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:17:28 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:7c493fc87a9043859c5589543c8c21159fdadddd831be6cc1a3244c7f52a8c85) in 3ms: files 1ms, sync 1ms, record 1ms, marker 1ms
2026/12/02 17:17:28 activator: shop.example.com hibernated
2026/12/02 17:17:28 lease: shop.example.com: HA lease acquired in 3ms (first wake)
2026/12/02 17:17:28 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:17:28 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 3ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:17:28 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:17:28 activator: shop.example.com: woke in 65ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 4ms, replicate 56ms
2026/12/02 17:17:28 activator: shop.example.com: write fence: standing down (already stopping)
2026/12/02 17:17:28 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:17:28 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:1b9ea337d04927e3be8f7093ceee51aa3fd691559a540ae2460da0105270e31b) in 4ms: files 1ms, sync 1ms, record 1ms, marker 2ms
2026/12/02 17:17:28 activator: shop.example.com hibernated
2026/12/02 17:17:28 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:17:28 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:17:28 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 3ms, control socket 0s, key gate 0s, logs 0s) 4ms, launch file 0s, gate 0s, root start 2ms)
2026/12/02 17:17:28 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 6ms, healthy 0s later
2026/12/02 17:17:28 activator: shop.example.com: woke in 62ms: checks 0s, lease 3ms, restore 0s, identity 0s, protect 0s, spawn 6ms, replicate 53ms
2026/12/02 17:17:28 activator: shop.example.com: write fence: standing down (stopping)
2026/12/02 17:17:28 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:17:28 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:163fc8d394746540b6ece057c6ca004d039b0486bed8d87af85cbe921068749b) in 3ms: files 1ms, sync 1ms, record 1ms, marker 0s
2026/12/02 17:17:28 activator: shop.example.com hibernated
2026/12/02 17:17:28 lease: shop.example.com: HA lease acquired in 1ms (first wake)
2026/12/02 17:17:28 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:17:28 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 3ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:17:28 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:17:28 activator: shop.example.com: woke in 60ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 4ms, replicate 54ms
2026/12/02 17:17:28 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:17:28 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:c7a59a3aad67abbab1f435a2e4d9b7a88e188d1face3ffa42850163dbd8fe282) in 6ms: files 1ms, sync 1ms, record 1ms, marker 4ms
2026/12/02 17:17:28 activator: shop.example.com hibernated
2026/12/02 17:17:28 lease: shop.example.com: HA lease acquired in 2ms (first wake)
2026/12/02 17:17:28 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 17:17:28 activator: shop.example.com: started carlos-instance@shop.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 3ms, control socket 0s, key gate 0s, logs 0s) 3ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 17:17:28 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 4ms, healthy 0s later
2026/12/02 17:17:28 activator: shop.example.com: write fence: standing down (wake cancelled)
2026/12/02 17:17:28 activator: shop.example.com: woke in 60ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 0s, spawn 5ms, replicate 53ms
2026/12/02 17:17:28 activator: shop.example.com: write fence: standing down (stopping)
2026/12/02 17:17:28 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/12/02 17:17:28 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:472881897e72378b419712cc67e08b7db1411ac91eec9db642bd346dc2bb0563) in 3ms: files 1ms, sync 1ms, record 1ms, marker 1ms
2026/12/02 17:17:28 activator: shop.example.com hibernated
2026/12/02 17:17:28 activator: h.example.com: started carlos-instance@h.example.com.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 0s)
2026/12/02 17:17:28 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:28 activator: h.example.com: carlos-instance@h.example.com.service launched in 1ms, healthy 0s later
2026/12/02 17:17:28 activator: h.example.com: started carlos-instance@h.example.com.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 0s)
2026/12/02 17:17:28 activator: h.example.com: carlos-instance@h.example.com.service launched in 0s, healthy 0s later
2026/12/02 17:17:28 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:7.service memory.max=1073741824 (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 0s)
2026/12/02 17:17:28 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 1ms, healthy 0s later
2026/12/02 17:17:28 activator: shop.example.com: started carlos-instance-rootfs-worker@shop.example.com:jobs.service (worker jobs of build v2) memory.max=1073741824
worker line
{"msg":"web line","process":"spoof"}
2026/12/02 17:17:28 activator: h.example.com: started carlos-instance@h.example.com.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 0s)
2026/12/02 17:17:28 activator: h.example.com: carlos-instance@h.example.com.service launched in 0s, healthy 3ms later
2026/12/02 17:17:29 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:29 activator: replica shop.example.com not started: it has no key of its home's and no control socket, so an app on the instance-key helper would mint its own
2026/12/02 17:17:29 activator: shop.example.com: wake failed: seed shop.example.com: activator: replica launch refused: its instance key is not its home's: shop.example.com: it has no key of its home's and no control socket, so an app on the instance-key helper would mint its own
2026/12/02 17:17:30 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:30 activator: worker bot.x.internal exited — restarting (backoff now 2s)
2026/12/02 17:17:30 activator: worker bot.x.internal exited; no captured build to recycle onto, so it respawns from live/bot.x.internal
2026/12/02 17:17:30 activator: worker bot.x.internal respawned (exited), now running 
2026/12/02 17:17:30 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:30 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:30 activator: worker bot.x.internal exited — restarting (backoff now 4s)
2026/12/02 17:17:30 activator: worker bot.x.internal exited; no captured build to recycle onto, so it respawns from live/bot.x.internal
2026/12/02 17:17:30 activator: worker bot.x.internal respawned (exited), now running 
2026/12/02 17:17:30 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:30 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:30 activator: worker bot.x.internal exited — restarting (backoff now 2s)
2026/12/02 17:17:30 activator: worker bot.x.internal exited; no captured build to recycle onto, so it respawns from live/bot.x.internal
2026/12/02 17:17:30 activator: worker bot.x.internal respawned (exited), now running 
2026/12/02 17:17:30 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:30 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:30 activator: worker bot.x.internal exited — restarting (backoff now 2s)
2026/12/02 17:17:30 activator: worker bot.x.internal respawned (exited), now running v1
2026/12/02 17:17:30 activator: one.example.com: generation 897 of v2: record 0s, start 20ms, healthy 0s later
2026/12/02 17:17:30 activator: one.example.com: woke in 21ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 21ms, replicate 0s
2026/12/02 17:17:30 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:30 activator: cmd.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:30 activator: bot.x.internal idle 31s — hibernating
2026/12/02 17:17:30 activator: bot.x.internal hibernated
2026/12/02 17:17:30 activator: worker bot.x.internal serving v1 but live symlink is now v2 — respawning onto the new build
2026/12/02 17:17:30 activator: worker bot.x.internal respawned (converging onto a new build), now running v2
2026/12/02 17:17:30 activator: worker bot.x.internal exited — restarting (backoff now 2s)
2026/12/02 17:17:30 activator: worker bot.x.internal respawned (exited), now running v1
2026/12/02 17:17:30 activator: one.example.com was turned off by its plan — stopping
2026/12/02 17:17:30 activator: one.example.com hibernated
2026/12/02 17:17:30 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:30 activator: worker bot.x.internal exited — restarting (backoff now 8s)
2026/12/02 17:17:30 activator: worker bot.x.internal exited; no captured build to recycle onto, so it respawns from live/bot.x.internal
2026/12/02 17:17:30 activator: worker bot.x.internal respawned (exited), now running 
2026/12/02 17:17:30 activator: cmd.example.com was turned off by its plan — stopping
2026/12/02 17:17:30 activator: cmd.example.com hibernated
2026/12/02 17:17:30 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:30 activator: one.example.com hibernated
2026/12/02 17:17:30 activator: worker bot.x.internal exited — restarting (backoff now 2s)
2026/12/02 17:17:30 activator: bot.x.internal: live/bot.x.internal names v2, which this box will not start (a failure record holds this build: v2), so it does not move onto it: it recycles its captured build v1
2026/12/02 17:17:30 activator: worker bot.x.internal respawned (exited), now running v1
2026/12/02 17:17:30 activator: worker bot.x.internal exited — restarting (backoff now 2s)
2026/12/02 17:17:30 activator: worker bot.x.internal respawned (exited), now running v1
2026/12/02 17:17:30 activator: bot.x.internal has a scheduled delivery due — waking it
2026/12/02 17:17:30 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:30 activator: worker bot.x.internal exited — restarting (backoff now 2s)
2026/12/02 17:17:30 activator: worker bot.x.internal respawned (exited), now running v1
2026/12/02 17:17:30 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:30 activator: one.example.com: generation 905 of v3: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:30 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:30 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:30 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:30 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:30 activator: bot.x.internal idle 11s — hibernating
2026/12/02 17:17:30 activator: bot.x.internal hibernated
2026/12/02 17:17:30 activator: fence.example hibernated
2026/12/02 17:17:30 activator: worker bot.x.internal serving v1 but live symlink is now v2 — respawning onto the new build
2026/12/02 17:17:30 activator: worker bot.x.internal NOT respawned (converging onto a new build): instance config unavailable on this box: cannot open sealed config — standing down and releasing its lease
2026/12/02 17:17:30 activator: bot.x.internal hibernated
2026/12/02 17:17:30 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:30 activator: one.example.com idle 1h0m0s — hibernating
2026/12/02 17:17:30 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:30 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:30 activator: one.example.com is no longer hibernate-managed — releasing
2026/12/02 17:17:30 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:30 activator: one.example.com hibernated
2026/12/02 17:17:30 activator: one.example.com hibernated
2026/12/02 17:17:30 activator: one.example.com hibernated
2026/12/02 17:17:30 activator: sidecar bot.x.internal exited cleanly — its work is done; parking it
2026/12/02 17:17:30 activator: bot.x.internal hibernated
2026/12/02 17:17:30 activator: seeding h.example.com: /tmp/TestPlan14GenerationBackendAuxiliaryBoundaryclaim=falseseedpi3392344422/001/live/h.example.com seed --db /tmp/nb3464337212/data/instances/h.example.com/h.example.com.db
2026/12/02 17:17:30 activator: seeded h.example.com
2026/12/02 17:17:30 activator: seeding h.example.com: /tmp/TestPlan14GenerationBackendAuxiliaryBoundaryclaim=falseseedpi2914908263/001/live/h.example.com seed --db /tmp/nb1017361457/data/instances/h.example.com/h.example.com.db
2026/12/02 17:17:30 activator: seeded h.example.com
2026/12/02 17:17:30 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:30 activator: worker bot.x.internal exited — restarting (backoff now 2s)
2026/12/02 17:17:30 activator: bot.x.internal: live/bot.x.internal names v2, which this box will not start (a failure record holds this build: v2), so it does not move onto it: it stays down until a release attempt or a wake starts it
2026/12/02 17:17:30 activator: worker bot.x.internal exited — restarting (backoff now 2s)
2026/12/02 17:17:30 activator: worker bot.x.internal exited — restarting (backoff now 2s)
2026/12/02 17:17:30 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s, sidecar 0s
2026/12/02 17:17:30 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:30 activator: one.example.com: sidecar starting on the instance's own build v1 (/opt/carlos/versions/v1/app): this box will not start v2, the build its live link names
2026/12/02 17:17:30 activator: sidecar for one.example.com was down — restarted (backoff now 2s)
2026/12/02 17:17:30 activator: sidecar staged for awake swap.example.com — adopting
2026/12/02 17:17:30 activator: sidecar for swap.example.com was down — restarted (backoff now 2s)
2026/12/02 17:17:30 activator: shop.example.com: wake failed: activator: the probe attempt failed
moves: probe attempt window or deadline expired
context deadline exceeded
2026/12/02 17:17:30 activator: old.shop.example.com: route refreshed: db "/data/instances/old/old.shop.example.com.db" -> "" socket "/run/carlos/instances/old/app.sock" -> ""
2026/12/02 17:17:30 activator: old.shop.example.com: wake failed: old.shop.example.com: the route changed before the wake: the activator no longer manages it
2026/12/02 17:17:30 activator: wake old.shop.example.com: old.shop.example.com: the route changed before the wake: the activator no longer manages it
2026/12/02 17:17:30 activator: bots.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:30 activator: bots.example.com idle 11s — hibernating
2026/12/02 17:17:30 activator: bots.example.com hibernated
2026/12/02 17:17:30 activator: bots.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:31 activator: control listener for shop.example.com: listen unix /tmp/TestARefusedLaunchLeavesNoBuildStateRecord4203287494/002/ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.sock.control: bind: invalid argument (continuing without it)
2026/12/02 17:17:31 activator: shop.example.com: wake failed: start shop.example.com: activator: replica launch refused: its instance key is not its home's: shop.example.com: it has no key of its home's and no control socket, so an app on the instance-key helper would mint its own
2026/12/02 17:17:31 activator: bots.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s, sidecar 0s
2026/12/02 17:17:31 activator: bots.example.com idle 11s — hibernating
2026/12/02 17:17:31 activator: bots.example.com hibernated
2026/12/02 17:17:31 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:31 activator: one.example.com serving v1 but live symlink is now v2 — cycling onto the new build
2026/12/02 17:17:31 activator: one.example.com hibernated
2026/12/02 17:17:31 activator: mid.example.com has a scheduled delivery due — waking it
2026/12/02 17:17:31 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:31 activator: one.example.com idle 5m1s — hibernating
2026/12/02 17:17:31 activator: one.example.com hibernated
2026/12/02 17:17:31 activator: mid.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:31 activator: mid.example.com is no longer hibernate-managed — releasing (wake finished first)
2026/12/02 17:17:31 activator: mid.example.com hibernated
2026/12/02 17:17:31 activator: shop.example.com: generation 4's child is not proven empty: kill gen: timeout
2026/12/02 17:17:31 activator: tickheld.bab.oncarlos.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:31 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:31 activator: LEASE LOST for one.example.com (lease renewal failed) — standing down
2026/12/02 17:17:31 activator: one.example.com hibernated
2026/12/02 17:17:31 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:31 activator: barrier.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:31 activator: stop barrier.example.com: not every process of the entry is proven gone; keeping the lease until it is
2026/12/02 17:17:31 activator: tickheld.bab.oncarlos.com serving v1 but live symlink is now v2 — cycling onto the new build
2026/12/02 17:17:31 activator: tickheld.bab.oncarlos.com hibernated
2026/12/02 17:17:31 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:31 activator: always-on sidecar bot.x.internal hit its max_run of 30s — recycling its child
2026/12/02 17:17:31 activator: bot.x.internal: live/bot.x.internal names v2, which this box will not start (a failure record holds this build: v2), so it does not move onto it: the running child keeps running
2026/12/02 17:17:31 activator: worker bot.x.internal exited — restarting (backoff now 2s)
2026/12/02 17:17:31 activator: worker bot.x.internal respawned (exited), now running v1
2026/12/02 17:17:31 activator: bot.x.internal hibernated
2026/12/02 17:17:31 activator: moved.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:31 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:31 activator: two.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:31 activator: moved.example.com was turned off by its plan — stopping
2026/12/02 17:17:31 activator: stop fence.example: stop refused
2026/12/02 17:17:31 activator: fence.example hibernated
2026/12/02 17:17:31 activator: barrier.example.com hibernated
2026/12/02 17:17:31 activator: moved.example.com hibernated
2026/12/02 17:17:31 activator: one.example.com serving v1 but live symlink is now v2 — cycling onto the new build
2026/12/02 17:17:31 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:31 activator: effsize.example.com: size "xxlarge" is not one this box knows; using the build's tier
2026/12/02 17:17:31 activator: one.example.com hibernated
2026/12/02 17:17:31 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:31 activator: two.example.com serving v1 but live symlink is now v2 — cycling onto the new build
2026/12/02 17:17:31 activator: two.example.com hibernated
2026/12/02 17:17:31 activator: always-on sidecar bot.x.internal hit its max_run of 30s — recycling its child
2026/12/02 17:17:32 activator: c.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:32 activator: faroff.bab.oncarlos.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:32 activator: restore-fail.example.com: wake failed: restore restore-fail.example.com: s3 down
2026/12/02 17:17:32 activator: always-on sidecar bot.x.internal hit its max_run of 30s — recycling its child
2026/12/02 17:17:32 activator: SIDECAR for botless.example.com failed to start: exec: live symlink gone — serving without it (the sweep retries)
2026/12/02 17:17:32 activator: botless.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s, sidecar 0s
2026/12/02 17:17:32 activator: SIDECAR restart for botless.example.com failed: exec: live symlink gone (next attempt in 2s)
2026/12/02 17:17:32 activator: partial.example: wake failed: start partial.example: started then failed
2026/12/02 17:17:32 activator: faroff.bab.oncarlos.com idle 16m0s — hibernating
2026/12/02 17:17:32 activator: faroff.bab.oncarlos.com hibernated
2026/12/02 17:17:32 activator: one.example.com awake 1h0m0s, past its plan's ceiling of 15m0s — stopping
2026/12/02 17:17:32 activator: one.example.com hibernated
2026/12/02 17:17:32 activator: sidecar for botless.example.com was down — restarted (backoff now 4s)
2026/12/02 17:17:32 activator: c.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:32 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:17:32 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:32 activator: swap.example.com: run ses_a on retired generation 1099511627776 is not proven stopped: instance control: 502 mid-roll; the sweep tries again
2026/12/02 17:17:32 activator: fenced.example.com: failed wake's generation 935 is not proven stopped; keeping the lease until it is
2026/12/02 17:17:32 activator: sidecar staged for awake tenant.test — adopting
2026/12/02 17:17:32 activator: sidecar for tenant.test was down — restarted (backoff now 2s)
2026/12/02 17:17:32 activator: fenced.example.com: failed wake's generation 935 is proven stopped; lease given back
2026/12/02 17:17:32 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:17:32 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:32 activator: shop.example.com: started carlos-instance-rootfs-cmd@shop.example.com.service (release of build v2) memory.max=1073741824
2026/12/02 17:17:32 activator: x.example hibernated
2026/12/02 17:17:32 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s, sidecar 0s
2026/12/02 17:17:32 activator: one.example.com: sidecar not started: this box will not start v2, the build its live link names, nor the instance's own build v1: a failure record holds this build: v1
2026/12/02 17:17:32 activator: SIDECAR restart for one.example.com failed: a failure record holds this build: v2 (next attempt in 2s)
2026/12/02 17:17:32 activator: h.example.com: started carlos-instance@h.example.com.service memory.max=536870912 (build 0s, prepare (dirs 2ms, admin token 0s, instance key 0s, env 0s, control socket 0s, key gate 0s, logs 0s) 2ms, launch file 0s, gate 0s, root start 0s)
2026/12/02 17:17:32 activator: h.example.com: carlos-instance@h.example.com.service launched in 2ms, healthy 1ms later
2026/12/02 17:17:32 activator: h.example.com: unit restarted outside the activator (invocation inv2, ours inv1); stopping it
2026/12/02 17:17:32 activator: h.example.com: started carlos-instance@h.example.com.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 0s)
2026/12/02 17:17:32 activator: h.example.com: carlos-instance@h.example.com.service launched in 1ms, healthy 0s later
2026/12/02 17:17:32 activator: seeding shop.example.com: /tmp/TestARefusedLaunchLeavesNoBuildStateRecordseed_refused_beside_a1325841941/002/versions/v1/app seed --db /tmp/TestARefusedLaunchLeavesNoBuildStateRecordseed_refused_beside_a1325841941/003/shop.example.com.db
2026/12/02 17:17:32 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:32 activator: h.example.com: unit restarted outside the activator (invocation someone-else, ours inv7); stopping it
2026/12/02 17:17:32 activator: stop fence.example: stop refused
2026/12/02 17:17:32 activator: fence.example hibernated
2026/12/02 17:17:32 activator: worker bot.x.internal exited — restarting (backoff now 2s)
2026/12/02 17:17:32 activator: worker bot.x.internal respawned (exited), now running v1
2026/12/02 17:17:32 activator: worker bot.x.internal exited — restarting (backoff now 2s)
2026/12/02 17:17:32 activator: bot.x.internal: v1 not started: its build state could not be written: bucket refused the build state
2026/12/02 17:17:32 activator: worker bot.x.internal NOT respawned (exited): refused at its exec: the build state could not be written, so this build was not started: bucket refused the build state
2026/12/02 17:17:32 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:32 activator: shop.example.com: failed wake's generation 4 had no cgroup of its own, and its host cgroup is not proven empty: carlos-exec@<host> still holds a process
2026/12/02 17:17:32 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:33 activator: fence.example hibernated
2026/12/02 17:17:33 activator: pending-f6.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:33 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:33 activator: swap.example.com hibernated
2026/12/02 17:17:33 activator: swap.example.com: generation 944 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:33 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:33 activator: pending-f6.example.com idle 2m0s — hibernating
2026/12/02 17:17:33 activator: stop pending-f6.example.com: activator: stop unproven; processes remain; keeping the lease until termination is proven
2026/12/02 17:17:33 activator: start-fail.example.com: wake failed: start start-fail.example.com: never healthy
2026/12/02 17:17:33 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:33 activator: stop pending-f6.example.com: its host cgroup is not proven empty: the host cgroup still holds a process
2026/12/02 17:17:33 activator: pending-f6.example.com hibernated
2026/12/02 17:17:33 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:33 activator: worker bot.x.internal serving v1 but live symlink is now v2 — respawning onto the new build
2026/12/02 17:17:33 activator: h.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:33 activator: h.example.com idle 2m0s — hibernating
2026/12/02 17:17:33 activator: stop h.example.com: activator: stop unproven; processes remain; keeping the lease until termination is proven
2026/12/02 17:17:33 activator: f6.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:33 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:33 activator: h.example.com hibernated
2026/12/02 17:17:33 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:33 activator: f6.example.com idle 2m0s — hibernating
2026/12/02 17:17:33 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:33 activator: stop f6.example.com: its host cgroup is not proven empty: the host cgroup still holds a process
2026/12/02 17:17:33 activator: stop f6.example.com: its host cgroup is not proven empty; keeping the lease until it is
2026/12/02 17:17:33 activator: one.example.com was turned off by its plan — stopping
2026/12/02 17:17:33 activator: one.example.com hibernated
2026/12/02 17:17:33 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:33 activator: f6.example.com hibernated
2026/12/02 17:17:33 activator: worker bot.x.internal NOT respawned (converging onto a new build): swap: instance not awake; abandoning it
2026/12/02 17:17:33 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs@shop.example.com.service memory.max=1073741824 (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 0s)
2026/12/02 17:17:33 activator: shop.example.com: carlos-instance-rootfs@shop.example.com.service launched in 1ms, healthy 0s later
2026/12/02 17:17:33 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:33 activator: worker bot.x.internal serving v1 but live symlink is now v2 — respawning onto the new build
2026/12/02 17:17:33 activator: shop.example.com: not placing the first database: shop.example.com.db is already taken (left as it is)
2026/12/02 17:17:33 activator: shop.example.com: not placing the first database: shop.example.com.db is already taken (left as it is)
2026/12/02 17:17:33 activator: shop.example.com: not placing the first database: shop.example.com.db is already taken (left as it is)
2026/12/02 17:17:33 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:33 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:9.service memory.max=1073741824 (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 0s)
2026/12/02 17:17:33 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:33 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs@shop.example.com.service memory.max=1073741824 (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 0s)
2026/12/02 17:17:33 activator: shop.example.com: carlos-instance-rootfs@shop.example.com.service launched in 0s, healthy 0s later
2026/12/02 17:17:33 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:33 activator: always-on sidecar bot.x.internal hit its max_run of 30s — recycling its child
2026/12/02 17:17:33 activator: worker bot.x.internal respawned (hit its max_run), now running v1
2026/12/02 17:17:33 activator: bot.x.internal hibernated
2026/12/02 17:17:33 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:33 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:17:33 activator: h.example.com: started carlos-instance@h.example.com.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 0s)
2026/12/02 17:17:33 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:33 activator: h.example.com: carlos-instance@h.example.com.service launched in 1ms, healthy 0s later
2026/12/02 17:17:33 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:33 activator: worker bot.x.internal reported idle but is always-on (hibernate:false) — ignoring
2026/12/02 17:17:33 activator: h.example.com: started carlos-instance@h.example.com.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 0s)
2026/12/02 17:17:33 activator: h.example.com: carlos-instance@h.example.com.service launched in 1ms, healthy 0s later
2026/12/02 17:17:33 activator: worker bot.x.internal exited — restarting (backoff now 2s)
2026/12/02 17:17:33 activator: worker bot.x.internal exited; no captured build to recycle onto, so it respawns from live/bot.x.internal
2026/12/02 17:17:33 activator: worker bot.x.internal respawned (exited), now running 
2026/12/02 17:17:33 activator: h.example.com: started carlos-instance-gen@h.example.com:6.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 0s)
2026/12/02 17:17:33 activator: h.example.com: carlos-instance-gen@h.example.com:6.service launched in 1ms, healthy 0s later
2026/12/02 17:17:33 activator: h.example.com: started carlos-instance-gen@h.example.com:6.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 0s, control socket 0s, key gate 0s, logs 0s) 1ms, launch file 0s, gate 0s, root start 0s)
2026/12/02 17:17:33 activator: h.example.com: carlos-instance-gen@h.example.com:6.service launched in 1ms, healthy 0s later
2026/12/02 17:17:33 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:7.service memory.max=4294967296 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 0s, control socket 0s, key gate 0s, logs 0s) 1ms, launch file 0s, gate 0s, root start 0s)
2026/12/02 17:17:33 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
binary line
2026/12/02 17:17:33 activator: bot.x.internal hibernated
2026/12/02 17:17:33 activator: c.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:33 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:7.service memory.max=1073741824 (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 0s)
2026/12/02 17:17:33 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 1ms, healthy 0s later
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-worker@shop.example.com:jobs.service (worker jobs of build v2) memory.max=1073741824
2026/12/02 17:17:33 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:7.service memory.max=1073741824 (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 0s)
2026/12/02 17:17:33 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 1ms, healthy 0s later
2026/12/02 17:17:33 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:7.service memory.max=1073741824 (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 0s)
2026/12/02 17:17:33 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 1ms, healthy 0s later
2026/12/02 17:17:33 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:7.service memory.max=1073741824 (build 0s, prepare (dirs 1ms, admin token 0s, instance key 0s, env 0s, control socket 0s, key gate 0s, logs 0s) 1ms, launch file 0s, gate 0s, root start 0s)
2026/12/02 17:17:33 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 1ms, healthy 0s later
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-worker@shop.example.com:jobs.service (worker jobs of build v2) memory.max=1073741824
2026/12/02 17:17:33 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:7.service memory.max=1073741824 (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 0s)
2026/12/02 17:17:33 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 1ms, healthy 2ms later
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-worker@shop.example.com:jobs.service (worker jobs of build v2) memory.max=1073741824
2026/12/02 17:17:33 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:7.service memory.max=1073741824 (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 0s)
2026/12/02 17:17:33 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 1ms, healthy 0s later
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-worker@shop.example.com:jobs.service (worker jobs of build v2) memory.max=1073741824
2026/12/02 17:17:33 activator: fenced.example.com: failed wake's generation 954 is not proven stopped; keeping the lease until it is
2026/12/02 17:17:33 activator: always-on sidecar bot.x.internal is not running — starting it
2026/12/02 17:17:33 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:7.service memory.max=1073741824 (build 1ms, 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 0s)
2026/12/02 17:17:33 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 1ms, healthy 0s later
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-worker@shop.example.com:jobs.service (worker jobs of build v2) memory.max=1073741824
2026/12/02 17:17:33 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:33 activator: fenced.example.com: failed wake's generation 954 is proven stopped; lease given back
2026/12/02 17:17:33 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:7.service memory.max=1073741824 (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 0s)
2026/12/02 17:17:33 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 1ms, healthy 0s later
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-worker@shop.example.com:jobs.service (worker jobs of build v2) memory.max=1073741824
2026/12/02 17:17:33 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:7.service memory.max=1073741824 (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 0s)
2026/12/02 17:17:33 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 1ms, healthy 0s later
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-worker@shop.example.com:jobs.service (worker jobs of build v2) memory.max=1073741824
2026/12/02 17:17:33 activator: shop.example.com: escrow is off: this box has no files store; the host launches and mints as before, and nothing of it is published
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:7.service memory.max=1073741824 (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 0s)
2026/12/02 17:17:33 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 1ms, healthy 0s later
2026/12/02 17:17:33 activator: shop.example.com: started carlos-instance-rootfs-worker@shop.example.com:jobs.service (worker jobs of build v2) memory.max=1073741824
2026/12/02 17:17:33 activator: worker bot.x.internal NOT respawned (converging onto a new build): swap: instance not awake; abandoning it
2026/12/02 17:17:33 activator: bot.x.internal hibernated
2026/12/02 17:17:33 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:17:33 activator: x.example hibernated
2026/12/02 17:17:33 activator: seeding shop.example.com: /tmp/TestARefusedLaunchLeavesNoBuildStateRecorda_seed_that_ran_is_re3119831248/001/versions/v1/app seed --db /tmp/TestARefusedLaunchLeavesNoBuildStateRecorda_seed_that_ran_is_re3119831248/002/shop.example.com.db
2026/12/02 17:17:33 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s, sidecar 0s
2026/12/02 17:17:33 activator: shop.example.com: the seed ran with no delegated cgroup; its leader's exit is the only proof there is
2026/12/02 17:17:33 activator: shop.example.com: wake failed: seed shop.example.com: seeding shop.example.com: exit status 1
2026/12/02 17:17:33 activator: one.example.com: sidecar not started: this box will not start v2, the build its live link names, and the instance's own build v1 cannot be named: staged copy unreadable
2026/12/02 17:17:33 activator: SIDECAR restart for one.example.com failed: a failure record holds this build: v2 (next attempt in 2s)
2026/12/02 17:17:34 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:34 activator: swap.example.com hibernated
2026/12/02 17:17:34 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s, sidecar 0s
2026/12/02 17:17:34 activator: sidecar for swap.example.com was down — restarted (backoff now 2s)
2026/12/02 17:17:34 activator: one.example.com: generation 960 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:34 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:34 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:34 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:34 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:34 activator: one.example.com: size xlarge: cpu and io applied live; memory changes at the next start
2026/12/02 17:17:34 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:34 activator: worker bot.x.internal exited — restarting (backoff now 2s)
2026/12/02 17:17:34 activator: worker bot.x.internal exited; no captured build to recycle onto, so it respawns from live/bot.x.internal
2026/12/02 17:17:34 activator: worker bot.x.internal respawned (exited), now running 
2026/12/02 17:17:34 activator: swap.example.com hibernated
2026/12/02 17:17:34 activator: swap.example.com: v2 not started: its build state could not be written: bucket refused the build state
2026/12/02 17:17:34 activator: swap.example.com: hold's pinned wake refused or abandoned: start swap.example.com: the build state could not be written, so this build was not started: bucket refused the build state
2026/12/02 17:17:34 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:34 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:34 activator: swap.example.com hibernated
2026/12/02 17:17:34 activator: swap.example.com: generation 969 of v2: record 0s, start 0s, healthy 0s later
2026/12/02 17:17:34 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:34 activator: bot1.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:34 activator: bot2.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:34 activator: always-on sidecar bot00.x.internal is not running — starting it
2026/12/02 17:17:34 activator: always-on sidecar bot01.x.internal is not running — starting it
2026/12/02 17:17:34 activator: always-on sidecar bot02.x.internal is not running — starting it
2026/12/02 17:17:34 activator: always-on sidecar bot03.x.internal is not running — starting it
2026/12/02 17:17:34 activator: always-on sidecar bot04.x.internal is not running — starting it
2026/12/02 17:17:34 activator: always-on sidecar bot05.x.internal is not running — starting it
2026/12/02 17:17:34 activator: always-on sidecar bot06.x.internal is not running — starting it
2026/12/02 17:17:34 activator: always-on sidecar bot07.x.internal is not running — starting it
2026/12/02 17:17:34 activator: bot.x.internal: v1 not started: its build state could not be written: bucket refused the build state
2026/12/02 17:17:34 activator: worker bot1.x.internal exited — restarting (backoff now 2s)
2026/12/02 17:17:34 activator: worker bot1.x.internal exited; it serves v1 but live/bot1.x.internal has named v2 for at least 1m30s, so it converges onto the new build instead of recycling
2026/12/02 17:17:34 activator: worker bot2.x.internal exited — restarting (backoff now 2s)
2026/12/02 17:17:34 activator: worker bot2.x.internal exited; live/bot2.x.internal names v2, but this sweep's converge budget is spent, so it recycles its captured build v1 and converges on a later sweep
2026/12/02 17:17:34 activator: worker bot2.x.internal respawned (exited), now running v1
2026/12/02 17:17:34 activator: worker bot1.x.internal respawned (converging onto a new build), now running v2
2026/12/02 17:17:34 activator: bot07.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:34 activator: bot03.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:34 activator: bot00.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:34 activator: bot01.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:34 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:34 activator: swap.example.com: size xlarge: instance control /size: 502: set-property carlos-instances-swap.example.com.slice: failed (retried next sweep)
2026/12/02 17:17:34 activator: bot02.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:34 activator: always-on sidecar bot08.x.internal is not running — starting it
2026/12/02 17:17:34 activator: always-on sidecar bot09.x.internal is not running — starting it
2026/12/02 17:17:34 activator: always-on sidecar bot10.x.internal is not running — starting it
2026/12/02 17:17:34 activator: bot06.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:34 activator: bot05.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:34 activator: bot04.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:34 activator: worker bot2.x.internal serving v1 but live symlink is now v2 — respawning onto the new build
2026/12/02 17:17:34 activator: worker bot2.x.internal respawned (converging onto a new build), now running v2
2026/12/02 17:17:34 activator: swap.example.com: size standard: cpu and io applied live; memory changes at the next start
2026/12/02 17:17:34 activator: bot08.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:34 activator: bot09.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:34 activator: bot10.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:34 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:34 activator: worker bot.x.internal serving v1 but live symlink is now v2 — respawning onto the new build
2026/12/02 17:17:34 activator: worker bot.x.internal respawned (converging onto a new build), now running v2
2026/12/02 17:17:34 activator: bot.x.internal hibernated
2026/12/02 17:17:34 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:34 activator: swap.example.com: v2 not started: its build state could not be written: bucket refused the build state
2026/12/02 17:17:34 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:34 activator: swap.example.com: size xlarge: instance control /size: 502: set-property carlos-instances-swap.example.com.slice: failed (retried next sweep)
2026/12/02 17:17:34 activator: early.example.com: the aborted start's unit is not proven stopped (context canceled); keeping the lease until it is
2026/12/02 17:17:34 activator: shutdown: out of time with 1 failed wake(s) not proven stopped, their leases still held: early.example.com (generation 964)
2026/12/02 17:17:34 activator: early.example.com: wake failed: start early.example.com: early.example.com: start unit: root did not answer
2026/12/02 17:17:34 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:34 activator: swap.example.com: size xlarge: instance control /size: 502: set-property carlos-instances-swap.example.com.slice: failed (retried next sweep)
2026/12/02 17:17:34 activator: swap.example.com: size xlarge: the slice reads back cpu quota 100%, cpu weight 100, io weight 100 (retried next sweep)
2026/12/02 17:17:34 activator: swap.example.com: size xlarge: the slice reads back cpu quota 100%, cpu weight 100, io weight 100 (retried next sweep)
2026/12/02 17:17:34 activator: swap.example.com: size xlarge: cpu and io applied live; memory changes at the next start
2026/12/02 17:17:34 activator: swap.example.com: size xlarge: cpu and io applied live; memory changes at the next start
2026/12/02 17:17:34 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:17:34 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:17:34 activator: x.example hibernated
2026/12/02 17:17:34 activator: worker.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:34 activator: c.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:34 activator: c.example.com hibernated
2026/12/02 17:17:34 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:34 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:34 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:34 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:34 activator: worker bot.x.internal exited — restarting (backoff now 2s)
2026/12/02 17:17:34 activator: bot.x.internal hibernated
2026/12/02 17:17:35 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:17:35 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:17:35 activator: x.example hibernated
2026/12/02 17:17:35 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:35 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:35 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:35 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:35 activator: always-on sidecar bot.x.internal hit its max_run of 30s — recycling its child
2026/12/02 17:17:35 activator: bot.x.internal hibernated
2026/12/02 17:17:35 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:17:35 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:35 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:35 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:17:35 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/12/02 17:17:35 activator: worker bot.x.internal serving v1 but live symlink is now v2 — respawning onto the new build
2026/12/02 17:17:35 activator: bot.x.internal hibernated
2026/12/02 17:17:35 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:35 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:17:35 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:35 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:17:35 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:35 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:17:35 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:35 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:17:35 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/12/02 17:17:36 activator: x.example recovery probe healthy; held until the source opens
2026/12/02 17:17:36 activator: x.example recovery probe healthy; held until the source opens
FAIL
FAIL	github.com/carlosframework/platform/internal/activator	167.059s
FAIL
=== root@0 (116 s, from +177 s)
ok  	github.com/carlosframework/platform	105.677s
=== root@1 (117 s, from +177 s)
ok  	github.com/carlosframework/platform	106.948s
=== root@2 (144 s, from +177 s)
ok  	github.com/carlosframework/platform	133.437s
=== root@3 (114 s, from +177 s)
ok  	github.com/carlosframework/platform	105.931s
=== root@4 (103 s, from +177 s)
ok  	github.com/carlosframework/platform	94.210s
=== internal_edge@0 (247 s, from +183 s)
ok  	github.com/carlosframework/platform/internal/edge	237.313s
=== internal_edge@1 (131 s, from +183 s)
ok  	github.com/carlosframework/platform/internal/edge	121.440s
=== internal_edge@2 (169 s, from +183 s)
ok  	github.com/carlosframework/platform/internal/edge	158.150s
=== internal_edge@3 (157 s, from +183 s)
ok  	github.com/carlosframework/platform/internal/edge	148.657s
=== internal_host@0 (173 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	168.021s
=== internal_host@1 (204 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	199.201s
=== internal_host@2 (231 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	225.938s
=== internal_host@3 (170 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	164.197s
=== internal_host@4 (302 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	297.276s
=== internal_host@5 (110 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	104.618s
=== internal_console@0 (166 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	158.787s
=== internal_console@1 (211 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	203.666s
=== internal_console@2 (216 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	207.734s
=== internal_console@3 (264 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	257.149s
=== internal_console@4 (203 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	195.475s
=== internal_console@5 (247 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	238.836s
=== internal_console@6 (262 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	253.409s
=== internal_console@7 (221 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	214.383s
=== internal_console@8 (235 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	228.243s
=== internal_console@9 (266 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	258.644s
=== internal_console@10 (240 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	232.458s
=== internal_console@11 (244 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	236.773s
=== internal_console@12 (359 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	352.342s
=== internal_console@13 (243 s, from +232 s)
ok  	github.com/carlosframework/platform/internal/console	237.079s
=== internal_console@14 (217 s, from +232 s)
ok  	github.com/carlosframework/platform/internal/console	210.044s
=== internal_console@15 (234 s, from +232 s)
ok  	github.com/carlosframework/platform/internal/console	227.120s
=== internal_console@16 (223 s, from +232 s)
ok  	github.com/carlosframework/platform/internal/console	215.681s
=== internal_console@17 (254 s, from +232 s)
ok  	github.com/carlosframework/platform/internal/console	247.045s
=== internal_console@18 (238 s, from +232 s)
ok  	github.com/carlosframework/platform/internal/console	230.998s
=== internal_console@19 (251 s, from +232 s)
ok  	github.com/carlosframework/platform/internal/console	241.903s
=== internal_console@20 (232 s, from +232 s)
ok  	github.com/carlosframework/platform/internal/console	223.222s
=== internal_console@21 (243 s, from +232 s)
ok  	github.com/carlosframework/platform/internal/console	234.187s
=== internal_console@22 (254 s, from +232 s)
ok  	github.com/carlosframework/platform/internal/console	247.089s
=== internal_console@23 (252 s, from +232 s)
ok  	github.com/carlosframework/platform/internal/console	245.502s
=== lists: internal_console 230 s, internal_edge 182 s, internal_activator 146 s, internal_host 222 s, root 175 s, internal_grouproll 75 s
=== cpu: the gate used 13341 cpu-seconds in 590 s, about 22.6 of 32 cores; the machine as a whole was 75% busy

Failure summary:
--- internal_activator@3
--- FAIL: TestPoolWithdrawalFreshProcess (8.92s)
    --- FAIL: TestPoolWithdrawalFreshProcess/own-clean-store-unopened (0.15s)
        poolwithdrawal_restart_test.go:76: fresh process: exit status 1
            --- FAIL: TestPoolWithdrawalFreshProcess (0.10s)
                poolwithdrawal_restart_test.go:246: unopened store must keep release pending: ha_pool_withdrawal_pending code=stop
FAIL	github.com/carlosframework/platform/internal/activator	167.059s

FAILED: internal_activator@3
make: *** [Makefile:23: test] Error 1
=== opentofu ===
opentofu: 40 test files in 11 suites, OpenTofu v1.13.9
  initialised in 15 s
  ok      19 s  infra/modules/box-fence-writer/tests/writer.tftest.hcl  Success! 1 passed, 0 failed.
  ok      19 s  infra/modules/deployment-buckets/tests/console_floors.tftest.hcl  Success! 1 passed, 0 failed.
  ok      28 s  infra/modules/deployment-buckets/tests/data_lifecycle.tftest.hcl  Success! 3 passed, 0 failed.
  ok      19 s  infra/modules/deployment-buckets/tests/db_reads.tftest.hcl  Success! 1 passed, 0 failed.
  ok      18 s  infra/modules/deployment-buckets/tests/evidence.tftest.hcl  Success! 1 passed, 0 failed.
  ok      29 s  infra/modules/deployment-buckets/tests/fence_writers.tftest.hcl  Success! 3 passed, 0 failed.
  ok      22 s  infra/modules/deployment-buckets/tests/media_results.tftest.hcl  Success! 2 passed, 0 failed.
  ok      27 s  infra/modules/deployment-buckets/tests/published_floors.tftest.hcl  Success! 3 passed, 0 failed.
  ok      83 s  infra/modules/media-engine/tests/media_engine.tftest.hcl  Success! 24 passed, 0 failed.
  ok      25 s  infra/modules/pdf-host/tests/computed.tftest.hcl  Success! 2 passed, 0 failed.
  ok      58 s  infra/modules/pdf-host/tests/pdf_host.tftest.hcl  Success! 24 passed, 0 failed.
  ok      45 s  infra/modules/region-group-operator-document/tests/document.tftest.hcl  Success! 12 passed, 0 failed.
  ok      20 s  infra/modules/region-host/ingress/tests/fixed-targets/tests/targets.tftest.hcl  Success! 2 passed, 0 failed.
  ok      69 s  infra/modules/region-host/ingress/tests/group_ingress.tftest.hcl  Success! 30 passed, 0 failed.
  ok      47 s  infra/modules/region-host/tests/alert_publish.tftest.hcl  Success! 18 passed, 0 failed.
  ok      45 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      11 s  infra/modules/region-host/tests/group_iam.tftest.hcl  Success! 4 passed, 0 failed.
  ok       6 s  infra/modules/region-host/tests/group_isolation.tftest.hcl  Success! 1 passed, 0 failed.
  ok      36 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      31 s  infra/modules/region-host/tests/health_alarms.tftest.hcl  Success! 10 passed, 0 failed.
  ok      16 s  infra/modules/region-host/tests/ingress_drain_read.tftest.hcl  Success! 4 passed, 0 failed.
  ok       8 s  infra/modules/region-host/tests/instance_metadata.tftest.hcl  Success! 1 passed, 0 failed.
  ok      23 s  infra/modules/region-host/tests/mailer.tftest.hcl  Success! 6 passed, 0 failed.
  ok      12 s  infra/modules/region-host/tests/mailer_group.tftest.hcl  Success! 2 passed, 0 failed.
  ok      10 s  infra/modules/region-host/tests/managed_fleets/group_refusal.tftest.hcl  Success! 2 passed, 0 failed.
  ok     104 s  infra/modules/region-host/tests/managed_fleets/managed_fleets.tftest.hcl  Success! 46 passed, 0 failed.
  ok      69 s  infra/modules/region-host/tests/store_conversion.tftest.hcl  Success! 27 passed, 0 failed.
  ok      15 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      14 s  infra/modules/region-host/tests/store_write_credentials.tftest.hcl  Success! 4 passed, 0 failed.
  ok      18 s  infra/modules/region-host/tests/user_data_ignored.tftest.hcl  Success! 3 passed, 0 failed.
  ok      13 s  infra/modules/region-remote-host/tests/data_lifecycle.tftest.hcl  Success! 3 passed, 0 failed.
  ok      13 s  infra/modules/region-remote-host/tests/no_deployment_bucket.tftest.hcl  Success! 5 passed, 0 failed.
  ok      28 s  infra/modules/scanner-host/tests/scanner_host.tftest.hcl  Success! 14 passed, 0 failed.
opentofu: 40 files in 215 s
opentofu: PASS

amadan: step gate failed: exit status 2

amadan: job failed at step gate — its output is above, not at the tail of this log
diff --git a/cmd/console/main.go b/cmd/console/main.go
index 39a7c5437..73865fc1d 100644
--- a/cmd/console/main.go
+++ b/cmd/console/main.go
@@ -1251,7 +1251,7 @@ func storeBackend(rec *perf.Recorder) (objstore.Provisioner, objstore.Deployment
log.Fatal("console: CARLOS_STORE_BACKEND is set — also set CARLOS_STORE_USER_BOUNDARY (the permissions-boundary policy ARN store users are created under; infra/modules/region-host outputs it as store_user_boundary_arn)")
}
endpoint := strings.TrimSpace(os.Getenv("CARLOS_STORE_ENDPOINT"))
- p, err := objstore.NewAWSProvisionerWith(context.Background(), region, endpoint, boundary, console.TimeS3HTTP(rec))
+ p, err := objstore.NewAWSProvisionerTimed(context.Background(), region, endpoint, boundary, console.TimeS3HTTP(rec), console.TimeIAMHTTP(rec))
if err != nil {
log.Fatal(err)
}
diff --git a/docs/superpowers/notes/census-proposal-private-store-scan-1653.md b/docs/superpowers/notes/census-proposal-private-store-scan-1653.md
new file mode 100644
index 000000000..2ef3dd4be
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-private-store-scan-1653.md
@@ -0,0 +1,11 @@
+# Census approval: private-store-scan-1653
+
+Ruling `census-ruling-private-store-scan-1653`. The independent reviewer approves or rejects every change below, 0 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+Envelopes re-pinned: `internal/hostops`, `internal/objstore`, `internal/release`.
+
+Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
+
+Seal: `ce9536904e10de3f5e5c582061f130f870515ae0999de2946658ea49e4a17bf8` → `ce9536904e10de3f5e5c582061f130f870515ae0999de2946658ea49e4a17bf8`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-private-store-scan-1653.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/docs/superpowers/specs/2026-12-02-async-private-store-design.md b/docs/superpowers/specs/2026-12-02-async-private-store-design.md
new file mode 100644
index 000000000..c9c0774df
--- /dev/null
+++ b/docs/superpowers/specs/2026-12-02-async-private-store-design.md
@@ -0,0 +1,348 @@
+# A faster create for apps with private storage (#1653, item 1)
+
+**Date:** 2026-12-02 · **Status:** revision 3; Step 0 and A-minimal
+approved in round 2 of 3 subject to its two P2s, applied here; B and A2
+not approved for implementation ·
+**Branch:** `design-async-private-store-1653` from `origin/main`
+`b66d2b765` · **Author:** Claude Opus 5.5, for Paul. Nothing here is built.
+
+**Review history (stopping rules apply).**
+- Round 1: Astra on revision 1 (`efcd89fb9`), **REJECT** as the basis for
+ option A: 5 P1, 4 P2, 1 P3 (`~/.cache/fast-provisioning-2/design-review.md`;
+ §6 answers each). Revision 1's option A moved the key reap ahead of the
+ health short-circuit, and its option B left five P1s open.
+- Revision 2 narrows the design to what is safe and measurable now:
+ **Step 0** (measure), **A-minimal** (the read-only name scan made
+ concurrent; the write walk untouched), **A2** (a claims backfill that
+ removes the scan), and **B deferred** with its open problems listed and
+ no design.
+- Round 2: Astra on revision 2 (`17cb73869`), **APPROVED** Step 0 and
+ A-minimal subject to two P2s (strict-inventory GETs; counts on early
+ exits); B and A2 not approved for implementation. Revision 3 applies
+ both P2s without reopening the review (§6). Round 2 had no P1, so the
+ review stops here (stopping rule 1).
+
+**Builds on (all merged):** `2026-09-22-instance-private-storage-design.md`
+("the private-storage spec"; §7 is the store-before-record order, which
+this revision keeps), and the name claims of #218 (`internal/objstore/nameclaim.go`).
+
+**Stopping rule 5.** Who asks: Paul, discussion #1653, for `patrix-sites`
+hosted sign-up (about 34 s to first page on the flagship, 12.6 s of it in
+the create). What a user gets: Step 0 shows where the 12.6 s goes;
+A-minimal makes the create faster by however much the scan costs. Neither
+has a switch: each is live with the release that carries it.
+
+Line citations are to `b66d2b765`.
+
+## 1. What is known, and what is not
+
+### 1.1 The path
+
+`handleAPIInstanceCreate` (`internal/console/apiinstances.go:1585-2826`)
+makes the store before it writes the record (comment at `:2440-2456`;
+private-storage spec §7). On a first grant, in order:
+
+| # | Phase | Where | Requests |
+|---|---|---|---|
+| 1 | Store ceiling | `apiinstances.go:2458-2463` | the app's store listing (pages) |
+| 2 | Account lock, held to the end of the handler | `:2512` | none |
+| 3 | Preflight: approval, scan rule, seal key | `instanceprivatestore.go:220`, `:413-435` | 1 GET, a registry read |
+| 4 | Walk lock; approval again; prefix; store record | `:228-250` | 4 GET |
+| 5 | Versioning choice, declare | `:318`, `:324` | 1 GET, 1 PUT |
+| 6 | Walk (`GrantInFor`, `walk.go:1077`): record read | `walk.go:243` | 1 GET |
+| 7 | Name claims (`claimStoreNames`, `nameclaim.go:243`): colliders, **the scan** (§1.2), claim reads and create-only PUTs | `walk.go:297` | 1 GET per hyphen split; the scan; 6 |
+| 8 | Grant block | `walk.go:311` | 1 PUT |
+| 9 | CreateUser, PutUserPolicy | `walk.go:336` | 2 IAM |
+| 10 | `GrantHealthy` short-circuit (no read on a first grant) | `walk.go:366` | none |
+| 11 | CreateBucket; versioning if asked | `walk.go:372`, `:380` | 1-4 S3 |
+| 12 | ListAccessKeys (reap), CreateAccessKey | `walk.go:394`, `:397` | 2+ IAM |
+| 13 | Seal and deliver (`writeEnv`) | `walk.go:402` | 4 |
+| 14 | `Provisioned` | `walk.go:415` | 1 PUT |
+| 15 | Record write, serial bump, 201 | `apiinstances.go:2741`, `:2814`, `:2825` | the plain create's |
+
+Nothing in the code records how long each phase takes. Revision 1
+estimated that the scan was most of the 12.6 s; that is a hypothesis
+until Step 0 measures it (finding 7).
+
+### 1.2 The scan, counted correctly
+
+`storeNamingBucket` (`nameclaim.go:197-237`) runs on every first grant. It
+looks for an unclaimed store record anywhere in the deployment naming the
+same bucket (#191: an adopt from before claims, shaped like another
+account's minted name). Sequentially, it:
+
+- lists `apps/` with a delimiter (`ListDirs`, paginated at 1,000 prefixes
+ a page, `release/store.go:1378`);
+- for each valid account, lists that account's app prefixes (paginated);
+- for each valid app, lists its stores (`StoreEnvironments`; a paginated
+ `List`, or `StrictStoreEnvironments` on a claim console);
+- for each app, **GETs the app-level store record whether or not it
+ exists** (`nameclaim.go:216`, `append([]string{""}, envs...)`), then
+ GETs each environment store record.
+
+So, on a console whose store is not claim-enabled, the request count is
+about `1 + A + 2P + S` with one page per listing, plus one more request
+for every further page (A accounts, P apps, S environment stores), and
+P of the GETs are mostly 404s.
+
+On a claim-enabled console the store implements `AppMutationRunner`, so
+`StoreEnvironments` is `StrictStoreEnvironments` (`objstore.go:429-463`).
+It checks every listed key and GETs every listed record to validate it
+(`StrictGetIn`, `:453`); the scan then GETs the same records again
+(`nameclaim.go:220`). So the strict count is about `1 + A + 2P + 2S`.
+The strict listing also fails, with `ErrStoreInventory`, on a malformed
+key (no request) or on a listed record that is absent, and that ends the
+scan as any error does.
+
+Every request waits for the one before it. The sequential scan stops at
+its first match (`ErrStoreNameTaken`) or first error
+(`nameclaim.go:225`), so on those outcomes it makes fewer requests than
+the formula. Any error fails the grant (fail closed).
+
+### 1.3 The account lock
+
+The create holds the account lock from `:2512` to the end of the handler,
+store walk included. It is there for fleet key replacement, which checks
+creates' records under that lock even with plans off, and, with plans on,
+for the running-things count and the record write (comment at
+`:2509-2511`). So two creates in one account on one console run one after
+the other. How long the second waits has not been measured (finding 10).
+
+## 2. Step 0: measure (ships first, on its own)
+
+### 2.1 What it records
+
+One trace per private-storage create, carried on the request's context
+(`objstore.WithTrace(ctx, *Trace)`), safe for concurrent use. It records
+durations and counts at the walk's own step boundaries, in the console
+door and in `claimRawGrantIn`. It does **not** wrap the provisioner or the
+store: callers type-assert both (`versionerFor`, `AppMutationRunner`), and
+a wrapper would change those answers (`perfs3.go` says why).
+
+- **Ceiling:** duration, list pages.
+- **Locks:** wait for the account lock, wait for the walk lock.
+- **Preflight and declare:** duration of each read and the PUT.
+- **Scan:** total duration; list pages at each level (`apps/`, accounts,
+ store listings); the scan's own GETs attempted, found, absent; on a
+ strict store, the validation GETs `StrictStoreEnvironments` makes
+ (attempted, found, absent) and its validation failures (malformed key,
+ listed record absent); the counts A, P, S; the outcome (no match,
+ match, error).
+- **Claims:** colliders' GETs, claim GETs and PUTs.
+- **Backend:** each call by name and duration: CreateUser, PutUserPolicy,
+ CreateBucket, lifecycle read and write, PutBucketVersioning,
+ ListAccessKeys (pages), CreateAccessKey. The IAM client gets an `iam`
+ span through the same `perf.TimeDoer` the S3 clients use, so the
+ existing speed table counts IAM too.
+- **Deliver, `Provisioned`, record write, serial bump:** duration each.
+- **Outcome:** ok, or the error class (never the error text, which can
+ carry ARNs and request ids).
+
+At the end, success or failure, the console logs one line:
+`console: instance store timing <acct>/<app>/<env>: total=… lockwait=… ceiling=… preflight=… scan=…(pages a/b/c, gets n/found/absent) claims=… createuser=… putpolicy=… bucket=… versioning=… reap=… mint=… deliver=… record=… outcome=ok`.
+It names no bucket, ARN or key id. The same phases are added to the
+request's perf sample as named spans, so the over-budget warning the
+console already logs (`perf/perf.go:314`, with `spans_ms` and `calls`)
+carries them.
+
+### 2.2 How to read it on the flagship
+
+1. **Before any code:** the flagship console has probably already logged
+ an over-budget warning for #1653's create (2026-12-01 about 23:24:28Z,
+ `POST` on the instances route; one warning per route per minute). Its
+ `calls.s3` and `spans_ms.s3` give the S3 request count and total S3
+ time for that create. A count in the hundreds supports the scan
+ hypothesis; it does not split the time.
+2. **After Step 0 ships:** one throwaway `patrix-sites` create, as #1653's
+ `relcheck` was, then its timing line read from the console's log by
+ host. The create makes a real IAM user and bucket in the production
+ account, so it needs Paul's scoped approval (AGENTS.md, production
+ infrastructure), with its cleanup: `carlos instances delete` and
+ `carlos store destroy --environment <label>` (§7, question 1).
+3. If the flagship console's log can be read only through an SSM
+ session, that is a gap under the "operate via API and CLI" rule; §7,
+ question 3 asks whether Step 0 should also keep the last few timings
+ on an operator page.
+
+Census: `internal/objstore` is in the root binary (`go list -deps .`), so
+Step 0 needs a census card. It adds no read and changes no decision; it
+only counts and times.
+
+## 3. A-minimal: the name scan, concurrent
+
+**Only `storeNamingBucket` changes.** `GrantInFor` and everything it calls
+(the grant block, IAM user and policy, the health short-circuit, bucket,
+versioning, reap, mint, delivery) stays exactly as it is, in the same
+order, sequential. That is what finding 1 requires: no destructive call
+moves, and a healthy re-grant still returns at `walk.go:366` before any
+reap.
+
+The scan becomes a bounded walk of the same tree:
+
+- **The same requests, on a complete scan.** Each listing page,
+ validation GET, app-level GET and environment GET is a request the
+ sequential scan makes. On a scan that finds no match and meets no error
+ over a tree that does not change while it runs, no request is added or
+ skipped, so Step 0's counts are identical and only the wall time
+ changes. On a match or an error they can differ: the sequential scan
+ stops at the first one (`nameclaim.go:225`), while concurrent work may
+ already have issued requests past that point, or not yet issued ones
+ the sequential order would have made first. The number and order of
+ requests may change then; the verdict may not (below).
+- **Concurrent by level.** Accounts are listed in parallel once `apps/`
+ is listed; each app's store listing and its record GETs start as soon as
+ its account's listing returns. A listing's later pages follow its
+ earlier ones (S3 continuation tokens are sequential).
+- **Bounded globally.** One console-wide semaphore (32 in flight) is
+ shared by every scan, so ten creates at once still put at most 32 scan
+ requests in flight, not 320.
+- **Fail closed.** The first error cancels the rest, waits for every
+ goroutine, and returns that error; the grant fails as it does today. A
+ scan never answers "not taken" unless every listing and every GET
+ succeeded.
+- **Same verdict, never a false "not taken".** Any record naming the
+ bucket refuses with `ErrStoreNameTaken`, whichever goroutine finds it.
+ An error refuses too (with a match and an error both found, either
+ refusal will do: both fail the grant). "Not taken" is answered only
+ after every listing page and every GET has succeeded and none matched.
+
+**What it saves.** With R requests at latency L, the scan takes about
+`R × L` today, and about `max(D × L, R × L / 32)` after, where D is the
+longest chain of dependent requests (about four levels plus any extra
+pages). Step 0 supplies R, L and the scan's share of the 12.6 s. Only
+then can the saving be stated as a number. For illustration only: if
+Step 0 showed 700 requests at 15 ms (10.5 s), the scan would drop to
+about 0.35 s. If Step 0 shows the scan is small, A-minimal is not worth
+building, and this section says so in its next revision.
+
+Census: a reordering of existing reads in root-binary code; a card, and
+the reviewer decides.
+
+## 4. A2: skip the scan with a claims backfill
+
+The scan exists only because stores granted before #218 hold no name
+claims. A one-time pass would claim every granted store's bucket and IAM
+user. It writes `objstore/name-claims/complete.json` only when it
+finishes with no conflict, and reports any conflict instead. With the
+marker present, a first grant skips the scan, because every grant since
+#218 takes its claims before any backend call, so the create-only claim
+PUT is again the whole uniqueness check. That removes the O(deployment)
+cost altogether, A-minimal's bounded version included. The pass writes a
+record per store in a production bucket once, so it waits for Paul
+(§7, question 2). It needs its own design before it is built: how it
+proves completeness, and what a conflict blocks.
+
+## 5. B is deferred
+
+Writing the record first and making the store in the background
+(revision 1's option B) is not designed here. Round 1 showed it needs
+answers to six problems first. Each is a finding, and each is open:
+
+1. **A commit protocol** for the record and its pending index, so that a
+ crash at any write boundary (index, record, serial bump, the sibling
+ re-check's rollback) leaves work the sweep finds (finding 2).
+2. **A release bound to this store's delivered bundle and generation**,
+ region and endpoint included, rendered without racing config sync
+ (`host/agent.go:2014`), verified in the installed file before an
+ ownership-checked release (finding 3).
+3. **One lock order** across every door: the store provision door takes
+ the account lock, then the walk lock (`console/apistore_provision.go:37-40`),
+ while keeping the seal-key-to-delivery protection (finding 4).
+4. **A durable, store-scoped lease** that every operation able to reap or
+ mint for a store honours (create, store doors, credential rotation,
+ delete and re-create, other instances naming the environment), with
+ stated clock-skew and in-flight-call fencing (finding 5).
+5. **Ceiling admission across consoles** (today the ceiling is checked
+ at `apiinstances.go:2459`, before the account lock at `:2512`), and a
+ **rollout barrier** that verifies every console writer and every box
+ before the switch (finding 8).
+6. **The hold path itself**: today's held mint calls ConfigGate
+ (`provision/reconcile.go:2849`); install and config sync under a hold;
+ hold ownership against moves; release under the host lock; retry
+ scheduling and durable attempts; and an observable readiness check for
+ a new key rather than a fixed delay (finding 9).
+
+B is reconsidered only after A-minimal's numbers are in, if #1653's 5-8 s
+target still needs the store's time hidden.
+
+## 6. Round 1 findings
+
+Each finding names the invariant it is against (stopping rule 2).
+
+| # | Sev | Finding (invariant) | Disposition |
+|---|---|---|---|
+| 1 | P1 | Option A's lanes reap before the health short-circuit and can delete a live key (a delivered key is never reaped) | **Fixed.** The lanes are cut. The write walk is unchanged (§3), and a guard test pins that a healthy re-grant never reaps or mints (§8). |
+| 2 | P1 | B's index and record have no commit protocol (pending work is never lost) | **Deferred with B**, §5 item 1. |
+| 3 | P1 | B's release checks names, not this store's bundle (a ready route runs with this store's credentials) | **Deferred with B**, §5 item 2. |
+| 4 | P1 | B reverses the account-then-walk lock order (one lock order) | **Deferred with B**, §5 item 3. Confirmed at `apistore_provision.go:37-40`. |
+| 5 | P1 | B's lease is per record, not per store (one walk per store) | **Deferred with B**, §5 item 4. |
+| 6 | P2 | The scan's request model undercounts (measurement) | **Fixed**, §1.2: app-level GETs for every app, paginated listings. A-minimal keeps every request and fails closed (§3). |
+| 7 | P2 | The 9-10 s attribution and 2-4 s prediction are unmeasured (measurement) | **Fixed.** Step 0 comes first, and no saving is claimed until it has measured (§2, §3). |
+| 8 | P2 | B's ceiling and rollout barriers (admission) | **Deferred with B**, §5 item 5. |
+| 9 | P2 | B's hold path calls ConfigGate; a fixed IAM delay proves nothing (a ready route runs with working credentials) | **Deferred with B**, §5 item 6. Confirmed at `reconcile.go:2849`. |
+| 10 | P3 | The account lock's description is incomplete (documentation) | **Fixed**, §1.3: fleet key replacement named; "about 25 s" removed. |
+
+None is disputed.
+
+**Round 2** (Astra on `17cb73869`): Step 0 and A-minimal **approved**,
+subject to two P2s, both fixed in revision 3; B and A2 not approved for
+implementation. P2 (measurement): the model omitted
+`StrictStoreEnvironments`' validation GETs (`objstore.go:453`) before the
+scan's own (`nameclaim.go:220`): **fixed**, §1.2, with Step 0 counting
+both and the validation failures (§2.1). P2 (fail closed): "no request is
+added or skipped" cannot hold when a match or error ends the scan early
+(`nameclaim.go:225`): **fixed**, §3 now limits identical counts to a
+stable, complete, no-match scan and keeps only the verdict invariant on
+early exits, with tests for a concurrent match and a concurrent error
+(§8).
+
+## 7. Questions for Paul
+
+1. Step 0's measuring create on the flagship makes one IAM user and one
+ bucket in the production account, then deletes the instance and
+ destroys the store. Approve that scope?
+2. A2's backfill: write one name claim per existing store in the
+ production bucket, once, after its own design? Go or no go?
+3. Step 0's timings: log only, or also the last few on an operator page
+ (which then needs the UX pass)?
+4. After A-minimal's numbers: is the create then fast enough, or should
+ B be designed against §5?
+
+## 8. Test plan
+
+**Step 0.**
+- With a trace on the context, a private create's line names every
+ phase. The scan's page and GET counts equal the requests the S3 fake
+ saw under those prefixes (`perflatency_test.go`'s counter).
+- A failed walk logs its line too, with an error class and no ARN,
+ bucket name or key id.
+- With no trace, nothing changes: the existing grant and name-claim
+ tests stay green unmodified.
+
+**A-minimal.**
+- The same verdict as the sequential scan over fixtures with a match in
+ another account, a #191-shaped adopt, a match on an app-level store, a
+ match on a later page (over 1,000 keys in the S3 fake), and no match.
+- Fail closed: an error injected at each level (`apps/` listing, an
+ account listing, a store listing, an app-level GET, an environment GET)
+ returns that error, never "not taken".
+- The global bound: a probe store counts requests in flight across
+ several concurrent scans and never sees more than 32.
+- Every goroutine has returned when the scan returns, on success, match
+ and error.
+- A concurrent match: a match found while other goroutines are mid-
+ request refuses with `ErrStoreNameTaken`, cancels and waits for the
+ rest, and never answers "not taken"; likewise a match and an error
+ found together. A concurrent error: an error while other goroutines are
+ mid-request (including a strict validation failure, a malformed key or
+ an absent listed record) returns an error, never "not taken". Each runs
+ many times under `-race` with randomized fake latency.
+- Strict stores: on a claim-enabled fixture the scan's validation and
+ record GETs are both counted, and the count matches `1 + A + 2P + 2S`
+ on a one-page tree.
+- `TestPerfWriteRoutesMeetTheBudget` gains a private create on a stable
+ tree with no match: its request count is identical before and after
+ A-minimal, and its median drops.
+- A guard for the untouched walk (finding 1): a healthy re-grant through
+ `GrantInFor` makes no `ReapKeys` and no `MintKey` call (MemProvisioner
+ records calls), and the delivered key still works.
diff --git a/internal/console/apiinstances.go b/internal/console/apiinstances.go
index 77b91dae1..5a1c057d6 100644
--- a/internal/console/apiinstances.go
+++ b/internal/console/apiinstances.go
@@ -1583,6 +1583,8 @@ func checkReplicaCreate(req replicaFields, rec *provision.Record) *doorRefusal {
// governs (pool, and the channel default) is stamped from the MANIFEST, not
// from the request: the body below has no pool field to lie in at all.
func (s *Server) handleAPIInstanceCreate(w http.ResponseWriter, r *http.Request) {
+ r, logStoreTiming := s.traceInstanceCreate(r) // #1653 Step 0: logs only a private-storage create
+ defer logStoreTiming()
principal, acct, app, ok := s.instanceGate(w, r)
if !ok {
return
@@ -2456,11 +2458,9 @@ func (s *Server) handleAPIInstanceCreate(w http.ResponseWriter, r *http.Request)
// So: no instance record is ever created under this policy without its
// store already provisioned and delivered.
privateBucket := ""
- if m.PrivateStorage {
- if ref := s.storeCeiling(ctx, acct, app, rec.Environment); ref != nil {
- jsonError(w, ref.Status, ref.Msg)
- return
- }
+ if ref := s.privateStoreCeiling(ctx, m, acct, app, rec.Environment); ref != nil {
+ jsonError(w, ref.Status, ref.Msg)
+ return
}
// Capacity must not hide a duplicate outside the leftover rail's scope.
if s.haCreate(region, rec.Pool) && !s.leftoverCheckApplies(region, rec.Pool) && !(s.shouldStampHA(rec) && !seeded && rec.DerivesPaths()) {
@@ -2509,7 +2509,7 @@ func (s *Server) handleAPIInstanceCreate(w http.ResponseWriter, r *http.Request)
// Plain, seeded and imported creates hold the account lock even without
// plans: fleet key replacement checks their records under the same lock.
// With plans on, the running-things count and write also share this hold.
- defer s.lockAccount(acct.Sqid)()
+ defer s.lockAccountTimed(ctx, acct.Sqid)()
if err := s.checkRunningThings(r.Context(), acct, 1); err != nil {
if isPlanCap(err) {
writeJSON(w, http.StatusConflict, map[string]any{"error": err.Error(), "code": "cap"})
@@ -2811,7 +2811,7 @@ func (s *Server) handleAPIInstanceCreate(w http.ResponseWriter, r *http.Request)
// The record is what a box's reconcile leg mints a route from, so this is
// a box-consumed write (carlos-deploy §3): announce it, and the instance
// is serving seconds after signup instead of on the hour.
- s.bumpSerial(ctx)
+ s.bumpCreateSerial(ctx)
out := s.publicRecordView(ctx, rec)
out.PrivateStoreBucket = privateBucket
out.RegionFrom = regionFrom
diff --git a/internal/console/claim_authority_census_test.go b/internal/console/claim_authority_census_test.go
index 6d0d9316d..b3b738ae7 100644
--- a/internal/console/claim_authority_census_test.go
+++ b/internal/console/claim_authority_census_test.go
@@ -47,7 +47,7 @@ func claimAuthoritySites(t *testing.T) []string {
"NewDirStore": true, "Open": true, "OpenDB": true,
"NewConditionalRecordStore": true, "NewVersionedBoundary": true, "NewFromConfig": true, "S3ClientFor": true, "NewControlWriter": true, "NewRestoreControl": true, "NewMutationBoundary": true,
"NewObservedMutationBoundary": true, "NewProductionMutationCheck": true,
- "NewS3Store": true, "NewS3StoreIn": true, "NewDeploymentS3Store": true, "NewDeploymentS3StoreIn": true, "NewVersionedS3": true, "NewAWSProvisioner": true, "NewAWSProvisionerWith": true,
+ "NewS3Store": true, "NewS3StoreIn": true, "NewDeploymentS3Store": true, "NewDeploymentS3StoreIn": true, "NewVersionedS3": true, "NewAWSProvisioner": true, "NewAWSProvisionerWith": true, "NewAWSProvisionerTimed": true,
"NewClamAVScanner": true, "NewRoute53Writer": true, "BeginExclusive": true,
"ResumeExclusive": true, "RegisterStart": true, "FinishWakeRetryReset": true, "ReservePurge": true,
"ConsoleMove": true, "InspectMoveLoss": true, "DeclareMoveLoss": true,
diff --git a/internal/console/claim_invariant_test.go b/internal/console/claim_invariant_test.go
index 2297f788f..ff810e20b 100644
--- a/internal/console/claim_invariant_test.go
+++ b/internal/console/claim_invariant_test.go
@@ -775,7 +775,10 @@ func claimWriterInventory(s *Server) map[string]bool {
inv[prefix+name] = true
}
}
- methods("bucket/", s.cfg.Releases, "Get", "List", "ListDirs", "Open", "ListMod", "ListSizes", "ListPage", "BucketShapedListDirs", "GetIfChanged", "ListETags")
+ // ListWithCount and ListDirsWithCount are List and ListDirs with their
+ // request counts, forwarded to the store underneath (#1653): reads.
+ methods("bucket/", s.cfg.Releases, "Get", "List", "ListDirs", "Open", "ListMod", "ListSizes", "ListPage", "BucketShapedListDirs", "GetIfChanged", "ListETags",
+ "ListWithCount", "ListDirsWithCount")
methods("versioned/", s.cfg.DBVersions, "ListVersions", "OpenVersion", "GetVersion", "OpenVersionRange")
for _, b := range []struct {
surface string
diff --git a/internal/console/claim_store_effects.go b/internal/console/claim_store_effects.go
index 981066e7c..3261bb7c3 100644
--- a/internal/console/claim_store_effects.go
+++ b/internal/console/claim_store_effects.go
@@ -111,6 +111,8 @@ var (
_ release.Store = claimEffectStore{}
_ release.ConditionalDeleter = claimEffectStore{}
_ release.Opener = claimEffectStore{}
+ _ release.CountedLister = claimEffectStore{}
+ _ release.CountedDirLister = claimEffectStore{}
)
func (s claimEffectStore) Get(ctx context.Context, key string) ([]byte, string, error) {
@@ -122,6 +124,15 @@ func (s claimEffectStore) List(ctx context.Context, prefix string) ([]string, er
func (s claimEffectStore) ListDirs(ctx context.Context, prefix string) ([]string, error) {
return s.data.ListDirs(ctx, prefix)
}
+
+// ListWithCount and ListDirsWithCount pass the data boundary's page counts
+// through, for a create's timing line (#1653).
+func (s claimEffectStore) ListWithCount(ctx context.Context, prefix string) ([]string, int, error) {
+ return release.ListCounted(ctx, s.data, prefix)
+}
+func (s claimEffectStore) ListDirsWithCount(ctx context.Context, prefix string) ([]string, int, error) {
+ return release.ListDirsCounted(ctx, s.data, prefix)
+}
func (s claimEffectStore) Open(ctx context.Context, key string) (io.ReadCloser, string, error) {
return release.OpenObject(ctx, s.data, key)
}
diff --git a/internal/console/claim_store_effects_counted_test.go b/internal/console/claim_store_effects_counted_test.go
new file mode 100644
index 000000000..723d844f4
--- /dev/null
+++ b/internal/console/claim_store_effects_counted_test.go
@@ -0,0 +1,52 @@
+package console
+
+import (
+ "fmt"
+ "net/http/httptest"
+ "os"
+ "path/filepath"
+ "testing"
+
+ "github.com/aws/aws-sdk-go-v2/aws"
+ "github.com/aws/aws-sdk-go-v2/credentials"
+ awss3 "github.com/aws/aws-sdk-go-v2/service/s3"
+
+ "github.com/carlosframework/platform/internal/release"
+ "github.com/carlosframework/platform/internal/s3fake"
+)
+
+// A claim create's store walk reads through claimEffectStore. It passes
+// the data boundary's page counts through, so a create's timing line counts
+// a listing of more than one S3 page as its pages (#1653 Step 0).
+func TestClaimEffectStoreCountsEveryListPage(t *testing.T) {
+ t.Parallel()
+ root := t.TempDir()
+ ts := httptest.NewServer(s3fake.New(release.NewDirStore(root)))
+ t.Cleanup(ts.Close)
+ data := &release.S3Store{Bucket: "carlos-pages", Client: awss3.New(awss3.Options{
+ Region: "us-east-1",
+ Credentials: credentials.NewStaticCredentialsProvider("x", "y", ""),
+ BaseEndpoint: aws.String(ts.URL),
+ UsePathStyle: true,
+ RequestChecksumCalculation: aws.RequestChecksumCalculationWhenRequired,
+ ResponseChecksumValidation: aws.ResponseChecksumValidationWhenRequired,
+ })}
+ for i := 0; i < 1001; i++ {
+ p := filepath.Join(root, "apps", "acc", fmt.Sprintf("app%04d", i), "stores", "e.json")
+ if err := os.MkdirAll(filepath.Dir(p), 0o755); err != nil {
+ t.Fatal(err)
+ }
+ if err := os.WriteFile(p, []byte("{}"), 0o644); err != nil {
+ t.Fatal(err)
+ }
+ }
+ var s release.Store = claimEffectStore{data: data}
+ keys, pages, err := s.(release.CountedLister).ListWithCount(t.Context(), "apps/acc/")
+ if err != nil || len(keys) != 1001 || pages != 2 {
+ t.Fatalf("listing = %d keys, %d pages, %v; want 1001 on 2 pages", len(keys), pages, err)
+ }
+ dirs, pages, err := s.(release.CountedDirLister).ListDirsWithCount(t.Context(), "apps/acc/")
+ if err != nil || len(dirs) != 1001 || pages != 2 {
+ t.Fatalf("directory listing = %d dirs, %d pages, %v; want 1001 on 2 pages", len(dirs), pages, err)
+ }
+}
diff --git a/internal/console/copiespublication.go b/internal/console/copiespublication.go
index 92fe30bc8..c0434a582 100644
--- a/internal/console/copiespublication.go
+++ b/internal/console/copiespublication.go
@@ -9,6 +9,7 @@ import (
"strconv"
"github.com/carlosframework/platform/internal/appconfig"
+ "github.com/carlosframework/platform/internal/objstore"
"github.com/carlosframework/platform/internal/provision"
"github.com/carlosframework/platform/internal/registry"
"github.com/carlosframework/platform/internal/release"
@@ -425,6 +426,7 @@ func (s *Server) copiesShipManifestGate(acct *Account) release.ManifestGate {
// Re-read the count in a new memo and validate the already-prepared record;
// do not change its registered body while completing the claim.
func (s *Server) finishCopiesClaimCreate(w http.ResponseWriter, q *claimCreateRequest, acct *Account, app string) bool {
+ defer objstore.TraceFrom(q.Context).Step("record")() // a private create's timing (#1653 Step 0)
ctx, cancel := context.WithTimeout(withWriteMemo(q.Context), instanceStoreTimeout)
defer cancel()
ctx, unlock, ref := s.beginCopiesMutation(ctx, acct, app)
diff --git a/internal/console/hostsused.go b/internal/console/hostsused.go
index b53997f75..17b472ff2 100644
--- a/internal/console/hostsused.go
+++ b/internal/console/hostsused.go
@@ -15,6 +15,7 @@ import (
"github.com/carlosframework/platform/internal/alerting"
"github.com/carlosframework/platform/internal/edgesfile"
"github.com/carlosframework/platform/internal/geo"
+ "github.com/carlosframework/platform/internal/objstore"
"github.com/carlosframework/platform/internal/provision"
"github.com/carlosframework/platform/internal/registry"
"github.com/carlosframework/platform/internal/release"
@@ -689,9 +690,13 @@ func recordUse(rec provision.Record) provision.HostUse {
// lifetimes.go), so the regional recheck (#447) and the write are one hold
// against a placements PUT.
func (s *Server) createRecordMarked(ctx context.Context, rec provision.Record) (*provision.Record, error) {
+ trace := objstore.TraceFrom(ctx) // a private create's timing (#1653 Step 0)
+ defer trace.Step("record")()
defer s.lockApp(rec.Account, rec.App)() // record writes hold the app lock (recordlock.go)
defer s.lockHostname(rec.Host)()
- return s.createRecordMarkedLocked(ctx, rec)
+ out, err := s.createRecordMarkedLocked(ctx, rec)
+ trace.Fail("record", err)
+ return out, err
}
// createRecordMarkedLocked shares admission under the app and hostname locks.
diff --git a/internal/console/instanceprivatestore.go b/internal/console/instanceprivatestore.go
index 286f56676..60733d0d1 100644
--- a/internal/console/instanceprivatestore.go
+++ b/internal/console/instanceprivatestore.go
@@ -217,6 +217,7 @@ func (s *Server) instanceStoreProvisionFor(ctx context.Context, w http.ResponseW
// the choice and the grant leaves a value the boxes refuse and
// `instances list` shows, never one sealed to a key outside the
// account. The detached seed copy (runFrom) holds it itself.
+ trace := objstore.TraceFrom(ctx) // #1653 Step 0; nil-safe
sealer, ok := s.instanceStorePreflight(ctx, w, acct, app)
if !ok {
return nil, false, nil
@@ -225,7 +226,7 @@ func (s *Server) instanceStoreProvisionFor(ctx context.Context, w http.ResponseW
// The same lock handleAPIStoreProvision takes, keyed the same way, so a
// signup creating an instance and a member running `carlos store create
// --environment` against the same name serialise against each other.
- defer s.storeWalks.lock(acct.Sqid, app, env)()
+ defer s.lockStoreWalkTimed(ctx, acct.Sqid, app, env)()
// The walk's deadline starts AFTER the lock, for the reason that door
// states: a request that queued behind a full-length walk would
// otherwise reach the backend holding a spent context.
@@ -233,7 +234,9 @@ func (s *Server) instanceStoreProvisionFor(ctx context.Context, w http.ResponseW
defer cancel()
// Re-read under the lock: a queued request may have waited while an
// operator declined the account.
+ end := trace.Step("approval")
e, ok := s.storeProvisionApproval(walkCtx, w, acct)
+ end()
if !ok {
return nil, false, nil
}
@@ -243,11 +246,15 @@ func (s *Server) instanceStoreProvisionFor(ctx context.Context, w http.ResponseW
// — under this policy the APP made that choice, once, on the manifest,
// so the declaration is written here rather than demanded of a caller
// who has no verb to write it with.
+ end = trace.Step("prefix")
prefix, ok := s.storeInheritedPrefix(walkCtx, w, acct, app)
+ end()
if !ok {
return nil, false, nil
}
+ end = trace.Step("read")
rec, etag, err := objstore.GetIn(walkCtx, effectStore, acct.Sqid, app, env)
+ end()
if err != nil {
log.Printf("console: instance store read %s/%s/%s: %v", acct.Sqid, app, env, err)
jsonError(w, http.StatusBadGateway, "could not read this instance's store record — try again")
@@ -315,13 +322,18 @@ func (s *Server) instanceStoreProvisionFor(ctx context.Context, w http.ResponseW
// the grant below versions its bucket before the instance gets a
// credential. A store that already holds estate is not touched.
if rec.Grant == nil && rec.Provisioned == nil && rec.Versioning == nil {
+ end = trace.Step("manifest")
v, ok := s.instanceStoreVersioning(walkCtx, w, acct, app, actor)
+ end()
if !ok {
return nil, false, nil
}
rec.Versioning = v
}
- if declaredTag, err = objstore.PutIn(walkCtx, effectStore, acct.Sqid, app, env, rec, etag); err != nil {
+ end = trace.Step("declare")
+ declaredTag, err = objstore.PutIn(walkCtx, effectStore, acct.Sqid, app, env, rec, etag)
+ end()
+ if err != nil {
if errors.Is(err, release.ErrCASConflict) {
jsonError(w, http.StatusConflict,
"this instance's store record changed while it was being created — try again")
@@ -334,6 +346,7 @@ func (s *Server) instanceStoreProvisionFor(ctx context.Context, w http.ResponseW
}
out, err := objstore.GrantInFor(walkCtx, effectStore, effectProvisioner, s.cfg.StoreDeployment,
sealer, acct.Sqid, app, env, e.Decision.By, objstore.GrantSourceAccountApproval, "", seedID, time.Now())
+ trace.Fail("walk", err)
if err != nil && seedID != "" && redeclare {
// A seed's declaration must not outlive a grant that wrote nothing:
// another path could grant that record later and keep the mark, and
@@ -411,6 +424,7 @@ func (s *Server) instanceStoreVersioning(ctx context.Context, w http.ResponseWri
// runs it first; a seed door runs it before reserving its record, so these
// refusals never leave an aborted record behind.
func (s *Server) instanceStorePreflight(ctx context.Context, w http.ResponseWriter, acct *Account, app string) (appconfig.Sealer, bool) {
+ defer objstore.TraceFrom(ctx).Step("preflight")()
if s.refuseTemporary(w, acct, app, "give it object storage") {
return appconfig.Sealer{}, false
}
diff --git a/internal/console/instancestoretrace.go b/internal/console/instancestoretrace.go
new file mode 100644
index 000000000..5a654213d
--- /dev/null
+++ b/internal/console/instancestoretrace.go
@@ -0,0 +1,73 @@
+package console
+
+// The timing line of a private-storage create (#1653 Step 0,
+// docs/superpowers/specs/2026-12-02-async-private-store-design.md §2): one
+// objstore.Trace on the create's context, timed at the door's own steps and
+// the walk's, and logged once when the handler ends, success or failure. It
+// names steps and counts only: no bucket, ARN, key id or error text.
+
+import (
+ "context"
+ "log"
+ "net/http"
+ "time"
+
+ "github.com/carlosframework/platform/internal/objstore"
+ "github.com/carlosframework/platform/internal/perf"
+ "github.com/carlosframework/platform/internal/provision"
+)
+
+// traceInstanceCreate puts a store timing trace on r's context and returns
+// the request carrying it and the func that logs it, for the create door to
+// defer. Only a create that reached the private-storage path logs: that is
+// where privateStoreCeiling arms the trace.
+func (s *Server) traceInstanceCreate(r *http.Request) (*http.Request, func()) {
+ t := objstore.NewTrace(time.Now())
+ r = r.WithContext(objstore.WithTrace(r.Context(), t))
+ return r, func() {
+ if label := t.Label(); label != "" {
+ log.Printf("console: instance store timing %s: %s", label, t.Line(time.Now()))
+ }
+ }
+}
+
+// privateStoreCeiling is storeCeiling for a create whose app gives every
+// instance its own store, timed as the trace's first step; nil when the app
+// does not. It arms the create's trace, naming the store it is for and
+// hanging each step on the request's perf spans as "store-<step>", so an
+// over-budget warning names them too.
+func (s *Server) privateStoreCeiling(ctx context.Context, m *provision.Manifest, acct *Account, app, env string) *doorRefusal {
+ if !m.PrivateStorage {
+ return nil
+ }
+ t := objstore.TraceFrom(ctx)
+ t.Arm(acct.Sqid+"/"+app+"/"+env, func(name string) func() { return perf.SpanContext(ctx, "store-"+name) })
+ defer t.Step("ceiling")()
+ return s.storeCeiling(ctx, acct, app, env)
+}
+
+// lockAccountTimed is lockAccount, its wait timed on ctx's trace.
+func (s *Server) lockAccountTimed(ctx context.Context, sqid string) func() {
+ end := objstore.TraceFrom(ctx).Step("lockwait")
+ unlock := s.lockAccount(sqid)
+ end()
+ return unlock
+}
+
+// lockStoreWalkTimed is the store walk lock, its wait timed on ctx's trace.
+func (s *Server) lockStoreWalkTimed(ctx context.Context, sqid, app, env string) func() {
+ end := objstore.TraceFrom(ctx).Step("walklock")
+ unlock := s.storeWalks.lock(sqid, app, env)
+ end()
+ return unlock
+}
+
+// bumpCreateSerial is the create door's serial bump, its last step: timed,
+// and the create's trace marked done.
+func (s *Server) bumpCreateSerial(ctx context.Context) {
+ t := objstore.TraceFrom(ctx)
+ end := t.Step("serial")
+ s.bumpSerial(ctx)
+ end()
+ t.Done()
+}
diff --git a/internal/console/instancestoretrace_test.go b/internal/console/instancestoretrace_test.go
new file mode 100644
index 000000000..cac0bbe32
--- /dev/null
+++ b/internal/console/instancestoretrace_test.go
@@ -0,0 +1,122 @@
+package console
+
+import (
+ "errors"
+ "log"
+ "net/http"
+ "strings"
+ "testing"
+)
+
+// #1653 Step 0: a private-storage create logs one timing line, success or
+// failure, naming its steps and nothing an operator must not see in a log.
+// Not parallel: the line goes to the standard log, captured here.
+
+// captureTimingLines sends the standard log to a buffer for the test and
+// returns the instance store timing lines written to it so far.
+func captureTimingLines(t *testing.T) func() []string {
+ t.Helper()
+ logs := &syncBuffer{}
+ prev := log.Writer()
+ log.SetOutput(logs)
+ t.Cleanup(func() { log.SetOutput(prev) })
+ return func() []string {
+ var out []string
+ for _, line := range strings.Split(logs.String(), "\n") {
+ if strings.Contains(line, "console: instance store timing ") {
+ out = append(out, line)
+ }
+ }
+ return out
+ }
+}
+
+func TestPrivateCreateLogsItsTimingLine(t *testing.T) {
+ fx, _, token, _ := privateStorageFixture(t, "code-priv-timing")
+ enableInstances(t, fx, "titogo", privateManifest())
+ lines := captureTimingLines(t)
+
+ status, out := createInstance(t, fx, token, `{"host":"acme.go.tito.io","region":"ie"}`)
+ if status != http.StatusCreated {
+ t.Fatalf("create = %d %s, want 201", status, out)
+ }
+ got := lines()
+ if len(got) != 1 {
+ t.Fatalf("timing lines = %q, want one", got)
+ }
+ line := got[0]
+ t.Logf("%s", line)
+ if !strings.Contains(line, "console: instance store timing bab/titogo/acme: total=") {
+ t.Fatalf("line = %s, want it to name the store as account/app/environment", line)
+ }
+ // Every step the door and the walk take on a first grant, in order.
+ order := []string{"outcome=ok", "ceiling", "lockwait", "preflight", "walklock", "approval", "prefix", "read", "declare",
+ "walkread", "colliders", "scan", "claims", "grantblock", "user", "health", "bucket", "reap", "mint", "deliver",
+ "provisioned", "record", "serial"}
+ at := -1
+ for _, name := range order {
+ needle := " " + name + "="
+ if strings.Contains(name, "=") {
+ needle = " " + name
+ }
+ i := strings.Index(line, needle)
+ if i < 0 {
+ t.Fatalf("line lacks %s: %s", name, line)
+ }
+ if i < at {
+ t.Errorf("%s is out of order: %s", name, line)
+ }
+ at = i
+ }
+ if !strings.Contains(line, "scan=") || !strings.Contains(line, ", none)") {
+ t.Errorf("line lacks the scan's counts and outcome: %s", line)
+ }
+ rec := envStore(t, fx, "acme")
+ for _, secret := range []string{rec.Provisioned.Bucket, rec.Provisioned.IAMUser, rec.Provisioned.KeyID, rec.Provisioned.UserARN} {
+ if strings.Contains(line, secret) {
+ t.Errorf("line names %q: %s", secret, line)
+ }
+ }
+}
+
+// A walk that fails logs its line too: the step and the error's class, not
+// its text, which carries the bucket and ARN.
+func TestPrivateCreateLogsAFailedWalk(t *testing.T) {
+ fx, fake, token, _ := privateStorageFixture(t, "code-priv-timing-fail")
+ enableInstances(t, fx, "titogo", privateManifest())
+ fake.FailNext["EnsureBucket"] = errors.New("injected: create bucket carlos-bab-titogo-acme for arn:aws:iam::123456789012:user/carlos-store-bab-titogo-acme: AccessDenied")
+ lines := captureTimingLines(t)
+
+ status, out := createInstance(t, fx, token, `{"host":"acme.go.tito.io","region":"ie"}`)
+ if status != http.StatusBadGateway {
+ t.Fatalf("create = %d %s, want 502", status, out)
+ }
+ got := lines()
+ if len(got) != 1 {
+ t.Fatalf("timing lines = %q, want one", got)
+ }
+ line := got[0]
+ if !strings.Contains(line, " outcome=walk:error ") || !strings.Contains(line, " bucket=") {
+ t.Fatalf("line = %s, want outcome walk:error and the bucket step", line)
+ }
+ for _, secret := range []string{"carlos-bab-titogo-acme", "arn:", "123456789012", "AccessDenied", "injected"} {
+ if strings.Contains(line, secret) {
+ t.Errorf("line carries %q: %s", secret, line)
+ }
+ }
+}
+
+// A create whose app does not give instances their own storage logs no
+// timing line: the trace is armed only on the private-storage path.
+func TestPlainCreateLogsNoTimingLine(t *testing.T) {
+ fx, token := instanceFixture(t, "code-plain-timing")
+ enableInstances(t, fx, "titogo", titoManifest())
+ lines := captureTimingLines(t)
+ status, out := createInstance(t, fx, token, `{"host":"plain.go.tito.io","region":"ie"}`)
+ if status != http.StatusCreated {
+ t.Fatalf("create = %d %s, want 201", status, out)
+ }
+ if got := lines(); len(got) != 0 {
+ t.Fatalf("timing lines = %q, want none", got)
+ }
+}
diff --git a/internal/console/lifetimes_create.go b/internal/console/lifetimes_create.go
index 7d29b622e..cfa64978b 100644
--- a/internal/console/lifetimes_create.go
+++ b/internal/console/lifetimes_create.go
@@ -11,6 +11,7 @@ import (
"os"
"strings"
+ "github.com/carlosframework/platform/internal/objstore"
"github.com/carlosframework/platform/internal/provision"
"github.com/carlosframework/platform/internal/release"
)
@@ -43,6 +44,8 @@ type createPlan struct {
// withHostname, then createRecordWithLifetimeLocked. lifetime is the
// apps.lifetime the door read before taking any lock.
func (s *Server) createRecordWithLifetime(ctx context.Context, rec provision.Record, lifetime string) (*provision.Record, error) {
+ trace := objstore.TraceFrom(ctx) // a private create's timing (#1653 Step 0)
+ defer trace.Step("record")()
var out *provision.Record
err := s.withAppHost(rec.Account, rec.App, rec.Host, func() error {
var err error
@@ -51,6 +54,7 @@ func (s *Server) createRecordWithLifetime(ctx context.Context, rec provision.Rec
}
return err
})
+ trace.Fail("record", err)
return out, err
}
diff --git a/internal/console/perfprivatecreate_test.go b/internal/console/perfprivatecreate_test.go
new file mode 100644
index 000000000..fcf3aa5c2
--- /dev/null
+++ b/internal/console/perfprivatecreate_test.go
@@ -0,0 +1,205 @@
+package console
+
+import (
+ "context"
+ "fmt"
+ "net/http"
+ "regexp"
+ "slices"
+ "strconv"
+ "strings"
+ "testing"
+ "time"
+
+ "github.com/carlosframework/platform/internal/objstore"
+ "github.com/carlosframework/platform/internal/provision"
+ "github.com/carlosframework/platform/internal/release"
+)
+
+// A private-storage create on the write fixture (#1653): the store walk's
+// name scan reads every store record in the deployment, so the tree it
+// walks is part of the fixture. The tree is stable and holds no match: the
+// accounts below, each with apps, each app with environment stores, none
+// naming the bucket a create mints. The create's S3 requests are counted
+// against the scan's own counts in its timing line (Step 0).
+const (
+ // perfPrivateCreateS3 is the first create's S3 requests (below), and
+ // perfPrivateCreateOther those of them that are not the scan's.
+ perfPrivateCreateS3 = 219
+ perfPrivateCreateOther = 108
+ perfPrivateAccounts = 4
+ perfPrivateApps = 5
+ perfPrivateEnvs = 2
+)
+
+// perfPrivateTreeAccount is the tree's account i: valid account names are
+// letters only.
+func perfPrivateTreeAccount(i int) string { return "tree" + string(rune('a'+i)) }
+
+// perfPrivateTree writes the tree straight into fx.rel, under the S3 fake,
+// so none of it is counted.
+func perfPrivateTree(t *testing.T, fx *consoleFixture) {
+ t.Helper()
+ ctx := context.Background()
+ for a := 0; a < perfPrivateAccounts; a++ {
+ acct := perfPrivateTreeAccount(a)
+ for p := 0; p < perfPrivateApps; p++ {
+ app := fmt.Sprintf("site%d", p)
+ for e := 0; e < perfPrivateEnvs; e++ {
+ env := fmt.Sprintf("e%d", e)
+ rec := &objstore.Record{
+ Declared: &objstore.Declared{EnvPrefix: "CARLOS_STORE", At: time.Now().UTC(), By: "op"},
+ Grant: &objstore.GrantBlock{Backend: "mem", Bucket: "tree-" + acct + "-" + app + "-" + env,
+ Source: objstore.GrantSourceOperator, At: time.Now().UTC(), By: "op"},
+ }
+ if _, err := objstore.PutIn(ctx, fx.rel, acct, app, env, rec, ""); err != nil {
+ t.Fatal(err)
+ }
+ }
+ }
+ }
+}
+
+// scanLineRe reads the scan's counts out of a timing line.
+var scanLineRe = regexp.MustCompile(`scan=([0-9.]+)(ms|s|µs|ns)\(pages (\d+)/(\d+)/(\d+), gets (\d+)/\d+/\d+, strict gets (\d+)/\d+/\d+, bad keys \d+, accounts (\d+), apps (\d+), stores (\d+), (\w+)\)`)
+
+type perfScanCounts struct {
+ took time.Duration
+ pages0, pages1, pages2, gets, strict int
+ accounts, apps, stores int
+ result string
+}
+
+func (c perfScanCounts) requests() int { return c.pages0 + c.pages1 + c.pages2 + c.gets + c.strict }
+
+func parseScanLine(t *testing.T, line string) perfScanCounts {
+ t.Helper()
+ m := scanLineRe.FindStringSubmatch(line)
+ if m == nil {
+ t.Fatalf("no scan counts in %s", line)
+ }
+ took, err := time.ParseDuration(m[1] + m[2])
+ if err != nil {
+ t.Fatal(err)
+ }
+ n := func(i int) int { v, _ := strconv.Atoi(m[i]); return v }
+ return perfScanCounts{took: took, pages0: n(3), pages1: n(4), pages2: n(5), gets: n(6), strict: n(7),
+ accounts: n(8), apps: n(9), stores: n(10), result: m[11]}
+}
+
+// perfPrivateInstanceCreate is TestPerfWriteRoutesMeetTheBudget's private
+// create, on w's fixture after the routes have run.
+func perfPrivateInstanceCreate(t *testing.T, w perfWritesFx) {
+ fx := w.fx
+ pub, _, _ := sealedFor(t, "irrelevant")
+ fx.srv.cfg.SecretsPub = pub
+ fx.srv.cfg.StoreProvisioner = objstore.NewMemProvisioner("eu-west-1")
+ fx.srv.cfg.StoreDeployment = objstore.Deployment{Backend: "mem", Region: "eu-west-1", BucketPrefix: "carlos-"}
+ // The walk's seed applied for the account; approve that application.
+ e, etag, err := objstore.GetEntitlement(context.Background(), fx.rel, fx.sqid)
+ if err != nil || e == nil {
+ t.Fatalf("the fixture's entitlement: %v, %v", e, err)
+ }
+ e.Decision = &objstore.Decision{Approved: true, By: "operator@keymail.dev", At: time.Now()}
+ if _, err := objstore.PutEntitlement(context.Background(), fx.rel, fx.sqid, e, etag); err != nil {
+ t.Fatal(err)
+ }
+ m, err := provision.GetManifest(context.Background(), fx.rel, release.OpsAccount, perfFlagshipApp)
+ if err != nil {
+ t.Fatal(err)
+ }
+ m.PrivateStorage = true
+ enableInstances(t, fx, perfFlagshipApp, *m)
+ perfPrivateTree(t, fx)
+ lines := captureTimingLines(t)
+
+ var creates, scans []time.Duration
+ for n := 0; n < 4; n++ {
+ w.lat.Enable(true)
+ r := w.json(t, http.MethodPost, "/api/cli/apps/"+fx.sqid+"/"+perfFlagshipApp+"/instances",
+ map[string]string{"host": fmt.Sprintf("p%d.shopfront.example.com", n), "region": "uk"})
+ w.lat.Enable(false)
+ if r.status != http.StatusCreated {
+ t.Fatalf("private create #%d = %d, want 201:\n%s", n, r.status, r.body)
+ }
+ got := lines()
+ if len(got) != n+1 {
+ t.Fatalf("timing lines after create #%d = %d, want %d", n, len(got), n+1)
+ }
+ line := got[n]
+ if !strings.Contains(line, " outcome=ok ") {
+ t.Fatalf("create #%d: %s", n, line)
+ }
+ c := parseScanLine(t, line)
+ if c.result != "none" {
+ t.Fatalf("create #%d: the scan found %s on a tree with no match: %s", n, c.result, line)
+ }
+ // Loose store (no claims): §1.2's 1+A+2P+S, less the one read the
+ // scan skips, the create's own store, which its listing names.
+ if want := 1 + c.accounts + 2*c.apps + c.stores - 1; c.requests() != want {
+ t.Errorf("create #%d: the scan counted %d requests, want 1+A+2P+S-1 = %d: %s", n, c.requests(), want, line)
+ }
+ perfCheckScanAgainstFake(t, n, c, r.reqs)
+ // Pinned by Step 0 with the sequential scan (2026-12-02): 219 S3
+ // requests on the first create, 111 of them the scan's, and one
+ // more of each per create after it, for the store the one before
+ // made. A-minimal reorders the scan's requests and must make the
+ // same ones.
+ if want := perfPrivateCreateS3 + n; len(r.reqs) != want {
+ t.Errorf("create #%d: %d S3 requests, want %d", n, len(r.reqs), want)
+ }
+ if n > 0 {
+ creates = append(creates, r.afterBody)
+ scans = append(scans, c.took)
+ }
+ }
+ slices.Sort(creates)
+ slices.Sort(scans)
+ create, scan := creates[len(creates)/2], scans[len(scans)/2]
+ t.Logf("private instance create: median %s ms after the body, its scan's median %s ms", ms(create), ms(scan))
+ // The scan's requests laid end to end take at least as many S3
+ // delays as there are of them: Step 0 measured the sequential scan at
+ // a 2,966 ms median of its 112 to 114 requests at 25 ms each, and the
+ // create at 4,743 ms. Concurrent, its longest chain is a few requests
+ // (A-minimal, design §3), so a quarter of the sequential floor is
+ // already far over what it should take.
+ floor := time.Duration(perfPrivateCreateS3-perfPrivateCreateOther) * w.lat.S3Delay
+ if scan > floor/4 {
+ if perfEnforce() {
+ t.Errorf("private create: the scan's median is %s ms, over a quarter of its requests one after another (%s ms)", ms(scan), ms(floor))
+ } else {
+ t.Logf("(not enforced locally) private create: the scan's median is %s ms, over a quarter of its requests one after another (%s ms)", ms(scan), ms(floor))
+ }
+ }
+}
+
+// perfCheckScanAgainstFake holds the scan's counts to what the S3 fake
+// answered under the prefixes only the scan reads: the apps/ listing, each
+// account's listing, and the tree's accounts, which nothing else in a
+// create touches.
+func perfCheckScanAgainstFake(t *testing.T, n int, c perfScanCounts, reqs []s3Req) {
+ t.Helper()
+ acctListing := regexp.MustCompile(`^apps/[a-z]+/$`)
+ var root, accts, treeLists, treeGets int
+ for _, q := range reqs {
+ switch {
+ case q.Key == "" && q.Prefix == "apps/":
+ root++
+ case q.Key == "" && acctListing.MatchString(q.Prefix):
+ accts++
+ case q.Key == "" && strings.HasPrefix(q.Prefix, "apps/tree"):
+ treeLists++
+ case q.Method == http.MethodGet && strings.HasPrefix(q.Key, "apps/tree"):
+ treeGets++
+ }
+ }
+ if root != c.pages0 || accts != c.pages1 {
+ t.Errorf("create #%d: the fake answered %d apps/ and %d account listings, the scan counted %d and %d", n, root, accts, c.pages0, c.pages1)
+ }
+ if want := perfPrivateAccounts * perfPrivateApps; treeLists != want {
+ t.Errorf("create #%d: the fake answered %d store listings under the tree, want one per app, %d", n, treeLists, want)
+ }
+ if want := perfPrivateAccounts * perfPrivateApps * (1 + perfPrivateEnvs); treeGets != want {
+ t.Errorf("create #%d: the fake answered %d record reads under the tree, want each app's own and its environments', %d", n, treeGets, want)
+ }
+}
diff --git a/internal/console/perfs3.go b/internal/console/perfs3.go
index d13c6be26..6555feadc 100644
--- a/internal/console/perfs3.go
+++ b/internal/console/perfs3.go
@@ -1,6 +1,7 @@
package console
import (
+ "github.com/aws/aws-sdk-go-v2/service/iam"
awss3 "github.com/aws/aws-sdk-go-v2/service/s3"
"github.com/carlosframework/platform/internal/perf"
@@ -37,3 +38,11 @@ func TimeS3Client(c *awss3.Client, rec *perf.Recorder) *awss3.Client {
func TimeS3HTTP(rec *perf.Recorder) func(awss3.HTTPClient) awss3.HTTPClient {
return func(d awss3.HTTPClient) awss3.HTTPClient { return perf.TimeDoer(d, "s3", rec) }
}
+
+// TimeIAMHTTP is TimeS3HTTP for the store provisioner's IAM client
+// (objstore.NewAWSProvisionerTimed): each request is one "iam" span and
+// count, so a private-storage create's IAM calls are in the speed table and
+// the over-budget warning beside its S3 ones (#1653 Step 0).
+func TimeIAMHTTP(rec *perf.Recorder) func(iam.HTTPClient) iam.HTTPClient {
+ return func(d iam.HTTPClient) iam.HTTPClient { return perf.TimeDoer(d, "iam", rec) }
+}
diff --git a/internal/console/perfwrites_test.go b/internal/console/perfwrites_test.go
index 7b3655ff4..b180bff34 100644
--- a/internal/console/perfwrites_test.go
+++ b/internal/console/perfwrites_test.go
@@ -399,6 +399,7 @@ func TestPerfWriteRoutesMeetTheBudget(t *testing.T) {
}
t.Logf("door\tS3\ttime\ttarget\tceiling\n%s", strings.Join(table, "\n"))
t.Run("claim instance create", perfClaimInstanceCreate)
+ t.Run("private instance create", func(t *testing.T) { perfPrivateInstanceCreate(t, w) })
}
// The original write fixture uses lifetimes with HostClaim off. Exercise
diff --git a/internal/console/testdata/claim-authority-sites.txt b/internal/console/testdata/claim-authority-sites.txt
index c21243ba7..a20f26bb5 100644
--- a/internal/console/testdata/claim-authority-sites.txt
+++ b/internal/console/testdata/claim-authority-sites.txt
@@ -4,7 +4,7 @@
../../cmd/console/main.go|serve|lease.NewVersionedS3(context.Background(), buckets)
../../cmd/console/main.go|serve|release.NewS3StoreIn(context.Background(), dbBucket, dbRegion)
../../cmd/console/main.go|serve|mail.NewAWSProvisioner(ctx, region, mailBoundary)
-../../cmd/console/main.go|storeBackend|objstore.NewAWSProvisionerWith(context.Background(), region, endpoint, boundary, console.TimeS3HTTP(rec))
+../../cmd/console/main.go|storeBackend|objstore.NewAWSProvisionerTimed(context.Background(), region, endpoint, boundary, console.TimeS3HTTP(rec), console.TimeIAMHTTP(rec))
../../cmd/console/main.go|storeScannerFor|objstore.NewClamAVScanner(context.Background(), d.Region, d.Endpoint, addr, maxBytes, signer)
../../cmd/console/media.go|callerAccount|sts.NewFromConfig(cfg)
../../cmd/console/media.go|realMediaClients|objstore.S3ClientFor(ctx, region, endpoint)
diff --git a/internal/hostops/mutation_boundary.go b/internal/hostops/mutation_boundary.go
index b174dd502..493abc29a 100644
--- a/internal/hostops/mutation_boundary.go
+++ b/internal/hostops/mutation_boundary.go
@@ -53,6 +53,8 @@ var (
_ release.ConditionalGetter = (*mutationBoundary)(nil)
_ release.ETagLister = (*mutationBoundary)(nil)
_ release.BucketListDirs = (*mutationBoundary)(nil)
+ _ release.CountedLister = (*mutationBoundary)(nil)
+ _ release.CountedDirLister = (*mutationBoundary)(nil)
)
func NewMutationBoundary(enabled bool, raw release.Store, check MutationCheck) (release.Store, error) {
@@ -116,6 +118,17 @@ func (s *mutationBoundary) List(ctx context.Context, prefix string) ([]string, e
func (s *mutationBoundary) ListDirs(ctx context.Context, prefix string) ([]string, error) {
return s.raw.ListDirs(ctx, prefix)
}
+
+// ListWithCount and ListDirsWithCount are List and ListDirs with the LIST
+// requests the store underneath made (one when it does not say), so a
+// caller timing a listing through the boundary counts its pages (#1653).
+// Reads, like List: nothing about them is a mutation.
+func (s *mutationBoundary) ListWithCount(ctx context.Context, prefix string) ([]string, int, error) {
+ return release.ListCounted(ctx, s.raw, prefix)
+}
+func (s *mutationBoundary) ListDirsWithCount(ctx context.Context, prefix string) ([]string, int, error) {
+ return release.ListDirsCounted(ctx, s.raw, prefix)
+}
func (s *mutationBoundary) BucketShapedListDirs() bool { return release.HasBucketListDirs(s.raw) }
func (s *mutationBoundary) Open(ctx context.Context, key string) (io.ReadCloser, string, error) {
return release.OpenObject(ctx, s.raw, key)
diff --git a/internal/hostops/mutation_boundary_counted_test.go b/internal/hostops/mutation_boundary_counted_test.go
new file mode 100644
index 000000000..df7f25d95
--- /dev/null
+++ b/internal/hostops/mutation_boundary_counted_test.go
@@ -0,0 +1,85 @@
+package hostops
+
+import (
+ "context"
+ "fmt"
+ "net/http/httptest"
+ "os"
+ "path/filepath"
+ "strings"
+ "testing"
+ "time"
+
+ "github.com/aws/aws-sdk-go-v2/aws"
+ "github.com/aws/aws-sdk-go-v2/credentials"
+ awss3 "github.com/aws/aws-sdk-go-v2/service/s3"
+
+ "github.com/carlosframework/platform/internal/objstore"
+ "github.com/carlosframework/platform/internal/release"
+ "github.com/carlosframework/platform/internal/s3fake"
+)
+
+// #1653 Step 0 counts list pages through the store a console's walk holds,
+// which on a claim console is this boundary over the S3 store. The boundary
+// forwards the counted listings, so a listing of more than one S3 page is
+// counted as its pages, not as one.
+
+// writeRaw puts body at key under root as a file: the S3 fake serves a
+// DirStore's root, and a thousand synced Puts would be most of the test.
+func writeRaw(t *testing.T, root, key, body string) {
+ t.Helper()
+ p := filepath.Join(root, filepath.FromSlash(key))
+ if err := os.MkdirAll(filepath.Dir(p), 0o755); err != nil {
+ t.Fatal(err)
+ }
+ if err := os.WriteFile(p, []byte(body), 0o644); err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestMutationBoundaryCountsEveryListPage(t *testing.T) {
+ root := t.TempDir()
+ ts := httptest.NewServer(s3fake.New(release.NewDirStore(root)))
+ t.Cleanup(ts.Close)
+ s3 := &release.S3Store{Bucket: "carlos-pages", Client: awss3.New(awss3.Options{
+ Region: "us-east-1",
+ Credentials: credentials.NewStaticCredentialsProvider("x", "y", ""),
+ BaseEndpoint: aws.String(ts.URL),
+ UsePathStyle: true,
+ RequestChecksumCalculation: aws.RequestChecksumCalculationWhenRequired,
+ ResponseChecksumValidation: aws.ResponseChecksumValidationWhenRequired,
+ })}
+ // 1,005 environment stores of one app (a store listing of two pages),
+ // and 1,001 apps in one account (a directory listing of two pages).
+ for e := 0; e < 1005; e++ {
+ env := fmt.Sprintf("e%04d", e)
+ writeRaw(t, root, objstore.KeyIn("acc", "site", env), fmt.Sprintf(`{"schema":1,"app":"site","environment":%q}`, env))
+ }
+ for a := 0; a < 1000; a++ {
+ writeRaw(t, root, release.AppPrefix("acc", fmt.Sprintf("app%04d", a))+"config.json", "{}")
+ }
+ boundary, err := NewMutationBoundary(true, s3, func(context.Context, MutationTarget) error { return nil })
+ if err != nil {
+ t.Fatal(err)
+ }
+ ctx := t.Context()
+ keys, pages, err := boundary.(release.CountedLister).ListWithCount(ctx, objstore.StoresPrefix("acc", "site"))
+ if err != nil || len(keys) != 1005 || pages != 2 {
+ t.Fatalf("store listing through the boundary = %d keys, %d pages, %v; want 1005 keys on 2 pages", len(keys), pages, err)
+ }
+ dirs, pages, err := boundary.(release.CountedDirLister).ListDirsWithCount(ctx, "apps/acc/")
+ if err != nil || len(dirs) != 1001 || pages != 2 {
+ t.Fatalf("directory listing through the boundary = %d dirs, %d pages, %v; want 1001 on 2 pages", len(dirs), pages, err)
+ }
+ // And as the create's ceiling reads it: the step carries both pages.
+ tr := objstore.NewTrace(time.Now())
+ end := tr.Step("ceiling")
+ envs, err := objstore.StoreEnvironments(objstore.WithTrace(ctx, tr), boundary, "acc", "site")
+ end()
+ if err != nil || len(envs) != 1005 {
+ t.Fatalf("StoreEnvironments through the boundary = %d, %v", len(envs), err)
+ }
+ if line := tr.Line(time.Now()); !strings.Contains(line, "(pages 2)") {
+ t.Fatalf("ceiling through the boundary: %s, want its 2 pages", line)
+ }
+}
diff --git a/internal/objstore/aws.go b/internal/objstore/aws.go
index 596be4626..341cb066b 100644
--- a/internal/objstore/aws.go
+++ b/internal/objstore/aws.go
@@ -99,8 +99,18 @@ func NewAWSProvisioner(ctx context.Context, region, endpoint, boundary string) (
// client's HTTP doer; a nil wrap leaves the client exactly as
// NewAWSProvisioner builds it. The console passes a wrap that times and
// counts each S3 request (console.TimeS3HTTP). The IAM client is not
-// wrapped.
+// wrapped (NewAWSProvisionerTimed wraps it).
func NewAWSProvisionerWith(ctx context.Context, region, endpoint, boundary string, wrap func(awss3.HTTPClient) awss3.HTTPClient) (Provisioner, error) {
+ return NewAWSProvisionerTimed(ctx, region, endpoint, boundary, wrap, nil)
+}
+
+// NewAWSProvisionerTimed is NewAWSProvisionerWith with wrapIAM applied to
+// its IAM client's HTTP doer too; nil leaves that client as
+// NewAWSProvisioner builds it. The console passes a wrap that times and
+// counts each IAM request (console.TimeIAMHTTP), so the speed table and
+// the over-budget warning count IAM as they count S3 (#1653 Step 0).
+func NewAWSProvisionerTimed(ctx context.Context, region, endpoint, boundary string,
+ wrap func(awss3.HTTPClient) awss3.HTTPClient, wrapIAM func(iam.HTTPClient) iam.HTTPClient) (Provisioner, error) {
s3Client, err := S3ClientFor(ctx, region, endpoint)
if err != nil {
return nil, err
@@ -113,6 +123,9 @@ func NewAWSProvisionerWith(ctx context.Context, region, endpoint, boundary strin
return nil, fmt.Errorf("objstore: load aws config: %w", err)
}
iamClient := iam.NewFromConfig(cfg)
+ if wrapIAM != nil {
+ iamClient = iam.New(iamClient.Options(), func(o *iam.Options) { o.HTTPClient = wrapIAM(o.HTTPClient) })
+ }
return &awsProvisioner{s3: s3Client, s3v: s3Client, iam: iamClient, region: region, boundary: boundary, endpoint: endpoint}, nil
}
@@ -353,7 +366,10 @@ func (p *awsProvisioner) EnsureBucket(ctx context.Context, name string) (string,
LocationConstraint: s3types.BucketLocationConstraint(p.region),
}
}
- if _, err := p.s3.CreateBucket(ctx, in); err != nil {
+ end := TraceFrom(ctx).Step("s3.createbucket")
+ _, err := p.s3.CreateBucket(ctx, in)
+ end()
+ if err != nil {
var owned *s3types.BucketAlreadyOwnedByYou
if !errors.As(err, &owned) {
return "", fmt.Errorf("objstore: create bucket %q: %w", name, err)
@@ -475,13 +491,18 @@ func (p *awsProvisioner) EnsureUser(ctx context.Context, name, path, bucketARN s
if p.boundary != "" {
in.PermissionsBoundary = aws.String(p.boundary)
}
+ trace := TraceFrom(ctx)
+ end := trace.Step("iam.createuser")
out, err := p.iam.CreateUser(ctx, in)
+ end()
if err != nil {
var exists *iamtypes.EntityAlreadyExistsException
if !errors.As(err, &exists) {
return "", fmt.Errorf("objstore: create user %q: %w", name, err)
}
+ end := trace.Step("iam.getuser")
got, gerr := p.iam.GetUser(ctx, &iam.GetUserInput{UserName: aws.String(name)})
+ end()
if gerr != nil {
return "", fmt.Errorf("objstore: get existing user %q: %w", name, gerr)
}
@@ -490,11 +511,13 @@ func (p *awsProvisioner) EnsureUser(ctx context.Context, name, path, bucketARN s
arn = aws.ToString(out.User.Arn)
}
+ end = trace.Step("iam.putpolicy")
_, err = p.iam.PutUserPolicy(ctx, &iam.PutUserPolicyInput{
UserName: aws.String(name),
PolicyName: aws.String(policyName),
PolicyDocument: aws.String(storePolicyJSON(bucketARN, deny, denyWrites)),
})
+ end()
if err != nil {
return "", fmt.Errorf("objstore: put policy for user %q: %w", name, err)
}
@@ -503,7 +526,9 @@ func (p *awsProvisioner) EnsureUser(ctx context.Context, name, path, bucketARN s
// MintKey creates a fresh access key for user.
func (p *awsProvisioner) MintKey(ctx context.Context, user string) (string, string, error) {
+ end := TraceFrom(ctx).Step("iam.createkey")
out, err := p.iam.CreateAccessKey(ctx, &iam.CreateAccessKeyInput{UserName: aws.String(user)})
+ end()
if err != nil {
return "", "", fmt.Errorf("objstore: create access key for %q: %w", user, err)
}
@@ -514,10 +539,12 @@ func (p *awsProvisioner) MintKey(ctx context.Context, user string) (string, stri
// shape Rotate step-1 and RotateFinish's PrevKeyID escape hatch both produce
// on a re-run after the key was already deleted.
func (p *awsProvisioner) DeleteKey(ctx context.Context, user, id string) error {
+ end := TraceFrom(ctx).Step("iam.deletekey")
_, err := p.iam.DeleteAccessKey(ctx, &iam.DeleteAccessKeyInput{
UserName: aws.String(user),
AccessKeyId: aws.String(id),
})
+ end()
if err != nil && !isNoSuchEntity(err) {
return fmt.Errorf("objstore: delete access key %q for %q: %w", id, user, err)
}
@@ -535,10 +562,12 @@ func (p *awsProvisioner) ReapKeys(ctx context.Context, user string, keep []strin
}
var marker *string
for {
+ end := TraceFrom(ctx).Step("iam.listkeys")
out, err := p.iam.ListAccessKeys(ctx, &iam.ListAccessKeysInput{
UserName: aws.String(user),
Marker: marker,
})
+ end()
if err != nil {
if isNoSuchEntity(err) {
return nil
diff --git a/internal/objstore/aws_versioning.go b/internal/objstore/aws_versioning.go
index de63b8987..9498c12ff 100644
--- a/internal/objstore/aws_versioning.go
+++ b/internal/objstore/aws_versioning.go
@@ -123,7 +123,9 @@ func anySet(v reflect.Value, skip ...string) bool {
// readRule classifies the bucket's lifecycle configuration.
func (p *awsProvisioner) readRule(ctx context.Context, api s3VersionAPI, bucket string) (rule string, keepDays int, err error) {
+ end := TraceFrom(ctx).Step("s3.lifecycleget")
out, err := api.GetBucketLifecycleConfiguration(ctx, &awss3.GetBucketLifecycleConfigurationInput{Bucket: aws.String(bucket)})
+ end()
if hasCode(err, "NoSuchLifecycleConfiguration") {
return RuleNone, 0, nil
}
@@ -166,17 +168,23 @@ func (p *awsProvisioner) EnsureVersioning(ctx context.Context, bucket string, wa
return ErrLifecycleInUse
}
if rule != RuleOurs || days != want.KeepDays {
- if _, err := api.PutBucketLifecycleConfiguration(ctx, &awss3.PutBucketLifecycleConfigurationInput{
+ end := TraceFrom(ctx).Step("s3.lifecycleput")
+ _, err := api.PutBucketLifecycleConfiguration(ctx, &awss3.PutBucketLifecycleConfigurationInput{
Bucket: aws.String(bucket),
LifecycleConfiguration: &s3types.BucketLifecycleConfiguration{Rules: []s3types.LifecycleRule{versioningRule(want.KeepDays)}},
- }); err != nil {
+ })
+ end()
+ if err != nil {
return fmt.Errorf("objstore: write lifecycle of %q: %w", bucket, err)
}
}
- if _, err := api.PutBucketVersioning(ctx, &awss3.PutBucketVersioningInput{
+ end := TraceFrom(ctx).Step("s3.putversioning")
+ _, err = api.PutBucketVersioning(ctx, &awss3.PutBucketVersioningInput{
Bucket: aws.String(bucket),
VersioningConfiguration: &s3types.VersioningConfiguration{Status: s3types.BucketVersioningStatusEnabled},
- }); err != nil {
+ })
+ end()
+ if err != nil {
return fmt.Errorf("objstore: set versioning of %q: %w", bucket, err)
}
return nil
diff --git a/internal/objstore/nameclaim.go b/internal/objstore/nameclaim.go
index cef513164..d1a9ca728 100644
--- a/internal/objstore/nameclaim.go
+++ b/internal/objstore/nameclaim.go
@@ -32,8 +32,6 @@ import (
"errors"
"fmt"
"os"
- "path"
- "strings"
"time"
"github.com/carlosframework/platform/internal/appconfig"
@@ -66,6 +64,7 @@ func (c *NameClaim) heldBy(acct, app, env string) bool {
// getNameClaim reads a claim; absent is (nil, nil).
func getNameClaim(ctx context.Context, s release.Store, key string) (*NameClaim, error) {
+ TraceFrom(ctx).Reads(1)
raw, _, err := s.Get(ctx, key)
if errors.Is(err, os.ErrNotExist) {
return nil, nil
@@ -102,6 +101,7 @@ func claimName(ctx context.Context, s release.Store, key, name, acct, app, env s
}
return nil
}
+ TraceFrom(ctx).Writes(1)
_, err = s.Put(ctx, key, body, "")
if err == nil {
return nil
@@ -162,6 +162,7 @@ func collidingStores(app, env string) []storeRef {
func grantedColliders(ctx context.Context, s release.Store, acct, app, env string) ([]*Record, error) {
var out []*Record
for _, ref := range collidingStores(app, env) {
+ TraceFrom(ctx).Reads(1)
rec, _, err := GetIn(ctx, s, acct, ref.app, ref.env)
if err != nil {
return nil, err
@@ -187,61 +188,14 @@ func recordNames(acct string, rec *Record) (bucket, user string) {
return bucket, user
}
-// storeNamingBucket scans every store record in the deployment for one other
-// than (acct, app, env) that names bucket. Every FIRST grant pays for it, not
-// only an operator's adopt: an adopt made before claims existed can hold a
-// name shaped exactly like another account's minted one (#191), and nothing
-// but the record says so. It walks with ListDirs, as mail.SweepLegacyRecords
-// does, so it never lists a release artifact; a re-run skips it, because by
-// then the walk holds the claim.
-func storeNamingBucket(ctx context.Context, s release.Store, bucket, acct, app, env string) (bool, error) {
- accts, err := s.ListDirs(ctx, "apps/")
- if err != nil {
- return false, err
- }
- for _, acctPrefix := range accts {
- a := path.Base(strings.TrimSuffix(acctPrefix, "/"))
- if !release.ValidAccount(a) {
- continue
- }
- apps, err := s.ListDirs(ctx, acctPrefix)
- if err != nil {
- return false, err
- }
- for _, appPrefix := range apps {
- p := path.Base(strings.TrimSuffix(appPrefix, "/"))
- if !release.ValidApp(p) {
- continue
- }
- envs, err := StoreEnvironments(ctx, s, a, p)
- if err != nil {
- return false, err
- }
- for _, e := range append([]string{""}, envs...) {
- if a == acct && p == app && e == env {
- continue
- }
- rec, _, err := GetIn(ctx, s, a, p, e)
- if err != nil {
- return false, err
- }
- if rec == nil {
- continue
- }
- if b, _ := recordNames(a, rec); b == bucket {
- return true, nil
- }
- }
- }
- }
- return false, nil
-}
-
// claimStoreNames is the grant walk's gate, run before the grant block is
// written and before any backend call. firstGrant is a grant with no block
// yet — the only run that can be choosing a name another record holds.
func claimStoreNames(ctx context.Context, s release.Store, acct, app, env, bucket, user string, firstGrant bool, now time.Time) error {
+ trace := TraceFrom(ctx)
+ end := trace.Step("colliders")
others, err := grantedColliders(ctx, s, acct, app, env)
+ end()
if err != nil {
return err
}
@@ -250,7 +204,9 @@ func claimStoreNames(ctx context.Context, s release.Store, acct, app, env, bucke
ErrStoreNameTaken, user, acct, others[0].App, others[0].Environment)
}
if firstGrant {
+ end := trace.Step("scan")
taken, err := storeNamingBucket(ctx, s, bucket, acct, app, env)
+ end()
if err != nil {
return err
}
@@ -260,6 +216,7 @@ func claimStoreNames(ctx context.Context, s release.Store, acct, app, env, bucke
}
// Both are read before either is written, so a refusal on the second
// does not leave the first behind.
+ defer trace.Step("claims")()
for _, key := range []string{userClaimKey(user), bucketClaimKey(bucket)} {
cur, err := getNameClaim(ctx, s, key)
if err != nil {
diff --git a/internal/objstore/objstore.go b/internal/objstore/objstore.go
index 723f11247..be9de8524 100644
--- a/internal/objstore/objstore.go
+++ b/internal/objstore/objstore.go
@@ -271,10 +271,16 @@ func StoreEnvironments(ctx context.Context, s release.Store, acct, app string) (
return nil, fmt.Errorf("objstore: invalid app %q", app)
}
prefix := StoresPrefix(acct, app)
- keys, err := s.List(ctx, prefix)
+ keys, err := tracedList(ctx, s, prefix)
if err != nil {
return nil, err
}
+ return looseStoreNames(prefix, keys), nil
+}
+
+// looseStoreNames is StoreEnvironments' reading of a listing of prefix:
+// every <env>.json key's name, sorted, anything else skipped.
+func looseStoreNames(prefix string, keys []string) []string {
out := make([]string, 0, len(keys))
for _, key := range keys {
name, ok := strings.CutPrefix(key, prefix)
@@ -288,7 +294,25 @@ func StoreEnvironments(ctx context.Context, s release.Store, acct, app string) (
out = append(out, name)
}
sort.Strings(out)
- return out, nil
+ return out
+}
+
+// tracedList is s.List, adding its pages to the step open on ctx's trace.
+func tracedList(ctx context.Context, s release.Store, prefix string) ([]string, error) {
+ keys, pages, err := listCounted(ctx, s, prefix)
+ TraceFrom(ctx).Pages(pages)
+ return keys, err
+}
+
+// listCounted is release.ListCounted: s.List with its LIST requests.
+func listCounted(ctx context.Context, s release.Store, prefix string) ([]string, int, error) {
+ return release.ListCounted(ctx, s, prefix)
+}
+
+// listDirsCounted is release.ListDirsCounted: s.ListDirs with its LIST
+// requests.
+func listDirsCounted(ctx context.Context, s release.Store, prefix string) ([]string, int, error) {
+ return release.ListDirsCounted(ctx, s, prefix)
}
var envPrefixRe = regexp.MustCompile(`^[A-Z][A-Z0-9_]{0,31}$`)
@@ -431,20 +455,16 @@ func StrictStoreEnvironments(ctx context.Context, s release.Store, acct, app str
return nil, ErrStoreInventory
}
prefix := StoresPrefix(acct, app)
- keys, err := s.List(ctx, prefix)
+ keys, err := tracedList(ctx, s, prefix)
if err != nil {
return nil, err
}
out := make([]string, 0, len(keys))
seen := map[string]bool{}
for _, key := range keys {
- name, ok := strings.CutPrefix(key, prefix)
- if !ok {
- return nil, fmt.Errorf("%w: %s", ErrStoreInventory, key)
- }
- name, ok = strings.CutSuffix(name, ".json")
- if !ok || !appconfig.ValidEnvironmentName(name) || key != KeyIn(acct, app, name) {
- return nil, fmt.Errorf("%w: %s", ErrStoreInventory, key)
+ name, err := strictStoreName(acct, app, prefix, key)
+ if err != nil {
+ return nil, err
}
if seen[key] {
continue
@@ -455,10 +475,31 @@ func StrictStoreEnvironments(ctx context.Context, s release.Store, acct, app str
return nil, err
}
if rec == nil {
- return nil, fmt.Errorf("%w: listed record %s is absent", ErrStoreInventory, key)
+ return nil, listedAbsent(key)
}
out = append(out, name)
}
sort.Strings(out)
return out, nil
}
+
+// strictStoreName is the environment a listed key under prefix is the
+// store record of, or ErrStoreInventory when it is not one: the strict
+// listing's check of a key, which makes no request.
+func strictStoreName(acct, app, prefix, key string) (string, error) {
+ name, ok := strings.CutPrefix(key, prefix)
+ if !ok {
+ return "", fmt.Errorf("%w: %s", ErrStoreInventory, key)
+ }
+ name, ok = strings.CutSuffix(name, ".json")
+ if !ok || !appconfig.ValidEnvironmentName(name) || key != KeyIn(acct, app, name) {
+ return "", fmt.Errorf("%w: %s", ErrStoreInventory, key)
+ }
+ return name, nil
+}
+
+// listedAbsent is the strict listing's refusal of a key it listed whose
+// record then reads as absent.
+func listedAbsent(key string) error {
+ return fmt.Errorf("%w: listed record %s is absent", ErrStoreInventory, key)
+}
diff --git a/internal/objstore/storescan.go b/internal/objstore/storescan.go
new file mode 100644
index 000000000..15d63a362
--- /dev/null
+++ b/internal/objstore/storescan.go
@@ -0,0 +1,350 @@
+package objstore
+
+import (
+ "context"
+ "errors"
+ "path"
+ "strings"
+ "sync"
+
+ "github.com/carlosframework/platform/internal/release"
+)
+
+// scanInFlight is how many requests the name scan keeps in flight at most,
+// across every scan in the process (#1653 A-minimal): ten creates at once
+// still put at most this many scan requests in flight, not ten times it.
+const scanInFlight = 32
+
+// scanSlots is the one semaphore every scan's requests share. A request
+// holds a slot only while it is being made (a listing's pages one after
+// another), never while waiting on another request, so a scan cannot
+// deadlock on its own slots. Each scan also runs its work on at most
+// scanInFlight goroutines of its own, so a deployment of many stores
+// queues its reads rather than parking a goroutine for each.
+var scanSlots = make(chan struct{}, scanInFlight)
+
+// errScanMatch is how a goroutine that found the bucket stops the scan.
+// It never leaves storeNamingBucket.
+var errScanMatch = errors.New("objstore: a store record names the bucket")
+
+// storeNamingBucket scans every store record in the deployment for one other
+// than (acct, app, env) that names bucket. Every FIRST grant pays for it, not
+// only an operator's adopt: an adopt made before claims existed can hold a
+// name shaped exactly like another account's minted one (#191), and nothing
+// but the record says so. It walks with ListDirs, as mail.SweepLegacyRecords
+// does, so it never lists a release artifact; a re-run skips it, because by
+// then the walk holds the claim.
+//
+// It makes the requests it always has: the apps/ listing, each account's
+// app listing, each app's store listing (on a claim-enabled store, with the
+// strict listing's read of every listed record), then the app-level record
+// and every environment record. Since #1653 (A-minimal, design §3) they run
+// concurrently, by level, on at most scanInFlight workers and bounded by
+// scanSlots across every scan: each account's listing is queued once apps/
+// is listed, and each app's store listing, then its records, once its
+// account's listing returns. A listing's later pages still follow its
+// earlier ones. It counts them on ctx's trace (Step 0).
+//
+// It fails closed. The first error or match cancels the rest and drops
+// what is still queued; the scan waits for every worker and answers that: a match is taken, an error is
+// the error. Either refuses the grant, so with both found, either answer
+// will do. "Not taken" is answered only when every listing page and every
+// read has succeeded and none matched. On a scan that completes without a
+// match over a tree that does not change meanwhile, it makes exactly the
+// requests the sequential scan made; a match or an error may stop it with a
+// different number made.
+func storeNamingBucket(ctx context.Context, s release.Store, bucket, acct, app, env string) (taken bool, err error) {
+ st := scanStatsFor(ctx)
+ defer func() { st.finish(taken, err) }()
+ _, strict := s.(release.AppMutationRunner)
+ ctx, cancel := context.WithCancel(ctx)
+ defer cancel()
+ n := &nameScan{ctx: ctx, cancel: cancel, s: s, strict: strict, st: st,
+ bucket: bucket, acct: acct, app: app, env: env}
+ n.ready = sync.NewCond(&n.mu)
+ n.spawn(n.root)
+ for range scanInFlight {
+ n.wg.Add(1)
+ go n.work()
+ }
+ n.wg.Wait()
+ switch {
+ case n.first == nil:
+ return false, nil
+ case n.first == errScanMatch:
+ return true, nil
+ }
+ return false, n.first
+}
+
+// nameScan is one storeNamingBucket run.
+type nameScan struct {
+ ctx context.Context
+ cancel context.CancelFunc
+ s release.Store
+ strict bool
+ st *scanStats
+
+ bucket, acct, app, env string
+
+ wg sync.WaitGroup // the workers
+
+ mu sync.Mutex
+ ready *sync.Cond // on mu: work queued, or the scan is over
+ queue []func() error // work not started yet
+ pending int // work queued or running
+ first error // the first match or error, which ends the scan
+}
+
+// spawn queues f for a worker. f's error stops the scan.
+func (n *nameScan) spawn(f func() error) {
+ n.mu.Lock()
+ n.queue = append(n.queue, f)
+ n.pending++
+ n.mu.Unlock()
+ n.ready.Signal()
+}
+
+// work runs queued work until the scan is over: every piece of work done,
+// or a match or an error found. Work is not started on a context already
+// done, and that counts as an error, so that work skipped for a cancelled
+// context is never mistaken for work done.
+func (n *nameScan) work() {
+ defer n.wg.Done()
+ for {
+ f, ok := n.next()
+ if !ok {
+ return
+ }
+ err := n.ctx.Err()
+ if err == nil {
+ err = f()
+ }
+ n.done(err)
+ }
+}
+
+// next is the next piece of work, waiting for one while any is still
+// running; false once the scan is over. Work still queued when a match or
+// an error ends the scan is never started.
+func (n *nameScan) next() (func() error, bool) {
+ n.mu.Lock()
+ defer n.mu.Unlock()
+ for len(n.queue) == 0 && n.pending > 0 && n.first == nil {
+ n.ready.Wait()
+ }
+ if n.first != nil || len(n.queue) == 0 {
+ return nil, false
+ }
+ f := n.queue[0]
+ n.queue[0] = nil
+ n.queue = n.queue[1:]
+ return f, true
+}
+
+// done ends one piece of work. Its error, the first, ends the scan and
+// cancels every request in flight; the scan is also over when nothing is
+// queued or running.
+func (n *nameScan) done(err error) {
+ n.mu.Lock()
+ n.pending--
+ if err != nil && n.first == nil {
+ n.first = err
+ }
+ over := n.first != nil || n.pending == 0
+ n.mu.Unlock()
+ if err != nil {
+ n.cancel()
+ }
+ if over {
+ n.ready.Broadcast()
+ }
+}
+
+// request makes one request (or one listing's pages) holding a slot.
+func (n *nameScan) request(f func(ctx context.Context) error) error {
+ select {
+ case scanSlots <- struct{}{}:
+ case <-n.ctx.Done():
+ return n.ctx.Err()
+ }
+ defer func() { <-scanSlots }()
+ if err := n.ctx.Err(); err != nil {
+ return err
+ }
+ return f(n.ctx)
+}
+
+// root lists apps/ and starts each valid account's listing.
+func (n *nameScan) root() error {
+ var accts []string
+ if err := n.request(func(ctx context.Context) error {
+ var pages int
+ var err error
+ accts, pages, err = listDirsCounted(ctx, n.s, "apps/")
+ n.st.pages[0].Add(int64(pages))
+ return err
+ }); err != nil {
+ return err
+ }
+ for _, acctPrefix := range accts {
+ a := path.Base(strings.TrimSuffix(acctPrefix, "/"))
+ if !release.ValidAccount(a) {
+ continue
+ }
+ n.st.accounts.Add(1)
+ n.spawn(func() error { return n.account(a, acctPrefix) })
+ }
+ return nil
+}
+
+// account lists one account's apps and starts each valid app's stores.
+func (n *nameScan) account(a, acctPrefix string) error {
+ var apps []string
+ if err := n.request(func(ctx context.Context) error {
+ var pages int
+ var err error
+ apps, pages, err = listDirsCounted(ctx, n.s, acctPrefix)
+ n.st.pages[1].Add(int64(pages))
+ return err
+ }); err != nil {
+ return err
+ }
+ for _, appPrefix := range apps {
+ p := path.Base(strings.TrimSuffix(appPrefix, "/"))
+ if !release.ValidApp(p) {
+ continue
+ }
+ n.st.apps.Add(1)
+ n.spawn(func() error { return n.stores(a, p) })
+ }
+ return nil
+}
+
+// stores lists one app's stores and starts a read of each record: the
+// app's own, whether or not it exists, and each environment's. On a strict
+// store every listed key is checked before any read starts, and each listed
+// record is read once to validate it (StrictStoreEnvironments) before its
+// read as a record that may name the bucket.
+func (n *nameScan) stores(a, p string) error {
+ prefix := StoresPrefix(a, p)
+ var keys []string
+ if err := n.request(func(ctx context.Context) error {
+ var pages int
+ var err error
+ keys, pages, err = listCounted(ctx, n.s, prefix)
+ n.st.pages[2].Add(int64(pages))
+ return err
+ }); err != nil {
+ return err
+ }
+ envs, err := scanStoreNames(a, p, prefix, keys, n.strict, n.st)
+ if err != nil {
+ return err
+ }
+ n.spawn(func() error { return n.record(a, p, "", false) })
+ for _, e := range envs {
+ n.spawn(func() error { return n.record(a, p, e, n.strict) })
+ }
+ return nil
+}
+
+// record validates one listed record when validate is set, then reads it
+// as the scan does: a record other than the grant's own that names the
+// bucket stops the scan with errScanMatch.
+func (n *nameScan) record(a, p, e string, validate bool) error {
+ if validate {
+ if err := n.request(func(ctx context.Context) error { return scanValidate(ctx, n.s, a, p, e, n.st) }); err != nil {
+ return err
+ }
+ }
+ if a == n.acct && p == n.app && e == n.env {
+ return nil
+ }
+ var named bool
+ if err := n.request(func(ctx context.Context) error {
+ var err error
+ named, err = scanRecordNames(ctx, n.s, a, p, e, n.bucket, n.st)
+ return err
+ }); err != nil {
+ return err
+ }
+ if named {
+ return errScanMatch
+ }
+ return nil
+}
+
+// scanStoreNames names the environments a listing of one app's stores
+// found, as StoreEnvironments does. On a claim-enabled store (strict)
+// every listed key must be a store record's, and one that is not is a
+// refusal (StrictStoreEnvironments); the listed records are then each
+// validated by scanValidate.
+func scanStoreNames(a, p, prefix string, keys []string, strict bool, st *scanStats) ([]string, error) {
+ if !strict {
+ envs := looseStoreNames(prefix, keys)
+ st.stores.Add(int64(len(envs)))
+ return envs, nil
+ }
+ envs := make([]string, 0, len(keys))
+ seen := map[string]bool{}
+ for _, key := range keys {
+ name, err := strictStoreName(a, p, prefix, key)
+ if err != nil {
+ st.badKeys.Add(1)
+ return nil, err
+ }
+ if seen[key] {
+ continue
+ }
+ seen[key] = true
+ envs = append(envs, name)
+ }
+ st.stores.Add(int64(len(envs)))
+ return envs, nil
+}
+
+// scanValidate is the strict listing's read of one listed record: it must
+// be there and valid (StrictStoreEnvironments).
+func scanValidate(ctx context.Context, s release.Store, a, p, e string, st *scanStats) error {
+ st.strictGets.Add(1)
+ rec, _, err := StrictGetIn(ctx, s, a, p, e)
+ if err != nil {
+ return err
+ }
+ if rec == nil {
+ st.strictAbsent.Add(1)
+ return listedAbsent(KeyIn(a, p, e))
+ }
+ st.strictFound.Add(1)
+ return nil
+}
+
+// scanRecordNames reads one store record and reports whether it names
+// bucket. An absent record names nothing.
+func scanRecordNames(ctx context.Context, s release.Store, a, p, e, bucket string, st *scanStats) (bool, error) {
+ st.gets.Add(1)
+ rec, _, err := GetIn(ctx, s, a, p, e)
+ if err != nil {
+ return false, err
+ }
+ if rec == nil {
+ st.absent.Add(1)
+ return false, nil
+ }
+ st.found.Add(1)
+ b, _ := recordNames(a, rec)
+ return b == bucket, nil
+}
+
+// finish records the scan's outcome.
+func (s *scanStats) finish(taken bool, err error) {
+ switch {
+ case err != nil:
+ s.result.Store("error")
+ case taken:
+ s.result.Store("match")
+ default:
+ s.result.Store("none")
+ }
+}
diff --git a/internal/objstore/storescan_probe_test.go b/internal/objstore/storescan_probe_test.go
new file mode 100644
index 000000000..f96f11295
--- /dev/null
+++ b/internal/objstore/storescan_probe_test.go
@@ -0,0 +1,239 @@
+package objstore
+
+import (
+ "context"
+ "encoding/json"
+ "fmt"
+ "math/rand/v2"
+ "os"
+ "path/filepath"
+ "strings"
+ "sync"
+ "sync/atomic"
+ "testing"
+ "time"
+
+ "github.com/carlosframework/platform/internal/release"
+)
+
+// scanProbe is the store the name scan's tests read through: a DirStore
+// underneath, every request counted by kind, held for a random latency when
+// asked, and failed or held where a test says. Requests are counted as they
+// are made, in flight and in all, so a test can read the scan's bound and
+// whether anything was still asking after it returned.
+type scanProbe struct {
+ release.Store
+
+ // latency, when set, holds each request for a random time up to it,
+ // waiting on a timer, never sleeping.
+ latency time.Duration
+ // fail, when set, fails the request it returns an error for.
+ fail func(op, key string) error
+ // hold, when set, runs before a request is answered and may block; an
+ // error it returns fails the request.
+ hold func(ctx context.Context, op, key string) error
+
+ mu sync.Mutex
+ requests map[string]int // "op key" -> count
+
+ inflight, peak, total atomic.Int64
+ // returned is set by a test once the scan has returned; late counts the
+ // requests made after it.
+ returned atomic.Bool
+ late atomic.Int64
+}
+
+func newScanProbe(s release.Store) *scanProbe {
+ return &scanProbe{Store: s, requests: map[string]int{}}
+}
+
+// strictProbe is scanProbe on a claim-enabled store: one that runs app
+// mutations, so StoreEnvironments is the strict listing.
+type strictProbe struct{ *scanProbe }
+
+func (strictProbe) RunAppMutation(ctx context.Context, _, _, _ string, f func(context.Context) error) error {
+ return f(ctx)
+}
+
+// enter is one request starting: counted, held, failed. leave ends it.
+func (p *scanProbe) enter(ctx context.Context, op, key string) error {
+ if p.returned.Load() {
+ p.late.Add(1)
+ }
+ n := p.inflight.Add(1)
+ for {
+ peak := p.peak.Load()
+ if n <= peak || p.peak.CompareAndSwap(peak, n) {
+ break
+ }
+ }
+ p.total.Add(1)
+ p.mu.Lock()
+ p.requests[op+" "+key]++
+ p.mu.Unlock()
+ if p.latency > 0 {
+ t := time.NewTimer(rand.N(p.latency + 1))
+ select {
+ case <-t.C:
+ case <-ctx.Done():
+ t.Stop()
+ return ctx.Err()
+ }
+ }
+ if p.hold != nil {
+ if err := p.hold(ctx, op, key); err != nil {
+ return err
+ }
+ }
+ if p.fail != nil {
+ return p.fail(op, key)
+ }
+ return nil
+}
+
+func (p *scanProbe) leave() { p.inflight.Add(-1) }
+
+func (p *scanProbe) Get(ctx context.Context, key string) ([]byte, string, error) {
+ defer p.leave()
+ if err := p.enter(ctx, "get", key); err != nil {
+ return nil, "", err
+ }
+ return p.Store.Get(ctx, key)
+}
+
+func (p *scanProbe) Put(ctx context.Context, key string, body []byte, ifMatch string) (string, error) {
+ defer p.leave()
+ if err := p.enter(ctx, "put", key); err != nil {
+ return "", err
+ }
+ return p.Store.Put(ctx, key, body, ifMatch)
+}
+
+func (p *scanProbe) List(ctx context.Context, prefix string) ([]string, error) {
+ defer p.leave()
+ if err := p.enter(ctx, "list", prefix); err != nil {
+ return nil, err
+ }
+ return p.Store.List(ctx, prefix)
+}
+
+func (p *scanProbe) ListDirs(ctx context.Context, prefix string) ([]string, error) {
+ defer p.leave()
+ if err := p.enter(ctx, "dirs", prefix); err != nil {
+ return nil, err
+ }
+ return p.Store.ListDirs(ctx, prefix)
+}
+
+// count is how many requests of op were made, over every key.
+func (p *scanProbe) count(op string) int {
+ p.mu.Lock()
+ defer p.mu.Unlock()
+ n := 0
+ for k, c := range p.requests {
+ if strings.HasPrefix(k, op+" ") {
+ n += c
+ }
+ }
+ return n
+}
+
+// counts is every request made so far, by "op key".
+func (p *scanProbe) counts() map[string]int {
+ p.mu.Lock()
+ defer p.mu.Unlock()
+ out := make(map[string]int, len(p.requests))
+ for k, c := range p.requests {
+ out[k] = c
+ }
+ return out
+}
+
+// treeDir is a DirStore a test writes a tree of store records into
+// directly, as files: DirStore's Put syncs every write to disk, and a
+// tree of a thousand records written through it is most of a test's time.
+// What the scan reads goes through the DirStore as ever.
+type treeDir struct {
+ *release.DirStore
+ root string
+}
+
+func newTreeDir(t *testing.T) treeDir {
+ t.Helper()
+ root := t.TempDir()
+ return treeDir{DirStore: release.NewDirStore(root), root: root}
+}
+
+// write puts body at key as a file, no change index, no sync.
+func (d treeDir) write(t *testing.T, key string, body []byte) {
+ t.Helper()
+ p := filepath.Join(d.root, filepath.FromSlash(key))
+ if err := os.MkdirAll(filepath.Dir(p), 0o755); err != nil {
+ t.Fatal(err)
+ }
+ if err := os.WriteFile(p, body, 0o644); err != nil {
+ t.Fatal(err)
+ }
+}
+
+// scanTree is a deployment's store records for the scan to walk: accounts
+// accounts, each with apps apps, each with envs environment stores. Every
+// third app also has its own store (store.json), and every app has a
+// config object, so an app with no store at all is still listed. Every
+// record names its own bucket, "b-<acct>-<app>-<env>".
+type scanTree struct {
+ Accounts, Apps, Envs int
+ // AppStores is how many apps have their own store.json.
+ AppStores int
+}
+
+func writeScanTree(t *testing.T, dir treeDir, accounts, apps, envs int) scanTree {
+ t.Helper()
+ tree := scanTree{Accounts: accounts, Apps: accounts * apps, Envs: accounts * apps * envs}
+ for a := 0; a < accounts; a++ {
+ acct := scanAcct(a)
+ for p := 0; p < apps; p++ {
+ app := fmt.Sprintf("app%d", p)
+ dir.write(t, release.AppPrefix(acct, app)+"config.json", []byte("{}\n"))
+ if p%3 == 0 {
+ putScanRecord(t, dir, acct, app, "")
+ tree.AppStores++
+ }
+ for e := 0; e < envs; e++ {
+ putScanRecord(t, dir, acct, app, fmt.Sprintf("env%d", e))
+ }
+ }
+ }
+ return tree
+}
+
+// scanAcct is a valid account name for index i (three to sixteen letters).
+func scanAcct(i int) string {
+ return "acc" + string(rune('a'+i/26%26)) + string(rune('a'+i%26))
+}
+
+// scanBucket is the bucket putScanRecord names for one store.
+func scanBucket(acct, app, env string) string {
+ return "b-" + acct + "-" + app + "-" + env
+}
+
+func putScanRecord(t *testing.T, dir treeDir, acct, app, env string) {
+ t.Helper()
+ putScanRecordNaming(t, dir, acct, app, env, scanBucket(acct, app, env))
+}
+
+// putScanRecordNaming writes a granted store record naming bucket, as
+// PutIn writes one.
+func putScanRecordNaming(t *testing.T, dir treeDir, acct, app, env, bucket string) {
+ t.Helper()
+ rec := &Record{
+ Schema: Schema, App: app, Environment: env,
+ Declared: &Declared{EnvPrefix: "S3", At: time.Now().UTC(), By: "op"},
+ Grant: &GrantBlock{Backend: "aws", Bucket: bucket, Source: GrantSourceOperator, At: time.Now().UTC(), By: "op"},
+ }
+ body, err := json.MarshalIndent(rec, "", " ")
+ if err != nil {
+ t.Fatal(err)
+ }
+ dir.write(t, KeyIn(acct, app, env), append(body, '\n'))
+}
diff --git a/internal/objstore/storescan_test.go b/internal/objstore/storescan_test.go
new file mode 100644
index 000000000..316fb0890
--- /dev/null
+++ b/internal/objstore/storescan_test.go
@@ -0,0 +1,600 @@
+package objstore
+
+import (
+ "bytes"
+ "context"
+ "errors"
+ "fmt"
+ "net/http/httptest"
+ "os"
+ "path"
+ "runtime"
+ "runtime/pprof"
+ "strings"
+ "sync"
+ "testing"
+ "time"
+
+ "github.com/aws/aws-sdk-go-v2/aws"
+ "github.com/aws/aws-sdk-go-v2/credentials"
+ awss3 "github.com/aws/aws-sdk-go-v2/service/s3"
+
+ "github.com/carlosframework/platform/internal/release"
+ "github.com/carlosframework/platform/internal/s3fake"
+)
+
+// #1653 A-minimal: the name scan runs concurrently (storescan.go). Its
+// verdict is the sequential scan's, it fails closed, it keeps at most
+// scanInFlight requests in flight across every scan, and it has finished
+// with every goroutine it started when it returns.
+
+// sequentialStoreNamingBucket is the scan as it was before A-minimal
+// (main b66d2b765, nameclaim.go), kept as the reference every verdict here
+// is held to.
+func sequentialStoreNamingBucket(ctx context.Context, s release.Store, bucket, acct, app, env string) (bool, error) {
+ accts, err := s.ListDirs(ctx, "apps/")
+ if err != nil {
+ return false, err
+ }
+ for _, acctPrefix := range accts {
+ a := path.Base(strings.TrimSuffix(acctPrefix, "/"))
+ if !release.ValidAccount(a) {
+ continue
+ }
+ apps, err := s.ListDirs(ctx, acctPrefix)
+ if err != nil {
+ return false, err
+ }
+ for _, appPrefix := range apps {
+ p := path.Base(strings.TrimSuffix(appPrefix, "/"))
+ if !release.ValidApp(p) {
+ continue
+ }
+ envs, err := StoreEnvironments(ctx, s, a, p)
+ if err != nil {
+ return false, err
+ }
+ for _, e := range append([]string{""}, envs...) {
+ if a == acct && p == app && e == env {
+ continue
+ }
+ rec, _, err := GetIn(ctx, s, a, p, e)
+ if err != nil {
+ return false, err
+ }
+ if rec == nil {
+ continue
+ }
+ if b, _ := recordNames(a, rec); b == bucket {
+ return true, nil
+ }
+ }
+ }
+ }
+ return false, nil
+}
+
+// scanKinds are the two stores a scan meets: loose, and strict (a claim
+// console's, whose store listing validates every listed record).
+var scanKinds = []string{"loose", "strict"}
+
+// asKind is the probe as that kind of store.
+func asKind(p *scanProbe, kind string) release.Store {
+ if kind == "strict" {
+ return strictProbe{p}
+ }
+ return p
+}
+
+// newScanDir is a store holding writeScanTree(3, 4, 2), written once per
+// test and only read after.
+func newScanDir(t *testing.T) treeDir {
+ t.Helper()
+ dir := newTreeDir(t)
+ writeScanTree(t, dir, 3, 4, 2)
+ return dir
+}
+
+// The verdict is the sequential scan's on every fixture, loose and strict,
+// and a complete scan with no match makes the same requests.
+func TestScanVerdictIsTheSequentialScans(t *testing.T) {
+ t.Parallel()
+ minted := MintedBucketIn(testDeployment(), "bab", "shop", "eu")
+ cases := []struct {
+ name string
+ add func(t *testing.T, dir treeDir)
+ taken bool
+ }{
+ {"no match", func(*testing.T, treeDir) {}, false},
+ {"another account's environment store", func(t *testing.T, dir treeDir) {
+ putScanRecordNaming(t, dir, scanAcct(2), "app1", "extra", minted)
+ }, true},
+ // #191: an adopt from before claims, named exactly like the minted
+ // bucket of the store being granted, in an account of its own.
+ {"an adopt shaped like this store's minted name", func(t *testing.T, dir treeDir) {
+ putScanRecordNaming(t, dir, "zed", "legacy", "", minted)
+ }, true},
+ {"an app-level store", func(t *testing.T, dir treeDir) {
+ putScanRecordNaming(t, dir, scanAcct(1), "app5", "", minted)
+ }, true},
+ {"the store being granted itself", func(t *testing.T, dir treeDir) {
+ putScanRecordNaming(t, dir, "bab", "shop", "eu", minted)
+ }, false},
+ }
+ for _, c := range cases {
+ t.Run(c.name, func(t *testing.T) {
+ t.Parallel()
+ dir := newScanDir(t)
+ c.add(t, dir)
+ for _, kind := range scanKinds {
+ seq := newScanProbe(dir)
+ want, err := sequentialStoreNamingBucket(context.Background(), asKind(seq, kind), minted, "bab", "shop", "eu")
+ if err != nil || want != c.taken {
+ t.Fatalf("%s: the sequential scan = %v, %v, want %v", kind, want, err, c.taken)
+ }
+ probe := newScanProbe(dir)
+ probe.latency = time.Millisecond
+ got, err := storeNamingBucket(context.Background(), asKind(probe, kind), minted, "bab", "shop", "eu")
+ if err != nil || got != want {
+ t.Fatalf("%s: scan = %v, %v, want %v as the sequential scan", kind, got, err, want)
+ }
+ if want {
+ continue
+ }
+ if g, w := probe.counts(), seq.counts(); !sameCounts(g, w) {
+ t.Errorf("%s: a complete scan with no match made other requests than the sequential one:\n got %v\nwant %v", kind, g, w)
+ }
+ }
+ })
+ }
+}
+
+func sameCounts(a, b map[string]int) bool {
+ if len(a) != len(b) {
+ return false
+ }
+ for k, v := range a {
+ if b[k] != v {
+ return false
+ }
+ }
+ return true
+}
+
+// strictS3 is the S3 store as a claim console's: it runs app mutations.
+type strictS3 struct{ *release.S3Store }
+
+func (strictS3) RunAppMutation(ctx context.Context, _, _, _ string, f func(context.Context) error) error {
+ return f(ctx)
+}
+
+// A match on a listing's later page, over the S3 fake, whose listings are
+// pages of a thousand keys: the scan reads every page. Loose, a thousand
+// keys that are not store records fill the first page (the loose listing
+// skips them, so they cost no reads) and the matching record is on the
+// second, as the sequential scan finds it. Strict, every listed key must be
+// a record and every record is read twice, so the thousand are records.
+func TestScanFindsAMatchOnALaterPage(t *testing.T) {
+ t.Parallel()
+ for _, kind := range scanKinds {
+ t.Run(kind, func(t *testing.T) {
+ t.Parallel()
+ dir := newTreeDir(t)
+ ts := httptest.NewServer(s3fake.New(dir.DirStore))
+ t.Cleanup(ts.Close)
+ s := &release.S3Store{Bucket: "carlos-scan", Client: awss3.New(awss3.Options{
+ Region: "us-east-1",
+ Credentials: credentials.NewStaticCredentialsProvider("x", "y", ""),
+ BaseEndpoint: aws.String(ts.URL),
+ UsePathStyle: true,
+ RequestChecksumCalculation: aws.RequestChecksumCalculationWhenRequired,
+ ResponseChecksumValidation: aws.ResponseChecksumValidationWhenRequired,
+ })}
+ var store release.Store = s
+ for e := 0; e < 1004; e++ {
+ env := fmt.Sprintf("e%04d", e)
+ if kind == "strict" {
+ putScanRecordNaming(t, dir, "big", "site", env, scanBucket("big", "site", env))
+ } else {
+ dir.write(t, StoresPrefix("big", "site")+env+".txt", []byte("not a store\n"))
+ }
+ }
+ putScanRecordNaming(t, dir, "big", "site", "zz", "the-bucket")
+ if kind == "strict" {
+ store = strictS3{s}
+ } else {
+ want, err := sequentialStoreNamingBucket(context.Background(), store, "the-bucket", "bab", "shop", "eu")
+ if err != nil || !want {
+ t.Fatalf("the sequential scan = %v, %v, want the match", want, err)
+ }
+ }
+ tr := NewTrace(time.Now())
+ taken, err := storeNamingBucket(WithTrace(context.Background(), tr), store, "the-bucket", "bab", "shop", "eu")
+ if err != nil || !taken {
+ t.Fatalf("scan = %v, %v, want the match on the store listing's second page", taken, err)
+ }
+ if c := tr.Scan(); c.Pages[2] != 2 || c.Result != "match" {
+ t.Errorf("counts = %+v, want a match and 2 store listing pages", c)
+ }
+ })
+ }
+}
+
+var errInjected = errors.New("injected: scan request failed")
+
+// failAt fails every request of op whose key or prefix is key.
+func failAt(op, key string) func(string, string) error {
+ return func(o, k string) error {
+ if o == op && k == key {
+ return errInjected
+ }
+ return nil
+ }
+}
+
+// Fail closed: an error at any level of the walk is the scan's answer,
+// never "not taken", loose and strict.
+func TestScanFailsClosedAtEveryLevel(t *testing.T) {
+ t.Parallel()
+ a := scanAcct(1)
+ cases := map[string]func(string, string) error{
+ "the apps/ listing": failAt("dirs", "apps/"),
+ "an account listing": failAt("dirs", "apps/"+a+"/"),
+ "a store listing": failAt("list", StoresPrefix(a, "app2")),
+ "an app-level record read": failAt("get", Key(a, "app0")),
+ "an environment store read": failAt("get", KeyIn(a, "app3", "env1")),
+ }
+ dir := newScanDir(t)
+ for name, fail := range cases {
+ t.Run(name, func(t *testing.T) {
+ t.Parallel()
+ for _, kind := range scanKinds {
+ probe := newScanProbe(dir)
+ probe.latency = time.Millisecond
+ probe.fail = fail
+ taken, err := storeNamingBucket(context.Background(), asKind(probe, kind), "b-none", "bab", "shop", "eu")
+ if !errors.Is(err, errInjected) || taken {
+ t.Fatalf("%s: scan = %v, %v, want the injected error", kind, taken, err)
+ }
+ }
+ })
+ }
+}
+
+// strictFailure is one of the strict listing's own refusals: prepare
+// writes what it needs into a tree, once; arm sets it on each probe.
+type strictFailure struct {
+ prepare func(t *testing.T, dir treeDir)
+ arm func(p *scanProbe)
+}
+
+// strictFailures are a listed key that is not a store record's, and a
+// listed record that then reads as absent, both in account scanAcct(2).
+func strictFailures() map[string]strictFailure {
+ a := scanAcct(2)
+ return map[string]strictFailure{
+ "a malformed listed key": {
+ prepare: func(t *testing.T, dir treeDir) {
+ dir.write(t, StoresPrefix(a, "app1")+"Not A Store.json", []byte("{}\n"))
+ },
+ arm: func(*scanProbe) {},
+ },
+ "a listed record that is absent": {
+ prepare: func(*testing.T, treeDir) {},
+ arm: func(p *scanProbe) {
+ key := KeyIn(a, "app2", "env0")
+ p.fail = func(op, k string) error {
+ if op == "get" && k == key {
+ return fmt.Errorf("probe: %s: %w", k, os.ErrNotExist)
+ }
+ return nil
+ }
+ },
+ },
+ }
+}
+
+func TestScanFailsClosedOnStrictValidation(t *testing.T) {
+ t.Parallel()
+ for name, f := range strictFailures() {
+ t.Run(name, func(t *testing.T) {
+ t.Parallel()
+ dir := newScanDir(t)
+ f.prepare(t, dir)
+ probe := newScanProbe(dir)
+ f.arm(probe)
+ tr := NewTrace(time.Now())
+ taken, err := storeNamingBucket(WithTrace(context.Background(), tr), strictProbe{probe}, "b-none", "bab", "shop", "eu")
+ if !errors.Is(err, ErrStoreInventory) || taken {
+ t.Fatalf("scan = %v, %v, want ErrStoreInventory", taken, err)
+ }
+ if c := tr.Scan(); c.Result != "error" || c.BadKeys+c.StrictAbsent != 1 {
+ t.Errorf("counts = %+v, want one validation failure and an error", c)
+ }
+ })
+ }
+}
+
+// The bound is the process's, not each scan's: several scans at once,
+// over one probe whose requests take a while, never have more than
+// scanInFlight requests in flight between them.
+func TestScanBoundIsSharedByEveryScan(t *testing.T) {
+ t.Parallel()
+ dir := newTreeDir(t)
+ writeScanTree(t, dir, 6, 20, 3)
+ probe := newScanProbe(dir)
+ probe.latency = 2 * time.Millisecond
+ var wg sync.WaitGroup
+ errs := make([]error, 6)
+ for i := range errs {
+ wg.Add(1)
+ go func() {
+ defer wg.Done()
+ taken, err := storeNamingBucket(context.Background(), asKind(probe, scanKinds[i%2]), "b-none", "bab", "shop", "eu")
+ if err == nil && taken {
+ err = errors.New("taken")
+ }
+ errs[i] = err
+ }()
+ }
+ wg.Wait()
+ for i, err := range errs {
+ if err != nil {
+ t.Fatalf("scan %d: %v", i, err)
+ }
+ }
+ if peak := probe.peak.Load(); peak > scanInFlight || peak < 2 {
+ t.Fatalf("peak in flight = %d, want 2 to %d", peak, scanInFlight)
+ }
+ t.Logf("peak in flight over 6 scans: %d", probe.peak.Load())
+}
+
+// liveScanGoroutines counts goroutines running the scan's code, one stack
+// each (debug 2).
+func liveScanGoroutines() int {
+ var b bytes.Buffer
+ if err := pprof.Lookup("goroutine").WriteTo(&b, 2); err != nil {
+ return -1
+ }
+ n := 0
+ for _, g := range strings.Split(b.String(), "\n\n") {
+ if strings.Contains(g, "objstore.(*nameScan)") {
+ n++
+ }
+ }
+ return n
+}
+
+// scanGoroutinesGone reports whether every scan goroutine has exited
+// within a second. A goroutine's last act for the scan is its WaitGroup
+// Done, which it runs on its way out, so the scan can return a moment
+// before the goroutine is gone; one that is still there after a second
+// is blocked, which is what this looks for. It yields rather than sleeps.
+func scanGoroutinesGone() bool {
+ deadline := time.Now().Add(time.Second)
+ for time.Now().Before(deadline) {
+ if liveScanGoroutines() == 0 {
+ return true
+ }
+ runtime.Gosched()
+ }
+ return liveScanGoroutines() == 0
+}
+
+// Every goroutine has returned when the scan returns, whether it answers
+// no match, a match or an error. Not parallel, so that no other test's
+// scan is running while goroutines and slots are counted.
+func TestScanReturnsAfterEveryGoroutine(t *testing.T) {
+ dir := newScanDir(t)
+ for _, c := range []struct {
+ name string
+ bucket string
+ fail func(string, string) error
+ }{
+ {"no match", "b-none", nil},
+ {"a match", scanBucket(scanAcct(1), "app2", "env0"), nil},
+ {"an error", "b-none", failAt("get", KeyIn(scanAcct(0), "app1", "env1"))},
+ } {
+ for run := 0; run < 10; run++ {
+ probe := newScanProbe(dir)
+ probe.latency = time.Millisecond
+ probe.fail = c.fail
+ _, _ = storeNamingBucket(context.Background(), strictProbe{probe}, c.bucket, "bab", "shop", "eu")
+ probe.returned.Store(true)
+ if n := probe.inflight.Load(); n != 0 {
+ t.Fatalf("%s: %d requests still in flight after the scan returned", c.name, n)
+ }
+ if n := len(scanSlots); n != 0 {
+ t.Fatalf("%s: %d scan slots still held after the scan returned", c.name, n)
+ }
+ if !scanGoroutinesGone() {
+ t.Fatalf("%s: %d scan goroutines still live a second after the scan returned", c.name, liveScanGoroutines())
+ }
+ if n := probe.late.Load(); n != 0 {
+ t.Fatalf("%s: %d requests made after the scan returned", c.name, n)
+ }
+ }
+ }
+}
+
+// A scan runs on scanInFlight goroutines of its own at most, however many
+// records it reads: they are queued, not each given a goroutine. Not
+// parallel, so the goroutines counted are this scan's alone.
+func TestScanGoroutinesAreBounded(t *testing.T) {
+ dir := newTreeDir(t)
+ writeScanTree(t, dir, 6, 20, 3)
+ probe := newScanProbe(dir)
+ var mu sync.Mutex
+ most, calls := 0, 0
+ probe.hold = func(context.Context, string, string) error {
+ mu.Lock()
+ defer mu.Unlock()
+ if calls++; calls%20 == 0 {
+ most = max(most, liveScanGoroutines())
+ }
+ return nil
+ }
+ taken, err := storeNamingBucket(context.Background(), strictProbe{probe}, "b-none", "bab", "shop", "eu")
+ if err != nil || taken {
+ t.Fatalf("scan = %v, %v, want not taken", taken, err)
+ }
+ if most == 0 || most > scanInFlight {
+ t.Fatalf("scan goroutines at most %d while reading %d records, want 1 to %d", most, probe.count("get"), scanInFlight)
+ }
+ t.Logf("scan goroutines at most %d over %d requests", most, probe.total.Load())
+}
+
+// heldUntilCancelled is a probe hold that answers the requests pass lets
+// through and keeps every other one in flight until the scan cancels it,
+// so whatever pass lets decide does so while the rest are mid-request.
+func heldUntilCancelled(pass func(op, key string) bool) func(context.Context, string, string) error {
+ return func(ctx context.Context, op, key string) error {
+ if pass(op, key) {
+ return nil
+ }
+ <-ctx.Done()
+ return ctx.Err()
+ }
+}
+
+// onPathTo lets through the listings that lead to app p of account a, and
+// the reads of every record of that app.
+func onPathTo(a, p string) func(op, key string) bool {
+ return func(op, key string) bool {
+ switch op {
+ case "dirs":
+ return key == "apps/" || key == "apps/"+a+"/"
+ case "list":
+ return key == StoresPrefix(a, p)
+ }
+ return key == Key(a, p) || strings.HasPrefix(key, StoresPrefix(a, p))
+ }
+}
+
+// either lets through what any of passes does.
+func either(passes ...func(op, key string) bool) func(op, key string) bool {
+ return func(op, key string) bool {
+ for _, pass := range passes {
+ if pass(op, key) {
+ return true
+ }
+ }
+ return false
+ }
+}
+
+// concurrentRuns is how many times each concurrent case runs, each with
+// fresh random latencies; -race runs them all.
+const concurrentRuns = 25
+
+// The three tests below keep requests in flight, holding scan slots, until
+// their scan cancels them. They are not parallel with other tests, so the
+// slots their deciding requests need are never all held by another test's
+// requests that are waiting too: each scan here holds a handful at most.
+
+// A match found while other requests are mid-flight refuses, cancels the
+// rest and waits for them: never "not taken".
+func TestScanConcurrentMatch(t *testing.T) {
+ a := scanAcct(1)
+ dir := newScanDir(t)
+ for _, kind := range scanKinds {
+ t.Run(kind, func(t *testing.T) {
+ t.Parallel()
+ for run := 0; run < concurrentRuns; run++ {
+ probe := newScanProbe(dir)
+ probe.latency = 2 * time.Millisecond
+ probe.hold = heldUntilCancelled(onPathTo(a, "app2"))
+ taken, err := storeNamingBucket(context.Background(), asKind(probe, kind), scanBucket(a, "app2", "env1"), "bab", "shop", "eu")
+ if err != nil || !taken {
+ t.Fatalf("run %d: scan = %v, %v, want the match", run, taken, err)
+ }
+ if n := probe.inflight.Load(); n != 0 {
+ t.Fatalf("run %d: %d requests in flight after the scan returned", run, n)
+ }
+ }
+ })
+ }
+}
+
+// A match and an error found together refuse either way: whichever stops
+// the scan first is its answer, and neither is "not taken". The error is
+// a failed read, or one of the strict listing's own validation failures.
+func TestScanMatchTogetherWithError(t *testing.T) {
+ a := scanAcct(1)
+ dir := newScanDir(t)
+ for _, kind := range scanKinds {
+ t.Run(kind, func(t *testing.T) {
+ t.Parallel()
+ for run := 0; run < concurrentRuns; run++ {
+ probe := newScanProbe(dir)
+ probe.latency = 2 * time.Millisecond
+ probe.hold = heldUntilCancelled(onPathTo(a, "app2"))
+ probe.fail = failAt("get", KeyIn(a, "app2", "env0"))
+ taken, err := storeNamingBucket(context.Background(), asKind(probe, kind), scanBucket(a, "app2", "env1"), "bab", "shop", "eu")
+ if taken == (err != nil) || (err != nil && !errors.Is(err, errInjected)) {
+ t.Fatalf("run %d: scan = %v, %v, want the match or the injected error", run, taken, err)
+ }
+ }
+ })
+ }
+ for name, f := range strictFailures() {
+ t.Run("strict, "+name, func(t *testing.T) {
+ t.Parallel()
+ dir := newScanDir(t)
+ f.prepare(t, dir)
+ // The failure is in account scanAcct(2), the match in
+ // scanAcct(0): both are let through, all else is held.
+ m, bad := scanAcct(0), scanAcct(2)
+ for run := 0; run < concurrentRuns; run++ {
+ probe := newScanProbe(dir)
+ probe.latency = 2 * time.Millisecond
+ f.arm(probe)
+ probe.hold = heldUntilCancelled(either(onPathTo(m, "app3"), onPathTo(bad, "app1"), onPathTo(bad, "app2")))
+ taken, err := storeNamingBucket(context.Background(), strictProbe{probe}, scanBucket(m, "app3", "env1"), "bab", "shop", "eu")
+ if taken == (err != nil) || (err != nil && !errors.Is(err, ErrStoreInventory)) {
+ t.Fatalf("run %d: scan = %v, %v, want the match or ErrStoreInventory", run, taken, err)
+ }
+ }
+ })
+ }
+}
+
+// An error while other requests are mid-flight is the scan's answer: a
+// failed read, a malformed listed key or an absent listed record.
+func TestScanConcurrentError(t *testing.T) {
+ a := scanAcct(1)
+ dir := newScanDir(t)
+ for _, kind := range scanKinds {
+ t.Run(kind, func(t *testing.T) {
+ t.Parallel()
+ for run := 0; run < concurrentRuns; run++ {
+ probe := newScanProbe(dir)
+ probe.latency = 2 * time.Millisecond
+ probe.hold = heldUntilCancelled(onPathTo(a, "app2"))
+ probe.fail = failAt("get", KeyIn(a, "app2", "env1"))
+ taken, err := storeNamingBucket(context.Background(), asKind(probe, kind), "b-none", "bab", "shop", "eu")
+ if !errors.Is(err, errInjected) || taken {
+ t.Fatalf("run %d: scan = %v, %v, want the injected error", run, taken, err)
+ }
+ }
+ })
+ }
+ for name, f := range strictFailures() {
+ t.Run("strict, "+name, func(t *testing.T) {
+ t.Parallel()
+ dir := newScanDir(t)
+ f.prepare(t, dir)
+ bad := scanAcct(2)
+ for run := 0; run < concurrentRuns; run++ {
+ probe := newScanProbe(dir)
+ probe.latency = 2 * time.Millisecond
+ f.arm(probe)
+ probe.hold = heldUntilCancelled(either(onPathTo(bad, "app1"), onPathTo(bad, "app2")))
+ taken, err := storeNamingBucket(context.Background(), strictProbe{probe}, "b-none", "bab", "shop", "eu")
+ if !errors.Is(err, ErrStoreInventory) || taken {
+ t.Fatalf("run %d: scan = %v, %v, want ErrStoreInventory", run, taken, err)
+ }
+ }
+ })
+ }
+}
diff --git a/internal/objstore/trace.go b/internal/objstore/trace.go
new file mode 100644
index 000000000..38f0af7f1
--- /dev/null
+++ b/internal/objstore/trace.go
@@ -0,0 +1,347 @@
+package objstore
+
+import (
+ "context"
+ "errors"
+ "fmt"
+ "os"
+ "strings"
+ "sync"
+ "sync/atomic"
+ "time"
+
+ "github.com/carlosframework/platform/internal/release"
+)
+
+// Trace times one private-storage create, step by step (#1653 Step 0,
+// docs/superpowers/specs/2026-12-02-async-private-store-design.md §2). It
+// rides the request's context (WithTrace) and records durations and counts
+// at the walk's own step boundaries; it wraps neither the provisioner nor
+// the store, since callers type-assert both and a wrapper would change
+// their answers. It holds names of steps and counts, never a bucket, ARN,
+// key id or error text, so its line is safe to log.
+//
+// Every method is safe on a nil *Trace and does nothing there, so the walk
+// calls them unconditionally: a grant with no trace on its context behaves
+// exactly as before. Safe for concurrent use.
+type Trace struct {
+ start time.Time
+
+ mu sync.Mutex
+ // label names what the trace is for, set by Arm; "" until then.
+ label string
+ // span, set by Arm, is called as each step starts and its result when
+ // the step ends. The console hangs the request's perf spans on it, so
+ // an over-budget warning names the same steps.
+ span func(name string) func()
+ steps []traceStep
+ open []int // indexes into steps of the steps started and not ended, innermost last
+ fail string
+ done bool
+
+ scan scanStats
+}
+
+type traceStep struct {
+ name string
+ d time.Duration
+ n int // times started
+ pages int // list pages its listings made
+ gets int // reads it made (Reads), attempts and retries alike
+ puts int // writes it made (Writes), attempts and retries alike
+}
+
+// NewTrace starts a trace at start.
+func NewTrace(start time.Time) *Trace { return &Trace{start: start} }
+
+type traceKey struct{}
+
+// WithTrace returns ctx carrying t.
+func WithTrace(ctx context.Context, t *Trace) context.Context {
+ return context.WithValue(ctx, traceKey{}, t)
+}
+
+// TraceFrom is the trace ctx carries, nil when none.
+func TraceFrom(ctx context.Context) *Trace {
+ t, _ := ctx.Value(traceKey{}).(*Trace)
+ return t
+}
+
+// Arm names what the trace is for (the console's acct/app/env, never a
+// bucket) and sets the func each step's start calls (nil for none). A
+// trace nobody armed is not logged.
+func (t *Trace) Arm(label string, span func(name string) func()) {
+ if t == nil {
+ return
+ }
+ t.mu.Lock()
+ t.label, t.span = label, span
+ t.mu.Unlock()
+}
+
+// Label is what Arm named, "" when the trace was never armed.
+func (t *Trace) Label() string {
+ if t == nil {
+ return ""
+ }
+ t.mu.Lock()
+ defer t.mu.Unlock()
+ return t.label
+}
+
+// Step starts timing name and returns the func that ends it. A step of a
+// name already seen adds to it. End it once; a second call does nothing.
+func (t *Trace) Step(name string) func() {
+ if t == nil {
+ return func() {}
+ }
+ t.mu.Lock()
+ spanStart := t.span
+ t.mu.Unlock()
+ var span func()
+ if spanStart != nil {
+ span = spanStart(name)
+ }
+ began := time.Now()
+ t.mu.Lock()
+ i := t.index(name)
+ t.steps[i].n++
+ t.open = append(t.open, i)
+ t.mu.Unlock()
+ var once sync.Once
+ return func() {
+ once.Do(func() {
+ took := time.Since(began)
+ t.mu.Lock()
+ t.steps[i].d += took
+ for j := len(t.open) - 1; j >= 0; j-- {
+ if t.open[j] == i {
+ t.open = append(t.open[:j], t.open[j+1:]...)
+ break
+ }
+ }
+ t.mu.Unlock()
+ if span != nil {
+ span()
+ }
+ })
+ }
+}
+
+// index is the slot for name, made on first use. t.mu is held.
+func (t *Trace) index(name string) int {
+ for i, s := range t.steps {
+ if s.name == name {
+ return i
+ }
+ }
+ t.steps = append(t.steps, traceStep{name: name})
+ return len(t.steps) - 1
+}
+
+// Pages adds n list pages to the innermost step still open, and drops
+// them when none is.
+func (t *Trace) Pages(n int) {
+ t.count(n, func(s *traceStep) *int { return &s.pages })
+}
+
+// Reads adds n store reads (GETs) to the innermost step still open, as
+// Pages adds pages: a caller counts each request it makes, a retry too.
+func (t *Trace) Reads(n int) {
+ t.count(n, func(s *traceStep) *int { return &s.gets })
+}
+
+// Writes adds n store writes (PUTs) to the innermost step still open.
+func (t *Trace) Writes(n int) {
+ t.count(n, func(s *traceStep) *int { return &s.puts })
+}
+
+func (t *Trace) count(n int, field func(*traceStep) *int) {
+ if t == nil || n == 0 {
+ return
+ }
+ t.mu.Lock()
+ if k := len(t.open); k > 0 {
+ *field(&t.steps[t.open[k-1]]) += n
+ }
+ t.mu.Unlock()
+}
+
+// Fail records that the create failed at step with err, by the error's
+// class only (ErrorClass), never its text. The first failure stays; a nil
+// err records nothing.
+func (t *Trace) Fail(step string, err error) {
+ if t == nil || err == nil {
+ return
+ }
+ t.mu.Lock()
+ if t.fail == "" {
+ t.fail = step + ":" + ErrorClass(err)
+ }
+ t.mu.Unlock()
+}
+
+// Done records that the create reached its end.
+func (t *Trace) Done() {
+ if t == nil {
+ return
+ }
+ t.mu.Lock()
+ t.done = true
+ t.mu.Unlock()
+}
+
+// Outcome is "ok" when the create reached its end, the first failure as
+// step:class when one was recorded, else "stopped": a refusal answered
+// before the end, or a seeded create handed to its own door.
+func (t *Trace) Outcome() string {
+ if t == nil {
+ return ""
+ }
+ t.mu.Lock()
+ defer t.mu.Unlock()
+ switch {
+ case t.fail != "":
+ return t.fail
+ case t.done:
+ return "ok"
+ }
+ return "stopped"
+}
+
+// Line is the trace as one log line's fields, total first: each step as
+// name=duration in the order it first started, a step started more than
+// once with its count, one that counted its requests with them (pages,
+// gets, puts), and the scan with its own counts.
+func (t *Trace) Line(now time.Time) string {
+ if t == nil {
+ return ""
+ }
+ out := t.Outcome()
+ t.mu.Lock()
+ steps := append([]traceStep(nil), t.steps...)
+ t.mu.Unlock()
+ var b strings.Builder
+ fmt.Fprintf(&b, "total=%s outcome=%s", ms(now.Sub(t.start)), out)
+ for _, s := range steps {
+ fmt.Fprintf(&b, " %s=%s", s.name, ms(s.d))
+ var notes []string
+ if s.n > 1 {
+ notes = append(notes, fmt.Sprintf("%d calls", s.n))
+ }
+ if s.pages > 0 {
+ notes = append(notes, fmt.Sprintf("pages %d", s.pages))
+ }
+ if s.gets > 0 {
+ notes = append(notes, fmt.Sprintf("gets %d", s.gets))
+ }
+ if s.puts > 0 {
+ notes = append(notes, fmt.Sprintf("puts %d", s.puts))
+ }
+ if s.name == "scan" {
+ notes = append(notes, t.scan.counts().String())
+ }
+ if len(notes) > 0 {
+ b.WriteString("(" + strings.Join(notes, ", ") + ")")
+ }
+ }
+ return b.String()
+}
+
+// ScanCounts is what the name scan did (storeNamingBucket), read from a
+// trace. Pages are by level: the apps/ listing, the accounts' app
+// listings, the apps' store listings. A store that does not report its
+// pages (release.CountedDirLister, release.CountedLister) counts a
+// listing as one page.
+type ScanCounts struct {
+ Pages [3]int
+ // Gets, Found and Absent are the scan's own record reads.
+ Gets, Found, Absent int
+ // StrictGets, StrictFound and StrictAbsent are the reads a
+ // claim-enabled store's listing validates every listed record with
+ // (StrictStoreEnvironments), before the scan's own.
+ StrictGets, StrictFound, StrictAbsent int
+ // BadKeys is listed keys that are not a store record's: a validation
+ // failure on a strict store.
+ BadKeys int
+ // Accounts, Apps and Stores are A, P and S: the valid accounts and
+ // apps listed, and the environment stores their listings named.
+ Accounts, Apps, Stores int
+ // Result is "none", "match" or "error", "" when no scan ran.
+ Result string
+}
+
+// String is the counts as the timing line writes them.
+func (c ScanCounts) String() string {
+ return fmt.Sprintf("pages %d/%d/%d, gets %d/%d/%d, strict gets %d/%d/%d, bad keys %d, accounts %d, apps %d, stores %d, %s",
+ c.Pages[0], c.Pages[1], c.Pages[2], c.Gets, c.Found, c.Absent,
+ c.StrictGets, c.StrictFound, c.StrictAbsent, c.BadKeys, c.Accounts, c.Apps, c.Stores, c.Result)
+}
+
+// Scan is the scan's counts so far.
+func (t *Trace) Scan() ScanCounts {
+ if t == nil {
+ return ScanCounts{}
+ }
+ return t.scan.counts()
+}
+
+// scanStats is ScanCounts as the scan's goroutines write it.
+type scanStats struct {
+ pages [3]atomic.Int64
+ gets, found, absent atomic.Int64
+ strictGets, strictFound, strictAbsent atomic.Int64
+ badKeys atomic.Int64
+ accounts, apps, stores atomic.Int64
+ result atomic.Value // string
+}
+
+func (s *scanStats) counts() ScanCounts {
+ c := ScanCounts{
+ Gets: int(s.gets.Load()), Found: int(s.found.Load()), Absent: int(s.absent.Load()),
+ StrictGets: int(s.strictGets.Load()), StrictFound: int(s.strictFound.Load()), StrictAbsent: int(s.strictAbsent.Load()),
+ BadKeys: int(s.badKeys.Load()),
+ Accounts: int(s.accounts.Load()), Apps: int(s.apps.Load()), Stores: int(s.stores.Load()),
+ }
+ for i := range c.Pages {
+ c.Pages[i] = int(s.pages[i].Load())
+ }
+ c.Result, _ = s.result.Load().(string)
+ return c
+}
+
+// scanStatsFor is the scan's counters on ctx's trace, or a fresh set
+// nobody reads when there is no trace.
+func scanStatsFor(ctx context.Context) *scanStats {
+ if t := TraceFrom(ctx); t != nil {
+ return &t.scan
+ }
+ return &scanStats{}
+}
+
+// ErrorClass names what kind of error err is, for a log line that must not
+// carry its text (which can hold ARNs, bucket names and request ids).
+func ErrorClass(err error) string {
+ switch {
+ case err == nil:
+ return ""
+ case errors.Is(err, ErrStoreNameTaken):
+ return "name-taken"
+ case errors.Is(err, ErrStoreInventory):
+ return "inventory"
+ case errors.Is(err, ErrNotDeclared):
+ return "not-declared"
+ case errors.Is(err, release.ErrCASConflict):
+ return "conflict"
+ case errors.Is(err, context.DeadlineExceeded):
+ return "timeout"
+ case errors.Is(err, context.Canceled):
+ return "canceled"
+ case errors.Is(err, os.ErrNotExist):
+ return "not-found"
+ }
+ return "error"
+}
+
+// ms is d to the millisecond, as the timing line writes it.
+func ms(d time.Duration) string { return d.Round(time.Millisecond).String() }
diff --git a/internal/objstore/trace_test.go b/internal/objstore/trace_test.go
new file mode 100644
index 000000000..675cf0bc0
--- /dev/null
+++ b/internal/objstore/trace_test.go
@@ -0,0 +1,315 @@
+package objstore
+
+import (
+ "context"
+ "errors"
+ "fmt"
+ "strings"
+ "sync"
+ "testing"
+ "time"
+
+ "github.com/carlosframework/platform/internal/appconfig"
+ "github.com/carlosframework/platform/internal/release"
+)
+
+// #1653 Step 0: a private-storage create's timing. These pin what the
+// trace says and that it says nothing it must not.
+
+func TestTraceIsSafeWithNoTrace(t *testing.T) {
+ t.Parallel()
+ var tr *Trace
+ tr.Step("x")()
+ tr.Pages(3)
+ tr.Fail("walk", errors.New("boom"))
+ tr.Done()
+ tr.Arm("a/b/c", nil)
+ if tr.Line(time.Now()) != "" || tr.Outcome() != "" || tr.Label() != "" {
+ t.Fatal("a nil trace said something")
+ }
+ if TraceFrom(context.Background()) != nil {
+ t.Fatal("a context with no trace carries one")
+ }
+}
+
+func TestTraceOutcome(t *testing.T) {
+ t.Parallel()
+ tr := NewTrace(time.Now())
+ if got := tr.Outcome(); got != "stopped" {
+ t.Fatalf("outcome before the end = %q, want stopped", got)
+ }
+ tr.Done()
+ if got := tr.Outcome(); got != "ok" {
+ t.Fatalf("outcome at the end = %q, want ok", got)
+ }
+ tr.Fail("walk", fmt.Errorf("objstore: arn:aws:iam::1234:user/x: %w", ErrStoreNameTaken))
+ tr.Fail("record", release.ErrCASConflict)
+ if got := tr.Outcome(); got != "walk:name-taken" {
+ t.Fatalf("outcome = %q, want the first failure's class, walk:name-taken", got)
+ }
+ if line := tr.Line(time.Now()); strings.Contains(line, "arn:") || strings.Contains(line, "1234") {
+ t.Fatalf("the line carries the error's text: %s", line)
+ }
+}
+
+func TestTraceStepsAddUpInOrder(t *testing.T) {
+ t.Parallel()
+ tr := NewTrace(time.Now())
+ var spans []string
+ tr.Arm("bab/shop/eu", func(name string) func() {
+ spans = append(spans, "start "+name)
+ return func() { spans = append(spans, "end "+name) }
+ })
+ end := tr.Step("ceiling")
+ tr.Pages(2)
+ end()
+ end() // a second end changes nothing
+ for i := 0; i < 2; i++ {
+ tr.Step("iam.listkeys")()
+ }
+ tr.Pages(5) // no step open: dropped
+ line := tr.Line(time.Now())
+ for _, want := range []string{"outcome=stopped", " ceiling=", "(pages 2)", " iam.listkeys=", "(2 calls)"} {
+ if !strings.Contains(line, want) {
+ t.Errorf("line %q lacks %q", line, want)
+ }
+ }
+ if strings.Index(line, "ceiling=") > strings.Index(line, "iam.listkeys=") {
+ t.Errorf("steps out of order: %s", line)
+ }
+ if got := strings.Join(spans, ","); got != "start ceiling,end ceiling,start iam.listkeys,end iam.listkeys,start iam.listkeys,end iam.listkeys" {
+ t.Errorf("spans = %s", got)
+ }
+}
+
+// A first grant with a trace on its context names every step of the walk,
+// in the walk's order, and names no bucket, IAM user or key id.
+func TestGrantTraceNamesEveryWalkStep(t *testing.T) {
+ t.Parallel()
+ dir := newTreeDir(t)
+ writeScanTree(t, dir, 2, 2, 1)
+ p := NewMemProvisioner("eu-west-1")
+ declareIn(t, dir, "bab", "shop", "eu", "SHOP_S3")
+ putVersioning(t, dir, "bab", "shop", "eu")
+
+ tr := NewTrace(time.Now())
+ ctx := WithTrace(context.Background(), tr)
+ _, pub := testSealKeypair(t)
+ got, err := GrantInFor(ctx, dir, p, testDeployment(), storeTestSealer(pub, "bab", "shop"),
+ "bab", "shop", "eu", "op", GrantSourceAccountApproval, "", "", time.Now())
+ if err != nil {
+ t.Fatal(err)
+ }
+ tr.Done()
+ line := tr.Line(time.Now())
+ order := []string{"walkread", "colliders", "scan", "claims", "grantblock", "user", "health", "bucket", "versioning", "reap", "mint", "deliver", "provisioned"}
+ at := -1
+ for _, name := range order {
+ i := strings.Index(line, " "+name+"=")
+ if i < 0 {
+ t.Fatalf("line lacks %s: %s", name, line)
+ }
+ if i < at {
+ t.Errorf("%s out of the walk's order: %s", name, line)
+ }
+ at = i
+ }
+ for _, secret := range []string{got.Provisioned.Bucket, got.Provisioned.IAMUser, got.Provisioned.KeyID, got.Provisioned.UserARN} {
+ if strings.Contains(line, secret) {
+ t.Errorf("line names %q: %s", secret, line)
+ }
+ }
+ if c := tr.Scan(); c.Result != "none" || c.Accounts != 3 || c.Apps != 5 {
+ t.Errorf("scan counts = %+v, want no match over 3 accounts and 5 apps", c)
+ }
+}
+
+// putVersioning asks for versioning on a declared store, as the console's
+// declaration does for a manifest that wants it.
+func putVersioning(t *testing.T, s release.Store, acct, app, env string) {
+ t.Helper()
+ ctx := context.Background()
+ rec, etag, err := GetIn(ctx, s, acct, app, env)
+ if err != nil {
+ t.Fatal(err)
+ }
+ rec.Versioning = &Versioning{Enabled: true, KeepDays: DefaultKeepDays, At: time.Now().UTC(), By: "op"}
+ if _, err := PutIn(ctx, s, acct, app, env, rec, etag); err != nil {
+ t.Fatal(err)
+ }
+}
+
+// The scan's counts are the requests it made: list pages by level, its own
+// record reads, and on a strict store the validation reads, on a tree whose
+// every listing is one page. The totals are §1.2's 1+A+2P+S and 1+A+2P+2S.
+func TestScanCountsAreItsRequests(t *testing.T) {
+ t.Parallel()
+ for _, strict := range []bool{false, true} {
+ t.Run(fmt.Sprintf("strict=%v", strict), func(t *testing.T) {
+ t.Parallel()
+ dir := newTreeDir(t)
+ tree := writeScanTree(t, dir, 3, 4, 2)
+ probe := newScanProbe(dir)
+ var s release.Store = probe
+ if strict {
+ s = strictProbe{probe}
+ }
+ tr := NewTrace(time.Now())
+ // A store the tree does not hold, so no read is skipped as the
+ // grant's own.
+ taken, err := storeNamingBucket(WithTrace(context.Background(), tr), s, "b-none", "zzz", "shop", "eu")
+ if err != nil || taken {
+ t.Fatalf("scan = %v, %v, want not taken", taken, err)
+ }
+ c := tr.Scan()
+ A, P, S := tree.Accounts, tree.Apps, tree.Envs
+ want := ScanCounts{Pages: [3]int{1, A, P}, Gets: P + S, Found: tree.AppStores + S, Absent: P - tree.AppStores,
+ Accounts: A, Apps: P, Stores: S, Result: "none"}
+ if strict {
+ want.StrictGets, want.StrictFound = S, S
+ }
+ if c != want {
+ t.Fatalf("counts = %+v\nwant %+v", c, want)
+ }
+ if got := probe.count("dirs"); got != 1+A {
+ t.Errorf("directory listings = %d, want %d", got, 1+A)
+ }
+ if got := probe.count("list"); got != P {
+ t.Errorf("store listings = %d, want %d", got, P)
+ }
+ if got := probe.count("get"); got != c.Gets+c.StrictGets {
+ t.Errorf("record reads = %d, the trace counted %d", got, c.Gets+c.StrictGets)
+ }
+ total := 1 + A + 2*P + S
+ if strict {
+ total = 1 + A + 2*P + 2*S
+ }
+ if got := int(probe.total.Load()); got != total {
+ t.Errorf("requests = %d, want %d", got, total)
+ }
+ })
+ }
+}
+
+// Finding 1's guard: the walk is untouched, so a healthy re-grant returns
+// at the health check and never reaps or mints, and the key it delivered
+// first still works. A call to either would consume its injected failure
+// and fail the grant.
+func TestHealthyRegrantNeverReapsOrMints(t *testing.T) {
+ t.Parallel()
+ dir := release.NewDirStore(t.TempDir())
+ p := NewMemProvisioner("eu-west-1")
+ declareIn(t, dir, "bab", "shop", "eu", "SHOP_S3")
+ priv, pub := testSealKeypair(t)
+ grant := func() (*Record, error) {
+ return GrantInFor(WithTrace(context.Background(), NewTrace(time.Now())), dir, p, testDeployment(),
+ storeTestSealer(pub, "bab", "shop"), "bab", "shop", "eu", "op", GrantSourceAccountApproval, "", "", time.Now())
+ }
+ first, err := grant()
+ if err != nil {
+ t.Fatal(err)
+ }
+ p.mu.Lock()
+ p.FailNext["ReapKeys"] = errors.New("injected: a healthy re-grant reaped")
+ p.FailNext["MintKey"] = errors.New("injected: a healthy re-grant minted")
+ p.mu.Unlock()
+ again, err := grant()
+ if err != nil {
+ t.Fatalf("healthy re-grant = %v", err)
+ }
+ p.mu.Lock()
+ _, reapArmed := p.FailNext["ReapKeys"]
+ _, mintArmed := p.FailNext["MintKey"]
+ keys := p.Users[first.Provisioned.IAMUser].Keys
+ p.mu.Unlock()
+ if !reapArmed || !mintArmed {
+ t.Fatal("a healthy re-grant called ReapKeys or MintKey")
+ }
+ if again.Provisioned.KeyID != first.Provisioned.KeyID {
+ t.Fatalf("key = %s, want the first grant's %s", again.Provisioned.KeyID, first.Provisioned.KeyID)
+ }
+ if _, ok := keys[first.Provisioned.KeyID]; !ok || len(keys) != 1 {
+ t.Fatalf("keys = %v, want only the delivered %s", keys, first.Provisioned.KeyID)
+ }
+ delivered, err := appconfig.Open(priv, appconfig.Binding{Account: "bab", App: "shop"},
+ envVars(t, dir, "bab", "shop", "eu")["SHOP_S3_ACCESS_KEY"].Envelope)
+ if err != nil || string(delivered) != first.Provisioned.KeyID {
+ t.Fatalf("delivered key id = %q, %v, want %s", delivered, err, first.Provisioned.KeyID)
+ }
+}
+
+// stepCounts is one step's counted requests on tr: pages, gets, puts.
+func stepCounts(tr *Trace, name string) (pages, gets, puts int) {
+ tr.mu.Lock()
+ defer tr.mu.Unlock()
+ for _, s := range tr.steps {
+ if s.name == name {
+ return s.pages, s.gets, s.puts
+ }
+ }
+ return 0, 0, 0
+}
+
+// The colliders and claims steps count the requests they make, a claim's
+// retry included, so the line can tell the claims' cost from the scan's.
+// The counts are held to the requests the store saw.
+func TestGrantTraceCountsColliderAndClaimRequests(t *testing.T) {
+ t.Parallel()
+ dir := newTreeDir(t)
+ writeScanTree(t, dir, 2, 2, 1)
+ // "shop" with environment "eu-west" collides with shop-eu/west and
+ // shop-eu-west, whose records are read before any claim.
+ declareIn(t, dir, "bab", "shop", "eu-west", "SHOP_S3")
+ probe := newScanProbe(dir)
+ // The bucket claim's first create-only write loses a race, as it does
+ // when another walk wrote it first and then let it go: one retry.
+ bucketKey := bucketClaimKey(MintedBucketIn(testDeployment(), "bab", "shop", "eu-west"))
+ var lost bool
+ var mu sync.Mutex
+ probe.fail = func(op, key string) error {
+ mu.Lock()
+ defer mu.Unlock()
+ if op == "put" && key == bucketKey && !lost {
+ lost = true
+ return fmt.Errorf("probe: %s: %w", key, release.ErrCASConflict)
+ }
+ return nil
+ }
+ tr := NewTrace(time.Now())
+ _, pub := testSealKeypair(t)
+ if _, err := GrantInFor(WithTrace(context.Background(), tr), probe, NewMemProvisioner("eu-west-1"), testDeployment(),
+ storeTestSealer(pub, "bab", "shop"), "bab", "shop", "eu-west", "op", GrantSourceAccountApproval, "", "", time.Now()); err != nil {
+ t.Fatal(err)
+ }
+ if !lost {
+ t.Fatal("the injected lost race never happened")
+ }
+ seen := probe.counts()
+ colliderGets := 0
+ for _, ref := range collidingStores("shop", "eu-west") {
+ colliderGets += seen["get "+KeyIn("bab", ref.app, ref.env)]
+ }
+ claimGets, claimPuts := 0, 0
+ for k, n := range seen {
+ switch {
+ case strings.HasPrefix(k, "get "+nameClaimsPrefix):
+ claimGets += n
+ case strings.HasPrefix(k, "put "+nameClaimsPrefix):
+ claimPuts += n
+ }
+ }
+ if colliderGets != 2 || claimGets != 5 || claimPuts != 3 {
+ t.Fatalf("the store saw %d collider reads, %d claim reads and %d claim writes; want 2, 5 and 3 "+
+ "(both claims read first, each claim's read and write, the bucket's again after its lost race)", colliderGets, claimGets, claimPuts)
+ }
+ if _, gets, _ := stepCounts(tr, "colliders"); gets != colliderGets {
+ t.Errorf("colliders step counted %d reads, the store saw %d", gets, colliderGets)
+ }
+ if _, gets, puts := stepCounts(tr, "claims"); gets != claimGets || puts != claimPuts {
+ t.Errorf("claims step counted %d reads and %d writes, the store saw %d and %d", gets, puts, claimGets, claimPuts)
+ }
+ line := tr.Line(time.Now())
+ if !strings.Contains(line, " colliders=") || !strings.Contains(line, "(gets 2)") || !strings.Contains(line, "(gets 5, puts 3)") {
+ t.Errorf("line lacks the colliders' and claims' counts: %s", line)
+ }
+}
diff --git a/internal/objstore/walk.go b/internal/objstore/walk.go
index 6835b2e6c..e70388c33 100644
--- a/internal/objstore/walk.go
+++ b/internal/objstore/walk.go
@@ -239,8 +239,13 @@ func claimRawGrant(ctx context.Context, s release.Store, p Provisioner, d Deploy
// A record with no mark is written exactly as before.
func claimRawGrantIn(ctx context.Context, s release.Store, p Provisioner, d Deployment,
seal appconfig.Sealer, acct, app, env, actor, source, adoptBucket, seed string, now time.Time) (*Record, error) {
+ // trace times each step below on a create's trace (#1653 Step 0); nil
+ // when the context carries none, and then every call is a no-op.
+ trace := TraceFrom(ctx)
// 1. resolve + write the grant block
+ end := trace.Step("walkread")
rec, etag, err := GetIn(ctx, s, acct, app, env)
+ end()
if err != nil {
return nil, err
}
@@ -308,7 +313,10 @@ func claimRawGrantIn(ctx context.Context, s release.Store, p Provisioner, d Depl
if rec.Grant == nil {
rec.Grant = &GrantBlock{Backend: d.Backend, Bucket: bucket, Source: source, At: now, By: actor}
}
- if etag, err = PutIn(ctx, s, acct, app, env, rec, etag); err != nil {
+ end = trace.Step("grantblock")
+ etag, err = PutIn(ctx, s, acct, app, env, rec, etag)
+ end()
+ if err != nil {
return nil, err
}
}
@@ -333,7 +341,9 @@ func claimRawGrantIn(ctx context.Context, s release.Store, p Provisioner, d Depl
if rec.Scanning != nil {
deny = rec.Scanning.Enforce
}
+ end = trace.Step("user")
arn, err := p.EnsureUser(ctx, user, UserPath, "arn:aws:s3:::"+bucket, deny, rec.WritesDenied != nil)
+ end()
if err != nil {
return nil, fmt.Errorf("objstore: ensure user %s: %w", user, err)
}
@@ -352,7 +362,10 @@ func claimRawGrantIn(ctx context.Context, s release.Store, p Provisioner, d Depl
// store that already exists, and a healthy re-walk must still converge
// it. A store with no bucket yet is versioned at 3b instead.
if rec.Versioning != nil && rec.Provisioned != nil {
- if err := convergeVersioning(ctx, p, bucket, rec.Versioning); err != nil {
+ end = trace.Step("versioning")
+ err := convergeVersioning(ctx, p, bucket, rec.Versioning)
+ end()
+ if err != nil {
return nil, err
}
}
@@ -363,13 +376,18 @@ func claimRawGrantIn(ctx context.Context, s release.Store, p Provisioner, d Depl
// deployment has since changed or dropped means it is reaching for the
// wrong one, which only a re-walk (which rewrites the set, and unsets
// _ENDPOINT when there is no longer an endpoint) can put right.
- if healthy, err := GrantHealthy(ctx, s, d, rec, acct, app, env); err != nil {
+ end = trace.Step("health")
+ healthy, err := GrantHealthy(ctx, s, d, rec, acct, app, env)
+ end()
+ if err != nil {
return nil, err
} else if healthy {
return rec, nil
}
// 3. the bucket
+ end = trace.Step("bucket")
region, err := p.EnsureBucket(ctx, bucket)
+ end()
if err != nil {
return nil, fmt.Errorf("objstore: ensure bucket %s: %w", bucket, err)
}
@@ -378,7 +396,10 @@ func claimRawGrantIn(ctx context.Context, s release.Store, p Provisioner, d Depl
// a bucket that is already versioned (spec §6.1). A failure here leaves
// a bucket and a grant block and no key, which a re-run repairs.
if rec.Versioning != nil && rec.Provisioned == nil {
- if err := convergeVersioning(ctx, p, bucket, rec.Versioning); err != nil {
+ end = trace.Step("versioning")
+ err := convergeVersioning(ctx, p, bucket, rec.Versioning)
+ end()
+ if err != nil {
return nil, err
}
}
@@ -391,15 +412,23 @@ func claimRawGrantIn(ctx context.Context, s release.Store, p Provisioner, d Depl
if rec.Provisioned != nil && rec.Provisioned.PrevKeyID != "" {
keep = append(keep, rec.Provisioned.PrevKeyID)
}
- if err := p.ReapKeys(ctx, user, keep); err != nil {
+ end = trace.Step("reap")
+ err = p.ReapKeys(ctx, user, keep)
+ end()
+ if err != nil {
return nil, fmt.Errorf("objstore: reap keys for %s: %w", user, err)
}
+ end = trace.Step("mint")
id, secret, err := p.MintKey(ctx, user)
+ end()
if err != nil {
return nil, fmt.Errorf("objstore: mint key for %s: %w", user, err)
}
// 5. deliver — the secret's ONLY landing place (§7)
- if err := writeEnv(ctx, s, seal, acct, app, env, rec.Declared.EnvPrefix, bucket, region, d.Endpoint, id, secret); err != nil {
+ end = trace.Step("deliver")
+ err = writeEnv(ctx, s, seal, acct, app, env, rec.Declared.EnvPrefix, bucket, region, d.Endpoint, id, secret)
+ end()
+ if err != nil {
return nil, err
}
// 6. record success — after the secret is recorded, never before (§5).
@@ -412,6 +441,7 @@ func claimRawGrantIn(ctx context.Context, s release.Store, p Provisioner, d Depl
}
rec.Provisioned = &Provisioned{Bucket: bucket, Region: region, Endpoint: d.Endpoint,
IAMUser: user, UserARN: arn, KeyID: id, PrevKeyID: prev, At: now}
+ defer trace.Step("provisioned")()
if _, err := PutIn(ctx, s, acct, app, env, rec, etag); err != nil {
if !errors.Is(err, release.ErrCASConflict) {
return nil, err
diff --git a/internal/provision/plan9_b8_census_test.go b/internal/provision/plan9_b8_census_test.go
index 423a51ced..2c2b4e86e 100644
--- a/internal/provision/plan9_b8_census_test.go
+++ b/internal/provision/plan9_b8_census_test.go
@@ -366,7 +366,7 @@ func TestPlan9B8RecordWriteCensus(t *testing.T) {
if len(got) < 100 {
t.Fatalf("census found only %d units under %s; the walk is broken", len(got), root)
}
- inventory := recordviewWalkStraysWriteCensusInventory()
+ inventory := privateStoreScan1653WriteCensusInventory()
problems := append(censusDiff(inventory, got), censusPolicy(inventory)...)
if len(problems) > 0 {
t.Fatalf("record-write census rejected %d site(s); update the explicit inventory only after reviewing the source:\n %s", len(problems), strings.Join(problems, "\n "))
diff --git a/internal/provision/private_store_scan_1653_census_test.go b/internal/provision/private_store_scan_1653_census_test.go
new file mode 100644
index 000000000..690c9f6c3
--- /dev/null
+++ b/internal/provision/private_store_scan_1653_census_test.go
@@ -0,0 +1,29 @@
+package provision
+
+// privateStoreScan1653WriteCensusInventory is #1653's review of the
+// record-write census (private-store-scan-1653, Step 0's timing). claimName
+// in internal/objstore/nameclaim.go counts each create-only write it makes
+// on a create's trace (Trace.Writes) just before the Put, so the timing
+// line can report claim writes, retries included. The write itself, its
+// key (a name claim, not a record), its body and its one retry after a
+// lost race are unchanged: kinds and class unchanged, only the digest
+// moves.
+func privateStoreScan1653WriteCensusInventory() []censusEntry {
+ entries := append([]censusEntry(nil), recordviewWalkStraysWriteCensusInventory()...)
+ reviewed := []censusEntry{
+ {"internal/objstore/nameclaim.go", "claimName", "nonrecord", "sel:Put", "b60eff0ab93c9a4ec9064ba61d31de6c47f7dca388a4af88c5d6e0dc5b70da07"},
+ }
+ for _, r := range reviewed {
+ replaced := false
+ for i, e := range entries {
+ if e.File == r.File && e.Unit == r.Unit {
+ entries[i], replaced = r, true
+ break
+ }
+ }
+ if !replaced {
+ entries = append(entries, r)
+ }
+ }
+ return entries
+}
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index ceba84d9d..fe0973ce0 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -331,3 +331,4 @@ plan14-root-reads-precert-cname-1441.tsv c566f93a6751a5c801787d2b0c6d965301af68f
plan14-root-reads-recordview-walk-strays.tsv 594b9e8f940d929bc1d03df932952bde791955b8a8f9dde37ee9c7cd7b2a0042
plan14-root-reads-config-new-first-1653.tsv af91f62a3bddb72188801f27302643b160b6a6fbdf312315490407fad1f901ac
plan14-root-reads-alias-with-mint-1653.tsv ce9536904e10de3f5e5c582061f130f870515ae0999de2946658ea49e4a17bf8
+plan14-root-reads-private-store-scan-1653.tsv ce9536904e10de3f5e5c582061f130f870515ae0999de2946658ea49e4a17bf8
diff --git a/internal/provision/testdata/plan14-root-reads-private-store-scan-1653.tsv b/internal/provision/testdata/plan14-root-reads-private-store-scan-1653.tsv
new file mode 100644
index 000000000..6d0a7cff0
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-private-store-scan-1653.tsv
@@ -0,0 +1,5 @@
+# Census overlay private-store-scan-1653, written by census-propose (#369). census-ruling-private-store-scan-1653, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-private-store-scan-1653.md.
+# 0 body, 0 sites, 3 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+@coverage internal/hostops 12f2b56dfd26bfb0d1c4f9f6e48991150bcce30fb1379c4ccd8bf71cc96bf311
+@coverage internal/objstore 76cd636241ad2b65a9576835535fc0150da76c7ae180f49d8a8b9572871bc934
+@coverage internal/release 9e04f39306731820b55cc45523f86b2358483739db82a63786e82bf47c91bf6b
diff --git a/internal/release/store.go b/internal/release/store.go
index de9fa44a6..83db0a19c 100644
--- a/internal/release/store.go
+++ b/internal/release/store.go
@@ -404,6 +404,34 @@ type CountedDirLister interface {
ListDirsWithCount(ctx context.Context, prefix string) ([]string, int, error)
}
+// CountedLister is List reporting its LIST requests too, for a caller that
+// measures what a listing cost (the store name scan's timing, #1653).
+// Counts are API calls, excluding SDK transport retries.
+type CountedLister interface {
+ ListWithCount(ctx context.Context, prefix string) ([]string, int, error)
+}
+
+// ListCounted is s.List with the LIST requests it made, when s reports them
+// (CountedLister); a store that does not counts the listing as one. A
+// wrapper that forwards List forwards this too, so a caller measuring a
+// listing through it sees the pages of the store underneath (#1653).
+func ListCounted(ctx context.Context, s Store, prefix string) ([]string, int, error) {
+ if c, ok := s.(CountedLister); ok {
+ return c.ListWithCount(ctx, prefix)
+ }
+ keys, err := s.List(ctx, prefix)
+ return keys, 1, err
+}
+
+// ListDirsCounted is ListCounted for s.ListDirs (CountedDirLister).
+func ListDirsCounted(ctx context.Context, s Store, prefix string) ([]string, int, error) {
+ if c, ok := s.(CountedDirLister); ok {
+ return c.ListDirsWithCount(ctx, prefix)
+ }
+ dirs, err := s.ListDirs(ctx, prefix)
+ return dirs, 1, err
+}
+
// PageLister is the optional BOUNDED listing. List, ListMod and ListSizes all
// return every key under a prefix, which is right for a sweep that wants the
// whole picture and wrong for a queue drain that wants the oldest few.
@@ -1204,15 +1232,21 @@ func (s *S3Store) putFromRaw(ctx context.Context, key string, body io.ReadSeeker
// List is ListMod minus the stamps — one paginator loop serves both.
func (s *S3Store) List(ctx context.Context, prefix string) ([]string, error) {
- kms, err := s.ListMod(ctx, prefix)
+ keys, _, err := s.ListWithCount(ctx, prefix)
+ return keys, err
+}
+
+// ListWithCount is List with the number of LIST requests it made.
+func (s *S3Store) ListWithCount(ctx context.Context, prefix string) ([]string, int, error) {
+ kms, requests, err := s.listMod(ctx, prefix)
if err != nil {
- return nil, err
+ return nil, requests, err
}
out := make([]string, len(kms))
for i, km := range kms {
out[i] = km.Key
}
- return out, nil
+ return out, requests, nil
}
// ListPage is the bounded listing, and unlike its siblings it does NOT
@@ -1262,21 +1296,29 @@ func (s *S3Store) ListPage(ctx context.Context, prefix, startAfter string, limit
// ListMod is the listing keeping the LastModified S3 already sends with
// every entry.
func (s *S3Store) ListMod(ctx context.Context, prefix string) ([]KeyMod, error) {
+ out, _, err := s.listMod(ctx, prefix)
+ return out, err
+}
+
+// listMod is ListMod with the number of LIST requests it made.
+func (s *S3Store) listMod(ctx context.Context, prefix string) ([]KeyMod, int, error) {
var out []KeyMod
+ requests := 0
p := awss3.NewListObjectsV2Paginator(s.Client, &awss3.ListObjectsV2Input{
Bucket: &s.Bucket,
Prefix: &prefix,
})
for p.HasMorePages() {
+ requests++
page, err := p.NextPage(ctx)
if err != nil {
- return nil, err
+ return nil, requests, err
}
for _, o := range page.Contents {
out = append(out, KeyMod{Key: aws.ToString(o.Key), Mod: aws.ToTime(o.LastModified)})
}
}
- return out, nil
+ return out, requests, nil
}
// s3NotModified recognises the 304 a conditional GET answers with. The SDK
diff --git a/internal/rootaws/guard_test.go b/internal/rootaws/guard_test.go
index 053d6cfec..aa8bfcdf3 100644
--- a/internal/rootaws/guard_test.go
+++ b/internal/rootaws/guard_test.go
@@ -41,7 +41,10 @@ var boundedClientAllowlist = []allowedConstruction{
{"internal/grouprollaws/group.go", "newAdapter", "aws.Config.HTTPClient set", 2, "own bounds: 2 s connect, header and body read"},
// A wrap around the S3 client's own HTTP client, which S3ClientFor
// bounded; only the console passes one (console.TimeS3HTTP).
- {"internal/objstore/aws.go", "NewAWSProvisionerWith", "s3.Options.HTTPClient set", 1, "wraps the bounded client; console-only"},
+ {"internal/objstore/aws.go", "NewAWSProvisionerTimed", "s3.Options.HTTPClient set", 1, "wraps the bounded client; console-only"},
+ // The same for the IAM client, loaded through rootaws just above it;
+ // only the console passes one (console.TimeIAMHTTP, #1653).
+ {"internal/objstore/aws.go", "NewAWSProvisionerTimed", "iam.Options.HTTPClient set", 1, "wraps the bounded client; console-only"},
// NewStagingMirrorAt: the test constructor against a local S3
// (leasetest); production uses NewStagingMirror over rootaws.
{"internal/lease/staging.go", "NewStagingMirrorAt", "s3.Options literal without rootaws.BoundedHTTPClient()", 1, "test-only constructor NewStagingMirrorAt"},