carlos canary retire: delete an unfollowed canary pointer from the CLI
#1634. The browser's Retire was the only way to delete a canary/<name>
pointer, so CLI users were stuck with stale canary rows in carlos
channels digests, and the docs said there was no pointer to delete.
- The browser door's guard and delete become one shared core
(internal/console/canary_retire.go): follower check over registry,
records and box reports, the settle window, app lock, record-stamp
recheck, CAS delete. Browser behaviour unchanged.
- carlos canary retire through POST /api/cli/apps/{account}/{app}/
canary/retire: persons only, write budget.
- carlos channels digests marks a line of an app the console has no row
for (under an account it has) with "(no app on this console)" after
its repair.
- canary rm's closing line, help, docs/site/cli.md and parity name the
new verb. Copy reviewed by Luna under delegation.
The operator door for apps with no console row was cut after review
round 1 (unmanaged hand routes on other boxes are invisible to box
reports) and is parked on canary-retire-orphan-1634.
Reviews: Astra and Fable, round 2 READY. Census: root envelope only,
approved by both, recorded on #280.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Squashed from canary-retire-cli-1634 into main.
25 files changed,
+927
−178
.amadan/code-health.tsv+3 −3canary.go+19 −8canary_retire.go+77 −0canary_retire_test.go+95 −0channels_digests.go+19 −0docs/parity.md+3 −3docs/site/cli.md+15 −4docs/superpowers/notes/census-proposal-canary-retire-cli-1634.md+11 −0internal/console/apidigests.go+35 −2internal/console/canary_retire.go+346 −0internal/console/canary_retire_test.go+231 −0internal/console/claim_invariant_fixtures_test.go+7 −0internal/console/identity_foldguard_test.go+1 −1internal/console/linkedpolicy.go+1 −0internal/console/routedecls.go+3 −0internal/console/server.go+0 −138internal/console/svcroutes_test.go+5 −2internal/console/testdata/claim-routes.txt+1 −0internal/provision/canary_retire_1634_census_test.go+31 −0internal/provision/plan9_b8_census_test.go+1 −1internal/provision/testdata/plan14-root-reads-canary-retire-cli-1634.tsv+3 −0internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0parity/cli.tsv+1 −0parity/parity.tsv+1 −1testdata/clireg-golden.jsonl+17 −15
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-9XoWKi
.amadan/test-gate.sh
go: downloading github.com/aws/aws-sdk-go-v2 v1.44.0
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.68.0
go: downloading github.com/aws/aws-sdk-go-v2/service/costexplorer v1.67.5
go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading golang.org/x/net v0.62.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/sns v1.43.0
go: downloading github.com/prometheus/client_golang v1.17.0
go: downloading golang.org/x/crypto v0.58.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.324.0
go: downloading github.com/aws/aws-sdk-go-v2/service/iam v1.58.2
go: downloading golang.org/x/sys v0.49.0
go: downloading github.com/pion/logging v0.2.4
go: downloading github.com/pion/stun/v3 v3.1.5
go: downloading github.com/pion/turn/v4 v4.1.4
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/aws/aws-sdk-go-v2/service/ssm v1.74.0
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 github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.20.18
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/pion/dtls/v3 v3.1.4
go: downloading github.com/pion/transport/v4 v4.0.2
go: downloading github.com/pion/randutil v0.1.0
go: downloading golang.org/x/text v0.43.0
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading github.com/klauspost/compress v1.20.2
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/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 modernc.org/memory v1.11.0
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/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
=== 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 (177 s, from +0 s)
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/memory v1.11.0
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
=== vet-tags (179 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/pierrec/lz4/v4 v4.1.22
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/mathutil v1.7.1
=== gofmt (1 s, from +0 s)
gofmt -l .: clean
=== rest (384 s, from +15 s)
ok github.com/carlosframework/platform/cmd/carlos-media 122.854s
? github.com/carlosframework/platform/cmd/changelog [no test files]
ok github.com/carlosframework/platform/cmd/console 217.369s
ok github.com/carlosframework/platform/cmd/mediaimage 41.545s
ok github.com/carlosframework/platform/cmd/moveprobe 16.125s
ok github.com/carlosframework/platform/cmd/pricebook-export 0.032s
ok github.com/carlosframework/platform/cmd/rootfswitness 0.125s
ok github.com/carlosframework/platform/cmd/runsc-assets 0.153s
ok github.com/carlosframework/platform/cmd/zddprobe 1.053s
ok github.com/carlosframework/platform/internal/agentsock 0.077s
ok github.com/carlosframework/platform/internal/alerting 0.020s
ok github.com/carlosframework/platform/internal/analytics 0.620s
ok github.com/carlosframework/platform/internal/appconfig 44.510s
ok github.com/carlosframework/platform/internal/apperr 0.436s
ok github.com/carlosframework/platform/internal/applog 5.537s
ok github.com/carlosframework/platform/internal/apppolicy 3.262s
ok github.com/carlosframework/platform/internal/assetcache 0.462s
ok github.com/carlosframework/platform/internal/awsinv 0.019s
ok github.com/carlosframework/platform/internal/awsmanaged 10.592s
ok github.com/carlosframework/platform/internal/awsregiongroup 0.178s
ok github.com/carlosframework/platform/internal/awsterminations 0.024s
ok github.com/carlosframework/platform/internal/backupswords 0.014s
ok github.com/carlosframework/platform/internal/billing 0.061s
ok github.com/carlosframework/platform/internal/billing/billingtest 0.047s
ok github.com/carlosframework/platform/internal/billingstripe 2.142s
ok github.com/carlosframework/platform/internal/boxchoice 0.057s
ok github.com/carlosframework/platform/internal/boxid 3.943s
? 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.015s
ok github.com/carlosframework/platform/internal/boxself 0.386s
ok github.com/carlosframework/platform/internal/boxvolumes 0.051s
ok github.com/carlosframework/platform/internal/caps 4.340s
ok github.com/carlosframework/platform/internal/certwarm 0.011s
ok github.com/carlosframework/platform/internal/cgroup 1.496s
ok github.com/carlosframework/platform/internal/changelog 4.620s
ok github.com/carlosframework/platform/internal/clamd 0.078s
? github.com/carlosframework/platform/internal/cliflag [no test files]
ok github.com/carlosframework/platform/internal/clireg 0.009s
ok github.com/carlosframework/platform/internal/codehealth 17.435s
ok github.com/carlosframework/platform/internal/compute 0.026s
ok github.com/carlosframework/platform/internal/consolefleet 0.008s
? github.com/carlosframework/platform/internal/controlname [no test files]
? github.com/carlosframework/platform/internal/controlsock [no test files]
ok github.com/carlosframework/platform/internal/dbdoor 10.960s
ok github.com/carlosframework/platform/internal/dbdoor/dbdoortest 0.032s
ok github.com/carlosframework/platform/internal/dbquery 0.018s
ok github.com/carlosframework/platform/internal/dbreads 2.822s
? github.com/carlosframework/platform/internal/dbreads/dbreadstest [no test files]
ok github.com/carlosframework/platform/internal/dbverify 0.041s
ok github.com/carlosframework/platform/internal/demo 0.013s
ok github.com/carlosframework/platform/internal/demobuild 5.809s
ok github.com/carlosframework/platform/internal/democlaim 0.631s
ok github.com/carlosframework/platform/internal/devbox 17.126s
ok github.com/carlosframework/platform/internal/dnsrec 0.014s
ok github.com/carlosframework/platform/internal/docsite 0.113s
ok github.com/carlosframework/platform/internal/domainreg 0.007s
ok github.com/carlosframework/platform/internal/domains 72.477s
ok github.com/carlosframework/platform/internal/doorkey 0.016s
ok github.com/carlosframework/platform/internal/economics 0.020s
ok github.com/carlosframework/platform/internal/edgefence 0.092s
ok github.com/carlosframework/platform/internal/edgeguard 0.206s
? github.com/carlosframework/platform/internal/edgeproof [no test files]
ok github.com/carlosframework/platform/internal/edgesfile 0.061s
ok github.com/carlosframework/platform/internal/egressaddr 0.008s
ok github.com/carlosframework/platform/internal/execsandbox 102.208s
ok github.com/carlosframework/platform/internal/fileacl 0.012s
ok github.com/carlosframework/platform/internal/fleetapi 1.900s
ok github.com/carlosframework/platform/internal/fleetstore 0.011s
ok github.com/carlosframework/platform/internal/fxrate 0.011s
ok github.com/carlosframework/platform/internal/gate 4.337s
ok github.com/carlosframework/platform/internal/genselect 0.058s
ok github.com/carlosframework/platform/internal/geo 0.019s
ok github.com/carlosframework/platform/internal/geoip 0.071s
ok github.com/carlosframework/platform/internal/groupadmission 0.017s
ok github.com/carlosframework/platform/internal/grouprollaws 16.887s
ok github.com/carlosframework/platform/internal/hadeparture 0.012s
ok github.com/carlosframework/platform/internal/hafresh 0.025s
ok github.com/carlosframework/platform/internal/hairpin 0.187s
ok github.com/carlosframework/platform/internal/historyreadback 1.059s
ok github.com/carlosframework/platform/internal/hostactors 25.431s
ok github.com/carlosframework/platform/internal/hostbox 23.222s
ok github.com/carlosframework/platform/internal/hostclaim 2.980s
ok github.com/carlosframework/platform/internal/hostenv 0.057s
ok github.com/carlosframework/platform/internal/hostevidence 0.027s
ok github.com/carlosframework/platform/internal/hostexec 25.867s
ok github.com/carlosframework/platform/internal/hostfence 0.174s
ok github.com/carlosframework/platform/internal/hostfiles 27.548s
ok github.com/carlosframework/platform/internal/hostfloor 0.280s
ok github.com/carlosframework/platform/internal/hostguard 1.545s
ok github.com/carlosframework/platform/internal/hostops 9.356s
? github.com/carlosframework/platform/internal/hostops/fencerelease [no test files]
ok github.com/carlosframework/platform/internal/hostops/internal/fencerelease 0.017s
ok github.com/carlosframework/platform/internal/hostquarantine 0.009s
ok github.com/carlosframework/platform/internal/hostrelocate 1.771s
ok github.com/carlosframework/platform/internal/hostresolve 0.754s
ok github.com/carlosframework/platform/internal/hostwrite 0.015s
ok github.com/carlosframework/platform/internal/identity 0.006s
ok github.com/carlosframework/platform/internal/infraview 0.015s
ok github.com/carlosframework/platform/internal/ingresshealth 0.007s
ok github.com/carlosframework/platform/internal/ingresshealth/awstg 0.013s
ok github.com/carlosframework/platform/internal/instancectl 66.566s
ok github.com/carlosframework/platform/internal/instanceexec 11.231s
ok github.com/carlosframework/platform/internal/instancefs 17.405s
ok github.com/carlosframework/platform/internal/instancekey 0.008s
ok github.com/carlosframework/platform/internal/instanceupdates 0.022s
ok github.com/carlosframework/platform/internal/interactive 0.737s
ok github.com/carlosframework/platform/internal/launchd 0.010s
ok github.com/carlosframework/platform/internal/layout 22.210s
ok github.com/carlosframework/platform/internal/layout/pubclass 103.397s
ok github.com/carlosframework/platform/internal/lbhealth 0.008s
ok github.com/carlosframework/platform/internal/lease 151.247s
ok github.com/carlosframework/platform/internal/lease/leasetest 1.333s
ok github.com/carlosframework/platform/internal/lease/locktest 0.016s
ok github.com/carlosframework/platform/internal/ledger 0.054s
ok github.com/carlosframework/platform/internal/mail 3.745s
ok github.com/carlosframework/platform/internal/mailer 1.078s
ok github.com/carlosframework/platform/internal/mailsubmit 1.402s
ok github.com/carlosframework/platform/internal/mailwire 0.018s
ok github.com/carlosframework/platform/internal/maintenance 0.206s
ok github.com/carlosframework/platform/internal/maintenanceexec 8.084s
ok github.com/carlosframework/platform/internal/maintenanceguard 0.426s
ok github.com/carlosframework/platform/internal/managedboot 5.014s
? github.com/carlosframework/platform/internal/managedboot/boottest [no test files]
? github.com/carlosframework/platform/internal/managedboot/roottest [no test files]
ok github.com/carlosframework/platform/internal/media 2.661s
ok github.com/carlosframework/platform/internal/media/mediatest 0.015s
ok github.com/carlosframework/platform/internal/mediaaws 64.011s
ok github.com/carlosframework/platform/internal/mediahandler 42.387s
ok github.com/carlosframework/platform/internal/mediajobs 1.686s
ok github.com/carlosframework/platform/internal/medialocal 9.993s
ok github.com/carlosframework/platform/internal/metrics 0.132s
ok github.com/carlosframework/platform/internal/minorunits 0.011s
ok github.com/carlosframework/platform/internal/moves 54.249s
ok github.com/carlosframework/platform/internal/moves/archive 3.059s
ok github.com/carlosframework/platform/internal/moves/offlinerun 0.114s
ok github.com/carlosframework/platform/internal/namedunits 0.034s
ok github.com/carlosframework/platform/internal/objstore 2.415s
ok github.com/carlosframework/platform/internal/ops 16.341s
ok github.com/carlosframework/platform/internal/pageindex 4.142s
ok github.com/carlosframework/platform/internal/parity 0.238s
? github.com/carlosframework/platform/internal/parity/cmd/parity-doc [no test files]
ok github.com/carlosframework/platform/internal/park 0.809s
ok github.com/carlosframework/platform/internal/perf 0.224s
ok github.com/carlosframework/platform/internal/plans 0.143s
ok github.com/carlosframework/platform/internal/privatefile 0.014s
ok github.com/carlosframework/platform/internal/provision 235.797s
ok github.com/carlosframework/platform/internal/proxyproto 0.958s
ok github.com/carlosframework/platform/internal/publicrelease 0.158s
ok github.com/carlosframework/platform/internal/ratelimit 0.221s
ok github.com/carlosframework/platform/internal/regionlabel 0.063s
ok github.com/carlosframework/platform/internal/regionname 0.052s
ok github.com/carlosframework/platform/internal/registrar 0.014s
ok github.com/carlosframework/platform/internal/registrar/openprovider 0.839s
? github.com/carlosframework/platform/internal/registrar/registrartest [no test files]
ok github.com/carlosframework/platform/internal/registry 82.656s
ok github.com/carlosframework/platform/internal/relay 7.593s
ok github.com/carlosframework/platform/internal/release 125.251s
? github.com/carlosframework/platform/internal/release/requestwitness [no test files]
ok github.com/carlosframework/platform/internal/replicagen 0.009s
ok github.com/carlosframework/platform/internal/replicas 0.104s
ok github.com/carlosframework/platform/internal/reqrec 8.608s
ok github.com/carlosframework/platform/internal/rollout 10.335s
ok github.com/carlosframework/platform/internal/rolloutwords 0.021s
ok github.com/carlosframework/platform/internal/rootaws 103.233s
ok github.com/carlosframework/platform/internal/rootfsimage 1.306s
ok github.com/carlosframework/platform/internal/rootparticipation 0.121s
ok github.com/carlosframework/platform/internal/rootstate 0.046s
ok github.com/carlosframework/platform/internal/runs 0.732s
ok github.com/carlosframework/platform/internal/s3compat 0.055s
ok github.com/carlosframework/platform/internal/s3fake 1.531s
ok github.com/carlosframework/platform/internal/s3meter 0.404s
ok github.com/carlosframework/platform/internal/safefile 0.037s
ok github.com/carlosframework/platform/internal/schedule 24.559s
ok github.com/carlosframework/platform/internal/seeds 0.112s
ok github.com/carlosframework/platform/internal/share 0.029s
ok github.com/carlosframework/platform/internal/sim/litestreamfacts 4.730s
ok github.com/carlosframework/platform/internal/sim/mediajobs 51.159s
ok github.com/carlosframework/platform/internal/sim/regionha 21.700s
ok github.com/carlosframework/platform/internal/status 0.378s
ok github.com/carlosframework/platform/internal/steering 0.207s
ok github.com/carlosframework/platform/internal/stopevidence 0.366s
ok github.com/carlosframework/platform/internal/storecfg 0.321s
ok github.com/carlosframework/platform/internal/svcrole 0.019s
ok github.com/carlosframework/platform/internal/systemd 6.499s
? github.com/carlosframework/platform/internal/systemdshow [no test files]
ok github.com/carlosframework/platform/internal/team 3.313s
ok github.com/carlosframework/platform/internal/teamcontract 0.171s
ok github.com/carlosframework/platform/internal/telemetry 0.022s
ok github.com/carlosframework/platform/internal/termfence 3.629s
ok github.com/carlosframework/platform/internal/timerspec 0.014s
ok github.com/carlosframework/platform/internal/tsidentity 4.180s
ok github.com/carlosframework/platform/internal/tunnelclient 0.448s
ok github.com/carlosframework/platform/internal/unixdial 0.007s
ok github.com/carlosframework/platform/internal/updatewords 0.043s
ok github.com/carlosframework/platform/internal/upstreamguard 0.018s
? github.com/carlosframework/platform/internal/upstreamguard/guardtest [no test files]
ok github.com/carlosframework/platform/internal/usage 0.201s
ok github.com/carlosframework/platform/internal/version 0.010s
ok github.com/carlosframework/platform/internal/vet 2.912s
ok github.com/carlosframework/platform/internal/zonehost 0.033s
ok github.com/carlosframework/platform/internal/zonehost/route53zones 0.061s
? 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.025s
ok github.com/carlosframework/platform/scripts/pathmapcheck 0.102s
ok github.com/carlosframework/platform/scripts/region-ha-g2/fixture 5.238s
ok github.com/carlosframework/platform/scripts/stateless-replicas-drill 1.204s
ok github.com/carlosframework/platform/scripts/witness-pointer 0.015s
=== cutover-witness (168 s, from +15 s)
ok github.com/carlosframework/platform 3.640s
=== internal_grouproll@0 (276 s, from +74 s)
ok github.com/carlosframework/platform/internal/grouproll 275.151s
=== internal_grouproll@1 (279 s, from +74 s)
ok github.com/carlosframework/platform/internal/grouproll 278.370s
=== internal_activator@0 (153 s, from +145 s)
ok github.com/carlosframework/platform/internal/activator 149.070s
=== internal_activator@1 (134 s, from +145 s)
ok github.com/carlosframework/platform/internal/activator 129.276s
=== internal_activator@2 (143 s, from +145 s)
ok github.com/carlosframework/platform/internal/activator 138.672s
=== internal_activator@3 (155 s, from +145 s)
ok github.com/carlosframework/platform/internal/activator 151.399s
=== internal_edge@0 (205 s, from +173 s)
ok github.com/carlosframework/platform/internal/edge 196.771s
=== internal_edge@1 (198 s, from +173 s)
ok github.com/carlosframework/platform/internal/edge 188.602s
=== internal_edge@2 (165 s, from +173 s)
ok github.com/carlosframework/platform/internal/edge 156.956s
=== internal_edge@3 (154 s, from +173 s)
ok github.com/carlosframework/platform/internal/edge 147.082s
=== root@0 (114 s, from +177 s)
ok github.com/carlosframework/platform 104.520s
=== root@1 (116 s, from +177 s)
ok github.com/carlosframework/platform 106.234s
=== root@2 (123 s, from +177 s)
ok github.com/carlosframework/platform 113.305s
=== root@3 (114 s, from +177 s)
ok github.com/carlosframework/platform 103.541s
=== root@4 (100 s, from +177 s)
ok github.com/carlosframework/platform 90.532s
=== internal_host@0 (148 s, from +223 s)
ok github.com/carlosframework/platform/internal/host 142.914s
=== internal_host@1 (259 s, from +223 s)
ok github.com/carlosframework/platform/internal/host 253.618s
=== internal_host@2 (232 s, from +223 s)
ok github.com/carlosframework/platform/internal/host 226.565s
=== internal_host@3 (166 s, from +223 s)
ok github.com/carlosframework/platform/internal/host 161.040s
=== internal_host@4 (253 s, from +223 s)
ok github.com/carlosframework/platform/internal/host 247.893s
=== internal_host@5 (151 s, from +223 s)
ok github.com/carlosframework/platform/internal/host 146.417s
=== internal_console@0 (212 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 205.265s
=== internal_console@1 (215 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 207.516s
=== internal_console@2 (211 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 203.821s
=== internal_console@3 (261 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 253.891s
=== internal_console@4 (216 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 209.085s
=== internal_console@5 (256 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 248.716s
=== internal_console@6 (227 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 220.296s
=== internal_console@7 (219 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 211.818s
=== internal_console@8 (223 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 215.312s
=== internal_console@9 (231 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 223.812s
=== internal_console@10 (277 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 270.231s
=== internal_console@11 (253 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 246.127s
=== internal_console@12 (313 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 306.200s
=== internal_console@13 (224 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 216.583s
=== internal_console@14 (216 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 209.018s
=== internal_console@15 (244 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 235.875s
=== internal_console@16 (218 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 209.673s
=== internal_console@17 (210 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 202.463s
=== internal_console@18 (256 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 249.360s
=== internal_console@19 (220 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 213.229s
=== internal_console@20 (224 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 216.220s
=== internal_console@21 (260 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 253.244s
=== internal_console@22 (237 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 228.846s
=== internal_console@23 (274 s, from +229 s)
ok github.com/carlosframework/platform/internal/console 266.351s
=== lists: internal_console 228 s, internal_edge 172 s, internal_activator 144 s, internal_host 222 s, root 176 s, internal_grouproll 73 s
=== cpu: the gate used 13207 cpu-seconds in 542 s, about 24.4 of 32 cores; the machine as a whole was 81% busy
=== opentofu ===
opentofu: 40 test files in 11 suites, OpenTofu v1.13.9
initialised in 15 s
ok 18 s infra/modules/box-fence-writer/tests/writer.tftest.hcl Success! 1 passed, 0 failed.
ok 17 s infra/modules/deployment-buckets/tests/console_floors.tftest.hcl Success! 1 passed, 0 failed.
ok 31 s infra/modules/deployment-buckets/tests/data_lifecycle.tftest.hcl Success! 3 passed, 0 failed.
ok 22 s infra/modules/deployment-buckets/tests/db_reads.tftest.hcl Success! 1 passed, 0 failed.
ok 19 s infra/modules/deployment-buckets/tests/evidence.tftest.hcl Success! 1 passed, 0 failed.
ok 29 s infra/modules/deployment-buckets/tests/fence_writers.tftest.hcl Success! 3 passed, 0 failed.
ok 23 s infra/modules/deployment-buckets/tests/media_results.tftest.hcl Success! 2 passed, 0 failed.
ok 28 s infra/modules/deployment-buckets/tests/published_floors.tftest.hcl Success! 3 passed, 0 failed.
ok 81 s infra/modules/media-engine/tests/media_engine.tftest.hcl Success! 24 passed, 0 failed.
ok 25 s infra/modules/pdf-host/tests/computed.tftest.hcl Success! 2 passed, 0 failed.
ok 60 s infra/modules/pdf-host/tests/pdf_host.tftest.hcl Success! 24 passed, 0 failed.
ok 40 s infra/modules/region-group-operator-document/tests/document.tftest.hcl Success! 12 passed, 0 failed.
ok 20 s infra/modules/region-host/ingress/tests/fixed-targets/tests/targets.tftest.hcl Success! 2 passed, 0 failed.
ok 63 s infra/modules/region-host/ingress/tests/group_ingress.tftest.hcl Success! 30 passed, 0 failed.
ok 47 s infra/modules/region-host/tests/alert_publish.tftest.hcl Success! 18 passed, 0 failed.
ok 42 s infra/modules/region-host/tests/alerts_topic.tftest.hcl Success! 16 passed, 0 failed.
ok 12 s infra/modules/region-host/tests/analytics_prune.tftest.hcl Success! 2 passed, 0 failed.
ok 16 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 12 s infra/modules/region-host/tests/group_alarms.tftest.hcl Success! 4 passed, 0 failed.
ok 11 s infra/modules/region-host/tests/group_iam.tftest.hcl Success! 4 passed, 0 failed.
ok 6 s infra/modules/region-host/tests/group_isolation.tftest.hcl Success! 1 passed, 0 failed.
ok 36 s infra/modules/region-host/tests/group_operator.tftest.hcl Success! 13 passed, 0 failed.
ok 10 s infra/modules/region-host/tests/group_user_data.tftest.hcl Success! 3 passed, 0 failed.
ok 31 s infra/modules/region-host/tests/health_alarms.tftest.hcl Success! 10 passed, 0 failed.
ok 16 s infra/modules/region-host/tests/ingress_drain_read.tftest.hcl Success! 4 passed, 0 failed.
ok 7 s infra/modules/region-host/tests/instance_metadata.tftest.hcl Success! 1 passed, 0 failed.
ok 22 s infra/modules/region-host/tests/mailer.tftest.hcl Success! 6 passed, 0 failed.
ok 14 s infra/modules/region-host/tests/mailer_group.tftest.hcl Success! 2 passed, 0 failed.
ok 14 s infra/modules/region-host/tests/managed_fleets/group_refusal.tftest.hcl Success! 2 passed, 0 failed.
ok 104 s infra/modules/region-host/tests/managed_fleets/managed_fleets.tftest.hcl Success! 46 passed, 0 failed.
ok 74 s infra/modules/region-host/tests/store_conversion.tftest.hcl Success! 27 passed, 0 failed.
ok 16 s infra/modules/region-host/tests/store_scanning.tftest.hcl Success! 4 passed, 0 failed.
ok 29 s infra/modules/region-host/tests/store_versioning.tftest.hcl Success! 11 passed, 0 failed.
ok 16 s infra/modules/region-host/tests/store_write_credentials.tftest.hcl Success! 4 passed, 0 failed.
ok 17 s infra/modules/region-host/tests/user_data_ignored.tftest.hcl Success! 3 passed, 0 failed.
ok 13 s infra/modules/region-remote-host/tests/data_lifecycle.tftest.hcl Success! 3 passed, 0 failed.
ok 14 s infra/modules/region-remote-host/tests/no_deployment_bucket.tftest.hcl Success! 5 passed, 0 failed.
ok 34 s infra/modules/scanner-host/tests/scanner_host.tftest.hcl Success! 14 passed, 0 failed.
opentofu: 40 files in 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:38453
Added `local` successfully.
Bucket created successfully `local/contract-bucket`.
Bucket created successfully `local/denied-bucket`.
Created policy `contract-only` successfully.
Added user `scopeduser` successfully.
Attached Policies: [contract-only]
To User: scopeduser
buckets and scoped user ready
=== RUN TestDeliveredContractMinio
=== RUN TestDeliveredContractMinio/put
=== RUN TestDeliveredContractMinio/get_round-trips_the_body
=== RUN TestDeliveredContractMinio/list_shows_the_key
=== RUN TestDeliveredContractMinio/head_and_list_agree_on_the_version
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_its_own_object
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/not_by_PutObjectTagging
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/and_not_by_x-amz-tagging_on_upload
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CreateMultipartUpload
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CopyObject_with_a_REPLACE_tagging_directive
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/but_multipart_itself_is_allowed
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_copy_itself_is_allowed
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/a_POST-policy_forged_tag_with_a_matching_version_is_still_not_a_verdict
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_an_ordinary_tagged-with-something-else_upload_is_allowed
=== RUN TestDeliveredContractMinio/delete_removes_it
=== RUN TestDeliveredContractMinio/cross-bucket_denial
--- PASS: TestDeliveredContractMinio (0.03s)
--- PASS: TestDeliveredContractMinio/put (0.00s)
--- PASS: TestDeliveredContractMinio/get_round-trips_the_body (0.00s)
--- PASS: TestDeliveredContractMinio/list_shows_the_key (0.00s)
--- PASS: TestDeliveredContractMinio/head_and_list_agree_on_the_version (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/not_by_PutObjectTagging (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/and_not_by_x-amz-tagging_on_upload (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route (0.02s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CreateMultipartUpload (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CopyObject_with_a_REPLACE_tagging_directive (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/but_multipart_itself_is_allowed (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_copy_itself_is_allowed (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/a_POST-policy_forged_tag_with_a_matching_version_is_still_not_a_verdict (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_an_ordinary_tagged-with-something-else_upload_is_allowed (0.00s)
--- PASS: TestDeliveredContractMinio/delete_removes_it (0.00s)
--- PASS: TestDeliveredContractMinio/cross-bucket_denial (0.00s)
PASS
ok github.com/carlosframework/platform/internal/objstore 0.039s
=== RUN TestT4StorageProbeMinio
2026/12/02 02:33:14 moves: T4: STORE: list: operation error S3: ListObjectsV2, https response error StatusCode: 403, RequestID: 18ED4F18C8BF9E23, HostID: a91a8ddbab8353d5a65b594b6ae5a47e327617076af1c396327a03aa46b57e92, 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.049s
=== RUN TestS3StoreMinioContract
=== RUN TestS3StoreMinioContract/conditional_get_and_etag_listing
=== RUN TestS3StoreMinioContract/bump_through_every_mutation_path
--- PASS: TestS3StoreMinioContract (0.04s)
--- PASS: TestS3StoreMinioContract/conditional_get_and_etag_listing (0.01s)
--- PASS: TestS3StoreMinioContract/bump_through_every_mutation_path (0.02s)
PASS
ok github.com/carlosframework/platform/internal/release 0.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.04s)
PASS
ok github.com/carlosframework/platform/internal/release 0.044s
Bucket created successfully `local/store-versioned`.
local/store-versioned versioning is enabled
Created policy `store-versioned` successfully.
Added user `storeversioned` successfully.
Attached Policies: [store-versioned]
To User: storeversioned
=== RUN TestVersionedContractMinio
--- PASS: TestVersionedContractMinio (0.01s)
PASS
ok github.com/carlosframework/platform/internal/objstore 0.021s
Bucket created successfully `local/wc-bucket`.
Created policy `writer` successfully.
Added user `wcwriter` successfully.
Attached Policies: [writer]
To User: wcwriter
=== RUN TestWriteCredentialContractMinio
=== RUN TestWriteCredentialContractMinio/put_under_the_prefix
=== RUN TestWriteCredentialContractMinio/multipart_under_the_prefix
=== RUN TestWriteCredentialContractMinio/refused:_list
=== RUN TestWriteCredentialContractMinio/refused:_delete
=== RUN TestWriteCredentialContractMinio/refused:_tag
=== RUN TestWriteCredentialContractMinio/refused:_put_outside_the_prefix
=== RUN TestWriteCredentialContractMinio/refused:_bucket_settings
=== RUN TestWriteCredentialContractMinio/refused:_read_under_the_prefix
=== RUN TestWriteCredentialContractMinio/refused:_head
=== RUN TestWriteCredentialContractMinio/refused:_list_uploads
=== RUN TestWriteCredentialContractMinio/refused:_put_tagged
=== RUN TestWriteCredentialContractMinio/refused:_put_with_a_platform_tag
=== RUN TestWriteCredentialContractMinio/refused:_put_beside_the_prefix
=== RUN TestWriteCredentialContractMinio/refused:_put_to_another_bucket
=== RUN TestWriteCredentialContractMinio/refused:_copy_from_the_store
=== RUN TestWriteCredentialContractMinio/refused:_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:_list (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_delete (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_tag (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_put_outside_the_prefix (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_bucket_settings (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_read_under_the_prefix (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_head (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_list_uploads (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_put_tagged (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_put_with_a_platform_tag (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_put_beside_the_prefix (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_put_to_another_bucket (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_copy_from_the_store (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_read_elsewhere (0.00s)
PASS
ok github.com/carlosframework/platform/internal/objstore 0.053s
=== RUN TestEndToEndMinio
=== RUN TestEndToEndMinio/plan
=== RUN TestEndToEndMinio/roll
=== RUN TestEndToEndMinio/replace
=== RUN TestEndToEndMinio/remove
--- PASS: TestEndToEndMinio (0.50s)
--- PASS: TestEndToEndMinio/plan (0.01s)
--- PASS: TestEndToEndMinio/roll (0.13s)
--- PASS: TestEndToEndMinio/replace (0.16s)
--- PASS: TestEndToEndMinio/remove (0.16s)
PASS
ok github.com/carlosframework/platform/internal/grouproll 0.505s
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 02:33:23 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/12/02 02:33:23 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/12/02 02:33:23 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/12/02 02:33:23 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/12/02 02:33:23 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=370
2026/12/02 02:33:23 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000002
2026/12/02 02:33:23 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/12/02 02:33:23 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=454
2026/12/02 02:33:23 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/12/02 02:33:23 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/12/02 02:33:23 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/12/02 02:33:23 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/12/02 02:33:23 console: CARLOS_SECRETS_PUBKEY is unset, so no region outside the home can be chosen automatically
2026/12/02 02:33:23 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%3A40925: could not determine target mailbox
agent.go:136: dbreads: dbr_xtq62w5s6d45fm3nssyxqq7bme: planned 3 files (1544 bytes) and restored to 3 in 15ms
agent.go:136: dbreads: dbr_xtq62w5s6d45fm3nssyxqq7bme: output 5 bytes in 1 confirmed chunks in 2ms
2026/12/02 02:33:24 console: db read dbr_xtq62w5s6d45fm3nssyxqq7bme: relayed 1 chunks (102 bytes) in 1.005s, ended done
agent.go:136: dbreads: dbr_whphepjuddqm6enizzfquz6w7q: planned 1 files (720 bytes) and restored to 1 in 12ms
agent.go:136: dbreads: dbr_whphepjuddqm6enizzfquz6w7q: output 5 bytes in 1 confirmed chunks in 2ms
2026/12/02 02:33:25 console: db read dbr_whphepjuddqm6enizzfquz6w7q: relayed 1 chunks (102 bytes) in 1.006s, ended done
agent.go:136: dbreads: dbr_fbkvkingjavbectjwy7ugedhoq: planned 3 files (1544 bytes) and held through 3 in 13ms
agent.go:136: dbreads: dbr_fbkvkingjavbectjwy7ugedhoq: output 1544 bytes in 1 confirmed chunks in 1ms
2026/12/02 02:33:26 console: db read dbr_fbkvkingjavbectjwy7ugedhoq: relayed 1 chunks (1641 bytes) in 1.005s, ended done
=== RUN TestDBForwardMinio/by_disconnect
=== NAME TestDBForwardMinio
agent.go:136: dbreads: dbr_bgbeqxk4ntr4a6zaastbq7so3a: planned 3 files (1544 bytes) and restored to 3 in 14ms
2026/12/02 02:33:26 console: db read dbr_bgbeqxk4ntr4a6zaastbq7so3a: relayed 0 chunks (0 bytes) in 33ms, ended client gone
agent.go:136: dbreads: dbr_bgbeqxk4ntr4a6zaastbq7so3a: output 5 bytes in 1 confirmed chunks in 105ms
=== RUN TestDBForwardMinio/by_timeout
=== NAME TestDBForwardMinio
agent.go:136: dbreads: dbr_oubqtjomj2uezzi4g4efcsgjmy: planned 3 files (1544 bytes) and restored to 3 in 13ms
2026/12/02 02:33:46 console: db read dbr_oubqtjomj2uezzi4g4efcsgjmy: relayed 0 chunks (0 bytes) in 19.138s, ended no-result
agent.go:136: dbreads: dbr_oubqtjomj2uezzi4g4efcsgjmy: output 5 bytes in 1 confirmed chunks in 19.11s
--- PASS: TestDBForwardMinio (22.84s)
--- PASS: TestDBForwardMinio/by_disconnect (0.24s)
--- PASS: TestDBForwardMinio/by_timeout (19.25s)
PASS
ok github.com/carlosframework/platform/internal/console 22.885s
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.077s
Bucket created successfully `local/media-local-store`.
Bucket created successfully `local/media-local-results`.
Created policy `media-local` successfully.
Added user `medialocal` successfully.
Attached Policies: [media-local]
To User: medialocal
=== RUN TestLocalEndToEndMinio
--- PASS: TestLocalEndToEndMinio (0.57s)
PASS
ok github.com/carlosframework/platform/internal/medialocal 0.579s
=== RUN TestHeldHandoverTwoBoxMinio
2026/12/02 02:33:51 edge: mesh key: minted
2026/12/02 02:33:51 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 02:33:51 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 02:33:51 tenant admission is open. accepting tenant work
2026/12/02 02:33:51 activator: HA placement host=shop-70776148.example.test kind=Place ref=annie reason=roomiest generation=2026-12-02T02:33:51Z lock_generation=0
2026/12/02 02:33:51 lease: t8-70776148/shop-70776148.example.test: HA lease acquired in 4ms (first wake)
2026/12/02 02:33:51 activator: shop-70776148.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 02:33:51 activator: shop-70776148.example.test: started carlos-instance@shop\x2d70776148.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 7ms, control socket 0s, key gate 0s, logs 0s) 8ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 02:33:51 activator: shop-70776148.example.test: carlos-instance@shop\x2d70776148.example.test.service launched in 9ms, healthy 0s later
2026/12/02 02:33:51 activator: shop-70776148.example.test: woke in 21ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 9ms, replicate 7ms
2026/12/02 02:33:51 lease: t8-70776148/plain-70776148.example.test: acquired in 1ms (client 0s, lock read and write 1ms)
2026/12/02 02:33:51 activator: no replica for plain-70776148.example.test in s3://contract-bucket/t8-70776148/plain-70776148.example.test — booting fresh
2026/12/02 02:33:51 activator: plain-70776148.example.test: started carlos-instance@plain\x2d70776148.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 1ms, instance key 0s, env 4ms, control socket 0s, key gate 0s, logs 0s) 6ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 02:33:51 activator: plain-70776148.example.test: carlos-instance@plain\x2d70776148.example.test.service launched in 7ms, healthy 0s later
2026/12/02 02:33:51 activator: plain-70776148.example.test: woke in 97ms: checks 0s, lease 2ms, restore 18ms, identity 0s, protect 0s, spawn 7ms, replicate 70ms
2026/12/02 02:33:51 lease: t8-70776148/bot0.shop.bac.sidecar.internal: HA lease acquired in 4ms (first wake)
2026/12/02 02:33:51 activator: bot0.shop.bac.sidecar.internal: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 02:33:51 activator: bot0.shop.bac.sidecar.internal: woke in 68ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 7ms, settle 0s, replicate 55ms
2026/12/02 02:33:51 activator: next-due probe plain-70776148.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 02:33:51 activator: bot0.shop.bac.sidecar.internal: released with a marker (clean true, txid 1, files 3:283d90ece0bb437d12a8e8c4c426622e556c1728ec62f3cf7b46627c4d45e2fe) in 9ms: files 1ms, sync 6ms, record 1ms, marker 2ms
2026/12/02 02:33:51 activator: bot0.shop.bac.sidecar.internal hibernated
2026/12/02 02:33:51 activator: plain-70776148.example.test hibernated
2026/12/02 02:33:51 activator: next-due probe shop-70776148.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 02:33:51 activator: shop-70776148.example.test: released with a marker (clean true, txid 1, files 3:b42b437f32942d94ba0f38938f4e2a611866b6db72661bef57718f540926f782) in 6ms: files 1ms, sync 3ms, record 1ms, marker 2ms
2026/12/02 02:33:51 activator: shop-70776148.example.test hibernated
2026/12/02 02:33:51 lease: t8-70776148/shop-70776148.example.test: HA lease acquired in 3ms (clean marker)
2026/12/02 02:33:51 activator: shop-70776148.example.test: restored (other-box)
2026/12/02 02:33:51 activator: shop-70776148.example.test: started carlos-instance@shop\x2d70776148.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) 1ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 02:33:51 activator: shop-70776148.example.test: carlos-instance@shop\x2d70776148.example.test.service launched in 2ms, healthy 0s later
2026/12/02 02:33:51 activator: shop-70776148.example.test: woke in 89ms: checks 0s, lease 4ms, restore 26ms, identity 0s, protect 0s, spawn 2ms, replicate 56ms
2026/12/02 02:33:51 edge: ha-take shop-70776148.example.test from annie (txn t8-witness, marker generation 1): holder betty, generation 2
2026/12/02 02:33:51 edge: forward shop-70776148.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:1fc1b9e5242da6b2447edbed88218a91 Step:move Result:ok Reasons:[] Fence:t8-witness StartedAt:2026-12-02 02:33:51.727699499 +0000 UTC FinishedAt:2026-12-02 02:33:51.875901129 +0000 UTC Acked:[betty carol] Departed:[] Moved:[{Host:shop-70776148.example.test Holder:betty Gen:2 Confirmed:take}] Released:[{Host:bot0.shop.bac.sidecar.internal Kind:worker Marker:true Clean:true Reason:} {Host:plain-70776148.example.test Kind:other Marker:true Clean:true Reason:}] Unclean:[] Left:[] Holds:{LongestMS:132 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-70776148.example.test <nil> stop bot0.shop.bac.sidecar.internal marker=true clean=true <nil> stop plain-70776148.example.test marker=true clean=true <nil> releasing shop-70776148.example.test <nil> stop shop-70776148.example.test marker=true clean=true <nil> taken shop-70776148.example.test betty <nil> end-moves]
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-70776148/shop-70776148.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-70776148/bot0.shop.bac.sidecar.internal/0009/0000000000000001-0000000000000001.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-70776148/bot0.shop.bac.sidecar.internal/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: DELETE /contract-bucket/t8-70776148/plain-70776148.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-70776148/shop-70776148.example.test/0009/0000000000000001-0000000000000001.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-70776148/shop-70776148.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-70776148/shop-70776148.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-70776148/shop-70776148.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-70776148/shop-70776148.example.test/head.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/generations/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0009/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0008/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0007/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0006/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0005/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0004/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0003/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0002/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0009/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0008/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0007/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0006/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0005/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0004/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0003/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0002/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-70776148/shop-70776148.example.test/0009/0000000000000001-0000000000000001.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-70776148/shop-70776148.example.test/files/0/manifest.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-70776148/shop-70776148.example.test/files/0/objects/0000000000000001-5c9443fccb34671e019b041e3f3ca7db981f9339500b369e6a823f68375d0541
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-70776148/shop-70776148.example.test/files/0/objects/0000000000000003-aeb5d97e5d0b5ab29a2525b4113f810341908f3d1347fe2da730497661f8d540
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-70776148/shop-70776148.example.test/0000/0000000000000001-0000000000000001.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0009/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0009/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0002/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-70776148/shop-70776148.example.test/0000/0000000000000002-0000000000000002.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-70776148/shop-70776148.example.test/0003/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-70776148/shop-70776148.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1243: drain took 191ms; 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 02:33:51 lease: t8-70776148/plain-70776148.example.test: acquired in 2ms (client 0s, lock read and write 2ms)
2026/12/02 02:33:51 activator: plain-70776148.example.test: started carlos-instance@plain\x2d70776148.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 02:33:51 activator: plain-70776148.example.test: carlos-instance@plain\x2d70776148.example.test.service launched in 1ms, healthy 0s later
2026/12/02 02:33:51 lease: /tmp/carlos-minio-contract-fvYcts/g/dw360695368/data/instances/plain-70776148.example.test/plain-70776148.example.test.db: continuity with the last clean close not proven; snapshot 1-0000000000000001 written before serving
2026/12/02 02:33:51 activator: plain-70776148.example.test: woke in 9ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 1ms, spawn 2ms, replicate 5ms
2026/12/02 02:33:51 activator: next-due probe shop-70776148.example.test: decode /api/next-due: invalid character 'b' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 02:33:51 activator: shop-70776148.example.test: released with a marker (clean true, txid 2, files 3:b42b437f32942d94ba0f38938f4e2a611866b6db72661bef57718f540926f782) in 4ms: files 1ms, sync 0s, record 1ms, marker 2ms
2026/12/02 02:33:51 activator: shop-70776148.example.test hibernated
2026/12/02 02:33:51 tenant admission is closed for shutdown
2026/12/02 02:33:51 activator: next-due probe plain-70776148.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 02:33:51 activator: plain-70776148.example.test hibernated
--- PASS: TestHeldHandoverTwoBoxMinio (0.62s)
=== RUN TestHeldHandoverLostLeaseMinio
2026/12/02 02:33:51 edge: mesh key: minted
2026/12/02 02:33:51 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 02:33:52 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 02:33:52 tenant admission is open. accepting tenant work
2026/12/02 02:33:52 activator: HA placement host=shop-8e4125d4.example.test kind=Place ref=annie reason=roomiest generation=2026-12-02T02:33:52Z lock_generation=0
2026/12/02 02:33:52 lease: t8-8e4125d4/shop-8e4125d4.example.test: HA lease acquired in 3ms (first wake)
2026/12/02 02:33:52 activator: shop-8e4125d4.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 02:33:52 activator: shop-8e4125d4.example.test: started carlos-instance@shop\x2d8e4125d4.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 02:33:52 activator: shop-8e4125d4.example.test: carlos-instance@shop\x2d8e4125d4.example.test.service launched in 7ms, healthy 0s later
2026/12/02 02:33:52 activator: shop-8e4125d4.example.test: woke in 17ms: checks 0s, lease 4ms, restore 0s, identity 0s, protect 0s, spawn 7ms, replicate 6ms
2026/12/02 02:33:52 activator: next-due probe shop-8e4125d4.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 02:33:52 activator: final checkpoint shop-8e4125d4.example.test: lease: release marker owed for s3://contract-bucket/t8-8e4125d4/shop-8e4125d4.example.test/lock.json (If-Match "9a37d157a3c8b2b75a8938a14d372c63"): lease: write release marker: operation error S3: PutObject, https response error StatusCode: 503, RequestID: , HostID: , api error ServiceUnavailable: witness: refused
2026/12/02 02:33:52 activator: shop-8e4125d4.example.test hibernated
2026/12/02 02:33:52 activator: handover of shop-8e4125d4.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-8e4125d4.example.test client 4 "
hadrain_twobox_minio_linux_test.go:1486: driver calls: [begin shop-8e4125d4.example.test <nil> releasing shop-8e4125d4.example.test <nil> stop shop-8e4125d4.example.test marker=false clean=false <nil> left shop-8e4125d4.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 02:33:52 tenant admission is closed for shutdown
2026/12/02 02:33:52 http: proxy error: context canceled
--- PASS: TestHeldHandoverLostLeaseMinio (0.27s)
PASS
ok github.com/carlosframework/platform/internal/host 0.941s
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 02:33:53 lease: instances/gen-1796178833442687300.shop.example.com: HA lease acquired in 5ms (first wake)
2026/12/02 02:33:53 lease: instances/gen-1796178833442687300.shop.example.com: HA lease acquired in 3ms (holder terminated)
gentake_minio_test.go:308: a second create-only copy onto instances/gen-1796178833442687300.shop.example.com/g-00000000000000000002/0000/0000000000000001-0000000000000001.ltx: <nil> (destination condition honoured: false)
2026/12/02 02:33:53 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 02:33:53 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 02:33:53 http: proxy error: context canceled
2026/12/02 02:33:53 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 02:33:53 lease: instances/gen-1796178833567360203.shop.example.com: HA lease acquired in 3ms (first wake)
2026/12/02 02:33:53 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 02:33:53 lease: instances/gen-1796178833567360203.shop.example.com: HA lease acquired in 2ms (clean marker)
=== RUN TestGenerationTakeMinio/copy-version
=== RUN TestGenerationTakeMinio/store-time
2026/12/02 02:33:53 lease: instances/gen-1796178833615297776.shop.example.com: HA lease acquired in 3ms (first wake)
2026/12/02 02:33:53 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 02:33:53 lease: instances/gen-1796178833615297776.shop.example.com: HA lease acquired in 3ms (clean marker)
2026/12/02 02:33:53 lease: instances/gen-1796178833615297776.shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/12/02 02:33:53 lease: instances/gen-1796178833615297776.shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/12/02 02:33:53 lease: instances/gen-1796178833615297776.shop.example.com: HA lease acquired in 3ms (unclean marker)
2026/12/02 02:33:53 lease: instances/gen-1796178833615297776.shop.example.com: HA lease acquired in 3ms (unclean marker)
=== RUN TestGenerationTakeMinio/skew
--- PASS: TestGenerationTakeMinio (0.29s)
--- PASS: TestGenerationTakeMinio/take (0.12s)
--- PASS: TestGenerationTakeMinio/switch-412 (0.04s)
--- PASS: TestGenerationTakeMinio/copy-version (0.01s)
--- PASS: TestGenerationTakeMinio/store-time (0.11s)
--- PASS: TestGenerationTakeMinio/skew (0.01s)
PASS
ok github.com/carlosframework/platform/internal/lease 0.304s
minio contract: PASS
=== staticcheck ===
go version go1.26.10 linux/arm64
go: downloading honnef.co/go/tools v0.8.2
go: downloading github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c
go: downloading golang.org/x/exp/typeparams v0.0.0-20231108232855-2478ac86f678
go: downloading golang.org/x/sync v0.23.0
go: downloading golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa
staticcheck: clean
=== govulncheck ===
go version go1.26.10 linux/arm64
go: downloading golang.org/x/vuln v1.8.0
go: downloading golang.org/x/telemetry v0.0.0-20260908163034-4bcc4b2ee518
go: downloading golang.org/x/tools v0.50.0
govulncheck: scanned github.com/carlosframework/platform, amadan.net/carlos/platform.git/launchctx, carlos-vulnscan
GO-2026-6859 called stdlib@v1.26.10, fixed in v1.26.11
HTTP/1 server crash due to MaxBytesReader header race in net/http
excepted until 2027-01-31 (.amadan/govulncheck-exceptions.tsv:9): net/http MaxBytesReader header race, fixed in go1.26.11. CI and releases stay on go1.26.10 because 1.26.11 deadlocks the edge's Expect: 100-continue path (#897, .amadan/go-toolchain.sh); #904 checked every production MaxBytesReader site and found it unreachable.
GO-2026-5932 required golang.org/x/crypto@v0.58.0, fixed in v0.58.1-0.20261009181718-2f1f834330b2
The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues
not fatal: no call path to the vulnerable code
govulncheck: clean (2 finding(s), none called outside .amadan/govulncheck-exceptions.tsv)
=== code-health ===
go version go1.26.10 linux/arm64
codehealth_test.go:42: scanned in 1m54.078s
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 3157 6338 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 30469 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.08s)
PASS
ok github.com/carlosframework/platform/internal/codehealth 115.241s
=== code-health-record ===
go version go1.26.10 linux/arm64
code-health record: HEAD is on main; comparing with its parent 9070fcfbc7d7d06bf51b6ae75919bc26f18ddbc7
=== RUN TestRecordAgainstBase
--- PASS: TestRecordAgainstBase (0.01s)
PASS
ok github.com/carlosframework/platform/internal/codehealth 0.008s
code-health record: no line went up without a reason
=== race ===
go version go1.26.10 linux/arm64
GATE_RACE=1 .amadan/test-gate.sh
=== internal_systemd@0 (13 s, from +15 s)
ok github.com/carlosframework/platform/internal/systemd 13.658s
=== internal_rootaws@0 (26 s, from +35 s)
ok github.com/carlosframework/platform/internal/rootaws 25.551s
=== internal_activator@0 (254 s, from +114 s)
ok github.com/carlosframework/platform/internal/activator 251.849s
=== internal_activator@1 (281 s, from +114 s)
ok github.com/carlosframework/platform/internal/activator 279.305s
=== internal_activator@2 (301 s, from +114 s)
ok github.com/carlosframework/platform/internal/activator 299.282s
=== internal_activator@3 (364 s, from +114 s)
ok github.com/carlosframework/platform/internal/activator 362.560s
=== internal_activator@4 (312 s, from +114 s)
ok github.com/carlosframework/platform/internal/activator 310.588s
=== internal_activator@5 (307 s, from +114 s)
ok github.com/carlosframework/platform/internal/activator 305.220s
=== internal_activator@6 (309 s, from +114 s)
ok github.com/carlosframework/platform/internal/activator 307.273s
=== internal_activator@7 (408 s, from +114 s)
ok github.com/carlosframework/platform/internal/activator 405.818s
=== internal_edge@0 (85 s, from +137 s)
ok github.com/carlosframework/platform/internal/edge 81.254s
=== internal_edge@1 (93 s, from +137 s)
ok github.com/carlosframework/platform/internal/edge 89.414s
=== internal_edge@2 (216 s, from +137 s)
ok github.com/carlosframework/platform/internal/edge 212.367s
=== internal_edge@3 (141 s, from +137 s)
ok github.com/carlosframework/platform/internal/edge 137.412s
=== internal_edge@4 (170 s, from +137 s)
ok github.com/carlosframework/platform/internal/edge 166.895s
=== internal_edge@5 (231 s, from +137 s)
ok github.com/carlosframework/platform/internal/edge 228.003s
=== internal_edge@6 (216 s, from +137 s)
ok github.com/carlosframework/platform/internal/edge 212.302s
=== internal_edge@7 (219 s, from +137 s)
ok github.com/carlosframework/platform/internal/edge 215.993s
=== internal_edge@8 (216 s, from +137 s)
ok github.com/carlosframework/platform/internal/edge 213.074s
=== internal_edge@9 (370 s, from +137 s)
ok github.com/carlosframework/platform/internal/edge 366.645s
=== internal_edge@10 (245 s, from +137 s)
ok github.com/carlosframework/platform/internal/edge 242.127s
=== internal_edge@11 (225 s, from +137 s)
ok github.com/carlosframework/platform/internal/edge 221.805s
=== internal_edge@12 (226 s, from +137 s)
ok github.com/carlosframework/platform/internal/edge 222.822s
=== internal_edge@13 (261 s, from +137 s)
ok github.com/carlosframework/platform/internal/edge 258.257s
=== internal_edge@14 (185 s, from +137 s)
ok github.com/carlosframework/platform/internal/edge 181.248s
=== internal_edge@15 (248 s, from +137 s)
ok github.com/carlosframework/platform/internal/edge 244.555s
=== internal_host@0 (15 s, from +199 s)
ok github.com/carlosframework/platform/internal/host 11.674s
=== internal_host@1 (9 s, from +199 s)
ok github.com/carlosframework/platform/internal/host 5.615s
=== lists: internal_edge 136 s, internal_activator 113 s, internal_host 198 s, internal_rootaws 34 s, internal_systemd 14 s
=== cpu: the gate used 7664 cpu-seconds in 522 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/rs/zerolog v1.33.0
go: downloading github.com/spf13/cobra v1.9.1
go: downloading golang.org/x/exp v0.0.0-20250218142911-aa4b98e5adaa
go: downloading github.com/hashicorp/go-version v1.7.0
go: downloading github.com/charmbracelet/lipgloss v0.5.0
go: downloading github.com/fatih/semgroup v1.2.0
go: downloading github.com/spf13/viper v1.19.0
go: downloading github.com/Masterminds/sprig/v3 v3.3.0
go: downloading github.com/BobuSumisu/aho-corasick v1.0.3
go: downloading github.com/mholt/archives v0.1.2
go: downloading github.com/h2non/filetype v1.1.3
go: downloading github.com/gitleaks/go-gitdiff v0.9.1
go: downloading dario.cat/mergo v1.0.1
go: downloading github.com/Masterminds/goutils v1.1.1
go: downloading github.com/mitchellh/copystructure v1.2.0
go: downloading github.com/huandu/xstrings v1.5.0
go: downloading golang.org/x/crypto v0.35.0
go: downloading github.com/spf13/cast v1.7.1
go: downloading github.com/Masterminds/semver/v3 v3.3.0
go: downloading github.com/shopspring/decimal v1.4.0
go: downloading golang.org/x/sync v0.11.0
go: downloading github.com/muesli/reflow v0.2.1-0.20210115123740-9e1d0d53df68
go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
go: downloading github.com/muesli/termenv v0.15.1
go: downloading github.com/mattn/go-runewidth v0.0.14
go: downloading github.com/mattn/go-colorable v0.1.14
go: downloading github.com/spf13/pflag v1.0.6
go: downloading github.com/mitchellh/reflectwalk v1.0.2
go: downloading github.com/rivo/uniseg v0.2.0
go: downloading golang.org/x/sys v0.30.0
go: downloading github.com/aymanbagabas/go-osc52/v2 v2.0.1
go: downloading github.com/bodgit/sevenzip v1.6.0
go: downloading github.com/klauspost/compress v1.17.11
go: downloading golang.org/x/text v0.22.0
go: downloading github.com/dsnet/compress v0.0.2-0.20230904184137-39efe44ab707
go: downloading github.com/ulikunitz/xz v0.5.12
go: downloading github.com/pierrec/lz4/v4 v4.1.21
go: downloading github.com/klauspost/pgzip v1.2.6
go: downloading github.com/minio/minlz v1.0.0
go: downloading github.com/andybalholm/brotli v1.1.2-0.20250424173009-453214e765f3
go: downloading github.com/sorairolake/lzip-go v0.3.5
go: downloading github.com/nwaples/rardecode/v2 v2.1.0
go: downloading github.com/STARRY-S/zip v0.2.1
go: downloading github.com/therootcompany/xz v1.0.1
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/fsnotify/fsnotify v1.8.0
go: downloading github.com/sagikazarmark/slog-shim v0.1.0
go: downloading github.com/spf13/afero v1.12.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/bodgit/plumbing v1.3.0
go: downloading github.com/hashicorp/go-multierror v1.1.1
go: downloading github.com/bodgit/windows v1.0.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/hashicorp/errwrap v1.1.0
self-test: reported source file: a key
self-test: reported source file: a 64-hex key
self-test: reported source file: a census-shaped entry
self-test: reported source file: a key marked gitleaks:allow
self-test: reported source file: a test's fake value outside tests
self-test: reported allowed file: another key beside its allowed value
self-test: reported a tracked file named gitleaks-gate-sentinel.env
self-test: reported 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 12230 tracked files; 34 not scanned, by exact path (scripts/gitleaks-gate/notscanned.go)
gitleaks: clean
diff --git a/.amadan/code-health.tsv b/.amadan/code-health.tsv| index 3a216ac53..47feb4089 100644 |
| --- a/.amadan/code-health.tsv |
| +++ b/.amadan/code-health.tsv |
| @@ -2169,7 +2169,7 @@ host-context internal/host withEffectiveMovesFloorLock context.Background 2 |
| func-lines . TestFleetAppServesThroughTheHub - 408 |
| func-lines . runDeploy - 329 |
| func-lines . runRoute - 519 |
| -func-lines cmd/console serve - 362 # raised: public shares, Shares: shareSettings() in the console Config literal (one line; the parse lives in cmd/console/shares.go) |
| +func-lines cmd/console serve - 358 # raised: public shares, Shares: shareSettings() in the console Config literal (one line; the parse lives in cmd/console/shares.go) |
| func-lines internal/activator (*Service).doWakeOnce - 571 # raised: step 0.69, the one call that delivers an instance's config before its wake is planned (body in configbeforewake.go); before it, #1290 step 2c |
| func-lines internal/analytics Prune - 343 |
| func-lines internal/appconfig SyncExecWithCallbacks - 320 |
| @@ -2211,11 +2211,11 @@ func-lines internal/registry (*Registry).haJournal - 402 # raised: ha-departure- |
| func-lines internal/release PassFilter - 399 |
| func-lines internal/release adoptHost - 494 |
| func-lines internal/team TestFixture - 421 |
| -file-lines . apimode.go - 4147 |
| +file-lines . apimode.go - 4120 |
| file-lines . apimode_test.go - 3530 # raised: fdc912b (batch 2, #1123) landed before the ratchet; tests for the system update refusals |
| file-lines internal/activator activator.go - 3785 # raised: the Service.ConfigBeforeWake field and doWakeOnce's one call to it (the body lives in configbeforewake.go); before it, #1290 step 2c |
| file-lines internal/activator activator_test.go - 5471 |
| -file-lines internal/console server.go - 4191 # raised: public shares, Config.Shares (one field; the settings type and every share function live in shares.go) |
| +file-lines internal/console server.go - 4051 # raised: public shares, Config.Shares (one field; the settings type and every share function live in shares.go) |
| file-lines internal/host agent.go - 3157 |
| file-lines internal/provision reconcile_test.go - 3094 |
| file-lines internal/registry registry_test.go - 3261 |
diff --git a/canary.go b/canary.go| index fc2365337..f73854651 100644 |
| --- a/canary.go |
| +++ b/canary.go |
| @@ -41,6 +41,7 @@ const canaryUsage = `usage: carlos canary [deploy] --app <a> [--name <n>] [--ver |
| [--mail submit] [--timeout 120s] <files-or-site-dir> |
| carlos canary ls --app <a> |
| carlos canary rm --app <a> --name <n> |
| + carlos canary retire --app <a> --name <n> |
| Ships a version and serves it on its own host, following its own canary/<name> |
| channel, without touching what the app's other instances serve. The bare form |
| @@ -64,7 +65,12 @@ been on one still enters the pipeline as a fresh build, so canarying and then |
| promoting to edge is the ordinary path, not a bypass. |
| Canaries carry a seven-day lease, refreshed by every re-promote. "canary ls" |
| -shows what is left of it.` |
| +shows what is left of it. An expired lease only warns: the canary keeps |
| +serving and nothing is deleted. |
| + |
| +"canary rm" deletes the canary's instance. "canary retire" then deletes its |
| +channel when no host follows it and the app's instances have been unchanged |
| +for 15 minutes. Shipped releases stay.` |
| // canaryWatchEvery is how often the deploy leg re-probes the canary host. |
| // The same 2s deploy.go uses — and it is not a coincidence that canary/* |
| @@ -86,7 +92,7 @@ func canaryCommand() *clireg.Node { |
| return &clireg.Node{ |
| Name: "canary", |
| Audience: cust, |
| - Children: []*clireg.Node{list, remove, raw("deploy", cust, runCanaryDeploy)}, |
| + Children: []*clireg.Node{list, remove, rawErr("retire", cust, runCanaryRetire), raw("deploy", cust, runCanaryDeploy)}, |
| Default: "deploy", |
| DefaultOn: clireg.OnAbsent | clireg.OnFlag | clireg.OnWord, |
| } |
| @@ -748,14 +754,19 @@ func runCanaryList(args []string) { |
| // ---- carlos canary rm ----------------------------------------------------- |
| +// textCanaryRemovedChannel is canary rm's closing line (#1634), reviewed by |
| +// Luna under delegation (2026-12-01). |
| +const textCanaryRemovedChannel = "%s still exists, followed by nothing. To delete it, run carlos canary retire --app %s --name %s after its instances have been unchanged for 15 minutes" |
| + |
| // runCanaryRemove deletes a canary's instance record — its host stops being |
| // served and its process goes away. |
| // |
| -// It does NOT delete the channel pointer, because the platform has no such |
| -// operation: a pointer is a signed object in the deployment bucket, and |
| -// canary/<name> simply stops being followed by anything and lapses at the end |
| -// of its lease. Saying so is the point — a command that let a member believe |
| -// the channel was gone would be lying about what it did, and the next |
| +// It does NOT delete the channel pointer: canary/<name> stays, followed by |
| +// nothing, and its lease running out deletes nothing either (the lease is a |
| +// nag, never enforcement). `carlos canary retire` deletes the pointer once |
| +// the app has been still for the settle window (#1634), so the closing line |
| +// names it. Saying so is the point — a command that let a member believe the |
| +// channel was gone would be lying about what it did, and the next |
| // `carlos channels` would contradict it. |
| func runCanaryRemove(args []string) { |
| fs := flag.NewFlagSet("canary rm", flag.ExitOnError) |
| @@ -792,7 +803,7 @@ func runCanaryRemove(args []string) { |
| log.Fatalf("canary rm: delete %s: %v", rec.Host, err) |
| } |
| fmt.Fprintf(stdout, "%s %s\n", colorFor(stdout).ok("removed"), rec.Host) |
| - mutedf(stdout, "%s itself remains and lapses at the end of its lease — nothing follows it now\n", channel) |
| + mutedf(stdout, textCanaryRemovedChannel+"\n", channel, app2, canary) |
| } |
| // ---- refusals ------------------------------------------------------------- |
diff --git a/canary_retire.go b/canary_retire.go| new file mode 100644 |
| index 000000000..5ee44cb95 |
| --- /dev/null |
| +++ b/canary_retire.go |
| @@ -0,0 +1,77 @@ |
| +package main |
| + |
| +// `carlos canary retire` (#1634): deleting a canary/<name> channel pointer |
| +// that nothing follows, through a console. |
| +// The console does every check (no follower by registry, record or box |
| +// report; the app still for 15 minutes; the pointer unchanged since it was |
| +// read) and deletes only the pointer, never a shipped release. |
| + |
| +import ( |
| + "context" |
| + "encoding/json" |
| + "errors" |
| + "flag" |
| + "fmt" |
| + "net/http" |
| + "strings" |
| +) |
| + |
| +// Reviewed by Luna under delegation (2026-12-01, #1634). |
| +const ( |
| + textCanaryRetired = "%s's pointer is gone. Its releases are kept" |
| + textCanaryRetireNeedName = "carlos canary retire: --name <n> is required" |
| + textRetireNeedsConsole = "carlos %s works through a console, and this shell is in direct bucket mode. Unset CARLOS_DEPLOYMENT_BUCKET and CARLOS_DEPLOYMENT_DIR, then run carlos auth login --console <url>" |
| +) |
| + |
| +// canaryRetire asks the console to retire canary/<name> of app, and |
| +// answers the channel it retired. |
| +func (s *apiSession) canaryRetire(ctx context.Context, a apiAcct, app, name string) (string, error) { |
| + status, body, err := s.postJSON(ctx, apiPath(a, app, "/canary/retire"), map[string]string{"name": name}) |
| + if err != nil { |
| + return "", err |
| + } |
| + if status != http.StatusOK { |
| + return "", apiErrorFromBody(status, body) |
| + } |
| + var out struct { |
| + Channel string `json:"channel"` |
| + } |
| + if err := json.Unmarshal(body, &out); err != nil || out.Channel == "" { |
| + return "", errors.New("canary retire: unreadable response") |
| + } |
| + return out.Channel, nil |
| +} |
| + |
| +// runCanaryRetire is `carlos canary retire --app <a> --name <n>`: the |
| +// console's Retire button, from the CLI. canary rm deletes the instance; |
| +// this deletes the channel it followed, once nothing does. |
| +func runCanaryRetire(args []string) error { |
| + fs := flag.NewFlagSet("canary retire", flag.ExitOnError) |
| + app := appFlag(fs, "app the canary belongs to") |
| + name := fs.String("name", "", "canary to retire") |
| + acctRaw, acctIDRaw, _ := accountFlags(fs) |
| + consoleFlag := consoleOption(fs, "console to retire through (default: the only logged-in one)") |
| + fs.Usage = flagUsage(fs, canaryUsage) |
| + fs.Parse(args) |
| + canary := strings.TrimSpace(*name) |
| + if canary == "" || fs.NArg() != 0 { |
| + return errors.New(textCanaryRetireNeedName + "\n\n" + canaryUsage) |
| + } |
| + sess, err := resolveMode(*consoleFlag) |
| + if err != nil { |
| + return err |
| + } |
| + if sess == nil { |
| + return fmt.Errorf(textRetireNeedsConsole, "canary retire") |
| + } |
| + printUsing(stdout, sess) |
| + acct := resolvedAccount(sess, acctRaw, acctIDRaw) |
| + app2 := resolvedApp(sess, acct, *app, canaryUsage) |
| + channel, err := sess.canaryRetire(context.Background(), acct, app2, canary) |
| + if err != nil { |
| + return err |
| + } |
| + fmt.Fprintf(stdout, "%s %s\n", colorFor(stdout).ok("retired"), channel) |
| + mutedf(stdout, textCanaryRetired, channel) |
| + return nil |
| +} |
diff --git a/canary_retire_test.go b/canary_retire_test.go| new file mode 100644 |
| index 000000000..5477e8704 |
| --- /dev/null |
| +++ b/canary_retire_test.go |
| @@ -0,0 +1,95 @@ |
| +package main |
| + |
| +import ( |
| + "encoding/json" |
| + "fmt" |
| + "net/http" |
| + "net/http/httptest" |
| + "strings" |
| + "testing" |
| +) |
| + |
| +// `carlos canary retire` posts the name to the member door and prints the |
| +// channel the console retired; a refusal comes back as the command's error, |
| +// in the console's words, and prints no success line. |
| +func TestCanaryRetireAPIMode(t *testing.T) { |
| + useTempCredentials(t) |
| + clearDeploymentEnv(t) |
| + path := "/api/cli/apps/" + apiTestAccount + "/shop/canary/retire" |
| + var posted []map[string]string |
| + refuse := false |
| + ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
| + if r.URL.Path != path || r.Method != http.MethodPost { |
| + t.Errorf("request = %s %s", r.Method, r.URL.Path) |
| + } |
| + var b map[string]string |
| + json.NewDecoder(r.Body).Decode(&b) |
| + posted = append(posted, b) |
| + if refuse { |
| + w.WriteHeader(http.StatusConflict) |
| + json.NewEncoder(w).Encode(map[string]string{"error": "canary rc still has a host (eu.shop.example.com) following it"}) |
| + return |
| + } |
| + json.NewEncoder(w).Encode(map[string]string{"result": "retired", "channel": "canary/rc"}) |
| + })) |
| + defer ts.Close() |
| + loginTo(t, ts.URL, "vicky@keymail.dev") |
| + out := captureStdout(t) |
| + |
| + if err := runCanaryRetire([]string{"--app", "shop", "--account", apiTestAccount, "--name", "rc"}); err != nil { |
| + t.Fatalf("retire: %v", err) |
| + } |
| + if len(posted) != 1 || posted[0]["name"] != "rc" { |
| + t.Fatalf("posted %v", posted) |
| + } |
| + if want := fmt.Sprintf(textCanaryRetired, "canary/rc"); !strings.Contains(out.String(), want) { |
| + t.Fatalf("output lacks %q:\n%s", want, out.String()) |
| + } |
| + |
| + out.Reset() |
| + refuse = true |
| + err := runCanaryRetire([]string{"--app", "shop", "--account", apiTestAccount, "--name", "rc"}) |
| + if err == nil || !strings.Contains(err.Error(), "still has a host (eu.shop.example.com)") { |
| + t.Fatalf("a refused retire = %v", err) |
| + } |
| + if strings.Contains(out.String(), "retired") { |
| + t.Fatalf("a refused retire printed success:\n%s", out.String()) |
| + } |
| + |
| + posted = nil |
| + if err := runCanaryRetire([]string{"--app", "shop", "--account", apiTestAccount}); err == nil || !strings.Contains(err.Error(), textCanaryRetireNeedName) { |
| + t.Fatalf("retire with no --name = %v", err) |
| + } |
| + if len(posted) != 0 { |
| + t.Fatalf("retire with no --name posted %v", posted) |
| + } |
| +} |
| + |
| +// Direct bucket mode has no console to check followers, so the verb |
| +// refuses rather than touch the bucket. |
| +func TestCanaryRetireRefusesDirectBucketMode(t *testing.T) { |
| + useTempCredentials(t) |
| + clearDeploymentEnv(t) |
| + t.Setenv("CARLOS_DEPLOYMENT_DIR", t.TempDir()) |
| + if err := runCanaryRetire([]string{"--app", "shop", "--name", "rc"}); err == nil || !strings.Contains(err.Error(), "direct bucket mode") { |
| + t.Fatalf("canary retire in direct bucket mode = %v", err) |
| + } |
| +} |
| + |
| +// A line of an app the console has no app for keeps its repair, with the |
| +// mark after it; a line of an app the console has is unchanged. |
| +func TestRepairCellMarksAppsWithNoRow(t *testing.T) { |
| + head := apiDigestRepair{Account: "bab", App: "old", Channel: "canary/rc", Version: "v1", NoRecord: true, NoApp: true} |
| + if got, want := repairCell(head), textRepairNoRecord+" (no app on this console)"; got != want { |
| + t.Fatalf("no-app head = %q, want %q", got, want) |
| + } |
| + rec := apiDigestRepair{Account: "bab", App: "old", Version: "v1", Record: true, NoApp: true} |
| + if got, want := repairCell(rec), textRepairRecordUnbound+" (no app on this console)"; got != want { |
| + t.Fatalf("no-app record line = %q, want %q", got, want) |
| + } |
| + live := head |
| + live.NoApp = false |
| + if got := repairCell(live); got != textRepairNoRecord { |
| + t.Fatalf("a head of an app with a row = %q", got) |
| + } |
| +} |
diff --git a/channels_digests.go b/channels_digests.go| index 6df405694..c2e837b8a 100644 |
| --- a/channels_digests.go |
| +++ b/channels_digests.go |
| @@ -63,6 +63,10 @@ const ( |
| textRepairUnknown = "this console does not list repairs: upgrade it, or ask the bucket directly" |
| ) |
| +// The mark after a line's repair when the console has no app for it |
| +// (#1634), reviewed by Luna under delegation (2026-12-01). |
| +const textRepairNoApp = "%s (no app on this console)" |
| + |
| // apiDigestRepair is a channel whose head a fresh or replaced box would |
| // refuse: Unbound (not bound to its account: the pointer names none, or the |
| // key grant it was signed under names none) or NoRecord (no digest and no |
| @@ -86,6 +90,10 @@ type apiDigestRepair struct { |
| NoBuild bool `json:"no_build,omitempty"` |
| Grant string `json:"grant,omitempty"` |
| GrantMintedAt string `json:"grant_minted_at,omitempty"` |
| + // NoApp is a line of an app the console has no row for, live or in the |
| + // trash, under an account it has (#1634); an older console, and the |
| + // direct-store report, never set it. |
| + NoApp bool `json:"no_app,omitempty"` |
| } |
| // apiPointerDigests is the pointer-digest report: the console's, or one |
| @@ -102,7 +110,18 @@ type apiPointerDigests struct { |
| // account first, since an unbound pointer is refused before its bytes are. |
| // A record is repaired by authorizing its version: promoting a head's |
| // version again writes no record. |
| +// |
| +// A line of an app the console has no row for keeps its repair and says so |
| +// after it (#1634): no member door reaches such an app. |
| func repairCell(r apiDigestRepair) string { |
| + if r.NoApp { |
| + return fmt.Sprintf(textRepairNoApp, repairText(r)) |
| + } |
| + return repairText(r) |
| +} |
| + |
| +// repairText is repairCell's repair, before any mark. |
| +func repairText(r apiDigestRepair) string { |
| switch { |
| case r.Record && r.Unread: |
| return fmt.Sprintf(textRepairRecordRetry, r.Error) |
diff --git a/docs/parity.md b/docs/parity.md| index fcbf1561d..c7639c2f5 100644 |
| --- a/docs/parity.md |
| +++ b/docs/parity.md |
| @@ -10,11 +10,11 @@ CLI rows are checked against the command registry (`parity/cli.tsv`). |
| | Status | Rows | |
| |---|---:| |
| -| both | 48 | |
| +| both | 49 | |
| | partial | 9 | |
| | gap | 73 | |
| | cli-only | 21 | |
| -| console-only | 19 | |
| +| console-only | 18 | |
| | Total | 170 | |
| ## account |
| @@ -217,7 +217,7 @@ CLI rows are checked against the command registry (`parity/cli.tsv`). |
| | canary-deploy | partial | `canary deploy` | `POST /a/{sqid}/apps/{app}/canary` | | The console points a canary at a shipped version but gives it no host of its own. | |
| | canary-list | both | `canary ls` | `GET /a/{sqid}/apps/{app}/releases` | | | |
| | canary-rm | gap | `canary rm` | | [wp-instances](#wp-instances) | Deletes the canary's instance and leaves its channel. The console has no instance delete (instances-delete); its Retire is a different operation (canary-retire). | |
| -| canary-retire | console-only | | `POST /a/{sqid}/apps/{app}/canary/retire` | | Retires the canary's channel and refuses while any host follows it. No CLI verb retires a channel: canary rm deletes the instance and leaves the channel. | |
| +| canary-retire | both | `canary retire` | `POST /a/{sqid}/apps/{app}/canary/retire` | | Retires the canary's channel and refuses while any host follows it. canary rm deletes the instance and leaves the channel. | |
| | channels | both | `channels` | `GET /a/{sqid}/apps/{app}/releases` | | | |
| | releases-pull | cli-only | `releases pull` | | | Copies a shipped release out of a console and checks each named file against the manifest's recorded size and digest. | |
| | channels-resign | gap | `channels resign` | | [wp-settings](#wp-settings) | | |
diff --git a/docs/site/cli.md b/docs/site/cli.md| index fe90110c1..c8ba0a8bd 100644 |
| --- a/docs/site/cli.md |
| +++ b/docs/site/cli.md |
| @@ -712,14 +712,20 @@ carlos canary --app jam --environment jam-canary ./jam |
| ```sh |
| carlos canary ls --app jam |
| carlos canary rm --app jam --name new-queue |
| +carlos canary retire --app jam --name new-queue |
| ``` |
| `ls` shows each canary's host, what it is serving, which config bundle it is |
| bound to, and what is left of its seven-day lease — refreshed every time you re-promote, so an active canary |
| -never expires and a forgotten one starts saying so. `rm` deletes the |
| -instance record: the host stops being served and the process goes away. The |
| -channel itself remains, followed by nothing, and lapses at the end of its |
| -lease; there is no pointer to delete. |
| +never expires and a forgotten one starts saying so. An expired lease only |
| +warns: the canary keeps serving and nothing is deleted. |
| + |
| +`rm` deletes the instance record: the host stops being served and the |
| +process goes away. The channel stays, followed by nothing. `retire` deletes |
| +the channel itself. It refuses while any host follows the channel, and until |
| +the app’s instances have been unchanged for 15 minutes, so run it after that |
| +quiet period. Shipped releases are never deleted. The Retire button on the |
| +app’s Releases tab in the console does the same. |
| One thing this is not: traffic splitting. A canary is a URL, not a |
| percentage of production traffic on the app's own hostname. |
| @@ -1029,6 +1035,11 @@ Shows whether channel pointers carry manifest digests, and lists the channels th |
| carlos channels digests |
| ``` |
| +A line for an app with no entry in the console (it was shipped straight to |
| +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. |
| + |
| ### 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-cli-1634.md b/docs/superpowers/notes/census-proposal-canary-retire-cli-1634.md| new file mode 100644 |
| index 000000000..822577c73 |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-proposal-canary-retire-cli-1634.md |
| @@ -0,0 +1,11 @@ |
| +# Census approval: canary-retire-cli-1634 |
| + |
| +Ruling `census-ruling-canary-retire-cli-1634`. The independent reviewer approves or rejects every change below, 0 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26). |
| + |
| +Envelopes re-pinned: `.`. |
| + |
| +Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner. |
| + |
| +Seal: `d57c8e17fe2db097089c9dad5cf108c10d9bd4bf749831a6e32b3f057355b3d9` → `d57c8e17fe2db097089c9dad5cf108c10d9bd4bf749831a6e32b3f057355b3d9`. |
| + |
| +Overlay: `internal/provision/testdata/plan14-root-reads-canary-retire-cli-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 1c3cff878..9d7c8c5ce 100644 |
| --- a/internal/console/apidigests.go |
| +++ b/internal/console/apidigests.go |
| @@ -307,6 +307,11 @@ type digestRepRow struct { |
| NoBuild bool `json:"no_build,omitempty"` |
| Grant string `json:"grant,omitempty"` |
| GrantMintedAt string `json:"grant_minted_at,omitempty"` |
| + // NoApp is a line of an app this console has no row for, live or in |
| + // the trash, under an account it has: shipped straight to the bucket |
| + // and never adopted, or left by a purge that did not finish (#1634). |
| + // The CLI says so beside the repair, since no member door reaches it. |
| + NoApp bool `json:"no_app,omitempty"` |
| } |
| // grantMinted is a grant's mint time on the wire, or "" for no grant. |
| @@ -343,7 +348,9 @@ func (s *Server) walkDigestAccount(ctx context.Context, sqid string, bucketOnly |
| row.Error = fmt.Sprintf(textBucketListApps, sqid, err) |
| return wk |
| } |
| + noApp := s.digestNoApp(ctx, sqid, bucketOnly) |
| for _, app := range apps { |
| + orphan := noApp(app) |
| states, _, err := release.DigestReport(ctx, s.cfg.Releases, s.cfg.ReleasePub, sqid, app) |
| if err != nil { |
| row.Error = err.Error() |
| @@ -365,7 +372,7 @@ func (s *Server) walkDigestAccount(ctx context.Context, sqid string, bucketOnly |
| } |
| if st.Err == "" && st.NeedsRepair() { |
| wk.repairs = append(wk.repairs, digestRepRow{Account: sqid, App: app, Channel: st.Channel, Version: st.Version, Unbound: st.Unbound, NoRecord: st.NoRecord, |
| - Grant: st.Grant, GrantMintedAt: grantMinted(st.Grant, st.GrantMintedAt)}) |
| + Grant: st.Grant, GrantMintedAt: grantMinted(st.Grant, st.GrantMintedAt), NoApp: orphan}) |
| } |
| } |
| // Every record a box refuses, whichever head names its version: one |
| @@ -381,8 +388,34 @@ func (s *Server) walkDigestAccount(ctx context.Context, sqid string, bucketOnly |
| row.Error = rec.Err |
| } |
| 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)}) |
| + Unread: rec.Unread, NoBuild: rec.NoBuild, Grant: rec.Grant, GrantMintedAt: grantMinted(rec.Grant, rec.GrantMintedAt), NoApp: orphan}) |
| } |
| } |
| return wk |
| } |
| + |
| +// digestNoApp answers, per app of the account sqid, whether this console |
| +// has no row for it, live or trashed (digestRepRow.NoApp). Only an account |
| +// the console has is labelled: a bucket-only account's row already says so |
| +// (BucketOnly), and the console can tell nothing about its apps. A lookup |
| +// that fails answers false: the label only adds a hint. |
| +func (s *Server) digestNoApp(ctx context.Context, sqid string, bucketOnly bool) func(app string) bool { |
| + if bucketOnly { |
| + return func(string) bool { return false } |
| + } |
| + a, err := s.store.AccountBySqid(sqid) |
| + if err != nil || a == nil { |
| + if err != nil { |
| + log.Printf("console: pointer digests: account %s: %v", sqid, err) |
| + } |
| + return func(string) bool { return false } |
| + } |
| + return func(app string) bool { |
| + live, err := s.store.HasAppInContext(ctx, a.ID, app) |
| + if err != nil || live { |
| + return false |
| + } |
| + trashed, err := s.store.HasTrashedAppInContext(ctx, a.ID, app) |
| + return err == nil && !trashed |
| + } |
| +} |
diff --git a/internal/console/canary_retire.go b/internal/console/canary_retire.go| new file mode 100644 |
| index 000000000..c60992917 |
| --- /dev/null |
| +++ b/internal/console/canary_retire.go |
| @@ -0,0 +1,346 @@ |
| +package console |
| + |
| +// Retiring a canary: deleting a canary/<name> channel pointer that nothing |
| +// follows (#1634). Two doors share one guard and one delete: |
| +// |
| +// - the browser's Retire button on an app's Releases tab |
| +// (handleRetireCanary); |
| +// - `carlos canary retire`, the same act for a member over the CLI API |
| +// (handleAPIRetireCanary). |
| +// |
| +// An app this console has no row for is out of reach of both: an |
| +// operator door for it waits on box reports that name every route's app |
| +// and channel, since its followers have no records to go by. |
| +// |
| +// Shipped releases are never touched: a retire un-points, it never deletes |
| +// bits. Every door fails CLOSED: "could not check who follows this channel" |
| +// never reads as "nobody does". |
| + |
| +import ( |
| + "context" |
| + "errors" |
| + "fmt" |
| + "log" |
| + "maps" |
| + "net/http" |
| + "net/url" |
| + "os" |
| + "strings" |
| + "time" |
| + |
| + "github.com/carlosframework/platform/internal/release" |
| +) |
| + |
| +// The CLI doors' answers (#1634). Reviewed by Luna under delegation |
| +// (2026-12-01). |
| +const ( |
| + textRetireBadName = "%q is not a canary name" |
| + textRetireNoBucket = "no deployment bucket on this host, so this console cannot retire a canary" |
| + textRetireNoCanary = "%s has no canary named %s" |
| + textRetireFollowed = "canary %s still has a host (%s) following it. Delete that instance or move it to another channel, then retire the canary" |
| + textRetireUnsettled = "%s was not retired: an instance of %s changed in the last 15 minutes, a box has not reported, or the canary changed while it was checked. Nothing was deleted. Try again in 15 minutes" |
| + textRetireCheck = "could not check what follows %s, so nothing was deleted. Try again" |
| + textRetireStore = "could not read the deployment bucket, so nothing was deleted. Try again" |
| + textRetireFailed = "retiring %s failed, so it may still be there. Try again" |
| + textRetireActivity = "retired canary %s (cli)" |
| +) |
| + |
| +// errNoCanary is checkCanaryRetire's answer when the channel has no pointer. |
| +var errNoCanary = errors.New("no such canary") |
| + |
| +// canaryFollowedError is checkCanaryRetire's answer when a host follows the |
| +// channel: retiring the pointer would strand it. |
| +type canaryFollowedError struct{ host string } |
| + |
| +func (e *canaryFollowedError) Error() string { return "host " + e.host + " follows the channel" } |
| + |
| +// canaryPointerReadError is checkCanaryRetire's answer when the pointer |
| +// itself could not be read. |
| +type canaryPointerReadError struct{ err error } |
| + |
| +func (e *canaryPointerReadError) Error() string { return "read the canary pointer: " + e.err.Error() } |
| +func (e *canaryPointerReadError) Unwrap() error { return e.err } |
| + |
| +// canaryRetireCheck is what a retire read before any confirmation: the |
| +// app's record stamps, compared again under the app lock, and the pointer's |
| +// key and ETag, deleted only if still exactly that revision. |
| +type canaryRetireCheck struct { |
| + acct, app, channel string |
| + key, etag string |
| + before map[string]time.Time |
| +} |
| + |
| +// validRetireChannel reports whether channel is canary/<name> for a name |
| +// the store could hold: one segment, release.ValidChannel's alphabet. |
| +func validRetireChannel(channel string) bool { |
| + name, ok := strings.CutPrefix(channel, release.RungCanary+"/") |
| + return ok && name != "" && !strings.Contains(name, "/") && release.ValidChannel(channel) |
| +} |
| + |
| +// checkCanaryRetire is the guard every retire door asks first. It takes the |
| +// app's record stamps, then the channel's followers (channelHosts: the |
| +// console box's registry, every instance and sidecar record, and the settle |
| +// rule over box reports and recent changes), then reads the pointer. |
| +// |
| +// Its answers: a *canaryFollowedError, errNoCanary, a |
| +// *canaryPointerReadError, an error wrapping errRetireUnsettled, or any |
| +// other error for a check that could not be made. Every one refuses. |
| +func (s *Server) checkCanaryRetire(ctx context.Context, acct, app, channel string) (*canaryRetireCheck, error) { |
| + checkCtx, cancel := context.WithTimeout(ctx, 15*time.Second) |
| + // The app's records as they stand before the check, compared again just |
| + // before the delete: the check itself runs without the app lock, so a |
| + // record created, changed or deleted in between refuses the retire |
| + // (recordStamps). |
| + before, err := s.recordStamps(checkCtx, acct, app) |
| + var hosts []string |
| + if err == nil { |
| + hosts, err = s.channelHosts(checkCtx, acct, app, channel) |
| + } |
| + cancel() |
| + if err != nil { |
| + return nil, err |
| + } |
| + if len(hosts) > 0 { |
| + return nil, &canaryFollowedError{host: hosts[0]} |
| + } |
| + readCtx, cancelRead := context.WithTimeout(ctx, 15*time.Second) |
| + defer cancelRead() |
| + key := release.ChannelKey(acct, app, channel) |
| + _, etag, err := s.cfg.Releases.Get(readCtx, key) |
| + if errors.Is(err, os.ErrNotExist) { |
| + return nil, errNoCanary |
| + } |
| + if err != nil { |
| + return nil, &canaryPointerReadError{err: err} |
| + } |
| + return &canaryRetireCheck{acct: acct, app: app, channel: channel, key: key, etag: etag, before: before}, nil |
| +} |
| + |
| +// deleteRetiredCanary deletes the pointer c read, under the app lock, inside |
| +// mutate (the door's app mutation). A change to the app's records or to the |
| +// pointer since the check is an error wrapping errRetireUnsettled, and |
| +// nothing is deleted. |
| +func (s *Server) deleteRetiredCanary(ctx context.Context, c *canaryRetireCheck, mutate func(context.Context, func(context.Context) error) error) error { |
| + ctx, cancel := context.WithTimeout(ctx, 15*time.Second) |
| + defer cancel() |
| + // The app lock from the re-list through the delete: every console |
| + // record write holds it too (recordlock.go), so a follower created or |
| + // moved onto this channel lands before the re-list, which refuses, or |
| + // after the pointer is gone (#407). |
| + unlockApp := s.lockApp(c.acct, c.app) |
| + defer unlockApp() |
| + return mutate(ctx, func(ctx context.Context) error { |
| + if h := s.retireBeforeDeleteHook; h != nil { |
| + h() |
| + } |
| + after, err := s.recordStamps(ctx, c.acct, c.app) |
| + if err != nil { |
| + return err |
| + } |
| + if !maps.Equal(c.before, after) { |
| + return fmt.Errorf("%w: the app's records changed during the check", errRetireUnsettled) |
| + } |
| + // The pointer must still be the one read above: a promotion or a |
| + // removal meanwhile refuses. |
| + if _, cur, gerr := s.cfg.Releases.Get(ctx, c.key); gerr != nil || cur != c.etag { |
| + if gerr != nil && !errors.Is(gerr, os.ErrNotExist) { |
| + return gerr |
| + } |
| + return fmt.Errorf("%w: the canary's pointer changed during the check", errRetireUnsettled) |
| + } |
| + // Delete exactly the pointer read above: a promotion since then |
| + // conflicts, and the retire is refused rather than deleting bytes |
| + // this check never saw. |
| + if err := release.DeleteIfMatch(ctx, s.cfg.Releases, c.key, c.etag); err != nil { |
| + if errors.Is(err, release.ErrCASConflict) { |
| + return fmt.Errorf("%w: the canary's pointer changed during the check", errRetireUnsettled) |
| + } |
| + return err |
| + } |
| + // No console record write lands between the comparison above and |
| + // this delete: each holds the app lock held here. One that waited |
| + // lands after it, on a channel with no pointer: the same as creating |
| + // an instance on a channel nobody has promoted, which the create |
| + // door allows. No restore is attempted: the store cannot tell |
| + // "deleted the revision read" from "already gone", so putting bytes |
| + // back could resurrect a pointer someone else removed. |
| + return nil |
| + }) |
| +} |
| + |
| +// appRetireMutation is deleteRetiredCanary's mutate for an app this console |
| +// has: the door's ordinary app mutation. |
| +func (s *Server) appRetireMutation(acct *Account, app string) func(context.Context, func(context.Context) error) error { |
| + return func(ctx context.Context, fn func(context.Context) error) error { |
| + return s.appMutation(ctx, acct, app, "canary-retire", fn) |
| + } |
| +} |
| + |
| +// handleRetireCanary removes a canary's channel pointer from the browser. |
| +// Shipped releases are untouched: retirement un-points, it never deletes |
| +// bits. |
| +func (s *Server) handleRetireCanary(w http.ResponseWriter, r *http.Request) { |
| + addr, raw, acct, role, app, ok := s.accountApp(w, r) |
| + if !ok { |
| + return |
| + } |
| + if !csrfFormOK(r, raw) { |
| + s.renderMessage(w, r, http.StatusForbidden, "Refused", "Cross-site request blocked.") |
| + return |
| + } |
| + if s.refuseAppNoBucket(w, r) { |
| + return |
| + } |
| + if s.cfg.Key == nil { |
| + s.renderMessage(w, r, http.StatusServiceUnavailable, "Promotions disabled", |
| + "No signing key on this host — the console is running read-only.") |
| + return |
| + } |
| + back := func(kind, msg string) { |
| + s.setFlash(w, kind, msg) |
| + dest := "/a/" + url.PathEscape(acct.Sqid) + "/apps/" + url.PathEscape(app) |
| + if tab := releaseBackTab(r); tab != "" { |
| + dest += "/" + tab |
| + } |
| + http.Redirect(w, r, dest, http.StatusSeeOther) |
| + } |
| + name := strings.ToLower(strings.TrimSpace(r.FormValue("name"))) |
| + if !canaryNameRe.MatchString(name) { |
| + back("err", "Invalid canary name.") |
| + return |
| + } |
| + channel := "canary/" + name |
| + // A canary with followers is load-bearing: retiring its pointer would |
| + // strand every host on it. Fail CLOSED on a registry error: an "I |
| + // couldn't check" must never be read as "nobody follows this channel". |
| + chk, err := s.checkCanaryRetire(r.Context(), acct.Sqid, app, channel) |
| + var followed *canaryFollowedError |
| + var readErr *canaryPointerReadError |
| + switch { |
| + case err == nil: |
| + case errors.Is(err, errRetireUnsettled): |
| + // Nobody follows the channel by any record, but the app changed too |
| + // recently (or a box still serves a host with no record) for that |
| + // to be the whole story yet. |
| + log.Printf("console: retire %s %s: %v", app, channel, err) |
| + back("err", "Could not verify no hosts follow this channel — try again.") |
| + return |
| + case errors.As(err, &followed): |
| + back("err", "Canary "+name+" still has a host ("+followed.host+") following it — remove or repoint that route first.") |
| + return |
| + case errors.Is(err, errNoCanary): |
| + back("err", "No canary named "+name+" here.") |
| + return |
| + case errors.As(err, &readErr): |
| + back("err", "Could not read the release store. Please try again.") |
| + return |
| + default: |
| + log.Printf("console: retire %s %s: check followers: %v", app, channel, err) |
| + s.renderMessage(w, r, http.StatusInternalServerError, "Error", |
| + "Could not verify no hosts follow this channel — try again.") |
| + return |
| + } |
| + if !confirmed(r) { |
| + s.confirmRetireCanary(w, r, addr, raw, acct, role, app, name) |
| + return |
| + } |
| + err = s.deleteRetiredCanary(r.Context(), chk, s.appRetireMutation(acct, app)) |
| + if errors.Is(err, errRetireUnsettled) { |
| + log.Printf("console: retire %s %s: %v", app, channel, err) |
| + back("err", "Could not verify no hosts follow this channel — try again.") |
| + return |
| + } |
| + if err != nil { |
| + log.Printf("console: retire %s %s: %v", app, channel, err) |
| + back("err", "Retiring the canary failed: "+err.Error()) |
| + return |
| + } |
| + s.auditActivity(acct, app, addr, Activity{Action: "canary-retire", TargetType: "channel", Target: "canary/" + name, Detail: "retired canary " + name}) |
| + back("ok", "Retired canary "+name+" — its channel pointer is gone; shipped releases are untouched.") |
| +} |
| + |
| +// writeRetireRefusal answers a CLI door's refused check or delete, and |
| +// reports whether err was one (nil is not). |
| +func writeRetireRefusal(w http.ResponseWriter, err error, acct, app, channel string) bool { |
| + var followed *canaryFollowedError |
| + var readErr *canaryPointerReadError |
| + name := strings.TrimPrefix(channel, release.RungCanary+"/") |
| + switch { |
| + case err == nil: |
| + return false |
| + case errors.As(err, &followed): |
| + jsonError(w, http.StatusConflict, fmt.Sprintf(textRetireFollowed, name, followed.host)) |
| + case errors.Is(err, errRetireUnsettled): |
| + log.Printf("console: api retire %s/%s %s: %v", acct, app, channel, err) |
| + jsonError(w, http.StatusConflict, fmt.Sprintf(textRetireUnsettled, channel, app)) |
| + case errors.Is(err, errNoCanary): |
| + jsonError(w, http.StatusNotFound, fmt.Sprintf(textRetireNoCanary, app, name)) |
| + case errors.As(err, &readErr): |
| + log.Printf("console: api retire %s/%s %s: %v", acct, app, channel, err) |
| + jsonError(w, http.StatusBadGateway, textRetireStore) |
| + default: |
| + log.Printf("console: api retire %s/%s %s: %v", acct, app, channel, err) |
| + jsonError(w, http.StatusInternalServerError, fmt.Sprintf(textRetireCheck, channel)) |
| + } |
| + return true |
| +} |
| + |
| +// handleAPIRetireCanary is POST /api/cli/apps/{account}/{app}/canary/retire, |
| +// `carlos canary retire` (#1634): the browser's Retire for a member over the |
| +// CLI. It is closed to service credentials, like resign: deleting a pointer |
| +// is a person's act. The body names the canary ({"name": "x"} for |
| +// canary/x); the console checks and deletes in one request, since the CLI |
| +// has no confirmation card and the guard refuses while anything follows. |
| +// |
| +// The name is any one channel segment (validRetireChannel), wider than the |
| +// browser's canaryNameRe on purpose: carlos canary mints names up to 63 |
| +// characters, and a promote may name any canary/<segment>, so a pointer the |
| +// browser cannot name is still one a member can retire here. The follower |
| +// match is on the exact channel string, so the guard is the same. |
| +func (s *Server) handleAPIRetireCanary(w http.ResponseWriter, r *http.Request) { |
| + addr, acct, app, ok := s.apiAccountApp(w, r) |
| + if !ok { |
| + return |
| + } |
| + p, _ := principalFrom(r.Context()) |
| + if !s.allowWrite(p, time.Now()) { |
| + jsonError(w, http.StatusTooManyRequests, textTooManyRequests) |
| + return |
| + } |
| + var req struct { |
| + Name string `json:"name"` |
| + } |
| + if !readJSON(w, r, &req) { |
| + return |
| + } |
| + channel := release.RungCanary + "/" + req.Name |
| + if !validRetireChannel(channel) { |
| + jsonError(w, http.StatusBadRequest, fmt.Sprintf(textRetireBadName, req.Name)) |
| + return |
| + } |
| + if s.cfg.Releases == nil { |
| + jsonError(w, http.StatusServiceUnavailable, textRetireNoBucket) |
| + return |
| + } |
| + if len(s.cfg.Key) == 0 { |
| + jsonError(w, http.StatusServiceUnavailable, textNoReleaseKey) |
| + return |
| + } |
| + chk, err := s.checkCanaryRetire(r.Context(), acct.Sqid, app, channel) |
| + if writeRetireRefusal(w, err, acct.Sqid, app, channel) { |
| + return |
| + } |
| + err = s.deleteRetiredCanary(r.Context(), chk, s.appRetireMutation(acct, app)) |
| + if errors.Is(err, errRetireUnsettled) { |
| + writeRetireRefusal(w, err, acct.Sqid, app, channel) |
| + return |
| + } |
| + if err != nil { |
| + log.Printf("console: api retire %s/%s %s: %v", acct.Sqid, app, channel, err) |
| + jsonError(w, http.StatusBadGateway, fmt.Sprintf(textRetireFailed, channel)) |
| + return |
| + } |
| + s.auditActivity(acct, app, addr, Activity{Action: "canary-retire", TargetType: "channel", Target: channel, |
| + Detail: fmt.Sprintf(textRetireActivity, req.Name)}) |
| + writeJSON(w, http.StatusOK, map[string]string{"result": "retired", "channel": channel}) |
| +} |
diff --git a/internal/console/canary_retire_test.go b/internal/console/canary_retire_test.go| new file mode 100644 |
| index 000000000..0f64862a6 |
| --- /dev/null |
| +++ b/internal/console/canary_retire_test.go |
| @@ -0,0 +1,231 @@ |
| +package console |
| + |
| +import ( |
| + "context" |
| + "crypto/ed25519" |
| + "encoding/base64" |
| + "encoding/json" |
| + "errors" |
| + "net/http" |
| + "os" |
| + "strings" |
| + "testing" |
| + "time" |
| + |
| + "github.com/carlosframework/platform/internal/provision" |
| + "github.com/carlosframework/platform/internal/release" |
| +) |
| + |
| +// The CLI retire door (#1634): `carlos canary retire` for a member, and |
| +// the repair listing's mark on an app the console has no row for. |
| + |
| +func retireURL(tb *twoBoxes, app string) string { |
| + return tb.fx.ts.URL + "/api/cli/apps/" + tb.sqid + "/" + app + "/canary/retire" |
| +} |
| + |
| +func pointerExists(t *testing.T, tb *twoBoxes, app, channel string) bool { |
| + t.Helper() |
| + _, _, err := tb.fx.rel.Get(context.Background(), release.ChannelKey(tb.sqid, app, channel)) |
| + if err != nil && !errors.Is(err, os.ErrNotExist) { |
| + t.Fatal(err) |
| + } |
| + return err == nil |
| +} |
| + |
| +// settledApp leaves shop with one instance on stable on box B, reported and |
| +// older than the settle window, so a retire's guard can say "nobody". |
| +func settledApp(t *testing.T, tb *twoBoxes) { |
| + t.Helper() |
| + tb.create(t, tb.token, tb.sqid, "shop", remoteHost, "uk", "stable") |
| + tb.reconcile(t, "v3") |
| + report(t, tb.fx.rel, tb.regB, "box-b", "uk", time.Now(), nil, 4096) |
| + ageRecords(t, tb) |
| + tb.fx.srv.boxReports.expire() |
| +} |
| + |
| +// The member door: refused while a host follows the canary, refused while |
| +// the app has not settled, then it deletes the pointer and only the |
| +// pointer, writes the activity row, and a second retire is a 404. |
| +func TestAPIRetireCanary(t *testing.T) { |
| + tb := newTwoBoxes(t) |
| + shipAndPromote(t, tb.fx, tb.sqid, "shop", "v4", "canary/rc") |
| + shipAndPromote(t, tb.fx, tb.sqid, "shop", "v5", "canary/next") |
| + tb.create(t, tb.token, tb.sqid, "shop", remoteHost, "uk", "canary/rc") |
| + tb.reconcile(t, "v4") |
| + |
| + status, _, out := rawReq(t, http.MethodPost, retireURL(tb, "shop"), tb.token, `{"name":"rc"}`) |
| + if status != http.StatusConflict || !strings.Contains(out, "still has a host ("+remoteHost+") following it") { |
| + t.Fatalf("retire with a remote follower = %d %s", status, out) |
| + } |
| + if !pointerExists(t, tb, "shop", "canary/rc") { |
| + t.Fatal("a followed canary was retired") |
| + } |
| + |
| + // Moved off the canary just now: no record names it, but the app has |
| + // not been still for the window. |
| + if status, _, out := rawReq(t, http.MethodPost, instancesURL(tb.fx, tb.sqid, "shop")+"/"+remoteHost+"/channel", tb.token, |
| + `{"channel":"canary/next"}`); status != http.StatusOK { |
| + t.Fatalf("channel move = %d %s", status, out) |
| + } |
| + if err := tb.regB.SetVersions(remoteHost, "v5", "v4"); err != nil { |
| + t.Fatal(err) |
| + } |
| + report(t, tb.fx.rel, tb.regB, "box-b", "uk", time.Now(), nil, 4096) |
| + tb.fx.srv.boxReports.expire() |
| + status, _, out = rawReq(t, http.MethodPost, retireURL(tb, "shop"), tb.token, `{"name":"rc"}`) |
| + if status != http.StatusConflict || !strings.Contains(out, "Nothing was deleted") || !pointerExists(t, tb, "shop", "canary/rc") { |
| + t.Fatalf("retire right after a channel change = %d %s", status, out) |
| + } |
| + |
| + ageRecords(t, tb) |
| + status, _, out = rawReq(t, http.MethodPost, retireURL(tb, "shop"), tb.token, `{"name":"rc"}`) |
| + if status != http.StatusOK || !strings.Contains(out, `"channel":"canary/rc"`) { |
| + t.Fatalf("retire once the app was still = %d %s", status, out) |
| + } |
| + if pointerExists(t, tb, "shop", "canary/rc") { |
| + t.Fatal("the canary pointer is still there") |
| + } |
| + if _, err := release.GetManifest(context.Background(), tb.fx.rel, tb.sqid, "shop", "v4"); err != nil { |
| + t.Fatalf("retire touched a shipped release: %v", err) |
| + } |
| + ev, err := tb.fx.st.Events(5151, "shop", 10) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + if len(ev) == 0 || ev[0].Action != "canary-retire" { |
| + t.Fatalf("no canary-retire activity row: %+v", ev) |
| + } |
| + |
| + status, _, out = rawReq(t, http.MethodPost, retireURL(tb, "shop"), tb.token, `{"name":"rc"}`) |
| + if status != http.StatusNotFound || !strings.Contains(out, "shop has no canary named rc") { |
| + t.Fatalf("retire of a canary that is gone = %d %s", status, out) |
| + } |
| + for _, bad := range []string{``, `a/b`, `..`, `has space`} { |
| + body, _ := json.Marshal(map[string]string{"name": bad}) |
| + if status, _, out := rawReq(t, http.MethodPost, retireURL(tb, "shop"), tb.token, string(body)); status != http.StatusBadRequest { |
| + t.Fatalf("retire of name %q = %d %s, want 400", bad, status, out) |
| + } |
| + } |
| +} |
| + |
| +// A record that will not read could be a follower: the member door fails |
| +// closed with a 500, and the pointer stays. |
| +func TestAPIRetireCanaryFailsClosed(t *testing.T) { |
| + tb := newTwoBoxes(t) |
| + shipAndPromote(t, tb.fx, tb.sqid, "shop", "v4", "canary/rc") |
| + settledApp(t, tb) |
| + if _, err := tb.fx.rel.Put(context.Background(), provision.RecordKey(tb.sqid, "shop", "broken.shop.example.com"), []byte("{not json"), ""); err != nil { |
| + t.Fatal(err) |
| + } |
| + status, _, out := rawReq(t, http.MethodPost, retireURL(tb, "shop"), tb.token, `{"name":"rc"}`) |
| + if status != http.StatusInternalServerError || !strings.Contains(out, "nothing was deleted") { |
| + t.Fatalf("retire with an unreadable record = %d %s", status, out) |
| + } |
| + if !pointerExists(t, tb, "shop", "canary/rc") { |
| + t.Fatal("the pointer went although the check could not be made") |
| + } |
| +} |
| + |
| +// The repair listing marks a line of an app the console has no row for |
| +// (no_app) under an account it has; an app with a row is not marked, and |
| +// neither is an account only the bucket holds, which the console can tell |
| +// nothing about. |
| +func TestSystemDigestsDoorMarksAppsWithNoRow(t *testing.T) { |
| + fx := newDigestsFixture(t) |
| + ctx := context.Background() |
| + unbound := func(acct, 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(acct, app, channel) |
| + _, etag, _ := fx.store.Get(ctx, key) |
| + if _, err := fx.store.Put(ctx, key, wire, etag); err != nil { |
| + t.Fatal(err) |
| + } |
| + } |
| + unbound(release.OpsAccount, "km", "canary/x") |
| + unbound(release.OpsAccount, "direct", "canary/y") |
| + unbound("zqx", "shop", "canary/z") |
| + 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 { |
| + Repairs []struct { |
| + Account, App, Channel string |
| + NoApp bool `json:"no_app"` |
| + } `json:"repairs"` |
| + } |
| + if err := json.Unmarshal([]byte(out), &rep); err != nil { |
| + t.Fatalf("report body %s: %v", out, err) |
| + } |
| + got := map[string]bool{} |
| + for _, r := range rep.Repairs { |
| + got[r.Account+"/"+r.App+"/"+r.Channel] = r.NoApp |
| + } |
| + want := map[string]bool{ |
| + release.OpsAccount + "/km/canary/x": false, |
| + release.OpsAccount + "/direct/canary/y": true, |
| + "zqx/shop/canary/z": false, |
| + } |
| + for k, v := range want { |
| + if noApp, ok := got[k]; !ok || noApp != v { |
| + t.Fatalf("%s: listed %v, no_app %v; want no_app %v\n%s", k, ok, noApp, v, out) |
| + } |
| + } |
| +} |
| + |
| +// The member door is a person's act: a service credential of the account |
| +// never reaches it, and the pointer stays. |
| +func TestAPIRetireCanaryRefusesServiceCredentials(t *testing.T) { |
| + fx := newDigestsFixture(t) |
| + st, out := postRaw(t, fx.ts.URL+"/api/cli/apps/bab/km/canary/retire", map[string]string{"name": "x"}, fx.serviceToken) |
| + if st != http.StatusNotFound && st != http.StatusForbidden { |
| + t.Fatalf("a service credential reached canary retire: %d %s", st, out) |
| + } |
| + if _, _, err := fx.store.Get(context.Background(), release.ChannelKey(release.OpsAccount, "km", "canary/x")); err != nil { |
| + t.Fatalf("canary/x after a refused retire: %v", err) |
| + } |
| +} |
| + |
| +// promoteAfterRecheck runs promote just after the retire's second read of |
| +// key, the ETag recheck under the lock: the pointer changes between that |
| +// read and the conditional delete, the last window there is. |
| +type promoteAfterRecheck struct { |
| + *deletableStore |
| + key string |
| + reads int |
| + promote func() |
| +} |
| + |
| +func (s *promoteAfterRecheck) Get(ctx context.Context, key string) ([]byte, string, error) { |
| + body, etag, err := s.deletableStore.Get(ctx, key) |
| + if key == s.key { |
| + if s.reads++; s.reads == 2 { |
| + s.promote() |
| + } |
| + } |
| + return body, etag, err |
| +} |
| + |
| +// A promotion of the canary after the delete's own recheck makes the |
| +// conditional delete refuse: the CLI door answers 409, and the newer |
| +// pointer stands. |
| +func TestAPIRetireCanaryDeletesOnlyTheRevisionItChecked(t *testing.T) { |
| + tb := newTwoBoxes(t) |
| + shipAndPromote(t, tb.fx, tb.sqid, "shop", "v4", "canary/rc") |
| + settledApp(t, tb) |
| + ds := tb.fx.rel.(*deletableStore) |
| + tb.fx.srv.cfg.Releases = &promoteAfterRecheck{deletableStore: ds, key: release.ChannelKey(tb.sqid, "shop", "canary/rc"), |
| + promote: func() { shipAndPromote(t, tb.fx, tb.sqid, "shop", "v5", "canary/rc") }} |
| + status, _, out := rawReq(t, http.MethodPost, retireURL(tb, "shop"), tb.token, `{"name":"rc"}`) |
| + if status != http.StatusConflict || !strings.Contains(out, "Nothing was deleted") { |
| + t.Fatalf("retire with a promotion after the recheck = %d %s", status, out) |
| + } |
| + p, err := release.Channel(context.Background(), ds, tb.fx.pub, tb.sqid, "shop", "canary/rc") |
| + if err != nil || p == nil || p.Version != "v5" { |
| + t.Fatalf("the newer pointer did not stand: %+v %v", p, err) |
| + } |
| +} |
diff --git a/internal/console/claim_invariant_fixtures_test.go b/internal/console/claim_invariant_fixtures_test.go| index e39414b5c..5f8717bd2 100644 |
| --- a/internal/console/claim_invariant_fixtures_test.go |
| +++ b/internal/console/claim_invariant_fixtures_test.go |
| @@ -2369,6 +2369,13 @@ var claimFixtures = map[string]claimFixture{ |
| apps: claimRefs("bab/titogo"), |
| do: claimAPI(http.MethodPost, "/api/cli/apps/bab/titogo/retention", `{"keep": 50}`), |
| }}, |
| + "route POST /api/cli/apps/{account}/{app}/canary/retire": {door: &claimDoor{ |
| + apps: claimRefs("bab/kass"), |
| + setup: func(t *testing.T, cx *claimCase) { |
| + cx.mustForm(t, "/a/bab/apps/kass/canary", "name", "rc", "version", "v1") |
| + }, |
| + do: claimAPI(http.MethodPost, "/api/cli/apps/bab/kass/canary/retire", `{"name":"rc"}`), |
| + }}, |
| "route POST /api/cli/apps/{account}/{app}/channels/resign": {door: &claimDoor{ |
| apps: claimRefs("bab/kass"), |
| setup: func(t *testing.T, cx *claimCase) { cx.resignPlan(t, "canary/x") }, |
diff --git a/internal/console/identity_foldguard_test.go b/internal/console/identity_foldguard_test.go| index f587738e7..766d286f2 100644 |
| --- a/internal/console/identity_foldguard_test.go |
| +++ b/internal/console/identity_foldguard_test.go |
| @@ -497,7 +497,7 @@ var identityFoldExceptions = map[string]foldException{ |
| "internal/console/resolve.go: preferredSeg: strings.EqualFold(accts[i].Name, a.Name)": {1, whyAccountName}, |
| "internal/console/scanhook.go: validCallbackPath: strings.ToLower(p)": {1, whyURL}, |
| "internal/console/server.go: (*Server).handleNewCanary: strings.ToLower(strings.TrimSpace(r.FormValue(\"name\")))": {1, whyAppName}, |
| - "internal/console/server.go: (*Server).handleRetireCanary: strings.ToLower(strings.TrimSpace(r.FormValue(\"name\")))": {1, whyAppName}, |
| + "internal/console/canary_retire.go: (*Server).handleRetireCanary: strings.ToLower(strings.TrimSpace(r.FormValue(\"name\")))": {1, whyAppName}, |
| "internal/console/server.go: normalizeAppName: strings.ToLower(strings.TrimSpace(name))": {1, whyAppName}, |
| "internal/console/hostnorm.go: normalizeDelegationZone: strings.ToLower(strings.TrimSpace(raw))": {1, whyHost}, |
| "internal/console/server.go: normalizeHost: strings.ToLower(strings.TrimSpace(host))": {1, whyHost}, |
diff --git a/internal/console/linkedpolicy.go b/internal/console/linkedpolicy.go| index 083d415c6..feb92b6fa 100644 |
| --- a/internal/console/linkedpolicy.go |
| +++ b/internal/console/linkedpolicy.go |
| @@ -155,6 +155,7 @@ var linkedPolicies = map[string]linkedPolicy{ |
| "POST /api/cli/apps/{account}/{app}/promote": linkedRefuse, |
| "POST /api/cli/apps/{account}/{app}/rollback": linkedRefuse, |
| "POST /api/cli/apps/{account}/{app}/channels/resign": linkedRefuse, |
| + "POST /api/cli/apps/{account}/{app}/canary/retire": linkedRefuse, |
| "GET /api/cli/apps/{account}/{app}/releases/{version}/authorize": linkedRefuse, |
| "POST /api/cli/apps/{account}/{app}/releases/{version}/authorize": linkedRefuse, |
| "POST /api/cli/apps/{account}/{app}/releases": linkedRefuse, |
diff --git a/internal/console/routedecls.go b/internal/console/routedecls.go| index e86f527f1..fdc4f36a8 100644 |
| --- a/internal/console/routedecls.go |
| +++ b/internal/console/routedecls.go |
| @@ -572,6 +572,9 @@ var routeDecls = []routeDecl{ |
| // manifest digests the console then signs into the channel's pointer, so |
| // no credential reaches it. |
| {Pattern: "POST /api/cli/apps/{account}/{app}/channels/resign", Kind: kindCLI, Allow: svcrole.Set{}, Handler: (*Server).handleAPIChannelResign}, |
| + // `carlos canary retire` (#1634): the browser's Retire over the CLI. A |
| + // person's act, like resign: closed to every service credential. |
| + {Pattern: "POST /api/cli/apps/{account}/{app}/canary/retire", Kind: kindCLI, Allow: svcrole.Set{}, Handler: (*Server).handleAPIRetireCanary}, |
| // `carlos releases authorize` (settings spec §4.1): GET shows a build's |
| // digests, POST signs a promotion record for the digest a person |
| // confirmed. A credential the app holds never vouches for a build. |
diff --git a/internal/console/server.go b/internal/console/server.go| index 8d737cdcb..dae16932b 100644 |
| --- a/internal/console/server.go |
| +++ b/internal/console/server.go |
| @@ -18,7 +18,6 @@ import ( |
| "html/template" |
| "io" |
| "log" |
| - "maps" |
| "math" |
| mrand "math/rand/v2" |
| "net" |
| @@ -6751,143 +6750,6 @@ func attachCommands(app, channel, domain, appsDomain, sqid string, absent bool) |
| return create, enable |
| } |
| -// handleRetireCanary removes a canary's channel pointer. Shipped releases |
| -// are untouched — retirement un-points, it never deletes bits. |
| -func (s *Server) handleRetireCanary(w http.ResponseWriter, r *http.Request) { |
| - addr, raw, acct, role, app, ok := s.accountApp(w, r) |
| - if !ok { |
| - return |
| - } |
| - if !csrfFormOK(r, raw) { |
| - s.renderMessage(w, r, http.StatusForbidden, "Refused", "Cross-site request blocked.") |
| - return |
| - } |
| - if s.refuseAppNoBucket(w, r) { |
| - return |
| - } |
| - if s.cfg.Key == nil { |
| - s.renderMessage(w, r, http.StatusServiceUnavailable, "Promotions disabled", |
| - "No signing key on this host — the console is running read-only.") |
| - return |
| - } |
| - back := func(kind, msg string) { |
| - s.setFlash(w, kind, msg) |
| - dest := "/a/" + url.PathEscape(acct.Sqid) + "/apps/" + url.PathEscape(app) |
| - if tab := releaseBackTab(r); tab != "" { |
| - dest += "/" + tab |
| - } |
| - http.Redirect(w, r, dest, http.StatusSeeOther) |
| - } |
| - name := strings.ToLower(strings.TrimSpace(r.FormValue("name"))) |
| - if !canaryNameRe.MatchString(name) { |
| - back("err", "Invalid canary name.") |
| - return |
| - } |
| - channel := "canary/" + name |
| - // A canary with followers is load-bearing: retiring its pointer would |
| - // strand every host on it. Fail CLOSED on a registry error — an "I |
| - // couldn't check" must never be read as "nobody follows this channel". |
| - checkCtx, cancelCheck := context.WithTimeout(r.Context(), 15*time.Second) |
| - // The app's records as they stand before the check, compared again just |
| - // before the delete: the check itself runs without the app lock, so a |
| - // record created, changed or deleted in between refuses the retire |
| - // (recordStamps). |
| - before, err := s.recordStamps(checkCtx, acct.Sqid, app) |
| - var hosts []string |
| - if err == nil { |
| - hosts, err = s.channelHosts(checkCtx, acct.Sqid, app, channel) |
| - } |
| - cancelCheck() |
| - if errors.Is(err, errRetireUnsettled) { |
| - // Nobody follows the channel by any record, but the app changed too |
| - // recently (or a box still serves a host with no record) for that |
| - // to be the whole story yet. |
| - log.Printf("console: retire %s %s: %v", app, channel, err) |
| - back("err", "Could not verify no hosts follow this channel — try again.") |
| - return |
| - } |
| - if err != nil { |
| - log.Printf("console: retire %s %s: check followers: %v", app, channel, err) |
| - s.renderMessage(w, r, http.StatusInternalServerError, "Error", |
| - "Could not verify no hosts follow this channel — try again.") |
| - return |
| - } |
| - if len(hosts) > 0 { |
| - back("err", "Canary "+name+" still has a host ("+hosts[0]+") following it — remove or repoint that route first.") |
| - return |
| - } |
| - ctx, cancel := context.WithTimeout(r.Context(), 15*time.Second) |
| - defer cancel() |
| - key := release.ChannelKey(acct.Sqid, app, channel) |
| - _, pointerETag, err := s.cfg.Releases.Get(ctx, key) |
| - if errors.Is(err, os.ErrNotExist) { |
| - back("err", "No canary named "+name+" here.") |
| - return |
| - } else if err != nil { |
| - back("err", "Could not read the release store. Please try again.") |
| - return |
| - } |
| - if !confirmed(r) { |
| - s.confirmRetireCanary(w, r, addr, raw, acct, role, app, name) |
| - return |
| - } |
| - // The app lock from the re-list through the delete: every console |
| - // record write holds it too (recordlock.go), so a follower created or |
| - // moved onto this channel lands before the re-list, which refuses, or |
| - // after the pointer is gone (#407). |
| - unlockApp := s.lockApp(acct.Sqid, app) |
| - err = s.appMutation(ctx, acct, app, "canary-retire", func(ctx context.Context) error { |
| - if h := s.retireBeforeDeleteHook; h != nil { |
| - h() |
| - } |
| - after, err := s.recordStamps(ctx, acct.Sqid, app) |
| - if err != nil { |
| - return err |
| - } |
| - if !maps.Equal(before, after) { |
| - return fmt.Errorf("%w: the app's records changed during the check", errRetireUnsettled) |
| - } |
| - // The pointer must still be the one read above: a promotion or a |
| - // removal meanwhile refuses. |
| - if _, cur, gerr := s.cfg.Releases.Get(ctx, key); gerr != nil || cur != pointerETag { |
| - if gerr != nil && !errors.Is(gerr, os.ErrNotExist) { |
| - return gerr |
| - } |
| - return fmt.Errorf("%w: the canary's pointer changed during the check", errRetireUnsettled) |
| - } |
| - // Delete exactly the pointer read above: a promotion since then |
| - // conflicts, and the retire is refused rather than deleting bytes |
| - // this check never saw. |
| - if err := release.DeleteIfMatch(ctx, s.cfg.Releases, key, pointerETag); err != nil { |
| - if errors.Is(err, release.ErrCASConflict) { |
| - return fmt.Errorf("%w: the canary's pointer changed during the check", errRetireUnsettled) |
| - } |
| - return err |
| - } |
| - // No console record write lands between the comparison above and |
| - // this delete: each holds the app lock held here. One that waited |
| - // lands after it, on a channel with no pointer: the same as creating |
| - // an instance on a channel nobody has promoted, which the create |
| - // door allows. No restore is attempted: the store cannot tell |
| - // "deleted the revision read" from "already gone", so putting bytes |
| - // back could resurrect a pointer someone else removed. |
| - return nil |
| - }) |
| - unlockApp() |
| - if errors.Is(err, errRetireUnsettled) { |
| - log.Printf("console: retire %s %s: %v", app, channel, err) |
| - back("err", "Could not verify no hosts follow this channel — try again.") |
| - return |
| - } |
| - if err != nil { |
| - log.Printf("console: retire %s %s: %v", app, channel, err) |
| - back("err", "Retiring the canary failed: "+err.Error()) |
| - return |
| - } |
| - s.auditActivity(acct, app, addr, Activity{Action: "canary-retire", TargetType: "channel", Target: "canary/" + name, Detail: "retired canary " + name}) |
| - back("ok", "Retired canary "+name+" — its channel pointer is gone; shipped releases are untouched.") |
| -} |
| - |
| // promoteChannelOptions is the per-row promote select's option list. |
| // |
| // For a pipelined app (pipe != nil), it's the pipeline's own declared |
diff --git a/internal/console/svcroutes_test.go b/internal/console/svcroutes_test.go| index 23e19e7fd..dbfdadb24 100644 |
| --- a/internal/console/svcroutes_test.go |
| +++ b/internal/console/svcroutes_test.go |
| @@ -407,6 +407,9 @@ var closedDoors = []string{ |
| // `carlos channels resign`: the console signs digests a person has |
| // confirmed. A credential never confirms on a person's behalf. |
| "POST /api/cli/apps/{account}/{app}/channels/resign", |
| + // `carlos canary retire` (#1634): deleting a canary's pointer is a |
| + // person's act, like the browser's Retire. |
| + "POST /api/cli/apps/{account}/{app}/canary/retire", |
| // `carlos releases authorize`: the console signs a promotion record for |
| // the digest a person confirmed. The GET is closed with it, as the |
| // pointer-digests read is: a credential has no plan to confirm. |
| @@ -1943,8 +1946,8 @@ func walkClosedDoors(t *testing.T, fx *consoleFixture, tok string) { |
| } |
| seen++ |
| } |
| - if seen != len(closedDoors) || seen != 123 { |
| - t.Errorf("walked %d closed doors, want all %d (and 123 today: three domain purchase doors, two domain transfer doors, the account's domains list, four saved-contact doors, the domain point door, the transfer resolve door, two managed admission doors, the fleet show door, two managed configuration doors, three environment ownership doors, instance-token, three door-key doors, the routes door, the regional placements write, instances-manifest, the app update policy, sidecars-manifest, the route-channel move, three instance update settings doors, two db replica doors, the forwarded db read, seven fleets, the instance label door, the fleet secrets key door, the two person link doors (list and unlink), the share mint, the operator's share stop, the six home link doors, four services, two email credentials, email pause, the build probe, the swap policy, the copy count, the interactive setting, the interactive session door, two app policy doors, two app region doors, the live tenancy read, the layout read, the activation-cancel door, eleven system doors, three deployment-wide antivirus, the PDF status door, the media status door, three platform geoip doors, two pointer digest doors, the hostname history status, the channel resign, two release authorize doors, four store-entitlement doors, the store versioning setter, two account plan doors, three platform grant doors, two billing problem doors, the billing revenue and payments doors, the billing house door, three account subdomain doors, the subdomain inventory, the two certificate import doors (#1429), the two platform update hold doors (#1442), and the claimed source door)", |
| + if seen != len(closedDoors) || seen != 124 { |
| + t.Errorf("walked %d closed doors, want all %d (and 124 today: three domain purchase doors, two domain transfer doors, the account's domains list, four saved-contact doors, the domain point door, the transfer resolve door, two managed admission doors, the fleet show door, two managed configuration doors, three environment ownership doors, instance-token, three door-key doors, the routes door, the regional placements write, instances-manifest, the app update policy, sidecars-manifest, the route-channel move, three instance update settings doors, two db replica doors, the forwarded db read, seven fleets, the instance label door, the fleet secrets key door, the two person link doors (list and unlink), the share mint, the operator's share stop, the six home link doors, four services, two email credentials, email pause, the build probe, the swap policy, the copy count, the interactive setting, the interactive session door, two app policy doors, two app region doors, the live tenancy read, the layout read, the activation-cancel door, eleven system doors, three deployment-wide antivirus, the PDF status door, the media status door, three platform geoip doors, two pointer digest doors, the hostname history status, the channel resign, the canary retire (#1634), two release authorize doors, four store-entitlement doors, the store versioning setter, two account plan doors, three platform grant doors, two billing problem doors, the billing revenue and payments doors, the billing house door, three account subdomain doors, the subdomain inventory, the two certificate import doors (#1429), the two platform update hold doors (#1442), and the claimed source door)", |
| seen, len(closedDoors)) |
| } |
| } |
diff --git a/internal/console/testdata/claim-routes.txt b/internal/console/testdata/claim-routes.txt| index caa0a0c6c..8b36b19e3 100644 |
| --- a/internal/console/testdata/claim-routes.txt |
| +++ b/internal/console/testdata/claim-routes.txt |
| @@ -284,6 +284,7 @@ route POST /api/cli/apps/{account}/new |
| route POST /api/cli/apps/{account}/new-temporary |
| route POST /api/cli/apps/{account}/{app}/assets/purge |
| route POST /api/cli/apps/{account}/{app}/build-probe |
| +route POST /api/cli/apps/{account}/{app}/canary/retire |
| route POST /api/cli/apps/{account}/{app}/channels/resign |
| route POST /api/cli/apps/{account}/{app}/config/sync |
| route POST /api/cli/apps/{account}/{app}/db/{host}/reads |
diff --git a/internal/provision/canary_retire_1634_census_test.go b/internal/provision/canary_retire_1634_census_test.go| new file mode 100644 |
| index 000000000..d0e52b0a0 |
| --- /dev/null |
| +++ b/internal/provision/canary_retire_1634_census_test.go |
| @@ -0,0 +1,31 @@ |
| +package provision |
| + |
| +// canaryRetire1634WriteCensusInventory is the canary retire CLI door's |
| +// review of the record-write census (#1634). The browser door's guard and |
| +// delete move from server.go to internal/console/canary_retire.go as a |
| +// shared core (checkCanaryRetire, deleteRetiredCanary); the pointer delete |
| +// stays conditional on the etag the check read and writes no record. The |
| +// new member door is POST /api/cli/apps/{account}/{app}/canary/retire, a |
| +// route pattern in the route table and the linked policy, never a record |
| +// key. Neither table gains a record write: kinds and class unchanged, only |
| +// the digests move. |
| +func canaryRetire1634WriteCensusInventory() []censusEntry { |
| + entries := append([]censusEntry(nil), instanceSenders1WriteCensusInventory()...) |
| + reviewed := []censusEntry{ |
| + {"internal/console/routedecls.go", "var routeDecls", "key-site", "lit:instances,lit:sidecars", "17402f7727c906b51d67478ab1b66b442cb30ce4b0a6445ab7396db37e3418c0"}, |
| + {"internal/console/linkedpolicy.go", "var linkedPolicies", "key-site", "lit:instances,lit:sidecars", "b80471c6fd7a5644d8b565ae019e8c9900c59f0702c4e64fb6ff24d79006aee0"}, |
| + } |
| + for _, r := range reviewed { |
| + replaced := false |
| + for i, e := range entries { |
| + if e.File == r.File && e.Unit == r.Unit { |
| + entries[i], replaced = r, true |
| + break |
| + } |
| + } |
| + if !replaced { |
| + entries = append(entries, r) |
| + } |
| + } |
| + return entries |
| +} |
diff --git a/internal/provision/plan9_b8_census_test.go b/internal/provision/plan9_b8_census_test.go| index 125f8325a..775de88d0 100644 |
| --- a/internal/provision/plan9_b8_census_test.go |
| +++ b/internal/provision/plan9_b8_census_test.go |
| @@ -366,7 +366,7 @@ func TestPlan9B8RecordWriteCensus(t *testing.T) { |
| if len(got) < 100 { |
| t.Fatalf("census found only %d units under %s; the walk is broken", len(got), root) |
| } |
| - inventory := instanceSenders1WriteCensusInventory() |
| + inventory := canaryRetire1634WriteCensusInventory() |
| problems := append(censusDiff(inventory, got), censusPolicy(inventory)...) |
| if len(problems) > 0 { |
| t.Fatalf("record-write census rejected %d site(s); update the explicit inventory only after reviewing the source:\n %s", len(problems), strings.Join(problems, "\n ")) |
diff --git a/internal/provision/testdata/plan14-root-reads-canary-retire-cli-1634.tsv b/internal/provision/testdata/plan14-root-reads-canary-retire-cli-1634.tsv| new file mode 100644 |
| index 000000000..1bf354cd8 |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-canary-retire-cli-1634.tsv |
| @@ -0,0 +1,3 @@ |
| +# Census overlay canary-retire-cli-1634, written by census-propose (#369). census-ruling-canary-retire-cli-1634, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-canary-retire-cli-1634.md. |
| +# 0 body, 0 sites, 1 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +@coverage . 4f25c64d4b024b32f683fe439a3348ce528c1832c7bdee5d5f5e8f58bf3895b7 |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index e263d5737..55c657056 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -326,3 +326,4 @@ plan14-root-reads-demo-disk-slice1-retention.tsv 0586b6f6d50249a42fbf72bb0254547 |
| plan14-root-reads-edge-miss-refresh.tsv 0586b6f6d50249a42fbf72bb02545476c042d1c8a357c91d75432315997ae7a3 |
| plan14-root-reads-stage-spool-1582.tsv d57c8e17fe2db097089c9dad5cf108c10d9bd4bf749831a6e32b3f057355b3d9 |
| plan14-root-reads-instance-senders-1.tsv d57c8e17fe2db097089c9dad5cf108c10d9bd4bf749831a6e32b3f057355b3d9 |
| +plan14-root-reads-canary-retire-cli-1634.tsv d57c8e17fe2db097089c9dad5cf108c10d9bd4bf749831a6e32b3f057355b3d9 |
diff --git a/parity/cli.tsv b/parity/cli.tsv| index d1dfd615d..54e7092dd 100644 |
| --- a/parity/cli.tsv |
| +++ b/parity/cli.tsv |
| @@ -47,6 +47,7 @@ billing problems operator - - - - - |
| bootstrap box-local - - - - - |
| canary deploy customer - - - - - |
| canary ls customer - - - - - |
| +canary retire customer - - - - - |
| canary rm customer - - - - - |
| channels customer - - - - - |
| channels digests operator - - - - - |
diff --git a/parity/parity.tsv b/parity/parity.tsv| index 1f442afbe..d857c528f 100644 |
| --- a/parity/parity.tsv |
| +++ b/parity/parity.tsv |
| @@ -36,7 +36,7 @@ rollback releases both rollback GET /a/{sqid}/apps/{app}/releases ; POST /a/{sqi |
| canary-deploy releases partial canary deploy POST /a/{sqid}/apps/{app}/canary The console points a canary at a shipped version but gives it no host of its own. |
| canary-list releases both canary ls GET /a/{sqid}/apps/{app}/releases |
| canary-rm releases gap canary rm wp-instances Deletes the canary's instance and leaves its channel. The console has no instance delete (instances-delete); its Retire is a different operation (canary-retire). |
| -canary-retire releases console-only POST /a/{sqid}/apps/{app}/canary/retire Retires the canary's channel and refuses while any host follows it. No CLI verb retires a channel: canary rm deletes the instance and leaves the channel. |
| +canary-retire releases both canary retire POST /a/{sqid}/apps/{app}/canary/retire Retires the canary's channel and refuses while any host follows it. canary rm deletes the instance and leaves the channel. |
| channels releases both channels GET /a/{sqid}/apps/{app}/releases |
| releases-pull releases cli-only releases pull Copies a shipped release out of a console and checks each named file against the manifest's recorded size and digest. |
| channels-resign releases gap channels resign wp-settings |
diff --git a/testdata/clireg-golden.jsonl b/testdata/clireg-golden.jsonl| index 78e4f7ecf..8a42b65cc 100644 |
| --- a/testdata/clireg-golden.jsonl |
| +++ b/testdata/clireg-golden.jsonl |
| @@ -130,21 +130,23 @@ |
| {"case":"bootstrap | --zz-unknown-flag","argv":["bootstrap","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos bootstrap [flags]\nflags:\n --offcloud off-cloud box: require a staged 0600 credentials file instead of an EC2 instance profile\n --plan-json with -root: print the arming plan as JSON on stdout instead of the human summary\n --root <string> install root; a staging dir writes files only (no user creation, no systemctl) (default: /)\n --socket-consumer <value> host-app user to enroll in the carlos-sockets group (repeatable); members may dial every instance socket on the box\n"} |
| {"case":"bootstrap | -h","argv":["bootstrap","-h"],"exit":0,"stdout":"","stderr":"usage: carlos bootstrap [flags]\nflags:\n --offcloud off-cloud box: require a staged 0600 credentials file instead of an EC2 instance profile\n --plan-json with -root: print the arming plan as JSON on stdout instead of the human summary\n --root <string> install root; a staging dir writes files only (no user creation, no systemctl) (default: /)\n --socket-consumer <value> host-app user to enroll in the carlos-sockets group (repeatable); members may dial every instance socket on the box\n"} |
| {"case":"canary ./site | extra","argv":["canary","./site"],"exit":1,"stdout":"","stderr":"not in a git repository — pass --version\n"} |
| -{"case":"canary delete | --zz-unknown-flag","argv":["canary","delete","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app the canary belongs to\n --console <string> console to remove through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --name <string> canary name to remove\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| -{"case":"canary delete | -h","argv":["canary","delete","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app the canary belongs to\n --console <string> console to remove through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --name <string> canary name to remove\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| -{"case":"canary deploy | --zz-unknown-flag","argv":["canary","deploy","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app to canary\n --console <string> console to deploy through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --mail <string> declare this build's mail transport. the one value is submit: the build sends through carlos's submission socket when CARLOS_MAIL=submit is set\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"} |
| -{"case":"canary deploy | -h","argv":["canary","deploy","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app to canary\n --console <string> console to deploy through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --mail <string> declare this build's mail transport. the one value is submit: the build sends through carlos's submission socket when CARLOS_MAIL=submit is set\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"} |
| -{"case":"canary list -h | extra","argv":["canary","list","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app whose canaries to list\n --console <string> console to read through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| -{"case":"canary list | --zz-unknown-flag","argv":["canary","list","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app whose canaries to list\n --console <string> console to read through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| -{"case":"canary list | -h","argv":["canary","list","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app whose canaries to list\n --console <string> console to read through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| -{"case":"canary ls | --zz-unknown-flag","argv":["canary","ls","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app whose canaries to list\n --console <string> console to read through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| -{"case":"canary ls | -h","argv":["canary","ls","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app whose canaries to list\n --console <string> console to read through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| -{"case":"canary rm | --zz-unknown-flag","argv":["canary","rm","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app the canary belongs to\n --console <string> console to remove through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --name <string> canary name to remove\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| -{"case":"canary rm | -h","argv":["canary","rm","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app the canary belongs to\n --console <string> console to remove through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --name <string> canary name to remove\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| -{"case":"canary | --help","argv":["canary","--help"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app to canary\n --console <string> console to deploy through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --mail <string> declare this build's mail transport. the one value is submit: the build sends through carlos's submission socket when CARLOS_MAIL=submit is set\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"} |
| -{"case":"canary | --zz-unknown-flag","argv":["canary","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app to canary\n --console <string> console to deploy through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --mail <string> declare this build's mail transport. the one value is submit: the build sends through carlos's submission socket when CARLOS_MAIL=submit is set\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"} |
| -{"case":"canary | -h","argv":["canary","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app to canary\n --console <string> console to deploy through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --mail <string> declare this build's mail transport. the one value is submit: the build sends through carlos's submission socket when CARLOS_MAIL=submit is set\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"} |
| -{"case":"canary | bare","argv":["canary"],"exit":1,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\n"} |
| +{"case":"canary delete | --zz-unknown-flag","argv":["canary","delete","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n carlos canary retire --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it. An expired lease only warns: the canary keeps\nserving and nothing is deleted.\n\n\"canary rm\" deletes the canary's instance. \"canary retire\" then deletes its\nchannel when no host follows it and the app's instances have been unchanged\nfor 15 minutes. Shipped releases stay.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app the canary belongs to\n --console <string> console to remove through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --name <string> canary name to remove\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| +{"case":"canary delete | -h","argv":["canary","delete","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n carlos canary retire --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it. An expired lease only warns: the canary keeps\nserving and nothing is deleted.\n\n\"canary rm\" deletes the canary's instance. \"canary retire\" then deletes its\nchannel when no host follows it and the app's instances have been unchanged\nfor 15 minutes. Shipped releases stay.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app the canary belongs to\n --console <string> console to remove through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --name <string> canary name to remove\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| +{"case":"canary deploy | --zz-unknown-flag","argv":["canary","deploy","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n carlos canary retire --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it. An expired lease only warns: the canary keeps\nserving and nothing is deleted.\n\n\"canary rm\" deletes the canary's instance. \"canary retire\" then deletes its\nchannel when no host follows it and the app's instances have been unchanged\nfor 15 minutes. Shipped releases stay.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app to canary\n --console <string> console to deploy through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --mail <string> declare this build's mail transport. the one value is submit: the build sends through carlos's submission socket when CARLOS_MAIL=submit is set\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"} |
| +{"case":"canary deploy | -h","argv":["canary","deploy","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n carlos canary retire --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it. An expired lease only warns: the canary keeps\nserving and nothing is deleted.\n\n\"canary rm\" deletes the canary's instance. \"canary retire\" then deletes its\nchannel when no host follows it and the app's instances have been unchanged\nfor 15 minutes. Shipped releases stay.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app to canary\n --console <string> console to deploy through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --mail <string> declare this build's mail transport. the one value is submit: the build sends through carlos's submission socket when CARLOS_MAIL=submit is set\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"} |
| +{"case":"canary list -h | extra","argv":["canary","list","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n carlos canary retire --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it. An expired lease only warns: the canary keeps\nserving and nothing is deleted.\n\n\"canary rm\" deletes the canary's instance. \"canary retire\" then deletes its\nchannel when no host follows it and the app's instances have been unchanged\nfor 15 minutes. Shipped releases stay.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app whose canaries to list\n --console <string> console to read through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| +{"case":"canary list | --zz-unknown-flag","argv":["canary","list","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n carlos canary retire --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it. An expired lease only warns: the canary keeps\nserving and nothing is deleted.\n\n\"canary rm\" deletes the canary's instance. \"canary retire\" then deletes its\nchannel when no host follows it and the app's instances have been unchanged\nfor 15 minutes. Shipped releases stay.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app whose canaries to list\n --console <string> console to read through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| +{"case":"canary list | -h","argv":["canary","list","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n carlos canary retire --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it. An expired lease only warns: the canary keeps\nserving and nothing is deleted.\n\n\"canary rm\" deletes the canary's instance. \"canary retire\" then deletes its\nchannel when no host follows it and the app's instances have been unchanged\nfor 15 minutes. Shipped releases stay.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app whose canaries to list\n --console <string> console to read through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| +{"case":"canary ls | --zz-unknown-flag","argv":["canary","ls","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n carlos canary retire --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it. An expired lease only warns: the canary keeps\nserving and nothing is deleted.\n\n\"canary rm\" deletes the canary's instance. \"canary retire\" then deletes its\nchannel when no host follows it and the app's instances have been unchanged\nfor 15 minutes. Shipped releases stay.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app whose canaries to list\n --console <string> console to read through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| +{"case":"canary ls | -h","argv":["canary","ls","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n carlos canary retire --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it. An expired lease only warns: the canary keeps\nserving and nothing is deleted.\n\n\"canary rm\" deletes the canary's instance. \"canary retire\" then deletes its\nchannel when no host follows it and the app's instances have been unchanged\nfor 15 minutes. Shipped releases stay.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app whose canaries to list\n --console <string> console to read through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| +{"case":"canary retire | --zz-unknown-flag","argv":["canary","retire","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n carlos canary retire --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it. An expired lease only warns: the canary keeps\nserving and nothing is deleted.\n\n\"canary rm\" deletes the canary's instance. \"canary retire\" then deletes its\nchannel when no host follows it and the app's instances have been unchanged\nfor 15 minutes. Shipped releases stay.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app the canary belongs to\n --console <string> console to retire through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --name <string> canary to retire\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| +{"case":"canary retire | -h","argv":["canary","retire","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n carlos canary retire --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it. An expired lease only warns: the canary keeps\nserving and nothing is deleted.\n\n\"canary rm\" deletes the canary's instance. \"canary retire\" then deletes its\nchannel when no host follows it and the app's instances have been unchanged\nfor 15 minutes. Shipped releases stay.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app the canary belongs to\n --console <string> console to retire through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --name <string> canary to retire\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| +{"case":"canary rm | --zz-unknown-flag","argv":["canary","rm","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n carlos canary retire --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it. An expired lease only warns: the canary keeps\nserving and nothing is deleted.\n\n\"canary rm\" deletes the canary's instance. \"canary retire\" then deletes its\nchannel when no host follows it and the app's instances have been unchanged\nfor 15 minutes. Shipped releases stay.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app the canary belongs to\n --console <string> console to remove through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --name <string> canary name to remove\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| +{"case":"canary rm | -h","argv":["canary","rm","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n carlos canary retire --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it. An expired lease only warns: the canary keeps\nserving and nothing is deleted.\n\n\"canary rm\" deletes the canary's instance. \"canary retire\" then deletes its\nchannel when no host follows it and the app's instances have been unchanged\nfor 15 minutes. Shipped releases stay.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app the canary belongs to\n --console <string> console to remove through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --name <string> canary name to remove\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| +{"case":"canary | --help","argv":["canary","--help"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n carlos canary retire --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it. An expired lease only warns: the canary keeps\nserving and nothing is deleted.\n\n\"canary rm\" deletes the canary's instance. \"canary retire\" then deletes its\nchannel when no host follows it and the app's instances have been unchanged\nfor 15 minutes. Shipped releases stay.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app to canary\n --console <string> console to deploy through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --mail <string> declare this build's mail transport. the one value is submit: the build sends through carlos's submission socket when CARLOS_MAIL=submit is set\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"} |
| +{"case":"canary | --zz-unknown-flag","argv":["canary","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n carlos canary retire --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it. An expired lease only warns: the canary keeps\nserving and nothing is deleted.\n\n\"canary rm\" deletes the canary's instance. \"canary retire\" then deletes its\nchannel when no host follows it and the app's instances have been unchanged\nfor 15 minutes. Shipped releases stay.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app to canary\n --console <string> console to deploy through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --mail <string> declare this build's mail transport. the one value is submit: the build sends through carlos's submission socket when CARLOS_MAIL=submit is set\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"} |
| +{"case":"canary | -h","argv":["canary","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n carlos canary retire --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it. An expired lease only warns: the canary keeps\nserving and nothing is deleted.\n\n\"canary rm\" deletes the canary's instance. \"canary retire\" then deletes its\nchannel when no host follows it and the app's instances have been unchanged\nfor 15 minutes. Shipped releases stay.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app to canary\n --console <string> console to deploy through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --mail <string> declare this build's mail transport. the one value is submit: the build sends through carlos's submission socket when CARLOS_MAIL=submit is set\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"} |
| +{"case":"canary | bare","argv":["canary"],"exit":1,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n carlos canary retire --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it. An expired lease only warns: the canary keeps\nserving and nothing is deleted.\n\n\"canary rm\" deletes the canary's instance. \"canary retire\" then deletes its\nchannel when no host follows it and the app's instances have been unchanged\nfor 15 minutes. Shipped releases stay.\n"} |
| {"case":"canary | help","argv":["canary","help"],"exit":1,"stdout":"","stderr":"not in a git repository — pass --version\n"} |
| {"case":"canary | zz-unknown","argv":["canary","zz-unknown"],"exit":1,"stdout":"","stderr":"not in a git repository — pass --version\n"} |
| {"case":"channels digests --account-id x on | extra","argv":["channels","digests","--account-id","x","on"],"exit":1,"stdout":"","stderr":"usage: carlos channels digests [on|off] [--account-id <sqid>]...\n"} |