carlos / platform Public

Box reports name each route's app; digests shows it for no-app lines

#1634, branch 1. Cut to read-only evidence by 8a3d302 after review
round 2 (Astra invoked the stopping rule): no delete door.

- Box reports gain route_channels: the account, app and channel of every
  non-platform route, managed or not (named-unit and unit-backed hand
  routes included), once each and with no host, plus
  route_channels_reported. Built in CollectBox from the routes the report
  already lists; no new reads.
- carlos channels digests: for each app marked "no app on this console"
  (known accounts), which boxes last reported running it, on which
  channel, how old each report is, or which reports cannot say. Evidence
  only; nothing acts on it. Folded once per request.

The operator delete is parked on #1634: box reports are snapshots and
cannot prove absence at the moment of a delete. Its prerequisite is a
retiring marker boxes honour and acknowledge.

Reviews: Astra and Fable, round 3 READY. Census: RouteChannel (new) and
CollectBox, envelopes ., internal/release, internal/status, approved by
both, recorded on #280. Copy by Luna under delegation.

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

Squashed from canary-retire-orphan-1634 into main.
claude agent, operated by paul@keymail.dev 38107c44647dc1d93716fb22a7dffd8bf1ce2c5a parent 2218edf
16 files changed, +596 −15
  • canary_retire_test.go +71 −0
  • channels_digests.go +85 −0
  • docs/site/cli.md +7 −0
  • docs/superpowers/notes/census-proposal-canary-retire-orphan-1634.md +16 −0
  • internal/console/apidigests.go +55 −4
  • internal/console/digests_noapp_test.go +111 −0
  • internal/console/remoteinstances.go +80 −4
  • internal/console/remoteinstances_round5_test.go +4 −2
  • internal/host/egress_nopolicy_linux_test.go +25 −0
  • internal/provision/testdata/plan14-root-reads-canary-retire-orphan-1634.tsv +10 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/release/adopt.go +4 −0
  • internal/status/contract_test.go +5 −1
  • internal/status/snapshot.go +58 −3
  • internal/status/snapshot_test.go +1 −1
  • internal/status/status_test.go +63 −0

CI passed — run details

CI log
=== gate ===
go: downloading go1.26.10 (linux/arm64)
go version go1.26.10 linux/arm64
opentofu: arm64, tofu 1.13.9, aws 6.73.0, archive 2.8.1
  tofu: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/tofu_1.13.9_linux_arm64.tar.gz
  tofu: downloaded, digest verified
  aws: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-aws_6.73.0_linux_arm64.zip
  aws: downloaded, digest verified
  archive: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-archive_2.8.1_linux_arm64.zip
  archive: downloaded, digest verified
  installed in /tmp/carlos-opentofu-PEwimO
