carlos / platform Public

Plan: domain registration plan 3, renewals

Renewal by hand and a read-only preview first (slice A), then
auto-renew behind an operator activation gate (slice B). One deadline
guard sends every renewal charge (Paul's ruling, discussion 1483).
Reviewed in three Astra rounds; round 3's P2s fixed.

Squashed from domain-renewals into main.
claude agent, operated by paul@keymail.dev d64ee01254f492dbb24ba2194f7cfc027bff13f2 parent 4285cf3
7 files changed, +890 −0
  • docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md +559 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-domain-renewals-plan-R1.md +63 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-domain-renewals-plan-R2.md +95 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-domain-renewals-plan-R3.md +54 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-domain-renewals-plan-R2.md +41 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-domain-renewals-plan-R3.md +43 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-domain-renewals-plan.md +35 −0

CI failed — run details

CI log
=== gate ===
go: downloading go1.26.10 (linux/arm64)
go version go1.26.10 linux/arm64
opentofu: arm64, tofu 1.13.9, aws 6.73.0, archive 2.8.1
  tofu: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/tofu_1.13.9_linux_arm64.tar.gz
  tofu: downloaded, digest verified
  aws: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-aws_6.73.0_linux_arm64.zip
  aws: downloaded, digest verified
  archive: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-archive_2.8.1_linux_arm64.zip
  archive: downloaded, digest verified
  installed in /tmp/carlos-opentofu-4gjNYd
.amadan/test-gate.sh
go: downloading github.com/aws/aws-sdk-go-v2 v1.44.0
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.68.0
go: downloading github.com/aws/aws-sdk-go-v2/service/costexplorer v1.67.5
go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading golang.org/x/net v0.62.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/config v1.32.6
go: downloading golang.org/x/crypto v0.58.0
go: downloading github.com/aws/aws-sdk-go-v2/service/sns v1.43.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.324.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/iam v1.58.2
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 github.com/oschwald/maxminddb-golang v1.13.1
go: downloading github.com/aws/aws-sdk-go-v2/credentials v1.19.6
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/prometheus/client_model v0.5.0
go: downloading github.com/prometheus/common v0.45.0
go: downloading github.com/prometheus/procfs v0.12.0
go: downloading google.golang.org/protobuf v1.36.10
go: downloading github.com/aws/aws-sdk-go-v2/service/signin v1.0.4
go: downloading golang.org/x/text v0.43.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.14
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.23
go: downloading github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0
go: downloading github.com/pion/transport/v4 v4.0.2
go: downloading github.com/pion/dtls/v3 v3.1.4
go: downloading github.com/pion/randutil v0.1.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/pion/dtls/v3 v3.1.4
go: downloading github.com/pion/transport/v4 v4.0.2
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/libc v1.74.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading modernc.org/memory v1.11.0
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
=== launchctx (4 s, from +0 s)
ok  	amadan.net/carlos/platform.git/launchctx	0.016s
?   	amadan.net/carlos/platform.git/launchctx/controlname	[no test files]
?   	amadan.net/carlos/platform.git/launchctx/wireid	[no test files]
=== vet (179 s, from +0 s)
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/pion/dtls/v3 v3.1.4
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/memory v1.11.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/google/uuid v1.6.0
go: downloading github.com/dustin/go-humanize v1.0.1
=== vet-tags (193 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 github.com/pion/dtls/v3 v3.1.4
go: downloading github.com/pion/transport/v4 v4.0.2
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/memory v1.11.0
go: downloading github.com/google/uuid v1.6.0
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
=== gofmt (1 s, from +0 s)
gofmt -l .: clean
=== rest (387 s, from +14 s)
ok  	github.com/carlosframework/platform/cmd/carlos-media	120.744s
?   	github.com/carlosframework/platform/cmd/changelog	[no test files]
ok  	github.com/carlosframework/platform/cmd/console	208.955s
ok  	github.com/carlosframework/platform/cmd/mediaimage	42.789s
ok  	github.com/carlosframework/platform/cmd/moveprobe	16.118s
ok  	github.com/carlosframework/platform/cmd/pricebook-export	0.049s
ok  	github.com/carlosframework/platform/cmd/rootfswitness	0.149s
ok  	github.com/carlosframework/platform/cmd/runsc-assets	0.183s
ok  	github.com/carlosframework/platform/cmd/zddprobe	0.992s
ok  	github.com/carlosframework/platform/internal/agentsock	0.046s
ok  	github.com/carlosframework/platform/internal/alerting	0.024s
ok  	github.com/carlosframework/platform/internal/analytics	0.385s
ok  	github.com/carlosframework/platform/internal/appconfig	43.006s
ok  	github.com/carlosframework/platform/internal/apperr	0.384s
ok  	github.com/carlosframework/platform/internal/applog	3.386s
ok  	github.com/carlosframework/platform/internal/apppolicy	2.343s
ok  	github.com/carlosframework/platform/internal/assetcache	0.637s
ok  	github.com/carlosframework/platform/internal/awsinv	0.012s
ok  	github.com/carlosframework/platform/internal/awsmanaged	13.071s
ok  	github.com/carlosframework/platform/internal/awsregiongroup	0.644s
ok  	github.com/carlosframework/platform/internal/awsterminations	0.012s
ok  	github.com/carlosframework/platform/internal/backupswords	0.019s
ok  	github.com/carlosframework/platform/internal/billing	0.050s
ok  	github.com/carlosframework/platform/internal/billing/billingtest	0.021s
ok  	github.com/carlosframework/platform/internal/billingstripe	1.895s
ok  	github.com/carlosframework/platform/internal/boxchoice	0.025s
ok  	github.com/carlosframework/platform/internal/boxid	2.294s
?   	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.013s
ok  	github.com/carlosframework/platform/internal/boxself	0.158s
ok  	github.com/carlosframework/platform/internal/boxvolumes	0.058s
ok  	github.com/carlosframework/platform/internal/caps	4.204s
ok  	github.com/carlosframework/platform/internal/certwarm	0.008s
ok  	github.com/carlosframework/platform/internal/cgroup	1.413s
ok  	github.com/carlosframework/platform/internal/changelog	4.104s
ok  	github.com/carlosframework/platform/internal/clamd	0.076s
?   	github.com/carlosframework/platform/internal/cliflag	[no test files]
ok  	github.com/carlosframework/platform/internal/clireg	0.014s
ok  	github.com/carlosframework/platform/internal/codehealth	16.618s
ok  	github.com/carlosframework/platform/internal/compute	0.015s
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	11.903s
ok  	github.com/carlosframework/platform/internal/dbdoor/dbdoortest	0.045s
ok  	github.com/carlosframework/platform/internal/dbquery	0.015s
ok  	github.com/carlosframework/platform/internal/dbreads	2.781s
?   	github.com/carlosframework/platform/internal/dbreads/dbreadstest	[no test files]
ok  	github.com/carlosframework/platform/internal/dbverify	0.020s
ok  	github.com/carlosframework/platform/internal/demo	0.006s
ok  	github.com/carlosframework/platform/internal/demobuild	4.124s
ok  	github.com/carlosframework/platform/internal/democlaim	0.670s
ok  	github.com/carlosframework/platform/internal/devbox	13.870s
ok  	github.com/carlosframework/platform/internal/dnsrec	0.016s
ok  	github.com/carlosframework/platform/internal/docsite	0.112s
ok  	github.com/carlosframework/platform/internal/domainreg	0.009s
ok  	github.com/carlosframework/platform/internal/domains	74.391s
ok  	github.com/carlosframework/platform/internal/doorkey	0.025s
ok  	github.com/carlosframework/platform/internal/economics	0.018s
ok  	github.com/carlosframework/platform/internal/edgefence	0.071s
ok  	github.com/carlosframework/platform/internal/edgeguard	0.301s
?   	github.com/carlosframework/platform/internal/edgeproof	[no test files]
ok  	github.com/carlosframework/platform/internal/edgesfile	0.081s
ok  	github.com/carlosframework/platform/internal/egressaddr	0.007s
ok  	github.com/carlosframework/platform/internal/execsandbox	107.547s
ok  	github.com/carlosframework/platform/internal/fileacl	0.007s
ok  	github.com/carlosframework/platform/internal/fleetapi	1.978s
ok  	github.com/carlosframework/platform/internal/fleetstore	0.006s
ok  	github.com/carlosframework/platform/internal/fxrate	0.015s
ok  	github.com/carlosframework/platform/internal/gate	4.824s
ok  	github.com/carlosframework/platform/internal/genselect	0.088s
ok  	github.com/carlosframework/platform/internal/geo	0.063s
ok  	github.com/carlosframework/platform/internal/geoip	0.100s
ok  	github.com/carlosframework/platform/internal/groupadmission	0.009s
ok  	github.com/carlosframework/platform/internal/grouprollaws	16.461s
ok  	github.com/carlosframework/platform/internal/hadeparture	0.015s
ok  	github.com/carlosframework/platform/internal/hafresh	0.011s
ok  	github.com/carlosframework/platform/internal/hairpin	0.231s
ok  	github.com/carlosframework/platform/internal/historyreadback	1.189s
ok  	github.com/carlosframework/platform/internal/hostactors	23.033s
ok  	github.com/carlosframework/platform/internal/hostbox	24.587s
ok  	github.com/carlosframework/platform/internal/hostclaim	2.514s
ok  	github.com/carlosframework/platform/internal/hostenv	0.045s
ok  	github.com/carlosframework/platform/internal/hostevidence	0.029s
ok  	github.com/carlosframework/platform/internal/hostexec	23.149s
ok  	github.com/carlosframework/platform/internal/hostfence	0.192s
ok  	github.com/carlosframework/platform/internal/hostfiles	26.983s
ok  	github.com/carlosframework/platform/internal/hostfloor	0.278s
ok  	github.com/carlosframework/platform/internal/hostguard	1.455s
ok  	github.com/carlosframework/platform/internal/hostops	6.838s
?   	github.com/carlosframework/platform/internal/hostops/fencerelease	[no test files]
ok  	github.com/carlosframework/platform/internal/hostops/internal/fencerelease	0.012s
ok  	github.com/carlosframework/platform/internal/hostquarantine	0.005s
ok  	github.com/carlosframework/platform/internal/hostrelocate	1.813s
ok  	github.com/carlosframework/platform/internal/hostresolve	0.472s
ok  	github.com/carlosframework/platform/internal/hostwrite	0.006s
ok  	github.com/carlosframework/platform/internal/infraview	0.012s
ok  	github.com/carlosframework/platform/internal/ingresshealth	0.009s
ok  	github.com/carlosframework/platform/internal/ingresshealth/awstg	0.011s
ok  	github.com/carlosframework/platform/internal/instancectl	67.247s
ok  	github.com/carlosframework/platform/internal/instanceexec	8.920s
ok  	github.com/carlosframework/platform/internal/instancefs	16.771s
ok  	github.com/carlosframework/platform/internal/instancekey	0.009s
ok  	github.com/carlosframework/platform/internal/instanceupdates	0.024s
ok  	github.com/carlosframework/platform/internal/interactive	0.744s
ok  	github.com/carlosframework/platform/internal/launchd	0.005s
ok  	github.com/carlosframework/platform/internal/layout	23.658s
ok  	github.com/carlosframework/platform/internal/layout/pubclass	103.287s
ok  	github.com/carlosframework/platform/internal/lbhealth	0.010s
ok  	github.com/carlosframework/platform/internal/lease	147.639s
ok  	github.com/carlosframework/platform/internal/lease/leasetest	1.300s
ok  	github.com/carlosframework/platform/internal/lease/locktest	0.027s
ok  	github.com/carlosframework/platform/internal/ledger	0.081s
ok  	github.com/carlosframework/platform/internal/mail	1.247s
ok  	github.com/carlosframework/platform/internal/mailer	0.869s
ok  	github.com/carlosframework/platform/internal/mailsubmit	1.165s
ok  	github.com/carlosframework/platform/internal/mailwire	0.004s
ok  	github.com/carlosframework/platform/internal/maintenance	0.212s
ok  	github.com/carlosframework/platform/internal/maintenanceexec	8.468s
ok  	github.com/carlosframework/platform/internal/maintenanceguard	0.314s
ok  	github.com/carlosframework/platform/internal/managedboot	3.653s
?   	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.861s
ok  	github.com/carlosframework/platform/internal/media/mediatest	0.016s
ok  	github.com/carlosframework/platform/internal/mediaaws	63.370s
ok  	github.com/carlosframework/platform/internal/mediahandler	44.517s
ok  	github.com/carlosframework/platform/internal/mediajobs	1.023s
ok  	github.com/carlosframework/platform/internal/medialocal	9.948s
ok  	github.com/carlosframework/platform/internal/metrics	0.112s
ok  	github.com/carlosframework/platform/internal/minorunits	0.008s
ok  	github.com/carlosframework/platform/internal/moves	56.340s
ok  	github.com/carlosframework/platform/internal/moves/archive	2.723s
ok  	github.com/carlosframework/platform/internal/moves/offlinerun	0.110s
ok  	github.com/carlosframework/platform/internal/namedunits	0.024s
ok  	github.com/carlosframework/platform/internal/objstore	2.664s
ok  	github.com/carlosframework/platform/internal/ops	17.992s
ok  	github.com/carlosframework/platform/internal/pageindex	4.084s
ok  	github.com/carlosframework/platform/internal/parity	0.132s
?   	github.com/carlosframework/platform/internal/parity/cmd/parity-doc	[no test files]
ok  	github.com/carlosframework/platform/internal/park	0.740s
ok  	github.com/carlosframework/platform/internal/perf	0.189s
ok  	github.com/carlosframework/platform/internal/plans	0.092s
ok  	github.com/carlosframework/platform/internal/privatefile	0.012s
ok  	github.com/carlosframework/platform/internal/provision	237.124s
ok  	github.com/carlosframework/platform/internal/proxyproto	0.967s
ok  	github.com/carlosframework/platform/internal/publicrelease	0.072s
ok  	github.com/carlosframework/platform/internal/ratelimit	0.293s
ok  	github.com/carlosframework/platform/internal/regionlabel	0.066s
ok  	github.com/carlosframework/platform/internal/regionname	0.058s
ok  	github.com/carlosframework/platform/internal/registrar	0.017s
ok  	github.com/carlosframework/platform/internal/registrar/openprovider	0.638s
?   	github.com/carlosframework/platform/internal/registrar/registrartest	[no test files]
ok  	github.com/carlosframework/platform/internal/registry	84.847s
ok  	github.com/carlosframework/platform/internal/relay	7.631s
ok  	github.com/carlosframework/platform/internal/release	125.533s
?   	github.com/carlosframework/platform/internal/release/requestwitness	[no test files]
ok  	github.com/carlosframework/platform/internal/replicagen	0.039s
ok  	github.com/carlosframework/platform/internal/replicas	0.069s
ok  	github.com/carlosframework/platform/internal/reqrec	7.574s
ok  	github.com/carlosframework/platform/internal/rollout	10.788s
ok  	github.com/carlosframework/platform/internal/rolloutwords	0.020s
ok  	github.com/carlosframework/platform/internal/rootaws	102.716s
ok  	github.com/carlosframework/platform/internal/rootfsimage	1.158s
ok  	github.com/carlosframework/platform/internal/rootparticipation	0.119s
ok  	github.com/carlosframework/platform/internal/rootstate	0.084s
ok  	github.com/carlosframework/platform/internal/runs	1.139s
ok  	github.com/carlosframework/platform/internal/s3compat	0.027s
ok  	github.com/carlosframework/platform/internal/s3fake	1.193s
ok  	github.com/carlosframework/platform/internal/s3meter	0.540s
ok  	github.com/carlosframework/platform/internal/safefile	0.025s
ok  	github.com/carlosframework/platform/internal/schedule	23.574s
ok  	github.com/carlosframework/platform/internal/seeds	0.064s
ok  	github.com/carlosframework/platform/internal/share	0.066s
ok  	github.com/carlosframework/platform/internal/sim/litestreamfacts	5.260s
ok  	github.com/carlosframework/platform/internal/sim/mediajobs	51.972s
ok  	github.com/carlosframework/platform/internal/sim/regionha	23.943s
ok  	github.com/carlosframework/platform/internal/status	0.459s
ok  	github.com/carlosframework/platform/internal/steering	0.348s
ok  	github.com/carlosframework/platform/internal/stopevidence	0.450s
ok  	github.com/carlosframework/platform/internal/storecfg	0.303s
ok  	github.com/carlosframework/platform/internal/svcrole	0.012s
ok  	github.com/carlosframework/platform/internal/systemd	6.418s
?   	github.com/carlosframework/platform/internal/systemdshow	[no test files]
ok  	github.com/carlosframework/platform/internal/team	4.205s
ok  	github.com/carlosframework/platform/internal/teamcontract	0.104s
ok  	github.com/carlosframework/platform/internal/telemetry	0.018s
ok  	github.com/carlosframework/platform/internal/termfence	3.122s
ok  	github.com/carlosframework/platform/internal/timerspec	0.022s
ok  	github.com/carlosframework/platform/internal/tsidentity	4.182s
ok  	github.com/carlosframework/platform/internal/tunnelclient	0.445s
ok  	github.com/carlosframework/platform/internal/unixdial	0.020s
ok  	github.com/carlosframework/platform/internal/updatewords	0.031s
ok  	github.com/carlosframework/platform/internal/upstreamguard	0.011s
?   	github.com/carlosframework/platform/internal/upstreamguard/guardtest	[no test files]
ok  	github.com/carlosframework/platform/internal/usage	0.023s
ok  	github.com/carlosframework/platform/internal/version	0.005s
ok  	github.com/carlosframework/platform/internal/vet	3.320s
ok  	github.com/carlosframework/platform/internal/zonehost	0.031s
ok  	github.com/carlosframework/platform/internal/zonehost/route53zones	0.100s
?   	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.016s
ok  	github.com/carlosframework/platform/scripts/pathmapcheck	0.122s
ok  	github.com/carlosframework/platform/scripts/region-ha-g2/fixture	5.202s
ok  	github.com/carlosframework/platform/scripts/stateless-replicas-drill	1.205s
ok  	github.com/carlosframework/platform/scripts/witness-pointer	0.028s
=== cutover-witness (155 s, from +14 s)
ok  	github.com/carlosframework/platform	2.481s
=== internal_grouproll@0 (270 s, from +75 s)
ok  	github.com/carlosframework/platform/internal/grouproll	269.709s
=== internal_grouproll@1 (275 s, from +75 s)
ok  	github.com/carlosframework/platform/internal/grouproll	273.992s
=== internal_activator@0 (155 s, from +141 s)
ok  	github.com/carlosframework/platform/internal/activator	150.231s
=== internal_activator@1 (134 s, from +141 s)
ok  	github.com/carlosframework/platform/internal/activator	129.848s
=== internal_activator@2 (137 s, from +141 s)
ok  	github.com/carlosframework/platform/internal/activator	133.034s
=== internal_activator@3 (180 s, from +141 s)
ok  	github.com/carlosframework/platform/internal/activator	175.121s
=== root@0 (124 s, from +168 s)
ok  	github.com/carlosframework/platform	112.041s
=== root@1 (118 s, from +168 s)
ok  	github.com/carlosframework/platform	107.828s
=== root@2 (126 s, from +168 s)
ok  	github.com/carlosframework/platform	116.633s
=== root@3 (118 s, from +168 s)
ok  	github.com/carlosframework/platform	106.911s
=== root@4 (124 s, from +168 s)
ok  	github.com/carlosframework/platform	112.124s
=== internal_edge@0 (251 s, from +174 s)
ok  	github.com/carlosframework/platform/internal/edge	242.216s
=== internal_edge@1 (133 s, from +174 s)
ok  	github.com/carlosframework/platform/internal/edge	123.335s
=== internal_edge@2 (172 s, from +174 s)
ok  	github.com/carlosframework/platform/internal/edge	162.742s
=== internal_edge@3 (151 s, from +174 s)
ok  	github.com/carlosframework/platform/internal/edge	142.645s
=== internal_host@0 (166 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/host	161.140s
=== internal_host@1 (241 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/host	236.232s
=== internal_host@2 (141 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/host	135.181s
=== internal_host@3 (276 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/host	271.192s
=== internal_host@4 (155 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/host	150.301s
=== internal_host@5 (193 s, from +217 s)
ok  	github.com/carlosframework/platform/internal/host	187.468s
=== internal_console@0 (179 s, from +227 s)
ok  	github.com/carlosframework/platform/internal/console	171.109s
=== internal_console@1 (177 s, from +227 s)
ok  	github.com/carlosframework/platform/internal/console	170.256s
=== internal_console@2 (240 s, from +227 s)
ok  	github.com/carlosframework/platform/internal/console	232.341s
=== internal_console@3 (259 s, from +227 s)
ok  	github.com/carlosframework/platform/internal/console	251.656s
=== internal_console@4 (226 s, from +227 s)
ok  	github.com/carlosframework/platform/internal/console	218.942s
=== internal_console@5 (249 s, from +227 s)
ok  	github.com/carlosframework/platform/internal/console	241.848s
=== internal_console@6 (215 s, from +227 s)
ok  	github.com/carlosframework/platform/internal/console	208.123s
=== internal_console@7 (233 s, from +227 s)
ok  	github.com/carlosframework/platform/internal/console	225.538s
=== internal_console@8 (240 s, from +227 s)
ok  	github.com/carlosframework/platform/internal/console	232.783s
=== internal_console@9 (240 s, from +227 s)
ok  	github.com/carlosframework/platform/internal/console	231.807s
=== internal_console@10 (242 s, from +227 s)
ok  	github.com/carlosframework/platform/internal/console	234.475s
=== internal_console@11 (242 s, from +227 s)
ok  	github.com/carlosframework/platform/internal/console	233.876s
=== internal_console@12 (365 s, from +227 s)
ok  	github.com/carlosframework/platform/internal/console	358.440s
=== internal_console@13 (213 s, from +227 s)
ok  	github.com/carlosframework/platform/internal/console	204.759s
=== internal_console@14 (209 s, from +227 s)
ok  	github.com/carlosframework/platform/internal/console	201.354s
=== internal_console@15 (226 s, from +227 s)
ok  	github.com/carlosframework/platform/internal/console	217.879s
=== internal_console@16 (227 s, from +228 s)
ok  	github.com/carlosframework/platform/internal/console	219.914s
=== internal_console@17 (252 s, from +228 s)
ok  	github.com/carlosframework/platform/internal/console	244.983s
=== internal_console@18 (280 s, from +228 s)
ok  	github.com/carlosframework/platform/internal/console	273.784s
=== internal_console@19 (241 s, from +228 s)
ok  	github.com/carlosframework/platform/internal/console	234.097s
=== internal_console@20 (215 s, from +228 s)
ok  	github.com/carlosframework/platform/internal/console	207.433s
=== internal_console@21 (239 s, from +228 s)
ok  	github.com/carlosframework/platform/internal/console	232.316s
=== internal_console@22 (238 s, from +228 s)
ok  	github.com/carlosframework/platform/internal/console	230.326s
=== internal_console@23 (233 s, from +228 s)
ok  	github.com/carlosframework/platform/internal/console	225.306s
=== lists: internal_console 226 s, internal_edge 173 s, internal_activator 140 s, internal_host 216 s, root 167 s, internal_grouproll 74 s
=== cpu: the gate used 13073 cpu-seconds in 593 s, about 22.0 of 32 cores; the machine as a whole was 74% busy
=== opentofu ===
opentofu: 39 test files in 11 suites, OpenTofu v1.13.9
  initialised in 14 s
  ok      19 s  infra/modules/box-fence-writer/tests/writer.tftest.hcl  Success! 1 passed, 0 failed.
  ok      17 s  infra/modules/deployment-buckets/tests/console_floors.tftest.hcl  Success! 1 passed, 0 failed.
  ok      31 s  infra/modules/deployment-buckets/tests/data_lifecycle.tftest.hcl  Success! 3 passed, 0 failed.
  ok      17 s  infra/modules/deployment-buckets/tests/db_reads.tftest.hcl  Success! 1 passed, 0 failed.
  ok      19 s  infra/modules/deployment-buckets/tests/evidence.tftest.hcl  Success! 1 passed, 0 failed.
  ok      29 s  infra/modules/deployment-buckets/tests/fence_writers.tftest.hcl  Success! 3 passed, 0 failed.
  ok      21 s  infra/modules/deployment-buckets/tests/media_results.tftest.hcl  Success! 2 passed, 0 failed.
  ok      85 s  infra/modules/media-engine/tests/media_engine.tftest.hcl  Success! 24 passed, 0 failed.
  ok      27 s  infra/modules/pdf-host/tests/computed.tftest.hcl  Success! 2 passed, 0 failed.
  ok      60 s  infra/modules/pdf-host/tests/pdf_host.tftest.hcl  Success! 24 passed, 0 failed.
  ok      42 s  infra/modules/region-group-operator-document/tests/document.tftest.hcl  Success! 12 passed, 0 failed.
  ok      19 s  infra/modules/region-host/ingress/tests/fixed-targets/tests/targets.tftest.hcl  Success! 2 passed, 0 failed.
  ok      65 s  infra/modules/region-host/ingress/tests/group_ingress.tftest.hcl  Success! 30 passed, 0 failed.
  ok      46 s  infra/modules/region-host/tests/alert_publish.tftest.hcl  Success! 18 passed, 0 failed.
  ok      42 s  infra/modules/region-host/tests/alerts_topic.tftest.hcl  Success! 16 passed, 0 failed.
  ok      11 s  infra/modules/region-host/tests/analytics_prune.tftest.hcl  Success! 2 passed, 0 failed.
  ok      16 s  infra/modules/region-host/tests/console_mail.tftest.hcl  Success! 4 passed, 0 failed.
  ok       9 s  infra/modules/region-host/tests/fixed_state_unchanged.tftest.hcl  Success! 1 passed, 0 failed.
  ok      70 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      30 s  infra/modules/region-host/tests/group_operator.tftest.hcl  Success! 13 passed, 0 failed.
  ok       8 s  infra/modules/region-host/tests/group_user_data.tftest.hcl  Success! 3 passed, 0 failed.
  ok      25 s  infra/modules/region-host/tests/health_alarms.tftest.hcl  Success! 10 passed, 0 failed.
  ok       9 s  infra/modules/region-host/tests/ingress_drain_read.tftest.hcl  Success! 4 passed, 0 failed.
  ok       5 s  infra/modules/region-host/tests/instance_metadata.tftest.hcl  Success! 1 passed, 0 failed.
  ok      18 s  infra/modules/region-host/tests/mailer.tftest.hcl  Success! 6 passed, 0 failed.
  ok       9 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     110 s  infra/modules/region-host/tests/managed_fleets/managed_fleets.tftest.hcl  Success! 46 passed, 0 failed.
  ok      68 s  infra/modules/region-host/tests/store_conversion.tftest.hcl  Success! 27 passed, 0 failed.
  ok      20 s  infra/modules/region-host/tests/store_scanning.tftest.hcl  Success! 4 passed, 0 failed.
  ok      33 s  infra/modules/region-host/tests/store_versioning.tftest.hcl  Success! 11 passed, 0 failed.
  ok      18 s  infra/modules/region-host/tests/store_write_credentials.tftest.hcl  Success! 4 passed, 0 failed.
  ok      20 s  infra/modules/region-host/tests/user_data_ignored.tftest.hcl  Success! 3 passed, 0 failed.
  ok      13 s  infra/modules/region-remote-host/tests/data_lifecycle.tftest.hcl  Success! 3 passed, 0 failed.
  ok      16 s  infra/modules/region-remote-host/tests/no_deployment_bucket.tftest.hcl  Success! 5 passed, 0 failed.
  ok      26 s  infra/modules/scanner-host/tests/scanner_host.tftest.hcl  Success! 14 passed, 0 failed.
opentofu: 39 files in 210 s
opentofu: PASS
=== cross ===
--- shard 0 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling darwin/arm64
--- shard 1 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling darwin/amd64
--- shard 2 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling linux/arm64
linux/arm64 carlos binary: 66584738 bytes (ceiling 70000000)
--- shard 3 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling windows/amd64
--- shard 4 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling windows/arm64
=== minio-contract ===
go version go1.26.10 linux/arm64
minio contract: arm64, minio RELEASE.2025-09-07T16-13-09Z, mc RELEASE.2025-08-13T08-35-41Z
  minio: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/minio/minio.linux-arm64.RELEASE.2025-09-07T16-13-09Z
  minio: downloaded, digest verified
  mc: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/minio/mc.linux-arm64.RELEASE.2025-08-13T08-35-41Z
  mc: downloaded, digest verified
  minio healthy on 127.0.0.1:38793
Added `local` successfully.
Bucket created successfully `local/contract-bucket`.
Bucket created successfully `local/denied-bucket`.
Created policy `contract-only` successfully.
Added user `scopeduser` successfully.
Attached Policies: [contract-only]
To User: scopeduser
  buckets and scoped user ready
=== RUN   TestDeliveredContractMinio
=== RUN   TestDeliveredContractMinio/put
=== RUN   TestDeliveredContractMinio/get_round-trips_the_body
=== RUN   TestDeliveredContractMinio/list_shows_the_key
=== RUN   TestDeliveredContractMinio/head_and_list_agree_on_the_version
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_its_own_object
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/not_by_PutObjectTagging
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/and_not_by_x-amz-tagging_on_upload
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CreateMultipartUpload
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CopyObject_with_a_REPLACE_tagging_directive
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/but_multipart_itself_is_allowed
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_copy_itself_is_allowed
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/a_POST-policy_forged_tag_with_a_matching_version_is_still_not_a_verdict
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_an_ordinary_tagged-with-something-else_upload_is_allowed
=== RUN   TestDeliveredContractMinio/delete_removes_it
=== RUN   TestDeliveredContractMinio/cross-bucket_denial
--- PASS: TestDeliveredContractMinio (0.03s)
    --- PASS: TestDeliveredContractMinio/put (0.00s)
    --- PASS: TestDeliveredContractMinio/get_round-trips_the_body (0.00s)
    --- PASS: TestDeliveredContractMinio/list_shows_the_key (0.00s)
    --- PASS: TestDeliveredContractMinio/head_and_list_agree_on_the_version (0.00s)
    --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/not_by_PutObjectTagging (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/and_not_by_x-amz-tagging_on_upload (0.00s)
    --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route (0.02s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CreateMultipartUpload (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CopyObject_with_a_REPLACE_tagging_directive (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/but_multipart_itself_is_allowed (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_copy_itself_is_allowed (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/a_POST-policy_forged_tag_with_a_matching_version_is_still_not_a_verdict (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_an_ordinary_tagged-with-something-else_upload_is_allowed (0.00s)
    --- PASS: TestDeliveredContractMinio/delete_removes_it (0.00s)
    --- PASS: TestDeliveredContractMinio/cross-bucket_denial (0.00s)
PASS
ok  	github.com/carlosframework/platform/internal/objstore	0.041s
=== RUN   TestT4StorageProbeMinio
2026/11/29 11:10:36 moves: T4: STORE: list: operation error S3: ListObjectsV2, https response error StatusCode: 403, RequestID: 18EC7F969E56DA2B, HostID: 7a04e2a48c3c3cd3eedf20189e4cfaa7a0f6669719990e7a5a1db8dc99962f72, api error SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.
--- PASS: TestT4StorageProbeMinio (0.01s)
PASS
ok  	github.com/carlosframework/platform/internal/host	0.045s
=== RUN   TestS3StoreMinioContract
=== RUN   TestS3StoreMinioContract/conditional_get_and_etag_listing
=== RUN   TestS3StoreMinioContract/bump_through_every_mutation_path
--- PASS: TestS3StoreMinioContract (0.04s)
    --- PASS: TestS3StoreMinioContract/conditional_get_and_etag_listing (0.01s)
    --- PASS: TestS3StoreMinioContract/bump_through_every_mutation_path (0.02s)
PASS
ok  	github.com/carlosframework/platform/internal/release	0.044s
Bucket created successfully `local/analytics-versions`.
local/analytics-versions versioning is enabled
Created policy `analytics-versions` successfully.
Added user `analyticsversions` successfully.
Attached Policies: [analytics-versions]
To User: analyticsversions
=== RUN   TestS3StoreMinioVersions
--- PASS: TestS3StoreMinioVersions (0.04s)
PASS
ok  	github.com/carlosframework/platform/internal/release	0.046s
Bucket created successfully `local/store-versioned`.
local/store-versioned versioning is enabled
Created policy `store-versioned` successfully.
Added user `storeversioned` successfully.
Attached Policies: [store-versioned]
To User: storeversioned
=== RUN   TestVersionedContractMinio
--- PASS: TestVersionedContractMinio (0.01s)
PASS
ok  	github.com/carlosframework/platform/internal/objstore	0.020s
Bucket created successfully `local/wc-bucket`.
Created policy `writer` successfully.
Added user `wcwriter` successfully.
Attached Policies: [writer]
To User: wcwriter
=== RUN   TestWriteCredentialContractMinio
=== RUN   TestWriteCredentialContractMinio/put_under_the_prefix
=== RUN   TestWriteCredentialContractMinio/multipart_under_the_prefix
=== RUN   TestWriteCredentialContractMinio/refused:_delete
=== RUN   TestWriteCredentialContractMinio/refused:_tag
=== RUN   TestWriteCredentialContractMinio/refused:_put_outside_the_prefix
=== RUN   TestWriteCredentialContractMinio/refused:_bucket_settings
=== RUN   TestWriteCredentialContractMinio/refused:_read_under_the_prefix
=== RUN   TestWriteCredentialContractMinio/refused:_read_elsewhere
=== RUN   TestWriteCredentialContractMinio/refused:_list
=== RUN   TestWriteCredentialContractMinio/refused:_put_tagged
=== RUN   TestWriteCredentialContractMinio/refused:_put_with_a_platform_tag
=== RUN   TestWriteCredentialContractMinio/refused:_put_beside_the_prefix
=== RUN   TestWriteCredentialContractMinio/refused:_put_to_another_bucket
=== RUN   TestWriteCredentialContractMinio/refused:_copy_from_the_store
=== RUN   TestWriteCredentialContractMinio/refused:_head
=== RUN   TestWriteCredentialContractMinio/refused:_list_uploads
--- PASS: TestWriteCredentialContractMinio (0.04s)
    --- PASS: TestWriteCredentialContractMinio/put_under_the_prefix (0.00s)
    --- PASS: TestWriteCredentialContractMinio/multipart_under_the_prefix (0.01s)
    --- PASS: TestWriteCredentialContractMinio/refused:_delete (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_tag (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_put_outside_the_prefix (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_bucket_settings (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_read_under_the_prefix (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_read_elsewhere (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_list (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_put_tagged (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_put_with_a_platform_tag (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_put_beside_the_prefix (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_put_to_another_bucket (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_copy_from_the_store (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_head (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_list_uploads (0.00s)
PASS
ok  	github.com/carlosframework/platform/internal/objstore	0.051s
=== RUN   TestEndToEndMinio
=== RUN   TestEndToEndMinio/plan
=== RUN   TestEndToEndMinio/roll
=== RUN   TestEndToEndMinio/replace
=== RUN   TestEndToEndMinio/remove
--- PASS: TestEndToEndMinio (0.48s)
    --- PASS: TestEndToEndMinio/plan (0.01s)
    --- PASS: TestEndToEndMinio/roll (0.13s)
    --- PASS: TestEndToEndMinio/replace (0.16s)
    --- PASS: TestEndToEndMinio/remove (0.16s)
PASS
ok  	github.com/carlosframework/platform/internal/grouproll	0.492s
Bucket created successfully `local/dbf-deploy`.
Bucket created successfully `local/dbf-data-ie`.
Bucket created successfully `local/dbf-data-uk`.
local/dbf-deploy versioning is enabled
Created policy `dbf-console` successfully.
Created policy `dbf-ukbox` successfully.
Added user `dbfconsole` successfully.
Added user `dbfukbox` successfully.
Attached Policies: [dbf-console]
To User: dbfconsole
Attached Policies: [dbf-ukbox]
To User: dbfukbox
=== RUN   TestDBForwardMinio
2026/11/29 11:10:45 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/29 11:10:45 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/11/29 11:10:45 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/11/29 11:10:45 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/11/29 11:10:45 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=370
2026/11/29 11:10:45 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000002
2026/11/29 11:10:45 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/11/29 11:10:45 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=454
2026/11/29 11:10:45 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/11/29 11:10:45 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/29 11:10:45 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/11/29 11:10:45 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/11/29 11:10:45 console: CARLOS_SECRETS_PUBKEY is unset, so no region outside the home can be chosen automatically
2026/11/29 11:10:45 console: could not notify member@example.com of a CLI token issue: keymail: lookup member@example.com: keymail: GET /api/federation/lookup?addr=member%40example.com&from=console%40127.0.0.1%3A34631: could not determine target mailbox
    agent.go:136: dbreads: dbr_ci2qajmc5wfrxvrfv2stjo54ry: planned 1 files (720 bytes) and restored to 1 in 13ms
    agent.go:136: dbreads: dbr_ci2qajmc5wfrxvrfv2stjo54ry: output 5 bytes in 1 confirmed chunks in 2ms
2026/11/29 11:10:46 console: db read dbr_ci2qajmc5wfrxvrfv2stjo54ry: relayed 1 chunks (102 bytes) in 1.006s, ended done
    agent.go:136: dbreads: dbr_6sriudxmttbyb4s2cogbudoj6y: planned 3 files (1544 bytes) and restored to 3 in 13ms
    agent.go:136: dbreads: dbr_6sriudxmttbyb4s2cogbudoj6y: output 5 bytes in 1 confirmed chunks in 2ms
2026/11/29 11:10:47 console: db read dbr_6sriudxmttbyb4s2cogbudoj6y: relayed 1 chunks (102 bytes) in 1.005s, ended done
    agent.go:136: dbreads: dbr_hocriq2djqtiv5sfpttkx2lpzi: planned 3 files (1544 bytes) and held through 3 in 12ms
    agent.go:136: dbreads: dbr_hocriq2djqtiv5sfpttkx2lpzi: output 1544 bytes in 1 confirmed chunks in 1ms
2026/11/29 11:10:48 console: db read dbr_hocriq2djqtiv5sfpttkx2lpzi: relayed 1 chunks (1641 bytes) in 1.005s, ended done
=== RUN   TestDBForwardMinio/by_disconnect
=== NAME  TestDBForwardMinio
    agent.go:136: dbreads: dbr_apftov7ao2kfd3v7eoakcr24kq: planned 3 files (1544 bytes) and restored to 3 in 14ms
2026/11/29 11:10:48 console: db read dbr_apftov7ao2kfd3v7eoakcr24kq: relayed 0 chunks (0 bytes) in 31ms, ended client gone
    agent.go:136: dbreads: dbr_apftov7ao2kfd3v7eoakcr24kq: output 5 bytes in 1 confirmed chunks in 105ms
=== RUN   TestDBForwardMinio/by_timeout
=== NAME  TestDBForwardMinio
    agent.go:136: dbreads: dbr_wdqeywgbakpp2b5vyqakeweihi: planned 3 files (1544 bytes) and restored to 3 in 13ms
2026/11/29 11:11:08 console: db read dbr_wdqeywgbakpp2b5vyqakeweihi: relayed 0 chunks (0 bytes) in 19.325s, ended no-result
    agent.go:136: dbreads: dbr_wdqeywgbakpp2b5vyqakeweihi: output 5 bytes in 1 confirmed chunks in 19.297s
--- PASS: TestDBForwardMinio (23.03s)
    --- PASS: TestDBForwardMinio/by_disconnect (0.24s)
    --- PASS: TestDBForwardMinio/by_timeout (19.44s)
PASS
ok  	github.com/carlosframework/platform/internal/console	23.073s
Bucket created successfully `local/media-transfers`.
Bucket created successfully `local/media-transfer-results`.
local/media-transfer-results versioning is enabled
Created policy `media-transfers` successfully.
Added user `mediatransfers` successfully.
Attached Policies: [media-transfers]
To User: mediatransfers
=== RUN   TestMediaTransfersMinio
    upload.go:117: codec: the store already holds video.mp4
    upload.go:117: codec: the store already holds video.m3u8
    upload.go:117: codec: the store already holds poster.jpg
--- PASS: TestMediaTransfersMinio (0.07s)
PASS
ok  	github.com/carlosframework/platform/internal/mediaaws	0.081s
Bucket created successfully `local/media-local-store`.
Bucket created successfully `local/media-local-results`.
Created policy `media-local` successfully.
Added user `medialocal` successfully.
Attached Policies: [media-local]
To User: medialocal
=== RUN   TestLocalEndToEndMinio
--- PASS: TestLocalEndToEndMinio (0.57s)
PASS
ok  	github.com/carlosframework/platform/internal/medialocal	0.579s
=== RUN   TestHeldHandoverTwoBoxMinio
2026/11/29 11:11:13 edge: mesh key: minted
2026/11/29 11:11:13 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/29 11:11:13 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/29 11:11:13 tenant admission is open. accepting tenant work
2026/11/29 11:11:13 activator: HA placement host=shop-70f3fba8.example.test kind=Place ref=annie reason=roomiest generation=2026-11-29T11:11:13Z lock_generation=0
2026/11/29 11:11:13 lease: t8-70f3fba8/shop-70f3fba8.example.test: HA lease acquired in 4ms (first wake)
2026/11/29 11:11:13 activator: shop-70f3fba8.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:11:13 activator: shop-70f3fba8.example.test: started carlos-instance@shop\x2d70f3fba8.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 6ms, control socket 0s, key gate 0s, logs 0s) 7ms, launch file 0s, gate 0s, root start 1ms)
2026/11/29 11:11:13 activator: shop-70f3fba8.example.test: carlos-instance@shop\x2d70f3fba8.example.test.service launched in 8ms, healthy 0s later
2026/11/29 11:11:13 activator: shop-70f3fba8.example.test: woke in 20ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 8ms, replicate 7ms
2026/11/29 11:11:13 lease: t8-70f3fba8/plain-70f3fba8.example.test: acquired in 2ms (client 0s, lock read and write 1ms)
2026/11/29 11:11:13 activator: no replica for plain-70f3fba8.example.test in s3://contract-bucket/t8-70f3fba8/plain-70f3fba8.example.test — booting fresh
2026/11/29 11:11:13 activator: plain-70f3fba8.example.test: started carlos-instance@plain\x2d70f3fba8.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 1ms, instance key 0s, env 5ms, control socket 0s, key gate 0s, logs 0s) 7ms, launch file 0s, gate 0s, root start 1ms)
2026/11/29 11:11:13 activator: plain-70f3fba8.example.test: carlos-instance@plain\x2d70f3fba8.example.test.service launched in 8ms, healthy 0s later
2026/11/29 11:11:13 activator: plain-70f3fba8.example.test: woke in 96ms: checks 0s, lease 2ms, restore 18ms, identity 0s, protect 0s, spawn 8ms, replicate 68ms
2026/11/29 11:11:13 lease: t8-70f3fba8/bot0.shop.bac.sidecar.internal: HA lease acquired in 4ms (first wake)
2026/11/29 11:11:13 activator: bot0.shop.bac.sidecar.internal: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:11:13 activator: bot0.shop.bac.sidecar.internal: woke in 70ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 7ms, settle 0s, replicate 57ms
2026/11/29 11:11:13 activator: next-due probe plain-70f3fba8.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/29 11:11:13 activator: plain-70f3fba8.example.test hibernated
2026/11/29 11:11:13 activator: next-due probe shop-70f3fba8.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/29 11:11:13 activator: bot0.shop.bac.sidecar.internal: released with a marker (clean true, txid 1, files 3:c57354587613627d03ee1ce2666fe2d9c5dc0ba1a8e755cb2702dc8f33e61db6) in 7ms: files 1ms, sync 4ms, record 1ms, marker 2ms
2026/11/29 11:11:13 activator: bot0.shop.bac.sidecar.internal hibernated
2026/11/29 11:11:13 activator: shop-70f3fba8.example.test: released with a marker (clean true, txid 1, files 3:1ff6dcfe1947823f99d1ad1fea68b494438679f9cc6b0ee0efeeb785ad98982e) in 6ms: files 1ms, sync 3ms, record 1ms, marker 2ms
2026/11/29 11:11:13 activator: shop-70f3fba8.example.test hibernated
2026/11/29 11:11:13 lease: t8-70f3fba8/shop-70f3fba8.example.test: HA lease acquired in 3ms (clean marker)
2026/11/29 11:11:13 activator: shop-70f3fba8.example.test: restored (other-box)
2026/11/29 11:11:13 activator: shop-70f3fba8.example.test: started carlos-instance@shop\x2d70f3fba8.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 1ms, control socket 0s, key gate 0s, logs 0s) 1ms, launch file 0s, gate 0s, root start 1ms)
2026/11/29 11:11:13 activator: shop-70f3fba8.example.test: carlos-instance@shop\x2d70f3fba8.example.test.service launched in 2ms, healthy 0s later
2026/11/29 11:11:13 activator: shop-70f3fba8.example.test: woke in 40ms: checks 0s, lease 4ms, restore 26ms, identity 0s, protect 0s, spawn 2ms, replicate 8ms
2026/11/29 11:11:13 edge: ha-take shop-70f3fba8.example.test from annie (txn t8-witness, marker generation 1): holder betty, generation 2
2026/11/29 11:11:13 edge: forward shop-70f3fba8.example.test: annie handed the request over to betty; sending it there (occurrence #1)
    hadrain_twobox_minio_linux_test.go:1238: drain report: {V:1 Transaction:t8-witness Incarnation:a59c1d40d2812c0471f041ec4c1b6f94 Step:move Result:ok Reasons:[] Fence:t8-witness StartedAt:2026-11-29 11:11:13.734388486 +0000 UTC FinishedAt:2026-11-29 11:11:13.832574146 +0000 UTC Acked:[betty carol] Departed:[] Moved:[{Host:shop-70f3fba8.example.test Holder:betty Gen:2 Confirmed:take}] Released:[{Host:plain-70f3fba8.example.test Kind:other Marker:true Clean:true Reason:} {Host:bot0.shop.bac.sidecar.internal Kind:worker Marker:true Clean:true Reason:}] Unclean:[] Left:[] Holds:{LongestMS:84 Todays:0 RefusedAtOnce:1} Closed:0 Quiet:{DrainQuiet:{Waking:0 Stopping:0 Recovering:0 Owed:0} Held:[]}}
    hadrain_twobox_minio_linux_test.go:1239: driver calls: [begin shop-70f3fba8.example.test <nil> stop plain-70f3fba8.example.test marker=true clean=true <nil> releasing shop-70f3fba8.example.test <nil> stop bot0.shop.bac.sidecar.internal marker=true clean=true <nil> stop shop-70f3fba8.example.test marker=true clean=true <nil> taken shop-70f3fba8.example.test betty <nil> end-moves]
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-70f3fba8/shop-70f3fba8.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: DELETE /contract-bucket/t8-70f3fba8/plain-70f3fba8.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-70f3fba8/bot0.shop.bac.sidecar.internal/0009/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-70f3fba8/bot0.shop.bac.sidecar.internal/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-70f3fba8/shop-70f3fba8.example.test/0009/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-70f3fba8/shop-70f3fba8.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-70f3fba8/shop-70f3fba8.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-70f3fba8/shop-70f3fba8.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-70f3fba8/shop-70f3fba8.example.test/head.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/generations/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0008/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0007/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0006/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0005/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0004/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0008/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0007/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0006/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0005/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0004/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-70f3fba8/shop-70f3fba8.example.test/0009/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-70f3fba8/shop-70f3fba8.example.test/files/0/manifest.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-70f3fba8/shop-70f3fba8.example.test/files/0/objects/0000000000000001-aad17b742f1f1b3ba956a4b0f8488a50859edc4af6208d64d30321f12f30b1f2
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-70f3fba8/shop-70f3fba8.example.test/files/0/objects/0000000000000003-50af6fcd248747fb2036c545199844779950b7cb6f57e901be2a018d91c89e8a
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-70f3fba8/shop-70f3fba8.example.test/0000/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-70f3fba8/shop-70f3fba8.example.test/0000/0000000000000002-0000000000000002.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70f3fba8/shop-70f3fba8.example.test/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-70f3fba8/shop-70f3fba8.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1243: drain took 142ms; S3 calls 46 (DELETE lock=1 GET files=3 GET head=1 GET lock=3 GET replica=2 LIST replica=30 PUT lock=3 PUT replica=3); deployment store calls 20 (GET edges=14 LIST edges=4 PUT edges=2)
    hadrain_twobox_minio_linux_test.go:1367: the fenced A's start gate answers 503 "This service is unavailable. Try again later.\n" (Retry-After "10")
2026/11/29 11:11:13 lease: t8-70f3fba8/plain-70f3fba8.example.test: acquired in 2ms (client 0s, lock read and write 2ms)
2026/11/29 11:11:13 activator: plain-70f3fba8.example.test: started carlos-instance@plain\x2d70f3fba8.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 0s, control socket 0s, key gate 0s, logs 0s) 0s, launch file 0s, gate 0s, root start 1ms)
2026/11/29 11:11:13 activator: plain-70f3fba8.example.test: carlos-instance@plain\x2d70f3fba8.example.test.service launched in 1ms, healthy 0s later
2026/11/29 11:11:13 lease: /tmp/carlos-minio-contract-JQLpmw/g/dw1681809899/data/instances/plain-70f3fba8.example.test/plain-70f3fba8.example.test.db: continuity with the last clean close not proven; snapshot 1-0000000000000001 written before serving
2026/11/29 11:11:13 activator: plain-70f3fba8.example.test: woke in 9ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 1ms, spawn 2ms, replicate 5ms
2026/11/29 11:11:13 activator: next-due probe shop-70f3fba8.example.test: decode /api/next-due: invalid character 'b' looking for beginning of value — recording none (it sleeps until a request)
2026/11/29 11:11:13 activator: shop-70f3fba8.example.test: released with a marker (clean true, txid 2, files 3:1ff6dcfe1947823f99d1ad1fea68b494438679f9cc6b0ee0efeeb785ad98982e) in 4ms: files 1ms, sync 0s, record 1ms, marker 2ms
2026/11/29 11:11:13 activator: shop-70f3fba8.example.test hibernated
2026/11/29 11:11:13 tenant admission is closed for shutdown
2026/11/29 11:11:13 activator: next-due probe plain-70f3fba8.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/29 11:11:13 activator: plain-70f3fba8.example.test hibernated
--- PASS: TestHeldHandoverTwoBoxMinio (0.55s)
=== RUN   TestHeldHandoverLostLeaseMinio
2026/11/29 11:11:13 edge: mesh key: minted
2026/11/29 11:11:13 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/29 11:11:13 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/29 11:11:14 tenant admission is open. accepting tenant work
2026/11/29 11:11:14 activator: HA placement host=shop-a2722809.example.test kind=Place ref=annie reason=roomiest generation=2026-11-29T11:11:14Z lock_generation=0
2026/11/29 11:11:14 lease: t8-a2722809/shop-a2722809.example.test: HA lease acquired in 4ms (first wake)
2026/11/29 11:11:14 activator: shop-a2722809.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:11:14 activator: shop-a2722809.example.test: started carlos-instance@shop\x2da2722809.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 6ms, control socket 0s, key gate 0s, logs 0s) 7ms, launch file 0s, gate 0s, root start 1ms)
2026/11/29 11:11:14 activator: shop-a2722809.example.test: carlos-instance@shop\x2da2722809.example.test.service launched in 8ms, healthy 0s later
2026/11/29 11:11:14 activator: shop-a2722809.example.test: woke in 68ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 8ms, replicate 55ms
2026/11/29 11:11:14 activator: next-due probe shop-a2722809.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/29 11:11:14 activator: final checkpoint shop-a2722809.example.test: lease: release marker owed for s3://contract-bucket/t8-a2722809/shop-a2722809.example.test/lock.json (If-Match "4fc28d0c9840e44b55cb88056e8c07e2"): lease: write release marker: operation error S3: PutObject, https response error StatusCode: 503, RequestID: , HostID: , api error ServiceUnavailable: witness: refused
2026/11/29 11:11:14 activator: shop-a2722809.example.test hibernated
2026/11/29 11:11:14 activator: handover of shop-a2722809.example.test left: released without a marker; its held requests get today's answer
    hadrain_twobox_minio_linux_test.go:1469: the held request's hold ended "shop-a2722809.example.test client 4 "
    hadrain_twobox_minio_linux_test.go:1486: driver calls: [begin shop-a2722809.example.test <nil> releasing shop-a2722809.example.test <nil> stop shop-a2722809.example.test marker=false clean=false <nil> left shop-a2722809.example.test released without a marker]
    hadrain_twobox_minio_linux_test.go:1487: a request after the loss: 503 "This instance cannot wake right now. Please try again shortly.\n" (Retry-After "10", holder "none", 0s, err <nil>)
2026/11/29 11:11:14 tenant admission is closed for shutdown
2026/11/29 11:11:14 http: proxy error: context canceled
--- PASS: TestHeldHandoverLostLeaseMinio (0.32s)
PASS
ok  	github.com/carlosframework/platform/internal/host	0.924s
Bucket created successfully `local/gen-take`.
local/gen-take versioning is enabled
Created policy `gen-take` successfully.
Added user `gentake` successfully.
Attached Policies: [gen-take]
To User: gentake
=== RUN   TestGenerationTakeMinio
=== RUN   TestGenerationTakeMinio/take
2026/11/29 11:11:15 lease: instances/gen-1795950675452256874.shop.example.com: HA lease acquired in 6ms (first wake)
2026/11/29 11:11:15 ERROR retention enforcement failed system=store db=w.example.com.db error="enforce snapshot retention: remove ltx files: lease: invalid or changed generation binding"
2026/11/29 11:11:15 lease: instances/gen-1795950675452256874.shop.example.com: HA lease acquired in 3ms (holder terminated)
    gentake_minio_test.go:308: a second create-only copy onto instances/gen-1795950675452256874.shop.example.com/g-00000000000000000002/0000/0000000000000001-0000000000000001.ltx: <nil> (destination condition honoured: false)
2026/11/29 11:11:15 ERROR retention enforcement failed system=store db=w.example.com.db error="enforce snapshot retention: remove ltx files: lease: invalid or changed generation binding"
=== RUN   TestGenerationTakeMinio/switch-412
2026/11/29 11:11:15 lease: instances/gen-1795950675646493704.shop.example.com: HA lease acquired in 4ms (first wake)
2026/11/29 11:11:15 ERROR retention enforcement failed system=store db=seed.db error="enforce snapshot retention: remove ltx files: lease: invalid or changed generation binding"
2026/11/29 11:11:15 lease: instances/gen-1795950675646493704.shop.example.com: HA lease acquired in 3ms (clean marker)
=== RUN   TestGenerationTakeMinio/copy-version
=== RUN   TestGenerationTakeMinio/store-time
2026/11/29 11:11:15 lease: instances/gen-1795950675751011448.shop.example.com: HA lease acquired in 3ms (first wake)
2026/11/29 11:11:15 http: proxy error: context canceled
2026/11/29 11:11:15 ERROR retention enforcement failed system=store db=seed.db error="enforce snapshot retention: fetch ltx files: lease: a write has waited too long to reach storage (write fence)"
2026/11/29 11:11:15 lease: instances/gen-1795950675751011448.shop.example.com: HA lease acquired in 3ms (clean marker)
2026/11/29 11:11:15 lease: instances/gen-1795950675751011448.shop.example.com: HA lease acquired in 3ms (unclean marker)
2026/11/29 11:11:15 lease: instances/gen-1795950675751011448.shop.example.com: HA lease acquired in 3ms (unclean marker)
2026/11/29 11:11:15 lease: instances/gen-1795950675751011448.shop.example.com: HA lease acquired in 3ms (unclean marker)
2026/11/29 11:11:15 lease: instances/gen-1795950675751011448.shop.example.com: HA lease acquired in 3ms (unclean marker)
=== RUN   TestGenerationTakeMinio/skew
--- PASS: TestGenerationTakeMinio (0.43s)
    --- PASS: TestGenerationTakeMinio/take (0.19s)
    --- PASS: TestGenerationTakeMinio/switch-412 (0.09s)
    --- PASS: TestGenerationTakeMinio/copy-version (0.01s)
    --- PASS: TestGenerationTakeMinio/store-time (0.11s)
    --- PASS: TestGenerationTakeMinio/skew (0.01s)
PASS
ok  	github.com/carlosframework/platform/internal/lease	0.435s
minio contract: PASS
=== staticcheck ===
go version go1.26.10 linux/arm64
go: downloading honnef.co/go/tools v0.8.2
go: downloading golang.org/x/exp/typeparams v0.0.0-20231108232855-2478ac86f678
go: downloading github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c
go: downloading golang.org/x/sync v0.23.0
go: downloading golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa
staticcheck: clean
=== govulncheck ===
go version go1.26.10 linux/arm64
go: downloading golang.org/x/vuln v1.8.0
go: downloading golang.org/x/telemetry v0.0.0-20260908163034-4bcc4b2ee518
go: downloading golang.org/x/tools v0.50.0
govulncheck: scanned github.com/carlosframework/platform, amadan.net/carlos/platform.git/launchctx, carlos-vulnscan
GO-2026-6859  called  stdlib@v1.26.10, fixed in v1.26.11
    HTTP/1 server crash due to MaxBytesReader header race in net/http
    excepted until 2027-01-31 (.amadan/govulncheck-exceptions.tsv:9): net/http MaxBytesReader header race, fixed in go1.26.11. CI and releases stay on go1.26.10 because 1.26.11 deadlocks the edge's Expect: 100-continue path (#897, .amadan/go-toolchain.sh); #904 checked every production MaxBytesReader site and found it unreachable.
GO-2026-5932  required  golang.org/x/crypto@v0.58.0, fixed in v0.58.1-0.20261009181718-2f1f834330b2
    The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues
    not fatal: no call path to the vulnerable code
govulncheck: clean (2 finding(s), none called outside .amadan/govulncheck-exceptions.tsv)
=== code-health ===
go version go1.26.10 linux/arm64
    codehealth_test.go:42: scanned in 1m55.408s
    codehealth_test.go:107: line metrics (code lines, then physical):
          file-lines  5471  7324  internal/activator activator_test.go
          file-lines  4191  7043  internal/console server.go
          file-lines  4147  6311  . apimode.go
          file-lines  3785  7224  internal/activator activator.go
          file-lines  3530  4459  . apimode_test.go
          file-lines  3261  3864  internal/registry registry_test.go
          file-lines  3204  6398  internal/host agent.go
          file-lines  3094  3992  internal/provision reconcile_test.go
          func-lines   870   891  internal/host plan14InstalledClaimLaunch
          func-lines   810  1277  internal/provision Reconcile
          func-lines   769  1242  internal/console (*Server).handleAPIInstanceCreate
          func-lines   683  1238  internal/host runAgent
          func-lines   571   908  internal/activator (*Service).doWakeOnce
          func-lines   538   546  internal/host runServingParkPeerNamespace
          func-lines   519   712  . runRoute
          func-lines   509   569  internal/host TestPagingIsRateLimited
          func-lines   494   817  internal/release adoptHost
          func-lines   441   500  internal/host TestRootInstanceStopExecStop
          func-lines   421   436  internal/host (*ClaimWakeAssembly).Build
          func-lines   421   437  internal/team TestFixture
          func-lines   412   414  internal/console TestDemoProtectionsSourceToLimitAndTakedown
          func-lines   408   485  . TestFleetAppServesThroughTheHub
          func-lines   402   406  internal/registry (*Registry).haJournal
          func-lines   400   868  internal/provision rootReadArchivedChain
          func-lines   399   733  internal/release PassFilter
          func-lines   390   398  internal/host runFilesSeedPreparationWithLive
          func-lines   383   406  internal/console TestDemoSourceToLiveAndUpdate
          func-lines   374   377  internal/host plan14RequiredArtifactsRootRunner
          func-lines   371   417  internal/host TestRootEgressKernelProof
          func-lines   369   883  internal/edge (*Edge).ServeHTTP
          func-lines   367   584  internal/console (*Server).handleAPIShip
          func-lines   364   371  internal/host testRootMigrationBootstrap
          func-lines   362   631  cmd/console serve
          func-lines   360   362  internal/edge TestDemoAPIAliasBoundary
          func-lines   357   358  internal/registry (*Registry).dispatchRemote
          func-lines   355   372  internal/host TestRootSandboxUpdateFromOldBox
          func-lines   343   354  internal/analytics Prune
          func-lines   340   353  internal/host newColdRootHarness
          func-lines   335   557  internal/console (*Store).migrate
          func-lines   334   334  internal/host TestPlan12RecoveryRestoreSourceDatabase
          func-lines   330   371  internal/edge TestRegionalNameNeverLeavesItsRegion
          func-lines   329   471  . runDeploy
          func-lines   329   329  internal/host TestPlan12RecoveryRestoreSourceDatabase.func1
          func-lines   327   369  internal/edge TestTunnelWebSocketEndToEnd
          func-lines   325   455  internal/objstore TestDeliveredContractMinio
          func-lines   320   654  internal/appconfig SyncExecWithCallbacks
          func-lines   315   318  internal/host plan14TimerIntention
          func-lines   311   314  internal/host plan14TimerIntention.func1
          func-lines   310   315  internal/hostbox ColdHandover.Run
          func-lines   308   309  internal/host rootFilesSeedIsolatedWitness
          func-lines   305   323  internal/host hairpinKernelWitness
          func-lines   304   308  internal/console TestHAP2ProductionDoors
          func-lines   302   329  internal/host TestRootG2PoolIngress
        release-importers: . cmd/console internal/activator internal/analytics internal/appconfig internal/apperr internal/applog internal/apppolicy internal/boxid internal/boxvolumes internal/console internal/dbreads internal/dbreads/dbreadstest internal/dbverify internal/demobuild internal/domains internal/doorkey internal/edge internal/edgeproof internal/edgesfile internal/fleetapi internal/grouproll internal/grouprollaws internal/historyreadback internal/host internal/hostactors internal/hostbox internal/hostclaim internal/hostevidence internal/hostexec internal/hostfence internal/hostfiles internal/hostfloor internal/hostguard internal/hostops internal/hostrelocate internal/hostresolve internal/instancectl internal/instanceupdates internal/interactive internal/layout internal/lease internal/ledger internal/mail internal/mailer internal/mailsubmit internal/metrics internal/moves internal/objstore internal/ops internal/park internal/plans internal/provision internal/relay internal/rollout internal/rootfsimage internal/runs internal/s3fake internal/schedule internal/seeds internal/status internal/telemetry internal/usage internal/vet scripts/pathmapcheck scripts/witness-pointer
        not scanned (216 files):
          cmd/carlos-media/drill_other.go: built only for other systems or tags
          cmd/carlos-media/harden_other.go: built only for other systems or tags
          cmd/console/fleetsocket_other.go: built only for other systems or tags
          cmd/console/servelock_windows.go: built only for other systems or tags
          cmd/moveprobe/detach_windows.go: built only for other systems or tags
          cmd/rootfswitness/mmap_other.go: built only for other systems or tags
          devbox_acl_other.go: built only for other systems or tags
          devbox_envfile_darwin_test.go: built only for other systems or tags
          devbox_envfile_other.go: built only for other systems or tags
          domains_transfer_signals_other.go: built only for other systems or tags
          interactive_term_darwin.go: built only for other systems or tags
          interactive_term_other.go: built only for other systems or tags
          internal/activator/claimprocess_root_other.go: built only for other systems or tags
          internal/activator/escrow_stamp_other.go: built only for other systems or tags
          internal/activator/fleetreserve_other.go: built only for other systems or tags
          internal/activator/harecord_other.go: built only for other systems or tags
          internal/activator/ownenv_other.go: built only for other systems or tags
          internal/activator/pty_other.go: built only for other systems or tags
          internal/activator/race_on_test.go: built only for other systems or tags
          internal/activator/rolelaunch_other.go: built only for other systems or tags
          internal/assetcache/statfs_other.go: built only for other systems or tags
          internal/boxself/io_other.go: built only for other systems or tags
          internal/cgroup/cleanup_other.go: built only for other systems or tags
          internal/cgroup/cleanup_other_test.go: built only for other systems or tags
          internal/cgroup/hostprocs_other.go: built only for other systems or tags
          internal/cgroup/recreate_other.go: built only for other systems or tags
          internal/cgroup/role_other.go: built only for other systems or tags
          internal/cgroup/shim_other.go: built only for other systems or tags
          internal/cgroup/strict_other.go: built only for other systems or tags
          internal/cgroup/verify_other.go: built only for other systems or tags
          internal/console/claim_sql_identity_other.go: built only for other systems or tags
          internal/console/geoipverify_other.go: built only for other systems or tags
          internal/console/hostreports_process_other.go: built only for other systems or tags
          internal/console/replicaview_other.go: built only for other systems or tags
          internal/console/restore_sim_nice_other_test.go: built only for other systems or tags
          internal/console/scalecost_other_test.go: built only for other systems or tags
          internal/console/seedscratch_windows.go: built only for other systems or tags
          internal/dbreads/worker_other.go: built only for other systems or tags
          internal/demobuild/security_other.go: built only for other systems or tags
          internal/democlaim/source_other.go: built only for other systems or tags
          internal/devbox/peer_darwin.go: built only for other systems or tags
          internal/devbox/peer_darwin_test.go: built only for other systems or tags
          internal/devbox/peer_other.go: built only for other systems or tags
          internal/devbox/socketcheck_other.go: built only for other systems or tags
          internal/domains/certimport_read_portable.go: built only for other systems or tags
          internal/edge/devboxpeer_other.go: built only for other systems or tags
          internal/edge/hairpin_other.go: built only for other systems or tags
          internal/edge/heldbudget_other.go: built only for other systems or tags
          internal/edge/purge_listen_unix.go: built only for other systems or tags
          internal/edge/purge_listen_windows.go: built only for other systems or tags
          internal/edge/race_on_test.go: built only for other systems or tags
          internal/edge/replicaconsole_owner_other.go: built only for other systems or tags
          internal/edge/replicaconsole_peer_other.go: built only for other systems or tags
          internal/edge/replicaconsole_socket_other_test.go: built only for other systems or tags
          internal/edge/static_artifact_other.go: built only for other systems or tags
          internal/edge/static_recordlock_other.go: built only for other systems or tags
          internal/edge/static_sweep_other.go: built only for other systems or tags
          internal/execsandbox/cleanup_other.go: built only for other systems or tags
          internal/execsandbox/file_other.go: built only for other systems or tags
          internal/execsandbox/oci_other.go: built only for other systems or tags
          internal/fileacl/fileacl_darwin.go: built only for other systems or tags
          internal/fileacl/fileacl_darwin_amd64.s: built only for other systems or tags
          internal/fileacl/fileacl_darwin_arm64.s: built only for other systems or tags
          internal/fileacl/fileacl_darwin_test.go: built only for other systems or tags
          internal/grouproll/state_other.go: built only for other systems or tags
          internal/grouprollaws/pty_darwin.go: built only for other systems or tags
          internal/grouprollaws/pty_other.go: built only for other systems or tags
          internal/hairpin/native_other.go: built only for other systems or tags
          internal/host/applylock_other_test.go: built only for other systems or tags
          internal/host/bootstrapfs_other.go: built only for other systems or tags
          internal/host/boxroles_config_other.go: built only for other systems or tags
          internal/host/claimfilesseed_delegation_other.go: built only for other systems or tags
          internal/host/claimfilesseed_transport_other.go: built only for other systems or tags
          internal/host/claimjournal_containment_other.go: built only for other systems or tags
          internal/host/claimjournal_migration_other.go: built only for other systems or tags
          internal/host/claimlaunch_kernel_other.go: built only for other systems or tags
          internal/host/claimlaunch_rev2_other_test.go: built only for other systems or tags
          internal/host/claimproduction_other.go: built only for other systems or tags
          internal/host/claimready_other.go: built only for other systems or tags
          internal/host/claimroleassembly_other.go: built only for other systems or tags
          internal/host/claimservingartifact_other.go: built only for other systems or tags
          internal/host/claimservinghandover_reboot_other.go: built only for other systems or tags
          internal/host/claimservinghandover_reboot_other_test.go: built only for other systems or tags
          internal/host/claimservingpark_other.go: built only for other systems or tags
          internal/host/claimstate_other.go: built only for other systems or tags
          internal/host/claimstop_kernel_other.go: built only for other systems or tags
          internal/host/claimtoken_inventory_other.go: built only for other systems or tags
          internal/host/claimunit_dropin_other.go: built only for other systems or tags
          internal/host/claimunit_files_other.go: built only for other systems or tags
          internal/host/claimunit_migrate_other.go: built only for other systems or tags
          internal/host/claimunit_ready_other.go: built only for other systems or tags
          internal/host/claimunit_socket_migration_other.go: built only for other systems or tags
          internal/host/consolefleet_owner_other.go: built only for other systems or tags
          internal/host/dbreads_other.go: built only for other systems or tags
          internal/host/egress_rail_other.go: built only for other systems or tags
          internal/host/fileowner_other.go: built only for other systems or tags
          internal/host/flock_windows.go: built only for other systems or tags
          internal/host/group_config_other.go: built only for other systems or tags
          internal/host/group_maintenance_other.go: built only for other systems or tags
          internal/host/group_maintenance_verbs_other.go: built only for other systems or tags
          internal/host/group_receipt_other.go: built only for other systems or tags
          internal/host/hadrain_call_other.go: built only for other systems or tags
          internal/host/hadrain_socket_other.go: built only for other systems or tags
          internal/host/hadrainfence_other.go: built only for other systems or tags
          internal/host/headroom_other.go: built only for other systems or tags
          internal/host/installchannel_other.go: built only for other systems or tags
          internal/host/managedboot_other.go: built only for other systems or tags
          internal/host/metrics_nested_other.go: built only for other systems or tags
          internal/host/movesfloor_other.go: built only for other systems or tags
          internal/host/movesfloorgate_other.go: built only for other systems or tags
          internal/host/movesheldrelease_other.go: built only for other systems or tags
          internal/host/movesmeasure_other.go: built only for other systems or tags
          internal/host/offcloudcredentials_other.go: built only for other systems or tags
          internal/host/registrychild_exec_other.go: built only for other systems or tags
          internal/host/registrychild_other.go: built only for other systems or tags
          internal/host/registryowner_chown_other.go: built only for other systems or tags
          internal/host/registryowner_descriptor_unix.go: built only for other systems or tags
          internal/host/replicahealth_other.go: built only for other systems or tags
          internal/host/rootgeneration_census_other.go: built only for other systems or tags
          internal/host/rootgeneration_kernel_other.go: built only for other systems or tags
          internal/host/rootgeneration_payload_other.go: built only for other systems or tags
          internal/host/rootgeneration_retired_other.go: built only for other systems or tags
          internal/host/rootmigration_production_other.go: built only for other systems or tags
          internal/host/runscset_other.go: built only for other systems or tags
          internal/host/sandboxenv_other.go: built only for other systems or tags
          internal/host/statfs_windows.go: built only for other systems or tags
          internal/host/systemapply_other.go: built only for other systems or tags
          internal/hostbox/census_vendor_other.go: built only for other systems or tags
          internal/hostbox/inventory_identity_other.go: built only for other systems or tags
          internal/hostbox/journalmigration_other.go: built only for other systems or tags
          internal/hostbox/journalnamespace_other.go: built only for other systems or tags
          internal/hostbox/journaltrust_other.go: built only for other systems or tags
          internal/hostbox/migration_census_other.go: built only for other systems or tags
          internal/hostbox/typedpark_other.go: built only for other systems or tags
          internal/hostenv/group_other.go: built only for other systems or tags
          internal/hostenv/write_other.go: built only for other systems or tags
          internal/hostenv/write_other_test.go: built only for other systems or tags
          internal/hostexec/clock_other.go: built only for other systems or tags
          internal/hostexec/clock_other_test.go: built only for other systems or tags
          internal/hostexec/local_other.go: built only for other systems or tags
          internal/hostexec/pending_other.go: built only for other systems or tags
          internal/hostexec/probe_other.go: built only for other systems or tags
          internal/hostexec/rootprocess_other.go: built only for other systems or tags
          internal/hostfiles/dir_other.go: built only for other systems or tags
          internal/hostfiles/refuse_other.go: built only for other systems or tags
          internal/hostfiles/watch_other.go: built only for other systems or tags
          internal/hostfloor/controllers_other.go: built only for other systems or tags
          internal/hostfloor/image_other.go: built only for other systems or tags
          internal/hostguard/flock_other.go: built only for other systems or tags
          internal/hostguard/flock_other_test.go: built only for other systems or tags
          internal/hostguard/record_other.go: built only for other systems or tags
          internal/instancectl/claimexec_other.go: built only for other systems or tags
          internal/instancectl/claimexec_socket_other.go: built only for other systems or tags
          internal/instancectl/claimlaunch_snapshot_other.go: built only for other systems or tags
          internal/instancectl/claimnetwork_other.go: built only for other systems or tags
          internal/instancectl/demo_snapshot_other.go: built only for other systems or tags
          internal/instancectl/egress_cgroup_other.go: built only for other systems or tags
          internal/instancectl/egress_dropin_other.go: built only for other systems or tags
          internal/instancectl/fleetsize_other.go: built only for other systems or tags
          internal/instancectl/gvisorprobe_other.go: built only for other systems or tags
          internal/instancectl/peer_other.go: built only for other systems or tags
          internal/instancectl/peer_tuple_other.go: built only for other systems or tags
          internal/instancectl/rootfs_identity_other.go: built only for other systems or tags
          internal/instanceexec/claimexec_other.go: built only for other systems or tags
          internal/instanceexec/exec_rootfs_other.go: built only for other systems or tags
          internal/instanceexec/netlink_route_other.go: built only for other systems or tags
          internal/instanceexec/probe_gvisor_other.go: built only for other systems or tags
          internal/instanceexec/probe_hardening_other.go: built only for other systems or tags
          internal/instanceexec/probe_other.go: built only for other systems or tags
          internal/instanceexec/probe_rootfs_other.go: built only for other systems or tags
          internal/instanceexec/sandbox_other.go: built only for other systems or tags
          internal/instanceexec/scope_other.go: built only for other systems or tags
          internal/instanceexec/stop_other.go: built only for other systems or tags
          internal/instanceexec/tty_other.go: built only for other systems or tags
          internal/instancefs/instancefs_other.go: built only for other systems or tags
          internal/launchd/activate_darwin.go: built only for other systems or tags
          internal/launchd/activate_darwin_amd64.s: built only for other systems or tags
          internal/launchd/activate_darwin_arm64.s: built only for other systems or tags
          internal/launchd/activate_darwin_test.go: built only for other systems or tags
          internal/layout/journal_other.go: built only for other systems or tags
          internal/layout/links_other.go: built only for other systems or tags
          internal/mailer/keys_other.go: built only for other systems or tags
          internal/maintenanceexec/run_other.go: built only for other systems or tags
          internal/managedboot/admission_other.go: built only for other systems or tags
          internal/managedboot/identity_other.go: built only for other systems or tags
          internal/mediahandler/collect_other.go: built only for other systems or tags
          internal/mediahandler/procs_other.go: built only for other systems or tags
          internal/medialocal/runner_other.go: built only for other systems or tags
          internal/moves/archive/open_other.go: built only for other systems or tags
          internal/moves/archive/sync_other.go: built only for other systems or tags
          internal/ops/flock_windows.go: built only for other systems or tags
          internal/park/local_other.go: built only for other systems or tags
          internal/privatefile/io_other.go: built only for other systems or tags
          internal/proxyproto/peek_other.go: built only for other systems or tags
          internal/relay/race_on_test.go: built only for other systems or tags
          internal/release/consumedfence_other.go: built only for other systems or tags
          internal/release/digestcache_other.go: built only for other systems or tags
          internal/rootaws/credentials_other.go: built only for other systems or tags
          internal/rootaws/open_darwin.go: built only for other systems or tags
          internal/rootfsimage/dir_other.go: built only for other systems or tags
          internal/rootstate/authoritydir_other.go: built only for other systems or tags
          internal/rootstate/authorityfile_other.go: built only for other systems or tags
          internal/rootstate/file_other.go: built only for other systems or tags
          internal/rootstate/link_other.go: built only for other systems or tags
          internal/rootstate/persistent_other.go: built only for other systems or tags
          internal/rootstate/state_other.go: built only for other systems or tags
          internal/safefile/file_other.go: built only for other systems or tags
          internal/safefile/reap_other.go: built only for other systems or tags
          internal/stopevidence/fds_other.go: built only for other systems or tags
          internal/stopevidence/fds_other_test.go: built only for other systems or tags
          internal/stopevidence/holders_other.go: built only for other systems or tags
          internal/stopevidence/reconstruct_other.go: built only for other systems or tags
          internal/team/storelock_other.go: built only for other systems or tags
          internal/team/storelock_windows.go: built only for other systems or tags
          move_offline_run_other.go: built only for other systems or tags
          system_group_other.go: built only for other systems or tags
        
    codehealth_test.go:115: fatal               1093 at  474 sites  log.Fatal*, (*log.Logger).Fatal* and os.Exit in the root package's production files
    codehealth_test.go:115: sleep               1005 at  811 sites  time.Sleep in test files
    codehealth_test.go:115: db-no-context        873 at  696 sites  database calls with no context (dbOpWithoutContext) in production files
    codehealth_test.go:115: host-context         188 at  142 sites  context.Background and context.TODO in internal/host production files
    codehealth_test.go:115: func-lines         18586 at   45 sites  functions over 300 code lines (blank and comment-only lines not counted)
    codehealth_test.go:115: file-lines         30683 at    8 sites  files over 3,000 code lines, counted the same way
    codehealth_test.go:115: release-importers     66 at    1 sites  packages whose production files import internal/release
--- PASS: TestCodeHealth (115.41s)
PASS
ok  	github.com/carlosframework/platform/internal/codehealth	116.480s
=== code-health-record ===
go version go1.26.10 linux/arm64
code-health record: HEAD is on main; comparing with its parent 4285cf3243c12b0afdbf48182253c9c35028e51c
=== RUN   TestRecordAgainstBase
--- PASS: TestRecordAgainstBase (0.01s)
PASS
ok  	github.com/carlosframework/platform/internal/codehealth	0.008s
code-health record: no line went up without a reason
=== race ===
go version go1.26.10 linux/arm64
GATE_RACE=1 .amadan/test-gate.sh
=== internal_systemd@0 (13 s, from +15 s)
ok  	github.com/carlosframework/platform/internal/systemd	13.451s
=== internal_rootaws@0 (26 s, from +35 s)
ok  	github.com/carlosframework/platform/internal/rootaws	25.787s
=== internal_activator@0 (269 s, from +114 s)
ok  	github.com/carlosframework/platform/internal/activator	267.455s
=== internal_activator@1 (266 s, from +114 s)
ok  	github.com/carlosframework/platform/internal/activator	263.780s
=== internal_activator@2 (279 s, from +114 s)
ok  	github.com/carlosframework/platform/internal/activator	276.902s
=== internal_activator@3 (423 s, from +114 s)
2026/11/29 11:19:33 activator: badseed.example.com: wake failed: seed badseed.example.com: seed exited 1
2026/11/29 11:19:33 activator: fenced.example.com: wake failed: fenced.example.com: refusing to wake: layout migration in flight
2026/11/29 11:19: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/11/29 11:19:35 activator: gone.example.com: wake failed: start gone.example.com: Unit carlos-app@gone.example.com.service not found
2026/11/29 11:19:35 activator: one.example.com not started: the executable it would run is outside the version store, so no build state can name it (settings spec 4.2); move the instance onto a promoted build
2026/11/29 11:19:36 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/11/29 11:19:36 activator: worker bot.x.internal respawned (attempt (release)), now running v2
2026/11/29 11:19:37 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/11/29 11:19:37 activator: bot.x.internal: v2 not started: its build state could not be written: bucket refused the build state
2026/11/29 11:19:37 activator: worker bot.x.internal NOT respawned (attempt (release)): refused at its exec: the build state could not be written, so this build was not started: bucket refused the build state
2026/11/29 11:19:37 activator: worker bot.x.internal respawned (restoring v1), now running v1
2026/11/29 11:19:38 activator: link.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:19:38 activator: link.example.com hibernated
2026/11/29 11:19:40 activator: tenant.test: v1 not started: its build state could not be written: bucket refused the build state
2026/11/29 11:19:41 activator: c.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:19:42 activator: c.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:19:43 activator: c.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:19:44 activator: c.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:19:45 activator: c.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:19:45 activator: c.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:19:46 activator: one.example.com: generation 10 of v2: record 0s, start 0s, healthy 0s later
2026/11/29 11:19:46 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:19:46 activator: old-kernel-seed.example.com: this kernel has no cgroup.kill; the seed's leader's exit is the only proof there is
2026/11/29 11:19:46 activator: seeding discharge-fails-proven.example.com: /tmp/TestAFlagOffSeedWhoseDischargeFailsAfterAProofIsAnOrdinaryFailur254627473/002/live/discharge-fails-proven.example.com seed --db /tmp/TestAFlagOffSeedWhoseDischargeFailsAfterAProofIsAnOrdinaryFailur254627473/003/discharge-fails-proven.example.com.db
2026/11/29 11:19:47 activator: bright-otter-42.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:19:47 activator: LEASE LOST for bright-otter-42.example.com (lease safety deadline elapsed) — standing down
2026/11/29 11:19:47 activator: bright-otter-42.example.com hibernated
2026/11/29 11:19:57 lease: shop.example.com: acquired in 3ms (client 0s, lock read and write 2ms)
2026/11/29 11:19:58 lease: shop.example.com: acquired in 3ms (client 0s, lock read and write 2ms)
2026/11/29 11:19:59 lease: shop.example.com: acquired in 4ms (client 0s, lock read and write 4ms)
2026/11/29 11:19:59 lease: shop.example.com: acquired in 5ms (client 0s, lock read and write 4ms)
2026/11/29 11:19:59 activator: CARLOS_ADMIN_TOKEN in /tmp/TestMintAllowedWhenTheEscrowLacksTheSecret122180299/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/11/29 11:20:00 lease: shop.example.com: acquired in 3ms (client 0s, lock read and write 2ms)
2026/11/29 11:20:00 activator: shop.example.com: escrow: store unavailable (launching; the next sweep escrows it again)
2026/11/29 11:20:00 lease: shop.example.com: acquired in 2ms (client 0s, lock read and write 2ms)
2026/11/29 11:20:00 activator: shop.example.com: escrow: store unavailable (launching; the next sweep escrows it again)
2026/11/29 11:20:01 lease: shop.example.com: acquired in 2ms (client 0s, lock read and write 2ms)
2026/11/29 11:20:01 activator: CARLOS_ADMIN_TOKEN in /tmp/TestEditedEnvIsEscrowedNotReverted368832653/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/11/29 11:20:01 activator: CARLOS_INSTANCE_KEY in /tmp/TestEditedEnvIsEscrowedNotReverted368832653/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/11/29 11:20:02 lease: shop.example.com: acquired in 2ms (client 0s, lock read and write 2ms)
2026/11/29 11:20:02 ALERT: shop.example.com: escrow: another writer publishes this host's escrow
2026/11/29 11:20:03 lease: shop.example.com: acquired in 2ms (client 0s, lock read and write 2ms)
2026/11/29 11:20:03 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/11/29 11:20:03 lease: shop.example.com: acquired in 4ms (client 0s, lock read and write 4ms)
2026/11/29 11:20:03 activator: shop.example.com: escrow: restored shop.example.com/instance.key from the bucket
2026/11/29 11:20:03 activator: CARLOS_ADMIN_TOKEN in /tmp/TestStaleLedgerAndANoOpSweepNeverSuppressARestore2956118184/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/11/29 11:20:03 activator: CARLOS_INSTANCE_KEY in /tmp/TestStaleLedgerAndANoOpSweepNeverSuppressARestore2956118184/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/11/29 11:20:04 lease: shop.example.com: acquired in 2ms (client 0s, lock read and write 2ms)
2026/11/29 11:20:04 activator: CARLOS_ADMIN_TOKEN in /tmp/TestDivergentTrioRefusedWhenTheSealedEnvCannotBeRead2356281734/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/11/29 11:20:04 activator: CARLOS_INSTANCE_KEY in /tmp/TestDivergentTrioRefusedWhenTheSealedEnvCannotBeRead2356281734/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/11/29 11:20:04 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/TestDivergentTrioRefusedWhenTheSealedEnvCannotBeRead2356281734/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/TestDivergentTrioRefusedWhenTheSealedEnvCannotBeRead2356281734/002/data/.escrow/shop.example.com.conflict
2026/11/29 11:20:05 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:20:05 activator: swap.example.com: generation 13's child is not proven empty: the child still holds a process
2026/11/29 11:20:05 activator: generation 13 of swap.example.com did not prove its exit; keeping it in the operation set
2026/11/29 11:20:05 activator: swap.example.com: generation 13's child is not proven empty: the child still holds a process
2026/11/29 11:20:06 activator: publish generations to /tmp/TestStartDoesNotFailOnAnUnwritableGenerationsFile899424889/002/not-a-dir/zdd/generations.json: open directory /tmp/TestStartDoesNotFailOnAnUnwritableGenerationsFile899424889/002/not-a-dir/zdd: not a directory; the sweep retries
2026/11/29 11:20:07 lease: shop.example.com: HA lease acquired in 9ms (unclean marker)
2026/11/29 11:20:07 ha_adoption host=shop.example.com cause=departure-finalize generation=6
2026/11/29 11:20:08 lease: shop.example.com: HA lease acquired in 9ms (clean marker)
2026/11/29 11:20:08 ha_adoption host=shop.example.com cause=departure-finalize generation=6
2026/11/29 11:20:11 ha_takeover host=shop.example.com iid=i-b cause=departure-finalize confirmed=true error=false
2026/11/29 11:20:11 lease: shop.example.com: HA lease acquired in 9ms (holder terminated)
2026/11/29 11:20:11 ha_adoption host=shop.example.com cause=departure-finalize generation=6
2026/11/29 11:20:12 lease: shop.example.com: HA lease acquired in 9ms (unclean marker)
2026/11/29 11:20:13 lease: shop.example.com: HA lease acquired in 9ms (unclean marker)
2026/11/29 11:20:16 lease: shop.example.com: HA lease acquired in 8ms (unclean marker)
2026/11/29 11:20:16 ha_adoption host=shop.example.com cause=departure-finalize generation=6
2026/11/29 11:20:20 lease: shop.example.com: HA lease acquired in 9ms (unclean marker)
2026/11/29 11:20:20 ha_adoption host=shop.example.com cause=departure-finalize generation=6
2026/11/29 11:20:21 lease: shop.example.com: HA lease acquired in 13ms (unclean marker)
2026/11/29 11:20:21 ha_adoption host=shop.example.com cause=departure-finalize generation=6
2026/11/29 11:20:23 lease: shop.example.com: HA lease acquired in 9ms (unclean marker)
2026/11/29 11:20:23 ha_adoption host=shop.example.com cause=departure-finalize generation=6
2026/11/29 11:20:25 lease: shop.example.com: HA lease acquired in 8ms (first wake)
2026/11/29 11:20:25 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:20: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 19ms, control socket 0s, key gate 0s, logs 0s) 20ms, launch file 1ms, gate 0s, root start 4ms)
2026/11/29 11:20:25 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 25ms, healthy 1ms later
2026/11/29 11:20:25 activator: shop.example.com: woke in 104ms: checks 0s, lease 9ms, restore 1ms, identity 0s, protect 0s, spawn 26ms, replicate 68ms
2026/11/29 11:20:25 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:20:25 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:a641f66c93b8cfca25b4ee194019588c241f6aa714376be253f8eada2f950464) in 20ms: files 7ms, sync 7ms, record 4ms, marker 1ms
2026/11/29 11:20:25 activator: shop.example.com hibernated
2026/11/29 11:20:26 lease: shop.example.com: HA lease acquired in 5ms (first wake)
2026/11/29 11:20:26 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:20: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 12ms, control socket 0s, key gate 0s, logs 0s) 12ms, launch file 1ms, gate 0s, root start 4ms)
2026/11/29 11:20:26 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 17ms, healthy 1ms later
2026/11/29 11:20:26 activator: shop.example.com: woke in 90ms: checks 0s, lease 6ms, restore 1ms, identity 0s, protect 0s, spawn 18ms, replicate 65ms
2026/11/29 11:20:26 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:20:26 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:503bedda3ded9add6da339ab4a9353ff47e653d99866783873ef727336b29152) in 15ms: files 7ms, sync 3ms, record 4ms, marker 1ms
2026/11/29 11:20:26 activator: shop.example.com hibernated
2026/11/29 11:20:26 lease: shop.example.com: HA lease acquired in 3ms (clean marker)
2026/11/29 11:20:26 activator: shop.example.com: kept local
2026/11/29 11:20: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 7ms, control socket 0s, key gate 0s, logs 0s) 7ms, launch file 1ms, gate 0s, root start 3ms)
2026/11/29 11:20:26 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 11ms, healthy 1ms later
2026/11/29 11:20:28 activator: shop.example.com: woke in 1.046s: checks 0s, lease 4ms, restore 2ms, identity 0s, protect 0s, spawn 12ms, replicate 1.027s
2026/11/29 11:20:28 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:20:28 activator: shop.example.com: released with a marker (clean true, txid 2, files 3:503bedda3ded9add6da339ab4a9353ff47e653d99866783873ef727336b29152) in 20ms: files 13ms, sync 2ms, record 4ms, marker 1ms
2026/11/29 11:20:28 activator: shop.example.com hibernated
2026/11/29 11:20:29 activator: shop.example.com has a scheduled delivery due — waking it
2026/11/29 11:20:31 activator: always-on sidecar shop.example.com is not running — starting it
2026/11/29 11:20:32 lease: shop.example.com: HA lease acquired in 3ms (unclean marker)
2026/11/29 11:20:32 activator: shop.example.com: restored (unclean)
2026/11/29 11:20: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 11ms, control socket 0s, key gate 0s, logs 0s) 12ms, launch file 0s, gate 0s, root start 3ms)
2026/11/29 11:20:32 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 15ms, healthy 1ms later
2026/11/29 11:20:32 activator: shop.example.com: wake failed: files shop.example.com: no files store configured
2026/11/29 11:20:33 lease: shop.example.com: HA lease acquired in 5ms (first wake)
2026/11/29 11:20:33 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:20:33 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 12ms, control socket 0s, key gate 0s, logs 0s) 12ms, launch file 1ms, gate 0s, root start 4ms)
2026/11/29 11:20:33 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 17ms, healthy 1ms later
2026/11/29 11:20:33 activator: shop.example.com: woke in 88ms: checks 0s, lease 6ms, restore 0s, identity 0s, protect 0s, spawn 18ms, replicate 64ms
2026/11/29 11:20:36 activator: LEASE HELD for shop.example.com by "box/v1;ref=b;iid=i-b;pid=7;ha=1" — a previous incarnation hasn't released; refusing to wake (retry after 9m59.996079008s)
2026/11/29 11:20:37 activator: LEASE HELD for shop.example.com by "box/v1;ref=a;iid=i-a;pid=99;ha=1" — a previous incarnation hasn't released; refusing to wake (retry after 7m0s)
2026/11/29 11:20:38 lease: shop.example.com: HA lease acquired in 5ms (first wake)
2026/11/29 11:20:38 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:20:38 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 12ms, control socket 0s, key gate 0s, logs 0s) 13ms, launch file 1ms, gate 0s, root start 4ms)
2026/11/29 11:20:38 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 17ms, healthy 1ms later
2026/11/29 11:20:38 activator: shop.example.com: woke in 90ms: checks 0s, lease 6ms, restore 1ms, identity 0s, protect 0s, spawn 18ms, replicate 65ms
2026/11/29 11:20:38 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:20:38 activator: shop.example.com: released with a marker (clean true, txid 2, files 3:9dbd3d17c951f54e8fc29a552e2dd7ed58fd434a4f71958683b28fa7731f9784) in 39ms: files 16ms, sync 9ms, record 13ms, marker 1ms
2026/11/29 11:20:38 activator: shop.example.com hibernated
2026/11/29 11:20:38 lease: shop.example.com: HA lease acquired in 4ms (clean marker)
2026/11/29 11:20:38 activator: shop.example.com: restored (no-db) from @root into g-00000000000000000002 at TXID 2
2026/11/29 11:20:38 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 1ms, gate 0s, root start 3ms)
2026/11/29 11:20:38 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 12ms, healthy 1ms later
2026/11/29 11:20:38 lease: /tmp/TestHAWakeSwitchOnMigratesFromTheRoot3003130830/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/11/29 11:20:38 activator: shop.example.com: woke in 96ms: checks 0s, lease 8ms, restore 50ms, identity 0s, protect 3ms, spawn 13ms, replicate 22ms
2026/11/29 11:20:38 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:20:38 activator: shop.example.com: released with a marker (clean true, txid 3, files 3:3b2064ee9ccebc869848796d23f7e68ee2e3976d3c35fd7df4c549e367c50c6c) in 17ms: files 7ms, sync 5ms, record 4ms, marker 1ms
2026/11/29 11:20:38 activator: shop.example.com hibernated
2026/11/29 11:20:39 lease: shop.example.com: HA lease acquired in 5ms (first wake)
2026/11/29 11:20:39 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:20:39 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 12ms, control socket 0s, key gate 0s, logs 0s) 12ms, launch file 1ms, gate 0s, root start 4ms)
2026/11/29 11:20:39 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 17ms, healthy 1ms later
2026/11/29 11:20:39 activator: shop.example.com: woke in 92ms: checks 0s, lease 6ms, restore 4ms, identity 0s, protect 0s, spawn 18ms, replicate 64ms
2026/11/29 11:20:39 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:20:39 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:f847955f8d4e5193463d8963394efaffaae9160316143bce8518c498fc544135) in 15ms: files 7ms, sync 3ms, record 4ms, marker 1ms
2026/11/29 11:20:39 activator: shop.example.com hibernated
2026/11/29 11:20:39 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/11/29 11:20:40 lease: shop.example.com: HA lease acquired in 4ms (first wake)
2026/11/29 11:20:40 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:20: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 12ms, control socket 0s, key gate 0s, logs 0s) 12ms, launch file 1ms, gate 0s, root start 4ms)
2026/11/29 11:20:40 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 17ms, healthy 1ms later
2026/11/29 11:20:40 activator: shop.example.com: woke in 88ms: checks 0s, lease 5ms, restore 1ms, identity 0s, protect 0s, spawn 18ms, replicate 64ms
2026/11/29 11:20:40 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:20:40 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:c4cbc75b5f083bad898504dde349722056e5e05129050031cd634456cfbe7ea1) in 16ms: files 7ms, sync 3ms, record 4ms, marker 1ms
2026/11/29 11:20:40 activator: shop.example.com hibernated
2026/11/29 11:20:40 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/11/29 11:20:41 lease: shop.example.com: HA lease acquired in 4ms (first wake)
2026/11/29 11:20:41 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:20: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 12ms, control socket 0s, key gate 0s, logs 0s) 12ms, launch file 1ms, gate 0s, root start 4ms)
2026/11/29 11:20:41 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 17ms, healthy 1ms later
2026/11/29 11:20:41 activator: shop.example.com: woke in 88ms: checks 0s, lease 5ms, restore 1ms, identity 0s, protect 0s, spawn 18ms, replicate 64ms
2026/11/29 11:20:41 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:20:41 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:e979db246e2261185a0ee478b0f600f7a784f3c3e55fc64a091709a0fe6ccb96) in 15ms: files 7ms, sync 3ms, record 4ms, marker 1ms
2026/11/29 11:20:41 activator: shop.example.com hibernated
2026/11/29 11:20:42 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/11/29 11:20:42 lease: shop.example.com: HA lease acquired in 4ms (first wake)
2026/11/29 11:20:42 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:20:42 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 12ms, control socket 0s, key gate 0s, logs 0s) 12ms, launch file 1ms, gate 0s, root start 4ms)
2026/11/29 11:20:42 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 17ms, healthy 1ms later
2026/11/29 11:20:43 activator: shop.example.com: woke in 88ms: checks 0s, lease 5ms, restore 1ms, identity 0s, protect 0s, spawn 18ms, replicate 64ms
2026/11/29 11:20:43 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:20:43 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:3a33336b2142ae2bb8e8dfaca352586403ef1a9e9b9ff09f3c21b17999a75a89) in 15ms: files 7ms, sync 3ms, record 4ms, marker 1ms
2026/11/29 11:20:43 activator: shop.example.com hibernated
2026/11/29 11:20:43 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/11/29 11:20:44 lease: shop.example.com: HA lease acquired in 5ms (first wake)
2026/11/29 11:20:44 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:20:44 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 12ms, control socket 0s, key gate 0s, logs 0s) 13ms, launch file 1ms, gate 0s, root start 4ms)
2026/11/29 11:20:44 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 17ms, healthy 1ms later
2026/11/29 11:20:44 activator: shop.example.com: woke in 89ms: checks 0s, lease 6ms, restore 1ms, identity 0s, protect 0s, spawn 18ms, replicate 64ms
2026/11/29 11:20:44 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:20:44 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:88ded81dd6813297230aebe0ad1bea37798c97d5c10bae6d65b9c317849eab12) in 16ms: files 7ms, sync 3ms, record 4ms, marker 1ms
2026/11/29 11:20:44 activator: shop.example.com hibernated
2026/11/29 11:20:44 lease: shop.example.com: HA lease acquired in 4ms (clean marker)
2026/11/29 11:20:44 activator: shop.example.com: kept local, replicating to g-00000000000000000002 from TXID 1
2026/11/29 11:20:44 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 1ms, gate 0s, root start 3ms)
2026/11/29 11:20:44 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 11ms, healthy 1ms later
2026/11/29 11:20:45 activator: shop.example.com: woke in 1.059s: checks 0s, lease 5ms, restore 10ms, identity 0s, protect 0s, spawn 12ms, replicate 1.032s
2026/11/29 11:20:45 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:20:45 activator: shop.example.com: released with a marker (clean true, txid 2, files 3:2100ea7bc96cc3ff0708a8a2c388c6c04de9faf6c20b4e549d946882d97562ba) in 14ms: files 7ms, sync 2ms, record 4ms, marker 1ms
2026/11/29 11:20:45 activator: shop.example.com hibernated
2026/11/29 11:20:46 lease: shop.example.com: HA lease acquired in 5ms (first wake)
2026/11/29 11:20:46 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:20: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 12ms, control socket 0s, key gate 0s, logs 0s) 12ms, launch file 0s, gate 0s, root start 4ms)
2026/11/29 11:20:46 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 17ms, healthy 1ms later
2026/11/29 11:20:46 activator: shop.example.com: woke in 88ms: checks 0s, lease 6ms, restore 1ms, identity 0s, protect 0s, spawn 18ms, replicate 64ms
2026/11/29 11:20:46 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:20:46 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:4c676f1b11b042049c6cc691977a53b9317539b92189b01717a09cbd4b49c8bc) in 15ms: files 7ms, sync 3ms, record 4ms, marker 1ms
2026/11/29 11:20:46 activator: shop.example.com hibernated
2026/11/29 11:20:46 lease: shop.example.com: HA lease acquired in 3ms (clean marker)
2026/11/29 11:20:46 activator: shop.example.com: kept local
2026/11/29 11:20: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 7ms, control socket 0s, key gate 0s, logs 0s) 7ms, launch file 1ms, gate 0s, root start 3ms)
2026/11/29 11:20:46 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 11ms, healthy 1ms later
2026/11/29 11:20:47 activator: shop.example.com: woke in 1.04s: checks 0s, lease 4ms, restore 2ms, identity 0s, protect 0s, spawn 12ms, replicate 1.021s
2026/11/29 11:20:48 lease: shop.example.com: HA lease acquired in 4ms (first wake)
2026/11/29 11:20:48 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:20: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 12ms, control socket 0s, key gate 0s, logs 0s) 12ms, launch file 1ms, gate 0s, root start 4ms)
2026/11/29 11:20:48 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 17ms, healthy 1ms later
2026/11/29 11:20:48 activator: shop.example.com: woke in 87ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 18ms, replicate 64ms
2026/11/29 11:20:48 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:20:48 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:cd940ab9b88b247200a5e76423b060ce51ffa948b848322e3da4a3ac4b2a8f90) in 19ms: files 8ms, sync 3ms, record 4ms, marker 3ms
2026/11/29 11:20:48 activator: shop.example.com hibernated
2026/11/29 11:20:49 lease: shop.example.com: HA lease acquired in 5ms (first wake)
2026/11/29 11:20:49 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:20:49 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 12ms, control socket 0s, key gate 0s, logs 0s) 12ms, launch file 1ms, gate 0s, root start 4ms)
2026/11/29 11:20:49 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 17ms, healthy 1ms later
2026/11/29 11:20:49 activator: shop.example.com: woke in 92ms: checks 0s, lease 6ms, restore 0s, identity 0s, protect 0s, spawn 18ms, replicate 67ms
2026/11/29 11:20:49 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:20:49 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:b6ace0b122a01fe1724ae037a2a0f8e6ffcec5e71888a89e86b85e09da83693d) in 17ms: files 8ms, sync 3ms, record 4ms, marker 2ms
2026/11/29 11:20:49 activator: shop.example.com hibernated
2026/11/29 11:20:51 activator: shop.example.com: wake failed: context deadline exceeded
2026/11/29 11:20:52 activator: HA placement host=shop.example.com kind=Recovery ref=b reason=owner-recovery generation=2026-11-29T11:20:52Z lock_generation=9
2026/11/29 11:20:52 ha_takeover host=shop.example.com iid=i-b cause=visitor confirmed=false error=false
2026/11/29 11:20:52 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/11/29 11:20:52 activator: shop.example.com: the holder i-b is terminated (EC2) and its lease expired; taking the host over
2026/11/29 11:20:52 lease: shop.example.com: HA lease acquired in 3ms (holder terminated)
2026/11/29 11:20:53 activator: HA placement host=shop.example.com kind=Base ref= reason=base-switch-off generation= lock_generation=0
2026/11/29 11:20:53 lease: shop.example.com: HA lease acquired in 4ms (first wake)
2026/11/29 11:20:53 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:20:53 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 12ms, control socket 0s, key gate 0s, logs 0s) 12ms, launch file 1ms, gate 0s, root start 4ms)
2026/11/29 11:20:53 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 17ms, healthy 1ms later
2026/11/29 11:20:53 activator: shop.example.com: woke in 88ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 18ms, replicate 64ms
2026/11/29 11:20:56 lease: shutdown.example.com: HA lease acquired in 5ms (first wake)
2026/11/29 11:20:56 activator: shutdown.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:20:56 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 12ms, control socket 0s, key gate 0s, logs 0s) 13ms, launch file 1ms, gate 0s, root start 4ms)
2026/11/29 11:20:56 activator: shutdown.example.com: carlos-instance@shutdown.example.com.service launched in 17ms, healthy 1ms later
2026/11/29 11:20:56 activator: shutdown.example.com: woke in 89ms: checks 0s, lease 6ms, restore 0s, identity 0s, protect 0s, spawn 18ms, replicate 65ms
2026/11/29 11:20:56 activator: next-due probe shutdown.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:20:56 activator: shutdown.example.com: released with a marker (clean true, txid 1, files 3:15a7d18ec0b5d9a308ed1f6e800e4a351b9041c92a29e529a644678575ccc11e) in 16ms: files 7ms, sync 3ms, record 4ms, marker 1ms
2026/11/29 11:20:56 activator: shutdown.example.com hibernated
2026/11/29 11:20:57 lease: shop.example.com: HA lease acquired in 5ms (first wake)
2026/11/29 11:20:57 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:20:57 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 12ms, control socket 0s, key gate 0s, logs 0s) 13ms, launch file 1ms, gate 0s, root start 4ms)
2026/11/29 11:20:57 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 18ms, healthy 1ms later
2026/11/29 11:20:57 activator: shop.example.com: woke in 90ms: checks 0s, lease 6ms, restore 0s, identity 0s, protect 0s, spawn 18ms, replicate 65ms
2026/11/29 11:20:57 lease: shop.example.com: HA lease acquired in 5ms (clean marker)
2026/11/29 11:20:58 lease: shop.example.com: HA lease acquired in 4ms (first wake)
2026/11/29 11:20:58 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:20:58 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 1ms, gate 0s, root start 4ms)
2026/11/29 11:20:58 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 17ms, healthy 1ms later
2026/11/29 11:20:58 activator: shop.example.com: woke in 88ms: checks 0s, lease 5ms, restore 1ms, identity 0s, protect 0s, spawn 17ms, replicate 64ms
2026/11/29 11:20:58 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:20:58 activator: stop shop.example.com: the host's slice is not proven empty: it holds a process; keeping replication and the lease until it is
2026/11/29 11:20:58 activator: stop shop.example.com: the host's slice is not proven empty: cgroup.events: permission denied; keeping replication and the lease until it is
2026/11/29 11:20:58 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:89ddcae9faf01ae2e737fcc5e37c566f1f99bc50bbc458b154dfc8e56affaf0b) in 22ms: files 12ms, sync 3ms, record 5ms, marker 2ms
2026/11/29 11:20:58 activator: shop.example.com hibernated
2026/11/29 11:20:59 lease: shop.example.com: HA lease acquired in 5ms (first wake)
2026/11/29 11:20:59 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:20:59 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 12ms, control socket 0s, key gate 0s, logs 0s) 12ms, launch file 1ms, gate 0s, root start 4ms)
2026/11/29 11:20:59 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 17ms, healthy 1ms later
2026/11/29 11:21:00 activator: shop.example.com: woke in 89ms: checks 0s, lease 6ms, restore 1ms, identity 0s, protect 0s, spawn 18ms, replicate 65ms
2026/11/29 11:21:01 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:21:01 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:8796c818221e67df21036b8cc42dd68f609c431009d547c36de4c9770bc83578) in 15ms: files 7ms, sync 3ms, record 4ms, marker 1ms
2026/11/29 11:21:01 activator: shop.example.com hibernated
2026/11/29 11:21:01 lease: shop.example.com: HA lease acquired in 4ms (clean marker)
2026/11/29 11:21:01 activator: shop.example.com: kept local
2026/11/29 11:21:01 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 1ms, gate 0s, root start 3ms)
2026/11/29 11:21:01 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 12ms, healthy 1ms later
2026/11/29 11:21:01 activator: shop.example.com: woke in 87ms: checks 0s, lease 5ms, restore 2ms, identity 0s, protect 0s, spawn 13ms, replicate 66ms
2026/11/29 11:21:01 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:21:01 activator: shop.example.com: released with a marker (clean true, txid 2, files 4:79d4a00947527c253de1cea48442b4f58c7f008a8fdcf888bc26a4e1bce80e00) in 17ms: files 10ms, sync 2ms, record 4ms, marker 1ms
2026/11/29 11:21:01 activator: shop.example.com hibernated
2026/11/29 11:21:02 activator: CARLOS_ADMIN_TOKEN in /tmp/TestHATokenNotMintedBesideAManifest2365115669/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/11/29 11:21:03 activator: CARLOS_INSTANCE_KEY in /tmp/TestLegacyLaunchPublishesNothing1711471275/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/11/29 11:21:04 activator: CARLOS_ADMIN_TOKEN in /tmp/TestHAKeyNotMintedAfterAReplacementPastTheGate1161407961/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/11/29 11:21:08 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/11/29 11:21:08 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/11/29 11:21:12 lease: shop.example.com: HA lease acquired in 5ms (first wake)
2026/11/29 11:21:12 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:21:12 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 12ms, control socket 0s, key gate 0s, logs 0s) 12ms, launch file 1ms, gate 0s, root start 4ms)
2026/11/29 11:21:12 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 17ms, healthy 1ms later
2026/11/29 11:21:12 activator: shop.example.com: woke in 91ms: checks 1ms, lease 7ms, restore 1ms, identity 0s, protect 0s, spawn 18ms, replicate 64ms
2026/11/29 11:21:13 lease: shop.example.com: HA lease acquired in 4ms (first wake)
2026/11/29 11:21:16 activator: shop.example.com: files: ALERT: the manifest at revision 8 holds raw secret item(s) ["host.env" "instance.key" "report.token"] written after the host's secrets were sealed: a box on an older release published them
2026/11/29 11:21:17 activator: shop.example.com: files: ALERT: the manifest at revision 8 holds raw secret item(s) ["host.env" "instance.key" "report.token"] written after the host's secrets were sealed: a box on an older release published them
2026/11/29 11:21:18 lease: hand.example.com: acquired in 2ms (client 0s, lock read and write 2ms)
2026/11/29 11:21:22 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 81ms, replicate 0s
2026/11/29 11:21:22 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:21:23 activator: shop.example.com hibernated
2026/11/29 11:21:25 activator: shop.example.com: woke in 82ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 81ms, replicate 0s
2026/11/29 11:21:25 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:21:26 activator: shop.example.com hibernated
2026/11/29 11:21:27 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:21:28 activator: shop.example.com hibernated
2026/11/29 11:21:29 activator: shop.example.com: woke in 86ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 86ms, replicate 0s
2026/11/29 11:21:29 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:21:30 activator: shop.example.com hibernated
2026/11/29 11:21:30 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:21:31 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:21:32 activator: shop.example.com hibernated
2026/11/29 11:21:32 activator: shop.example.com: woke in 84ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 83ms, replicate 0s
2026/11/29 11:21:32 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:21:39 activator: shop.example.com hibernated
2026/11/29 11:21:39 activator: shop.example.com: woke in 83ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 82ms, replicate 0s
2026/11/29 11:21:39 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:21:40 activator: shop.example.com hibernated
2026/11/29 11:21:40 activator: shop.example.com: woke in 79ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 79ms, replicate 0s
2026/11/29 11:21:40 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:21:42 activator: shop.example.com hibernated
2026/11/29 11:21:42 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:21:42 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:21:43 activator: shop.example.com hibernated
2026/11/29 11:21:43 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 81ms, replicate 0s
2026/11/29 11:21:43 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:21:43 http: proxy error: context canceled
2026/11/29 11:21:44 activator: shop.example.com hibernated
2026/11/29 11:21:45 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 81ms, replicate 0s
2026/11/29 11:21:45 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:21:46 activator: shop.example.com hibernated
2026/11/29 11:21:46 activator: shop.example.com: woke in 82ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 82ms, replicate 0s
2026/11/29 11:21:47 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:21:48 activator: shop.example.com hibernated
2026/11/29 11:21:48 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:21:48 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:21:49 activator: shop.example.com hibernated
2026/11/29 11:21:50 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:21:50 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:21:51 activator: shop.example.com hibernated
2026/11/29 11:21:51 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:21:51 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:21:52 activator: shop.example.com hibernated
2026/11/29 11:21:53 activator: shop.example.com: woke in 82ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 82ms, replicate 0s
2026/11/29 11:21:53 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:21:53 http: proxy error: context canceled
2026/11/29 11:21:54 activator: shop.example.com hibernated
2026/11/29 11:21:55 activator: shop.example.com: woke in 79ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 79ms, replicate 0s
2026/11/29 11:21:55 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:21:55 http: proxy error: context canceled
2026/11/29 11:21:56 activator: shop.example.com hibernated
2026/11/29 11:21:56 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:21:57 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:21:57 http: proxy error: context canceled
2026/11/29 11:21:58 activator: shop.example.com hibernated
2026/11/29 11:21:58 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 81ms, replicate 0s
2026/11/29 11:21:58 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:00 activator: shop.example.com hibernated
2026/11/29 11:22:00 activator: shop.example.com: woke in 79ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 79ms, replicate 0s
2026/11/29 11:22:00 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:00 http: proxy error: context canceled
2026/11/29 11:22:01 activator: shop.example.com hibernated
2026/11/29 11:22:02 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 81ms, replicate 0s
2026/11/29 11:22:02 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:02 http: proxy error: context canceled
2026/11/29 11:22:03 activator: shop.example.com hibernated
2026/11/29 11:22:04 activator: shop.example.com: woke in 79ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 79ms, replicate 0s
2026/11/29 11:22:04 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:05 activator: shop.example.com hibernated
2026/11/29 11:22:06 activator: shop.example.com: woke in 82ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 82ms, replicate 0s
2026/11/29 11:22:06 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:07 activator: shop.example.com hibernated
2026/11/29 11:22:08 activator: shop.example.com: woke in 82ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 82ms, replicate 0s
2026/11/29 11:22:08 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:09 activator: shop.example.com hibernated
2026/11/29 11:22:10 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 81ms, replicate 0s
2026/11/29 11:22:10 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:11 activator: shop.example.com hibernated
2026/11/29 11:22:12 activator: shop.example.com: woke in 82ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 82ms, replicate 0s
2026/11/29 11:22:12 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:13 activator: shop.example.com hibernated
2026/11/29 11:22:14 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:22:14 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:15 activator: shop.example.com hibernated
2026/11/29 11:22:16 activator: shop.example.com: woke in 79ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 79ms, replicate 0s
2026/11/29 11:22:17 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:17 http: proxy error: context canceled
2026/11/29 11:22:18 activator: shop.example.com hibernated
2026/11/29 11:22:19 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:22:19 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:20 activator: shop.example.com hibernated
2026/11/29 11:22:21 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:22:21 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:21 http: proxy error: context canceled
2026/11/29 11:22:22 activator: shop.example.com hibernated
2026/11/29 11:22:23 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:22:23 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:23 http: proxy error: context canceled
2026/11/29 11:22:24 activator: shop.example.com hibernated
2026/11/29 11:22:25 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 81ms, replicate 0s
2026/11/29 11:22:25 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:26 activator: shop.example.com hibernated
2026/11/29 11:22:27 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:22:28 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:29 activator: shop.example.com hibernated
2026/11/29 11:22:30 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:22:30 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:30 http: proxy error: context canceled
2026/11/29 11:22:31 activator: shop.example.com hibernated
2026/11/29 11:22:32 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:22:32 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:33 activator: shop.example.com hibernated
2026/11/29 11:22:35 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:22:35 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:36 activator: shop.example.com hibernated
2026/11/29 11:22:37 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:22:37 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:38 activator: shop.example.com hibernated
2026/11/29 11:22:39 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:22:40 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:41 activator: shop.example.com hibernated
2026/11/29 11:22:42 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 81ms, replicate 0s
2026/11/29 11:22:42 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:42 http: proxy error: context canceled
2026/11/29 11:22:43 activator: shop.example.com hibernated
2026/11/29 11:22:45 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:22:45 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:46 activator: shop.example.com hibernated
2026/11/29 11:22:47 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 81ms, replicate 0s
2026/11/29 11:22:47 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:47 http: proxy error: context canceled
2026/11/29 11:22:48 activator: shop.example.com hibernated
2026/11/29 11:22:50 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 81ms, replicate 0s
2026/11/29 11:22:50 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:51 activator: shop.example.com hibernated
2026/11/29 11:22:52 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:22:53 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:54 activator: shop.example.com hibernated
2026/11/29 11:22:55 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:22:55 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:55 http: proxy error: context canceled
2026/11/29 11:22:56 activator: shop.example.com hibernated
2026/11/29 11:22:58 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 79ms, replicate 0s
2026/11/29 11:22:58 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:22:59 activator: shop.example.com hibernated
2026/11/29 11:23:01 activator: shop.example.com: woke in 82ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 82ms, replicate 0s
2026/11/29 11:23:01 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:23:02 activator: shop.example.com hibernated
2026/11/29 11:23:03 activator: shop.example.com: woke in 79ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 79ms, replicate 0s
2026/11/29 11:23:04 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:23:05 activator: shop.example.com hibernated
2026/11/29 11:23:06 activator: shop.example.com: woke in 79ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 79ms, replicate 0s
2026/11/29 11:23:06 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:23:06 http: proxy error: context canceled
2026/11/29 11:23:07 activator: shop.example.com hibernated
2026/11/29 11:23:09 activator: shop.example.com: woke in 80ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:23:09 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:23:10 activator: shop.example.com hibernated
2026/11/29 11:23:12 activator: shop.example.com: woke in 79ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 79ms, replicate 0s
2026/11/29 11:23:12 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:23:13 activator: shop.example.com hibernated
2026/11/29 11:23:15 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:23:15 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:23:16 activator: shop.example.com hibernated
2026/11/29 11:23:18 activator: shop.example.com: woke in 82ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 82ms, replicate 0s
2026/11/29 11:23:18 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:23:18 http: proxy error: context canceled
2026/11/29 11:23:19 activator: shop.example.com hibernated
2026/11/29 11:23:21 activator: shop.example.com: woke in 81ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 80ms, replicate 0s
2026/11/29 11:23:21 activator: shop.example.com idle 0s — hibernating
2026/11/29 11:23:21 http: proxy error: context canceled
2026/11/29 11:23:22 activator: shop.example.com hibernated
2026/11/29 11:23:23 activator: seeding h.example.com: /tmp/TestADeclinedNestedSeedRunsThePinnedFile2144873357/001/live/h.example.com seed --db /tmp/nb1249377657/data/instances/h.example.com/h.example.com.db
2026/11/29 11:23:23 activator: seeded h.example.com
2026/11/29 11:23:23 activator: CARLOS_INSTANCE_KEY is set by the app's configuration for /tmp/TestExecBackendStartNeverHandsTheChildAnEmptyKeyWhileOneExistse2520346148/002/shop.example.com.env: the platform mints none while it is
2026/11/29 11:23:23 activator: CARLOS_INSTANCE_KEY is set by the app's configuration for /tmp/TestExecBackendStartNeverHandsTheChildAnEmptyKeyWhileOneExistsn2031845991/002/shop.example.com.env: the platform mints none while it is
2026/11/29 11:23:23 activator: seeding seeded.example.com: /tmp/TestExecBackendSeedMintsTheKeyForAFreshFlatInstance2381529005/001/live/seeded.example.com seed --db /tmp/TestExecBackendSeedMintsTheKeyForAFreshFlatInstance2381529005/002/seeded.example.com.db
2026/11/29 11:23:24 activator: seeded seeded.example.com
2026/11/29 11:23:24 activator: the email submission switch of abcxyz/docs could not be read; a.docs.example.com starts with submission (its bundle holds a From and no SMTP host)
2026/11/29 11:23:24 activator: the email submission switch of abcxyz/docs could not be read; a.docs.example.com starts with submission (its bundle holds a From and no SMTP host)
2026/11/29 11:23:24 activator: the email submission switch of abcxyz/docs could not be read; a.docs.example.com starts with submission (its bundle holds a From and no SMTP host)
2026/11/29 11:23:24 activator: the email submission switch of abcxyz/docs could not be read; a.docs.example.com starts with its bundle's SMTP settings, if it has any
2026/11/29 11:23:24 activator: the email submission switch of abcxyz/docs could not be read; a.docs.example.com starts with its bundle's SMTP settings, if it has any
2026/11/29 11:23:24 activator: the email submission switch of abcxyz/docs could not be read; a.docs.example.com starts with its bundle's SMTP settings, if it has any
2026/11/29 11:23:24 activator: the email submission switch of abcxyz/docs could not be read; a.docs.example.com starts with its bundle's SMTP settings, if it has any
2026/11/29 11:23:24 activator: the email submission switch of abcxyz/docs could not be read; handmade.docs.example.com starts with submission (its bundle holds a From and no SMTP host)
2026/11/29 11:23:24 activator: ERROR: route handmade.docs.example.com has no instance record, so it cannot submit mail for switched app abcxyz/docs; give it a record (adoption) or switch submission off
2026/11/29 11:23:25 activator: fence.example hibernated
2026/11/29 11:23:26 lease: shop.example.com: HA lease acquired in 5ms (first wake)
2026/11/29 11:23:26 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:23: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 14ms, control socket 0s, key gate 0s, logs 0s) 15ms, launch file 1ms, gate 0s, root start 4ms)
2026/11/29 11:23:26 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 19ms, healthy 1ms later
2026/11/29 11:23:26 activator: shop.example.com: woke in 91ms: checks 0s, lease 6ms, restore 1ms, identity 0s, protect 0s, spawn 20ms, replicate 64ms
2026/11/29 11:23:26 activator: barrier.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:23:26 activator: stop barrier.example.com: cgroup.kill: the child is not empty
2026/11/29 11:23:26 activator: stop barrier.example.com: not every process of the entry is proven gone; keeping the lease until it is
2026/11/29 11:23:26 activator: stop barrier.example.com: cgroup.kill: the child is not empty
2026/11/29 11:23:26 activator: barrier.example.com hibernated
2026/11/29 11:23:27 activator: barrier.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:23:27 activator: stop generation 11: cgroup.kill: the child is not empty
2026/11/29 11:23:27 activator: generation 11 of barrier.example.com did not prove its exit; keeping it in the operation set
2026/11/29 11:23:28 activator: one.example.com: wake failed: start one.example.com: GET / answered 500
2026/11/29 11:23:28 activator: one.example.com: an earlier planned wake's outcome is still being delivered after 200ms; refusing this wake until it is
2026/11/29 11:23:29 activator: one.example.com: an earlier planned wake's outcome is still being delivered after 200ms; refusing this wake until it is
2026/11/29 11:23:29 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/11/29 11:23:29 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/11/29 11:23:34 activator: shop.example.com: wake failed: activator: the probe attempt failed
materialize failed
2026/11/29 11:23:35 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/11/29 11:23:35 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/11/29 11:23:35 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 2ms, healthy 1ms later
2026/11/29 11:23:35 activator: shop.example.com: started carlos-instance-rootfs-tty@shop.example.com.service (console of build v2) memory.max=1073741824
2026/11/29 11:23:35 activator: shop.example.com: started carlos-instance-rootfs-tty@shop.example.com.service (cmd of build v2) memory.max=1073741824
2026/11/29 11:23:35 activator: h.example.com: started carlos-instance-tty@h.example.com.service for session sess_a
2026/11/29 11:23:35 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/11/29 11:23:35 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/11/29 11:23:35 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 2ms, healthy 1ms later
2026/11/29 11:23:35 activator: shop.example.com: started carlos-instance-rootfs-tty@shop.example.com.service (console of build v2) memory.max=1073741824
2026/11/29 11:23:36 activator: shop.example.com: files: ALERT: the manifest at revision 4 holds raw secret item(s) ["host.env"] written after the host's secrets were sealed: a box on an older release published them
2026/11/29 11:23:37 activator: x.example recovery probe healthy; held until the source opens
2026/11/29 11:23:37 activator: x.example hibernated
2026/11/29 11:23:38 activator: x.example recovery probe healthy; held until the source opens
2026/11/29 11:23:38 activator: x.example hibernated
2026/11/29 11:23:39 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/11/29 11:23:39 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/11/29 11:23:39 activator: shop.example.com: release command of build v2 started
2026/11/29 11:23:39 activator: shop.example.com: the release command of build v2 is proven stopped
2026/11/29 11:23:39 activator: shop.example.com: generation 100 of v2: record 0s, start 0s, healthy 0s later
2026/11/29 11:23:39 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:23:39 activator: shop.example.com hibernated
2026/11/29 11:23:40 lease: shop.example.com: acquired in 2ms (client 0s, lock read and write 2ms)
2026/11/29 11:23:40 activator: shop.example.com: escrow: restored shop.example.com.env from the bucket
2026/11/29 11:23:40 activator: CARLOS_ADMIN_TOKEN in /tmp/TestStatelessEscrowRecordsAbsencenever_written1879226457/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/11/29 11:23:40 activator: CARLOS_INSTANCE_KEY in /tmp/TestStatelessEscrowRecordsAbsencenever_written1879226457/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/11/29 11:23:40 lease: shop.example.com: acquired in 2ms (client 0s, lock read and write 2ms)
2026/11/29 11:23:41 activator: shop.example.com: escrow: restored shop.example.com.env from the bucket
2026/11/29 11:23:41 activator: shop.example.com: escrow: restored shop.example.com/instance.key from the bucket
2026/11/29 11:23:41 activator: shop.example.com: escrow: restored shop.example.com/report.token from the bucket
2026/11/29 11:23:41 activator: CARLOS_ADMIN_TOKEN in /tmp/TestStatelessEscrowRecordsAbsencewritten1344980252/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/11/29 11:23:41 activator: CARLOS_INSTANCE_KEY in /tmp/TestStatelessEscrowRecordsAbsencewritten1344980252/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/11/29 11:23:41 lease: shop.example.com: acquired in 2ms (client 0s, lock read and write 2ms)
2026/11/29 11:23:41 activator: shop.example.com: escrow: restored shop.example.com.env from the bucket
2026/11/29 11:23:42 lease: shop.example.com: acquired in 3ms (client 0s, lock read and write 2ms)
2026/11/29 11:23:42 activator: shop.example.com: escrow: restored shop.example.com.env from the bucket
2026/11/29 11:23:42 activator: CARLOS_ADMIN_TOKEN in /tmp/TestStatelessEscrowRecordsAbsenceupgraded3645189645/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/11/29 11:23:42 activator: CARLOS_INSTANCE_KEY in /tmp/TestStatelessEscrowRecordsAbsenceupgraded3645189645/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/11/29 11:23:43 activator: shop.example.com: generation 101 of v2: record 0s, start 1ms, healthy 0s later
2026/11/29 11:23:43 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:23:43 activator: shop.example.com hibernated
2026/11/29 11:23:45 activator: shop.example.com hibernated
2026/11/29 11:23:47 provision: minted instance route shop.example.com (app "shop" acct "bab")
2026/11/29 11:23:48 activator: shop.example.com: generation 103 of v2: record 0s, start 26ms, healthy 0s later
2026/11/29 11:23:48 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:23:48 activator: shop.example.com hibernated
2026/11/29 11:23:49 provision: minted instance route shop.example.com (app "shop" acct "bab")
2026/11/29 11:23:51 provision: minted instance route shop.example.com (app "shop" acct "bab")
2026/11/29 11:23:51 provision: converged shop.example.com fleet assignment "" moved false -> "2026-11-29T11:23:51.641127584Z" moved false
2026/11/29 11:23:51 activator: shop.example.com: generation 104 of v2: record 0s, start 0s, healthy 0s later
2026/11/29 11:23:51 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:23:51 activator: shop.example.com hibernated
2026/11/29 11:23:54 activator: shop.example.com: generation 106 of v1: record 0s, start 1ms, healthy 0s later
2026/11/29 11:23:54 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:23:54 activator: shop.example.com hibernated
2026/11/29 11:23:56 activator: shop.example.com: generation 108 of v1: record 0s, start 1ms, healthy 0s later
2026/11/29 11:23:56 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:23:56 activator: shop.example.com hibernated
2026/11/29 11:23:59 activator: shop.example.com: generation 110 of v1: record 0s, start 1ms, healthy 0s later
2026/11/29 11:23:59 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:23:59 activator: shop.example.com hibernated
2026/11/29 11:24:01 activator: shop.example.com: generation 112 of v1: record 0s, start 1ms, healthy 0s later
2026/11/29 11:24:01 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:24:01 activator: shop.example.com hibernated
2026/11/29 11:24:02 activator: shop.example.com: generation 113 of v2: record 0s, start 1ms, healthy 0s later
2026/11/29 11:24:02 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:24:02 activator: shop.example.com hibernated
2026/11/29 11:24:04 activator: shop.example.com: generation 115 of v1: record 0s, start 1ms, healthy 0s later
2026/11/29 11:24:04 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:24:04 activator: shop.example.com hibernated
2026/11/29 11:24:05 activator: shop.example.com: generation 116 of v2: record 0s, start 1ms, healthy 0s later
2026/11/29 11:24:05 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:24:05 activator: shop.example.com hibernated
2026/11/29 11:24:08 activator: shop.example.com: generation 118 of v1: record 0s, start 1ms, healthy 0s later
2026/11/29 11:24:08 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:24:08 activator: shop.example.com hibernated
2026/11/29 11:24:08 activator: shop.example.com: generation 119 of v2: record 0s, start 1ms, healthy 0s later
2026/11/29 11:24:08 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:24:08 activator: shop.example.com hibernated
2026/11/29 11:24:09 activator: shop.example.com: held by release attempt deploy-v2-retry: release: activator: the attempt's build needs a release that has not passed for this attempt; said again only when it changes
2026/11/29 11:24:11 activator: shop.example.com: generation 122 of v2: record 0s, start 1ms, healthy 0s later
2026/11/29 11:24:11 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:24:12 activator: shop.example.com hibernated
2026/11/29 11:24:12 activator: shop.example.com: generation 124 of v1: record 0s, start 1ms, healthy 0s later
2026/11/29 11:24:12 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:24:12 activator: shop.example.com hibernated
2026/11/29 11:24:13 activator: shop.example.com: generation 125 of v1: record 0s, start 1ms, healthy 0s later
2026/11/29 11:24:13 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:24:13 activator: shop.example.com hibernated
2026/11/29 11:24:14 activator: shop.example.com: generation 127 of v1: record 0s, start 1ms, healthy 0s later
2026/11/29 11:24:14 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:24:14 activator: generation 128 of shop.example.com did not prove its exit; keeping it in the operation set
2026/11/29 11:24:14 activator: shop.example.com hibernated
2026/11/29 11:24:15 activator: shop.example.com: generation 129 of v1: record 0s, start 1ms, healthy 0s later
2026/11/29 11:24:15 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:24:15 activator: shop.example.com hibernated
2026/11/29 11:24:16 activator: protect.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, seed 0s, spawn 0s, replicate 0s
2026/11/29 11:24:16 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/11/29 11:24:17 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/11/29 11:24:17 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:17 activator: LEASE LOST for always-on shop.example.com (renew: the lock was taken); killing it
2026/11/29 11:24:17 activator: shop.example.com: generation 132 killed and proven gone after its lease was lost
2026/11/29 11:24:17 activator: shop.example.com: run run_a's cmd unit killed and proven gone after its lease was lost
2026/11/29 11:24:17 activator: shop.example.com: run run_a is not proven stopped after its lease ran short or was lost: processes remained; the stop keeps the lease until it is
2026/11/29 11:24:17 activator: shop.example.com: run run_a is not proven stopped: processes remained
2026/11/29 11:24:17 activator: stop shop.example.com: not every process of the entry is proven gone; keeping the lease until it is
2026/11/29 11:24:17 activator: shop.example.com hibernated
2026/11/29 11:24:17 activator: blog.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:17 activator: blog.example.com hibernated
2026/11/29 11:24:18 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/11/29 11:24:18 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:18 activator: shop.example.com: run ses_a not started: swap: lease lost: activator: the instance's lease is too close to its safety deadline to start a command
2026/11/29 11:24:18 activator: shop.example.com hibernated
2026/11/29 11:24:19 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:19 activator: shop.example.com hibernated
2026/11/29 11:24:20 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:20 activator: shop.example.com hibernated
2026/11/29 11:24:20 activator: shop.example.com: started carlos-instance-rootfs-cmd@shop.example.com.service (cmd of build v1) memory.max=1073741824
2026/11/29 11:24:23 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:23 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:24 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:24 activator: swap.example.com: worker mailer is not proven stopped: instance control: 502: stop: termination unproven; the lease is kept until it is
2026/11/29 11:24:24 activator: swap.example.com: a worker of an earlier generation is not yet proven stopped and released; generation 142's workers start once it is
2026/11/29 11:24:24 activator: swap.example.com: worker mailer is not proven stopped: instance control: 502: stop: termination unproven; the lease is kept until it is
2026/11/29 11:24:24 activator: swap.example.com: worker jobs of build v2 not started: activator: a worker of this instance is not proven stopped: worker mailer of generation 1099511627776
2026/11/29 11:24:24 activator: swap.example.com: worker mailer is not proven stopped: instance control: 502: stop: termination unproven; the lease is kept until it is
2026/11/29 11:24:24 activator: swap.example.com: worker jobs of build v2 not started: activator: a worker of this instance is not proven stopped: worker mailer of generation 1099511627776
2026/11/29 11:24:25 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:25 activator: swap.example.com: worker mailer is not proven stopped: instance control: 502: stop: termination unproven; the lease is kept until it is
2026/11/29 11:24:25 activator: swap.example.com: a worker of an earlier generation is not yet proven stopped and released; generation 144's workers start once it is
2026/11/29 11:24:27 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/11/29 11:24:27 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:145.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/11/29 11:24:28 activator: one.example.com: generation 145 of v2: record 0s, start 2ms, healthy 943ms later
2026/11/29 11:24:28 activator: one.example.com: woke in 947ms: checks 1ms, lease 0s, restore 0s, identity 0s, protect 0s, spawn 946ms, replicate 0s
2026/11/29 11:24:28 activator: one.example.com hibernated
2026/11/29 11:24:39 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/11/29 11:24:39 activator: shop.example.com: started carlos-instance-rootfs-cmd@shop.example.com.service (release of build v2) memory.max=1073741824
2026/11/29 11:24:39 activator: shop.example.com: release command of build v2 started
2026/11/29 11:24:39 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/11/29 11:24:39 activator: shop.example.com: the release command of build v2 is proven stopped
2026/11/29 11:24:40 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/11/29 11:24:40 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:40 activator: LEASE LOST for always-on shop.example.com (lease renewal failed); killing it
2026/11/29 11:24:40 activator: shop.example.com: generation 146 killed and proven gone after its lease was lost
2026/11/29 11:24:40 activator: shop.example.com hibernated
2026/11/29 11:24:41 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:41 activator: swap.example.com hibernated
2026/11/29 11:24:41 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/11/29 11:24:41 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:148.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/11/29 11:24:41 activator: swap.example.com: generation 148 of v2: record 0s, start 2ms, healthy 1ms later
2026/11/29 11:24:41 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:42 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:43 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:44 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:44 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:45 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:46 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:47 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:47 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:48 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:49 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:50 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:51 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:51 activator: swap.example.com: release command of build v2 started
2026/11/29 11:24:51 activator: swap.example.com: the release command of build v2 is not proven stopped: processes remained in the release command's cgroup; the sweep retries
2026/11/29 11:24:51 activator: swap.example.com: the release command of build v2 is proven stopped
2026/11/29 11:24:51 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/11/29 11:24:51 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/11/29 11:24:51 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 2ms, healthy 1ms later
2026/11/29 11:24:52 activator: no replica for shop.example.com in s3://test-bucket/shop.example.com — booting fresh
2026/11/29 11:24:52 activator: shop.example.com: first boot: placed an empty database before the start
2026/11/29 11:24:52 activator: shop.example.com: escrow is off: this box has no CARLOS_SECRETS_KEY to seal with, and the bucket holds no escrow for the host; the host launches and mints as before, and nothing of it is published
2026/11/29 11:24:52 activator: shop.example.com: started carlos-instance-rootfs-gen@shop.example.com:173.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/11/29 11:24:52 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:173.service launched in 2ms, healthy 1ms later
2026/11/29 11:24:52 INFO replica sync db=shop.example.com.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/29 11:24:52 INFO ltx file uploaded db=shop.example.com.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=530
2026/11/29 11:24:52 INFO replica sync db=shop.example.com.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/11/29 11:24:52 activator: shop.example.com: woke in 15ms: checks 0s, lease 0s, restore 1ms, placeholder 1ms, identity 0s, spawn 3ms, replicate 10ms
2026/11/29 11:24:52 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:24:52 INFO replica sync db=shop.example.com.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/11/29 11:24:52 INFO replica sync db=shop.example.com.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/11/29 11:24:52 activator: shop.example.com hibernated
2026/11/29 11:24:53 activator: no replica for shop.example.com in s3://test-bucket/shop.example.com — booting fresh
2026/11/29 11:24:53 activator: shop.example.com: no database and no replica, and lifetime 1 has booted before (its first-boot marker is there): refusing an empty boot
2026/11/29 11:24:54 activator: shop.example.com: release command of build v2 started
2026/11/29 11:24:54 activator: shop.example.com: the release command of build v2 is proven stopped
2026/11/29 11:24:55 activator: shop.example.com: release command of build v2 started
2026/11/29 11:24:55 activator: shop.example.com: the release command of build v2 is proven stopped
2026/11/29 11:24:55 activator: shop.example.com: release command of build v2 started
2026/11/29 11:24:55 activator: shop.example.com: polling the release command of build v2: dial unix: connection refused; asking again
2026/11/29 11:24:55 activator: shop.example.com: the release command of build v2 is proven stopped
2026/11/29 11:24:56 activator: shop.example.com: release command of build v2 started
2026/11/29 11:24:56 activator: shop.example.com: the release command of build v2 is proven stopped
2026/11/29 11:24:57 activator: shop.example.com: release command of build v2 started
2026/11/29 11:24:57 activator: shop.example.com: polling the release command of build v2: dial unix: connection refused; asking again
2026/11/29 11:24:57 activator: shop.example.com: the release command of build v2 is proven stopped
2026/11/29 11:24:58 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:58 activator: shop.example.com: release command of build v2 started
2026/11/29 11:24:58 activator: shop.example.com: the release command of build v2 is not proven stopped: processes remained in the unit's cgroup; the sweep retries
2026/11/29 11:24:58 activator: shop.example.com: the release command of build v2 is proven stopped
2026/11/29 11:24:59 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:24:59 activator: shop.example.com: release command of build v2 started
2026/11/29 11:24:59 activator: shop.example.com: the release command of build v2 is not proven stopped: processes remained in the unit's cgroup; the sweep retries
2026/11/29 11:24:59 activator: shop.example.com: the release command of build v2 is proven stopped
2026/11/29 11:24:59 activator: shop.example.com: giving the lease back failed: store: DeleteObject timed out; retrying it
2026/11/29 11:24:59 activator: shop.example.com: lease given back on retry
2026/11/29 11:25:00 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:00 activator: shop.example.com: release command of build v2 started
2026/11/29 11:25:00 activator: shop.example.com: the release command of build v2 is not proven stopped: processes remained in the unit's cgroup; the sweep retries
2026/11/29 11:25:01 activator: shop.example.com: the release command of build v2 is proven stopped
2026/11/29 11:25:01 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:01 activator: shop.example.com: release command of build v2 started
2026/11/29 11:25:01 activator: shop.example.com: the release command of build v2 is not proven stopped: processes remained in the unit's cgroup; the sweep retries
2026/11/29 11:25:01 activator: stop shop.example.com: not every process of the entry is proven gone; keeping the lease until it is
2026/11/29 11:25:02 activator: shop.example.com: the release command of build v2 is proven stopped
2026/11/29 11:25:02 activator: shop.example.com hibernated
2026/11/29 11:25:03 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:03 activator: shop.example.com: release command of build v2 started
2026/11/29 11:25:03 activator: shop.example.com: the release command of build v2 is not proven stopped: processes remained in the unit's cgroup; the sweep retries
2026/11/29 11:25:04 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:04 activator: stop shop.example.com: a worker is not proven stopped; keeping replication and the lease until it is
2026/11/29 11:25:04 activator: shop.example.com hibernated
2026/11/29 11:25:05 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:05 activator: shop.example.com: worker jobs of build v1 not started: swap: lease lost
2026/11/29 11:25:05 activator: shop.example.com hibernated
2026/11/29 11:25:05 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:05 activator: shop.example.com: worker jobs of build v1 not started: swap: a stop-evidence operation holds the host
2026/11/29 11:25:05 activator: shop.example.com hibernated
2026/11/29 11:25:06 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:06 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/11/29 11:25:06 activator: shop.example.com hibernated
2026/11/29 11:25:07 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25: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/11/29 11:25:07 activator: shop.example.com hibernated
2026/11/29 11:25: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/11/29 11:25: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) 1ms, launch file 0s, gate 0s, root start 0s)
2026/11/29 11:25:07 activator: shop.example.com: carlos-instance-rootfs-gen@shop.example.com:7.service launched in 2ms, healthy 1ms later
2026/11/29 11:25:07 activator: shop.example.com: started carlos-instance-rootfs-worker@shop.example.com:jobs.service (worker jobs of build v2) memory.max=1073741824
2026/11/29 11:25:08 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:08 activator: shop.example.com: worker jobs of build v1 may have started: instance control: 502 Bad Gateway; proving it gone
2026/11/29 11:25:08 activator: shop.example.com: worker jobs is not proven stopped: instance control: generation termination unproven; the lease is kept until it is
2026/11/29 11:25:08 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/11/29 11:25:08 activator: shop.example.com hibernated
2026/11/29 11:25:09 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:09 activator: shop.example.com: worker jobs of build v1 may have started: instance control: 502 Bad Gateway; proving it gone
2026/11/29 11:25:09 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/11/29 11:25:09 activator: shop.example.com hibernated
2026/11/29 11:25:10 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/11/29 11:25:10 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:10 activator: shop.example.com: its lease is not renewing and is safe for 1m15s more; stopping it while a drain still fits
2026/11/29 11:25:10 activator: shop.example.com: worker jobs started as its instance stopped or lost its lease; stopping it
2026/11/29 11:25:10 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/11/29 11:25:10 activator: shop.example.com hibernated
2026/11/29 11:25:11 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/11/29 11:25:11 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:11 activator: shop.example.com: worker jobs of build v1 not started: swap: lease lost: activator: the instance's lease is too close to its safety deadline to start a worker
2026/11/29 11:25:11 activator: shop.example.com hibernated
2026/11/29 11:25:12 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/11/29 11:25:12 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:12 activator: shop.example.com: worker mailer of build v1 not started: swap: lease lost: activator: the instance's lease is too close to its safety deadline to start a worker
2026/11/29 11:25:12 activator: shop.example.com: worker jobs of build v1 not started: swap: lease lost: activator: the instance's lease is too close to its safety deadline to start a worker
2026/11/29 11:25:12 activator: shop.example.com hibernated
2026/11/29 11:25:12 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:13 activator: shop.example.com: worker jobs of build v1 may have started: instance control: start jobs: context deadline exceeded; proving it gone
2026/11/29 11:25:13 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/11/29 11:25:13 activator: shop.example.com hibernated
2026/11/29 11:25:13 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/11/29 11:25:13 activator: shop.example.com: stop carlos-instance-rootfs-worker@shop.example.com:jobs.service: proof unavailable
2026/11/29 11:25:13 activator: h.example.com: seed sd_nbtqiwgyzria5guyxe6skycb6q: 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/11/29 11:25:13 activator: h.example.com: seed sd_jm52okipdy6lteqyvrmzlhrgda: 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/11/29 11:25:14 provision: minted instance route shop.example.com (app "shop" acct "bac")
2026/11/29 11:25:14 activator: shop.example.com: placed seed sd_vas7kw5pvwum4aij7ztx2gcw7a (8192 bytes)
2026/11/29 11:25:14 provision: removed instance route shop.example.com (its seed sd_vas7kw5pvwum4aij7ztx2gcw7a was aborted); the next pass rolls it back
2026/11/29 11:25:14 provision: shop.example.com: aborted seed sd_vas7kw5pvwum4aij7ztx2gcw7a 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/11/29 11:25:14 provision: shop.example.com: aborted seed sd_vas7kw5pvwum4aij7ztx2gcw7a 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/11/29 11:25:14 provision: shop.example.com: aborted seed sd_vas7kw5pvwum4aij7ztx2gcw7a: nothing of it is left on this box or in the fleet's storage; reported rolled back
2026/11/29 11:25:14 provision: minted instance route shop.example.com (app "shop" acct "bac")
2026/11/29 11:25:14 activator: shop.example.com: placed seed sd_pvwn5k2675rlkuaj7e6vazyyky (8192 bytes)
2026/11/29 11:25:14 activator: h.example.com: placed seed sd_erokg7fnbin5rqcyu6y7lkpelu (8192 bytes)
2026/11/29 11:25:14 activator: h.example.com: placed seed sd_cgmjtzaiyknxo7oaz6u6moeubm (8192 bytes)
2026/11/29 11:25:14 activator: CARLOS_INSTANCE_KEY is set by the app's configuration for /tmp/nb3199758015/data/instances/h.example.com/h.example.com.env: the platform mints none while it is
2026/11/29 11:25:14 activator: h.example.com: seed sd_kh4jwgumoebc2uyilgf6cl22uu: h.example.com could not start from its seed: the snapshot's length or sha256 does not match its record.
2026/11/29 11:25:14 activator: restored h.example.com from s3://test-bucket/h.example.com
2026/11/29 11:25:16 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:16 activator: no replica for shop.example.com in s3://test-bucket/shop.example.com — booting fresh
2026/11/29 11:25:17 activator: no replica for shop.example.com in s3://test-bucket/shop.example.com — booting fresh
2026/11/29 11:25:17 activator: shop.example.com: woke in 1ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:17 activator: no replica for shop.example.com in s3://test-bucket/shop.example.com — booting fresh
2026/11/29 11:25:18 activator: no replica for shop.example.com in s3://test-bucket/shop.example.com — booting fresh
2026/11/29 11:25:18 activator: shop.example.com: woke in 1ms: checks 0s, lease 0s, restore 1ms, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:19 activator: shop.example.com: generation 201 of v2: record 0s, start 0s, healthy 0s later
2026/11/29 11:25:19 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/11/29 11:25:19 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:19 activator: shop.example.com hibernated
2026/11/29 11:25:20 activator: shop.example.com: generation 202 of v2: record 0s, start 0s, healthy 0s later
2026/11/29 11:25:20 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/11/29 11:25:20 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:25:20 activator: shop.example.com hibernated
2026/11/29 11:25:21 activator: shop.example.com: generation 203 of v2: record 0s, start 0s, healthy 0s later
2026/11/29 11:25:21 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/11/29 11:25:21 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:21 activator: shop.example.com hibernated
2026/11/29 11:25:21 activator: shop.example.com: generation 204 of v1: record 0s, start 0s, healthy 24ms later
2026/11/29 11:25:21 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:25:22 activator: shop.example.com hibernated
2026/11/29 11:25:22 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) 1ms, launch file 1ms, gate 0s, root start 0s)
2026/11/29 11:25:22 activator: shop.example.com: generation 206 of v1: record 0s, start 0s, healthy 0s later
2026/11/29 11:25:22 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:22 activator: shop.example.com hibernated
2026/11/29 11:25:22 activator: shop.example.com: generation 207 of v2: record 0s, start 0s, healthy 0s later
2026/11/29 11:25:22 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:25:22 activator: shop.example.com hibernated
2026/11/29 11:25:23 activator: shop.example.com: generation 208 of v1: record 0s, start 0s, healthy 0s later
2026/11/29 11:25:23 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:25:23 activator: shop.example.com hibernated
2026/11/29 11:25:23 activator: shop.example.com: generation 209 of v2: record 0s, start 0s, healthy 0s later
2026/11/29 11:25:23 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:23 activator: shop.example.com hibernated
2026/11/29 11:25:24 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:25 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:26 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:27 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:27 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:28 activator: shop.example.com: generation 215 of v2: record 0s, start 1ms, healthy 0s later
2026/11/29 11:25:28 activator: shop.example.com: woke in 0s: identity 0s
2026/11/29 11:25:28 activator: shop.example.com hibernated
2026/11/29 11:25:29 activator: shop.example.com: release command of build v2 started
2026/11/29 11:25:29 activator: shop.example.com: the release command of build v2 is not proven stopped: activator: stop unproven; processes remain; the sweep retries
2026/11/29 11:25:29 activator: shop.example.com: the release command of build v2 is proven stopped
2026/11/29 11:25:30 activator: shop.example.com: release command of build v2 started
2026/11/29 11:25:30 activator: shop.example.com: the release command of build v2 is proven stopped
2026/11/29 11:25:31 activator: shop.example.com: release command of build v2 started
2026/11/29 11:25:31 activator: shop.example.com: the release command of build v2 is proven stopped
2026/11/29 11:25:32 activator: shop.example.com: release command of build v2 started
2026/11/29 11:25:33 activator: shop.example.com: stopping the release command of build v2: the instance's lease is ending
2026/11/29 11:25:33 activator: shop.example.com: the release command of build v2 is proven stopped
2026/11/29 11:25: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/11/29 11:25:34 activator: worker bot.x.internal NOT respawned (attempt (release)): swap: superseded by a newer attempt; abandoning it
2026/11/29 11:25:34 activator: worker bot.x.internal respawned (restoring v1), now running v1
2026/11/29 11:25: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/11/29 11:25:35 activator: worker bot.x.internal NOT respawned (attempt (release)): swap: superseded by a newer attempt; abandoning it
2026/11/29 11:25:35 activator: worker bot.x.internal: hold attempt onto v2 was superseded after its exec; the build it replaced (v1) is not restored, and the worker stops
2026/11/29 11:25:35 activator: bot.x.internal hibernated
2026/11/29 11:25:36 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/11/29 11:25:36 activator: publish generations to /tmp/TestReplaceWorkerReportsWhetherTheAttemptsBuildExecutedrefused_3569022396/002/not-a-dir/generations.json: open directory /tmp/TestReplaceWorkerReportsWhetherTheAttemptsBuildExecutedrefused_3569022396/002/not-a-dir: not a directory; the sweep retries
2026/11/29 11:25:36 activator: worker bot.x.internal not spawned: the build it would exec (v2 /opt/carlos/versions/v2/app) could not be published first: open directory /tmp/TestReplaceWorkerReportsWhetherTheAttemptsBuildExecutedrefused_3569022396/002/not-a-dir: not a directory
2026/11/29 11:25:36 activator: publish generations to /tmp/TestReplaceWorkerReportsWhetherTheAttemptsBuildExecutedrefused_3569022396/002/not-a-dir/generations.json: open directory /tmp/TestReplaceWorkerReportsWhetherTheAttemptsBuildExecutedrefused_3569022396/002/not-a-dir: not a directory; the sweep retries
2026/11/29 11:25:36 activator: WORKER bot.x.internal failed to respawn (attempt (release)): worker build not published before its exec: open directory /tmp/TestReplaceWorkerReportsWhetherTheAttemptsBuildExecutedrefused_3569022396/002/not-a-dir: not a directory — the sweep's crash restart takes it from here
2026/11/29 11:25:36 activator: publish generations to /tmp/TestReplaceWorkerReportsWhetherTheAttemptsBuildExecutedrefused_3569022396/002/not-a-dir/generations.json: open directory /tmp/TestReplaceWorkerReportsWhetherTheAttemptsBuildExecutedrefused_3569022396/002/not-a-dir: not a directory; the sweep retries
2026/11/29 11:25:36 activator: publish generations to /tmp/TestReplaceWorkerReportsWhetherTheAttemptsBuildExecutedrefused_3569022396/002/not-a-dir/generations.json: open directory /tmp/TestReplaceWorkerReportsWhetherTheAttemptsBuildExecutedrefused_3569022396/002/not-a-dir: not a directory; the sweep retries
2026/11/29 11:25:36 activator: worker bot.x.internal not spawned: the build it would exec (v1 /opt/carlos/versions/v1/app) could not be published first: open directory /tmp/TestReplaceWorkerReportsWhetherTheAttemptsBuildExecutedrefused_3569022396/002/not-a-dir: not a directory
2026/11/29 11:25:36 activator: publish generations to /tmp/TestReplaceWorkerReportsWhetherTheAttemptsBuildExecutedrefused_3569022396/002/not-a-dir/generations.json: open directory /tmp/TestReplaceWorkerReportsWhetherTheAttemptsBuildExecutedrefused_3569022396/002/not-a-dir: not a directory; the sweep retries
2026/11/29 11:25:36 activator: WORKER bot.x.internal failed to respawn (restoring v1): worker build not published before its exec: open directory /tmp/TestReplaceWorkerReportsWhetherTheAttemptsBuildExecutedrefused_3569022396/002/not-a-dir: not a directory — the sweep's crash restart takes it from here
2026/11/29 11:25:37 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/11/29 11:25:37 activator: worker bot.x.internal respawned (attempt (release)), now running v2
2026/11/29 11:25:37 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:37 activator: swap.example.com hibernated
2026/11/29 11:25:37 activator: swap.example.com: hold's pinned wake refused or abandoned: start swap.example.com: swap: superseded by a newer attempt
2026/11/29 11:25:38 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:38 activator: swap.example.com hibernated
2026/11/29 11:25:38 activator: swap.example.com: generation 218 of v2: record 0s, start 0s, healthy 0s later
2026/11/29 11:25:38 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:38 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/11/29 11:25:38 activator: h.example.com: kill carlos-instance-gen@h.example.com:7.service after a failed start: processes remain
2026/11/29 11:25:39 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:40 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:40 activator: swap.example.com hibernated
2026/11/29 11:25:40 activator: wake shop.example.com: open directory /opt/carlos/versions/g3r1: read-only file system
2026/11/29 11:25:41 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:43 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:43 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:44 activator: one.example.com: wake failed: start one.example.com: GET / answered 500
2026/11/29 11:25:45 activator: one.example.com: generation 227 of v1: record 0s, start 0s, healthy 0s later
2026/11/29 11:25:45 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:46 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:25:47 activator: bot10.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/11/29 11:25:47 activator: worker bot10.example.com NOT respawned (test: shed after the exec): swap: lease lost; abandoning it
2026/11/29 11:25:47 activator: worker bot10.example.com: the shed respawn child's exit is not proven (activator: stop unproven; processes remain); the entry keeps it and its build until the sweep proves it
2026/11/29 11:25:47 activator: LEASE LOST for bot10.example.com (renewal failed) — standing down
2026/11/29 11:25:47 activator: stop bot10.example.com: a respawn or the child it shed is not proven finished; keeping the lease until it is
2026/11/29 11:25:47 activator: bot10.example.com: the shed respawn child has exited
2026/11/29 11:25:47 activator: bot10.example.com hibernated
2026/11/29 11:25:48 activator: bot10.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/11/29 11:25:48 activator: worker bot10.example.com NOT respawned (test: shed after the exec): swap: lease lost; abandoning it
2026/11/29 11:25:48 activator: LEASE LOST for bot10.example.com (renewal failed) — standing down
2026/11/29 11:25:48 activator: bot10.example.com respawn did not finish before its stop; stopping the rest, the lease is kept until it has
2026/11/29 11:25:48 activator: stop bot10.example.com: a respawn or the child it shed is not proven finished; keeping the lease until it is
2026/11/29 11:25:48 activator: bot10.example.com hibernated
2026/11/29 11:25:49 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/11/29 11:25:49 activator: worker bot.x.internal respawned (attempt (release)), now running v2
2026/11/29 11:25:49 activator: worker bot.x.internal respawned (falling back to v1), now running v1
2026/11/29 11:25: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/11/29 11:25:50 activator: worker bot.x.internal respawned (attempt (release)), now running v2
2026/11/29 11:25:50 activator: worker bot.x.internal exited — restarting (backoff now 2s)
2026/11/29 11:25:50 activator: worker bot.x.internal exited; a queued release attempt makes the spawn instead of a recycle
2026/11/29 11:25:50 activator: worker bot.x.internal respawned (falling back to v1), now running v1
2026/11/29 11:25:51 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/11/29 11:25:51 activator: worker bot.x.internal respawned (attempt (restart)), now running v1
2026/11/29 11:25:51 activator: worker bot.x.internal respawned (restoring v1), now running v1
2026/11/29 11:25:52 lease: shop.example.com: HA lease acquired in 5ms (first wake)
2026/11/29 11:25:52 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:25:52 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 1ms, gate 0s, root start 4ms)
2026/11/29 11:25:52 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 17ms, healthy 1ms later
2026/11/29 11:25:52 activator: shop.example.com: woke in 88ms: checks 0s, lease 6ms, restore 1ms, identity 0s, protect 0s, spawn 18ms, replicate 64ms
2026/11/29 11:25:52 activator: shop.example.com: write fence: standing down (stopping)
2026/11/29 11:25:52 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:25:52 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:36ac038298e157725f408c6650a4f449fad804190e904804dba761014dd82b07) in 15ms: files 7ms, sync 3ms, record 4ms, marker 1ms
2026/11/29 11:25:52 activator: shop.example.com hibernated
2026/11/29 11:25:53 lease: shop.example.com: HA lease acquired in 5ms (first wake)
2026/11/29 11:25:53 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:25:53 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 12ms, control socket 0s, key gate 0s, logs 0s) 12ms, launch file 1ms, gate 0s, root start 4ms)
2026/11/29 11:25:53 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 17ms, healthy 1ms later
2026/11/29 11:25:53 activator: shop.example.com: woke in 89ms: checks 0s, lease 6ms, restore 1ms, identity 0s, protect 0s, spawn 18ms, replicate 64ms
2026/11/29 11:25:53 activator: shop.example.com: write fence: standing down (already stopping)
2026/11/29 11:25:53 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:25:53 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:cff62aace6d05aeb3f002b0c4c2ee485b35c7606fb4353a29b39de1ef103ba11) in 15ms: files 7ms, sync 3ms, record 4ms, marker 1ms
2026/11/29 11:25:53 activator: shop.example.com hibernated
2026/11/29 11:25:54 lease: shop.example.com: HA lease acquired in 5ms (first wake)
2026/11/29 11:25:54 activator: shop.example.com: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/29 11:25:54 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 12ms, control socket 0s, key gate 0s, logs 0s) 12ms, launch file 1ms, gate 0s, root start 4ms)
2026/11/29 11:25:54 activator: shop.example.com: carlos-instance@shop.example.com.service launched in 17ms, healthy 1ms later
2026/11/29 11:25:54 activator: shop.example.com: woke in 88ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 18ms, replicate 64ms
2026/11/29 11:25:54 activator: shop.example.com: write fence: standing down (stopping)
2026/11/29 11:25:54 activator: next-due probe shop.example.com: decode /api/next-due: EOF — recording none (it sleeps until a request)
2026/11/29 11:25:54 activator: shop.example.com: released with a marker (clean true, txid 1, files 3:34450ca110e642ac8e8763afe638c6d2f52c0b390f56a21ec23373129e57b5d4) in 15ms: files 7ms, sync 3ms, record 4ms, marker 1ms
2026/11/29 11:25:54 activator: shop.example.com hibernated
  shop.example.com: updated  -> v1 (canary/test)
2026/11/29 11:25:56 activator: shop.example.com: always-on rootfs instance is not running; starting it
2026/11/29 11:25:56 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/11/29 11:25:56 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) 1ms, launch file 1ms, gate 0s, root start 0s)
2026/11/29 11:25:56 activator: h.example.com: started carlos-instance@h.example.com.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 1ms, instance key 0s, env 0s, control socket 0s, key gate 0s, logs 0s) 2ms, launch file 1ms, gate 0s, root start 0s)
2026/11/29 11:25:56 activator: h.example.com: carlos-instance@h.example.com.service launched in 2ms, healthy 1ms later
2026/11/29 11:25:56 activator: h.example.com: carlos-instance@h.example.com.service launched in 2ms, healthy 1ms later
2026/11/29 11:25:56 activator: h.example.com: unit restarted outside the activator (invocation someone-else, ours inv7); stopping it
2026/11/29 11:25:56 activator: squatted.example.com: child exited during the health wait (external process serving its socket?) — not normalizing the socket mode
2026/11/29 11:26:09 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:09 activator: swap.example.com: run run_a on retired generation 1099511627776 is not proven stopped: instance control: 502 mid-roll; the sweep tries again
2026/11/29 11:26:09 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:09 activator: ledgerpay.bde.oncarlos.com: wake failed: start ledgerpay.bde.oncarlos.com: listen unix /data/exec/h/inst.sock: bind: address already in use
2026/11/29 11:26:09 activator: one.example.com hibernated
2026/11/29 11:26:09 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:09 activator: one.example.com: generation 238 of v2: record 0s, start 0s, healthy 0s later
2026/11/29 11:26:09 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:09 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:09 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/11/29 11:26:09 activator: unproven.example.com: generation 240's child is not proven empty: the generation's child still holds a process
2026/11/29 11:26:09 activator: unproven.example.com: failed wake's generation 240 is not proven stopped; keeping the lease until it is
2026/11/29 11:26:09 activator: unproven.example.com: wake failed and its generation is not proven stopped: start unproven.example.com: start unit: the unit exited before it was observed; activator: generation start failed and its termination is unproven: kill timed out
2026/11/29 11:26:09 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/11/29 11:26:09 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:09 activator: pending-f6.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:09 activator: restore-fail.example.com: wake failed: restore restore-fail.example.com: s3 down
2026/11/29 11:26:09 activator: one.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:09 activator: h.example.com: start of carlos-instance-gen@h.example.com:244.service failed, it may have begun: carlos-instance-gen@h.example.com:244.service exited before it was observed; killing it
2026/11/29 11:26:09 activator: one.example.com: wake failed: start one.example.com: h.example.com: start unit: carlos-instance-gen@h.example.com:244.service exited before it was observed
2026/11/29 11:26:09 activator: faroff.bab.oncarlos.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:09 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:09 activator: empty.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/11/29 11:26:09 activator: swap.example.com: size xlarge not applied live: instance control: size refused before any write: instance control /size: 503: refused; it takes effect at the next start
2026/11/29 11:26:09 activator: odd.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/11/29 11:26:09 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:09 activator: swap.example.com hibernated
2026/11/29 11:26:09 activator: swap.example.com: hold's pinned wake refused or abandoned: start swap.example.com: swap: superseded by a newer attempt
2026/11/29 11:26:09 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/11/29 11:26:09 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:10 activator: exited-flat.example.com: failed wake's generation 250 had no cgroup of its own, and its host cgroup is not proven empty: carlos-exec@<host> still holds a process
2026/11/29 11:26:10 activator: exited-flat.example.com: failed wake's generation 250 is not proven stopped; keeping the lease until it is
2026/11/29 11:26:10 activator: pending-f6.example.com idle 2m0s — hibernating
2026/11/29 11:26:10 activator: exited-flat.example.com: wake failed: start exited-flat.example.com: health: no answer within 30s
2026/11/29 11:26:10 activator: unproven.example.com: generation 240's child is not proven empty: the generation's child still holds a process
2026/11/29 11:26:10 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:10 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:10 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:10 activator: stop pending-f6.example.com: activator: stop unproven; processes remain; keeping the lease until termination is proven
2026/11/29 11:26:10 activator: swap.example.com hibernated
2026/11/29 11:26:10 activator: swap.example.com: hold's pinned wake refused or abandoned: start swap.example.com: swap: lease lost: lease renewal failed
2026/11/29 11:26:10 activator: f6.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/11/29 11:26:10 activator: one.example.com hibernated
2026/11/29 11:26:10 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/11/29 11:26:10 activator: worker bot.x.internal reported idle but is always-on (hibernate:false) — ignoring
2026/11/29 11:26:10 activator: one.example.com: generation 255 of v2: record 0s, start 15ms, healthy 0s later
2026/11/29 11:26:10 activator: one.example.com: woke in 20ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 20ms, replicate 0s
2026/11/29 11:26:10 activator: singleflight.example.com: wake failed: restore singleflight.example.com: s3 down
2026/11/29 11:26:10 activator: worker bot.x.internal serving v1 but live symlink is now v2 — respawning onto the new build
2026/11/29 11:26:10 activator: one.example.com: live/one.example.com names v2, which this box will not start (a failure record holds this build: v2), so it does not move onto it: it keeps running v1
2026/11/29 11:26:10 activator: unproven.example.com: failed wake's generation 240 is proven stopped; lease given back
2026/11/29 11:26:10 activator: faroff.bab.oncarlos.com idle 16m0s — hibernating
2026/11/29 11:26:10 activator: sidecar staged for awake swap.example.com — adopting
2026/11/29 11:26:10 activator: sidecar for swap.example.com was down — restarted (backoff now 2s)
2026/11/29 11:26:10 activator: unproven.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:10 activator: stop pending-f6.example.com: its host cgroup is not proven empty: the host cgroup still holds a process
2026/11/29 11:26:10 activator: one.example.com serving v1 but live symlink is now v2 — cycling onto the new build
2026/11/29 11:26:10 activator: sidecar staged for awake swap.example.com — adopting
2026/11/29 11:26:10 activator: sidecar for swap.example.com was down — restarted (backoff now 2s)
2026/11/29 11:26:10 activator: faroff.bab.oncarlos.com hibernated
2026/11/29 11:26:10 activator: swap.example.com: the sidecar's leader exited but its cgroup is not proven empty: role-sidecar: still populated
2026/11/29 11:26:10 activator: SIDECAR for swap.example.com is not proven gone for its replacement; tracking it (the sweep re-proves it)
2026/11/29 11:26:10 activator: unproven.example.com hibernated
2026/11/29 11:26:10 activator: one.example.com hibernated
2026/11/29 11:26:10 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/11/29 11:26:10 activator: worker bot.x.internal NOT respawned (converging onto a new build): swap: instance not awake; abandoning it
2026/11/29 11:26:10 activator: pending-f6.example.com hibernated
2026/11/29 11:26:10 activator: SIDECAR restart for swap.example.com failed: a legacy sidecar of this host is not proven gone (next attempt in 4s)
2026/11/29 11:26:10 activator: swap.example.com: the sidecar's leader exited but its cgroup is not proven empty: role-sidecar: still populated
2026/11/29 11:26:10 activator: always-on sidecar bot.x.internal hit its max_run of 30s — recycling its child
2026/11/29 11:26:10 activator: worker bot.x.internal respawned (hit its max_run), now running v1
2026/11/29 11:26:10 activator: stop swap.example.com: not every process of the entry is proven gone; keeping the lease until it is
2026/11/29 11:26:10 activator: swap.example.com idle 2h5m0s — hibernating
2026/11/29 11:26:10 activator: swap.example.com hibernated
2026/11/29 11:26:10 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:10 activator: one.example.com serving v1 but live symlink is now v3 — cycling onto the new build
2026/11/29 11:26:10 activator: always-on sidecar bot.x.internal hit its max_run of 30s — recycling its child
2026/11/29 11:26:10 activator: worker bot.x.internal respawned (hit its max_run), now running v1
2026/11/29 11:26:10 activator: swap.example.com: the sidecar's leader exited but its cgroup is not proven empty: role-sidecar: still populated
2026/11/29 11:26:10 activator: bot.x.internal hibernated
2026/11/29 11:26:10 activator: one.example.com hibernated
2026/11/29 11:26:10 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:10 activator: always-on sidecar bot.x.internal hit its max_run of 30s — recycling its child
2026/11/29 11:26:10 activator: worker bot.x.internal respawned (hit its max_run), now running v1
2026/11/29 11:26:10 activator: swap.example.com: the sidecar's leader exited but its cgroup is not proven empty: role-sidecar: still populated
2026/11/29 11:26:11 activator: always-on sidecar bot.x.internal hit its max_run of 30s — recycling its child
2026/11/29 11:26:11 activator: worker bot.x.internal hit its max_run; it serves v1 but live/bot.x.internal has named v2 for at least 1m30s, so it converges onto the new build instead of recycling
2026/11/29 11:26:11 activator: worker bot.x.internal respawned (converging onto a new build), now running v2
2026/11/29 11:26:11 activator: swap.example.com hibernated
2026/11/29 11:26:11 activator: always-on sidecar bot.x.internal hit its max_run of 30s — recycling its child
2026/11/29 11:26:11 activator: worker bot.x.internal respawned (hit its max_run), now running v2
2026/11/29 11:26:17 activator: one.example.com: v2 not started: its build state could not be written: bucket refused the build state
2026/11/29 11:26:17 activator: ledgerpay.bde.oncarlos.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:17 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:17 activator: swap.example.com: v1 not started: its build state could not be written: bucket: 503
2026/11/29 11:26:17 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:17 activator: exited-foreign.example.com: failed wake's generation 267 had no cgroup of its own, and its host cgroup is not proven empty: carlos-exec@<host> still holds a process
2026/11/29 11:26:17 activator: exited-foreign.example.com: failed wake's generation 267 is not proven stopped; keeping the lease until it is
2026/11/29 11:26:17 activator: exited-foreign.example.com: wake failed: start exited-foreign.example.com: health: no answer within 30s
2026/11/29 11:26:17 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:17 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:17 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:17 activator: start-fail.example.com: wake failed: start start-fail.example.com: never healthy
2026/11/29 11:26:17 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:17 activator: swap.example.com hibernated
2026/11/29 11:26:17 activator: swap.example.com: hold's pinned wake refused or abandoned: start swap.example.com: swap: lease lost: lease renewal failed
2026/11/29 11:26:17 activator: swap.example.com hibernated
2026/11/29 11:26:17 activator: swap.example.com: hold's pinned wake refused or abandoned: start swap.example.com: swap: the backend ran a different generation from the hold's choice: generation 275 of v9 from "/tmp/TestSwapHoldWakeEventsCarryNoSwapTexta_mismatched_spawns_text_3081376767/004/versions/v2/app"; the hold chose v2 from "/tmp/TestSwapHoldWakeEventsCarryNoSwapTexta_mismatched_spawns_text_3081376767/004/versions/v2/app"
2026/11/29 11:26:17 activator: swap.example.com: wake failed: start swap.example.com: swap: the backend ran a different generation from the hold's choice: generation 275 of v9 from "/tmp/TestSwapHoldWakeEventsCarryNoSwapTexta_mismatched_spawns_text_3081376767/004/versions/v2/app"; the hold chose v2 from "/tmp/TestSwapHoldWakeEventsCarryNoSwapTexta_mismatched_spawns_text_3081376767/004/versions/v2/app"
2026/11/29 11:26:17 activator: sidecar staged for awake swap.example.com — adopting
2026/11/29 11:26:17 activator: sidecar for swap.example.com was down — restarted (backoff now 2s)
2026/11/29 11:26:17 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:17 activator: swap.example.com: run run_a on retired generation 1099511627776 is not proven stopped: instance control: 502 mid-roll; the sweep tries again
2026/11/29 11:26:17 activator: h.example.com: start of carlos-instance-gen@h.example.com:278.service failed, it may have begun: the unit failed to start; killing it
2026/11/29 11:26:17 activator: one.example.com: wake failed: start one.example.com: h.example.com: start unit: the unit failed to start
2026/11/29 11:26:17 activator: swap.example.com: the sidecar's leader exited but its cgroup is not proven empty: role-sidecar: still populated
2026/11/29 11:26:17 activator: SIDECAR restart for swap.example.com failed: a legacy sidecar of this host is not proven gone (next attempt in 4s)
2026/11/29 11:26:18 activator: sidecar for swap.example.com was down — restarted (backoff now 8s)
2026/11/29 11:26:18 activator: unproven.example.com: generation 279's child is not proven empty: the generation's child still holds a process
2026/11/29 11:26:18 activator: unproven.example.com: failed wake's generation 279 is not proven stopped; keeping the lease until it is
2026/11/29 11:26:18 activator: unproven.example.com: wake failed and its generation is not proven stopped: start unproven.example.com: h: start unit: instance control: generation termination unproven: the unit exited before it was observed
--- FAIL: TestARetiredRunsFailedStopIsSettledBySweeps (21.67s)
    --- FAIL: TestARetiredRunsFailedStopIsSettledBySweeps/released (7.97s)
        testing.go:1464: TempDir RemoveAll cleanup: unlinkat /tmp/TestARetiredRunsFailedStopIsSettledBySweepsreleased4100713479/005/zdd: directory not empty
2026/11/29 11:26:18 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/11/29 11:26:18 activator: unproven.example.com: generation 279's child is not proven empty: the generation's child still holds a process
2026/11/29 11:26:18 activator: unproven.example.com: failed wake's generation 279 is proven stopped; lease given back
2026/11/29 11:26:18 activator: unproven.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:18 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 keeps running v1
2026/11/29 11:26:18 activator: unproven.example.com hibernated
2026/11/29 11:26:18 activator: shop.example.com: seed placement not recorded yet: record unreachable
2026/11/29 11:26:18 activator: shop.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:19 activator: due.example.com has a scheduled delivery due — waking it
2026/11/29 11:26:19 activator: due.x.internal has a scheduled delivery due — waking it
2026/11/29 11:26:19 activator: always-on sidecar bot.x.internal is not running — starting it
2026/11/29 11:26:19 activator: due.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:19 activator: bot.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/11/29 11:26:19 activator: due.x.internal: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, settle 0s, replicate 0s
2026/11/29 11:26:21 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:21 activator: exited-nested.example.com: wake failed: start exited-nested.example.com: health: no answer within 30s
2026/11/29 11:26:21 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:21 activator: swap.example.com hibernated
2026/11/29 11:26:21 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:21 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:21 activator: swap.example.com hibernated
2026/11/29 11:26:21 activator: swap.example.com: wake failed: start swap.example.com: unhealthy: HTTP 500
2026/11/29 11:26:21 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:21 activator: swap.example.com hibernated
2026/11/29 11:26:21 activator: swap.example.com: hold's pinned wake refused or abandoned: start swap.example.com: swap: a stop-evidence operation holds the host
2026/11/29 11:26:21 activator: f6.example.com: failed wake's generation 0 had no cgroup of its own, and its host cgroup is not proven empty: carlos-exec@<host> still holds a process
2026/11/29 11:26:21 activator: h.example.com: start of carlos-instance-gen@h.example.com:293.service failed, it may have begun: carlos-instance-gen@h.example.com:293.service exited before it was observed; killing it
2026/11/29 11:26:21 activator: h.example.com: started carlos-instance-gen@h.example.com:294.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/11/29 11:26:21 activator: one.example.com: generation 294 of v1: record 0s, start 2ms, healthy 0s later
2026/11/29 11:26:21 activator: one.example.com: woke in 4ms: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 4ms, replicate 0s
2026/11/29 11:26:22 activator: one.example.com hibernated
2026/11/29 11:26:22 activator: unproven.example.com: failed wake's generation 295 is not proven stopped; keeping the lease until it is
2026/11/29 11:26:22 activator: unproven.example.com: wake failed: start unproven.example.com: health: no answer within 30s
2026/11/29 11:26:22 activator: unproven.example.com: retry stop of failed wake's generation 295: cgroup.kill: the child is not empty
2026/11/29 11:26:22 activator: unproven.example.com: generation 295's child is not proven empty: the generation's child still holds a process
2026/11/29 11:26:22 activator: unproven.example.com: failed wake's generation 295 is proven stopped; lease given back
2026/11/29 11:26:22 activator: unproven.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:22 activator: unproven.example.com hibernated
2026/11/29 11:26:24 activator: exited-unit-backed.example.com: wake failed: start exited-unit-backed.example.com: health: no answer within 30s
2026/11/29 11:26:24 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:24 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:24 activator: swap.example.com hibernated
2026/11/29 11:26:24 activator: swap.example.com: hold's pinned wake refused or abandoned: start swap.example.com: h.example.com: cgroup: the host's parent cgroup holds a process directly: holds 1 process(es)
2026/11/29 11:26:24 activator: h.example.com: start of carlos-instance-gen@h.example.com:301.service failed, it may have begun: carlos-instance-gen@h.example.com:301.service exited before it was observed; killing it
2026/11/29 11:26:24 activator: h.example.com: kill carlos-instance-gen@h.example.com:301.service after a failed start: stop timed out
2026/11/29 11:26:24 activator: one.example.com: wake failed and its generation is not proven stopped: start one.example.com: h.example.com: start unit: carlos-instance-gen@h.example.com:301.service exited before it was observed; activator: generation start failed and its termination is unproven: stop timed out
2026/11/29 11:26:24 activator: unproven.example.com: generation 302's child is not proven empty: the generation's child still holds a process
2026/11/29 11:26:24 activator: unproven.example.com: failed wake's generation 302 is not proven stopped; keeping the lease until it is
2026/11/29 11:26:24 activator: unproven.example.com: wake failed and its generation is not proven stopped: start unproven.example.com: start unit: the unit exited before it was observed; activator: generation start failed and its termination is unproven: kill timed out
2026/11/29 11:26:24 activator: unproven.example.com: generation 302's child is not proven empty: the generation's child still holds a process
2026/11/29 11:26:24 activator: unproven.example.com: failed wake's generation 302 is proven stopped; lease given back
2026/11/29 11:26:24 activator: unproven.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:24 activator: unproven.example.com hibernated
2026/11/29 11:26:25 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:25 activator: h.example.com: start of carlos-instance-gen@h.example.com:306.service failed, it may have begun: the unit failed to start; killing it
2026/11/29 11:26:25 activator: one.example.com: wake failed: start one.example.com: h.example.com: start unit: the unit failed to start
2026/11/29 11:26:26 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:26 activator: swap.example.com hibernated
2026/11/29 11:26:26 activator: swap.example.com: hold's pinned wake refused or abandoned: start swap.example.com: cgroup: a cgroup that took cgroup.kill could not be made fresh before a spawn: carlos-exec@h.example.com: device or resource busy
2026/11/29 11:26:27 activator: f6.example.com: failed wake's generation 4 ran with no delegated cgroup; its leader's exit is the only proof there is
2026/11/29 11:26:27 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:28 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:28 activator: swap.example.com hibernated
2026/11/29 11:26:28 activator: swap.example.com: hold's pinned wake refused or abandoned: start swap.example.com: cgroup: a generation's limits could not be applied: h.example.com: the placement shim is not available
2026/11/29 11:26:29 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:30 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:30 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:30 activator: swap.example.com hibernated
2026/11/29 11:26:30 activator: swap.example.com: hold's pinned wake refused or abandoned: start swap.example.com: swap: superseded by a newer attempt
2026/11/29 11:26:31 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:31 activator: swap.example.com hibernated
2026/11/29 11:26:31 activator: swap.example.com: generation 319 of v2: record 0s, start 0s, healthy 0s later
2026/11/29 11:26:31 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:32 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:32 activator: swap.example.com hibernated
2026/11/29 11:26:32 activator: swap.example.com: wake failed: start swap.example.com: unhealthy: HTTP 500
2026/11/29 11:26:33 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
2026/11/29 11:26:33 activator: swap.example.com hibernated
2026/11/29 11:26:33 activator: swap.example.com: generation 323 of v2: record 0s, start 0s, healthy 0s later
2026/11/29 11:26:33 activator: swap.example.com: woke in 0s: checks 0s, lease 0s, restore 0s, identity 0s, protect 0s, spawn 0s, replicate 0s
FAIL
FAIL	github.com/carlosframework/platform/internal/activator	421.359s
FAIL
=== internal_activator@4 (276 s, from +114 s)
ok  	github.com/carlosframework/platform/internal/activator	273.992s
=== internal_activator@5 (314 s, from +114 s)
ok  	github.com/carlosframework/platform/internal/activator	311.862s
=== internal_activator@6 (321 s, from +114 s)
ok  	github.com/carlosframework/platform/internal/activator	318.804s
=== internal_activator@7 (410 s, from +114 s)
ok  	github.com/carlosframework/platform/internal/activator	408.123s
=== internal_edge@0 (86 s, from +137 s)
ok  	github.com/carlosframework/platform/internal/edge	82.663s
=== internal_edge@1 (76 s, from +137 s)
ok  	github.com/carlosframework/platform/internal/edge	72.641s
=== internal_edge@2 (205 s, from +137 s)
ok  	github.com/carlosframework/platform/internal/edge	201.245s
=== internal_edge@3 (155 s, from +137 s)
ok  	github.com/carlosframework/platform/internal/edge	151.536s
=== internal_edge@4 (147 s, from +137 s)
ok  	github.com/carlosframework/platform/internal/edge	144.174s
=== internal_edge@5 (287 s, from +137 s)
ok  	github.com/carlosframework/platform/internal/edge	283.835s
=== internal_edge@6 (225 s, from +137 s)
ok  	github.com/carlosframework/platform/internal/edge	221.885s
=== internal_edge@7 (245 s, from +137 s)
ok  	github.com/carlosframework/platform/internal/edge	242.231s
=== internal_edge@8 (225 s, from +137 s)
ok  	github.com/carlosframework/platform/internal/edge	221.280s
=== internal_edge@9 (290 s, from +137 s)
ok  	github.com/carlosframework/platform/internal/edge	286.561s
=== internal_edge@10 (243 s, from +137 s)
ok  	github.com/carlosframework/platform/internal/edge	239.742s
=== internal_edge@11 (240 s, from +137 s)
ok  	github.com/carlosframework/platform/internal/edge	236.148s
=== internal_edge@12 (243 s, from +137 s)
ok  	github.com/carlosframework/platform/internal/edge	239.888s
=== internal_edge@13 (271 s, from +137 s)
ok  	github.com/carlosframework/platform/internal/edge	267.576s
=== internal_edge@14 (172 s, from +137 s)
ok  	github.com/carlosframework/platform/internal/edge	168.582s
=== internal_edge@15 (261 s, from +137 s)
ok  	github.com/carlosframework/platform/internal/edge	257.544s
=== internal_host@0 (8 s, from +199 s)
ok  	github.com/carlosframework/platform/internal/host	5.026s
=== internal_host@1 (17 s, from +199 s)
ok  	github.com/carlosframework/platform/internal/host	13.357s
=== lists: internal_edge 136 s, internal_activator 113 s, internal_host 198 s, internal_rootaws 34 s, internal_systemd 14 s
=== cpu: the gate used 7750 cpu-seconds in 537 s, about 14.4 of 32 cores; the machine as a whole was 45% busy

Failure summary:
--- internal_activator@3
--- FAIL: TestARetiredRunsFailedStopIsSettledBySweeps (21.67s)
    --- FAIL: TestARetiredRunsFailedStopIsSettledBySweeps/released (7.97s)
FAIL	github.com/carlosframework/platform/internal/activator	421.359s

FAILED: internal_activator@3
make: *** [Makefile:156: race] Error 1

amadan: step race failed: exit status 2

amadan: job failed at step race — its output is above, not at the tail of this log
diff --git a/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md b/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md
new file mode 100644
index 000000000..120db219c
--- /dev/null
+++ b/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md
@@ -0,0 +1,559 @@
+# Domain registration, Plan 3: renewals Implementation Plan
+
+> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
+
+**Goal:** A domain bought or transferred here never lapses by accident. An owner can renew a domain for a year by hand from its page or with `carlos domains renew`, and every registration has an auto-renew switch, on by default: with it on, Carloku tells the owner the price 45 days before the renewal deadline, charges the account's card on file off-session 30 days before it, renews at the registrar only once the charge has succeeded, and records the registrar's new expiry.
+
+**Architecture:** A renewal is a row in a new account-level table, `domain_renewals`: at most one live row per domain, and at most one automatic row per registration and term, ever. Each is advanced by the existing purchase pass (`StartDomainPurchasePass`). Every decision is made by one pure function, `decideRenewal`, over a closed set of registrar, payment and refund outcomes (the shape Paul ruled for transfers on 2026-11-22), checked by a randomized simulation. The charge is one off-session PaymentIntent per renewal with a Stripe Tax calculation linked to it (new surface on `billing.Provider`, Stripe adapter and fake). The `registrar` seam gains `Renew`, `RenewalCost` and the registrar's renewal deadline on `Lookup` (Openprovider adapter and fake). Slice A ships manual renewal and a read-only preview of what automatic renewal would do; slice B ships automatic renewal behind an activation gate that only an operator command turns on. Auto-renew is one operation, `setDomainAutoRenew`, that the CLI and console doors call now and a service door can call later.
+
+**Tech Stack:** Go, modernc SQLite (console.db), `internal/registrar` + `internal/registrar/openprovider` (REST `/v1`), `internal/billing` + `internal/billingstripe` (Stripe API `2025-02-24.acacia`, pinned in `internal/billingstripe/client.go:35`; Stripe Tax calculations), `internal/domainreg`, `html/template` console pages from the mockup kit.
+
+**Spec:** `docs/superpowers/specs/2026-11-01-domain-registration-design.md`, revision 5 (approved 2026-11-21). Read R5, §4.2, §5.1 (the renewal paragraph after step 7), §5.5, §6.1-§6.3, §7, §11.3, §11.6 item 2, §11.7 (permissions) and §12.6 before any task.
+
+**Plans in this series:** 1 buy (live). 2a account-level domains (live). Transfers in (live, 55f34c39). 2b reconcile, apex reconverge, alerts (not started). **3 renewals (this plan).** 4 customer records, change owner, transfer out.
+
+**Why now (Paul, 2026-11-28, `carlos/platform` discussion 1483):** renewals ship first, before apps may resell domains to their own customers (a separate design on branch `design-domain-resale`, not merged; this plan depends on nothing in it, stopping rule 4). Charges are to the account's card on file, off-session. Auto-renew must be a per-domain switch that a later service role can flip, so the toggle is one operation with one implementation. Spec R16 also needs this plan before the first transferred domain's next expiry (rushedsunlight.com, a year after its transfer).
+
+## Review history
+
+**Status: reviewed, rounds 1-3 of 3; ready after the round 3 fixes below (applied in this revision; no further round, stopping rule 1).**
+
+**Round 1**, Astra on b9d0b360a (`docs/superpowers/reviews/CODEX-FINDINGS-domain-renewals-plan-R1.md`): NOT READY, 6 P1 and 3 P2, all accepted and resolved below. Changes are marked **(r1 N)** where they land.
+
+| Finding (fault family) | Resolution |
+|---|---|
+| P1-1 Lost invoice creation past key retention (durable recovery of external money operations) | The invoice is replaced by one off-session PaymentIntent per renewal (Decision 2 says why: fewer recovery paths). Every external write persists its identity, `Prepared` request and first-send time before its first send; it is resent verbatim only inside `resendLifetime` (22 h, `billinghold.go:45`, through `recoveryEligible`); past it, a lost PaymentIntent creation is discovered by listing the customer's PaymentIntents from the first send and matching `metadata[renewal]` and `metadata[attempt]`, as `adoptTransferCheckout` (`domaintransfer.go:421`) finds a lost Checkout. Tasks 4 and 7 test a crash after the create with a restart past retention. |
+| P1-2 Terminal automatic renewals recreated (bounded automatic charging) | A unique index allows one automatic renewal per registration and term, whatever its state, so a refunded, cancelled or expired one is never recreated by the schedule; only an owner's manual renewal starts another for that term. The automatic payment deadline bounds the first payment as well as retries; payments already received are still settled. Tests drive the schedule and the engine together through refund, deadline and restart (Task 14). |
+| P1-3 Customer credit applied to an invoice cannot be refunded (payment authorisation and full restitution) | No invoice: a PaymentIntent never applies the customer's credit balance (credit applies to invoices, https://docs.stripe.com/invoicing/customer/balance), so the only funds are the card charge, which `PrepareRefund` returns in full. The auto-renew check sits on the move that records the create, the first request that can take money. |
+| P1-4 Renewal in grace needs a restore (registrar lifecycle and settlement evidence) | Verified from Openprovider's API reference (below): `/v1/domains/{id}/renew` and `/v1/domains/{id}/restore` both exist, and the domain read carries `renewal_date` ("the date and time by which a domain must be renewed to avoid expiration"), `can_renew`, `soft_quarantine_expiry_date` and `restorable_until`; the TLD read carries `renew_price` and `soft_restore_price`. What a restore does to the expiry and how its completion shows is not documented, and the sandbox cannot show it, so **restore is cut**: Carloku renews only while `can_renew` is true and before `renewal_date`, refuses before charging after that, and restore in soft quarantine is a follow-up. Every deadline in this plan counts back from `renewal_date`, not `expiration_date`, which the reference says "is not the primary reference for domain expiration". |
+| P1-5 Approval is a release step, not a gate (production activation authorisation) | An activation gate in console.db, off by default, set only by `carlos system domains renewals activate` (a system operator, audited), checked in code before any automatic notice, automatic renewal creation or automatic payment. Deploys, restarts, migrations and configuration never set it (Task 12 tests). The read-only preview (each registration's `auto_renew`, renewal deadline and projected notice and charge dates in the API and `carlos system domains renewals preview`) ships in slice A, so the list Paul approves exists before slice B can act. |
+| P1-6 Declarations collide with transfers' (package declaration compatibility) | Every renewal outcome, action and decision type has a `renew` prefix (Task 7 lists them). `refundOutcome` is reused because its meaning is identical: the current refund attempt of a succeeded PaymentIntent, succeeded only for the full amount and currency. |
+| P2-1 Change card does not reach an existing invoice (payment recovery through the owner's action) | Each payment attempt is a confirm of the renewal's PaymentIntent that names its card explicitly, chosen when the attempt is prepared. A stored attempt is never rewritten; a card added after a decline is used by the next attempt, which the owner can start at once with Try again (Task 8). |
+| P2-2 Terminal emails have no durable path (durable notifications) | Owed notices are recorded in the terminal move itself and delivered by a notices pass over ended renewals, as `domaintransfer_notices.go` does, separately from settlement. |
+| P2-3 Simulation oracles contradict the design (simulation oracle validity) | R2 now says: for each registration and term, at most one succeeded payment is kept, and every other succeeded payment was refunded in full. Notices are at least once. Progress assumes the clock advances, the fakes settle, and an operator resolves any renewal still unknown after 7 days; the simulation injects that. |
+
+**Round 2**, Astra on 42a78509d (`docs/superpowers/reviews/CODEX-FINDINGS-domain-renewals-plan-R2.md`): NOT READY, 2 P1 and 6 P2. Astra found round 1's P1-1, P1-3, P1-4, P1-5, P1-6 and P2-2 resolved; R1 P1-2 is carried as R2 P1-1, R1 P2-1 as R2 P2-1 and R1 P2-3 as R2 P2-2. R2 P1-1 repeated the bounded automatic charging family, so stopping rule 2 applied, and **Paul ruled (2026-11-29, discussion 1483): one deadline guard.** Every send of a renewal charge, first send or resend, create or confirm, manual or automatic, goes through one function that refuses after the attempt's payment deadline (an unsent attempt ends without charging; one that may have been sent reconciles first), with a guard test that no other code path sends a renewal charge. Changes are marked **(r2 N)**.
+
+| Finding (fault family) | Resolution |
+|---|---|
+| P1-1 A prepared attempt can first charge after its deadline (bounded automatic charging, stopping rule 2) | Paul's ruling, built as `sendRenewalCharge` (Task 7): the only function that sends a renewal charge. Each attempt stores its own `PayUntil`; at or past it (by our clock or the provider's), an attempt never sent ends unsent and one that may have been sent is reconciled by a read (or the list) before anything else. `TestOnlyTheDeadlineGuardSendsRenewalCharges` (an AST guard over the module) and simulation invariant R11 hold it; `TestRenewalRestartAcrossPayUntil` covers create and confirm. |
+| P1-2 Add a card cannot complete payment-specific authentication (payment recovery through the owner's action) | An owner-only Authenticate flow on the renewal card confirms the existing PaymentIntent on-session from the server with a `return_url` and sends the browser to Stripe's `next_action.redirect_to_url` (Stripe's documented redirect path, https://docs.stripe.com/payments/3d-secure/authentication-flow, "Redirect to the bank website"). The confirm goes through `sendRenewalCharge`, so the deadline, cancellation and settlement rules are the same; one PaymentIntent per renewal means at most one charge. Tested with the fake and witnessed on dev with test card 4000002760003184 (Tasks 7, 8, 11). |
+| P2-1 Change card does not reliably change the card (payment recovery through the owner's action) | Change card is the renewal's own setup flow: its completion records the new card as the account's renewal card, which Decision 3 now prefers to the customer's default, and clears the card cache. It is gated by `domainPurchaseReady` and ownership of a live renewal, not by new-purchase eligibility (Task 8). The customer's default is left alone, so the plan's own payments do not move. |
+| P2-2 R10's twenty-pass bound does not follow (simulation oracle validity) | The simulation jumps the clock to the next scheduled event when a pass only waits, and R10 counts settling passes, not waiting ones; elapsed-time bounds are a separate assertion (R10b). |
+| P2-3 No card and an untaxable address have no path (complete payment-state transitions) | A new payment outcome, `renewPayBlocked`, with the reason `no_card` or `tax_location`: owed notices on the decline schedule, recovery by Change card or the billing portal's address and then Try again, and at `PayUntil` the renewal ends without charging, cancelling a PaymentIntent only when one exists. |
+| P2-4 A retry's tax calculation never reaches the PaymentIntent (charge amount and tax consistency) | Before each confirm, a fresh calculation; when its total or ID differs from the PaymentIntent's, a durable update of `amount`, the calculation hook and `metadata[tax_calculation]`, confirmed by a read, comes first (Tasks 4, 7). |
+| P2-5 A charge recorded before adoption stays misclassified (durable payment attribution) | Adopting a PaymentIntent (from the create's answer, a read or the list) reclassifies, in the same transaction, every recorded payment and refund of that PaymentIntent, whatever its account, as the renewal's domain payment with its inferred tax (`ClassifyRenewalPayments`, Task 6). |
+| P2-6 A declined create loses its PaymentIntent (provider outcome and identity) | The Stripe error envelope keeps `error.payment_intent` (ID, status, metadata, validated against the request's renewal and attempt), and `Send` returns it beside `ErrPaymentFailed`; an answer without it goes straight to discovery (Task 4). |
+
+**Round 3**, Astra on 1c55137a4 (`docs/superpowers/reviews/CODEX-FINDINGS-domain-renewals-plan-R3.md`): READY AFTER FIXES, no P1 and four P2. Astra found R2 P1-1, P1-2, P2-2, P2-3, P2-4, P2-5 and P2-6 (for declined creation) resolved; R2 P2-1 was carried as R3 P2-1. Stopping rule 1: the four fixes are applied as stated, without reopening the review. Changes are marked **(r3 N)**.
+
+| Finding (fault family) | Resolution |
+|---|---|
+| P2-1 The saved renewal card cannot reach the selector (payment recovery through the owner's action) | `CardOnFile` takes the preferred payment method ID (the account's renewal card) and uses it only after reading it and finding it a card attached to that customer; otherwise it falls back to the default, then the newest card, and says so. Tests for a detached renewal card (Tasks 4, 8). |
+| P2-2 Preflight holds bypass the unpaid deadline (complete payment-state transitions) | The decision table's first rule is now the deadline: at or after `PayUntil` with no succeeded payment, whatever the preflight says, a possibly sent attempt is reconciled first, a known unpaid PaymentIntent is cancelled, and otherwise the renewal ends without a cancel. Both holds (`renewPreShort`, `renewPreNoPrice`) are tested across the deadline and a restart (Task 7). |
+| P2-3 Authenticate assumes a redirect (complete authentication-result handling) | `authenticateDomainRenewal` returns a structured outcome; the door redirects off-site only for a validated `redirect_to_url` action, and otherwise returns to the renewal card while settlement proceeds. Tests for immediate success, processing, a decline and an authentication already completed (Task 8). |
+| P2-4 Confirmation errors cannot match attempt metadata (provider outcome and identity preservation) | Creation identity (`metadata[renewal]` and the creation attempt, used only for lost-create discovery) is separate from confirmation attempts (numbered in the renewal's details and keys, never in metadata). A confirm's or authenticate's 402 or lost answer is matched and read by the adopted PaymentIntent's ID. Tests for consecutive declines and a lost confirm answer (Tasks 4, 7). |
+
+## Slices and switch-on
+
+Two merges, in this order (stopping rule 6: the first changes something Paul can see):
+
+- **Slice A, manual renewal and the preview (Tasks 1-11).** "Renew for a year" on a bought domain's page and `carlos domains renew <name>`: the off-session charge, the registrar renewal, the new expiry on the page, the renewal card, the failure paths, the operator resolve door, expiry alerts counted per term, a daily refresh of each registration's renewal deadline, and the read-only preview of what automatic renewal would do (r1 P1-5). What Paul sees on dev: renew a sandbox domain with a Stripe test card and watch its expiry move a year; read the preview for dev and flagship. Nothing renews by itself. Switch-on: rides the buy door (`domainPurchaseReady`), on at merge on dev, on flagship with the next release.
+- **Slice B, auto-renew (Tasks 12-18).** The activation gate, the switch (console, CLI), the 45-day notice, the scheduled charge, retries, reminders with auto-renew off, expiry emails, the new operator alert rules, and renewal state on the Domains pages and `carlos domains list --all`. It is built on a fresh branch off `main` after slice A lands (`domain-renewals-b`). Merging and deploying it changes nothing on any deployment: the gate is off until an operator runs `carlos system domains renewals activate` there. Dev is activated after the merge; flagship only with Paul's GO, given against the slice A preview (Task 18).
+
+## Global Constraints
+
+- **Money (R5, §4.2, §5.1):** charge in full, no separate authorisation (§5.1's renewal paragraph wins over §6.1's "authorise-and-capture for purchases and renewals"); renew at the registrar only after the PaymentIntent reads `succeeded`; record the registrar's new expiry, never a computed one (§12.6). A definite registrar refusal refunds in full. An ambiguous renew is never retried blind: `Lookup` settles it (the registrar's expiry moved past the term's), or an operator does. An ambiguous payment answer is never read as a decline.
+- **Every external write is durable before it is sent (r1 P1-1).** Its identity (idempotency key, attempt number), its `Prepared` request and its first-send time (provider time, `providerNow`) are recorded in a CAS move before the first send. It is resent only verbatim and only while `recoveryEligible` allows (`resendLifetime`, 22 h). Past that window, a creation whose answer was lost is discovered by listing (PaymentIntents by customer and `created`, refunds by PaymentIntent) and matching our metadata; only when the list, read in full, holds none is it known never to have executed.
+- **One kept charge per registration and term (r1 P1-2, P2-3).** A term is the deadline a renewal extends (`term_from`, the registration's `expires_at` when the renewal starts). At most one automatic renewal exists per registration and term, in any state. A manual renewal for a term is only started by an owner, and only when no renewal of that term is live or kept a payment. Every idempotency key derives from the renewal ID and attempt.
+- **Money received is renewed or refunded.** Once a renewal's PaymentIntent reads `succeeded`, the renewal ends only as `renewed`, or as `failed` with a full refund that succeeded (or an operator's `refunded_outside`), whatever the switch, the gate or the clock say by then.
+- **The switch and the gate decide before money can move (r1 P1-3, P1-5).** The first request that can take money is the PaymentIntent create (it confirms at once). For an automatic renewal, the move that records the create, and each later move that records a confirm, also requires in its SQL `domain_registrations.auto_renew = 1` and the activation gate on. A toggle or deactivation that commits first wins; one that commits after is told this term's payment is already under way.
+- **One deadline guard (Paul's ruling, 2026-11-29, r2 P1-1).** `sendRenewalCharge` is the only code that sends a renewal charge: the create, every off-session confirm and the on-session authentication confirm, first send or resend, manual or automatic. It refuses at or past the attempt's `PayUntil`: an attempt never sent ends without charging; one that may have been sent is reconciled by a read or the list first. `TestOnlyTheDeadlineGuardSendsRenewalCharges` fails on any other path.
+- **Deadlines (r1 P1-2, P1-4).** The registrar's `renewal_date` (`RenewBy`) is the deadline: after it the registrar wants a restore, which this plan does not do. Automatic payment, first attempt and retries alike, is only sent in `[ChargeAt, RenewBy - 2 days)`; manual payment only in `[CreatedAt, min(CreatedAt + 24 h, RenewBy - 1 h))`. A renewal whose payment window closes unpaid cancels its PaymentIntent and ends; a payment that succeeded anyway is renewed if the registrar still accepts it, else refunded.
+- **Never a surprise (§4.2, §6.2):** the automatic charge is never earlier than 14 days after the emailed notice, and it charges the price the notice named, in the account's billing currency. A renewal is never blocked by the margin rule (§6.2): a registrar renewal cost above the TLD's `max_cost` alerts the operator and the renewal goes ahead at the noticed price.
+- **Our problems are never the customer's (§6.2, §6.3):** a registrar balance too low to cover the renewal holds the charge (nothing is taken) and alerts the operator; it never fails the customer's renewal or reaches them as an error before the last day.
+- Registrar-side auto-renew stays OFF on every registration (§5.5). Nothing in this plan turns it on, and `Renew` is the only renewal Carloku makes. No restore (r1 P1-4).
+- **Permissions (§11.7):** owners only, for renewing, the switch, the renewal card, the card shown, Try again, Authenticate and Change card; every member keeps seeing the expiry on the Domains pages. Every account door is person-only now (`Allow: svcrole.Set{}`): the service role of discussion 1483 is the resale design's to add, by calling the same operations. The preview, resolve and activation doors are system operators' (`apiSystemOperator`).
+- A registration whose purchase or transfer ended `unpaid` (§5.1 step 7) gets no notice, reminder, automatic or manual renewal and cannot have auto-renew turned on: its doors refuse with "contact support" copy and the operator is alerted at 7 days (my call: Plan 1 told that owner "we will contact you about paying for it", and charging a renewal on top of an unpaid year would compound it).
+- **Notices are at least once and never gate settlement (r1 P2-2).** A notice a transition makes due is owed in that transition's own move; delivery is a separate CAS move per recipient, run after a live renewal's pass and by a notices pass over ended renewals (the `domaintransfer_notices.go` shape, its backoff and give-up rules).
+- No registrar, DNS host or payment provider name in any customer-facing string; emails link to console pages only. Every user-facing string (console, CLI, emails, operator alerts, docs) is approved by Luna before it goes in a file (Task 2), from the layout the UX pass fixed (Task 1). Copy rules: no em or en dashes, curly quotes in prose, `cli.`/`door.` keys lower case with no final full stop.
+- Every new route gets its `parity/parity.tsv` row (then `make parity-doc`), its route-register entries (linkedpolicy.go, claim_invariant_fixtures_test.go, claim_invariant_probes_read_test.go, svcroutes_test.go, apilinks_test.go, the submission-gate list) and `Gate: gateNoHostClaim`, as the transfer doors do; every new CLI word a `clireg` node and row, and a `docs/site/cli.md` mention with a fenced example (`internal/docsite`).
+- `domain_renewals` is classified in `store_gate.go` (account-keyed, no app), so the HostClaim gate's table census stays complete.
+- **Names (r1 P1-6):** package `console` already declares `registrarOutcome`, `paymentOutcome`, `rNotSent`, `rUnknown`, `aWait`, `aCreateRefund` and the rest for transfers (`domaintransfer_facts.go`, `domaintransfer_decide.go`). Every renewal type and constant is prefixed `renew`; `refundOutcome` and its constants are reused as they are.
+- Writing Go here (AGENTS.md): ctx passed on; no `time.Sleep` in tests (the purchase clock seam `s.transferNow()` and a `renewalStepHook` crash seam like `transferStepHook`); `errors.Is`/`As`; no function over 300 lines or file over 3,000; `make code-health` before every push. The engine goes in files of its own, never in `domainbuy.go`.
+- CI traps from earlier domain plans: console chrome CSS changes re-pin `demo_claim_footer_test.go` digests; an account page over 500 ms cold needs an `over:` record in `internal/console/testdata/perf-budgets.txt`; a new census layer file goes in `scripts/gitleaks-gate/notscanned.go`.
+- Review budget (stopping rule 3), by risk class: per-task Astra review on Tasks 3 (registrar spend), 4 (billing), 6 (production storage), 7 (billing and termination; Fable joins), 8 (security gates), 12 (production activation), 13 (security gate) and 14 (billing: when money is taken). Everything else (UI, copy, catalog, CLI, the preview, alerts, docs) is covered by each slice's whole-branch review. At most three rounds each.
+- Local verification: targeted `-run` on touched packages only (docs-t1 rules); CI runs everything. Root-package tests need `TMPDIR` set to a fresh `mktemp -d /var/tmp/...`.
+
+## Decisions this plan makes (builder's calls, each to confirm in review)
+
+1. **Storage: a table of its own, not a purchase kind.** A renewal has no Checkout, contact, zone or claim, and a live row in `domain_purchases` would read as "Buying" on the Domains page, block Point (`domainpoint.go:154`) and count toward the daily cap (`PurchasesToday`). `domain_renewals` keeps those paths untouched; the three that must see renewals are named in Task 6 (`DomainObligations`, `matchPayment`, the webhook nudge).
+2. **The charge is one off-session PaymentIntent per renewal, not an invoice (r1 P1-1, P1-3, P2-1).** Compared with the invoice of round 1, it has fewer recovery paths: one creation to discover instead of two (invoice and item), no finalize or void step, no customer-side payment page racing our own sends, no customer credit to settle or restore, and a refund that is the existing `PrepareRefund` unchanged. The steps: a Stripe Tax calculation (`POST /v1/tax/calculations`, the customer's own address and tax IDs, the line's amount, `tax_behavior=exclusive`, the account's default tax code as purchase Checkout uses); it writes nothing, so a lost answer is simply asked again. Then `POST /v1/payment_intents` with `amount` = the calculation's `amount_total`, `customer`, `payment_method` (Decision 3), `confirm=true`, `off_session=true`, `hooks[inputs][tax][calculation]`, `metadata[account]`, `metadata[renewal]`, `metadata[attempt]`, so Stripe records the tax transaction on success and its reversal on refund (https://docs.stripe.com/tax/payment-intent/simplified). A declined attempt leaves the PaymentIntent `requires_payment_method` (or `requires_action` when the bank wants authentication); the next attempt is `POST /v1/payment_intents/{id}/confirm` with the card named again and `off_session=true`. Before each confirm after the first, a fresh calculation; when its total or ID differs from the PaymentIntent's, a durable `POST /v1/payment_intents/{id}` updating `amount`, `hooks[inputs][tax][calculation]` and `metadata[tax_calculation]`, confirmed by a read, comes first (r2 P2-4). A declined create answers 402 with the PaymentIntent in `error.payment_intent`, which the adapter keeps (r2 P2-6). Cancel (`PrepareCancelPayment`, existing) ends an unpaid one. Tax is computed by Stripe Tax as Checkout computes it for purchases; `matchPayment` already files the difference between the charge and the quoted price as tax (`billingpayments_store.go:96`).
+3. **"The card on file"** is the account's renewal card when one is recorded and still attached to the customer (set by the renewal's Change card, r2 P2-1), else the customer's `invoice_settings.default_payment_method` when set, else the most recently attached card. The renewal card is kept in console.db, not as the customer's default, so changing it never moves the plan's own payments. Today the console never reads a payment method: purchase Checkout saves the card for off-session use (`payment.go:26`) without making it the default, and the billing page's Add a card (`billingcard.go`) does not either. Each payment attempt names the card chosen when the attempt is prepared; a stored attempt is never rewritten.
+4. **Timing, counted from `RenewBy` (r1 P1-4).** `RenewBy` is the registrar's `renewal_date`, refreshed daily for registrations within 120 days of it (slice A) and at every renewal's preflight. Notice at `RenewBy - 45 days`. Automatic charge at `ChargeAt = max(RenewBy - 30 days, notice + 14 days)`. If `ChargeAt` falls later than `RenewBy - 3 days` (a registration that reached the window late: activation, an outage, a transfer completing with little left), nothing is charged automatically: the owner gets the renew-by-hand notice and the operator an alert. Turning auto-renew on is a notice given in person: the door shows the price and the charge date, and `ChargeAt = max(RenewBy - 30 days, now)`.
+5. **Declines.** A declined attempt is retried every 3 days and once more 3 days before `RenewBy`, each a new confirm with the card on file at that moment. `requires_action` (the bank wants the cardholder for this payment) cannot be completed off-session: the renewal card offers the owner Authenticate, which confirms the same PaymentIntent on-session and sends them to their bank's page and back (r2 P1-2). No card on file, or an address Stripe Tax cannot place, blocks the attempt before any send (`renewPayBlocked`): the owner is asked to Change card, or to correct the address in the billing portal, then Try again (r2 P2-3). The owner is emailed at the first decline, at 10 days and at 4 days before `RenewBy`, each linking to the renewal card (Try again, Change card). When the window closes unpaid, the PaymentIntent is cancelled, the renewal ends `failed` (`unpaid`), the owner gets the not-renewed email and the operator an alert; the owner can still renew by hand until `RenewBy - 1 h`. A manual renewal that is declined stays retryable from its card for 24 hours, then is cancelled.
+6. **Ambiguous renew.** After `Renew` is sent, only `Lookup` settles it: an expiry later than `term_from` is renewed. Reads at 10 minutes, doubling to an hour; operator alerts at 1 hour, 24 hours, then daily; never resent. The operator resolve door (`renewed` with `Lookup` agreeing, `not_renewed` which refunds, `refunded_outside`) ends one that never settles. Before any charge, a renewal reads `Lookup`: a domain not in our account, `can_renew` false, or `RenewBy` passed ends `failed` (`not_ours`, `not_renewable`) with nothing charged; an expiry already later than `term_from` (an earlier unknown renew that landed late) is adopted without a charge, ends `failed` (`already_renewed`) and alerts the operator.
+7. **Price frozen at notice; currency the account's.** A catalog without a renewal price for the TLD in the account's currency holds the renewal (nothing charged) and alerts the operator. The margin comparison uses the TLD's `max_cost` (Plan 1's implementation note), so no exchange rate is needed.
+8. **After the deadline (r1 P1-4).** Carloku does not restore. The owner gets an email when `RenewBy` passes unrenewed and at expiry, saying to contact support; the operator is alerted. Restore in soft quarantine (Openprovider's `/v1/domains/{id}/restore`, priced by `soft_restore_price`) is a follow-up, once its effect on the expiry and its completion evidence are confirmed against the live API. Removing the zone and claim once the registrar reports the domain gone (§4.2's last sentence) needs Plan 2b's daily reconcile and is not in this plan.
+
+## Registrar API facts this plan rests on (r1 P1-4)
+
+From Openprovider's API reference, `/v1` spec at https://developer.openprovider.com/data/swagger.spec.js (rendered at https://developer.openprovider.com/reference.html?group=Domain) and the `/v1beta` spec at https://docs.openprovider.com/swagger.json, read 2026-11-28:
+- `POST /v1/domains/{id}/renew`, body `{"domain":{"name","extension"},"id","period"}`, answer `data.status`. `POST /v1/domains/{id}/restore`, body without a period, answer `data.status`.
+- `GET /v1/domains/{id}` gives `renewal_date` ("The date and time by which a domain must be renewed to avoid expiration, please always refer to the renewal_date to process domain renewals"), `expiration_date` ("not the primary reference for domain expiration in Openprovider"), `registry_expiration_date`, `can_renew`, `status`, `soft_quarantine_expiry_date`, `hard_quarantine_expiry_date`, `restorable_until`.
+- `GET /v1/tlds/{name}` prices include `renew_price`, `soft_restore_price` ("Price of domain restoration during soft quarantine or grace period") and `restore_price`; `GET /v1/domains/prices` takes an `operation`.
+- Openprovider's help says a domain in soft quarantine must be restored, not renewed, at the normal renewal fee, and hard quarantine costs more: https://openprovider.help/books/api-integrations/page/managing-domain-renewals-in-whmcs-with-openprovider.
+
+## Request budget (§7.2)
+
+S3: none. Registrar: one `Lookup` per registration per day for those within 120 days of `RenewBy` (the deadline refresh); per renewal one `Lookup` before the charge, one `Balance` and one `RenewalCost` per payment attempt, one `Renew`, then `Lookup` reads on the schedule above until settled. Stripe: per renewal one tax calculation per attempt, one PaymentIntent create, one confirm per retry (preceded by one update when the tax changed), one on-session confirm per Authenticate, one cancel or refund when needed, a PaymentIntent read only when due (right after a send, then every 10 minutes while declined), a PaymentIntent list only for a creation lost past the 22-hour window; one card read per notice email and per owner view of a bought domain's page or the confirm page, cached 10 minutes per customer. The schedule pass reads console.db only, hourly.
+
+## Review Focus
+
+1. **The card is declined until the deadline.** Expected: retries on schedule, each naming the card then on file, three owner emails, nothing renewed, the PaymentIntent cancelled when the window closes, `failed` (`unpaid`), the not-renewed email and the operator alert; the schedule never starts another automatic renewal for that term. Tests in Task 7: `TestRenewalDeclinedUntilDeadlineCancelsAndFails`; Task 14: `TestScheduleNeverRecreatesATerminalAutomaticRenewal`.
+2. **The registrar's renew answer is lost.** Expected: the renewal stays `renewing`, `Lookup` reads on schedule, no second `Renew`, alerts at 1 h and 24 h; when `Lookup` shows the new expiry it is recorded and the renewal ends `renewed`; an operator `not_renewed` refunds. Tests in Task 7: `TestRenewalLostRenewAnswerSettledByLookup`, `TestRenewalOperatorNotRenewedRefunds`, and the simulation.
+3. **The owner turns auto-renew off, or an operator deactivates, while the charge is being prepared.** Expected: before the create move, nothing is created and the renewal ends `failed` (`auto_renew_off` or `deactivated`); after it, the payment and renewal go through and the door says so. Test in Task 13: `TestAutoRenewOffRacesTheCreateMove` (both orders, plus a restart between); Task 12: `TestDeactivateRacesTheCreateMove`.
+4. **The PaymentIntent create's answer is lost and the console is down for two days.** Expected: no resend after 22 hours; the list by customer finds the PaymentIntent by its metadata and the renewal adopts it (succeeded: renew; declined: the retry schedule); a list holding none means it never ran, and the attempt is prepared again under a new attempt number. Test in Task 7: `TestRenewalLostCreatePastRetentionIsDiscovered`.
+5. **Merging and restarting slice B, with every registration already `auto_renew = 1`.** Expected: no notice, no automatic renewal and no payment until an operator activates the deployment; the preview lists what activation would do. Tests in Task 12: `TestActivationGateOffByDefaultAcrossRestartsAndConfig`, `TestNothingAutomaticWhileGateOff`.
+
+---
+
+### Task 1: UX pass in the mockup kit
+
+**Files:**
+- Modify: `docs/superpowers/mockups/domains-account-kit/domain-bought.html` (the Renewal card: renewal deadline tile, price, card, auto-renew switch, Renew for a year; state chips "Renews on 2 Nov 2027", "Payment failed, retrying", "Auto-renew off", "Not renewable here, contact support")
+- Create: `docs/superpowers/mockups/domains-account-kit/renew-confirm.html`, `renewal-card.html` (Charging, Paid, Renewing, Renewed; Payment failed with Try again and Change card; Needs your bank's approval with Authenticate; No card or address problem with its fix; Refunded), `renewal-authenticated.html` (the page the bank returns to), `renewal-emails.html` (every owner email of Decisions 4, 5 and 8 as a person reads it: subject, first line, the one link), `renewal-preview.html` (the operator preview as the CLI prints it)
+- Modify: `overview.html` (a bought card's renewal chip)
+
+- [ ] **Step 1:** Draw each screen from `docs/console-mockup-kit/shell.html` with components from `docs/console-styleguide.md`; the CLI's human output for `domains renew`, `domains auto-renew`, the `list --all` columns and `system domains renewals preview` as fenced blocks in `renewal-card.html` and `renewal-preview.html`.
+- [ ] **Step 2:** UX pass at 390 px and desktop, light and dark: lead with the state (when it renews, for how much, on which card), problems as chips, little reading; `impeccable` critique and distill; fix what reads badly.
+- [ ] **Step 3:** Commit `mockups: domain renewals`; post the paths on the branch discussion. Tasks 3-7 do not wait for Paul's look; Tasks 8 and 16 do unless he says go on.
+
+### Task 2: Copy review (Luna), before any string is in a file
+
+**Files:**
+- Create: `docs/superpowers/specs/LUNA-COPY-BRIEF-DOMAINS-3.md`, then `LUNA-COPY-RESULT-DOMAINS-3.md`
+
+- [ ] **Step 1:** Brief every string both slices need, keyed and placed (mockup path and element): the Renewal card and its chips, the confirm page, the renewal card stages, refusals (`renewing is unavailable right now`, no renewal price, unpaid registration, a renewal already under way, not ours, past the deadline), Authenticate and its return page, Change card and its return, the no-card and address blocks (r2 P1-2, P2-1, P2-3), the switch and its answers (on with the charge date and price; on now charging; off; off too late this term), every owner email, every operator alert subject and body (including the slice A rewrite of `domainExpiryCopy`, which today says "Nothing renews domains yet"), the preview's and activation's CLI lines, the CLI lines, the `docs/site/cli.md` paragraphs and the operator runbook paragraph. Facts that must stay true: the price and date named; nothing is renewed until it is paid; money taken for a renewal that does not happen is refunded in full; turning auto-renew off stops this term only before the payment; after the deadline the owner must contact support; no registrar, DNS host or payment provider names.
+- [ ] **Step 2:** Run `codex exec -m gpt-6-luna -s read-only` on the brief (the house pattern in `LUNA-COPY-BRIEF-DOMAINS-1.md`). If the account refuses Luna, stop and ask Paul before using another model. Apply the result table verbatim; resolve flags with Luna, not by hand.
+- [ ] **Step 3:** Commit `domains: approved renewal copy (Luna pass DOMAINS-3)`. Later tasks copy strings from the result into `*_copy.go` files and pin them in `approved_domain_renewal_copy_test.go`; a string a later task finds missing goes back to Luna first.
+
+### Task 3: Registrar: Renew, RenewalCost and the renewal deadline (risky: per-task review, registrar spend)
+
+**Files:**
+- Modify: `internal/registrar/registrar.go`, `internal/registrar/registrar_test.go`, `internal/registrar/registrartest/fake.go`
+- Modify: `internal/registrar/openprovider/client.go`, `internal/registrar/openprovider/client_test.go`; Create: `internal/registrar/openprovider/testdata/renew_*.json`, `tld_prices.json`, `domain_renewal_date.json`
+
+**Interfaces:**
+- Produces, in `registrar`:
+ ```go
+ type Renewal struct {
+ Domain, RegistrarID string
+ Years int // 1
+ TermFrom time.Time // the expiry this renews; the adapter refuses before sending if the registrar's differs
+ Key string // the renewal ID, for logs and tests (no provider key)
+ }
+ // Registered gains RenewBy time.Time (the registrar's renewal deadline;
+ // zero when it does not say) and CanRenew bool.
+ // Registrar gains:
+ // Renew sends one renewal. ErrRefused: definite, nothing renewed.
+ // ErrIndeterminate: it may have been sent; only Lookup decides.
+ // A nil error returns the registrar's answer; the caller still confirms
+ // the new expiry by Lookup before recording it.
+ Renew(ctx context.Context, r Renewal) (Registered, error)
+ // RenewalCost is the registrar's price to renew domain for a year.
+ RenewalCost(ctx context.Context, domain string) (Money, error)
+ ```
+ The fake: `RenewErr` one-shot, `RenewApplies bool` (an indeterminate answer that still renewed), `LookupLag int` (Lookup keeps the old expiry for N reads after a renew), `RenewCosts map[string]Money`, `RenewBy` and `CanRenew` per domain (a domain past its `RenewBy` refuses `Renew`), a renew moves `Expires` and `RenewBy` by a year, `Calls` gains `"renew:<d>"`.
+- Openprovider (`/v1`, the facts above): `Renew` sends `POST /domains/{id}/renew` with `domain`, `id` and `period` 1, and joins `sends()` and `refusalKind()`, so after send anything but a documented refusal read whole is `ErrIndeterminate`; a `Lookup` first refuses (`ErrRefused`, nothing sent) when the ID or expiry no longer match, `can_renew` is false or `renewal_date` has passed. `Lookup` maps `renewal_date` to `RenewBy` and `can_renew` to `CanRenew`, and keeps reading `expiration_date` as `Expires` (what the registration records and the renewal compares; this plan does not change that meaning). `RenewalCost` reads `/domains/prices` with the renew operation, as `CheckTransfer` reads the transfer price (`client.go:656`). No restore call.
+
+- [ ] **Step 1: Write failing tests:** `TestFakeRenewMovesExpiryAndLookupLags`, `TestRenewSendsIDAndPeriod`, `TestRenewTimeoutIsIndeterminate`, `TestRenewDocumentedRefusalIsRefused`, `TestRenewRefusesStaleTermOrPastDeadlineBeforeSending` (no POST), `TestRenewalCostParsesPrice`, `TestLookupReadsRenewalDateAndCanRenew`.
+- [ ] **Step 2: Run** `go test ./internal/registrar/... -run 'Renew|LookupReadsRenewalDate'`; expect FAIL.
+- [ ] **Step 3: Implement.** Every `registrar.Registrar` implementation compiles (`git grep -n 'registrar.Registrar' -- '*.go'`).
+- [ ] **Step 4: Run**; expect PASS.
+- [ ] **Step 5: Commit** `registrar: renew, renewal cost and the renewal deadline (Openprovider /v1)`.
+- [ ] **Step 6: Astra task review** (external API mapping, indeterminate after send).
+
+### Task 4: Billing: off-session PaymentIntent charges with Stripe Tax, and the card on file (risky: per-task review, billing)
+
+**Files:**
+- Modify: `internal/billing/billing.go` (Provider near `:349`, `Result` at `:288`, the `Prepared` kinds at `:260`), `internal/billing/billingtest/fake.go`
+- Create: `internal/billingstripe/offsession.go`, `internal/billingstripe/offsession_test.go`; Modify: `internal/billingstripe/prepared.go` (Send dispatch)
+
+**Interfaces:**
+- Produces, in `billing`:
+ ```go
+ type TaxQuote struct { Calculation string; Amount, Tax, Total int64; Currency string } // Total = what the PaymentIntent charges
+ type Card struct { ID, Brand, Last4 string; ExpMonth, ExpYear int }
+ type ChargeRequest struct {
+ AccountSqid, Customer string
+ Tax TaxQuote // Total is the amount; Calculation is linked
+ Description string // statement and receipt line, e.g. "example.com, one year"
+ Reference string // our renewal ID, metadata[renewal]
+ Attempt int // metadata[attempt]: the creation attempt, 1 or more; confirmations never write it (r3 4)
+ PaymentMethod string // Card.ID, required
+ }
+ type IntentInfo struct {
+ ID, Status, Customer string // Status: succeeded, processing, requires_payment_method, requires_action, canceled
+ Reference string; Attempt int // from metadata: the renewal and its creation attempt
+ Amount, Received int64; Currency string
+ Decline string // neutral: "declined", "authentication_required", "insufficient_funds", "expired_card", ""
+ TaxCalculation string // metadata[tax_calculation]
+ NextActionURL string // redirect_to_url.url while requires_action; never stored, logged or printed, only used as the 303 Location
+ }
+ // PreparedOffSessionCharge and PreparedConfirmCharge join the kinds.
+ // Provider gains:
+ TaxQuote(ctx context.Context, customer, currency string, amount int64, reference string) (TaxQuote, error) // writes nothing; ErrTaxLocation when the customer's address cannot be taxed
+ PrepareOffSessionCharge(req ChargeRequest, key string) (Prepared, error) // create with confirm=true, off_session=true, hooks[inputs][tax][calculation]
+ PrepareConfirmCharge(intent string, paymentMethod string, key string) (Prepared, error) // a retry on the same PaymentIntent, off_session=true
+ PrepareUpdateCharge(intent string, tax TaxQuote, key string) (Prepared, error) // amount, the calculation hook and metadata[tax_calculation] (r2 P2-4)
+ PrepareAuthenticateCharge(intent, paymentMethod, returnURL, key string) (Prepared, error) // on-session confirm with return_url, no off_session (r2 P1-2)
+ SetupCheckoutCard(ctx context.Context, sessionID string) (Card, string /*customer*/, bool /*complete*/, error) // the card a completed setup Checkout saved (r2 P2-1)
+ Intent(ctx context.Context, id string) (IntentInfo, error) // ErrNotFound when absent
+ CustomerIntents(ctx context.Context, customer string, createdAfter time.Time) ([]IntentInfo, error) // exhaustive; ErrIncomplete past MaxListPages
+ CardOnFile(ctx context.Context, customer, preferred string) (Card, bool /*preferred used*/, bool /*found*/, error) // Decision 3: preferred (the account's renewal card) is read and used only when it is a card attached to customer; else the default, then the newest card (r3 1)
+ // Result gains: Intent *IntentInfo
+ ```
+ A declined create or confirm is `ErrPaymentFailed` (definite: the PaymentIntent exists and is retryable), and `Send` returns `Result.Intent` beside it, read from the 402 body's `error.payment_intent` (ID, status, metadata) after checking its ID shape. For a create, its metadata must name this request's renewal and creation attempt; a 402 without a matching one is returned with no intent, and the engine discovers it by the list at once (r2 P2-6). For a confirm or authenticate, its ID must equal the PaymentIntent the request names, and a 402 without it, or a lost answer, is settled by reading that ID (r3 4); everything else goes through the existing `classify` (`prepared.go`), so a lost answer is `ErrNoResponse`/`ErrIndeterminate`, never a decline. The existing `PrepareCancelPayment` and `PrepareRefund` are used unchanged. The fake: PaymentIntents with scripted create and confirm outcomes (succeeded, declined, `requires_action`, a lost answer that applied or did not), the list, a card per customer, tax quotes, and the refund lifecycle it already has; it never applies a customer balance.
+
+- [ ] **Step 0: Check the pinned API version.** In Stripe test mode, with Paul's test key on dev (no production change), confirm that `2025-02-24.acacia` accepts `hooks[inputs][tax][calculation]` on create and confirm. If it does not, stop and ask Paul: the choices are moving the pin (a change to every billing shape, its own plan) or the custom integration (`create_from_calculation` with the renewal ID as its unique `reference`, and `create_reversal` on refund), which adds two writes to recover.
+- [ ] **Step 1: Write failing tests:** `TestOffSessionChargeFormLinksTaxAndNamesCard` (decoded form: amount = total, `confirm`, `off_session`, `payment_method`, the calculation hook, metadata), `TestConfirmChargeNamesItsCardAndKey`, `TestChargeDeclinedIsPaymentFailed`, `TestChargeAuthenticationRequiredReadsAsDecline`, `TestChargeLostAnswerIsIndeterminate`, `TestCustomerIntentsIsExhaustiveAndParsesMetadata`, `TestTaxQuoteWritesNothingAndReadsTotal`, `TestTaxQuoteLocationError`, `TestCardOnFilePrefersInvoiceDefaultThenNewestCard`, `TestCardOnFileUsesPreferredOnlyWhenAttached` (preferred attached: used; detached, another customer's or not a card: falls back and says so) (r3 1), `TestFakeOffSessionLifecycle`, `TestChargeRequestStringRedacted`, `TestDeclined402KeepsItsPaymentIntent` (a real 402-shaped body; a mismatched metadata is dropped) (r2 P2-6), `TestDeclined402OnConfirmMatchesByID` (a second decline of the same PaymentIntent, whose metadata still names creation attempt 1, is kept; another ID is dropped) (r3 4), `TestUpdateChargeSendsAmountAndCalculation` (r2 P2-4), `TestAuthenticateChargeIsOnSessionWithReturnURL` and `TestNextActionURLNeverInStringOrLog` (r2 P1-2), `TestSetupCheckoutCardReadsTheSavedCard` (r2 P2-1).
+- [ ] **Step 2: Run** `go test ./internal/billing/... ./internal/billingstripe/ -run 'OffSession|ConfirmCharge|Charge|CustomerIntents|TaxQuote|CardOnFile'`; expect FAIL.
+- [ ] **Step 3: Implement.** Every `billing.Provider` implementation compiles (`git grep -n 'billing.Provider' -- '*.go'`).
+- [ ] **Step 4: Run**; expect PASS; `go vet ./internal/billing/... ./internal/billingstripe/ ./internal/console/`.
+- [ ] **Step 5: Commit** `billing: off-session charges with Stripe Tax, and the card on file`.
+- [ ] **Step 6: Astra task review** (billing).
+
+### Task 5: Catalog: renewal quotes
+
+**Files:**
+- Modify: `internal/domainreg/catalog.go`, `internal/domainreg/catalog_test.go`
+
+**Interfaces:**
+- Produces: `func (c *Catalog) QuoteRenewal(domain, currency string, cost registrar.Money) (Quote, bool /*above ceiling*/, error)`: the TLD's `Renew` price in `currency` (`ErrTLDNotOffered` when the TLD or the currency has none); `above` true when `cost` exceeds `MaxCost` or its currency differs, never an error (§6.2: renewals are never blocked on margin).
+
+- [ ] **Step 1: Write failing tests:** `TestQuoteRenewalUsesRenewPrice`, `TestQuoteRenewalAboveCeilingNeverRefuses`, `TestQuoteRenewalMissingCurrency`.
+- [ ] **Step 2: Run** `go test ./internal/domainreg/ -run QuoteRenewal`; expect FAIL.
+- [ ] **Step 3: Implement.**
+- [ ] **Step 4: Run**; expect PASS.
+- [ ] **Step 5: Commit** `domainreg: renewal quotes`.
+
+### Task 6: Store: renewals, deadlines, per-term notices and alerts (risky: per-task review, production storage)
+
+**Files:**
+- Create: `internal/console/domainrenewstore.go`, `internal/console/domainrenewstore_test.go`, `internal/console/domainrenew_facts.go` (the outcome enums and `renewFacts` exactly as Task 7 declares them, each stored as a stable string as `domaintransfer_facts.go` does, no logic)
+- Modify: `internal/console/domainstore.go` (migration chain, `DomainRegistration`, `RegistrationsExpiringBefore`, `MarkExpiryAlerted`, `DomainObligations`), `internal/console/store_gate.go:250`, `internal/console/billingpayments_store.go:83` (`matchPayment`), `internal/console/billingwebhook.go` (nudge)
+
+**Interfaces:**
+- Produces:
+ ```go
+ type RenewalTrigger string // "auto", "manual"
+ type RenewalState string
+ const (
+ RenewalChecking RenewalState = "checking" // created; Lookup, balance and price not yet passed
+ RenewalCharging RenewalState = "charging" // an attempt prepared, sent, declined or unknown: nothing kept yet
+ RenewalRenewing RenewalState = "renewing" // paid; Renew sent or about to be
+ RenewalRefunding RenewalState = "refunding" // the registrar refused or an operator said not renewed
+ RenewalRenewed RenewalState = "renewed" // terminal
+ RenewalFailed RenewalState = "failed" // terminal; Reason: auto_renew_off, deactivated, unpaid, not_ours, not_renewable, already_renewed, refused, cancelled, refunded_outside
+ )
+ type DomainRenewal struct {
+ ID string // "rn_" + 16 random hex
+ Domain, RegistrarID string; AccountID int64
+ TermFrom, RenewBy time.Time; Trigger RenewalTrigger
+ State RenewalState; Reason string
+ Currency string; Amount int64
+ PaymentIntent string
+ renewalDetails // Principal, Facts, Attempts (each: number, kind (create, confirm, authenticate), key, the stored request, card, PayUntil, FirstSentAt, Ended), TaxUpdate (its stored request and calculation), RefundPrepared, NextReadAt, NextPayAt, Owed and Delivery (notices)
+ Revision int64; CreatedAt, UpdatedAt time.Time
+ }
+ func (s *Store) CreateDomainRenewal(ctx context.Context, r DomainRenewal) error // ErrRenewalLive; ErrRenewalTermTaken
+ func (s *Store) DomainRenewal(ctx context.Context, id string) (*DomainRenewal, error)
+ // MoveDomainRenewal is a CAS on revision. With guard.AutoRenew the UPDATE
+ // also needs auto_renew = 1; with guard.Activated it also needs the
+ // activation gate on (Task 12). ErrRenewalMoved when either fails.
+ func (s *Store) MoveDomainRenewal(ctx context.Context, before DomainRenewal, to RenewalState, set func(*DomainRenewal), guard renewGuard) error
+ func (s *Store) LiveDomainRenewals(ctx context.Context) ([]DomainRenewal, error)
+ func (s *Store) RenewalsOwingNotices(ctx context.Context) ([]DomainRenewal, error)
+ func (s *Store) LiveRenewalFor(ctx context.Context, accountID int64, domain string) (*DomainRenewal, error)
+ func (s *Store) AdvanceRegistrationExpiry(ctx context.Context, domain, registrarID string, from, to, renewBy time.Time) (bool, error) // CAS on expires_at = from; to > from
+ func (s *Store) SetRegistrationRenewBy(ctx context.Context, domain, registrarID string, renewBy time.Time, canRenew bool) error
+ func (s *Store) SetAutoRenew(ctx context.Context, accountID int64, domain string, on bool) (DomainRegistration, error)
+ func (s *Store) SetRenewalTerm(ctx context.Context, domain string, term int64, set func(*renewalTermState)) error // CAS on the stored term
+ // DomainRegistration gains RenewBy time.Time, CanRenew bool, Term
+ // renewalTermState {Term int64 (the expiry it is for), NoticeAt time.Time,
+ // InPerson bool, Price int64, Currency string, Sent map[string]time.Time}
+ // and ExpiryAlertedFor int64 (the expiry the operator was alerted for).
+ ```
+ Schema: `CREATE TABLE domain_renewals (...)`; `CREATE UNIQUE INDEX domain_renewals_live ON domain_renewals(domain) WHERE state NOT IN ('renewed','failed')`; `CREATE UNIQUE INDEX domain_renewals_auto_term ON domain_renewals(domain, registrar_id, term_from) WHERE trigger = 'auto'` (r1 P1-2: one automatic renewal per registration and term, in any state); `ALTER TABLE domain_registrations ADD COLUMN renew_by INTEGER NOT NULL DEFAULT 0`, `ADD COLUMN can_renew INTEGER NOT NULL DEFAULT 1`, `ADD COLUMN renewal TEXT NOT NULL DEFAULT '{}'` and `ADD COLUMN expiry_alerted_for INTEGER NOT NULL DEFAULT 0`, then a one-time backfill (recorded in `domain_meta`) setting `expiry_alerted_for = expires_at` where `expiry_alerted_at > 0`, so no registration is alerted twice for one expiry. `RegistrationsExpiringBefore` selects `expiry_alerted_for != expires_at` (per term: `expiry_alerted_at` alone would never alert a renewed domain again). `CreateDomainRenewal` refuses, in its transaction, a manual renewal of a term that has a live renewal or one that kept a payment (`renewed`), and an automatic one of a term that has any automatic one (`ErrRenewalTermTaken`). `DomainObligations` adds live renewals (a renewal holding money blocks account deletion). `matchPayment` also looks up `domain_renewals.payment_intent`, so the money record files a renewal as `domain`. `ClassifyRenewalPayments(tx, renewalID, paymentIntent)` runs in the same transaction as the move that adopts a PaymentIntent (from the create's answer, a read, a 402 body or the list): every `billing_payments` row of that PaymentIntent, whatever its `account_id`, and the refunds and reversals of its charge, take the renewal's account, reason `domain` (a reversal or failed payment keeps its reason), the domain as detail and the inferred tax, as `matchPayment` and `inheritRefundTax` would have set them (r2 P2-5). The account's renewal card is a `domain_meta` row per account (`renewal_card:<account>` = payment method ID, set time), written only by Change card's completion (r2 P2-1). The webhook's `EventPayment` branch nudges the purchase pass when the charge's PaymentIntent is a live renewal's.
+
+- [ ] **Step 1: Write failing tests:** `TestOneLiveRenewalPerDomain`, `TestOneAutomaticRenewalPerTermEvenAfterFailure`, `TestManualRenewalAfterRefundedAutomatic`, `TestMoveRenewalGuardAutoRenewAndGate` (with either off the move fails and nothing changes), `TestAdvanceRegistrationExpiryIsCAS` (replay is a no-op; never backwards), `TestRegistrationsExpiringBeforeIsPerTerm` (alerted for the old expiry, renewed, alerted again for the new), `TestMigrateRenewalsBackfillsAlertedFor` (idempotent, twice), `TestDomainObligationsCountsLiveRenewal`, `TestMatchPaymentFilesRenewalAsDomain`, `TestWebhookPaymentNudgesLiveRenewal`, `TestStoreGateClassifiesDomainRenewals`, `TestRenewalDetailsUnknownOutcomeFailsTheRead`, `TestClassifyRenewalPaymentsFixesPaymentsRecordedBeforeAdoption` (the webhook records the charge and a refund against the customer's account first; adoption reclassifies both) (r2 P2-5), `TestRenewalCardRoundTrip`.
+- [ ] **Step 2: Run** `go test ./internal/console/ -run 'Renewal|AdvanceRegistrationExpiry|RegistrationsExpiringBefore|MigrateRenewals|DomainObligationsCountsLiveRenewal|MatchPaymentFilesRenewal|WebhookPaymentNudges|StoreGate'`; expect FAIL.
+- [ ] **Step 3: Implement.**
+- [ ] **Step 4: Run**; expect PASS; also `-run 'StoreGate|ClaimSQL|SavedContact|MigrateDomains|ExpiryPass'`.
+- [ ] **Step 5: Commit** `console: domain renewals, deadlines, per-term notices and alerts in the store`.
+- [ ] **Step 6: Astra task review** (production storage, the money record).
+
+### Task 7: The renewal engine (risky: per-task review, billing and termination)
+
+**Files:**
+- Create: `internal/console/domainrenew_decide.go`, `internal/console/domainrenew_decide_test.go` (table and simulation), `internal/console/domainrenew.go`, `internal/console/domainrenew_test.go`, `internal/console/domainrenew_notices.go`, `internal/console/domainrenew_copy.go` (approved strings from Task 2), `internal/console/domainrenew_resolve.go`, `internal/console/domainrenew_resolve_test.go`
+- Modify: `internal/console/domainbuy.go` (`domainPurchasePass` also advances `LiveDomainRenewals` and runs the renewal notices pass, each in its own error slot), `internal/console/routedecls.go` and the registers (the resolve door)
+
+**Interfaces:**
+- Consumes: Tasks 3-6; `alertOperator`; `ownerNoticeErr` (`domainpurchase_shared.go:306`); `holdBilling`, `providerNow`, `sendPreparedLocked` and `recoveryEligible` (`billinghold.go`, `billingops.go:403`), as card setup sends (`billingcard.go`); the transfer refund rules (`refundTransfer`, `gatherTransferRefund`: persist the attempt's `Prepared` before its first send, find a lost one by listing refunds tagged with this renewal ID and attempt, adopt before resending) and the transfer notices shape (`domaintransfer_notices.go`). Copy those rules; factor shared helpers out of the transfer files only if `TestDecideTransferSimulation` and every transfer test pass unchanged.
+- **The settlement function** (`domainrenew_decide.go`, pure, no I/O; every name prefixed `renew`, r1 P1-6):
+ ```go
+ type renewPreflight int // renewPreNone, renewPreOurs (expiry == TermFrom, CanRenew, before RenewBy), renewPreAlreadyRenewed (registrar expiry > TermFrom), renewPreNotOurs, renewPreNotRenewable (CanRenew false or past RenewBy), renewPreShort (balance below the cost), renewPreNoPrice
+ type renewPayment int // renewPayNone (no attempt prepared), renewPayPrepared (stored, not yet sent), renewPayBlocked (no card or an untaxable address; BlockReason says which, r2 P2-3), renewPaySent (sent, answer not read), renewPayDeclined, renewPayNeedsAction, renewPayProcessing, renewPaySucceeded, renewPayCancelled, renewPayLost (sent, past the resend window, not yet found by the list)
+ type renewRegistrar int // renewRegNotSent, renewRegUnknown (sent, Lookup still shows TermFrom or cannot read), renewRegRenewed (Lookup expiry > TermFrom), renewRegRefused (definite refusal, Lookup still shows TermFrom)
+ // refundOutcome (fNone, fPending, fSucceeded, fFailed) is reused from domaintransfer_facts.go: same meaning.
+ type renewFacts struct {
+ Trigger RenewalTrigger; AutoRenew, Activated bool
+ Preflight renewPreflight
+ Payment renewPayment; BlockReason string; Attempt int; AttemptFirstSent time.Time; AttemptPayUntil time.Time; NextPayAt time.Time; HasIntent bool
+ Registrar renewRegistrar; Renewed *registrar.Registered; RenewSentAt time.Time
+ Refund refundOutcome; RefundAttempt int; RefundID string
+ Resolution string // operator: "", "renewed", "not_renewed", "refunded_outside"
+ Owed, Alerts map[string]time.Time
+ Now, ProviderNow, ChargeAt, PayUntil, TermFrom, RenewBy, CreatedAt time.Time
+ }
+ type renewAction int // renewWait, renewPreflightRead, renewPrepareAttempt, renewUpdateTax, renewSendAttempt, renewEndUnsent, renewDiscover, renewCancel, renewSendRenew, renewRecordRenewed, renewCreateRefund, renewFinish
+ type renewDecision struct { Action renewAction; Terminal RenewalState; Reason string; Owe []string /* notices this move makes due */ }
+ func decideRenewal(f renewFacts) renewDecision
+ ```
+ Decision table (exhaustive over the enums; anything not listed is `renewWait`):
+ - **Deadline first (r3 2):** at or after `PayUntil` with no succeeded payment, whatever the preflight outcome (holds included): an attempt that may have been sent is reconciled first (a read, or the list for a lost create); a PaymentIntent known unpaid is `renewCancel`led; otherwise `renewFinish` without a cancel. Either way failed `unpaid` (automatic) or `cancelled` (manual), owing the not-renewed notice. Every row below applies only before `PayUntil` or once a payment has succeeded.
+ - **Before money:** `renewPreNone` → `renewPreflightRead`. `renewPreNotOurs`/`renewPreNotRenewable` → `renewFinish` failed (`not_ours`/`not_renewable`), owing the owner and operator notices. `renewPreAlreadyRenewed` → `renewRecordRenewed` with the registrar's expiry, then failed `already_renewed`, owing an operator alert (no charge). `renewPreShort`/`renewPreNoPrice` before `PayUntil` → wait, the operator alert owed daily and at 10 and 4 days before `RenewBy`; preflight again at the next pay time (at `PayUntil` the deadline rule ends it, r3 2). `renewPreOurs`: automatic with `!AutoRenew` or `!Activated` and no attempt sent → `renewFinish` failed (`auto_renew_off`/`deactivated`), nothing taken; `renewPayNone` at or after `ChargeAt` and before `PayUntil` → `renewPrepareAttempt` (a fresh tax quote, the card on file, a new attempt number, the `Prepared` stored with its key); `renewPayPrepared` before `AttemptPayUntil` → `renewUpdateTax` when its fresh calculation differs from the PaymentIntent's (r2 P2-4), else `renewSendAttempt` through `sendRenewalCharge` (the move recording the send carries the auto-renew and gate guard); `renewPayPrepared` at or after `AttemptPayUntil` → `renewEndUnsent`, then, with `HasIntent`, `renewCancel`, else `renewFinish` (r2 P1-1); `renewPayBlocked` → the owner notice owed on the decline schedule (and an operator alert for `tax_location`); before `PayUntil`, a new preparation at the next pay time or the owner's Try again; at or after it, `renewCancel` only with `HasIntent`, then failed (`unpaid` or `cancelled`) (r2 P2-3); `renewPayNone` at or after `PayUntil` → failed (`unpaid` or `cancelled`), nothing taken.
+ - **An attempt in flight:** `renewPaySent` within the resend window → wait for the read, then resend verbatim only through `sendRenewalCharge` (which also needs `recoveryEligible` and the attempt's `PayUntil` not reached; past it, the read or the list decides); `renewPayLost` → `renewDiscover` (list the customer's PaymentIntents from `AttemptFirstSent - 1 h`, match renewal and creation attempt (only a create is ever discovered; a confirm or authenticate with a lost answer is read by the adopted PaymentIntent's ID, r3 4); one found is adopted and read; none in a full list means never created, and the next decision prepares attempt + 1). `renewPayProcessing` → wait.
+ - **Declined:** `renewPayDeclined`/`renewPayNeedsAction` → owner notice owed at the first decline, and at 10 and 4 days before `RenewBy` (once each); at `NextPayAt` while before `PayUntil`, `renewPrepareAttempt` (a confirm on the same PaymentIntent naming the card on file now); `renewPayNeedsAction` also offers the owner Authenticate, an attempt of kind authenticate sent through the same guard (r2 P1-2); at or after `PayUntil`, or automatic with `!AutoRenew` or `!Activated`, `renewCancel`, then failed (`unpaid`, `cancelled`, `auto_renew_off` or `deactivated`), owing the not-renewed notice.
+ - `renewPayCancelled` with `renewRegNotSent` → `renewFinish` with the reason recorded at the cancel (nothing taken).
+ - **Paid:** `renewPaySucceeded` + `renewRegNotSent` → `renewSendRenew` (whatever the switch, the gate, the window or the clock say). `renewPaySucceeded` + `renewRegUnknown` → wait, operator alerts owed at 1 h, 24 h, then daily after `RenewSentAt`; never `renewSendRenew` again; `Resolution` "renewed" reads as `renewRegRenewed` only with a `Lookup` agreeing, "not_renewed" as `renewRegRefused`. `renewPaySucceeded` + `renewRegRenewed` → `renewRecordRenewed`, then `renewFinish` renewed, owing the owner's renewed notice. `renewPaySucceeded` + `renewRegRefused`: `fNone`/`fFailed` → `renewCreateRefund` (a new attempt after a failure, owing an alert); `fPending` → wait; `fSucceeded` → `renewFinish` failed `refused`, owing owner and operator notices. `Resolution` "refunded_outside" → `renewFinish` failed `refunded_outside`.
+ Invariants, asserted by `TestDecideRenewalSimulation` (randomized: 10,000 runs of random registrar, `Lookup` lag, balance, tax, create, confirm, card changes, toggle, gate and refund answers, lost answers, provider-time jumps past the resend window, and a crash after any step, replayed through the real engine over the fakes, the schedule pass (Task 14) and a fresh `Server` on restart; the seed printed on failure) (r1 P2-3):
+ - R1 `Renew` is called only after the PaymentIntent reads `succeeded`, and at most once per renewal.
+ - R2 for each registration and term, at most one succeeded payment is kept; every other succeeded payment for that term was refunded in full.
+ - R3 `renewed` ⇒ a succeeded payment, and the recorded expiry is the registrar's from `Lookup` and later than `TermFrom`.
+ - R4 `failed` ⇒ no succeeded payment, or a refund of the full received amount and currency succeeded, or an operator recorded `refunded_outside`.
+ - R5 a create or confirm for an automatic renewal is recorded only in a move that saw `auto_renew = 1` and the gate on, and no stored request is resent outside `recoveryEligible`.
+ - R6 `expires_at` only moves forward, only from `TermFrom`.
+ - R7 definite outcomes are sticky (`renewRegRenewed`, `renewRegRefused`, `renewPaySucceeded`, `renewPayCancelled` are never replaced by an unknown or an older read).
+ - R8 the renewal stays live, holding its domain's unique index and counted by `DomainObligations`, until terminal; the schedule never creates a second automatic renewal for a term.
+ - R9 notices: every owed notice is delivered at least once, or given up on by the notices rules with the operator's drop alert owed; a recipient whose delivery is recorded never gets it again.
+ - R10 progress (r2 P2-2), under these assumptions: provider and registrar answers become definite and stable after some step, and the simulated operator resolves any renewal still `renewRegUnknown` 7 days after `RenewSentAt`. When a pass only waits, the simulation moves the clock to the next scheduled event (the next pay, read, alert, `PayUntil`, `ChargeAt` or resolution time). Then every renewal is terminal within 20 settling passes (passes that act, not passes that wait) after the last injected failure.
+ - R10b elapsed time, a separate assertion: every renewal is terminal by the latest of its `PayUntil`, `RenewSentAt + 7 days` and the last injected failure, plus one day.
+ - R11 deadline (r2 P1-1): the fake provider records every renewal charge send (create, confirm, authenticate) with its attempt; none is at or after that attempt's `PayUntil` by either clock, and every send passed through `sendRenewalCharge` (a counter the fake checks against the guard's own).
+- **The engine** (`domainrenew.go`), one pass per live renewal, the transfer shape: gather facts (preflight `Lookup`, `Balance`, `RenewalCost` with `QuoteRenewal`'s ceiling flag alerting the operator once; the PaymentIntent read when due; `Lookup` after `Renew` on its schedule; the refund read), call `decideRenewal`, perform the one action, record facts, the result and any owed notices in one CAS move. `renewSendRenew` moves to `renewing` with `RenewSentAt` first, then calls `Renew` (a crash after the move is `renewRegUnknown`); every create, confirm and authenticate send goes through `sendRenewalCharge` (`domainrenew_send.go`, below); a definite `ErrRefused` is recorded as `renewRegRefused` only once a `Lookup` still shows `TermFrom`. The PaymentIntent ID is recorded from the create's answer, a read or the list, before anything else uses it. Whatever a send answers, the next pass's reads, not the send's reply, decide what happened. Notices are delivered after the pass by `domainrenew_notices.go`, and for ended renewals by its notices pass (r1 P2-2).
+- **The deadline guard (Paul's ruling, r2 P1-1)** (`domainrenew_send.go`):
+ ```go
+ // sendRenewalCharge is the only code that sends a renewal charge.
+ func (s *Server) sendRenewalCharge(ctx context.Context, h billingHold, r *DomainRenewal, attempt int) (renewSendResult, error)
+ ```
+ It reloads the renewal (CAS on revision) and reads provider time (`providerNow`). At or past the attempt's `PayUntil` by our clock or the provider's, it sends nothing: an attempt with no `FirstSentAt` is ended unsent in a move; one with `FirstSentAt` is marked for reconciliation, and the next pass reads the PaymentIntent (or lists them) before deciding. Otherwise it records `FirstSentAt` (first send, in the move carrying the auto-renew and gate guard for an automatic renewal) or checks `recoveryEligible` (resend), then sends the stored request verbatim. The stored request is an unexported `renewalChargeRequest` whose only unwrap is inside this function. `TestOnlyTheDeadlineGuardSendsRenewalCharges` parses every non-test Go file of the module and fails when `PrepareOffSessionCharge`, `PrepareConfirmCharge` or `PrepareAuthenticateCharge` is referenced outside `domainrenew_send.go` (their declarations in `billing`, `billingstripe` and `billingtest` aside), when `renewalChargeRequest` is unwrapped outside `sendRenewalCharge`, or when `domainrenew_send.go` calls `Send` outside it.
+- **Operator resolve door:** `POST /api/cli/system/domains/renewals/{id}/resolve` `{"outcome":"renewed"|"not_renewed"|"refunded_outside","note"}`, `apiSystemOperator`, service-closed, audited, `gateNoHostClaim`; only for a renewal that is paid with `renewRegUnknown` (or, for `refunded_outside`, refunding); "renewed" needs `Lookup` to show an expiry later than `TermFrom`. As `handleAPITransferResolve` (`domaintransfer_resolve.go`), and joining the same registers.
+
+- [ ] **Step 1: Write failing tests:** `TestDecideRenewalTable` (every row above), `TestDecideRenewalSimulation` (R1-R10), and on a renewal fixture beside `newPurchaseFixture`: `TestRenewalHappyPathRecordsRegistrarExpiry` (one PaymentIntent, tax linked, one renew, expiry from `Lookup`, owner notified), `TestRenewalDeclinedUntilDeadlineCancelsAndFails`, `TestRenewalDeclinedThenNewCardRetrySucceeds` (r1 P2-1: decline, a card added, Try again confirms with the new card; the stored first attempt is unchanged), `TestRenewalNeedsActionAsksForCardAgain`, `TestRenewalLostCreatePastRetentionIsDiscovered` (crash after the create, restart 48 h later in provider time: no resend, the list adopts it), `TestRenewalLostCreateNeverExecutedPreparesNextAttempt`, `TestRenewalLostRenewAnswerSettledByLookup` (with `LookupLag`), `TestRenewalOperatorNotRenewedRefunds`, `TestRenewalRefusedRefundsInFull`, `TestRenewalNotOursOrPastDeadlineChargesNothing`, `TestRenewalAlreadyRenewedAdoptsWithoutCharge`, `TestRenewalBalanceShortHoldsAndAlerts`, `TestRenewalCostAboveCeilingAlertsAndRenews`, `TestRenewalLostPayAnswerNeverReadAsDecline`, `TestRenewalRefundSurvivesCrashPastKeyRetention`, `TestRenewalResumesAfterRestartWithoutSecondChargeOrRenew`, `TestRenewalTerminalNoticeSurvivesCrashAndDeliveryFailure` (r1 P2-2), `TestOnlyTheDeadlineGuardSendsRenewalCharges` and `TestRenewalRestartAcrossPayUntil` (prepared but unsent create and confirm, and sent but unread ones, each with a restart after `PayUntil`: the unsent end without a send, the sent reconcile by a read first) (r2 P1-1), `TestRenewalAuthenticateCompletesOneCharge` (decline with `authentication_required`, Authenticate, the fake completes authentication: exactly one succeeded charge; a cancel at `PayUntil` after an unfinished authentication leaves none) (r2 P1-2), `TestRenewalNoCardAndTaxLocationBlockThenRecover` (blocked, notified, Change card or an address fix, Try again, paid; and blocked until `PayUntil`: ended, no cancel without a PaymentIntent) (r2 P2-3), `TestRenewalRetryUpdatesTaxBeforeConfirm` (the address changes between attempts; the update lands before the confirm; a lost update answer is settled by a read) (r2 P2-4), `TestRenewalDeclinedCreateAdoptsIntentFrom402` (r2 P2-6), `TestRenewalHeldPastPayUntilEnds` (balance short, and no catalog price, each held through `PayUntil` with a restart across it: ended `unpaid` without a send; with a PaymentIntent from an earlier attempt, cancelled first) (r3 2), `TestRenewalConsecutiveDeclinesKeepTheIntent` (three declines on one PaymentIntent, each confirm its own key and attempt number, the intent kept throughout) and `TestRenewalLostConfirmAnswerReadByID` (no list, no new create) (r3 4), `TestRenewResolveOnlyForUnknownAndAudited` (system operator allowed; an account owner, an ops-account owner not on the list and a service principal refused).
+- [ ] **Step 2: Run** `go test ./internal/console/ -run 'TestDecideRenewal|TestRenewal|TestRenewResolve'`; expect FAIL.
+- [ ] **Step 3: Implement.**
+- [ ] **Step 4: Run** the same plus `-run 'TestDecideTransfer|TestTransfer|TestPurchase|TestStart'` (purchases and transfers unchanged); expect PASS.
+- [ ] **Step 5: Commit** `console: domain renewal engine (charge, renew, record, refund)`.
+- [ ] **Step 6: Astra and Fable task review** (money flow, termination of every path).
+
+### Task 8: Manual renewal: the operation, its doors and the renewal card (risky: per-task review, security gates)
+
+**Files:**
+- Create: `internal/console/domainrenew_start.go`, `internal/console/apidomainrenew.go`, `internal/console/apidomainrenew_test.go`, `internal/console/accountdomainrenew.go`, `internal/console/accountdomainrenew_test.go`, `internal/console/templates/account_domain_renew.html`, `internal/console/templates/account_domain_renewal.html`
+- Modify: `internal/console/accountdomainspage.go` (the Renewal card on a bought domain's page, its header comment), `internal/console/templates/account_domain.html`, `internal/console/accountdomains_copy.go`, `internal/console/routedecls.go` and the registers, `parity/parity.tsv`, `internal/console/perfwalk_test.go` and `internal/console/testdata/perf-budgets.txt` (the confirm page, fakes seeded, no network)
+
+**Interfaces:**
+- Produces the operation every door calls:
+ ```go
+ type renewalActor struct { Principal string; Via string /* "console", "cli"; a later service door adds its own */ }
+ type renewalQuote struct { Domain string; Expires, RenewBy time.Time; Price int64; Currency string; Card *billing.Card; AutoRenew bool; Live *DomainRenewal }
+ func (s *Server) quoteDomainRenewal(ctx context.Context, acct *Account, domain string) (renewalQuote, *doorRefusal)
+ func (s *Server) startDomainRenewal(ctx context.Context, acct *Account, domain string, confirmed renewalQuote, actor renewalActor) (*DomainRenewal, *doorRefusal)
+ func (s *Server) retryDomainRenewal(ctx context.Context, acct *Account, id string, actor renewalActor) (*DomainRenewal, *doorRefusal) // Try again: the next attempt now, with the card on file now; only while declined or blocked and before PayUntil
+ type renewAuthOutcome struct { Kind string /* "redirect", "succeeded", "processing", "declined", "done_already" */; URL string /* set only for "redirect" */ } // r3 3
+ func (s *Server) authenticateDomainRenewal(ctx context.Context, acct *Account, id string, actor renewalActor) (renewAuthOutcome, *doorRefusal) // r2 P1-2: only while the payment needs action and before PayUntil; prepares an authenticate attempt and sends it through sendRenewalCharge
+ func (s *Server) startRenewalCardChange(ctx context.Context, acct *Account, id string) (string /*setup Checkout*/, *doorRefusal) // r2 P2-1
+ func (s *Server) finishRenewalCardChange(ctx context.Context, acct *Account, id, session string) *doorRefusal // records the account's renewal card, clears the card cache
+ ```
+ Refusals, all before any charge: `domainPurchaseReady` false (404, door absent); not a registration of this account (404, byte-identical to unknown); an `unpaid` registration; a live renewal (its card's address instead); a term already renewed; past `RenewBy - 1 h` or `CanRenew` false (contact support); no catalog price; the registrar balance short (`renewing is unavailable right now` + operator alert, as buying refuses); a price changed since the quote (Plan 1's `price_changed`). A manual renewal is created with trigger `manual`, `TermFrom` = the registration's expiry, the quoted price, and audited with the actor (`auditAccount`). Manual renewal needs no activation (r1 P1-5 gates only what happens without a person).
+- Routes (owners; persons only; `Allow: svcrole.Set{}`; `gateNoHostClaim`):
+ - API: `POST /api/cli/accounts/{account}/domains/renewals/check {"name"}` → `{"domain","expires","renew_by","price","currency","card":{"brand","last4"}|null,"auto_renew","renewal":{"id","state"}|null}`; `POST /api/cli/accounts/{account}/domains/renewals {"name","price","currency"}` → `{"id","state","renewal_url"}`; `GET /api/cli/accounts/{account}/domains/renewals/{id}` → `{"id","domain","state","reason","expires","renewal_url"}` (nudges the pass; another account's ID 404s as unknown); `POST /api/cli/accounts/{account}/domains/renewals/{id}/retry`.
+ - Browser: `GET /a/{sqid}/domains/renew/{domain}` the confirm page (Task 1 mockup); `POST /a/{sqid}/domains/renew/{domain}` (CSRF, `requireFreshAuth` last) → 303 to the card; `GET /a/{sqid}/domains/renewals/{id}` the renewal card, polling `GET .../renewals/{id}/status`; `POST /a/{sqid}/domains/renewals/{id}/retry` (CSRF, `requireFreshAuth` last).
+ - Authenticate (r2 P1-2): `POST /a/{sqid}/domains/renewals/{id}/authenticate` (CSRF, `requireFreshAuth` last) confirms the PaymentIntent on-session with `return_url` = `GET /a/{sqid}/domains/renewals/{id}/authenticated`, then acts on the structured outcome (r3 3): only when the PaymentIntent is `requires_action` with `next_action.type` `redirect_to_url` and an `https` URL (from the answer, or a read if the answer was lost) does it 303 off-site; immediate success, processing, a decline, or an intent that no longer needs action (authentication already completed) 303 back to the renewal card, with the pass nudged, and settlement proceeds; the return page checks that its `payment_intent` parameter is the renewal's (the client secret is ignored and never logged), reads the PaymentIntent, nudges the pass and shows the card. At `PayUntil` the engine cancels the PaymentIntent, so an authentication finished later charges nothing; one that finished first is settled (renew or refund).
+ - Change card (r2 P2-1): `POST /a/{sqid}/domains/renewals/{id}/card` (CSRF) opens a setup Checkout (the existing `PrepareSetupCheckout`) returning to `GET /a/{sqid}/domains/renewals/{id}/card/done?session=`, which reads it with `SetupCheckoutCard`, checks the customer, records the account's renewal card and clears the card cache. Both are gated by `domainPurchaseReady`, an owner and a live renewal of the account, not by `domainBuyReady` or the custom-domain entitlement that the billing page's Add a card needs (`billingcard.go:22`).
+ - A bought domain's page gains the Renewal card: the deadline tile, price, the card it charges (or "no card yet" with Add a card) and, for owners, Renew for a year (or the live renewal's card). The header comment's "Nothing offers a card change beside next year's price until renewals exist" goes.
+
+- [ ] **Step 1: Write failing tests:** `TestRenewDoorsAbsentWhenNotConfigured`, `TestRenewDoorsOwnerOnlyServiceClosedCSRFFreshAuth`, `TestRenewCheckShowsPriceDeadlineAndCard`, `TestRenewStartRefusals` (table above), `TestRenewStartPriceChanged`, `TestRenewalStatusOtherAccount404`, `TestRenewalCardStages` (charging, declined with Try again and Change card, renewing, renewed, refunded), `TestRenewalRetryOnlyWhenDeclinedAndInWindow`, `TestRenewalAuthenticateDoorOwnerOnlyAndRedirects` (the return page rejects another PaymentIntent; nothing secret in the page or log), `TestRenewalAuthenticateOutcomes` (immediate success, processing, a decline, already completed before the read, and a `requires_action` whose next action is not a valid redirect: each back to the renewal card, no off-site redirect) (r3 3), `TestRenewalChangeCardBeatsTheOldDefault` (default card A declines, B added through Change card, Try again charges B), `TestRenewalDetachedRenewalCardFallsBack` (B detached at the provider: the next attempt uses the default and the card shown says so) (r3 1), `TestRenewalChangeCardWorksWithBuyingOff` (r2 P1-2, P2-1), `TestBoughtDomainPageRenewalCard` (owner sees card and button; member sees expiry and price only).
+- [ ] **Step 2: Run** `go test ./internal/console/ -run 'RenewDoors|RenewCheck|RenewStart|RenewalStatus|RenewalCard|RenewalRetry|BoughtDomainPageRenewal'`; expect FAIL.
+- [ ] **Step 3: Implement**; strings from Task 2's result only.
+- [ ] **Step 4: Run**; expect PASS; the register tests (`SvcRoutes|APILinks|ClaimInvariant|LinkedPolicy|Parity|ClaimConsoleRouteCensus|SubmissionGate`), `go test ./internal/parity/`, and `TestConsoleScreensMeetTheBudget`.
+- [ ] **Step 5: Commit** `console: renew a domain by hand, the renewal card`.
+- [ ] **Step 6: Astra task review** (security gates, neutral refusals).
+
+### Task 9: `carlos domains renew`
+
+**Files:**
+- Create: `domains_renew_cli.go`, `domains_renew_cli_test.go`; Modify: `domains_cli.go` (verb and usage), `domains_buy_copy.go` (approved strings), `apimode.go` (beside `postDomainPurchase`), `commands.go` (clireg node), `parity/parity.tsv`, `parity/cli.tsv` (regenerated), `docs/site/cli.md` (the `### carlos domains` section: example line and paragraph)
+
+**Interfaces:**
+- `carlos domains renew <name> [--yes] [--no-wait] [--account] [--console]`: prints the domain, current expiry, the deadline, price and the card; confirms unless `--yes`; starts; then waits like `buy` (`waitDomainPurchase`), printing each new state once, exit 0 at `renewed` with the new expiry, non-zero at `failed` with the reason. Declined or no card: prints the renewal card's console address (Try again, Change card) and keeps waiting unless `--no-wait`.
+
+- [ ] **Step 1: Write failing tests:** `TestDomainsRenewPrintsPriceDeadlineAndCard`, `TestDomainsRenewWaitsToRenewed`, `TestDomainsRenewDeclinedPrintsConsoleLink` (no payment provider URL in the output), `TestDomainsRenewFailedExitsNonZero`.
+- [ ] **Step 2: Run** `go test . -run TestDomainsRenew` (TMPDIR per Global Constraints); expect FAIL.
+- [ ] **Step 3: Implement.**
+- [ ] **Step 4: Run**; expect PASS; `go test . -run 'CLIGolden|Parity|CLIReg'` (re-record the golden corpus for the new verb), `go test ./internal/docsite/`, `GOOS=darwin go build ./...`, `GOOS=windows go build ./...`.
+- [ ] **Step 5: Commit** `cli: carlos domains renew`.
+
+### Task 10: The deadline refresh and the read-only preview (r1 P1-5)
+
+**Files:**
+- Create: `internal/console/domainrenew_preview.go`, `internal/console/domainrenew_preview_test.go`, `system_domains_renewals_cli.go`, `system_domains_renewals_cli_test.go`
+- Modify: `internal/console/domainexpiry.go` (the daily pass also refreshes `RenewBy` and `CanRenew` by `Lookup` for registrations within 120 days of their deadline, and alerts per term through Task 6; its comment "Nothing renews domains yet" is rewritten for slice A), `internal/console/domainexpiry_copy.go` (Task 2's slice A operator lines: the owner can renew from the domain's page or with `carlos domains renew`), `internal/console/domainexpiry_test.go`, `internal/console/apidomainbuy.go` (`handleAPIAccountDomains`: additive JSON fields per bought domain, `auto_renew`, `renew_by`, `renewal: {"notice_at","charge_at","price","currency","automatic": true|false,"why_not"}` as projected, never acted on in slice A), `internal/console/routedecls.go` and the registers, `commands.go`, `parity/parity.tsv`, `docs/site/cli.md`
+
+**Interfaces:**
+- `func renewalProjection(r DomainRegistration, catalog *domainreg.Catalog, currency string, now time.Time) projectedRenewal` is the one function slice B's schedule (Task 14) also uses for its dates, so the preview and what activation does cannot drift apart. `GET /api/cli/system/domains/renewals/preview` (`apiSystemOperator`, service-closed, read-only) lists every registration on the deployment: account, domain, expiry, `renew_by`, `auto_renew`, unpaid or not, the projected notice and charge dates, the price, and whether it would be charged automatically or get the renew-by-hand notice. `carlos system domains renewals preview` prints it.
+
+- [ ] **Step 1: Write failing tests:** `TestExpiryPassAlertsAgainAfterRenewal`, `TestDailyRefreshReadsRenewBy` (within 120 days only; one `Lookup` each), `TestPreviewProjectsNoticeAndChargeDates` (on time, late, auto-renew off, unpaid, no price), `TestPreviewIsReadOnlyAndOperatorOnly`, `TestAccountDomainsJSONGainsRenewalAdditively` (older fields unchanged), `TestSystemDomainsRenewalsPreviewPrints`.
+- [ ] **Step 2: Run** `go test ./internal/console/ -run 'ExpiryPass|DailyRefresh|Preview|AccountDomainsJSON'` and `go test . -run TestSystemDomainsRenewalsPreview`; expect FAIL.
+- [ ] **Step 3: Implement.**
+- [ ] **Step 4: Run**; expect PASS; register, parity, CLI golden and docsite tests.
+- [ ] **Step 5: Commit** `console, cli: renewal deadlines and the read-only renewal preview`.
+
+### Task 11: Slice A: runbook, census, review, merge and the dev witness
+
+**Files:**
+- Modify: `docs/site/domains-buying.md` (the runbook: renewals by hand, the card on file, the deadline, the resolve door, the preview, what the operator is alerted about)
+
+- [ ] **Step 1: Census, both inventories.** (a) Root reads: `make census-card`, a CLAIMS file for the CLI units, `make census-propose NAME=domain-renewals-a CLAIMS=<file>`. (b) Record writes: `routeDecls` and `linkedPolicies` change, so add `internal/provision/domain_renewals_census_test.go` on top of the current tip's layer (as `domain_transfers_census_test.go` did), wire it into `plan9_b8_census_test.go`, and add it to `scripts/gitleaks-gate/notscanned.go`. `go test ./internal/provision/ -run 'Plan9B8|Plan14|Census'`, `make gitleaks`. Astra gives the verdict on #280.
+- [ ] **Step 2:** Whole-branch review of slice A (Astra and Fable on one brief from `REVIEW-BRIEF-TEMPLATE.md`, the round history carried); one fix wave; scoped re-review. `make code-health`; CI green (`amadan ci status carlos/platform -branch domain-renewals`).
+- [ ] **Step 3:** Merge with Paul's go (`amadan branch merge carlos/platform domain-renewals -squash -expect <tip> -message ...`, subject under 80 characters); release with a dev roll per the release recipe.
+- [ ] **Step 4: Dev witness:** renew a sandbox domain on dev with a Stripe test card from the console and with `carlos domains renew`; a declined test card, then Change card and Try again; test card 4000002760003184 (authentication on every payment): the off-session attempt needs action, Authenticate completes it at the bank's test page, and Stripe shows exactly one charge (r2 P1-2); record each state with timestamps and the expiry before and after in the discussion. Run `carlos system domains renewals preview` on dev and, after the flagship roll with the next release, on flagship, and post both on the discussion: that is the list Paul's slice B GO is given against.
+
+### Task 12: The activation gate (risky: per-task review, production activation)
+
+**Files:**
+- Create: `internal/console/domainrenew_gate.go`, `internal/console/domainrenew_gate_test.go`
+- Modify: `system_domains_renewals_cli.go` (and its test), `internal/console/routedecls.go` and the registers, `commands.go`, `parity/parity.tsv`, `docs/site/domains-buying.md`
+
+**Interfaces:**
+- The gate is one row in `domain_meta` (`renewals_auto = {"on":bool,"by","at","note"}`), absent meaning off. Only `POST /api/cli/system/domains/renewals/activation {"on","note"}` (`apiSystemOperator`, service-closed, audited with `auditSystem`) writes it; `GET` of the same path reads it. CLI: `carlos system domains renewals activate --note <why>`, `deactivate --note <why>`, `status`, as `carlos system antivirus enable|disable|status` are shaped. No environment variable, flag, `Config` field, migration or backfill reads or writes it.
+- `func (s *Server) renewalsActivated(ctx context.Context) (bool, error)`: an error reads as off. Checked before every automatic notice and every automatic renewal creation (Task 14), and in SQL by every move that records an automatic create or confirm (`renewGuard.Activated`, Task 6). Deactivating stops new automatic notices, creations and payments at once; automatic renewals not yet paid end `failed` (`deactivated`); paid ones still renew or refund (Global Constraints).
+
+- [ ] **Step 1: Write failing tests:** `TestActivationGateOffByDefaultAcrossRestartsAndConfig` (a fresh store, a restart over the same store, every `Config` the console can boot with and every environment variable it reads: off), `TestNothingAutomaticWhileGateOff` (the schedule and the engine over registrations due today: no notice, no renewal row, no Stripe call), `TestActivateIsSystemOperatorOnlyAndAudited`, `TestDeactivateRacesTheCreateMove`, `TestGateReadErrorIsOff`, CLI `TestSystemDomainsRenewalsActivateStatus`.
+- [ ] **Step 2: Run** `go test ./internal/console/ -run 'ActivationGate|NothingAutomatic|Activate|Deactivate|GateReadError'` and `go test . -run TestSystemDomainsRenewals`; expect FAIL.
+- [ ] **Step 3: Implement.**
+- [ ] **Step 4: Run**; expect PASS; register, parity, CLI golden and docsite tests.
+- [ ] **Step 5: Commit** `console, cli: the renewals activation gate`.
+- [ ] **Step 6: Astra task review** (production activation).
+
+### Task 13: The auto-renew operation and its doors (risky: per-task review, security gate)
+
+**Files:**
+- Create: `internal/console/domainautorenew.go`, `internal/console/domainautorenew_test.go`
+- Modify: `internal/console/apidomainrenew.go`, `internal/console/accountdomainrenew.go`, `internal/console/templates/account_domain.html`, `internal/console/routedecls.go` and the registers, `parity/parity.tsv`; Create: `domains_autorenew_cli.go`, `domains_autorenew_cli_test.go`; Modify: `domains_cli.go`, `apimode.go`, `commands.go`, `docs/site/cli.md`
+
+**Interfaces:**
+- Produces the one implementation every door calls, now and later:
+ ```go
+ type autoRenewResult struct {
+ On bool
+ ChargeAt time.Time; Price int64; Currency string // on: when and how much this term; zero when nothing will charge this term (or the deployment is not activated)
+ Effect string // "scheduled", "charging_now", "not_active_here", "off", "off_cancelled" (an unsent or declined attempt was ended), "off_too_late" (this term's payment was already sent)
+ }
+ func (s *Server) setDomainAutoRenew(ctx context.Context, acct *Account, domain string, on bool, actor renewalActor) (autoRenewResult, *doorRefusal)
+ ```
+ It authorises nothing (the door does: owners now; a service door later checks its own binding) and does everything else: the registration must be this account's and not `unpaid`; off writes `auto_renew = 0` in one transaction with reading the live renewal, so the answer says whether this term's payment was already sent; on writes `auto_renew = 1` and, when the term has no emailed notice, records an in-person notice (`InPerson`, the price shown, Decision 4) so the answer's `ChargeAt` is what will happen once the deployment is activated; both audited with the actor. Idempotent: setting the current value changes nothing and answers the same. It works with the gate off (it only records the owner's choice).
+- Doors (owners, persons only, `Allow: svcrole.Set{}`, `gateNoHostClaim`): `PUT /api/cli/accounts/{account}/domains/auto-renew {"name","on"}` → the result as JSON; `POST /a/{sqid}/domains/auto-renew/{domain}` (CSRF) from the Renewal card's switch, flashing the effect. CLI: `carlos domains auto-renew <name> on|off` (`on`/`off` declared enum values of the leaf), printing the effect and, for on, the charge date and price.
+
+- [ ] **Step 1: Write failing tests:** `TestAutoRenewOperationEffects` (table: on with time, on inside 30 days charging now, on with the gate off, off with nothing live, off ending a declined renewal, off too late after the create move, setting the same value twice), `TestAutoRenewOffRacesTheCreateMove` (Review Focus 3), `TestAutoRenewRefusesUnpaidRegistration`, `TestAutoRenewDoorsOwnerOnlyServiceClosedCSRF`, `TestAutoRenewAudited`, CLI `TestDomainsAutoRenewOnPrintsChargeDate`, `TestDomainsAutoRenewOffTooLate`.
+- [ ] **Step 2: Run** `go test ./internal/console/ -run AutoRenew` and `go test . -run TestDomainsAutoRenew`; expect FAIL.
+- [ ] **Step 3: Implement**; strings from Task 2's result.
+- [ ] **Step 4: Run**; expect PASS; the register, parity, CLI golden and docsite tests as in Tasks 8 and 9.
+- [ ] **Step 5: Commit** `console, cli: the auto-renew switch, one operation behind every door`.
+- [ ] **Step 6: Astra task review** (the gate, the race with the engine).
+
+### Task 14: The schedule pass: notices, due renewals, reminders and deadline emails (risky: per-task review, billing: when money is taken)
+
+**Files:**
+- Create: `internal/console/domainrenew_schedule.go`, `internal/console/domainrenew_schedule_test.go`
+- Modify: `internal/console/domainbuy.go` (`StartDomainPurchasePass` runs it hourly, like `domainExpiryDaily`), `internal/console/domainrenew_copy.go`
+
+**Interfaces:**
+- Produces `func (s *Server) domainRenewalSchedulePass(ctx context.Context, now time.Time) error`, console.db only but for one card read per notice. It does nothing but log one line when `renewalsActivated` is false. Otherwise, for each registration not `unpaid`, per term (`Term == expires_at`, else the state is reset for the new term), with every date from `renewalProjection` (Task 10):
+ - auto-renew on, within 45 days of `RenewBy`, no notice: if the projected charge is automatic, email the notice (price frozen into `Term`, the charge date, the card) and record it only on delivery; else email the renew-by-hand notice and alert the operator, once.
+ - auto-renew on, noticed, `now >= ChargeAt`, `now < RenewBy - 3 days`, and no automatic renewal for the term in any state (r1 P1-2): `CreateDomainRenewal` (trigger `auto`, the noticed price and currency, `ChargeAt`, `PayUntil = RenewBy - 2 days`); `ErrRenewalLive` and `ErrRenewalTermTaken` are no-ops.
+ - auto-renew off: reminders at 30, 7 and 1 days before `RenewBy`, each once, linking to the domain's page.
+ - `RenewBy` passed and the expiry unmoved: the past-deadline email, and the expiry email at expiry, each once, saying to contact support (Decision 8).
+ Every email records its key in `Term.Sent` only when `ownerNoticeErr` delivered it; an undelivered one is tried at the next pass (at least once).
+
+- [ ] **Step 1: Write failing tests:** `TestScheduleNoticeAt45DaysThenChargeAt30`, `TestScheduleChargesNoticedPrice` (catalog changed after the notice), `TestScheduleLateNoticeNeverChargesAutomatically`, `TestScheduleInPersonNoticeChargesAtThirtyDays`, `TestScheduleOffSendsThreeRemindersOnce`, `TestSchedulePastDeadlineAndExpiryEmailsOnce`, `TestScheduleNextTermStartsFresh` (after a renewal the notice comes again a year on), `TestScheduleSkipsUnpaidRegistrations`, `TestScheduleRetriesUndeliveredEmail`, `TestScheduleNeverRecreatesATerminalAutomaticRenewal` (with the engine: a refused-and-refunded one, a cancelled-at-deadline one and a restart between; no second automatic renewal and no second charge for the term; an owner's manual renewal afterwards succeeds), `TestScheduleUsesThePreviewsDates` (the preview and the schedule agree for every case of `TestPreviewProjectsNoticeAndChargeDates`), `TestScheduleDoesNothingWhileGateOff`.
+- [ ] **Step 2: Run** `go test ./internal/console/ -run TestSchedule`; expect FAIL.
+- [ ] **Step 3: Implement.**
+- [ ] **Step 4: Run**; expect PASS; also `-run 'TestDecideRenewal|TestRenewal|ExpiryPass|ActivationGate'`.
+- [ ] **Step 5: Commit** `console: renewal notices, scheduled charges, reminders and deadline emails`.
+- [ ] **Step 6: Astra task review** (when money is taken; the 14-day rule; one automatic renewal per term).
+
+### Task 15: Operator alerts once renewals are automatic
+
+**Files:**
+- Modify: `internal/console/domainexpiry.go`, `internal/console/domainexpiry_copy.go`, `internal/console/domainexpiry_test.go`
+
+**Interfaces:**
+- Where the deployment is activated, `domainExpiryPass` changes from "every registration at 60 days" to: auto-renew on and the term not renewed at 7 days before `RenewBy` (naming the live renewal's state, or "no renewal started"); an `unpaid` registration at 7 days; any registration past `RenewBy` with its expiry unmoved. Each once per term (`ExpiryAlertedFor` and a kind), marked only on delivery. Auto-renew off is the owner's choice and pages nobody before the deadline. Not activated: slice A's 60-day alert, unchanged.
+
+- [ ] **Step 1: Write failing tests:** `TestExpiryAlertsStuckAutoRenewAtSevenDays`, `TestExpiryIgnoresAutoRenewOffUntilDeadline`, `TestExpiryAlertsUnpaidRegistration`, `TestExpiryAlertsOncePerTermAndKind`, `TestExpiryKeepsSixtyDayAlertWhileNotActivated`.
+- [ ] **Step 2: Run** `go test ./internal/console/ -run Expiry`; expect FAIL.
+- [ ] **Step 3: Implement.**
+- [ ] **Step 4: Run**; expect PASS.
+- [ ] **Step 5: Commit** `console: operator expiry alerts for renewals that are stuck`.
+
+### Task 16: Renewal state on the Domains pages and `domains list --all`
+
+**Files:**
+- Modify: `internal/console/accountdomainspage.go`, `internal/console/accountdomains.go`, `internal/console/templates/account_domains.html`, `internal/console/templates/account_domain.html`, `internal/console/accountdomains_copy.go`, `internal/console/accountdomainspage_test.go`; `domains_account_cli.go`, `domains_account_cli_test.go`; `docs/site/cli.md`
+
+- [ ] **Step 1: Write failing tests:** `TestDomainCardRenewalChip` (renews on, payment failed, auto-renew off, contact support), `TestDomainPageRenewalCardShowsSwitchForOwners`, `TestDomainsListAllShowsRenewal` (from slice A's additive JSON).
+- [ ] **Step 2: Run** `go test ./internal/console/ -run 'DomainCardRenewal|DomainPageRenewal'` and `go test . -run TestDomainsListAllShowsRenewal`; expect FAIL.
+- [ ] **Step 3: Implement**; strings from Task 2's result.
+- [ ] **Step 4: Run**; expect PASS; `TestConsoleScreensMeetTheBudget`, the CLI golden and docsite tests.
+- [ ] **Step 5: Commit** `console, cli: renewal state on the domains pages and list`.
+
+### Task 17: Docs for slice B
+
+**Files:**
+- Modify: `docs/site/cli.md` (auto-renew: on by default, the notice, the charge 30 days before the deadline, retries, turning it off, renewing by hand), `docs/site/domains-buying.md` (the runbook: activation, the schedule, what pages the operator, the resolve door), `internal/console/domainexpiry.go` and `domainbuy.go` comments that still say nothing renews
+
+- [ ] **Step 1:** Write from Task 2's approved lines only; `go test ./internal/docsite/`.
+- [ ] **Step 2: Commit** `docs: domain auto-renew`.
+
+### Task 18: Slice B: census, review, merge and activation
+
+- [ ] **Step 1: Census**, both inventories, as Task 11 Step 1 (`NAME=domain-renewals-b`, a layer on top of slice A's).
+- [ ] **Step 2:** Whole-branch review of slice B (Astra and Fable, one brief, round history carried); one fix wave; scoped re-review; `make code-health`; CI green.
+- [ ] **Step 3:** Merge with Paul's go; release; roll dev and flagship. Nothing automatic happens on either: the gate is off.
+- [ ] **Step 4: Dev:** `carlos system domains renewals activate --note "dev witness"`. Witness on a sandbox domain registered for the purpose whose `RenewBy` falls inside 45 days (a real console has no clock seam): its notice, its scheduled charge with a test card, the renewal and the new expiry; turning it off with a declined attempt ends it; deactivating stops the next notice.
+- [ ] **Step 5: Flagship, with Paul's GO** (AGENTS.md production approval: it starts charging customers' cards without a person present). Ask on the branch discussion with the current `carlos system domains renewals preview` output for flagship beside it: every registration, its notice and charge dates and price, and any that would get the renew-by-hand notice. Existing registrations all read `auto_renew = 1` (the column's default since Plan 1, never shown to anyone), so the preview is what activation does. If Paul wants some or all to start off, that is a one-time, audited data change made before activation through `setDomainAutoRenew` with an operator actor, not a flag. With the GO, `carlos system domains renewals activate --note "<Paul's GO, date>"`; watch the first hourly schedule pass's notices against the preview; record the first automatic renewal on flagship when it happens (for rushedsunlight.com, once its transfer has completed, about 30 days before its deadline).
+
+## Spec points found ambiguous or contradicted by the code
+
+1. **Renewal price:** §4.2 says the catalog price "at the time of charging", §6.2 "the price the owner was told". This plan charges the noticed price (Decision 7).
+2. **Late arrivals:** §4.2's 45-day notice and 30-day charge assume every registration reaches the window on time. Registrations at activation, after an outage, or with auto-renew turned on late do not. Decision 4 handles them.
+3. **Authorise or charge:** §6.1 says renewals are "authorise-and-capture"; §5.1's renewal paragraph (B1) says charge in full. This plan follows §5.1.
+4. **"The card on file" does not exist in the code.** The console never reads a payment method; purchase Checkout saves the card for off-session use but not as the customer's default, and Add a card does not set one. Decision 3 defines it.
+5. **Every existing registration already has auto-renew on** (`domain_registrations.auto_renew DEFAULT 1`, Plan 1), though Plan 2a held the switch back and no owner has seen it. The activation gate and the preview (Tasks 10, 12, 18) are how Paul sees and decides what that means.
+6. **The expiry alert marker is one-shot** (`expiry_alerted_at`), so a renewed domain would never be alerted again; Task 6 makes it per term.
+7. **No `Renew` and no renewal idempotency at the registrar.** Openprovider has no idempotency key (`client.go:260`), so "reconciled" can only mean reading the expiry by `Lookup`.
+8. **"Expiry" is not the registrar's renewal deadline.** The adapter records `expiration_date`, which Openprovider's reference says "is not the primary reference for domain expiration"; renewals must go by `renewal_date`. §4.2's "30 days before expiry" is read here as 30 days before `renewal_date`, and the recorded expiry keeps its meaning.
+9. **Renewal in grace is a restore at Openprovider** (r1 P1-4), which the spec does not mention; §4.2's "can renew by hand" ends at the registrar's deadline in this plan, and restore is a follow-up (Decision 8).
+10. **The margin rule for renewals** compares the registrar's renewal cost with "the catalog price", which is in another currency; Plan 1 replaced that comparison with `max_cost`, and this plan uses `max_cost` too.
+11. **Unpaid registrations:** §5.1 step 7 promises the owner "a payment link", but the built copy says "we will contact you" and nothing makes one. This plan keeps such registrations out of renewals until an operator settles them.
+12. **Removing the zone and claim when the registrar reports the domain gone** (§4.2) needs Plan 2b's reconcile, not built; it stays out of this plan.
+13. **Operator resolve doors have no CLI.** The transfer resolve door is API-only; this plan adds the renewal one the same way. A `carlos` verb for both is a follow-up (the "operate via API and CLI" rule); the preview and activation doors do get one.
+
+## Follow-ups (not in this plan)
+
+- Restore in soft quarantine (Openprovider `/v1/domains/{id}/restore`), once its effect on the expiry and its completion evidence are confirmed against the live API.
+- A `carlos system domains resolve` verb over the transfer and renewal resolve doors.
+- The service role and resale (`design-domain-resale`), which call `setDomainAutoRenew` and the renewal operations through their own door.
diff --git a/docs/superpowers/reviews/CODEX-FINDINGS-domain-renewals-plan-R1.md b/docs/superpowers/reviews/CODEX-FINDINGS-domain-renewals-plan-R1.md
new file mode 100644
index 000000000..e7ae704b8
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-FINDINGS-domain-renewals-plan-R1.md
@@ -0,0 +1,63 @@
+Reviewed `b9d0b360a`, round 1. No files changed or test suites run.
+
+1. **P1-1 — Tasks 4 and 7: invoice creation cannot recover after idempotency retention expires.**
+
+ The proposed provider can retrieve an invoice only by ID ([plan:152](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:152)), while unknown writes eventually depend on that read ([plan:264](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:264)). If Stripe creates the invoice but its response is lost, a restart after key retention leaves no invoice ID to read. The renewal stays stuck; resending outside retention can create another invoice. Stripe permits keys to be pruned after 24 hours: [https://docs.stripe.com/api/idempotent_requests](https://docs.stripe.com/api/idempotent_requests).
+
+ **Fix:** Add exhaustive invoice discovery by customer and renewal metadata, plus reconciliation of an ambiguously created invoice item before adding another. Persist each write’s identity and first-send time. Test crashes after invoice and item creation with restart beyond retention. Existing transfers explicitly discover lost Checkout creations ([domaintransfer.go:421](/home/paulca/amadan.net/carlos/platform-domain-renewals/internal/console/domaintransfer.go:421)). **Fault family:** durable recovery of external money operations.
+
+2. **P1-2 — Tasks 6, 7 and 12: terminal automatic renewals are automatically recreated, including after expiry.**
+
+ The scheduler creates a renewal whenever no live renewal or retained payment exists ([plan:365](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:365)). The store deliberately permits another attempt after a full refund ([plan:224](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:224)). Consequently, a registrar refusal followed by refund causes another automatic charge on the next hourly pass. Likewise, an invoice voided at expiry becomes eligible for recreation. The new invoice’s `cOpen → aPay` transition has no upper time bound ([plan:262](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:262)).
+
+ **Fix:** Persist completion of the automatic attempt for each registration and term. Require an explicit owner action to restart a terminal attempt. Enforce the automatic payment deadline on initial payments as well as declined retries, while still settling payments already received. Test scheduler and engine together through refund, expiry and restart. **Fault family:** bounded automatic charging.
+
+3. **P1-3 — Tasks 4 and 7: an invoice paid using customer credit cannot be refunded through the proposed mechanism.**
+
+ The plan treats invoice payment as a PaymentIntent charge and reuses `PrepareRefund` ([plan:48](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:48)). That implementation requires a valid PaymentIntent and refunds only its remaining charge ([refund.go:17](/home/paulca/amadan.net/carlos/platform-domain-renewals/internal/billingstripe/refund.go:17)). Stripe automatically applies customer credit to finalized invoices: [https://docs.stripe.com/invoicing/customer/balance](https://docs.stripe.com/invoicing/customer/balance).
+
+ A renewal funded partly by credit and partly by card therefore cannot return the full consideration through that refund. A fully credit-funded invoice can have no refundable card payment. Credit can also be consumed during finalization, before the plan’s guarded pay operation.
+
+ **Fix:** Model invoice settlement sources and their reversal, including credit restoration. Place the auto-renew authorization boundary before the first operation that can consume funds. Add fully and partially credit-funded refusal and toggle-race tests. **Fault family:** payment authorization and full restitution.
+
+4. **P1-4 — Task 3: widening `Lookup` does not implement the promised renewal during grace.**
+
+ Task 3 specifies `/domains/{id}/renew` and suggests admitting another status through `registered()` ([plan:115](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:115)). However, Openprovider requires a **restore** operation for domains in soft quarantine, even when only the normal renewal fee applies: [https://openprovider.help/books/api-integrations/page/managing-domain-renewals-in-whmcs-with-openprovider](https://openprovider.help/books/api-integrations/page/managing-domain-renewals-in-whmcs-with-openprovider). The existing lookup also discards deleted records before checking their status ([client.go:294](/home/paulca/amadan.net/carlos/platform-domain-renewals/internal/registrar/openprovider/client.go:294)).
+
+ An owner following the promised renew-in-grace path can therefore receive `not_ours` or a renewal refusal instead of recovering the domain.
+
+ **Fix:** Specify and verify the provider’s soft-quarantine read, restore operation, cost and completion evidence. Preserve the distinction between a recoverable domain and a completed renewal. Test the entire grace renewal, including a lost restore response. Refuse unsupported or extra-fee restoration before charging. **Fault family:** registrar lifecycle and settlement evidence.
+
+5. **P1-5 — Tasks 12 and 16: flagship approval is a release instruction, not an enforced activation gate.**
+
+ The scheduler is added to the running purchase loop ([plan:360](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:360)); the approval appears only in the rollout steps ([plan:414](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:414)). Existing readiness checks contain no renewal activation approval ([domainbuy.go:26](/home/paulca/amadan.net/carlos/platform-domain-renewals/internal/console/domainbuy.go:26)). Deploying the merged code through another release would start notifications and eventual charges for existing default-on registrations.
+
+ The required pre-merge API preview is also unavailable: the current domain response exposes expiry but neither `auto_renew` nor projected scheduling ([apidomainbuy.go:380](/home/paulca/amadan.net/carlos/platform-domain-renewals/internal/console/apidomainbuy.go:380)); those additions arrive in slice B itself.
+
+ **Fix:** Ship the read-only preview before activation and add a persisted or deployment-configured activation gate checked before automatic notices and renewal creation. Activate it under the stated GO, with tests proving deployment and restart alone cannot activate it. **Fault family:** production activation authorization.
+
+6. **P1-6 — Tasks 6 and 7: the prescribed declarations collide with existing transfer declarations.**
+
+ Task 6 requires the outcome types exactly as Task 7 declares them. Task 7 redeclares `refundOutcome` and proposes `rNotSent`, `rUnknown`, `aWait` and `aCreateRefund` ([plan:243](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:243)). These already exist in package `console` ([domaintransfer_facts.go:18](/home/paulca/amadan.net/carlos/platform-domain-renewals/internal/console/domaintransfer_facts.go:18), [domaintransfer_facts.go:58](/home/paulca/amadan.net/carlos/platform-domain-renewals/internal/console/domaintransfer_facts.go:58), [domaintransfer_decide.go:30](/home/paulca/amadan.net/carlos/platform-domain-renewals/internal/console/domaintransfer_decide.go:30)). Implementing the declarations as directed will not compile.
+
+ **Fix:** Give renewal-specific outcomes and actions distinct names. Explicitly reuse the existing refund type if its semantics are shared. **Fault family:** package declaration compatibility.
+
+7. **P2-1 — Tasks 4, 7 and 8: “Change card” does not change the card used by an existing invoice.**
+
+ The invoice pins `default_payment_method`, but `PreparePayInvoice` accepts no replacement payment method ([plan:48](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:48), [plan:155](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:155)). Existing Add a card merely creates a setup Checkout ([payment.go:224](/home/paulca/amadan.net/carlos/platform-domain-renewals/internal/billingstripe/payment.go:224)). After a decline, adding a working card therefore leaves scheduled retries using the original card.
+
+ **Fix:** Define how a replacement card becomes selected for this renewal and pass it explicitly on a new payment attempt, preserving the stored request for an unresolved attempt. Test decline, card replacement and successful retry on the same invoice. **Fault family:** payment recovery through the advertised owner action.
+
+8. **P2-2 — Task 7: terminal emails have no durable delivery path.**
+
+ Terminal decisions promise owner emails and operator alerts ([plan:265](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:265)), but the engine advances only live renewals and stores delivery markers without an owed-notice mechanism. A crash after terminal settlement but before delivery can permanently lose the notification. Sending first instead can make settlement depend on email availability.
+
+ **Fix:** Persist owed notices with the terminal transition and process outstanding notices for terminal renewals. The existing transfer implementation explicitly separates these operations ([domaintransfer_notices.go:14](/home/paulca/amadan.net/carlos/platform-domain-renewals/internal/console/domaintransfer_notices.go:14)). Test terminal-write crashes and delivery failure. **Fault family:** durable notifications independent of settlement.
+
+9. **P2-3 — Task 7: the simulation’s invariants contradict permitted behavior.**
+
+ R2 prohibits two paid invoices for a term, although the store explicitly permits a fresh attempt after full refund. A refunded attempt followed by a successful manual retry violates that oracle. R9 also requires exactly-once alert delivery despite crashes after any step ([plan:266](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:266)); delivery followed by a crash before recording it cannot provide that guarantee. Existing transfer notices explicitly acknowledge this duplicate-delivery window ([domaintransfer_notices.go:35](/home/paulca/amadan.net/carlos/platform-domain-renewals/internal/console/domaintransfer_notices.go:35)).
+
+ **Fix:** Define R2 around retained payment, with every preceding paid attempt fully reversed. Define notification delivery as at-least-once unless the delivery service supplies durable deduplication. State the clock advancement and operator-resolution assumptions required for bounded progress. **Fault family:** simulation oracle validity.
+
+**NOT READY — P1-1, P1-2, P1-3, P1-4, P1-5, P1-6.**
\ No newline at end of file
diff --git a/docs/superpowers/reviews/CODEX-FINDINGS-domain-renewals-plan-R2.md b/docs/superpowers/reviews/CODEX-FINDINGS-domain-renewals-plan-R2.md
new file mode 100644
index 000000000..d6fe3af66
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-FINDINGS-domain-renewals-plan-R2.md
@@ -0,0 +1,95 @@
+Reviewed `42a78509d`. No files changed, test suites run, or live transactions made.
+
+Round-one findings:
+
+- **P1-1: Resolved.** Durable request storage and exhaustive PaymentIntent discovery cover lost creation.
+- **P1-2: Partly resolved.** Terminal automatic attempts cannot be recreated; prepared attempts still lack a send-time deadline check. Carried as P1-1 below.
+- **P1-3: Resolved.** Direct PaymentIntents remove invoice-credit settlement.
+- **P1-4: Resolved.** Restore is explicitly excluded before charging.
+- **P1-5: Resolved.** The persisted activation gate and earlier preview address accidental activation.
+- **P1-6: Resolved.** Renewal declarations have distinct names.
+- **P2-1: Partly resolved.** A new confirmation can name another card, but Add a card does not necessarily select it. Carried as P2-1 below.
+- **P2-2: Resolved.** Terminal transitions durably owe notices.
+- **P2-3: Partly resolved.** Retained-payment and notification invariants are corrected; the progress bound remains invalid. Carried as P2-2 below.
+
+1. **P1-1 — Task 7: a prepared attempt can first charge after its payment deadline.**
+
+ The exhaustive decision table guards preparation with `Now < PayUntil`, but directs `renewPayPrepared → renewSendAttempt` without that condition ([plan:298](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:298)). The send move checks auto-renew and activation only.
+
+ **Failure:** Prepare a manual charge shortly before its 24-hour deadline, crash before sending, and restart after the deadline while the registrar still allows renewal. The specified transition sends and charges. This contradicts the payment windows at [plan:49](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:49). `recoveryEligible` does not supply this automatically: its request-specific deadline is optional ([billingops.go:416](/home/paulca/amadan.net/carlos/platform-domain-renewals/internal/console/billingops.go:416)).
+
+ **Fix:** Guard first sends as well as preparation and resends. Expired unsent attempts must terminate without sending; potentially executed attempts must reconcile. Test restart across `PayUntil` for both create and confirm.
+
+ **Fault family:** bounded automatic charging, repeated from R1. Stopping rule 2 now applies: choose a fail-closed restart gate, cut deferred automatic sends, or enforce the deadline in one function with a guard test; I recommend the last option.
+
+2. **P1-2 — Tasks 4, 7 and 8: Add a card cannot complete payment-specific authentication.**
+
+ Decision 5 directs an owner to add the card again and retry off-session ([plan:71](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:71)). The existing action creates a setup Checkout, not authentication of the renewal’s PaymentIntent ([payment.go:224](/home/paulca/amadan.net/carlos/platform-domain-renewals/internal/billingstripe/payment.go:224)).
+
+ **Failure:** The bank requires authentication for this payment despite successful card setup. Every prescribed retry remains off-session and fails again. Stripe explicitly documents this case, including test card `4000002760003184`, and directs integrations to authenticate the declined PaymentIntent: [https://docs.stripe.com/payments/save-and-reuse-cards-only?payment-ui=direct-api&platform=web](https://docs.stripe.com/payments/save-and-reuse-cards-only?payment-ui=direct-api&platform=web).
+
+ **Fix:** Add an owner-only console flow that completes authentication on the existing PaymentIntent, preserving deadline, cancellation and settlement rules. Test setup success followed by authentication-required payment, browser authentication, and exactly one charge.
+
+ **Fault family:** payment recovery through the owner’s action.
+
+3. **P2-1 — Tasks 4 and 8: Change card still does not reliably change the renewal’s card.**
+
+ The selector prefers an explicit customer default ([plan:69](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:69)); Add a card only starts setup and never changes that default ([billingcard.go:59](/home/paulca/amadan.net/carlos/platform-domain-renewals/internal/console/billingcard.go:59)).
+
+ **Failure:** Default card A declines; the owner adds working card B; Try again selects A again. Separately, Add a card is refused when buying is disabled or the account lacks custom-domain entitlement ([billingcard.go:22](/home/paulca/amadan.net/carlos/platform-domain-renewals/internal/console/billingcard.go:22)), although manual renewal deliberately uses the broader `domainPurchaseReady` gate.
+
+ **Fix:** Make successful Change card update the selected default, invalidate the card cache, and permit card recovery for eligible existing registrations independently of new-purchase eligibility. Test both an explicit old default and disabled purchasing.
+
+ **Fault family:** payment recovery through the advertised owner action. This carries R1 P2-1.
+
+4. **P2-2 — Task 7: R10’s twenty-pass termination bound does not follow from its assumptions.**
+
+ R10 requires termination within twenty passes of the last injected failure, assuming only that time advances and an unknown registrar result receives operator resolution after seven days ([plan:313](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:313)).
+
+ **Failure:** Twenty passes advance time by twenty minutes while the next payment is three days away, or operator resolution is seven days away. Remaining live is correct, but the oracle fails.
+
+ **Fix:** Specify that the simulation advances to the next scheduled event, and measure the bounded settlement steps after required deadlines and operator intervention. Keep elapsed-time assertions separate.
+
+ **Fault family:** simulation oracle validity. This carries R1 P2-3.
+
+5. **P2-3 — Tasks 4, 7 and 8: missing-card and invalid-tax-location outcomes have no decision path.**
+
+ `CardOnFile` can return no card and `TaxQuote` can return `ErrTaxLocation` ([plan:181](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:181)), but neither appears in the closed facts and transition table ([plan:279](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:279)). Try again accepts only declined renewals.
+
+ **Failure:** An automatic renewal reaches charging with no saved card. Preparation cannot produce the required request, but the plan defines neither the owed warning nor an owner-triggered recovery from that state.
+
+ **Fix:** Define both blocked-input outcomes, their durable notices, recovery actions and deadline transitions. A renewal without a PaymentIntent must never attempt cancellation of one. Add missing-card and invalid-location lifecycle tests.
+
+ **Fault family:** complete payment-state transitions.
+
+6. **P2-4 — Tasks 4 and 7: retry tax calculations cannot reach the existing PaymentIntent.**
+
+ The budget promises a tax calculation per attempt ([plan:86](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:86)), but `PrepareConfirmCharge` accepts only intent, card and key ([plan:183](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:183)).
+
+ **Failure:** The customer changes their taxable address between declined attempts. The fresh calculation differs, but confirmation still uses the original amount and calculation. Stripe does not update either automatically: [https://docs.stripe.com/tax/payment-intent/simplified](https://docs.stripe.com/tax/payment-intent/simplified).
+
+ **Fix:** Specify a durable update of both amount and calculation before the next confirmation, with recovery after a lost update response. Test changed tax between attempts.
+
+ **Fault family:** charge amount and tax-calculation consistency.
+
+7. **P2-5 — Tasks 6 and 7: a charge recorded before PaymentIntent adoption stays misclassified.**
+
+ The plan adds matching by `domain_renewals.payment_intent` ([plan:260](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:260)), but creation confirms immediately, before that ID is stored.
+
+ **Failure:** Creation succeeds and its response is lost. The webhook records the charge against its customer before recovery adopts the intent. Matching therefore misses the domain and inferred tax. Subsequent recording skips existing movements ([billingpayments_store.go:176](/home/paulca/amadan.net/carlos/platform-domain-renewals/internal/console/billingpayments_store.go:176)); rematching processes only `account_id = 0`, excluding this already-associated payment ([billingpayments_store.go:220](/home/paulca/amadan.net/carlos/platform-domain-renewals/internal/console/billingpayments_store.go:220)).
+
+ **Fix:** Reconcile payment classification and tax when the renewal adopts its PaymentIntent, including already-account-associated movements and their refunds. Test webhook delivery before adoption.
+
+ **Fault family:** durable payment attribution and accounting.
+
+8. **P2-6 — Task 4: declined creation loses the PaymentIntent needed for immediate retry.**
+
+ The plan promises `ErrPaymentFailed` with an existing retryable intent ([plan:189](/home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:189)). However, the existing error envelope discards `error.payment_intent` ([client.go:213](/home/paulca/amadan.net/carlos/platform-domain-renewals/internal/billingstripe/client.go:213)), and `Send` returns before decoding a result on errors ([prepared.go:202](/home/paulca/amadan.net/carlos/platform-domain-renewals/internal/billingstripe/prepared.go:202)).
+
+ **Failure:** Create-and-confirm returns HTTP 402. The engine knows payment failed but has no intent ID to read, retry or cancel. Discovery is prescribed only for lost creation past the resend window.
+
+ **Fix:** Extend the sanitized error/result contract to preserve and validate the declined intent’s identity, or explicitly discover it immediately. Add an adapter-to-engine test using an actual 402-shaped response.
+
+ **Fault family:** provider outcome and identity preservation.
+
+**NOT READY — P1-1, P1-2.**
\ No newline at end of file
diff --git a/docs/superpowers/reviews/CODEX-FINDINGS-domain-renewals-plan-R3.md b/docs/superpowers/reviews/CODEX-FINDINGS-domain-renewals-plan-R3.md
new file mode 100644
index 000000000..b54faf89d
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-FINDINGS-domain-renewals-plan-R3.md
@@ -0,0 +1,54 @@
+- **R2 P1-1: Resolved.** The send-time guard covers first sends, resends and authentication confirms.
+- **R2 P1-2: Resolved.** Authentication now operates on the renewal’s existing PaymentIntent.
+- **R2 P2-1: Partly resolved.** The selected card is persisted, but the provider interface cannot receive that selection. Carried below.
+- **R2 P2-2: Resolved.** Waiting advances simulated time; the pass bound counts settling actions.
+- **R2 P2-3: Resolved.** Missing-card and tax-location blocks have notices, recovery and termination paths.
+- **R2 P2-4: Resolved.** Tax updates are durable and read back before confirmation.
+- **R2 P2-5: Resolved.** Adoption reclassifies previously recorded payments and refunds transactionally.
+- **R2 P2-6: Resolved for declined creation.** The 402 response preserves the PaymentIntent, with discovery when unavailable.
+
+Reviewed `1c55137a4`. No files changed, tests run or live transactions made. No P1 findings.
+
+1. **P2 — Tasks 4, 6 and 8: the saved renewal card cannot reach the specified selector.**
+
+ Decision 3 prefers the card stored in console.db, but [`CardOnFile(ctx, customer)` accepts only the customer]( /home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:205). The [Stripe provider has no console store]( /home/paulca/amadan.net/carlos/platform-domain-renewals/internal/billingstripe/adapter.go:49), and the proposed interface supplies no method for reading a particular saved card and checking its attachment.
+
+ **Failure:** Change card records B locally, while Stripe still has default A. Calling the specified provider selector still returns A; clearing its cache does not communicate B.
+
+ **Fix:** Pass the preferred payment-method ID into `CardOnFile`, or add a provider read for that ID and perform selection in the console. Verify attachment before using it; test detached-card fallback.
+
+ **Fault family:** payment recovery through the owner’s action; carries R2 P2-1.
+
+2. **P2 — Task 7: preflight holds bypass unpaid deadline termination.**
+
+ The [decision table]( /home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:317) makes `renewPreShort` and `renewPreNoPrice` wait without a deadline transition. The unpaid deadline branches sit under `renewPreOurs`. This also conflicts with [R10b’s termination bound]( /home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:333).
+
+ **Failure:** An automatic renewal remains balance-blocked through `PayUntil`, two days before `RenewBy`. It remains live instead of ending unpaid and releasing the domain for a manual attempt. Even if a later preflight terminates it at `RenewBy`, that exceeds R10b’s one-day allowance.
+
+ **Fix:** Give unpaid deadline termination precedence over preflight holds. Reconcile potentially sent payments first; cancel a known unpaid intent; otherwise finish without cancellation. Test both held states across the deadline and restart.
+
+ **Fault family:** complete payment-state transitions.
+
+3. **P2 — Task 8: Authenticate assumes every successful response contains a redirect.**
+
+ The [operation returns only a bank URL]( /home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:365), and the [handler always redirects to `next_action.redirect_to_url.url`]( /home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:373). Confirmation can instead succeed immediately or return another payment state; Stripe documents these alternatives. [https://docs.stripe.com/payments/3d-secure/authentication-flow](https://docs.stripe.com/payments/3d-secure/authentication-flow)
+
+ **Failure:** Authentication completes without an interactive challenge, or completes before recovery reads the intent. There is no next-action URL, so the prescribed handler cannot return the owner to the renewal’s status correctly.
+
+ **Fix:** Return a structured outcome. Redirect externally only for a validated redirect action; otherwise return to the renewal card and let settlement proceed. Test immediate success, processing, decline and recovery after authentication already completed.
+
+ **Fault family:** complete authentication-result handling.
+
+4. **P2 — Tasks 4 and 7: confirmation errors cannot satisfy the new attempt-metadata check.**
+
+ The [confirm and authenticate signatures]( /home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:199) carry neither renewal reference nor attempt number. Nevertheless, [402 handling requires metadata matching the current request’s renewal and attempt]( /home/paulca/amadan.net/carlos/platform-domain-renewals/docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md:208). Only creation explicitly sets those metadata fields.
+
+ **Failure:** Attempt 1 creates an intent and declines. Attempt 2 confirms the same intent and declines again; its metadata still names attempt 1. The prescribed validation discards the legitimate response, while discovery matching attempt 2 cannot find it.
+
+ **Fix:** Separate creation identity from confirmation-attempt identity. For confirmations, validate the returned ID against the already adopted intent and reconcile by that ID; retain creation metadata for lost-create discovery. Add consecutive-decline and lost-confirm-response tests.
+
+ **Fault family:** provider outcome and identity preservation.
+
+Apply these P2 fixes without reopening the review.
+
+**READY AFTER FIXES**
\ No newline at end of file
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-domain-renewals-plan-R2.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-domain-renewals-plan-R2.md
new file mode 100644
index 000000000..e1100cf45
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-domain-renewals-plan-R2.md
@@ -0,0 +1,41 @@
+# Review brief: domain registration plan 3 (renewals), round 2 of 3
+
+Repo carlos/platform, branch `domain-renewals`, commit 77f0c60c52fb7341ddaeaa3a6285d112e43ed0dd.
+Under review: `docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md`.
+Authorities: `docs/superpowers/specs/2026-11-01-domain-registration-design.md` (R5, §4.2 Renewal, §5.1, §6.1, §6.2, the registrar-side auto-renew rule), the merged plans 1, 2a and transfers-in beside this one, AGENTS.md.
+
+You are an independent reviewer. Read the document, then the code it names, and check every claim against that code.
+
+## Fixed: do not re-argue
+
+- Paul's rulings, carlos/platform discussion 1483: renewals ship first, charged to the account's card on file off-session; the per-domain auto-renew switch is one operation a later service role can call. And (same discussion) caps on a future reseller credential never refuse a renewal. Report only mechanisms that fail to honour them.
+- The plan's stated resolutions of spec ambiguities (its list: the notice price, late arrivals never charged automatically, charge in full per §5.1, "card on file" defined as default else newest card, unpaid registrations left out). Challenge one only with evidence that it is unsafe or does not work.
+
+## What to check
+
+1. Money: exactly one charge per registration and term across retries, crashes and restarts (the Stripe invoice's idempotency, what is persisted before each external call, the order charge, renew, record); refunds on a definite registrar failure; an ambiguous renew reconciled by Lookup, including a domain in grace that Lookup may not read (the plan's Task 3 check).
+2. The decision function: every state and transition, and the randomized test's invariants.
+3. Existing registrations all have auto_renew on by default though no owner saw it: is the plan's flagship gate (a list before anything is notified or charged) sufficient and enforced in code, not only in a runbook.
+4. Off-session charging: SCA, no card, declined card, retries and emails, and what the account owner can do.
+5. Claims about current code (no renew call in the registrar, expiry alert once per domain, Lookup's reach, the payment link gap): verify.
+6. Task order and risk classes (stopping rules 3 and 6): the first merge is visible, and the tasks named for their own review are the right ones.
+
+## Round 2
+
+Earlier rounds: round 1 on 9f5546f1 (brief b9d0b360a), `docs/superpowers/reviews/CODEX-FINDINGS-domain-renewals-plan-R1.md`. The plan's Review history says how each was resolved (the invoice replaced by an off-session PaymentIntent with a Stripe Tax calculation; one automatic attempt per term; restore in grace cut; an activation gate in console.db; renamed types).
+
+First give one line per P1 and P2 from round 1: resolved, partly, or not. Carry every unresolved or partly resolved finding forward at its current severity, then add new findings, especially in what changed: the PaymentIntent and tax hook path and its lost-creation discovery, the activation gate and preview, and `renewal_date` replacing `expiration_date`. The verdict covers everything outstanding.
+
+## Severity
+
+- **P1**: unsafe, would not compile, a test fails, or it would not work. Blocks merge.
+- **P2**: wrong or missing. Fixed without reopening this review.
+- **P3**: clarity or polish. Goes on a follow-up list; never a reason for another round.
+
+A P1 states its failure scenario and the evidence (file:line). Do not raise a P2 to P1 to keep the review open.
+
+## Output
+
+Findings ranked P1, P2, P3. Each gives the task, the problem, the evidence (file:line, verified), the failure scenario, a concrete fix and the invariant or trust boundary it breaks (its fault family). End with exactly one verdict: READY, READY AFTER FIXES, or NOT READY (listing the P1s).
+
+Do not edit files. Do not spawn Anthropic-model reviewers or subagents of your own. Do not run the full test suites.
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-domain-renewals-plan-R3.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-domain-renewals-plan-R3.md
new file mode 100644
index 000000000..4f1492119
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-domain-renewals-plan-R3.md
@@ -0,0 +1,43 @@
+# Review brief: domain registration plan 3 (renewals), round 3 of 3
+
+Repo carlos/platform, branch `domain-renewals`, commit 6d0cf5872b9b2742f3c9bf678cf10128ba2637e5.
+Under review: `docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md`.
+Authorities: `docs/superpowers/specs/2026-11-01-domain-registration-design.md` (R5, §4.2 Renewal, §5.1, §6.1, §6.2, the registrar-side auto-renew rule), the merged plans 1, 2a and transfers-in beside this one, AGENTS.md.
+
+You are an independent reviewer. Read the document, then the code it names, and check every claim against that code.
+
+## Fixed: do not re-argue
+
+- Paul's rulings, carlos/platform discussion 1483: renewals ship first, charged to the account's card on file off-session; the per-domain auto-renew switch is one operation a later service role can call. And (same discussion) caps on a future reseller credential never refuse a renewal. Report only mechanisms that fail to honour them.
+- The plan's stated resolutions of spec ambiguities (its list: the notice price, late arrivals never charged automatically, charge in full per §5.1, "card on file" defined as default else newest card, unpaid registrations left out). Challenge one only with evidence that it is unsafe or does not work.
+
+## What to check
+
+1. Money: exactly one charge per registration and term across retries, crashes and restarts (the Stripe invoice's idempotency, what is persisted before each external call, the order charge, renew, record); refunds on a definite registrar failure; an ambiguous renew reconciled by Lookup, including a domain in grace that Lookup may not read (the plan's Task 3 check).
+2. The decision function: every state and transition, and the randomized test's invariants.
+3. Existing registrations all have auto_renew on by default though no owner saw it: is the plan's flagship gate (a list before anything is notified or charged) sufficient and enforced in code, not only in a runbook.
+4. Off-session charging: SCA, no card, declined card, retries and emails, and what the account owner can do.
+5. Claims about current code (no renew call in the registrar, expiry alert once per domain, Lookup's reach, the payment link gap): verify.
+6. Task order and risk classes (stopping rules 3 and 6): the first merge is visible, and the tasks named for their own review are the right ones.
+
+## Round 3
+
+Earlier rounds: round 1 on 9f5546f1 (`CODEX-FINDINGS-domain-renewals-plan-R1.md`), round 2 on 77f0c60c (`CODEX-FINDINGS-domain-renewals-plan-R2.md`), in docs/superpowers/reviews/. The plan's Review history tables say how each was resolved.
+
+Also fixed, do not re-argue: Paul's ruling of 2026-11-29 (discussion 1483, stopping rule 2 on bounded automatic charging): one deadline guard, `sendRenewalCharge`, is the only path that sends a renewal charge, with a guard test. Judge whether the plan implements it, not the ruling.
+
+First give one line per P1 and P2 from round 2: resolved, partly, or not. Carry every unresolved finding forward, then add new findings, especially in what changed: the guard and its AST guard test, the on-session Authenticate flow (redirect, return page, cancellation at the deadline), the renewal card record, the blocked state, tax updates before confirm, refiling on adoption, the 402 decline's intent. This is the last round in the budget: a NOT READY must say whether its P1s share one cause, and whether refusing the case up front or cutting the feature would remove them.
+
+## Severity
+
+- **P1**: unsafe, would not compile, a test fails, or it would not work. Blocks merge.
+- **P2**: wrong or missing. Fixed without reopening this review.
+- **P3**: clarity or polish. Goes on a follow-up list; never a reason for another round.
+
+A P1 states its failure scenario and the evidence (file:line). Do not raise a P2 to P1 to keep the review open.
+
+## Output
+
+Findings ranked P1, P2, P3. Each gives the task, the problem, the evidence (file:line, verified), the failure scenario, a concrete fix and the invariant or trust boundary it breaks (its fault family). End with exactly one verdict: READY, READY AFTER FIXES, or NOT READY (listing the P1s).
+
+Do not edit files. Do not spawn Anthropic-model reviewers or subagents of your own. Do not run the full test suites.
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-domain-renewals-plan.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-domain-renewals-plan.md
new file mode 100644
index 000000000..3cb2f3b81
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-domain-renewals-plan.md
@@ -0,0 +1,35 @@
+# Review brief: domain registration plan 3 (renewals), round 1 of 3
+
+Repo carlos/platform, branch `domain-renewals`, commit 9f5546f142c7a9fa3c2482623457fabd1d499584.
+Under review: `docs/superpowers/plans/2026-11-28-domain-registration-3-renewals.md`.
+Authorities: `docs/superpowers/specs/2026-11-01-domain-registration-design.md` (R5, §4.2 Renewal, §5.1, §6.1, §6.2, the registrar-side auto-renew rule), the merged plans 1, 2a and transfers-in beside this one, AGENTS.md.
+
+You are an independent reviewer. Read the document, then the code it names, and check every claim against that code.
+
+## Fixed: do not re-argue
+
+- Paul's rulings, carlos/platform discussion 1483: renewals ship first, charged to the account's card on file off-session; the per-domain auto-renew switch is one operation a later service role can call. And (same discussion) caps on a future reseller credential never refuse a renewal. Report only mechanisms that fail to honour them.
+- The plan's stated resolutions of spec ambiguities (its list: the notice price, late arrivals never charged automatically, charge in full per §5.1, "card on file" defined as default else newest card, unpaid registrations left out). Challenge one only with evidence that it is unsafe or does not work.
+
+## What to check
+
+1. Money: exactly one charge per registration and term across retries, crashes and restarts (the Stripe invoice's idempotency, what is persisted before each external call, the order charge, renew, record); refunds on a definite registrar failure; an ambiguous renew reconciled by Lookup, including a domain in grace that Lookup may not read (the plan's Task 3 check).
+2. The decision function: every state and transition, and the randomized test's invariants.
+3. Existing registrations all have auto_renew on by default though no owner saw it: is the plan's flagship gate (a list before anything is notified or charged) sufficient and enforced in code, not only in a runbook.
+4. Off-session charging: SCA, no card, declined card, retries and emails, and what the account owner can do.
+5. Claims about current code (no renew call in the registrar, expiry alert once per domain, Lookup's reach, the payment link gap): verify.
+6. Task order and risk classes (stopping rules 3 and 6): the first merge is visible, and the tasks named for their own review are the right ones.
+
+## Severity
+
+- **P1**: unsafe, would not compile, a test fails, or it would not work. Blocks merge.
+- **P2**: wrong or missing. Fixed without reopening this review.
+- **P3**: clarity or polish. Goes on a follow-up list; never a reason for another round.
+
+A P1 states its failure scenario and the evidence (file:line). Do not raise a P2 to P1 to keep the review open.
+
+## Output
+
+Findings ranked P1, P2, P3. Each gives the task, the problem, the evidence (file:line, verified), the failure scenario, a concrete fix and the invariant or trust boundary it breaks (its fault family). End with exactly one verdict: READY, READY AFTER FIXES, or NOT READY (listing the P1s).
+
+Do not edit files. Do not spawn Anthropic-model reviewers or subagents of your own. Do not run the full test suites.