.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/iam v1.58.2
go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0
go: downloading github.com/aws/smithy-go v1.28.1
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading golang.org/x/net v0.62.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/config v1.32.6
go: downloading github.com/aws/aws-sdk-go-v2/service/sns v1.43.0
go: downloading golang.org/x/crypto v0.58.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.324.0
go: downloading github.com/aws/aws-sdk-go-v2/service/acm v1.45.0
go: downloading github.com/prometheus/client_golang v1.17.0
go: downloading github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi v1.37.0
go: downloading github.com/aws/aws-sdk-go-v2/service/route53 v1.64.1
go: downloading golang.org/x/sys v0.49.0
go: downloading github.com/pion/stun/v3 v3.1.5
go: downloading github.com/pion/logging v0.2.4
go: downloading github.com/pion/turn/v4 v4.1.4
go: downloading github.com/aws/aws-sdk-go-v2/service/sesv2 v1.66.6
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/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/klauspost/compress v1.20.2
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.3.0
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 golang.org/x/text v0.43.0
go: downloading github.com/matttproud/golang_protobuf_extensions/v2 v2.0.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 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/mathutil v1.7.1
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
=== launchctx (4 s, from +0 s)
ok  	amadan.net/carlos/platform.git/launchctx	0.015s
?   	amadan.net/carlos/platform.git/launchctx/controlname	[no test files]
?   	amadan.net/carlos/platform.git/launchctx/wireid	[no test files]
=== vet (180 s, from +0 s)
go: downloading github.com/klauspost/compress v1.20.2
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/mathutil v1.7.1
=== vet-tags (192 s, from +0 s)
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading modernc.org/memory v1.11.0
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
=== gofmt (1 s, from +0 s)
gofmt -l .: clean
=== rest (384 s, from +15 s)
ok  	github.com/carlosframework/platform/cmd/carlos-media	125.984s
?   	github.com/carlosframework/platform/cmd/changelog	[no test files]
ok  	github.com/carlosframework/platform/cmd/console	210.922s
ok  	github.com/carlosframework/platform/cmd/mediaimage	41.858s
ok  	github.com/carlosframework/platform/cmd/moveprobe	16.762s
ok  	github.com/carlosframework/platform/cmd/pricebook-export	0.078s
ok  	github.com/carlosframework/platform/cmd/rootfswitness	0.117s
ok  	github.com/carlosframework/platform/cmd/runsc-assets	0.124s
ok  	github.com/carlosframework/platform/cmd/zddprobe	1.018s
ok  	github.com/carlosframework/platform/internal/agentsock	0.071s
ok  	github.com/carlosframework/platform/internal/alerting	0.022s
ok  	github.com/carlosframework/platform/internal/analytics	0.375s
ok  	github.com/carlosframework/platform/internal/appconfig	43.330s
ok  	github.com/carlosframework/platform/internal/apperr	0.583s
ok  	github.com/carlosframework/platform/internal/applog	4.665s
ok  	github.com/carlosframework/platform/internal/apppolicy	3.537s
ok  	github.com/carlosframework/platform/internal/assetcache	0.797s
ok  	github.com/carlosframework/platform/internal/awsinv	0.015s
ok  	github.com/carlosframework/platform/internal/awsmanaged	11.783s
ok  	github.com/carlosframework/platform/internal/awsregiongroup	0.251s
ok  	github.com/carlosframework/platform/internal/awsterminations	0.025s
ok  	github.com/carlosframework/platform/internal/backupswords	0.006s
ok  	github.com/carlosframework/platform/internal/billing	0.065s
ok  	github.com/carlosframework/platform/internal/billing/billingtest	0.064s
ok  	github.com/carlosframework/platform/internal/billingstripe	1.995s
ok  	github.com/carlosframework/platform/internal/boxchoice	0.021s
ok  	github.com/carlosframework/platform/internal/boxid	3.366s
?   	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.006s
ok  	github.com/carlosframework/platform/internal/boxself	0.196s
ok  	github.com/carlosframework/platform/internal/boxvolumes	0.058s
ok  	github.com/carlosframework/platform/internal/caps	4.782s
ok  	github.com/carlosframework/platform/internal/certwarm	0.013s
ok  	github.com/carlosframework/platform/internal/cgroup	1.476s
ok  	github.com/carlosframework/platform/internal/changelog	6.238s
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.008s
ok  	github.com/carlosframework/platform/internal/codehealth	18.596s
ok  	github.com/carlosframework/platform/internal/compute	0.014s
ok  	github.com/carlosframework/platform/internal/consolefleet	0.005s
?   	github.com/carlosframework/platform/internal/controlname	[no test files]
?   	github.com/carlosframework/platform/internal/controlsock	[no test files]
ok  	github.com/carlosframework/platform/internal/dbdoor	10.224s
ok  	github.com/carlosframework/platform/internal/dbdoor/dbdoortest	0.048s
ok  	github.com/carlosframework/platform/internal/dbquery	0.014s
ok  	github.com/carlosframework/platform/internal/dbreads	3.232s
?   	github.com/carlosframework/platform/internal/dbreads/dbreadstest	[no test files]
ok  	github.com/carlosframework/platform/internal/dbverify	0.053s
ok  	github.com/carlosframework/platform/internal/demo	0.015s
ok  	github.com/carlosframework/platform/internal/demobuild	5.602s
ok  	github.com/carlosframework/platform/internal/democlaim	0.322s
ok  	github.com/carlosframework/platform/internal/devbox	19.405s
ok  	github.com/carlosframework/platform/internal/dnsrec	0.013s
ok  	github.com/carlosframework/platform/internal/docsite	0.182s
ok  	github.com/carlosframework/platform/internal/domainreg	0.054s
ok  	github.com/carlosframework/platform/internal/domains	72.742s
ok  	github.com/carlosframework/platform/internal/doorkey	0.031s
ok  	github.com/carlosframework/platform/internal/economics	0.021s
ok  	github.com/carlosframework/platform/internal/edgefence	0.177s
ok  	github.com/carlosframework/platform/internal/edgeguard	0.424s
?   	github.com/carlosframework/platform/internal/edgeproof	[no test files]
ok  	github.com/carlosframework/platform/internal/edgesfile	0.080s
ok  	github.com/carlosframework/platform/internal/egressaddr	0.017s
ok  	github.com/carlosframework/platform/internal/execsandbox	105.753s
ok  	github.com/carlosframework/platform/internal/fileacl	0.006s
ok  	github.com/carlosframework/platform/internal/fleetapi	2.016s
ok  	github.com/carlosframework/platform/internal/fleetstore	0.006s
ok  	github.com/carlosframework/platform/internal/fxrate	0.023s
ok  	github.com/carlosframework/platform/internal/gate	5.706s
ok  	github.com/carlosframework/platform/internal/genselect	0.101s
ok  	github.com/carlosframework/platform/internal/geo	0.069s
ok  	github.com/carlosframework/platform/internal/geoip	0.246s
ok  	github.com/carlosframework/platform/internal/groupadmission	0.010s
ok  	github.com/carlosframework/platform/internal/grouprollaws	17.004s
ok  	github.com/carlosframework/platform/internal/hadeparture	0.018s
ok  	github.com/carlosframework/platform/internal/hafresh	0.028s
ok  	github.com/carlosframework/platform/internal/hairpin	0.218s
ok  	github.com/carlosframework/platform/internal/historyreadback	1.129s
ok  	github.com/carlosframework/platform/internal/hostactors	26.361s
ok  	github.com/carlosframework/platform/internal/hostbox	24.074s
ok  	github.com/carlosframework/platform/internal/hostclaim	2.977s
ok  	github.com/carlosframework/platform/internal/hostenv	0.062s
ok  	github.com/carlosframework/platform/internal/hostevidence	0.047s
ok  	github.com/carlosframework/platform/internal/hostexec	26.222s
ok  	github.com/carlosframework/platform/internal/hostfence	0.125s
ok  	github.com/carlosframework/platform/internal/hostfiles	30.845s
ok  	github.com/carlosframework/platform/internal/hostfloor	0.667s
ok  	github.com/carlosframework/platform/internal/hostguard	1.750s
ok  	github.com/carlosframework/platform/internal/hostops	34.651s
?   	github.com/carlosframework/platform/internal/hostops/fencerelease	[no test files]
ok  	github.com/carlosframework/platform/internal/hostops/internal/fencerelease	0.013s
ok  	github.com/carlosframework/platform/internal/hostquarantine	0.018s
ok  	github.com/carlosframework/platform/internal/hostrelocate	2.307s
ok  	github.com/carlosframework/platform/internal/hostresolve	0.643s
ok  	github.com/carlosframework/platform/internal/hostwrite	0.021s
ok  	github.com/carlosframework/platform/internal/identity	0.012s
ok  	github.com/carlosframework/platform/internal/infraview	0.011s
ok  	github.com/carlosframework/platform/internal/ingresshealth	0.015s
ok  	github.com/carlosframework/platform/internal/ingresshealth/awstg	0.015s
ok  	github.com/carlosframework/platform/internal/instancectl	67.270s
ok  	github.com/carlosframework/platform/internal/instanceexec	10.011s
ok  	github.com/carlosframework/platform/internal/instancefs	17.774s
ok  	github.com/carlosframework/platform/internal/instancekey	0.031s
ok  	github.com/carlosframework/platform/internal/instanceupdates	0.023s
ok  	github.com/carlosframework/platform/internal/interactive	0.709s
ok  	github.com/carlosframework/platform/internal/launchd	0.009s
ok  	github.com/carlosframework/platform/internal/layout	23.847s
ok  	github.com/carlosframework/platform/internal/layout/pubclass	103.194s
ok  	github.com/carlosframework/platform/internal/lbhealth	0.018s
ok  	github.com/carlosframework/platform/internal/lease	146.898s
ok  	github.com/carlosframework/platform/internal/lease/leasetest	1.506s
ok  	github.com/carlosframework/platform/internal/lease/locktest	0.023s
ok  	github.com/carlosframework/platform/internal/ledger	0.111s
ok  	github.com/carlosframework/platform/internal/mail	2.996s
ok  	github.com/carlosframework/platform/internal/mailer	0.949s
ok  	github.com/carlosframework/platform/internal/mailsubmit	1.592s
ok  	github.com/carlosframework/platform/internal/mailwire	0.009s
ok  	github.com/carlosframework/platform/internal/maintenance	0.308s
ok  	github.com/carlosframework/platform/internal/maintenanceexec	8.863s
ok  	github.com/carlosframework/platform/internal/maintenanceguard	0.376s
ok  	github.com/carlosframework/platform/internal/managedboot	3.723s
?   	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.915s
ok  	github.com/carlosframework/platform/internal/media/mediatest	0.009s
ok  	github.com/carlosframework/platform/internal/mediaaws	62.840s
ok  	github.com/carlosframework/platform/internal/mediahandler	43.474s
ok  	github.com/carlosframework/platform/internal/mediajobs	0.867s
ok  	github.com/carlosframework/platform/internal/medialocal	9.860s
ok  	github.com/carlosframework/platform/internal/metrics	0.128s
ok  	github.com/carlosframework/platform/internal/minorunits	0.010s
ok  	github.com/carlosframework/platform/internal/moves	53.284s
ok  	github.com/carlosframework/platform/internal/moves/archive	3.372s
ok  	github.com/carlosframework/platform/internal/moves/offlinerun	0.084s
ok  	github.com/carlosframework/platform/internal/namedunits	0.039s
ok  	github.com/carlosframework/platform/internal/objstore	18.531s
ok  	github.com/carlosframework/platform/internal/ops	15.666s
ok  	github.com/carlosframework/platform/internal/pageindex	3.985s
ok  	github.com/carlosframework/platform/internal/parity	0.140s
?   	github.com/carlosframework/platform/internal/parity/cmd/parity-doc	[no test files]
ok  	github.com/carlosframework/platform/internal/park	0.593s
ok  	github.com/carlosframework/platform/internal/perf	0.235s
ok  	github.com/carlosframework/platform/internal/plans	0.205s
ok  	github.com/carlosframework/platform/internal/privatefile	0.031s
ok  	github.com/carlosframework/platform/internal/provision	234.148s
ok  	github.com/carlosframework/platform/internal/proxyproto	0.972s
ok  	github.com/carlosframework/platform/internal/publicrelease	0.059s
ok  	github.com/carlosframework/platform/internal/ratelimit	0.429s
ok  	github.com/carlosframework/platform/internal/regionlabel	0.055s
ok  	github.com/carlosframework/platform/internal/regionname	0.056s
ok  	github.com/carlosframework/platform/internal/registrar	0.023s
ok  	github.com/carlosframework/platform/internal/registrar/openprovider	0.917s
?   	github.com/carlosframework/platform/internal/registrar/registrartest	[no test files]
ok  	github.com/carlosframework/platform/internal/registry	82.466s
ok  	github.com/carlosframework/platform/internal/relay	7.561s
ok  	github.com/carlosframework/platform/internal/release	124.148s
?   	github.com/carlosframework/platform/internal/release/requestwitness	[no test files]
ok  	github.com/carlosframework/platform/internal/replicagen	0.031s
ok  	github.com/carlosframework/platform/internal/replicas	0.131s
ok  	github.com/carlosframework/platform/internal/reqrec	7.523s
ok  	github.com/carlosframework/platform/internal/rollout	11.476s
ok  	github.com/carlosframework/platform/internal/rolloutwords	0.040s
ok  	github.com/carlosframework/platform/internal/rootaws	99.798s
ok  	github.com/carlosframework/platform/internal/rootfsimage	1.138s
ok  	github.com/carlosframework/platform/internal/rootparticipation	0.101s
ok  	github.com/carlosframework/platform/internal/rootstate	0.064s
ok  	github.com/carlosframework/platform/internal/runs	0.706s
ok  	github.com/carlosframework/platform/internal/s3compat	0.046s
ok  	github.com/carlosframework/platform/internal/s3fake	0.974s
ok  	github.com/carlosframework/platform/internal/s3meter	0.468s
ok  	github.com/carlosframework/platform/internal/safefile	0.014s
ok  	github.com/carlosframework/platform/internal/schedule	21.849s
ok  	github.com/carlosframework/platform/internal/seeds	0.066s
ok  	github.com/carlosframework/platform/internal/share	0.012s
ok  	github.com/carlosframework/platform/internal/sim/litestreamfacts	4.184s
ok  	github.com/carlosframework/platform/internal/sim/mediajobs	50.692s
ok  	github.com/carlosframework/platform/internal/sim/regionha	22.913s
ok  	github.com/carlosframework/platform/internal/status	0.459s
ok  	github.com/carlosframework/platform/internal/steering	0.253s
ok  	github.com/carlosframework/platform/internal/stopevidence	0.323s
ok  	github.com/carlosframework/platform/internal/storecfg	0.365s
ok  	github.com/carlosframework/platform/internal/svcrole	0.008s
ok  	github.com/carlosframework/platform/internal/systemd	6.058s
?   	github.com/carlosframework/platform/internal/systemdshow	[no test files]
ok  	github.com/carlosframework/platform/internal/team	2.961s
ok  	github.com/carlosframework/platform/internal/teamcontract	0.113s
ok  	github.com/carlosframework/platform/internal/telemetry	0.016s
ok  	github.com/carlosframework/platform/internal/termfence	4.764s
ok  	github.com/carlosframework/platform/internal/timerspec	0.041s
ok  	github.com/carlosframework/platform/internal/tsidentity	4.239s
ok  	github.com/carlosframework/platform/internal/tunnelclient	0.423s
ok  	github.com/carlosframework/platform/internal/unixdial	0.015s
ok  	github.com/carlosframework/platform/internal/updatewords	0.035s
ok  	github.com/carlosframework/platform/internal/upstreamguard	0.015s
?   	github.com/carlosframework/platform/internal/upstreamguard/guardtest	[no test files]
ok  	github.com/carlosframework/platform/internal/usage	0.177s
ok  	github.com/carlosframework/platform/internal/version	0.006s
ok  	github.com/carlosframework/platform/internal/vet	3.008s
ok  	github.com/carlosframework/platform/internal/zonehost	0.024s
ok  	github.com/carlosframework/platform/internal/zonehost/route53zones	0.111s
?   	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.019s
ok  	github.com/carlosframework/platform/scripts/pathmapcheck	0.088s
ok  	github.com/carlosframework/platform/scripts/region-ha-g2/fixture	5.193s
ok  	github.com/carlosframework/platform/scripts/stateless-replicas-drill	1.202s
ok  	github.com/carlosframework/platform/scripts/witness-pointer	0.024s
=== cutover-witness (162 s, from +15 s)
ok  	github.com/carlosframework/platform	2.534s
=== internal_grouproll@0 (270 s, from +74 s)
ok  	github.com/carlosframework/platform/internal/grouproll	269.191s
=== internal_grouproll@1 (280 s, from +74 s)
ok  	github.com/carlosframework/platform/internal/grouproll	278.796s
=== internal_activator@0 (149 s, from +146 s)
ok  	github.com/carlosframework/platform/internal/activator	144.947s
=== internal_activator@1 (137 s, from +146 s)
ok  	github.com/carlosframework/platform/internal/activator	133.609s
=== internal_activator@2 (141 s, from +146 s)
ok  	github.com/carlosframework/platform/internal/activator	136.800s
=== internal_activator@3 (160 s, from +146 s)
ok  	github.com/carlosframework/platform/internal/activator	155.712s
=== internal_edge@0 (248 s, from +175 s)
ok  	github.com/carlosframework/platform/internal/edge	238.329s
=== internal_edge@1 (132 s, from +175 s)
ok  	github.com/carlosframework/platform/internal/edge	123.286s
=== internal_edge@2 (164 s, from +175 s)
ok  	github.com/carlosframework/platform/internal/edge	154.446s
=== internal_edge@3 (162 s, from +175 s)
ok  	github.com/carlosframework/platform/internal/edge	155.755s
=== root@0 (134 s, from +178 s)
ok  	github.com/carlosframework/platform	123.781s
=== root@1 (109 s, from +178 s)
ok  	github.com/carlosframework/platform	98.905s
=== root@2 (123 s, from +178 s)
ok  	github.com/carlosframework/platform	112.191s
=== root@3 (109 s, from +178 s)
ok  	github.com/carlosframework/platform	96.822s
=== root@4 (102 s, from +178 s)
ok  	github.com/carlosframework/platform	90.778s
=== internal_host@0 (168 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	163.503s
=== internal_host@1 (202 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	196.924s
=== internal_host@2 (228 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	223.047s
=== internal_host@3 (165 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	159.937s
=== internal_host@4 (299 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	294.176s
=== internal_host@5 (110 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	104.965s
=== internal_console@0 (171 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	164.597s
=== internal_console@1 (210 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	202.319s
=== internal_console@2 (214 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	207.475s
=== internal_console@3 (256 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	248.772s
=== internal_console@4 (200 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	194.473s
=== internal_console@5 (216 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	209.625s
=== internal_console@6 (241 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	233.508s
=== internal_console@7 (253 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	245.512s
=== internal_console@8 (226 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	219.345s
=== internal_console@9 (244 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	237.082s
=== internal_console@10 (241 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	234.909s
=== internal_console@11 (246 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	238.963s
=== internal_console@12 (351 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	342.979s
=== internal_console@13 (225 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	218.073s
=== internal_console@14 (231 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	223.372s
=== internal_console@15 (250 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	242.726s
=== internal_console@16 (222 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	214.667s
=== internal_console@17 (258 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	250.888s
=== internal_console@18 (217 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	209.289s
=== internal_console@19 (245 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	237.235s
=== internal_console@20 (240 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	233.129s
=== internal_console@21 (224 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	216.565s
=== internal_console@22 (229 s, from +232 s)
ok  	github.com/carlosframework/platform/internal/console	223.645s
=== internal_console@23 (246 s, from +232 s)
ok  	github.com/carlosframework/platform/internal/console	240.005s
=== lists: internal_console 231 s, internal_edge 174 s, internal_activator 145 s, internal_host 222 s, root 177 s, internal_grouproll 73 s
=== cpu: the gate used 13179 cpu-seconds in 582 s, about 22.6 of 32 cores; the machine as a whole was 75% busy
=== opentofu ===
opentofu: 40 test files in 11 suites, OpenTofu v1.13.9
  initialised in 14 s
  ok      20 s  infra/modules/box-fence-writer/tests/writer.tftest.hcl  Success! 1 passed, 0 failed.
  ok      23 s  infra/modules/deployment-buckets/tests/console_floors.tftest.hcl  Success! 1 passed, 0 failed.
  ok      30 s  infra/modules/deployment-buckets/tests/data_lifecycle.tftest.hcl  Success! 3 passed, 0 failed.
  ok      20 s  infra/modules/deployment-buckets/tests/db_reads.tftest.hcl  Success! 1 passed, 0 failed.
  ok      23 s  infra/modules/deployment-buckets/tests/evidence.tftest.hcl  Success! 1 passed, 0 failed.
  ok      34 s  infra/modules/deployment-buckets/tests/fence_writers.tftest.hcl  Success! 3 passed, 0 failed.
  ok      28 s  infra/modules/deployment-buckets/tests/media_results.tftest.hcl  Success! 2 passed, 0 failed.
  ok      32 s  infra/modules/deployment-buckets/tests/published_floors.tftest.hcl  Success! 3 passed, 0 failed.
  ok      79 s  infra/modules/media-engine/tests/media_engine.tftest.hcl  Success! 24 passed, 0 failed.
  ok      26 s  infra/modules/pdf-host/tests/computed.tftest.hcl  Success! 2 passed, 0 failed.
  ok      53 s  infra/modules/pdf-host/tests/pdf_host.tftest.hcl  Success! 24 passed, 0 failed.
  ok      38 s  infra/modules/region-group-operator-document/tests/document.tftest.hcl  Success! 12 passed, 0 failed.
  ok      15 s  infra/modules/region-host/ingress/tests/fixed-targets/tests/targets.tftest.hcl  Success! 2 passed, 0 failed.
  ok      68 s  infra/modules/region-host/ingress/tests/group_ingress.tftest.hcl  Success! 30 passed, 0 failed.
  ok      42 s  infra/modules/region-host/tests/alert_publish.tftest.hcl  Success! 18 passed, 0 failed.
  ok      40 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      14 s  infra/modules/region-host/tests/console_mail.tftest.hcl  Success! 4 passed, 0 failed.
  ok       5 s  infra/modules/region-host/tests/fixed_state_unchanged.tftest.hcl  Success! 1 passed, 0 failed.
  ok      72 s  infra/modules/region-host/tests/group.tftest.hcl  Success! 32 passed, 0 failed.
  ok      10 s  infra/modules/region-host/tests/group_alarms.tftest.hcl  Success! 4 passed, 0 failed.
  ok      10 s  infra/modules/region-host/tests/group_iam.tftest.hcl  Success! 4 passed, 0 failed.
  ok       6 s  infra/modules/region-host/tests/group_isolation.tftest.hcl  Success! 1 passed, 0 failed.
  ok      37 s  infra/modules/region-host/tests/group_operator.tftest.hcl  Success! 13 passed, 0 failed.
  ok       9 s  infra/modules/region-host/tests/group_user_data.tftest.hcl  Success! 3 passed, 0 failed.
  ok      33 s  infra/modules/region-host/tests/health_alarms.tftest.hcl  Success! 10 passed, 0 failed.
  ok      16 s  infra/modules/region-host/tests/ingress_drain_read.tftest.hcl  Success! 4 passed, 0 failed.
  ok       7 s  infra/modules/region-host/tests/instance_metadata.tftest.hcl  Success! 1 passed, 0 failed.
  ok      24 s  infra/modules/region-host/tests/mailer.tftest.hcl  Success! 6 passed, 0 failed.
  ok      15 s  infra/modules/region-host/tests/mailer_group.tftest.hcl  Success! 2 passed, 0 failed.
  ok      13 s  infra/modules/region-host/tests/managed_fleets/group_refusal.tftest.hcl  Success! 2 passed, 0 failed.
  ok     102 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      14 s  infra/modules/region-host/tests/store_scanning.tftest.hcl  Success! 4 passed, 0 failed.
  ok      28 s  infra/modules/region-host/tests/store_versioning.tftest.hcl  Success! 11 passed, 0 failed.
  ok      13 s  infra/modules/region-host/tests/store_write_credentials.tftest.hcl  Success! 4 passed, 0 failed.
  ok      16 s  infra/modules/region-host/tests/user_data_ignored.tftest.hcl  Success! 3 passed, 0 failed.
  ok      11 s  infra/modules/region-remote-host/tests/data_lifecycle.tftest.hcl  Success! 3 passed, 0 failed.
  ok      15 s  infra/modules/region-remote-host/tests/no_deployment_bucket.tftest.hcl  Success! 5 passed, 0 failed.
  ok      29 s  infra/modules/scanner-host/tests/scanner_host.tftest.hcl  Success! 14 passed, 0 failed.
opentofu: 40 files in 214 s
opentofu: PASS
=== cross ===
--- shard 0 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling darwin/arm64
--- shard 1 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling darwin/amd64
--- shard 2 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling linux/arm64
linux/arm64 carlos binary: 66977954 bytes (ceiling 70000000)
--- shard 3 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling windows/amd64
--- shard 4 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling windows/arm64
=== minio-contract ===
go version go1.26.10 linux/arm64
minio contract: arm64, minio RELEASE.2025-09-07T16-13-09Z, mc RELEASE.2025-08-13T08-35-41Z
  minio: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/minio/minio.linux-arm64.RELEASE.2025-09-07T16-13-09Z
  minio: downloaded, digest verified
  mc: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/minio/mc.linux-arm64.RELEASE.2025-08-13T08-35-41Z
  mc: downloaded, digest verified
  minio healthy on 127.0.0.1:21882
Added `local` successfully.
Bucket created successfully `local/contract-bucket`.
Bucket created successfully `local/denied-bucket`.
Created policy `contract-only` successfully.
Added user `scopeduser` successfully.
Attached Policies: [contract-only]
To User: scopeduser
  buckets and scoped user ready
=== RUN   TestDeliveredContractMinio
=== RUN   TestDeliveredContractMinio/put
=== RUN   TestDeliveredContractMinio/get_round-trips_the_body
=== RUN   TestDeliveredContractMinio/list_shows_the_key
=== RUN   TestDeliveredContractMinio/head_and_list_agree_on_the_version
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_its_own_object
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/not_by_PutObjectTagging
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/and_not_by_x-amz-tagging_on_upload
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CreateMultipartUpload
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CopyObject_with_a_REPLACE_tagging_directive
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/but_multipart_itself_is_allowed
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_copy_itself_is_allowed
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/a_POST-policy_forged_tag_with_a_matching_version_is_still_not_a_verdict
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_an_ordinary_tagged-with-something-else_upload_is_allowed
=== RUN   TestDeliveredContractMinio/delete_removes_it
=== RUN   TestDeliveredContractMinio/cross-bucket_denial
--- PASS: TestDeliveredContractMinio (0.03s)
    --- PASS: TestDeliveredContractMinio/put (0.00s)
    --- PASS: TestDeliveredContractMinio/get_round-trips_the_body (0.00s)
    --- PASS: TestDeliveredContractMinio/list_shows_the_key (0.00s)
    --- PASS: TestDeliveredContractMinio/head_and_list_agree_on_the_version (0.00s)
    --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/not_by_PutObjectTagging (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/and_not_by_x-amz-tagging_on_upload (0.00s)
    --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route (0.01s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CreateMultipartUpload (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CopyObject_with_a_REPLACE_tagging_directive (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/but_multipart_itself_is_allowed (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_copy_itself_is_allowed (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/a_POST-policy_forged_tag_with_a_matching_version_is_still_not_a_verdict (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_an_ordinary_tagged-with-something-else_upload_is_allowed (0.00s)
    --- PASS: TestDeliveredContractMinio/delete_removes_it (0.00s)
    --- PASS: TestDeliveredContractMinio/cross-bucket_denial (0.00s)
PASS
ok  	github.com/carlosframework/platform/internal/objstore	0.037s
=== RUN   TestT4StorageProbeMinio
2026/12/02 22:57:12 moves: T4: STORE: list: operation error S3: ListObjectsV2, https response error StatusCode: 403, RequestID: 18ED91E37972D31D, HostID: d108f83472157da736be76e37e50ab5f2df6f377d7e10e906634f5d055042b5a, 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.047s
=== RUN   TestS3StoreMinioContract
=== RUN   TestS3StoreMinioContract/conditional_get_and_etag_listing
=== RUN   TestS3StoreMinioContract/bump_through_every_mutation_path
--- PASS: TestS3StoreMinioContract (0.03s)
    --- PASS: TestS3StoreMinioContract/conditional_get_and_etag_listing (0.01s)
    --- PASS: TestS3StoreMinioContract/bump_through_every_mutation_path (0.02s)
PASS
ok  	github.com/carlosframework/platform/internal/release	0.042s
Bucket created successfully `local/analytics-versions`.
local/analytics-versions versioning is enabled
Created policy `analytics-versions` successfully.
Added user `analyticsversions` successfully.
Attached Policies: [analytics-versions]
To User: analyticsversions
=== RUN   TestS3StoreMinioVersions
--- PASS: TestS3StoreMinioVersions (0.03s)
PASS
ok  	github.com/carlosframework/platform/internal/release	0.040s
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.019s
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:_put_to_another_bucket
=== RUN   TestWriteCredentialContractMinio/refused:_copy_from_the_store
=== RUN   TestWriteCredentialContractMinio/refused:_bucket_settings
=== RUN   TestWriteCredentialContractMinio/refused:_head
=== RUN   TestWriteCredentialContractMinio/refused:_list
=== RUN   TestWriteCredentialContractMinio/refused:_list_uploads
=== RUN   TestWriteCredentialContractMinio/refused:_tag
=== RUN   TestWriteCredentialContractMinio/refused:_put_tagged
=== RUN   TestWriteCredentialContractMinio/refused:_put_with_a_platform_tag
=== RUN   TestWriteCredentialContractMinio/refused:_put_outside_the_prefix
=== RUN   TestWriteCredentialContractMinio/refused:_put_beside_the_prefix
=== RUN   TestWriteCredentialContractMinio/refused:_read_under_the_prefix
=== RUN   TestWriteCredentialContractMinio/refused:_read_elsewhere
--- 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:_put_to_another_bucket (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_copy_from_the_store (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_bucket_settings (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_head (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_list (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_list_uploads (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_tag (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_put_tagged (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_put_with_a_platform_tag (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_put_outside_the_prefix (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_put_beside_the_prefix (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_read_under_the_prefix (0.00s)
    --- PASS: TestWriteCredentialContractMinio/refused:_read_elsewhere (0.00s)
PASS
ok  	github.com/carlosframework/platform/internal/objstore	0.048s
=== RUN   TestEndToEndMinio
=== RUN   TestEndToEndMinio/plan
=== RUN   TestEndToEndMinio/roll
=== RUN   TestEndToEndMinio/replace
=== RUN   TestEndToEndMinio/remove
--- PASS: TestEndToEndMinio (0.47s)
    --- PASS: TestEndToEndMinio/plan (0.01s)
    --- PASS: TestEndToEndMinio/roll (0.13s)
    --- PASS: TestEndToEndMinio/replace (0.15s)
    --- PASS: TestEndToEndMinio/remove (0.15s)
PASS
ok  	github.com/carlosframework/platform/internal/grouproll	0.481s
Bucket created successfully `local/dbf-deploy`.
Bucket created successfully `local/dbf-data-ie`.
Bucket created successfully `local/dbf-data-uk`.
local/dbf-deploy versioning is enabled
Created policy `dbf-console` successfully.
Created policy `dbf-ukbox` successfully.
Added user `dbfconsole` successfully.
Added user `dbfukbox` successfully.
Attached Policies: [dbf-console]
To User: dbfconsole
Attached Policies: [dbf-ukbox]
To User: dbfukbox
=== RUN   TestDBForwardMinio
2026/12/02 22:57:21 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/12/02 22:57:21 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/12/02 22:57:21 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/12/02 22:57:21 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/12/02 22:57:21 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=370
2026/12/02 22:57:21 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000002
2026/12/02 22:57:21 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/12/02 22:57:21 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=454
2026/12/02 22:57:21 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/12/02 22:57:21 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/12/02 22:57:21 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/12/02 22:57:21 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/12/02 22:57:21 console: CARLOS_SECRETS_PUBKEY is unset, so no region outside the home can be chosen automatically
2026/12/02 22:57:21 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%3A34731: could not determine target mailbox
    agent.go:136: dbreads: dbr_v5dkpuakowaeyigplxkh4fbude: planned 3 files (1544 bytes) and restored to 3 in 14ms
    agent.go:136: dbreads: dbr_v5dkpuakowaeyigplxkh4fbude: output 5 bytes in 1 confirmed chunks in 1ms
2026/12/02 22:57:22 console: db read dbr_v5dkpuakowaeyigplxkh4fbude: relayed 1 chunks (102 bytes) in 1.005s, ended done
    agent.go:136: dbreads: dbr_x47pzeqmminoonclxpkomit464: planned 1 files (720 bytes) and restored to 1 in 11ms
    agent.go:136: dbreads: dbr_x47pzeqmminoonclxpkomit464: output 5 bytes in 1 confirmed chunks in 1ms
2026/12/02 22:57:23 console: db read dbr_x47pzeqmminoonclxpkomit464: relayed 1 chunks (102 bytes) in 1.005s, ended done
    agent.go:136: dbreads: dbr_5fhf4co5gbzdrrm3csp43msaem: planned 3 files (1544 bytes) and held through 3 in 13ms
    agent.go:136: dbreads: dbr_5fhf4co5gbzdrrm3csp43msaem: output 1544 bytes in 1 confirmed chunks in 1ms
2026/12/02 22:57:24 console: db read dbr_5fhf4co5gbzdrrm3csp43msaem: relayed 1 chunks (1641 bytes) in 1.005s, ended done
=== RUN   TestDBForwardMinio/by_disconnect
=== NAME  TestDBForwardMinio
    agent.go:136: dbreads: dbr_mpdf3w3ccfdgncfgr33bjhiboi: planned 3 files (1544 bytes) and restored to 3 in 14ms
2026/12/02 22:57:24 console: db read dbr_mpdf3w3ccfdgncfgr33bjhiboi: relayed 0 chunks (0 bytes) in 23ms, ended client gone
    agent.go:136: dbreads: dbr_mpdf3w3ccfdgncfgr33bjhiboi: output 5 bytes in 1 confirmed chunks in 105ms
=== RUN   TestDBForwardMinio/by_timeout
=== NAME  TestDBForwardMinio
    agent.go:136: dbreads: dbr_dxnexgql6y47yhmrnic4at6iya: planned 3 files (1544 bytes) and restored to 3 in 13ms
2026/12/02 22:57:44 console: db read dbr_dxnexgql6y47yhmrnic4at6iya: relayed 0 chunks (0 bytes) in 19.367s, ended no-result
    agent.go:136: dbreads: dbr_dxnexgql6y47yhmrnic4at6iya: output 5 bytes in 1 confirmed chunks in 19.342s
--- PASS: TestDBForwardMinio (23.05s)
    --- PASS: TestDBForwardMinio/by_disconnect (0.24s)
    --- PASS: TestDBForwardMinio/by_timeout (19.48s)
PASS
ok  	github.com/carlosframework/platform/internal/console	23.096s
Bucket created successfully `local/media-transfers`.
Bucket created successfully `local/media-transfer-results`.
local/media-transfer-results versioning is enabled
Created policy `media-transfers` successfully.
Added user `mediatransfers` successfully.
Attached Policies: [media-transfers]
To User: mediatransfers
=== RUN   TestMediaTransfersMinio
    upload.go:117: codec: the store already holds video.mp4
    upload.go:117: codec: the store already holds video.m3u8
    upload.go:117: codec: the store already holds poster.jpg
--- PASS: TestMediaTransfersMinio (0.07s)
PASS
ok  	github.com/carlosframework/platform/internal/mediaaws	0.074s
Bucket created successfully `local/media-local-store`.
Bucket created successfully `local/media-local-results`.
Created policy `media-local` successfully.
Added user `medialocal` successfully.
Attached Policies: [media-local]
To User: medialocal
=== RUN   TestLocalEndToEndMinio
--- PASS: TestLocalEndToEndMinio (0.54s)
PASS
ok  	github.com/carlosframework/platform/internal/medialocal	0.549s
=== RUN   TestHeldHandoverTwoBoxMinio
2026/12/02 22:57:49 edge: mesh key: minted
2026/12/02 22:57:49 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 22:57:49 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 22:57:49 tenant admission is open. accepting tenant work
2026/12/02 22:57:49 activator: HA placement host=shop-f751fafd.example.test kind=Place ref=annie reason=roomiest generation=2026-12-02T22:57:49Z lock_generation=0
2026/12/02 22:57:49 lease: t8-f751fafd/shop-f751fafd.example.test: HA lease acquired in 4ms (first wake)
2026/12/02 22:57:49 activator: shop-f751fafd.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 22:57:49 activator: shop-f751fafd.example.test: started carlos-instance@shop\x2df751fafd.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 6ms, control socket 0s, key gate 0s, logs 0s) 6ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 22:57:49 activator: shop-f751fafd.example.test: carlos-instance@shop\x2df751fafd.example.test.service launched in 7ms, healthy 0s later
2026/12/02 22:57:49 activator: shop-f751fafd.example.test: woke in 21ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 8ms, replicate 8ms
2026/12/02 22:57:49 lease: t8-f751fafd/plain-f751fafd.example.test: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 22:57:49 activator: no replica for plain-f751fafd.example.test in s3://contract-bucket/t8-f751fafd/plain-f751fafd.example.test — booting fresh
2026/12/02 22:57:49 activator: plain-f751fafd.example.test: started carlos-instance@plain\x2df751fafd.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 1ms, instance key 0s, env 4ms, control socket 0s, key gate 0s, logs 0s) 5ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 22:57:49 activator: plain-f751fafd.example.test: carlos-instance@plain\x2df751fafd.example.test.service launched in 7ms, healthy 0s later
2026/12/02 22:57:49 activator: plain-f751fafd.example.test: woke in 93ms: checks 0s, lease 1ms, restore 19ms, identity 0s, protect 0s, spawn 7ms, replicate 66ms
2026/12/02 22:57:49 lease: t8-f751fafd/bot0.shop.bac.sidecar.internal: HA lease acquired in 4ms (first wake)
2026/12/02 22:57:49 activator: bot0.shop.bac.sidecar.internal: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 22:57:49 activator: bot0.shop.bac.sidecar.internal: woke in 65ms: checks 0s, lease 4ms, restore 0s, identity 0s, protect 0s, spawn 7ms, settle 0s, replicate 53ms
2026/12/02 22:57:49 activator: next-due probe plain-f751fafd.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 22:57:49 activator: plain-f751fafd.example.test hibernated
2026/12/02 22:57:49 activator: next-due probe shop-f751fafd.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 22:57:49 activator: bot0.shop.bac.sidecar.internal: released with a marker (clean true, txid 1, files 3:626a99852e0ff7d1d369d2d062b9d9f1fcf6e39ce9c7b3396679b72a3949cd8f) in 6ms: files 1ms, sync 2ms, record 1ms, marker 2ms
2026/12/02 22:57:49 activator: bot0.shop.bac.sidecar.internal hibernated
2026/12/02 22:57:49 activator: shop-f751fafd.example.test: released with a marker (clean true, txid 1, files 3:6ec826644759b33503c744b67e0f49fa856e381c0faff350c510f25cc5be9e4b) in 8ms: files 1ms, sync 5ms, record 1ms, marker 2ms
2026/12/02 22:57:49 activator: shop-f751fafd.example.test hibernated
2026/12/02 22:57:49 lease: t8-f751fafd/shop-f751fafd.example.test: HA lease acquired in 3ms (clean marker)
2026/12/02 22:57:49 activator: shop-f751fafd.example.test: restored (other-box)
2026/12/02 22:57:49 activator: shop-f751fafd.example.test: started carlos-instance@shop\x2df751fafd.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 1ms, control socket 0s, key gate 0s, logs 0s) 1ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 22:57:49 activator: shop-f751fafd.example.test: carlos-instance@shop\x2df751fafd.example.test.service launched in 2ms, healthy 0s later
2026/12/02 22:57:49 activator: shop-f751fafd.example.test: woke in 86ms: checks 0s, lease 4ms, restore 25ms, identity 0s, protect 0s, spawn 2ms, replicate 55ms
2026/12/02 22:57:49 edge: ha-take shop-f751fafd.example.test from annie (txn t8-witness, marker generation 1): holder betty, generation 2
2026/12/02 22:57:49 edge: forward shop-f751fafd.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:d37851271fbde98c75020f5e72f0c4e4 Step:move Result:ok Reasons:[] Fence:t8-witness StartedAt:2026-12-02 22:57:49.547088822 +0000 UTC FinishedAt:2026-12-02 22:57:49.695766735 +0000 UTC Acked:[betty carol] Departed:[] Moved:[{Host:shop-f751fafd.example.test Holder:betty Gen:2 Confirmed:take}] Released:[{Host:plain-f751fafd.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:131 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-f751fafd.example.test <nil> stop plain-f751fafd.example.test marker=true clean=true <nil> releasing shop-f751fafd.example.test <nil> stop bot0.shop.bac.sidecar.internal marker=true clean=true <nil> stop shop-f751fafd.example.test marker=true clean=true <nil> taken shop-f751fafd.example.test betty <nil> end-moves]
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-f751fafd/shop-f751fafd.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: DELETE /contract-bucket/t8-f751fafd/plain-f751fafd.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-f751fafd/bot0.shop.bac.sidecar.internal/0009/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-f751fafd/bot0.shop.bac.sidecar.internal/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-f751fafd/shop-f751fafd.example.test/0009/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-f751fafd/shop-f751fafd.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-f751fafd/shop-f751fafd.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-f751fafd/shop-f751fafd.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-f751fafd/shop-f751fafd.example.test/head.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/generations/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0008/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0007/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0006/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0005/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0004/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0008/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0007/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0006/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0005/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0004/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-f751fafd/shop-f751fafd.example.test/0009/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-f751fafd/shop-f751fafd.example.test/files/0/manifest.json
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-f751fafd/shop-f751fafd.example.test/files/0/objects/0000000000000001-d05d9525a1b95c90915767624e2ad51157ca6956253f83cbc6c787053b75abcf
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-f751fafd/shop-f751fafd.example.test/files/0/objects/0000000000000003-8d2fb4c8e6b15d12c9873cc361edae5ef1b0e408b295441f0118ddb3d5935c99
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-f751fafd/shop-f751fafd.example.test/0000/0000000000000001-0000000000000001.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0000/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0009/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-f751fafd/shop-f751fafd.example.test/0000/0000000000000002-0000000000000002.ltx
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0001/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0002/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-f751fafd/shop-f751fafd.example.test/0003/
    hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-f751fafd/shop-f751fafd.example.test/lock.json
    hadrain_twobox_minio_linux_test.go:1243: drain took 199ms; S3 calls 44 (DELETE lock=1 GET files=3 GET head=1 GET lock=3 GET replica=2 LIST replica=28 PUT lock=3 PUT replica=3); deployment store calls 20 (GET edges=14 LIST edges=4 PUT edges=2)
    hadrain_twobox_minio_linux_test.go:1367: the fenced A's start gate answers 503 "This service is unavailable. Try again later.\n" (Retry-After "10")
2026/12/02 22:57:49 lease: t8-f751fafd/plain-f751fafd.example.test: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 22:57:49 activator: plain-f751fafd.example.test: started carlos-instance@plain\x2df751fafd.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 0s, control socket 0s, key gate 0s, logs 0s) 0s, launch file 0s, gate 0s, root start 1ms)
2026/12/02 22:57:49 activator: plain-f751fafd.example.test: carlos-instance@plain\x2df751fafd.example.test.service launched in 1ms, healthy 0s later
2026/12/02 22:57:49 lease: /tmp/carlos-minio-contract-CXa3dF/g/dw3894870137/data/instances/plain-f751fafd.example.test/plain-f751fafd.example.test.db: continuity with the last clean close not proven; snapshot 1-0000000000000001 written before serving
2026/12/02 22:57:49 activator: plain-f751fafd.example.test: woke in 10ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 1ms, spawn 2ms, replicate 6ms
2026/12/02 22:57:49 activator: next-due probe shop-f751fafd.example.test: decode /api/next-due: invalid character 'b' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 22:57:49 activator: shop-f751fafd.example.test: released with a marker (clean true, txid 2, files 3:6ec826644759b33503c744b67e0f49fa856e381c0faff350c510f25cc5be9e4b) in 4ms: files 1ms, sync 0s, record 1ms, marker 2ms
2026/12/02 22:57:49 activator: shop-f751fafd.example.test hibernated
2026/12/02 22:57:49 tenant admission is closed for shutdown
2026/12/02 22:57:49 activator: next-due probe plain-f751fafd.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 22:57:49 activator: plain-f751fafd.example.test hibernated
--- PASS: TestHeldHandoverTwoBoxMinio (0.62s)
=== RUN   TestHeldHandoverLostLeaseMinio
2026/12/02 22:57:49 edge: mesh key: minted
2026/12/02 22:57:49 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 22:57:49 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 22:57:49 tenant admission is open. accepting tenant work
2026/12/02 22:57:49 activator: HA placement host=shop-eb874b08.example.test kind=Place ref=annie reason=roomiest generation=2026-12-02T22:57:49Z lock_generation=0
2026/12/02 22:57:49 lease: t8-eb874b08/shop-eb874b08.example.test: HA lease acquired in 3ms (first wake)
2026/12/02 22:57:49 activator: shop-eb874b08.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 22:57:49 activator: shop-eb874b08.example.test: started carlos-instance@shop\x2deb874b08.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 5ms, control socket 0s, key gate 0s, logs 0s) 6ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 22:57:49 activator: shop-eb874b08.example.test: carlos-instance@shop\x2deb874b08.example.test.service launched in 7ms, healthy 0s later
2026/12/02 22:57:49 activator: shop-eb874b08.example.test: woke in 65ms: checks 0s, lease 4ms, restore 0s, identity 0s, protect 0s, spawn 7ms, replicate 53ms
2026/12/02 22:57:50 activator: next-due probe shop-eb874b08.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 22:57:50 activator: final checkpoint shop-eb874b08.example.test: lease: release marker owed for s3://contract-bucket/t8-eb874b08/shop-eb874b08.example.test/lock.json (If-Match "1da7ebb99925677fc5737268d91b0a10"): lease: write release marker: operation error S3: PutObject, https response error StatusCode: 503, RequestID: , HostID: , api error ServiceUnavailable: witness: refused
2026/12/02 22:57:50 activator: shop-eb874b08.example.test hibernated
2026/12/02 22:57:50 activator: handover of shop-eb874b08.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-eb874b08.example.test client 4 "
    hadrain_twobox_minio_linux_test.go:1486: driver calls: [begin shop-eb874b08.example.test <nil> releasing shop-eb874b08.example.test <nil> stop shop-eb874b08.example.test marker=false clean=false <nil> left shop-eb874b08.example.test released without a marker]
    hadrain_twobox_minio_linux_test.go:1487: a request after the loss: 503 "This instance cannot wake right now. Please try again shortly.\n" (Retry-After "10", holder "none", 0s, err <nil>)
2026/12/02 22:57:50 tenant admission is closed for shutdown
2026/12/02 22:57:50 http: proxy error: context canceled
--- PASS: TestHeldHandoverLostLeaseMinio (0.32s)
PASS
ok  	github.com/carlosframework/platform/internal/host	0.986s
Bucket created successfully `local/gen-take`.
local/gen-take versioning is enabled
Created policy `gen-take` successfully.
Added user `gentake` successfully.
Attached Policies: [gen-take]
To User: gentake
=== RUN   TestGenerationTakeMinio
=== RUN   TestGenerationTakeMinio/take
2026/12/02 22:57:51 lease: instances/gen-1796252271272184894.shop.example.com: HA lease acquired in 5ms (first wake)
2026/12/02 22:57:51 lease: instances/gen-1796252271272184894.shop.example.com: HA lease acquired in 3ms (holder terminated)
    gentake_minio_test.go:308: a second create-only copy onto instances/gen-1796252271272184894.shop.example.com/g-00000000000000000002/0000/0000000000000001-0000000000000001.ltx: <nil> (destination condition honoured: false)
2026/12/02 22:57:51 ERROR retention enforcement failed system=store db=w.example.com.db error="enforce snapshot retention: remove ltx files: lease: invalid or changed generation binding"
2026/12/02 22:57:51 ERROR enforce L0 time retention system=store db=w.example.com.db error="fetch l1 files: lease: a write has waited too long to reach storage (write fence)"
2026/12/02 22:57:51 http: proxy error: context canceled
2026/12/02 22:57:51 ERROR retention enforcement failed system=store db=w.example.com.db error="enforce snapshot retention: remove ltx files: lease: a write has waited too long to reach storage (write fence)"
=== RUN   TestGenerationTakeMinio/switch-412
2026/12/02 22:57:51 lease: instances/gen-1796252271439247132.shop.example.com: HA lease acquired in 4ms (first wake)
2026/12/02 22:57:51 http: proxy error: context canceled
2026/12/02 22:57:51 ERROR retention enforcement failed system=store db=seed.db error="enforce snapshot retention: fetch ltx files: lease: a write has waited too long to reach storage (write fence)"
2026/12/02 22:57:51 lease: instances/gen-1796252271439247132.shop.example.com: HA lease acquired in 3ms (clean marker)
=== RUN   TestGenerationTakeMinio/copy-version
=== RUN   TestGenerationTakeMinio/store-time
2026/12/02 22:57:51 lease: instances/gen-1796252271489290271.shop.example.com: HA lease acquired in 3ms (first wake)
2026/12/02 22:57:51 http: proxy error: context canceled
2026/12/02 22:57:51 ERROR retention enforcement failed system=store db=seed.db error="enforce snapshot retention: fetch ltx files: lease: a write has waited too long to reach storage (write fence)"
2026/12/02 22:57:51 lease: instances/gen-1796252271489290271.shop.example.com: HA lease acquired in 2ms (clean marker)
2026/12/02 22:57:51 lease: instances/gen-1796252271489290271.shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/12/02 22:57:51 lease: instances/gen-1796252271489290271.shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/12/02 22:57:51 lease: instances/gen-1796252271489290271.shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/12/02 22:57:51 lease: instances/gen-1796252271489290271.shop.example.com: HA lease acquired in 2ms (unclean marker)
=== RUN   TestGenerationTakeMinio/skew
--- PASS: TestGenerationTakeMinio (0.33s)
    --- PASS: TestGenerationTakeMinio/take (0.17s)
    --- PASS: TestGenerationTakeMinio/switch-412 (0.04s)
    --- PASS: TestGenerationTakeMinio/copy-version (0.01s)
    --- PASS: TestGenerationTakeMinio/store-time (0.10s)
    --- PASS: TestGenerationTakeMinio/skew (0.01s)
PASS
ok  	github.com/carlosframework/platform/internal/lease	0.340s
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/tools v0.50.0
go: downloading golang.org/x/telemetry v0.0.0-20260908163034-4bcc4b2ee518
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 1m54.848s
    codehealth_test.go:107: line metrics (code lines, then physical):
          file-lines  5471  7324  internal/activator activator_test.go
          file-lines  4120  6283  . apimode.go
          file-lines  4051  6843  internal/console server.go
          file-lines  3785  7224  internal/activator activator.go
          file-lines  3530  4459  . apimode_test.go
          file-lines  3261  3864  internal/registry registry_test.go
          file-lines  3117  6287  internal/host agent.go
          file-lines  3094  3992  internal/provision reconcile_test.go
          func-lines   870   891  internal/host plan14InstalledClaimLaunch
          func-lines   810  1277  internal/provision Reconcile
          func-lines   769  1242  internal/console (*Server).handleAPIInstanceCreate
          func-lines   683  1240  internal/host runAgent
          func-lines   571   908  internal/activator (*Service).doWakeOnce
          func-lines   538   546  internal/host runServingParkPeerNamespace
          func-lines   519   712  . runRoute
          func-lines   509   569  internal/host TestPagingIsRateLimited
          func-lines   494   817  internal/release adoptHost
          func-lines   441   500  internal/host TestRootInstanceStopExecStop
          func-lines   421   436  internal/host (*ClaimWakeAssembly).Build
          func-lines   421   437  internal/team TestFixture
          func-lines   412   414  internal/console TestDemoProtectionsSourceToLimitAndTakedown
          func-lines   408   485  . TestFleetAppServesThroughTheHub
          func-lines   402   406  internal/registry (*Registry).haJournal
          func-lines   400   868  internal/provision rootReadArchivedChain
          func-lines   399   733  internal/release PassFilter
          func-lines   390   398  internal/host runFilesSeedPreparationWithLive
          func-lines   383   406  internal/console TestDemoSourceToLiveAndUpdate
          func-lines   374   377  internal/host plan14RequiredArtifactsRootRunner
          func-lines   371   417  internal/host TestRootEgressKernelProof
          func-lines   369   883  internal/edge (*Edge).ServeHTTP
          func-lines   367   584  internal/console (*Server).handleAPIShip
          func-lines   364   371  internal/host testRootMigrationBootstrap
          func-lines   360   362  internal/edge TestDemoAPIAliasBoundary
          func-lines   358   628  cmd/console serve
          func-lines   357   358  internal/registry (*Registry).dispatchRemote
          func-lines   355   372  internal/host TestRootSandboxUpdateFromOldBox
          func-lines   343   354  internal/analytics Prune
          func-lines   340   353  internal/host newColdRootHarness
          func-lines   335   557  internal/console (*Store).migrate
          func-lines   334   334  internal/host TestPlan12RecoveryRestoreSourceDatabase
          func-lines   330   371  internal/edge TestRegionalNameNeverLeavesItsRegion
          func-lines   329   471  . runDeploy
          func-lines   329   329  internal/host TestPlan12RecoveryRestoreSourceDatabase.func1
          func-lines   327   369  internal/edge TestTunnelWebSocketEndToEnd
          func-lines   325   455  internal/objstore TestDeliveredContractMinio
          func-lines   320   654  internal/appconfig SyncExecWithCallbacks
          func-lines   315   318  internal/host plan14TimerIntention
          func-lines   311   314  internal/host plan14TimerIntention.func1
          func-lines   310   315  internal/hostbox ColdHandover.Run
          func-lines   308   309  internal/host rootFilesSeedIsolatedWitness
          func-lines   305   323  internal/host hairpinKernelWitness
          func-lines   304   308  internal/console TestHAP2ProductionDoors
          func-lines   302   329  internal/host TestRootG2PoolIngress
        release-importers: . cmd/console internal/activator internal/analytics internal/appconfig internal/apperr internal/applog internal/apppolicy internal/boxid internal/boxvolumes internal/console internal/dbreads internal/dbreads/dbreadstest internal/dbverify internal/demobuild internal/domains internal/doorkey internal/edge internal/edgeproof internal/edgesfile internal/fleetapi internal/grouproll internal/grouprollaws internal/historyreadback internal/host internal/hostactors internal/hostbox internal/hostclaim internal/hostevidence internal/hostexec internal/hostfence internal/hostfiles internal/hostfloor internal/hostguard internal/hostops internal/hostrelocate internal/hostresolve internal/instancectl internal/instanceupdates internal/interactive internal/layout internal/lease internal/ledger internal/mail internal/mailer internal/mailsubmit internal/metrics internal/moves internal/objstore internal/ops internal/park internal/plans internal/provision internal/relay internal/rollout internal/rootfsimage internal/runs internal/s3fake internal/schedule internal/seeds internal/status internal/telemetry internal/usage internal/vet scripts/pathmapcheck scripts/witness-pointer
        not scanned (217 files):
          cmd/carlos-media/drill_other.go: built only for other systems or tags
          cmd/carlos-media/harden_other.go: built only for other systems or tags
          cmd/console/fleetsocket_other.go: built only for other systems or tags
          cmd/console/servelock_windows.go: built only for other systems or tags
          cmd/moveprobe/detach_windows.go: built only for other systems or tags
          cmd/rootfswitness/mmap_other.go: built only for other systems or tags
          devbox_acl_other.go: built only for other systems or tags
          devbox_envfile_darwin_test.go: built only for other systems or tags
          devbox_envfile_other.go: built only for other systems or tags
          domains_transfer_signals_other.go: built only for other systems or tags
          interactive_term_darwin.go: built only for other systems or tags
          interactive_term_other.go: built only for other systems or tags
          internal/activator/claimprocess_root_other.go: built only for other systems or tags
          internal/activator/escrow_stamp_other.go: built only for other systems or tags
          internal/activator/fleetreserve_other.go: built only for other systems or tags
          internal/activator/harecord_other.go: built only for other systems or tags
          internal/activator/ownenv_other.go: built only for other systems or tags
          internal/activator/pty_other.go: built only for other systems or tags
          internal/activator/race_on_test.go: built only for other systems or tags
          internal/activator/rolelaunch_other.go: built only for other systems or tags
          internal/assetcache/statfs_other.go: built only for other systems or tags
          internal/boxself/io_other.go: built only for other systems or tags
          internal/cgroup/cleanup_other.go: built only for other systems or tags
          internal/cgroup/cleanup_other_test.go: built only for other systems or tags
          internal/cgroup/hostprocs_other.go: built only for other systems or tags
          internal/cgroup/recreate_other.go: built only for other systems or tags
          internal/cgroup/role_other.go: built only for other systems or tags
          internal/cgroup/shim_other.go: built only for other systems or tags
          internal/cgroup/strict_other.go: built only for other systems or tags
          internal/cgroup/verify_other.go: built only for other systems or tags
          internal/console/claim_sql_identity_other.go: built only for other systems or tags
          internal/console/geoipverify_other.go: built only for other systems or tags
          internal/console/hostreports_process_other.go: built only for other systems or tags
          internal/console/replicaview_other.go: built only for other systems or tags
          internal/console/restore_sim_nice_other_test.go: built only for other systems or tags
          internal/console/scalecost_other_test.go: built only for other systems or tags
          internal/console/seedscratch_windows.go: built only for other systems or tags
          internal/dbreads/worker_other.go: built only for other systems or tags
          internal/demobuild/security_other.go: built only for other systems or tags
          internal/democlaim/source_other.go: built only for other systems or tags
          internal/devbox/peer_darwin.go: built only for other systems or tags
          internal/devbox/peer_darwin_test.go: built only for other systems or tags
          internal/devbox/peer_other.go: built only for other systems or tags
          internal/devbox/socketcheck_other.go: built only for other systems or tags
          internal/domains/certimport_read_portable.go: built only for other systems or tags
          internal/edge/devboxpeer_other.go: built only for other systems or tags
          internal/edge/hairpin_other.go: built only for other systems or tags
          internal/edge/heldbudget_other.go: built only for other systems or tags
          internal/edge/purge_listen_unix.go: built only for other systems or tags
          internal/edge/purge_listen_windows.go: built only for other systems or tags
          internal/edge/race_on_test.go: built only for other systems or tags
          internal/edge/replicaconsole_owner_other.go: built only for other systems or tags
          internal/edge/replicaconsole_peer_other.go: built only for other systems or tags
          internal/edge/replicaconsole_socket_other_test.go: built only for other systems or tags
          internal/edge/static_artifact_other.go: built only for other systems or tags
          internal/edge/static_recordlock_other.go: built only for other systems or tags
          internal/edge/static_sweep_other.go: built only for other systems or tags
          internal/execsandbox/cleanup_other.go: built only for other systems or tags
          internal/execsandbox/file_other.go: built only for other systems or tags
          internal/execsandbox/oci_other.go: built only for other systems or tags
          internal/fileacl/fileacl_darwin.go: built only for other systems or tags
          internal/fileacl/fileacl_darwin_amd64.s: built only for other systems or tags
          internal/fileacl/fileacl_darwin_arm64.s: built only for other systems or tags
          internal/fileacl/fileacl_darwin_test.go: built only for other systems or tags
          internal/grouproll/state_other.go: built only for other systems or tags
          internal/grouprollaws/pty_darwin.go: built only for other systems or tags
          internal/grouprollaws/pty_other.go: built only for other systems or tags
          internal/hairpin/native_other.go: built only for other systems or tags
          internal/host/applylock_other_test.go: built only for other systems or tags
          internal/host/bootstrapfs_other.go: built only for other systems or tags
          internal/host/boxroles_config_other.go: built only for other systems or tags
          internal/host/claimfilesseed_delegation_other.go: built only for other systems or tags
          internal/host/claimfilesseed_transport_other.go: built only for other systems or tags
          internal/host/claimjournal_containment_other.go: built only for other systems or tags
          internal/host/claimjournal_migration_other.go: built only for other systems or tags
          internal/host/claimlaunch_kernel_other.go: built only for other systems or tags
          internal/host/claimlaunch_rev2_other_test.go: built only for other systems or tags
          internal/host/claimproduction_other.go: built only for other systems or tags
          internal/host/claimready_other.go: built only for other systems or tags
          internal/host/claimroleassembly_other.go: built only for other systems or tags
          internal/host/claimservingartifact_other.go: built only for other systems or tags
          internal/host/claimservinghandover_reboot_other.go: built only for other systems or tags
          internal/host/claimservinghandover_reboot_other_test.go: built only for other systems or tags
          internal/host/claimservingpark_other.go: built only for other systems or tags
          internal/host/claimstate_other.go: built only for other systems or tags
          internal/host/claimstop_kernel_other.go: built only for other systems or tags
          internal/host/claimtoken_inventory_other.go: built only for other systems or tags
          internal/host/claimunit_dropin_other.go: built only for other systems or tags
          internal/host/claimunit_files_other.go: built only for other systems or tags
          internal/host/claimunit_migrate_other.go: built only for other systems or tags
          internal/host/claimunit_ready_other.go: built only for other systems or tags
          internal/host/claimunit_socket_migration_other.go: built only for other systems or tags
          internal/host/consolefleet_owner_other.go: built only for other systems or tags
          internal/host/dbreads_other.go: built only for other systems or tags
          internal/host/egress_rail_other.go: built only for other systems or tags
          internal/host/fileowner_other.go: built only for other systems or tags
          internal/host/flock_windows.go: built only for other systems or tags
          internal/host/group_config_other.go: built only for other systems or tags
          internal/host/group_maintenance_other.go: built only for other systems or tags
          internal/host/group_maintenance_verbs_other.go: built only for other systems or tags
          internal/host/group_receipt_other.go: built only for other systems or tags
          internal/host/hadrain_call_other.go: built only for other systems or tags
          internal/host/hadrain_socket_other.go: built only for other systems or tags
          internal/host/hadrainfence_other.go: built only for other systems or tags
          internal/host/headroom_other.go: built only for other systems or tags
          internal/host/installchannel_other.go: built only for other systems or tags
          internal/host/managedboot_other.go: built only for other systems or tags
          internal/host/metrics_nested_other.go: built only for other systems or tags
          internal/host/movesfloor_other.go: built only for other systems or tags
          internal/host/movesfloorgate_other.go: built only for other systems or tags
          internal/host/movesheldrelease_other.go: built only for other systems or tags
          internal/host/movesmeasure_other.go: built only for other systems or tags
          internal/host/offcloudcredentials_other.go: built only for other systems or tags
          internal/host/registrychild_exec_other.go: built only for other systems or tags
          internal/host/registrychild_other.go: built only for other systems or tags
          internal/host/registryowner_chown_other.go: built only for other systems or tags
          internal/host/registryowner_descriptor_unix.go: built only for other systems or tags
          internal/host/replicahealth_other.go: built only for other systems or tags
          internal/host/rootgeneration_census_other.go: built only for other systems or tags
          internal/host/rootgeneration_kernel_other.go: built only for other systems or tags
          internal/host/rootgeneration_payload_other.go: built only for other systems or tags
          internal/host/rootgeneration_retired_other.go: built only for other systems or tags
          internal/host/rootmigration_production_other.go: built only for other systems or tags
          internal/host/runscset_other.go: built only for other systems or tags
          internal/host/sandboxenv_other.go: built only for other systems or tags
          internal/host/statfs_windows.go: built only for other systems or tags
          internal/host/systemapply_other.go: built only for other systems or tags
          internal/hostbox/census_vendor_other.go: built only for other systems or tags
          internal/hostbox/inventory_identity_other.go: built only for other systems or tags
          internal/hostbox/journalmigration_other.go: built only for other systems or tags
          internal/hostbox/journalnamespace_other.go: built only for other systems or tags
          internal/hostbox/journaltrust_other.go: built only for other systems or tags
          internal/hostbox/migration_census_other.go: built only for other systems or tags
          internal/hostbox/typedpark_other.go: built only for other systems or tags
          internal/hostenv/group_other.go: built only for other systems or tags
          internal/hostenv/write_other.go: built only for other systems or tags
          internal/hostenv/write_other_test.go: built only for other systems or tags
          internal/hostexec/clock_other.go: built only for other systems or tags
          internal/hostexec/clock_other_test.go: built only for other systems or tags
          internal/hostexec/local_other.go: built only for other systems or tags
          internal/hostexec/pending_other.go: built only for other systems or tags
          internal/hostexec/probe_other.go: built only for other systems or tags
          internal/hostexec/rootprocess_other.go: built only for other systems or tags
          internal/hostfiles/dir_other.go: built only for other systems or tags
          internal/hostfiles/refuse_other.go: built only for other systems or tags
          internal/hostfiles/watch_other.go: built only for other systems or tags
          internal/hostfloor/controllers_other.go: built only for other systems or tags
          internal/hostfloor/image_other.go: built only for other systems or tags
          internal/hostguard/flock_other.go: built only for other systems or tags
          internal/hostguard/flock_other_test.go: built only for other systems or tags
          internal/hostguard/record_other.go: built only for other systems or tags
          internal/instancectl/claimexec_other.go: built only for other systems or tags
          internal/instancectl/claimexec_socket_other.go: built only for other systems or tags
          internal/instancectl/claimlaunch_snapshot_other.go: built only for other systems or tags
          internal/instancectl/claimnetwork_other.go: built only for other systems or tags
          internal/instancectl/demo_snapshot_other.go: built only for other systems or tags
          internal/instancectl/egress_cgroup_other.go: built only for other systems or tags
          internal/instancectl/egress_dropin_other.go: built only for other systems or tags
          internal/instancectl/fleetsize_other.go: built only for other systems or tags
          internal/instancectl/gvisorprobe_other.go: built only for other systems or tags
          internal/instancectl/peer_other.go: built only for other systems or tags
          internal/instancectl/peer_tuple_other.go: built only for other systems or tags
          internal/instancectl/rootfs_identity_other.go: built only for other systems or tags
          internal/instanceexec/claimexec_other.go: built only for other systems or tags
          internal/instanceexec/exec_rootfs_other.go: built only for other systems or tags
          internal/instanceexec/netlink_route_other.go: built only for other systems or tags
          internal/instanceexec/probe_gvisor_other.go: built only for other systems or tags
          internal/instanceexec/probe_hardening_other.go: built only for other systems or tags
          internal/instanceexec/probe_other.go: built only for other systems or tags
          internal/instanceexec/probe_rootfs_other.go: built only for other systems or tags
          internal/instanceexec/sandbox_other.go: built only for other systems or tags
          internal/instanceexec/scope_other.go: built only for other systems or tags
          internal/instanceexec/stop_other.go: built only for other systems or tags
          internal/instanceexec/tty_other.go: built only for other systems or tags
          internal/instancefs/instancefs_other.go: built only for other systems or tags
          internal/launchd/activate_darwin.go: built only for other systems or tags
          internal/launchd/activate_darwin_amd64.s: built only for other systems or tags
          internal/launchd/activate_darwin_arm64.s: built only for other systems or tags
          internal/launchd/activate_darwin_test.go: built only for other systems or tags
          internal/layout/journal_other.go: built only for other systems or tags
          internal/layout/links_other.go: built only for other systems or tags
          internal/mailer/keys_other.go: built only for other systems or tags
          internal/maintenanceexec/run_other.go: built only for other systems or tags
          internal/managedboot/admission_other.go: built only for other systems or tags
          internal/managedboot/identity_other.go: built only for other systems or tags
          internal/mediahandler/collect_other.go: built only for other systems or tags
          internal/mediahandler/procs_other.go: built only for other systems or tags
          internal/medialocal/runner_other.go: built only for other systems or tags
          internal/moves/archive/open_other.go: built only for other systems or tags
          internal/moves/archive/sync_other.go: built only for other systems or tags
          internal/ops/flock_windows.go: built only for other systems or tags
          internal/park/local_other.go: built only for other systems or tags
          internal/privatefile/io_other.go: built only for other systems or tags
          internal/proxyproto/peek_other.go: built only for other systems or tags
          internal/relay/race_on_test.go: built only for other systems or tags
          internal/release/consumedfence_other.go: built only for other systems or tags
          internal/release/digestcache_other.go: built only for other systems or tags
          internal/rootaws/credentials_other.go: built only for other systems or tags
          internal/rootaws/open_darwin.go: built only for other systems or tags
          internal/rootfsimage/dir_other.go: built only for other systems or tags
          internal/rootstate/authoritydir_other.go: built only for other systems or tags
          internal/rootstate/authorityfile_other.go: built only for other systems or tags
          internal/rootstate/file_other.go: built only for other systems or tags
          internal/rootstate/link_other.go: built only for other systems or tags
          internal/rootstate/persistent_other.go: built only for other systems or tags
          internal/rootstate/state_other.go: built only for other systems or tags
          internal/safefile/file_other.go: built only for other systems or tags
          internal/safefile/reap_other.go: built only for other systems or tags
          internal/schedule/envfile_other.go: built only for other systems or tags
          internal/stopevidence/fds_other.go: built only for other systems or tags
          internal/stopevidence/fds_other_test.go: built only for other systems or tags
          internal/stopevidence/holders_other.go: built only for other systems or tags
          internal/stopevidence/reconstruct_other.go: built only for other systems or tags
          internal/team/storelock_other.go: built only for other systems or tags
          internal/team/storelock_windows.go: built only for other systems or tags
          move_offline_run_other.go: built only for other systems or tags
          system_group_other.go: built only for other systems or tags
        
    codehealth_test.go:115: fatal               1089 at  473 sites  log.Fatal*, (*log.Logger).Fatal* and os.Exit in the root package's production files
    codehealth_test.go:115: sleep               1006 at  812 sites  time.Sleep in test files
    codehealth_test.go:115: db-no-context        873 at  696 sites  database calls with no context (dbOpWithoutContext) in production files
    codehealth_test.go:115: host-context         188 at  142 sites  context.Background and context.TODO in internal/host production files
    codehealth_test.go:115: func-lines         18582 at   45 sites  functions over 300 code lines (blank and comment-only lines not counted)
    codehealth_test.go:115: file-lines         30429 at    8 sites  files over 3,000 code lines, counted the same way
    codehealth_test.go:115: release-importers     66 at    1 sites  packages whose production files import internal/release
--- PASS: TestCodeHealth (114.85s)
PASS
ok  	github.com/carlosframework/platform/internal/codehealth	116.030s
=== code-health-record ===
go version go1.26.10 linux/arm64
code-health record: HEAD is on main; comparing with its parent 2218edfee9c98e6d49797207e1e399477a5763df
=== RUN   TestRecordAgainstBase
--- PASS: TestRecordAgainstBase (0.01s)
PASS
ok  	github.com/carlosframework/platform/internal/codehealth	0.008s
code-health record: no line went up without a reason
=== race ===
go version go1.26.10 linux/arm64
GATE_RACE=1 .amadan/test-gate.sh
=== internal_systemd@0 (14 s, from +14 s)
ok  	github.com/carlosframework/platform/internal/systemd	13.606s
=== internal_rootaws@0 (26 s, from +35 s)
ok  	github.com/carlosframework/platform/internal/rootaws	25.546s
=== internal_activator@0 (254 s, from +112 s)
ok  	github.com/carlosframework/platform/internal/activator	251.525s
=== internal_activator@1 (282 s, from +112 s)
ok  	github.com/carlosframework/platform/internal/activator	279.320s
=== internal_activator@2 (301 s, from +113 s)
ok  	github.com/carlosframework/platform/internal/activator	299.349s
=== internal_activator@3 (370 s, from +113 s)
ok  	github.com/carlosframework/platform/internal/activator	368.285s
=== internal_activator@4 (311 s, from +113 s)
ok  	github.com/carlosframework/platform/internal/activator	309.305s
=== internal_activator@5 (304 s, from +113 s)
ok  	github.com/carlosframework/platform/internal/activator	302.853s
=== internal_activator@6 (309 s, from +113 s)
ok  	github.com/carlosframework/platform/internal/activator	307.513s
=== internal_activator@7 (407 s, from +113 s)
ok  	github.com/carlosframework/platform/internal/activator	405.784s
=== internal_edge@0 (83 s, from +136 s)
ok  	github.com/carlosframework/platform/internal/edge	80.194s
=== internal_edge@1 (82 s, from +136 s)
ok  	github.com/carlosframework/platform/internal/edge	79.276s
=== internal_edge@2 (215 s, from +136 s)
ok  	github.com/carlosframework/platform/internal/edge	212.461s
=== internal_edge@3 (143 s, from +136 s)
ok  	github.com/carlosframework/platform/internal/edge	139.549s
=== internal_edge@4 (177 s, from +136 s)
ok  	github.com/carlosframework/platform/internal/edge	174.142s
=== internal_edge@5 (235 s, from +136 s)
ok  	github.com/carlosframework/platform/internal/edge	232.039s
=== internal_edge@6 (195 s, from +136 s)
ok  	github.com/carlosframework/platform/internal/edge	192.117s
=== internal_edge@7 (229 s, from +136 s)
ok  	github.com/carlosframework/platform/internal/edge	225.832s
=== internal_edge@8 (220 s, from +136 s)
ok  	github.com/carlosframework/platform/internal/edge	216.345s
=== internal_edge@9 (245 s, from +136 s)
ok  	github.com/carlosframework/platform/internal/edge	242.443s
=== internal_edge@10 (333 s, from +136 s)
ok  	github.com/carlosframework/platform/internal/edge	329.428s
=== internal_edge@11 (228 s, from +136 s)
ok  	github.com/carlosframework/platform/internal/edge	224.890s
=== internal_edge@12 (248 s, from +136 s)
ok  	github.com/carlosframework/platform/internal/edge	244.831s
=== internal_edge@13 (265 s, from +136 s)
ok  	github.com/carlosframework/platform/internal/edge	261.937s
=== internal_edge@14 (191 s, from +136 s)
ok  	github.com/carlosframework/platform/internal/edge	187.547s
=== internal_edge@15 (243 s, from +136 s)
ok  	github.com/carlosframework/platform/internal/edge	239.629s
=== internal_host@0 (16 s, from +196 s)
ok  	github.com/carlosframework/platform/internal/host	11.614s
=== internal_host@1 (10 s, from +196 s)
ok  	github.com/carlosframework/platform/internal/host	5.623s
=== lists: internal_edge 135 s, internal_activator 112 s, internal_host 196 s, internal_rootaws 34 s, internal_systemd 14 s
=== cpu: the gate used 7650 cpu-seconds in 521 s, about 14.7 of 32 cores; the machine as a whole was 45% busy
=== gitleaks ===
go version go1.26.10 linux/arm64
go: downloading github.com/zricethezav/gitleaks/v8 v8.30.1
go: downloading github.com/charmbracelet/lipgloss v0.5.0
go: downloading github.com/rs/zerolog v1.33.0
go: downloading github.com/spf13/cobra v1.9.1
go: downloading github.com/Masterminds/sprig/v3 v3.3.0
go: downloading github.com/spf13/viper v1.19.0
go: downloading golang.org/x/exp v0.0.0-20250218142911-aa4b98e5adaa
go: downloading github.com/BobuSumisu/aho-corasick v1.0.3
go: downloading github.com/fatih/semgroup v1.2.0
go: downloading github.com/gitleaks/go-gitdiff v0.9.1
go: downloading github.com/hashicorp/go-version v1.7.0
go: downloading github.com/mholt/archives v0.1.2
go: downloading github.com/h2non/filetype v1.1.3
go: downloading github.com/huandu/xstrings v1.5.0
go: downloading github.com/spf13/cast v1.7.1
go: downloading golang.org/x/crypto v0.35.0
go: downloading github.com/Masterminds/goutils v1.1.1
go: downloading dario.cat/mergo v1.0.1
go: downloading github.com/Masterminds/semver/v3 v3.3.0
go: downloading github.com/shopspring/decimal v1.4.0
go: downloading github.com/mitchellh/copystructure v1.2.0
go: downloading github.com/spf13/pflag v1.0.6
go: downloading github.com/minio/minlz v1.0.0
go: downloading github.com/dsnet/compress v0.0.2-0.20230904184137-39efe44ab707
go: downloading github.com/andybalholm/brotli v1.1.2-0.20250424173009-453214e765f3
go: downloading github.com/STARRY-S/zip v0.2.1
go: downloading github.com/klauspost/pgzip v1.2.6
go: downloading github.com/klauspost/compress v1.17.11
go: downloading github.com/bodgit/sevenzip v1.6.0
go: downloading github.com/nwaples/rardecode/v2 v2.1.0
go: downloading github.com/pierrec/lz4/v4 v4.1.21
go: downloading github.com/sorairolake/lzip-go v0.3.5
go: downloading github.com/therootcompany/xz v1.0.1
go: downloading github.com/ulikunitz/xz v0.5.12
go: downloading golang.org/x/text v0.22.0
go: downloading github.com/mattn/go-colorable v0.1.14
go: downloading github.com/mitchellh/reflectwalk v1.0.2
go: downloading github.com/bodgit/plumbing v1.3.0
go: downloading github.com/bodgit/windows v1.0.1
go: downloading github.com/hashicorp/go-multierror v1.1.1
go: downloading go4.org v0.0.0-20230225012048-214862532bf5
go: downloading github.com/hashicorp/golang-lru/v2 v2.0.7
go: downloading github.com/fsnotify/fsnotify v1.8.0
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/sagikazarmark/slog-shim v0.1.0
go: downloading github.com/spf13/afero v1.12.0
go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
go: downloading github.com/mattn/go-runewidth v0.0.14
go: downloading github.com/muesli/reflow v0.2.1-0.20210115123740-9e1d0d53df68
go: downloading github.com/muesli/termenv v0.15.1
go: downloading golang.org/x/sys v0.30.0
go: downloading github.com/subosito/gotenv v1.6.0
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading gopkg.in/ini.v1 v1.67.0
go: downloading github.com/magiconair/properties v1.8.9
go: downloading github.com/pelletier/go-toml/v2 v2.2.3
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/hashicorp/errwrap v1.1.0
go: downloading golang.org/x/sync v0.11.0
go: downloading github.com/rivo/uniseg v0.2.0
go: downloading github.com/aymanbagabas/go-osc52/v2 v2.0.1
self-test: reported source file: a key
self-test: reported source file: a 64-hex key
self-test: reported source file: a census-shaped entry
self-test: reported source file: a key marked gitleaks:allow
self-test: reported source file: a test's fake value outside tests
self-test: reported allowed file: another key beside its allowed value
self-test: reported a tracked file named gitleaks-gate-sentinel.env
self-test: reported 103 near misses of the names notscanned.go lists
self-test: skipped  the 34 files notscanned.go lists
self-test: refused  a notscanned.go entry git does not track
self-test: refused  a config that does not parse
self-test: refused  a config that does not exist
self-test: refused  a missing gitleaks binary
self-test: 6 planted keys reported, 138 tracked files judged, 3 broken setups refused
gitleaks: scanned 12273 tracked files; 34 not scanned, by exact path (scripts/gitleaks-gate/notscanned.go)
gitleaks: clean
diff --git a/canary_retire_test.go b/canary_retire_test.go
index 5477e8704..ec542a8e3 100644
--- a/canary_retire_test.go
+++ b/canary_retire_test.go
@@ -7,6 +7,7 @@ import (
"net/http/httptest"
"strings"
"testing"
+ "time"
)
// `carlos canary retire` posts the name to the member door and prints the
@@ -93,3 +94,73 @@ func TestRepairCellMarksAppsWithNoRow(t *testing.T) {
t.Fatalf("a head of an app with a row = %q", got)
}
}
+
+// The digests listing prints what the box reports say about each app with
+// no console entry: the boxes that last reported running it, the ones that
+// cannot say, or that none reports it; and that reports are snapshots.
+func TestChannelsDigestsPrintsNoAppEvidence(t *testing.T) {
+ useTempCredentials(t)
+ clearDeploymentEnv(t)
+ now := time.Now().UTC()
+ ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ json.NewEncoder(w).Encode(map[string]any{
+ "accounts": []map[string]any{{"account": "bab", "on": true, "since": "2026-10-07T00:00:00Z"}},
+ "repairs": []map[string]any{
+ {"account": "bab", "app": "old", "channel": "canary/rc", "version": "v1", "no_record": true, "no_app": true},
+ {"account": "bab", "app": "gone", "channel": "canary/x", "version": "v1", "no_record": true, "no_app": true},
+ },
+ "no_app": []map[string]any{
+ {"account": "bab", "app": "old", "complete": true, "boxes": 3,
+ "running": []map[string]any{{"box": "box-a", "channel": "canary/rc", "at": now.Add(-4 * time.Minute).Format(time.RFC3339)}},
+ "silent": []map[string]any{{"box": "box-b", "at": now.Add(-3 * time.Hour).Format(time.RFC3339)}}},
+ {"account": "bab", "app": "gone", "complete": true, "boxes": 3},
+ {"account": "bab", "app": "partial", "complete": false, "boxes": 2},
+ {"account": "bab", "app": "quiet", "complete": true, "boxes": 1,
+ "silent": []map[string]any{{"box": "box-c", "at": now.Add(-time.Hour).Format(time.RFC3339)}}},
+ {"account": "bab", "app": "empty", "complete": true, "boxes": 0},
+ },
+ })
+ }))
+ defer ts.Close()
+ loginTo(t, ts.URL, "vicky@keymail.dev")
+ out := captureStdout(t)
+ if err := runChannelsDigests(nil); err != nil {
+ t.Fatalf("digests: %v", err)
+ }
+ for _, want := range []string{
+ textNoAppHeader,
+ fmt.Sprintf(textNoAppRunning, "bab", "old", "box-a", "canary/rc", "4m"),
+ fmt.Sprintf(textNoAppSilent, "bab", "old", "box-b", "3h"),
+ fmt.Sprintf(textNoAppNone, "bab", "gone", 3),
+ fmt.Sprintf(textNoAppIncomplete, "bab", "partial"),
+ fmt.Sprintf(textNoAppSilent, "bab", "quiet", "box-c", "1h"),
+ fmt.Sprintf(textNoAppNoReports, "bab", "empty"),
+ textNoAppSnapshot,
+ } {
+ if !strings.Contains(out.String(), want) {
+ t.Fatalf("listing lacks %q:\n%s", want, out.String())
+ }
+ }
+ // An app a box runs, an incomplete read, a box that cannot say and no
+ // reports at all never read as "no box reports running it".
+ for _, app := range []string{"old", "partial", "quiet", "empty"} {
+ if strings.Contains(out.String(), " bab/"+app+": no box reports running it") {
+ t.Fatalf("%s was said to run nowhere:\n%s", app, out.String())
+ }
+ }
+}
+
+func TestReportAge(t *testing.T) {
+ now := time.Date(2026, 12, 2, 12, 0, 0, 0, time.UTC)
+ for at, want := range map[string]string{
+ now.Add(-20 * time.Second).Format(time.RFC3339): "<1m",
+ now.Add(-4 * time.Minute).Format(time.RFC3339): "4m",
+ now.Add(-3 * time.Hour).Format(time.RFC3339): "3h",
+ now.Add(-50 * time.Hour).Format(time.RFC3339): "2d",
+ "not a time": "not a time",
+ } {
+ if got := reportAge(at, now); got != want {
+ t.Errorf("reportAge(%q) = %q, want %q", at, got, want)
+ }
+ }
+}
diff --git a/channels_digests.go b/channels_digests.go
index c2e837b8a..f37d26297 100644
--- a/channels_digests.go
+++ b/channels_digests.go
@@ -104,6 +104,90 @@ type apiPointerDigests struct {
// Repairs is nil when the console predates the listing, never empty
// for that reason: an empty list is a clean answer.
Repairs *[]apiDigestRepair `json:"repairs"`
+ // NoApp is, per app the repair listing marks "no app on this console",
+ // what the box reports say about it (#1634). Absent from an older
+ // console and from the direct-store report.
+ NoApp []apiNoAppEvidence `json:"no_app"`
+}
+
+// apiNoAppEvidence is one app's box-report evidence: how many reports were
+// read and whether all were, the reports naming a route of the app, and
+// the reports that cannot say which apps their box runs.
+type apiNoAppEvidence struct {
+ Account string `json:"account"`
+ App string `json:"app"`
+ Complete bool `json:"complete"`
+ Boxes int `json:"boxes"`
+ Running []apiBoxReported `json:"running"`
+ Silent []apiBoxReported `json:"silent"`
+}
+
+type apiBoxReported struct {
+ Box string `json:"box"`
+ Channel string `json:"channel"`
+ At string `json:"at"`
+}
+
+// The no-app evidence lines (#1634), reviewed by Luna under delegation
+// (2026-12-02).
+const (
+ textNoAppHeader = "Apps with no entry on this console, based on the boxes' last reports:"
+ textNoAppNone = " %s/%s: no box reports running it (%d box reports read)"
+ textNoAppRunning = " %s/%s: box %s last reported it running on %s (report %s old)"
+ textNoAppSilent = " %s/%s: box %s's report cannot say which apps it runs (report %s old)"
+ textNoAppNoReports = " %s/%s: there are no box reports to read"
+ textNoAppIncomplete = " %s/%s: not every box report could be read"
+ textNoAppSnapshot = "Box reports are snapshots, written every few minutes; a box with no report for a day is no longer listed."
+)
+
+// printNoAppEvidence prints what the box reports say about each app the
+// repair listing marks "no app on this console" (#1634): which boxes last
+// reported running it, on which channel, and how old each report is. It is
+// evidence for the operator, never a verdict, and nothing acts on it.
+func printNoAppEvidence(rep apiPointerDigests, now time.Time) {
+ if len(rep.NoApp) == 0 {
+ return
+ }
+ fmt.Fprintln(stdout, textNoAppHeader)
+ for _, e := range rep.NoApp {
+ if !e.Complete {
+ fmt.Fprintf(stdout, textNoAppIncomplete+"\n", e.Account, e.App)
+ }
+ for _, r := range e.Running {
+ fmt.Fprintf(stdout, textNoAppRunning+"\n", e.Account, e.App, r.Box, r.Channel, reportAge(r.At, now))
+ }
+ for _, r := range e.Silent {
+ fmt.Fprintf(stdout, textNoAppSilent+"\n", e.Account, e.App, r.Box, reportAge(r.At, now))
+ }
+ switch {
+ case !e.Complete || len(e.Running) > 0 || len(e.Silent) > 0:
+ case e.Boxes == 0:
+ fmt.Fprintf(stdout, textNoAppNoReports+"\n", e.Account, e.App)
+ default:
+ fmt.Fprintf(stdout, textNoAppNone+"\n", e.Account, e.App, e.Boxes)
+ }
+ }
+ mutedf(stdout, textNoAppSnapshot)
+}
+
+// reportAge is how long ago a report's RFC 3339 time was, coarsely: <1m,
+// minutes, hours under two days, then days. A time that does not parse is
+// printed as sent.
+func reportAge(at string, now time.Time) string {
+ t, err := time.Parse(time.RFC3339, at)
+ if err != nil {
+ return at
+ }
+ d := now.Sub(t)
+ switch {
+ case d < time.Minute:
+ return "<1m"
+ case d < time.Hour:
+ return fmt.Sprintf("%dm", int(d.Minutes()))
+ case d < 48*time.Hour:
+ return fmt.Sprintf("%dh", int(d.Hours()))
+ }
+ return fmt.Sprintf("%dd", int(d.Hours())/24)
}
// repairCell is the repair a line needs. A head can need both: the
@@ -428,6 +512,7 @@ func runChannelsDigests(args []string) error {
}
}
printRepairs(rep, failed, scope)
+ printNoAppEvidence(rep, time.Now())
switch {
case len(rep.Channels) > 0:
w := newTable(stdout)
diff --git a/docs/site/cli.md b/docs/site/cli.md
index c8ba0a8bd..d82e9f510 100644
--- a/docs/site/cli.md
+++ b/docs/site/cli.md
@@ -1040,6 +1040,13 @@ the bucket and never added, or was left behind when a deletion did not
finish) ends with “(no app on this console)”. The console’s own commands
cannot reach such an app.
+Below the list, box reports are listed for each such app: which boxes
+last reported running it, the channel each reported, and the age of each
+report. Boxes running a CARLOS version too old to identify their apps are
+listed separately. Reports are snapshots written every few minutes. This is
+evidence of what the boxes reported, not proof that nothing runs the app
+now. Nothing deletes channels for these apps yet.
+
### carlos pipeline
Shows an app's release channels and the rules for moving a version through
diff --git a/docs/superpowers/notes/census-proposal-canary-retire-orphan-1634.md b/docs/superpowers/notes/census-proposal-canary-retire-orphan-1634.md
new file mode 100644
index 000000000..df35c1cbf
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-canary-retire-orphan-1634.md
@@ -0,0 +1,16 @@
+# Census approval: canary-retire-orphan-1634
+
+Ruling `census-ruling-canary-retire-orphan-1634`. The independent reviewer approves or rejects every change below, 2 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+Envelopes re-pinned: `.`, `internal/release`, `internal/status`.
+
+Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
+
+New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+
+- new `internal/release/adopt.go:RouteChannel`: reads +whole:Route; written legacy, accepted-legacy, frozen
+- reads `internal/status/snapshot.go:CollectBox`: +registry:App ×2, +whole:Route ×2; keeps legacy, task accepted-legacy
+
+Seal: `ce9536904e10de3f5e5c582061f130f870515ae0999de2946658ea49e4a17bf8` → `83cd5238dcd073e8fc89934a72f9c60b96081f15054f32a168f6cd594c88f49c`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-canary-retire-orphan-1634.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/console/apidigests.go b/internal/console/apidigests.go
index 9d7c8c5ce..fd1356ad4 100644
--- a/internal/console/apidigests.go
+++ b/internal/console/apidigests.go
@@ -245,6 +245,9 @@ func (s *Server) handleAPISystemPointerDigests(w http.ResponseWriter, r *http.Re
// Accounts are walked digestWalkers at a time, each into its own slot,
// so the report keeps the sequential walk's order under the deadline
// (Fable R3 P2-1).
+ // The box reports are folded once, and only if some account lists an
+ // app with no row (#1634).
+ facts := sync.OnceValue(func() func(acct, app string) appFacts { return s.remoteFactsFold(ctx) })
walks := make([]digestAccountWalk, len(sqids))
sem := make(chan struct{}, digestWalkers)
var wg sync.WaitGroup
@@ -252,17 +255,18 @@ func (s *Server) handleAPISystemPointerDigests(w http.ResponseWriter, r *http.Re
sem <- struct{}{}
wg.Go(func() {
defer func() { <-sem }()
- walks[i] = s.walkDigestAccount(ctx, sqid, !known[sqid])
+ walks[i] = s.walkDigestAccount(ctx, sqid, !known[sqid], facts)
})
}
wg.Wait()
- acctRows, chRows, repRows := []digestAcctRow{}, []digestChRow{}, []digestRepRow{}
+ acctRows, chRows, repRows, noAppRows := []digestAcctRow{}, []digestChRow{}, []digestRepRow{}, []digestNoAppRow{}
for _, wk := range walks {
acctRows = append(acctRows, wk.row)
chRows = append(chRows, wk.channels...)
repRows = append(repRows, wk.repairs...)
+ noAppRows = append(noAppRows, wk.noApp...)
}
- writeJSON(w, http.StatusOK, map[string]any{"accounts": acctRows, "channels": chRows, "repairs": repRows})
+ writeJSON(w, http.StatusOK, map[string]any{"accounts": acctRows, "channels": chRows, "repairs": repRows, "no_app": noAppRows})
}
// digestWalkers is how many accounts the pointer digests report walks at once.
@@ -327,12 +331,51 @@ type digestAccountWalk struct {
row digestAcctRow
channels []digestChRow
repairs []digestRepRow
+ noApp []digestNoAppRow
+}
+
+// digestNoAppRow is what the box reports say about one app the console has
+// no row for and the repair listing names (#1634): read-only evidence for
+// the operator, never a verdict. Boxes is how many reports were read and
+// Complete whether all were; Running is each report naming a route of the
+// app; Silent each report that cannot say which apps its box runs. A box
+// that stopped reporting counts by its last report until the status
+// listing drops it a day later; At says how old each report is.
+type digestNoAppRow struct {
+ Account string `json:"account"`
+ App string `json:"app"`
+ Complete bool `json:"complete"`
+ Boxes int `json:"boxes"`
+ Running []digestBoxReport `json:"running,omitempty"`
+ Silent []digestBoxReport `json:"silent,omitempty"`
+}
+
+// digestBoxReport is one box's report in a digestNoAppRow.
+type digestBoxReport struct {
+ Box string `json:"box"`
+ Channel string `json:"channel,omitempty"`
+ At string `json:"at"`
+}
+
+// digestNoAppEvidence is digestNoAppRow for acct/app from the box reports
+// (one fold per request of the pages' cached read: this is a report, not a
+// decision).
+func digestNoAppEvidence(facts func(acct, app string) appFacts, acct, app string) digestNoAppRow {
+ r := facts(acct, app).running()
+ row := digestNoAppRow{Account: acct, App: app, Complete: r.complete, Boxes: r.boxes}
+ for _, br := range r.running {
+ row.Running = append(row.Running, digestBoxReport{Box: br.box, Channel: br.rc.Channel, At: br.at.UTC().Format(time.RFC3339)})
+ }
+ for _, b := range r.silent {
+ row.Silent = append(row.Silent, digestBoxReport{Box: b.box, At: b.at.UTC().Format(time.RFC3339)})
+ }
+ return row
}
// walkDigestAccount reads one account's marker and every app's channels
// for handleAPISystemPointerDigests. A read that fails is the row's error,
// never a shorter listing.
-func (s *Server) walkDigestAccount(ctx context.Context, sqid string, bucketOnly bool) digestAccountWalk {
+func (s *Server) walkDigestAccount(ctx context.Context, sqid string, bucketOnly bool, facts func() func(acct, app string) appFacts) digestAccountWalk {
wk := digestAccountWalk{row: digestAcctRow{Account: sqid, BucketOnly: bucketOnly}}
row := &wk.row
m, err := release.ReadDigestMarker(ctx, s.cfg.Releases, s.cfg.ReleasePub, sqid)
@@ -351,6 +394,7 @@ func (s *Server) walkDigestAccount(ctx context.Context, sqid string, bucketOnly
noApp := s.digestNoApp(ctx, sqid, bucketOnly)
for _, app := range apps {
orphan := noApp(app)
+ listed := len(wk.repairs)
states, _, err := release.DigestReport(ctx, s.cfg.Releases, s.cfg.ReleasePub, sqid, app)
if err != nil {
row.Error = err.Error()
@@ -381,6 +425,10 @@ func (s *Server) walkDigestAccount(ctx context.Context, sqid string, bucketOnly
recs, err := release.RecordReport(ctx, s.cfg.Releases, s.cfg.ReleasePub, sqid, app)
if err != nil {
row.Error = err.Error()
+ // The heads already listed keep their evidence line.
+ if orphan && len(wk.repairs) > listed {
+ wk.noApp = append(wk.noApp, digestNoAppEvidence(facts(), sqid, app))
+ }
break
}
for _, rec := range recs {
@@ -390,6 +438,9 @@ func (s *Server) walkDigestAccount(ctx context.Context, sqid string, bucketOnly
wk.repairs = append(wk.repairs, digestRepRow{Account: sqid, App: app, Version: rec.Version, Record: true, Error: rec.Err,
Unread: rec.Unread, NoBuild: rec.NoBuild, Grant: rec.Grant, GrantMintedAt: grantMinted(rec.Grant, rec.GrantMintedAt), NoApp: orphan})
}
+ if orphan && len(wk.repairs) > listed {
+ wk.noApp = append(wk.noApp, digestNoAppEvidence(facts(), sqid, app))
+ }
}
return wk
}
diff --git a/internal/console/digests_noapp_test.go b/internal/console/digests_noapp_test.go
new file mode 100644
index 000000000..b923d6f73
--- /dev/null
+++ b/internal/console/digests_noapp_test.go
@@ -0,0 +1,111 @@
+package console
+
+import (
+ "context"
+ "crypto/ed25519"
+ "encoding/base64"
+ "encoding/json"
+ "fmt"
+ "net/http"
+ "testing"
+ "time"
+
+ "github.com/carlosframework/platform/internal/release"
+ "github.com/carlosframework/platform/internal/status"
+)
+
+// The box-report evidence about apps with no console row (#1634): the fold
+// keeps every listed box's last word, fresh or stopped, and running picks
+// the reports that name the app and the ones that cannot say.
+func TestAppFactsRunningKeepsEveryBoxsLastWord(t *testing.T) {
+ now := time.Date(2026, 12, 2, 12, 0, 0, 0, time.UTC)
+ said := func(rcs ...status.RouteChannel) *status.BoxMetrics {
+ return &status.BoxMetrics{RouteChannelsReported: true, RouteChannels: rcs}
+ }
+ boxes := []status.Box{
+ {Label: "fresh-runs", GeneratedAt: now.Add(-time.Minute), Metrics: said(status.RouteChannel{Account: "bab", App: "old", Channel: "canary/rc"})},
+ {Label: "stopped-runs", GeneratedAt: now.Add(-3 * time.Hour), Metrics: said(status.RouteChannel{Account: "bab", App: "old", Channel: "stable"})},
+ {Label: "fresh-other", GeneratedAt: now.Add(-time.Minute), Metrics: said(status.RouteChannel{Account: "bab", App: "shop", Channel: "canary/rc"})},
+ {Label: "other-account", GeneratedAt: now.Add(-time.Minute), Metrics: said(status.RouteChannel{Account: "bdq", App: "old", Channel: "canary/rc"})},
+ {Label: "old-binary", GeneratedAt: now.Add(-time.Minute), Metrics: &status.BoxMetrics{Release: "v0.44.2"}},
+ {Label: "no-metrics", GeneratedAt: now.Add(-2 * time.Hour)},
+ }
+ f := appFacts{acct: "bab", app: "old", reports: foldFleetReports(boxes, true, now)}
+ r := f.running()
+ if !r.complete || r.boxes != len(boxes) {
+ t.Fatalf("complete %v, boxes %d", r.complete, r.boxes)
+ }
+ var running, silent []string
+ for _, br := range r.running {
+ running = append(running, fmt.Sprintf("%s %s stale=%v", br.box, br.rc.Channel, br.stale))
+ }
+ for _, b := range r.silent {
+ silent = append(silent, fmt.Sprintf("%s stale=%v", b.box, b.stale))
+ }
+ if got, want := fmt.Sprint(running), "[fresh-runs canary/rc stale=false stopped-runs stable stale=true]"; got != want {
+ t.Fatalf("running = %s, want %s", got, want)
+ }
+ if got, want := fmt.Sprint(silent), "[no-metrics stale=true old-binary stale=false]"; got != want {
+ t.Fatalf("silent = %s, want %s", got, want)
+ }
+}
+
+// The digests report carries the evidence for an app the repair listing
+// marks "no app on this console", and none for an app the console has.
+func TestSystemDigestsDoorCarriesNoAppEvidence(t *testing.T) {
+ fx := newDigestsFixture(t)
+ ctx := context.Background()
+ unbound := func(app, channel string) {
+ t.Helper()
+ legacy := release.ChannelPointer{Schema: 1, App: app, Channel: channel, Version: "v1", PromotedAt: time.Date(2026, 6, 1, 0, 0, 0, 0, time.UTC)}
+ payload, _ := json.MarshalIndent(legacy, "", " ")
+ b64 := base64.StdEncoding.EncodeToString(payload)
+ wire, _ := json.Marshal(map[string]string{"payload": b64, "sig": base64.StdEncoding.EncodeToString(ed25519.Sign(fx.priv, []byte(b64)))})
+ key := release.ChannelKey(release.OpsAccount, app, channel)
+ _, etag, _ := fx.store.Get(ctx, key)
+ if _, err := fx.store.Put(ctx, key, wire, etag); err != nil {
+ t.Fatal(err)
+ }
+ }
+ unbound("km", "canary/x")
+ unbound("direct", "canary/y")
+ now := time.Now().UTC()
+ for _, b := range []status.Box{
+ {Label: "runs-it", GeneratedAt: now, Metrics: &status.BoxMetrics{RouteChannelsReported: true,
+ RouteChannels: []status.RouteChannel{{Account: release.OpsAccount, App: "direct", Channel: "canary/y"}}}},
+ {Label: "cannot-say", GeneratedAt: now, Metrics: &status.BoxMetrics{Release: "v0.44.2"}},
+ } {
+ if err := status.WriteBox(ctx, fx.store, b); err != nil {
+ t.Fatal(err)
+ }
+ }
+ st, out := getRaw(t, fx.ts.URL+"/api/cli/system/pointer-digests", fx.operator)
+ if st != http.StatusOK {
+ t.Fatalf("report: %d %s", st, out)
+ }
+ var rep struct {
+ NoApp []struct {
+ Account, App string
+ Complete bool
+ Boxes int
+ Running []struct{ Box, Channel, At string }
+ Silent []struct{ Box, At string }
+ } `json:"no_app"`
+ }
+ if err := json.Unmarshal([]byte(out), &rep); err != nil {
+ t.Fatalf("report body %s: %v", out, err)
+ }
+ if len(rep.NoApp) != 1 {
+ t.Fatalf("no_app = %+v, want one entry, for direct only\n%s", rep.NoApp, out)
+ }
+ e := rep.NoApp[0]
+ if e.Account != release.OpsAccount || e.App != "direct" || !e.Complete || e.Boxes != 2 {
+ t.Fatalf("no_app entry = %+v", e)
+ }
+ if len(e.Running) != 1 || e.Running[0].Box != "runs-it" || e.Running[0].Channel != "canary/y" || e.Running[0].At == "" {
+ t.Fatalf("running = %+v", e.Running)
+ }
+ if len(e.Silent) != 1 || e.Silent[0].Box != "cannot-say" {
+ t.Fatalf("silent = %+v", e.Silent)
+ }
+}
diff --git a/internal/console/remoteinstances.go b/internal/console/remoteinstances.go
index 735991dd4..194d84e90 100644
--- a/internal/console/remoteinstances.go
+++ b/internal/console/remoteinstances.go
@@ -25,6 +25,7 @@ package console
// is not joined at all (the R18 rule boxJoin.rollout applies).
import (
+ "cmp"
"context"
"errors"
"fmt"
@@ -255,16 +256,51 @@ type fleetReports struct {
// complete is whether every box's report was read. Only a complete read
// can say "no box serves this host".
complete bool
+ // boxes counts the reports read. routes is every listed box's word,
+ // from its last report, about which apps it runs routes of, managed or
+ // not (status BoxMetrics.RouteChannels, #1634); silent is each listed
+ // box whose last report cannot say (no Metrics, or a binary from before
+ // RouteChannelsReported). A stale box counts by its last report too: it
+ // may come back still running what it ran. Only running reads them.
+ boxes int
+ routes []boxRoute
+ silent []boxSeen
+}
+
+// boxSeen is one box's report: its label, when it was written, and
+// whether the box has stopped reporting (status.BoxStale).
+type boxSeen struct {
+ box string
+ at time.Time
+ stale bool
+}
+
+// boxRoute is one box's report of one account/app/channel it runs a route
+// of.
+type boxRoute struct {
+ boxSeen
+ rc status.RouteChannel
}
// foldFleetReports folds box reports into per-host reports. Stale boxes are
-// left out under the fleet's one staleness rule (status.BoxStale), as every
-// other box join does. Only remoteFacts calls it.
+// left out of the per-host reports under the fleet's one staleness rule
+// (status.BoxStale), as every other box join does; the route-channel
+// evidence (#1634) keeps every listed box's last report, stale or not.
+// Only remoteFacts and remoteFactsFold call it.
func foldFleetReports(boxes []status.Box, complete bool, now time.Time) fleetReports {
- f := fleetReports{byHost: map[string][]hostReport{}, complete: complete}
+ f := fleetReports{byHost: map[string][]hostReport{}, complete: complete, boxes: len(boxes)}
for _, b := range boxes {
m := b.Metrics
- if m == nil || status.BoxStale(b, now, status.SnapshotPeriod) {
+ stale := status.BoxStale(b, now, status.SnapshotPeriod)
+ seen := boxSeen{box: b.Label, at: b.GeneratedAt, stale: stale}
+ if m == nil || !m.RouteChannelsReported {
+ f.silent = append(f.silent, seen)
+ } else {
+ for _, rc := range m.RouteChannels {
+ f.routes = append(f.routes, boxRoute{boxSeen: seen, rc: rc})
+ }
+ }
+ if m == nil || stale {
continue
}
reps := map[string]*hostReport{}
@@ -330,6 +366,16 @@ func (s *Server) remoteFacts(ctx context.Context, acct, app string) appFacts {
return appFacts{acct: acct, app: app, reports: foldFleetReports(boxes, complete, time.Now())}
}
+// remoteFactsFold is remoteFacts for many apps from one read and one fold:
+// the pointer digests report asks it for every app it lists "no app on
+// this console" (#1634), so the fleet is folded once per request, not once
+// per app.
+func (s *Server) remoteFactsFold(ctx context.Context) func(acct, app string) appFacts {
+ boxes, complete := s.pageBoxReports(ctx)
+ reports := foldFleetReports(boxes, complete, time.Now())
+ return func(acct, app string) appFacts { return appFacts{acct: acct, app: app, reports: reports} }
+}
+
// host is the one box report about rec's host that may be joined to it, or
// nil. Identity is the record plus a report entry naming the same account
// and app, generated after the record was created: a report naming another
@@ -359,6 +405,36 @@ func (f appFacts) host(rec provision.Record) *hostReport {
// complete is whether every box's report was read.
func (f appFacts) complete() bool { return f.reports.complete }
+// appRunning is what the box reports say about acct/app's routes (#1634):
+// how many reports were read and whether all were, each report naming a
+// route of the app, and each report that cannot say which apps its box
+// runs. A box that has stopped reporting counts by its last report, until
+// the status listing drops it a day after (status.LoadBoxesComplete).
+// Read-only evidence: it shows what the boxes said, never that nothing
+// runs the app now, since a report is a snapshot.
+type appRunning struct {
+ complete bool
+ boxes int
+ running []boxRoute
+ silent []boxSeen
+}
+
+// running is appRunning for f's app, boxes in label order.
+func (f appFacts) running() appRunning {
+ r := f.reports
+ out := appRunning{complete: r.complete, boxes: r.boxes}
+ for _, br := range r.routes {
+ if br.rc.Account == f.acct && br.rc.App == f.app {
+ out.running = append(out.running, br)
+ }
+ }
+ slices.SortFunc(out.running, func(a, b boxRoute) int {
+ return cmp.Or(cmp.Compare(a.box, b.box), cmp.Compare(a.rc.Channel, b.rc.Channel))
+ })
+ out.silent = slices.SortedFunc(slices.Values(r.silent), func(a, b boxSeen) int { return cmp.Compare(a.box, b.box) })
+ return out
+}
+
// seen reports whether any fresh box report names host at all, whoever it
// says the host belongs to: a host some box serves is not "not minted
// anywhere", even when nothing about it can be joined.
diff --git a/internal/console/remoteinstances_round5_test.go b/internal/console/remoteinstances_round5_test.go
index 974f061ce..9f6081a72 100644
--- a/internal/console/remoteinstances_round5_test.go
+++ b/internal/console/remoteinstances_round5_test.go
@@ -27,8 +27,10 @@ import (
// joins reports for a remote host itself fails here.
func TestRemoteFactsOneAccessor(t *testing.T) {
allowed := map[string]map[string]bool{
- "foldFleetReports": {"remoteFacts": true},
- "pageBoxReports": {"remoteFacts": true, "handleApp": true},
+ // remoteFactsFold is remoteFacts for many apps from one fold, for
+ // the pointer digests report's no-app evidence (#1634).
+ "foldFleetReports": {"remoteFacts": true, "remoteFactsFold": true},
+ "pageBoxReports": {"remoteFacts": true, "handleApp": true, "remoteFactsFold": true},
"byHost": {"foldFleetReports": true, "host": true, "seen": true, "unrecorded": true},
}
files, err := filepath.Glob("*.go")
diff --git a/internal/host/egress_nopolicy_linux_test.go b/internal/host/egress_nopolicy_linux_test.go
index 2997ceaf5..9601e431b 100644
--- a/internal/host/egress_nopolicy_linux_test.go
+++ b/internal/host/egress_nopolicy_linux_test.go
@@ -68,6 +68,8 @@ func noPolicyProbes() status.Probes {
// mainNoPolicySnapshot is status/boxes/quiet-harbour.json as main's
// WriteBox wrote it for noPolicyBoxRows with noPolicyProbes.
+// Since #1634 every box report also names its routes' account, app and
+// channel (route_channels), whatever its egress policy.
const mainNoPolicySnapshot = `{
"generated_at": "2026-10-25T09:00:00Z",
"label": "quiet-harbour",
@@ -90,6 +92,29 @@ const mainNoPolicySnapshot = `{
"expired_canaries": null,
"metrics": {
"update_settings": 1,
+ "route_channels": [
+ {
+ "account": "abc",
+ "app": "console",
+ "channel": "stable"
+ },
+ {
+ "account": "abc",
+ "app": "files",
+ "channel": "stable"
+ },
+ {
+ "account": "abc",
+ "app": "shop",
+ "channel": "stable"
+ },
+ {
+ "account": "zzz",
+ "app": "blog",
+ "channel": "stable"
+ }
+ ],
+ "route_channels_reported": true,
"config_guard": "guarded"
}
}`
diff --git a/internal/provision/testdata/plan14-root-reads-canary-retire-orphan-1634.tsv b/internal/provision/testdata/plan14-root-reads-canary-retire-orphan-1634.tsv
new file mode 100644
index 000000000..43549704b
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-canary-retire-orphan-1634.tsv
@@ -0,0 +1,10 @@
+# Census overlay canary-retire-orphan-1634, written by census-propose (#369). census-ruling-canary-retire-orphan-1634, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-canary-retire-orphan-1634.md.
+# 0 body, 0 sites, 3 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 2 new dispositions: 1 reads re-frozen at their disposition with the claim, 1 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
+@legacy 4a111afdbe716ae9877dbe1dc22a891b32835790a542343ca9513ef612cb555f internal/release/adopt.go RouteChannel legacy accepted-legacy accepted-legacy;rev3=census-ruling-canary-retire-orphan-1634;basis=new exported wrapper of routeChannel: reads the route row already in hand (Channel, else stable); no new read of root-owned state whole:Route@66 8db116872da54ea6e41c06291264edeee0b244fe0cb936a6ae1be22ed78dfba3
+@legacy 9967160095261e04a0fa34d472b09d149d8989a60dac4d42eace8a47f9ec14a5 internal/status/snapshot.go CollectBox legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;basis=copies Probes.RootfsReady and RootfsBlocked into BoxMetrics (private, like Layout); the same 28 sites, no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 11 and #329 plan 3 Task 7: copies Probes.Egress and Probes.SizeCommittedMiB into BoxMetrics (private, like Layout) and counts them in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate count is left as is (display);rev3=census-ruling-regional-domains-447;basis=#447 Task 7: copies Probes.AliasesRead into BoxMetrics.AliasesRead (json aliases_read, omitempty) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-fleet-alerts-1;basis=copies Probes.DiskFullETAHours into BoxMetrics.DiskFullETAHours (json disk_full_eta_hours, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-edge-held-streams;basis=copies Probes.HeldStreams into BoxMetrics.HeldStreams (json held_streams, omitempty, additive) and counts it in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-stateless-replicas-3;basis=Fix round 1 Q20: carry already-supplied ReplicaCopies into a separate optional private BoxMetrics replica_copies field; allow copy evidence alone to create the metrics block. Upstreams retains address probes only. Existing 28 Route read sites unchanged; no filesystem, bucket, console or CLI read.;rev3=census-ruling-agent-start-demo-3;basis=Report claim-seed protocol capability only when explicitly configured and runtime moved readiness only when armed; dormant status keeps its original JSON shape. Census read-site delta: unchanged (28).;rev3=census-ruling-stateless-replicas-4-task5;basis=Task 5 (#511 R16 and its amendment): copies Probes.PrevRelease and Probes.ApplyFinished into BoxMetrics (json prev_release and apply_finished, omitempty; private, like Release) and counts them in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-offline-move-stage-refusals-339;basis=#339: copies Probes.OfflineMove into BoxMetrics.OfflineMove (json offline_move, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-platform-mail-submission;basis=Task 3: copies Probes.MailerArmed into BoxMetrics.MailerArmed (json mailer_armed, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 6: copies Probes.NamedUnits into BoxMetrics.NamedUnits (json named_units, omitempty; private) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-fleet-seeded-create-2;basis=Copies Probes.SeedsFloor into BoxMetrics.SeedsFloor and counts it in the metrics gate; a pure copy of a value the agent filled, the same 28 read sites, no read added.;rev3=census-ruling-console-addr-from-install;basis=copies Probes.ConsoleFleet into BoxMetrics (private); no read added;rev3=census-ruling-instance-usage;basis=copies Probes.InstanceUsageDroppedBytes into Box.InstanceUsageDroppedBytes (omitempty, a count only); the same 28 sites, no read added;rev3=census-ruling-demo-disk-slice1-retention;basis=copies Probes.DemoDisk into BoxMetrics.DemoDisk (json demo_disk, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-canary-retire-orphan-1634;basis=builds Metrics.RouteChannels from the routes slice it is handed (App, Account via release.RouteAccount, Channel via release.RouteChannel); no new read, the agent already passes reg.List() (#1634) registry:Alias@4995,registry:App@2419,registry:App@2580,registry:CertExpiresAt@3612,registry:CertExpiresAt@3848,registry:CertExpiresAt@5110,registry:DBPath@2947,registry:DBPath@3005,registry:DNSCheckedAt@3817,registry:DNSCheckedAt@5079,registry:DNSStatus@3591,registry:DNSStatus@3786,registry:DNSStatus@5049,registry:Hibernate@4305,registry:Host@2747,registry:Host@2889,registry:Host@3118,registry:Host@3732,registry:Host@3767,registry:Host@5030,registry:Kind@2925,registry:Kind@4259,registry:Platform@2385,registry:ServingVersion@2776,registry:ServingVersion@2899,registry:Socket@4518,registry:Version@2638,registry:Version@2757,whole:Route@1814,whole:Route@2571,whole:Route@2617,whole:RouteAlias@4892 e49f844254073a0e6640e705eb6fe850a0cc359fdf19c55493a91a0335711952
+internal/release/adopt.go RouteChannel legacy accepted-legacy accepted-legacy;rev3=census-ruling-canary-retire-orphan-1634;basis=new exported wrapper of routeChannel: reads the route row already in hand (Channel, else stable); no new read of root-owned state whole:Route@66 8db116872da54ea6e41c06291264edeee0b244fe0cb936a6ae1be22ed78dfba3
+internal/status/snapshot.go CollectBox legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;basis=copies Probes.RootfsReady and RootfsBlocked into BoxMetrics (private, like Layout); the same 28 sites, no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 11 and #329 plan 3 Task 7: copies Probes.Egress and Probes.SizeCommittedMiB into BoxMetrics (private, like Layout) and counts them in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate count is left as is (display);rev3=census-ruling-regional-domains-447;basis=#447 Task 7: copies Probes.AliasesRead into BoxMetrics.AliasesRead (json aliases_read, omitempty) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-fleet-alerts-1;basis=copies Probes.DiskFullETAHours into BoxMetrics.DiskFullETAHours (json disk_full_eta_hours, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-edge-held-streams;basis=copies Probes.HeldStreams into BoxMetrics.HeldStreams (json held_streams, omitempty, additive) and counts it in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-stateless-replicas-3;basis=Fix round 1 Q20: carry already-supplied ReplicaCopies into a separate optional private BoxMetrics replica_copies field; allow copy evidence alone to create the metrics block. Upstreams retains address probes only. Existing 28 Route read sites unchanged; no filesystem, bucket, console or CLI read.;rev3=census-ruling-agent-start-demo-3;basis=Report claim-seed protocol capability only when explicitly configured and runtime moved readiness only when armed; dormant status keeps its original JSON shape. Census read-site delta: unchanged (28).;rev3=census-ruling-stateless-replicas-4-task5;basis=Task 5 (#511 R16 and its amendment): copies Probes.PrevRelease and Probes.ApplyFinished into BoxMetrics (json prev_release and apply_finished, omitempty; private, like Release) and counts them in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-offline-move-stage-refusals-339;basis=#339: copies Probes.OfflineMove into BoxMetrics.OfflineMove (json offline_move, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-platform-mail-submission;basis=Task 3: copies Probes.MailerArmed into BoxMetrics.MailerArmed (json mailer_armed, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 6: copies Probes.NamedUnits into BoxMetrics.NamedUnits (json named_units, omitempty; private) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-fleet-seeded-create-2;basis=Copies Probes.SeedsFloor into BoxMetrics.SeedsFloor and counts it in the metrics gate; a pure copy of a value the agent filled, the same 28 read sites, no read added.;rev3=census-ruling-console-addr-from-install;basis=copies Probes.ConsoleFleet into BoxMetrics (private); no read added;rev3=census-ruling-instance-usage;basis=copies Probes.InstanceUsageDroppedBytes into Box.InstanceUsageDroppedBytes (omitempty, a count only); the same 28 sites, no read added;rev3=census-ruling-demo-disk-slice1-retention;basis=copies Probes.DemoDisk into BoxMetrics.DemoDisk (json demo_disk, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-canary-retire-orphan-1634;basis=builds Metrics.RouteChannels from the routes slice it is handed (App, Account via release.RouteAccount, Channel via release.RouteChannel); no new read, the agent already passes reg.List() (#1634) registry:Alias@4995,registry:App@2419,registry:App@2580,registry:CertExpiresAt@3612,registry:CertExpiresAt@3848,registry:CertExpiresAt@5110,registry:DBPath@2947,registry:DBPath@3005,registry:DNSCheckedAt@3817,registry:DNSCheckedAt@5079,registry:DNSStatus@3591,registry:DNSStatus@3786,registry:DNSStatus@5049,registry:Hibernate@4305,registry:Host@2747,registry:Host@2889,registry:Host@3118,registry:Host@3732,registry:Host@3767,registry:Host@5030,registry:Kind@2925,registry:Kind@4259,registry:Platform@2385,registry:ServingVersion@2776,registry:ServingVersion@2899,registry:Socket@4518,registry:Version@2638,registry:Version@2757,whole:Route@1814,whole:Route@2571,whole:Route@2617,whole:RouteAlias@4892 e49f844254073a0e6640e705eb6fe850a0cc359fdf19c55493a91a0335711952
+@coverage . 21c45e52bdd4ceb5e87c6c7e2c1fcefde0232ace8ef89f408c07723f0696447f
+@coverage internal/release d00ba7931193dfe5ffc92e2d3fb059b488dbf4e982579a9d3c973a61d34acb66
+@coverage internal/status 98bea86e456dd30655b89849cd4cd5b78618a50aaf41a3ce4623d1c6590efa7f
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index fe0973ce0..dcf23b42c 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -332,3 +332,4 @@ plan14-root-reads-recordview-walk-strays.tsv 594b9e8f940d929bc1d03df932952bde791
plan14-root-reads-config-new-first-1653.tsv af91f62a3bddb72188801f27302643b160b6a6fbdf312315490407fad1f901ac
plan14-root-reads-alias-with-mint-1653.tsv ce9536904e10de3f5e5c582061f130f870515ae0999de2946658ea49e4a17bf8
plan14-root-reads-private-store-scan-1653.tsv ce9536904e10de3f5e5c582061f130f870515ae0999de2946658ea49e4a17bf8
+plan14-root-reads-canary-retire-orphan-1634.tsv 83cd5238dcd073e8fc89934a72f9c60b96081f15054f32a168f6cd594c88f49c
diff --git a/internal/release/adopt.go b/internal/release/adopt.go
index 3fb3eda9c..b197f3c93 100644
--- a/internal/release/adopt.go
+++ b/internal/release/adopt.go
@@ -1403,6 +1403,10 @@ func CapabilityRoute(rt registry.Route) bool {
return Adoptable(rt) && rt.Backing == registry.BackingUnit
}
+// RouteChannel is the channel a route follows, as the adopt pass reads it:
+// its own, else stable. The status report names it per route (#1634).
+func RouteChannel(rt registry.Route) string { return routeChannel(rt) }
+
// routeChannel is the channel a route follows; "" means stable.
func routeChannel(rt registry.Route) string {
if rt.Channel == "" {
diff --git a/internal/status/contract_test.go b/internal/status/contract_test.go
index 60631882d..3069529a8 100644
--- a/internal/status/contract_test.go
+++ b/internal/status/contract_test.go
@@ -83,7 +83,7 @@ var allowedBoxKeys = map[string][]string{
"routes": {"static", "resident", "hibernating", "awake", "asleep"},
"replication": {"healthy", "lag_seconds"},
// capabilities names supported protocols only, in the bucket-private metrics.
- "metrics": {"capabilities", "mem_total_bytes", "mem_avail_bytes", "load1", "disk_free_bytes", "release", "tunnel", "route_versions", "upstreams", "layout", "config_refusals", "config_refusals_total", "release_refusals", "proof_waits", "config_guard", "build_states", "build_states_err", "update_settings", "updates", "egress", "size_committed_mib", "offline_move", "demo_disk"},
+ "metrics": {"capabilities", "mem_total_bytes", "mem_avail_bytes", "load1", "disk_free_bytes", "release", "tunnel", "route_versions", "upstreams", "layout", "config_refusals", "config_refusals_total", "release_refusals", "proof_waits", "config_guard", "build_states", "build_states_err", "update_settings", "updates", "egress", "size_committed_mib", "offline_move", "demo_disk", "route_channels", "route_channels_reported"},
"metrics.route_versions": {wildcardAnyKey},
"metrics.upstreams": {wildcardAnyKey},
"metrics.upstreams.*[]": {"addr", "up", "since", "fails", "last_error"},
@@ -97,6 +97,10 @@ var allowedBoxKeys = map[string][]string{
// release_refusals (D1) names the host and build the box rolled back, in
// the private block only, pinned to the field level for the same reason.
"metrics.release_refusals[]": {"host", "version", "reason", "refused_at", "kind", "recovery_error"},
+ // route_channels (#1634) names each route's account, app and channel,
+ // once each and with no host, in the private block only, pinned to the
+ // field level.
+ "metrics.route_channels[]": {"account", "app", "channel"},
// proof_waits (D3) names the host and build the box is holding for a dev
// proof, in the private block only, pinned to the field level too.
"metrics.proof_waits[]": {"host", "version", "sha256", "prover", "reason", "since"},
diff --git a/internal/status/snapshot.go b/internal/status/snapshot.go
index 4321238fa..0573092da 100644
--- a/internal/status/snapshot.go
+++ b/internal/status/snapshot.go
@@ -24,12 +24,14 @@
package status
import (
+ "cmp"
"context"
"crypto/sha256"
"encoding/binary"
"encoding/json"
"errors"
"os"
+ "slices"
"time"
"github.com/carlosframework/platform/internal/consolefleet"
@@ -692,6 +694,31 @@ type SystemState struct {
At time.Time `json:"at"`
}
+// sortedRouteChannels is the set as BoxMetrics carries it: once each, by
+// account, app, channel; nil for an empty set.
+func sortedRouteChannels(set map[RouteChannel]bool) []RouteChannel {
+ if len(set) == 0 {
+ return nil
+ }
+ out := make([]RouteChannel, 0, len(set))
+ for rc := range set {
+ out = append(out, rc)
+ }
+ slices.SortFunc(out, func(a, b RouteChannel) int {
+ return cmp.Or(cmp.Compare(a.Account, b.Account), cmp.Compare(a.App, b.App), cmp.Compare(a.Channel, b.Channel))
+ })
+ return out
+}
+
+// RouteChannel is one entry of BoxMetrics.RouteChannels: the
+// account its app's bucket keys live under (release.RouteAccount), the app,
+// and the channel the adopt pass follows for it (release.RouteChannel).
+type RouteChannel struct {
+ Account string `json:"account"`
+ App string `json:"app"`
+ Channel string `json:"channel"`
+}
+
// BoxMetrics is the raw, PRIVATE block: real numbers, never banded. It lives
// in status/boxes/<label>.json — which only fleet-status machinery and
// operators read — and is deliberately NOT copied into FleetBox, so the
@@ -792,6 +819,20 @@ type BoxMetrics struct {
// has seen the key, so it is the proxy. Absent (false) on every box
// with no key, and on every box from before the field.
MailerArmed bool `json:"mailer_armed,omitempty"`
+ // RouteChannels is the account, app and channel of every non-platform
+ // route this box carries, managed or not, once each and sorted (#1634):
+ // a named-unit or unit-backed route has no rollout entry, yet root's
+ // adopt pass follows its channel all the same. Built from the routes
+ // this report already lists. It names no host: the console asks only
+ // whether any route of an app is still here, and on which channel.
+ // Omitted when the box has no such route.
+ RouteChannels []RouteChannel `json:"route_channels,omitempty"`
+ // RouteChannelsReported is true from the first binary that builds
+ // RouteChannels, so an absent map on a box that says so means "no
+ // routes", and on one that does not means "this binary cannot say". The
+ // console's pointer digests report lists a box that cannot say as such,
+ // never as one running nothing.
+ RouteChannelsReported bool `json:"route_channels_reported,omitempty"`
// RouteVersions is host -> registry.Route.Version for every non-platform
// route this box carries with a Version the adopt pass has stamped
// (issue #78's staged_version chip) — a hostname-keyed map, which is
@@ -1220,6 +1261,10 @@ func CollectBox(routes []registry.Route, p Probes, now time.Time) Box {
// routeDBBytes is Metrics.RouteDBBytes, built in the same loop and nil
// until the first entry, like routeVersions.
var routeDBBytes map[string]int64
+ // routeChannels is Metrics.RouteChannels (#1634): every non-platform
+ // route's account, app and channel, from the same routes, as a set.
+ // Nil until the first entry, like routeVersions.
+ var routeChannels map[RouteChannel]bool
for _, r := range routes {
// Platform-minted routes (internal/domains) are additional NAMES for
@@ -1233,6 +1278,12 @@ func CollectBox(routes []registry.Route, p Probes, now time.Time) Box {
if r.Platform {
continue
}
+ if r.App != "" {
+ if routeChannels == nil {
+ routeChannels = map[RouteChannel]bool{}
+ }
+ routeChannels[RouteChannel{Account: release.RouteAccount(r), App: r.App, Channel: release.RouteChannel(r)}] = true
+ }
if r.Version != "" {
if routeVersions == nil {
routeVersions = map[string]string{}
@@ -1370,7 +1421,7 @@ func CollectBox(routes []registry.Route, p Probes, now time.Time) Box {
if p.MemTotalBytes != nil || p.MemAvailBytes != nil || p.Load1 != nil ||
p.DiskFreeBytes != nil || p.DiskFullETAHours != nil || p.Release != "" || p.PrevRelease != "" || p.ApplyFinished || p.Tunnel != "" ||
p.InstanceID != "" || p.Platform != "" || p.SystemChannel != "" || p.System != nil ||
- len(routeVersions) > 0 || len(routeServing) > 0 || len(aliasReadings) > 0 || p.AliasesRead || len(p.Upstreams) > 0 || len(p.ReplicaCopies) > 0 ||
+ len(routeVersions) > 0 || len(routeServing) > 0 || len(routeChannels) > 0 || len(aliasReadings) > 0 || p.AliasesRead || len(p.Upstreams) > 0 || len(p.ReplicaCopies) > 0 ||
len(routeDBBytes) > 0 || p.Layout != nil || len(p.ConfigRefusals) > 0 || len(p.ReleaseRefusals) > 0 || len(p.ProofWaits) > 0 || p.Rollout != nil || p.ConfigGuard != "" ||
p.Alerts != nil || p.GeoIP != nil || p.HeldStreams != nil || len(p.BuildStates) > 0 || p.BuildStatesErr != "" ||
p.DemoClaimSeedReady || p.DemoMovedReady || p.UpdateSettings != 0 || len(p.Updates) > 0 || len(p.Egress) > 0 || p.SizeCommittedMiB != nil ||
@@ -1406,8 +1457,12 @@ func CollectBox(routes []registry.Route, p Probes, now time.Time) Box {
Alerts: p.Alerts,
RouteVersions: routeVersions,
RouteServing: routeServing,
- Aliases: aliasReadings,
- AliasesRead: p.AliasesRead,
+ // Every box that attaches Metrics says whether it reports route
+ // channels: this binary always does (#1634).
+ RouteChannels: sortedRouteChannels(routeChannels),
+ RouteChannelsReported: true,
+ Aliases: aliasReadings,
+ AliasesRead: p.AliasesRead,
// Carried through as the prober handed it over: proberSet.State
// already returns a fresh copy per call, so there is nothing here
// for a later probe tick to mutate under the marshaller. An empty
diff --git a/internal/status/snapshot_test.go b/internal/status/snapshot_test.go
index 500b33c42..9f83aa2c1 100644
--- a/internal/status/snapshot_test.go
+++ b/internal/status/snapshot_test.go
@@ -381,7 +381,7 @@ func TestCollectBoxCarriesAliasesRead(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- if !strings.Contains(string(out), `"metrics":{"aliases_read":true}`) {
+ if !strings.Contains(string(out), `"metrics":{"route_channels_reported":true,"aliases_read":true}`) {
t.Fatalf("json lacks the aliases_read-only metrics block: %s", out)
}
off := CollectBox(nil, Probes{Release: "v1"}, at)
diff --git a/internal/status/status_test.go b/internal/status/status_test.go
index b5e0f2bc9..0d15b26d3 100644
--- a/internal/status/status_test.go
+++ b/internal/status/status_test.go
@@ -2,11 +2,13 @@ package status_test
import (
"bytes"
+ "cmp"
"context"
"encoding/json"
"errors"
"fmt"
"reflect"
+ "slices"
"strings"
"testing"
"time"
@@ -386,6 +388,67 @@ func TestCollectBoxCarriesRouteVersions(t *testing.T) {
}
}
+// TestCollectBoxCarriesRouteChannels (#1634): every non-platform route with
+// an app is listed by account, app and channel, once each (two routes of
+// shop on canary/rc are one entry), managed or not: a
+// named-unit route and a unit-backed one count as much as an activator
+// route, since root's adopt pass follows their channels too. A legacy row
+// with no account reads as the ops account, an empty channel as stable, as
+// the adopt pass reads them. A platform alias is a second name, not a
+// route, and the field stays private like route_versions.
+func TestCollectBoxCarriesRouteChannels(t *testing.T) {
+ routes := []registry.Route{
+ {Host: "a.shop.example.com", Kind: "instance", Status: "ready", Account: "bab", App: "shop", Channel: "canary/rc"},
+ {Host: "unit.shop.example.com", Kind: "instance", Status: "ready", Account: "bab", App: "shop", Channel: "canary/old", Unit: "shop-worker"},
+ {Host: "backed.example.com", Kind: "instance", Status: "ready", Account: "bab", App: "old", Backing: registry.BackingUnit},
+ {Host: "legacy.example.com", Kind: "instance", Status: "ready", App: "legacy", Channel: "beta"},
+ {Host: "b.shop.example.com", Kind: "instance", Status: "ready", Account: "bab", App: "shop", Channel: "canary/rc"},
+ {Host: "alias.example.com", Kind: "instance", Status: "ready", Account: "bab", App: "alias", Channel: "canary/rc", Platform: true},
+ {Host: "noapp.example.com", Kind: "static", Status: "ready"},
+ }
+ b := status.CollectBox(routes, status.Probes{MachineID: "m"}, time.Now())
+ if b.Metrics == nil || !b.Metrics.RouteChannelsReported {
+ t.Fatalf("metrics = %+v, want route channels reported", b.Metrics)
+ }
+ want := []status.RouteChannel{
+ {Account: release.OpsAccount, App: "legacy", Channel: "beta"},
+ {Account: "bab", App: "old", Channel: "stable"},
+ {Account: "bab", App: "shop", Channel: "canary/old"},
+ {Account: "bab", App: "shop", Channel: "canary/rc"},
+ }
+ slices.SortFunc(want, func(a, b status.RouteChannel) int {
+ return cmp.Or(cmp.Compare(a.Account, b.Account), cmp.Compare(a.App, b.App), cmp.Compare(a.Channel, b.Channel))
+ })
+ if fmt.Sprint(b.Metrics.RouteChannels) != fmt.Sprint(want) {
+ t.Fatalf("route_channels = %v, want %v", b.Metrics.RouteChannels, want)
+ }
+
+ s := teststore(t)
+ ctx := context.Background()
+ f, err := status.BuildFleet(ctx, s, routes, time.Now(), 5*time.Minute)
+ if err != nil {
+ t.Fatal(err)
+ }
+ fj, err := json.Marshal(f)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if strings.Contains(string(fj), "shop") || strings.Contains(string(fj), "canary/") {
+ t.Errorf("fleet.json leaked a route channel: %s", fj)
+ }
+}
+
+// A box with routes but none with an app still says it reports channels
+// whenever its Metrics block attaches, so "no entries" reads as "no
+// routes", never as an older binary.
+func TestCollectBoxRouteChannelsReportedWithNoAppRoutes(t *testing.T) {
+ routes := []registry.Route{{Host: "h.test", Kind: "instance", Status: "ready", Version: "v1"}}
+ b := status.CollectBox(routes, status.Probes{MachineID: "m"}, time.Now())
+ if b.Metrics == nil || !b.Metrics.RouteChannelsReported || len(b.Metrics.RouteChannels) != 0 {
+ t.Fatalf("metrics = %+v, want reported with no entries", b.Metrics)
+ }
+}
+
// TestCollectBoxRouteVersionsEmptyOmitsField proves a box with no versioned
// route contributes no route_versions key at all — omitted, not an empty
// object — matching the same "unknown/absent stays absent" convention every