plan: release copy across consoles (#1389 item 1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+221
−0
docs/superpowers/plans/2026-11-25-release-copy-across-consoles.md+221 −0
CI cancelled — superseded by a newer push — 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-Hmnscv
.amadan/test-gate.sh
go: downloading github.com/aws/aws-sdk-go-v2 v1.44.0
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.68.0
go: downloading github.com/aws/aws-sdk-go-v2/service/costexplorer v1.67.5
go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0
go: downloading github.com/aws/smithy-go v1.28.1
go: downloading github.com/benbjohnson/litestream v0.5.14
go: downloading github.com/superfly/ltx v0.5.1
go: downloading golang.org/x/net v0.62.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/config v1.32.6
go: downloading github.com/aws/aws-sdk-go-v2/service/sns v1.43.0
go: downloading golang.org/x/crypto v0.58.0
go: downloading github.com/aws/aws-sdk-go-v2/service/acm v1.45.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.324.0
go: downloading github.com/aws/aws-sdk-go-v2/service/iam v1.58.2
go: downloading github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi v1.37.0
go: downloading github.com/aws/aws-sdk-go-v2/service/route53 v1.64.1
go: downloading golang.org/x/sys v0.49.0
go: downloading github.com/pion/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/aws/aws-sdk-go-v2/service/sesv2 v1.66.6
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/pion/transport/v4 v4.0.2
go: downloading github.com/klauspost/compress v1.20.2
go: downloading golang.org/x/text v0.43.0
go: downloading github.com/prometheus/client_golang v1.17.0
go: downloading golang.org/x/sync v0.24.0
go: downloading github.com/lmittmann/tint v1.1.3
go: downloading github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.20.18
go: downloading google.golang.org/protobuf v1.36.10
go: downloading github.com/prometheus/client_model v0.5.0
go: downloading github.com/prometheus/procfs v0.12.0
go: downloading github.com/prometheus/common v0.45.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.3.0
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/libc v1.74.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading modernc.org/memory v1.11.0
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 github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
=== launchctx (4 s, from +0 s)
ok amadan.net/carlos/platform.git/launchctx 0.015s
? amadan.net/carlos/platform.git/launchctx/controlname [no test files]
? amadan.net/carlos/platform.git/launchctx/wireid [no test files]
=== vet (166 s, from +0 s)
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading github.com/klauspost/compress v1.20.2
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/google/uuid v1.6.0
=== vet-tags (186 s, from +0 s)
go: downloading github.com/klauspost/compress v1.20.2
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading modernc.org/memory v1.11.0
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
=== gofmt (1 s, from +0 s)
gofmt -l .: clean
=== rest (372 s, from +21 s)
ok github.com/carlosframework/platform/cmd/carlos-media 118.285s
? github.com/carlosframework/platform/cmd/changelog [no test files]
ok github.com/carlosframework/platform/cmd/console 207.314s
ok github.com/carlosframework/platform/cmd/mediaimage 43.998s
ok github.com/carlosframework/platform/cmd/moveprobe 16.121s
ok github.com/carlosframework/platform/cmd/pricebook-export 0.029s
ok github.com/carlosframework/platform/cmd/rootfswitness 0.153s
ok github.com/carlosframework/platform/cmd/runsc-assets 0.214s
ok github.com/carlosframework/platform/cmd/zddprobe 1.024s
ok github.com/carlosframework/platform/internal/agentsock 0.104s
ok github.com/carlosframework/platform/internal/alerting 0.024s
ok github.com/carlosframework/platform/internal/analytics 0.190s
ok github.com/carlosframework/platform/internal/appconfig 46.970s
ok github.com/carlosframework/platform/internal/apperr 0.486s
ok github.com/carlosframework/platform/internal/applog 0.541s
ok github.com/carlosframework/platform/internal/apppolicy 2.794s
ok github.com/carlosframework/platform/internal/assetcache 0.541s
ok github.com/carlosframework/platform/internal/awsinv 0.021s
ok github.com/carlosframework/platform/internal/awsmanaged 0.551s
ok github.com/carlosframework/platform/internal/awsregiongroup 0.332s
ok github.com/carlosframework/platform/internal/awsterminations 0.021s
ok github.com/carlosframework/platform/internal/backupswords 0.021s
ok github.com/carlosframework/platform/internal/billing 0.096s
ok github.com/carlosframework/platform/internal/billing/billingtest 0.051s
ok github.com/carlosframework/platform/internal/billingstripe 1.939s
ok github.com/carlosframework/platform/internal/boxchoice 0.048s
ok github.com/carlosframework/platform/internal/boxid 3.114s
? 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.009s
ok github.com/carlosframework/platform/internal/boxself 0.188s
ok github.com/carlosframework/platform/internal/boxvolumes 0.095s
ok github.com/carlosframework/platform/internal/caps 4.283s
ok github.com/carlosframework/platform/internal/certwarm 0.027s
ok github.com/carlosframework/platform/internal/cgroup 1.540s
ok github.com/carlosframework/platform/internal/changelog 3.694s
ok github.com/carlosframework/platform/internal/clamd 0.109s
? github.com/carlosframework/platform/internal/cliflag [no test files]
ok github.com/carlosframework/platform/internal/clireg 0.012s
ok github.com/carlosframework/platform/internal/codehealth 17.389s
ok github.com/carlosframework/platform/internal/compute 0.022s
ok github.com/carlosframework/platform/internal/consolefleet 0.011s
? 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.244s
ok github.com/carlosframework/platform/internal/dbdoor/dbdoortest 0.031s
ok github.com/carlosframework/platform/internal/dbquery 0.011s
ok github.com/carlosframework/platform/internal/dbreads 2.943s
? github.com/carlosframework/platform/internal/dbreads/dbreadstest [no test files]
ok github.com/carlosframework/platform/internal/dbverify 0.020s
ok github.com/carlosframework/platform/internal/demo 0.018s
ok github.com/carlosframework/platform/internal/demobuild 3.156s
ok github.com/carlosframework/platform/internal/democlaim 0.622s
ok github.com/carlosframework/platform/internal/devbox 13.705s
ok github.com/carlosframework/platform/internal/dnsrec 0.005s
ok github.com/carlosframework/platform/internal/docsite 0.128s
ok github.com/carlosframework/platform/internal/domainreg 0.014s
ok github.com/carlosframework/platform/internal/domains 70.034s
ok github.com/carlosframework/platform/internal/doorkey 0.028s
ok github.com/carlosframework/platform/internal/economics 0.016s
ok github.com/carlosframework/platform/internal/edgefence 0.089s
ok github.com/carlosframework/platform/internal/edgeguard 0.528s
? github.com/carlosframework/platform/internal/edgeproof [no test files]
ok github.com/carlosframework/platform/internal/edgesfile 0.104s
ok github.com/carlosframework/platform/internal/egressaddr 0.010s
ok github.com/carlosframework/platform/internal/execsandbox 104.940s
ok github.com/carlosframework/platform/internal/fileacl 0.012s
ok github.com/carlosframework/platform/internal/fleetapi 1.766s
ok github.com/carlosframework/platform/internal/fleetstore 0.012s
ok github.com/carlosframework/platform/internal/fxrate 0.018s
ok github.com/carlosframework/platform/internal/gate 4.751s
ok github.com/carlosframework/platform/internal/genselect 0.111s
ok github.com/carlosframework/platform/internal/geo 0.059s
ok github.com/carlosframework/platform/internal/geoip 0.103s
ok github.com/carlosframework/platform/internal/groupadmission 0.013s
ok github.com/carlosframework/platform/internal/grouprollaws 17.630s
ok github.com/carlosframework/platform/internal/hadeparture 0.013s
ok github.com/carlosframework/platform/internal/hafresh 0.013s
ok github.com/carlosframework/platform/internal/hairpin 0.219s
ok github.com/carlosframework/platform/internal/historyreadback 1.249s
ok github.com/carlosframework/platform/internal/hostactors 25.039s
ok github.com/carlosframework/platform/internal/hostbox 23.041s
ok github.com/carlosframework/platform/internal/hostclaim 2.455s
ok github.com/carlosframework/platform/internal/hostenv 0.047s
ok github.com/carlosframework/platform/internal/hostevidence 0.021s
ok github.com/carlosframework/platform/internal/hostexec 25.091s
ok github.com/carlosframework/platform/internal/hostfence 0.220s
ok github.com/carlosframework/platform/internal/hostfiles 27.683s
ok github.com/carlosframework/platform/internal/hostfloor 0.120s
ok github.com/carlosframework/platform/internal/hostguard 1.515s
ok github.com/carlosframework/platform/internal/hostops 6.749s
? 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.012s
ok github.com/carlosframework/platform/internal/hostrelocate 2.292s
ok github.com/carlosframework/platform/internal/hostresolve 0.677s
ok github.com/carlosframework/platform/internal/hostwrite 0.038s
ok github.com/carlosframework/platform/internal/infraview 0.011s
ok github.com/carlosframework/platform/internal/ingresshealth 0.010s
ok github.com/carlosframework/platform/internal/ingresshealth/awstg 0.016s
ok github.com/carlosframework/platform/internal/instancectl 55.336s
ok github.com/carlosframework/platform/internal/instanceexec 8.101s
ok github.com/carlosframework/platform/internal/instancefs 0.049s
ok github.com/carlosframework/platform/internal/instancekey 0.013s
ok github.com/carlosframework/platform/internal/instanceupdates 0.034s
ok github.com/carlosframework/platform/internal/interactive 0.782s
ok github.com/carlosframework/platform/internal/launchd 0.012s
ok github.com/carlosframework/platform/internal/layout 22.905s
ok github.com/carlosframework/platform/internal/layout/pubclass 100.415s
ok github.com/carlosframework/platform/internal/lbhealth 0.016s
ok github.com/carlosframework/platform/internal/lease 148.474s
ok github.com/carlosframework/platform/internal/lease/leasetest 1.085s
ok github.com/carlosframework/platform/internal/lease/locktest 0.023s
ok github.com/carlosframework/platform/internal/ledger 0.062s
ok github.com/carlosframework/platform/internal/mail 0.760s
ok github.com/carlosframework/platform/internal/mailer 0.768s
ok github.com/carlosframework/platform/internal/mailsubmit 1.502s
ok github.com/carlosframework/platform/internal/mailwire 0.010s
ok github.com/carlosframework/platform/internal/maintenance 0.205s
ok github.com/carlosframework/platform/internal/maintenanceexec 9.044s
ok github.com/carlosframework/platform/internal/maintenanceguard 0.286s
ok github.com/carlosframework/platform/internal/media 1.819s
ok github.com/carlosframework/platform/internal/media/mediatest 0.010s
ok github.com/carlosframework/platform/internal/mediaaws 64.919s
ok github.com/carlosframework/platform/internal/mediahandler 44.883s
ok github.com/carlosframework/platform/internal/mediajobs 0.866s
ok github.com/carlosframework/platform/internal/medialocal 10.256s
ok github.com/carlosframework/platform/internal/metrics 0.130s
ok github.com/carlosframework/platform/internal/minorunits 0.016s
ok github.com/carlosframework/platform/internal/moves 55.985s
ok github.com/carlosframework/platform/internal/moves/archive 3.102s
ok github.com/carlosframework/platform/internal/moves/offlinerun 0.073s
ok github.com/carlosframework/platform/internal/namedunits 0.030s
ok github.com/carlosframework/platform/internal/objstore 2.141s
ok github.com/carlosframework/platform/internal/ops 16.806s
ok github.com/carlosframework/platform/internal/pageindex 4.046s
ok github.com/carlosframework/platform/internal/parity 0.155s
? github.com/carlosframework/platform/internal/parity/cmd/parity-doc [no test files]
ok github.com/carlosframework/platform/internal/park 0.659s
ok github.com/carlosframework/platform/internal/perf 0.202s
ok github.com/carlosframework/platform/internal/plans 0.131s
ok github.com/carlosframework/platform/internal/privatefile 0.016s
ok github.com/carlosframework/platform/internal/provision 241.320s
ok github.com/carlosframework/platform/internal/proxyproto 0.930s
ok github.com/carlosframework/platform/internal/publicrelease 0.054s
ok github.com/carlosframework/platform/internal/ratelimit 0.218s
ok github.com/carlosframework/platform/internal/regionlabel 0.041s
ok github.com/carlosframework/platform/internal/regionname 0.078s
ok github.com/carlosframework/platform/internal/registrar 0.016s
ok github.com/carlosframework/platform/internal/registrar/openprovider 0.506s
? github.com/carlosframework/platform/internal/registrar/registrartest [no test files]
ok github.com/carlosframework/platform/internal/registry 87.808s
ok github.com/carlosframework/platform/internal/relay 7.781s
ok github.com/carlosframework/platform/internal/release 92.588s
ok github.com/carlosframework/platform/internal/replicagen 0.064s
ok github.com/carlosframework/platform/internal/replicas 0.059s
ok github.com/carlosframework/platform/internal/reqrec 8.279s
ok github.com/carlosframework/platform/internal/rollout 13.003s
ok github.com/carlosframework/platform/internal/rolloutwords 0.021s
ok github.com/carlosframework/platform/internal/rootaws 101.656s
ok github.com/carlosframework/platform/internal/rootfsimage 0.837s
ok github.com/carlosframework/platform/internal/rootparticipation 0.086s
ok github.com/carlosframework/platform/internal/rootstate 0.054s
ok github.com/carlosframework/platform/internal/runs 0.807s
ok github.com/carlosframework/platform/internal/s3compat 0.017s
ok github.com/carlosframework/platform/internal/s3fake 1.426s
ok github.com/carlosframework/platform/internal/safefile 0.035s
ok github.com/carlosframework/platform/internal/schedule 26.364s
ok github.com/carlosframework/platform/internal/seeds 0.143s
ok github.com/carlosframework/platform/internal/sim/litestreamfacts 5.695s
ok github.com/carlosframework/platform/internal/sim/mediajobs 53.537s
ok github.com/carlosframework/platform/internal/sim/regionha 24.670s
ok github.com/carlosframework/platform/internal/status 0.697s
ok github.com/carlosframework/platform/internal/steering 0.359s
ok github.com/carlosframework/platform/internal/stopevidence 0.767s
ok github.com/carlosframework/platform/internal/storecfg 0.545s
ok github.com/carlosframework/platform/internal/svcrole 0.010s
ok github.com/carlosframework/platform/internal/systemd 6.364s
? github.com/carlosframework/platform/internal/systemdshow [no test files]
ok github.com/carlosframework/platform/internal/team 4.175s
ok github.com/carlosframework/platform/internal/teamcontract 0.355s
ok github.com/carlosframework/platform/internal/telemetry 0.048s
ok github.com/carlosframework/platform/internal/termfence 5.028s
ok github.com/carlosframework/platform/internal/timerspec 0.059s
ok github.com/carlosframework/platform/internal/tsidentity 4.233s
ok github.com/carlosframework/platform/internal/tunnelclient 0.447s
ok github.com/carlosframework/platform/internal/unixdial 0.016s
ok github.com/carlosframework/platform/internal/updatewords 0.049s
ok github.com/carlosframework/platform/internal/upstreamguard 0.017s
? github.com/carlosframework/platform/internal/upstreamguard/guardtest [no test files]
ok github.com/carlosframework/platform/internal/usage 0.034s
ok github.com/carlosframework/platform/internal/version 0.007s
ok github.com/carlosframework/platform/internal/vet 3.068s
ok github.com/carlosframework/platform/internal/zonehost 0.018s
ok github.com/carlosframework/platform/internal/zonehost/route53zones 0.104s
? 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.020s
ok github.com/carlosframework/platform/scripts/pathmapcheck 0.087s
ok github.com/carlosframework/platform/scripts/region-ha-g2/fixture 5.194s
ok github.com/carlosframework/platform/scripts/stateless-replicas-drill 1.214s
ok github.com/carlosframework/platform/scripts/witness-pointer 0.032s
=== cutover-witness (146 s, from +21 s)
ok github.com/carlosframework/platform 2.737s
=== internal_grouproll@0 (283 s, from +64 s)
ok github.com/carlosframework/platform/internal/grouproll 280.640s
=== internal_grouproll@1 (281 s, from +64 s)
ok github.com/carlosframework/platform/internal/grouproll 279.562s
=== internal_activator@0 (161 s, from +134 s)
ok github.com/carlosframework/platform/internal/activator 156.606s
=== internal_activator@1 (135 s, from +134 s)
ok github.com/carlosframework/platform/internal/activator 129.923s
=== internal_activator@2 (140 s, from +134 s)
ok github.com/carlosframework/platform/internal/activator 135.296s
=== internal_activator@3 (174 s, from +134 s)
ok github.com/carlosframework/platform/internal/activator 169.595s
=== internal_edge@0 (200 s, from +155 s)
ok github.com/carlosframework/platform/internal/edge 187.363s
=== internal_edge@1 (153 s, from +156 s)
ok github.com/carlosframework/platform/internal/edge 142.017s
=== internal_edge@2 (165 s, from +156 s)
ok github.com/carlosframework/platform/internal/edge 154.061s
=== internal_edge@3 (221 s, from +156 s)
ok github.com/carlosframework/platform/internal/edge 208.672s
=== root@0 (120 s, from +160 s)
ok github.com/carlosframework/platform 109.248s
=== root@1 (118 s, from +160 s)
ok github.com/carlosframework/platform 107.006s
=== root@2 (128 s, from +160 s)
ok github.com/carlosframework/platform 117.567s
=== root@3 (116 s, from +160 s)
ok github.com/carlosframework/platform 106.229s
=== root@4 (107 s, from +160 s)
ok github.com/carlosframework/platform 97.630s
=== internal_host@0 (144 s, from +207 s)
ok github.com/carlosframework/platform/internal/host 139.845s
=== internal_host@1 (140 s, from +207 s)
ok github.com/carlosframework/platform/internal/host 135.083s
=== internal_host@2 (216 s, from +207 s)
ok github.com/carlosframework/platform/internal/host 211.036s
=== internal_host@3 (260 s, from +207 s)
ok github.com/carlosframework/platform/internal/host 255.767s
=== internal_host@4 (157 s, from +207 s)
ok github.com/carlosframework/platform/internal/host 152.465s
=== internal_host@5 (272 s, from +207 s)
ok github.com/carlosframework/platform/internal/host 266.919s
=== internal_console@0 (155 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 148.858s
=== internal_console@1 (175 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 167.065s
=== internal_console@2 (210 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 202.633s
=== internal_console@3 (242 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 235.792s
=== internal_console@4 (196 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 189.494s
=== internal_console@5 (210 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 202.288s
=== internal_console@6 (208 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 200.889s
=== internal_console@7 (212 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 205.603s
=== internal_console@8 (212 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 203.974s
=== internal_console@9 (212 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 204.957s
=== internal_console@10 (225 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 217.796s
=== internal_console@11 (239 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 231.697s
=== internal_console@12 (283 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 275.718s
=== internal_console@13 (262 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 254.645s
=== internal_console@14 (236 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 227.693s
=== internal_console@15 (213 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 206.588s
=== internal_console@16 (234 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 226.192s
=== internal_console@17 (201 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 194.321s
=== internal_console@18 (212 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 205.109s
=== internal_console@19 (207 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 198.623s
=== internal_console@20 (208 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 200.714s
=== internal_console@21 (221 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 214.617s
=== internal_console@22 (215 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 207.936s
=== internal_console@23 (247 s, from +213 s)
ok github.com/carlosframework/platform/internal/console 239.228s
=== lists: internal_console 212 s, internal_edge 155 s, internal_activator 133 s, internal_host 206 s, root 157 s, internal_grouproll 63 s
=== cpu: the gate used 12409 cpu-seconds in 496 s, about 25.0 of 32 cores; the machine as a whole was 84% busy
=== opentofu ===
opentofu: 37 test files in 11 suites, OpenTofu v1.13.9
initialised in 7 s
ok 19 s infra/modules/box-fence-writer/tests/writer.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 20 s infra/modules/deployment-buckets/tests/db_reads.tftest.hcl Success! 1 passed, 0 failed.
ok 21 s infra/modules/deployment-buckets/tests/evidence.tftest.hcl Success! 1 passed, 0 failed.
ok 33 s infra/modules/deployment-buckets/tests/fence_writers.tftest.hcl Success! 3 passed, 0 failed.
ok 22 s infra/modules/deployment-buckets/tests/media_results.tftest.hcl Success! 2 passed, 0 failed.
ok 87 s infra/modules/media-engine/tests/media_engine.tftest.hcl Success! 24 passed, 0 failed.
ok 35 s infra/modules/pdf-host/tests/computed.tftest.hcl Success! 2 passed, 0 failed.
ok 57 s infra/modules/pdf-host/tests/pdf_host.tftest.hcl Success! 24 passed, 0 failed.
ok 41 s infra/modules/region-group-operator-document/tests/document.tftest.hcl Success! 12 passed, 0 failed.
ok 18 s infra/modules/region-host/ingress/tests/fixed-targets/tests/targets.tftest.hcl Success! 2 passed, 0 failed.
ok 68 s infra/modules/region-host/ingress/tests/group_ingress.tftest.hcl Success! 30 passed, 0 failed.
ok 44 s infra/modules/region-host/tests/alert_publish.tftest.hcl Success! 18 passed, 0 failed.
ok 40 s infra/modules/region-host/tests/alerts_topic.tftest.hcl Success! 16 passed, 0 failed.
ok 11 s infra/modules/region-host/tests/analytics_prune.tftest.hcl Success! 2 passed, 0 failed.
ok 17 s infra/modules/region-host/tests/console_mail.tftest.hcl Success! 4 passed, 0 failed.
ok 10 s infra/modules/region-host/tests/fixed_state_unchanged.tftest.hcl Success! 1 passed, 0 failed.
ok 73 s infra/modules/region-host/tests/group.tftest.hcl Success! 32 passed, 0 failed.
ok 11 s infra/modules/region-host/tests/group_alarms.tftest.hcl Success! 4 passed, 0 failed.
ok 12 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 28 s infra/modules/region-host/tests/health_alarms.tftest.hcl Success! 10 passed, 0 failed.
ok 11 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 10 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 108 s infra/modules/region-host/tests/managed_fleets/managed_fleets.tftest.hcl Success! 46 passed, 0 failed.
ok 72 s infra/modules/region-host/tests/store_conversion.tftest.hcl Success! 27 passed, 0 failed.
ok 19 s infra/modules/region-host/tests/store_scanning.tftest.hcl Success! 4 passed, 0 failed.
ok 30 s infra/modules/region-host/tests/store_versioning.tftest.hcl Success! 11 passed, 0 failed.
ok 18 s infra/modules/region-host/tests/user_data_ignored.tftest.hcl Success! 3 passed, 0 failed.
ok 12 s infra/modules/region-remote-host/tests/data_lifecycle.tftest.hcl Success! 3 passed, 0 failed.
ok 15 s infra/modules/region-remote-host/tests/no_deployment_bucket.tftest.hcl Success! 5 passed, 0 failed.
ok 29 s infra/modules/scanner-host/tests/scanner_host.tftest.hcl Success! 14 passed, 0 failed.
opentofu: 37 files in 202 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: 65994914 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:24557
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.037s
=== RUN TestT4StorageProbeMinio
2026/11/25 08:16:34 moves: T4: STORE: list: operation error S3: ListObjectsV2, https response error StatusCode: 403, RequestID: 18EB3BC52DD2120A, HostID: e770cb3095adf9e0828bfbd41c719baff90158184b34df72c77c6631ac4997a2, api error SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.
--- PASS: TestT4StorageProbeMinio (0.01s)
PASS
ok github.com/carlosframework/platform/internal/host 0.046s
=== RUN TestS3StoreMinioContract
=== RUN TestS3StoreMinioContract/conditional_get_and_etag_listing
=== RUN TestS3StoreMinioContract/bump_through_every_mutation_path
--- PASS: TestS3StoreMinioContract (0.03s)
--- PASS: TestS3StoreMinioContract/conditional_get_and_etag_listing (0.01s)
--- PASS: TestS3StoreMinioContract/bump_through_every_mutation_path (0.02s)
PASS
ok github.com/carlosframework/platform/internal/release 0.041s
Bucket created successfully `local/analytics-versions`.
local/analytics-versions versioning is enabled
Created policy `analytics-versions` successfully.
Added user `analyticsversions` successfully.
Attached Policies: [analytics-versions]
To User: analyticsversions
=== RUN TestS3StoreMinioVersions
--- PASS: TestS3StoreMinioVersions (0.03s)
PASS
ok github.com/carlosframework/platform/internal/release 0.041s
Bucket created successfully `local/store-versioned`.
local/store-versioned versioning is enabled
Created policy `store-versioned` successfully.
Added user `storeversioned` successfully.
Attached Policies: [store-versioned]
To User: storeversioned
=== RUN TestVersionedContractMinio
--- PASS: TestVersionedContractMinio (0.01s)
PASS
ok github.com/carlosframework/platform/internal/objstore 0.020s
=== RUN TestEndToEndMinio
=== RUN TestEndToEndMinio/plan
=== RUN TestEndToEndMinio/roll
=== RUN TestEndToEndMinio/replace
=== RUN TestEndToEndMinio/remove
--- PASS: TestEndToEndMinio (0.47s)
--- PASS: TestEndToEndMinio/plan (0.01s)
--- PASS: TestEndToEndMinio/roll (0.12s)
--- PASS: TestEndToEndMinio/replace (0.15s)
--- PASS: TestEndToEndMinio/remove (0.15s)
PASS
ok github.com/carlosframework/platform/internal/grouproll 0.477s
Bucket created successfully `local/dbf-deploy`.
Bucket created successfully `local/dbf-data-ie`.
Bucket created successfully `local/dbf-data-uk`.
local/dbf-deploy versioning is enabled
Created policy `dbf-console` successfully.
Created policy `dbf-ukbox` successfully.
Added user `dbfconsole` successfully.
Added user `dbfukbox` successfully.
Attached Policies: [dbf-console]
To User: dbfconsole
Attached Policies: [dbf-ukbox]
To User: dbfukbox
=== RUN TestDBForwardMinio
2026/11/25 08:16:41 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/25 08:16:41 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/11/25 08:16:41 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/11/25 08:16:41 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/11/25 08:16:41 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=370
2026/11/25 08:16:41 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000002
2026/11/25 08:16:41 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/11/25 08:16:41 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=454
2026/11/25 08:16:41 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/11/25 08:16:41 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/11/25 08:16:41 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/11/25 08:16:41 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/11/25 08:16:41 console: CARLOS_SECRETS_PUBKEY is unset, so no region outside the home can be chosen automatically
2026/11/25 08:16:41 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%3A43071: could not determine target mailbox
agent.go:136: dbreads: dbr_55bwixznlgl2bwzjig3lekuqje: planned 3 files (1544 bytes) and restored to 3 in 13ms
agent.go:136: dbreads: dbr_55bwixznlgl2bwzjig3lekuqje: output 5 bytes in 1 confirmed chunks in 2ms
2026/11/25 08:16:42 console: db read dbr_55bwixznlgl2bwzjig3lekuqje: relayed 1 chunks (102 bytes) in 1.005s, ended done
agent.go:136: dbreads: dbr_y7uvom3md5kki26uiuogu7occi: planned 1 files (720 bytes) and restored to 1 in 11ms
agent.go:136: dbreads: dbr_y7uvom3md5kki26uiuogu7occi: output 5 bytes in 1 confirmed chunks in 2ms
2026/11/25 08:16:43 console: db read dbr_y7uvom3md5kki26uiuogu7occi: relayed 1 chunks (102 bytes) in 1.005s, ended done
agent.go:136: dbreads: dbr_vwrgpmvigqd3imzznd4ocfwxxa: planned 3 files (1544 bytes) and held through 3 in 13ms
agent.go:136: dbreads: dbr_vwrgpmvigqd3imzznd4ocfwxxa: output 1544 bytes in 1 confirmed chunks in 1ms
2026/11/25 08:16:44 console: db read dbr_vwrgpmvigqd3imzznd4ocfwxxa: relayed 1 chunks (1641 bytes) in 1.005s, ended done
=== RUN TestDBForwardMinio/by_disconnect
=== NAME TestDBForwardMinio
agent.go:136: dbreads: dbr_z4eojs7s2ouobgsbw3xtgfa2ie: planned 3 files (1544 bytes) and restored to 3 in 13ms
2026/11/25 08:16:45 console: db read dbr_z4eojs7s2ouobgsbw3xtgfa2ie: relayed 0 chunks (0 bytes) in 17ms, ended client gone
agent.go:136: dbreads: dbr_z4eojs7s2ouobgsbw3xtgfa2ie: output 5 bytes in 1 confirmed chunks in 104ms
=== RUN TestDBForwardMinio/by_timeout
=== NAME TestDBForwardMinio
agent.go:136: dbreads: dbr_mpitfxe5nwyxjwupajtwc63ytm: planned 3 files (1544 bytes) and restored to 3 in 13ms
2026/11/25 08:17:05 console: db read dbr_mpitfxe5nwyxjwupajtwc63ytm: relayed 0 chunks (0 bytes) in 19.79s, ended no-result
agent.go:136: dbreads: dbr_mpitfxe5nwyxjwupajtwc63ytm: output 5 bytes in 1 confirmed chunks in 19.763s
--- PASS: TestDBForwardMinio (23.46s)
--- PASS: TestDBForwardMinio/by_disconnect (0.23s)
--- PASS: TestDBForwardMinio/by_timeout (19.90s)
PASS
ok github.com/carlosframework/platform/internal/console 23.503s
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.075s
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.55s)
PASS
ok github.com/carlosframework/platform/internal/medialocal 0.557s
=== RUN TestHeldHandoverTwoBoxMinio
2026/11/25 08:17:10 edge: mesh key: minted
2026/11/25 08:17:10 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/25 08:17:10 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/25 08:17:10 tenant admission is open. accepting tenant work
2026/11/25 08:17:10 activator: HA placement host=shop-d829354d.example.test kind=Place ref=annie reason=roomiest generation=2026-11-25T08:17:10Z lock_generation=0
2026/11/25 08:17:10 lease: t8-d829354d/shop-d829354d.example.test: HA lease acquired in 4ms (first wake)
2026/11/25 08:17:10 activator: shop-d829354d.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/25 08:17:10 activator: shop-d829354d.example.test: started carlos-instance@shop\x2dd829354d.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 6ms, control socket 0s, key gate 0s, logs 0s) 6ms, launch file 0s, gate 0s, root start 1ms)
2026/11/25 08:17:10 activator: shop-d829354d.example.test: carlos-instance@shop\x2dd829354d.example.test.service launched in 7ms, healthy 0s later
2026/11/25 08:17:10 activator: shop-d829354d.example.test: woke in 20ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 7ms, replicate 7ms
2026/11/25 08:17:10 lease: t8-d829354d/plain-d829354d.example.test: acquired in 1ms (client 0s, lock read and write 1ms)
2026/11/25 08:17:10 activator: no replica for plain-d829354d.example.test in s3://contract-bucket/t8-d829354d/plain-d829354d.example.test — booting fresh
2026/11/25 08:17:10 activator: plain-d829354d.example.test: started carlos-instance@plain\x2dd829354d.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 1ms, instance key 0s, env 4ms, control socket 0s, key gate 0s, logs 0s) 5ms, launch file 0s, gate 0s, root start 1ms)
2026/11/25 08:17:10 activator: plain-d829354d.example.test: carlos-instance@plain\x2dd829354d.example.test.service launched in 6ms, healthy 0s later
2026/11/25 08:17:10 activator: plain-d829354d.example.test: woke in 93ms: checks 0s, lease 2ms, restore 19ms, identity 0s, protect 0s, spawn 7ms, replicate 66ms
2026/11/25 08:17:10 lease: t8-d829354d/bot0.shop.bac.sidecar.internal: HA lease acquired in 4ms (first wake)
2026/11/25 08:17:10 activator: bot0.shop.bac.sidecar.internal: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/25 08:17:10 activator: bot0.shop.bac.sidecar.internal: woke in 21ms: checks 0s, lease 5ms, restore 0s, identity 0s, protect 0s, spawn 7ms, settle 0s, replicate 7ms
2026/11/25 08:17:10 activator: next-due probe plain-d829354d.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/25 08:17:10 activator: plain-d829354d.example.test hibernated
2026/11/25 08:17:10 activator: bot0.shop.bac.sidecar.internal: released with a marker (clean true, txid 1, files 3:c5dd148792b15a2dd95188a1f160678113a3ea381ac15aa4568cc0805c70fc5a) in 7ms: files 1ms, sync 4ms, record 1ms, marker 2ms
2026/11/25 08:17:10 activator: bot0.shop.bac.sidecar.internal hibernated
2026/11/25 08:17:10 activator: next-due probe shop-d829354d.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/25 08:17:10 activator: shop-d829354d.example.test: released with a marker (clean true, txid 1, files 3:21420af0a57ab807320cc632785cf4e76a5451854e51f3907b0d0dcee1368b39) in 6ms: files 1ms, sync 2ms, record 1ms, marker 2ms
2026/11/25 08:17:10 activator: shop-d829354d.example.test hibernated
2026/11/25 08:17:10 lease: t8-d829354d/shop-d829354d.example.test: HA lease acquired in 3ms (clean marker)
2026/11/25 08:17:10 activator: shop-d829354d.example.test: restored (other-box)
2026/11/25 08:17:10 activator: shop-d829354d.example.test: started carlos-instance@shop\x2dd829354d.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 1ms, control socket 0s, key gate 0s, logs 0s) 1ms, launch file 0s, gate 0s, root start 1ms)
2026/11/25 08:17:10 activator: shop-d829354d.example.test: carlos-instance@shop\x2dd829354d.example.test.service launched in 3ms, healthy 0s later
2026/11/25 08:17:10 activator: shop-d829354d.example.test: woke in 43ms: checks 0s, lease 4ms, restore 28ms, identity 0s, protect 0s, spawn 3ms, replicate 8ms
2026/11/25 08:17:10 edge: ha-take shop-d829354d.example.test from annie (txn t8-witness, marker generation 1): holder betty, generation 2
2026/11/25 08:17:10 edge: forward shop-d829354d.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:aeec7b42f850cb686ff491101ea680be Step:move Result:ok Reasons:[] Fence:t8-witness StartedAt:2026-11-25 08:17:10.37598677 +0000 UTC FinishedAt:2026-11-25 08:17:10.474376034 +0000 UTC Acked:[betty carol] Departed:[] Moved:[{Host:shop-d829354d.example.test Holder:betty Gen:2 Confirmed:take}] Released:[{Host:plain-d829354d.example.test Kind:other Marker:true Clean:true Reason:} {Host:bot0.shop.bac.sidecar.internal Kind:worker Marker:true Clean:true Reason:}] Unclean:[] Left:[] Holds:{LongestMS:75 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-d829354d.example.test <nil> stop plain-d829354d.example.test marker=true clean=true <nil> stop bot0.shop.bac.sidecar.internal marker=true clean=true <nil> releasing shop-d829354d.example.test <nil> stop shop-d829354d.example.test marker=true clean=true <nil> taken shop-d829354d.example.test betty <nil> end-moves]
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/bot0.shop.bac.sidecar.internal/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/bot0.shop.bac.sidecar.internal/0002/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/bot0.shop.bac.sidecar.internal/0003/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-d829354d/shop-d829354d.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: DELETE /contract-bucket/t8-d829354d/plain-d829354d.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-d829354d/bot0.shop.bac.sidecar.internal/0009/0000000000000001-0000000000000001.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-d829354d/bot0.shop.bac.sidecar.internal/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-d829354d/shop-d829354d.example.test/0009/0000000000000001-0000000000000001.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-d829354d/shop-d829354d.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-d829354d/shop-d829354d.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-d829354d/shop-d829354d.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-d829354d/shop-d829354d.example.test/head.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/generations/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0009/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0008/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0007/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0006/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0005/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0004/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0003/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0002/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0009/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0008/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0007/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0006/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0005/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0004/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0003/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0002/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-d829354d/shop-d829354d.example.test/0009/0000000000000001-0000000000000001.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-d829354d/shop-d829354d.example.test/files/0/manifest.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-d829354d/shop-d829354d.example.test/files/0/objects/0000000000000001-a7251cc01818dcf2c02d83595063e5cac0d39d2f9cbd0565ee298cec1e7aff5d
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-d829354d/shop-d829354d.example.test/files/0/objects/0000000000000003-f11139e0937f6e2e82b88ed7efeca088c69e8d29f516f365c45367e6e74f5119
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-d829354d/shop-d829354d.example.test/0000/0000000000000001-0000000000000001.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0002/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-d829354d/shop-d829354d.example.test/0000/0000000000000002-0000000000000002.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0003/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0009/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0009/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-d829354d/shop-d829354d.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-d829354d/shop-d829354d.example.test/0001/0000000000000001-0000000000000001.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0002/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-d829354d/shop-d829354d.example.test/0003/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-d829354d/shop-d829354d.example.test/0002/0000000000000001-0000000000000001.ltx
hadrain_twobox_minio_linux_test.go:1243: drain took 142ms; S3 calls 53 (DELETE lock=1 GET files=3 GET head=1 GET lock=3 GET replica=3 LIST replica=35 PUT lock=3 PUT replica=4); deployment store calls 20 (GET edges=14 LIST edges=4 PUT edges=2)
hadrain_twobox_minio_linux_test.go:1367: the fenced A's start gate answers 503 "This service is unavailable. Try again later.\n" (Retry-After "10")
2026/11/25 08:17:10 lease: t8-d829354d/plain-d829354d.example.test: acquired in 2ms (client 0s, lock read and write 1ms)
2026/11/25 08:17:10 activator: plain-d829354d.example.test: started carlos-instance@plain\x2dd829354d.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 0s, control socket 0s, key gate 0s, logs 0s) 0s, launch file 0s, gate 0s, root start 1ms)
2026/11/25 08:17:10 activator: plain-d829354d.example.test: carlos-instance@plain\x2dd829354d.example.test.service launched in 1ms, healthy 0s later
2026/11/25 08:17:10 lease: /tmp/carlos-minio-contract-tCArkT/g/dw1470220536/data/instances/plain-d829354d.example.test/plain-d829354d.example.test.db: continuity with the last clean close not proven; snapshot 1-0000000000000001 written before serving
2026/11/25 08:17:10 activator: plain-d829354d.example.test: woke in 8ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 1ms, spawn 2ms, replicate 4ms
2026/11/25 08:17:10 activator: next-due probe shop-d829354d.example.test: decode /api/next-due: invalid character 'b' looking for beginning of value — recording none (it sleeps until a request)
2026/11/25 08:17:10 activator: shop-d829354d.example.test: released with a marker (clean true, txid 2, files 3:21420af0a57ab807320cc632785cf4e76a5451854e51f3907b0d0dcee1368b39) in 4ms: files 1ms, sync 0s, record 1ms, marker 2ms
2026/11/25 08:17:10 activator: shop-d829354d.example.test hibernated
2026/11/25 08:17:10 tenant admission is closed for shutdown
2026/11/25 08:17:10 activator: next-due probe plain-d829354d.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/25 08:17:10 activator: plain-d829354d.example.test hibernated
--- PASS: TestHeldHandoverTwoBoxMinio (0.54s)
=== RUN TestHeldHandoverLostLeaseMinio
2026/11/25 08:17:10 edge: mesh key: minted
2026/11/25 08:17:10 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/25 08:17:10 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/11/25 08:17:10 tenant admission is open. accepting tenant work
2026/11/25 08:17:10 activator: HA placement host=shop-37ca4181.example.test kind=Place ref=annie reason=roomiest generation=2026-11-25T08:17:10Z lock_generation=0
2026/11/25 08:17:10 lease: t8-37ca4181/shop-37ca4181.example.test: HA lease acquired in 3ms (first wake)
2026/11/25 08:17:10 activator: shop-37ca4181.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/11/25 08:17:10 activator: shop-37ca4181.example.test: started carlos-instance@shop\x2d37ca4181.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 5ms, control socket 0s, key gate 0s, logs 0s) 6ms, launch file 0s, gate 0s, root start 1ms)
2026/11/25 08:17:10 activator: shop-37ca4181.example.test: carlos-instance@shop\x2d37ca4181.example.test.service launched in 7ms, healthy 0s later
2026/11/25 08:17:10 activator: shop-37ca4181.example.test: woke in 18ms: checks 0s, lease 4ms, restore 0s, identity 0s, protect 0s, spawn 7ms, replicate 7ms
2026/11/25 08:17:10 activator: next-due probe shop-37ca4181.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/11/25 08:17:10 activator: final checkpoint shop-37ca4181.example.test: lease: release marker owed for s3://contract-bucket/t8-37ca4181/shop-37ca4181.example.test/lock.json (If-Match "349db1406d5e457c682ac2aaf1ee2b77"): lease: write release marker: operation error S3: PutObject, https response error StatusCode: 503, RequestID: , HostID: , api error ServiceUnavailable: witness: refused
2026/11/25 08:17:10 activator: shop-37ca4181.example.test hibernated
2026/11/25 08:17:10 activator: handover of shop-37ca4181.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-37ca4181.example.test client 4 "
hadrain_twobox_minio_linux_test.go:1486: driver calls: [begin shop-37ca4181.example.test <nil> releasing shop-37ca4181.example.test <nil> stop shop-37ca4181.example.test marker=false clean=false <nil> left shop-37ca4181.example.test released without a marker]
hadrain_twobox_minio_linux_test.go:1487: a request after the loss: 503 "This instance cannot wake right now. Please try again shortly.\n" (Retry-After "10", holder "none", 0s, err <nil>)
2026/11/25 08:17:10 tenant admission is closed for shutdown
2026/11/25 08:17:10 http: proxy error: context canceled
--- PASS: TestHeldHandoverLostLeaseMinio (0.27s)
PASS
ok github.com/carlosframework/platform/internal/host 0.855s
Bucket created successfully `local/gen-take`.
local/gen-take versioning is enabled
Created policy `gen-take` successfully.
Added user `gentake` successfully.
Attached Policies: [gen-take]
To User: gentake
=== RUN TestGenerationTakeMinio
=== RUN TestGenerationTakeMinio/take
2026/11/25 08:17:12 lease: instances/gen-1795594632012738184.shop.example.com: HA lease acquired in 5ms (first wake)
2026/11/25 08:17:12 lease: instances/gen-1795594632012738184.shop.example.com: HA lease acquired in 3ms (holder terminated)
gentake_minio_test.go:308: a second create-only copy onto instances/gen-1795594632012738184.shop.example.com/g-00000000000000000002/0000/0000000000000001-0000000000000001.ltx: <nil> (destination condition honoured: false)
2026/11/25 08:17:12 ERROR retention enforcement failed system=store db=w.example.com.db error="enforce snapshot retention: remove ltx files: lease: invalid or changed generation binding"
2026/11/25 08:17:12 http: proxy error: context canceled
2026/11/25 08:17:12 ERROR retention enforcement failed system=store db=w.example.com.db error="enforce snapshot retention: remove ltx files: lease: a write has waited too long to reach storage (write fence)"
=== RUN TestGenerationTakeMinio/switch-412
2026/11/25 08:17:12 lease: instances/gen-1795594632138424601.shop.example.com: HA lease acquired in 3ms (first wake)
2026/11/25 08:17:12 ERROR retention enforcement failed system=store db=seed.db error="enforce snapshot retention: fetch ltx files: lease: a write has waited too long to reach storage (write fence)"
2026/11/25 08:17:12 lease: instances/gen-1795594632138424601.shop.example.com: HA lease acquired in 3ms (clean marker)
=== RUN TestGenerationTakeMinio/copy-version
=== RUN TestGenerationTakeMinio/store-time
2026/11/25 08:17:12 lease: instances/gen-1795594632186605354.shop.example.com: HA lease acquired in 3ms (first wake)
2026/11/25 08:17:12 ERROR retention enforcement failed system=store db=seed.db error="enforce snapshot retention: remove ltx files: lease: invalid or changed generation binding"
2026/11/25 08:17:12 lease: instances/gen-1795594632186605354.shop.example.com: HA lease acquired in 2ms (clean marker)
2026/11/25 08:17:12 lease: instances/gen-1795594632186605354.shop.example.com: HA lease acquired in 3ms (unclean marker)
2026/11/25 08:17:12 lease: instances/gen-1795594632186605354.shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/11/25 08:17:12 lease: instances/gen-1795594632186605354.shop.example.com: HA lease acquired in 2ms (unclean marker)
2026/11/25 08:17:12 lease: instances/gen-1795594632186605354.shop.example.com: HA lease acquired in 2ms (unclean marker)
=== RUN TestGenerationTakeMinio/skew
--- PASS: TestGenerationTakeMinio (0.34s)
--- PASS: TestGenerationTakeMinio/take (0.13s)
--- PASS: TestGenerationTakeMinio/switch-412 (0.04s)
--- PASS: TestGenerationTakeMinio/copy-version (0.01s)
--- PASS: TestGenerationTakeMinio/store-time (0.15s)
--- PASS: TestGenerationTakeMinio/skew (0.01s)
PASS
ok github.com/carlosframework/platform/internal/lease 0.353s
minio contract: PASS
=== staticcheck ===
go version go1.26.10 linux/arm64
go: downloading honnef.co/go/tools v0.8.2
go: downloading golang.org/x/exp/typeparams v0.0.0-20231108232855-2478ac86f678
go: downloading github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c
go: downloading golang.org/x/sync v0.23.0
go: downloading golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa
staticcheck: clean
=== govulncheck ===
go version go1.26.10 linux/arm64
go: downloading golang.org/x/vuln v1.8.0
go: downloading golang.org/x/telemetry v0.0.0-20260908163034-4bcc4b2ee518
go: downloading golang.org/x/tools v0.50.0
govulncheck: scanned github.com/carlosframework/platform, amadan.net/carlos/platform.git/launchctx
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
amadan: job cancelled — a newer push superseded it
Intent
Attributed to this commit: 26.7 g CO₂e (2,055,517 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on release-copy-across-consoles, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/docs/superpowers/plans/2026-11-25-release-copy-across-consoles.md b/docs/superpowers/plans/2026-11-25-release-copy-across-consoles.md| new file mode 100644 |
| index 000000000..ab85ae165 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/2026-11-25-release-copy-across-consoles.md |
| @@ -0,0 +1,221 @@ |
| +# Release copy across consoles (#1389 item 1) Implementation Plan |
| + |
| +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. |
| + |
| +**Goal:** Ship the exact bytes a staging console tested to a production console: `carlos releases pull` copies a release out of one console, `carlos ship --from-release` ships it into another, and the target console refuses anything whose digests differ from the source's. |
| + |
| +**Architecture:** Two read doors on the source console stream the stored manifest and each artifact. The CLI verifies every byte against the manifest on the way down and again before upload. The ship door gains an optional `expect_artifacts` meta field; the console hashes what arrives and stores nothing unless it matches. The target writes and signs its own manifest and pointers; only artifact digests come from the source. |
| + |
| +**Tech Stack:** Go, `net/http` mux routes in `internal/console/routedecls.go`, `internal/release` store, `clireg` command tree. |
| + |
| +**Spec:** `.superpowers/sdd/2026-11-25-1389/DESIGN.md` (binding). Code map: `.superpowers/sdd/2026-11-25-1389/RESEARCH.md`. |
| + |
| +## Global Constraints |
| + |
| +- No tenant names in code, tests or docs. Apps are `shop` (source) and `storefront` (target); hosts `example.com`; person `paul@keymail.dev` as the existing fixtures use. |
| +- Locally run only targeted tests: `go test ./internal/console -run 'TestX' -count=1`, `go test . -run 'TestX' -count=1`. Full suites are CI's. |
| +- Must cross-compile: `GOOS=darwin go build . && GOOS=windows go build .` before each commit that touches the root package. No linux-only calls (no `syscall` statx, no `/proc`) in root-package code. |
| +- Tests are deterministic: no `time.Sleep`; wait on channels or fill semaphores directly. |
| +- Production-wired witnesses: every test goes through the real `console.NewServer` routes and the real `runShip` / `runReleasesPull` / `runPromote` entry points (or the real `carlos` binary via `sharedCarlos`). No hand-rolled handlers standing in for the console. |
| +- No new `svcrole`. Both read doors are `svcrole.Allow(svcrole.Publish, svcrole.Deploy)`; persons owner/member reach them as every `kindCLI` door. |
| +- Trust model as DESIGN.md "Trust": the target computes its own digests, writes its own manifest (`built_by`, `built_at`) and signs its own pointers. The source manifest is input only for artifact digests and release settings. |
| +- Wire changes are additive: `expect_artifacts` is optional; a request without it behaves exactly as today. |
| +- New code goes in new files. `apimode.go` is over the file-lines cap; `runShip` must not exceed its `fatal` allowance (23) or 300 code lines. Run `make code-health` before handing off. |
| +- New CLI commands return errors (`rawErr`), never `log.Fatal`. |
| +- User-facing strings below are drafts: plain sentences, no em dashes, lowercase after a full stop as the surrounding CLI does. The controller runs the copy pass; keep each string in one place (a const or one `fmt.Errorf`) so the pass edits one line. |
| +- `parity/parity.tsv` row and `docs/site/cli.md` entry land in the same task as the command (`make parity-doc` after editing the table). |
| + |
| +## Review Focus |
| + |
| +1. **A target console too old to know `expect_artifacts`** ignores it and stores whatever arrived. The CLI must still fail loudly by comparing the response's `artifacts` with the source manifest. Pinned by `TestCompareShippedArtifacts` (Task 4). |
| +2. **A hostile or odd `File` name in a pulled manifest** (`../x`, `a/b`, `a\b`, `manifest.json`, empty). Pull and ship must refuse it before touching the filesystem. Pinned by `TestValidPulledFile` (Task 3), used by both commands. |
| +3. **An interrupted pull** leaves files but no `manifest.json`. Pulling again into the same dir should finish the job, not fail. Pinned by `TestReleasesPullFinishesAnIncompleteDir` (Task 3). |
| +4. **Target app name differs from source app name.** The copy must work and the target manifest names the target app. Pinned by using `shop` on A and `storefront` on B in the e2e (Task 4). |
| +5. **A forged digest on a version the target already has** must be refused, not answered with the identical-reship 200. Pinned by `TestAPIShipExpectRefusesForgedOnExistingVersion` (Task 2). |
| + |
| +--- |
| + |
| +### Task 1: Console read doors |
| + |
| +**Files:** |
| +- Create: `internal/console/apirelease_read.go` |
| +- Modify: `internal/console/routedecls.go` (two entries beside `GET /api/cli/apps/{account}/{app}/releases`, ~line 597) |
| +- Modify: `internal/console/server.go` (new `releaseReads` field; make it where `shipSem` is made, ~line 2044) |
| +- Modify: `internal/console/deploydoors_test.go` (add both patterns to `deployDoors`) |
| +- Test: `internal/console/apirelease_read_test.go` |
| + |
| +**Interfaces:** |
| +- Produces (wire): |
| + - `GET /api/cli/apps/{account}/{app}/releases/{version}/manifest` → 200, `Content-Type: application/json`, body = exact stored bytes of `release.ManifestKey(acct, app, version)`. |
| + - `GET /api/cli/apps/{account}/{app}/releases/{version}/artifacts/{file}` → 200, `Content-Type: application/octet-stream`, `Content-Length: <manifest size>`, `X-Content-SHA256: <manifest sha256>`, body streamed from `release.ArtifactKey(acct, app, version, file)`. |
| +- Produces (Go): `func (s *Server) handleAPIReleaseManifest(w http.ResponseWriter, r *http.Request)`, `func (s *Server) handleAPIReleaseArtifact(w http.ResponseWriter, r *http.Request)`, `Server.releaseReads chan struct{}` (cap `releaseReadsMax = 4`). |
| + |
| +Key logic, both handlers: `s.apiAccountApp(w, r)` first (app binding and 404s as today); `release.ValidVersion(version)` else 400 `invalid version`; `release.GetManifestRaw(ctx, s.cfg.Releases, acct.Sqid, app, version)`: `errors.Is(err, os.ErrNotExist)` → 404 `release not found`, other error → 502 `could not read the release` (log it). Manifest door: 30 s context, write raw bytes. |
| + |
| +Artifact door: find the artifact whose `File == r.PathValue("file")` (compare to `File`, not the map key; rootfs is `rootfs.squashfs`), else 404 `file not in this release`. Take a `releaseReads` slot non-blocking; full → `retryAfter(w, 2*time.Second)` and 429 `too many release downloads at once. try again shortly`. Open with `release.OpenObjectStreaming`, set headers, `SetWriteDeadline(now + releaseReadDeadline)` with `const releaseReadDeadline = 75 * time.Minute` (rootfs ship's own bound), `io.Copy(w, io.LimitReader(body, a.Size))`; a short copy is logged only (the CLI's hash check refuses it). Context: `r.Context()` with `releaseReadDeadline`. No audit row (reads, like `GET .../releases`). |
| + |
| +- [ ] **Step 1: Write the failing tests** in `apirelease_read_test.go`, all on `deployFixture` (app `hello`, v1 and v2, deploy token `tok`) unless noted. Note: the fixture's existing app name `hello` is fine; new apps are `shop`. |
| + - `TestAPIReleaseManifestReturnsStoredBytes`: GET `.../bab/hello/releases/v1/manifest` with the deploy token → 200, `application/json`, body `bytes.Equal` to the raw from `release.GetManifestRaw(ctx, fx.rel, "bab", "hello", "v1")`. |
| + - `TestAPIReleaseArtifactStreamsBytes`: GET `.../v1/artifacts/linux-arm64` → 200, body `"bin v1"`, `Content-Length` `6`, `X-Content-SHA256` = hex sha256 of `"bin v1"`. |
| + - `TestAPIReleaseArtifactRefusesWhatTheManifestDoesNotName`: table → status: `artifacts/manifest.json` 404; `artifacts/linux-amd64` 404; `artifacts/..%2Fv2%2Flinux-arm64` 404; `releases/v9/manifest` 404; `releases/v9/artifacts/linux-arm64` 404; `releases/..bad/manifest` 400. |
| + - `TestAPIReleaseReadRoles`: publish token (`NewServicePrincipalScoped(..., svcrole.Publish, nil, ...)`) → 200; operate token → refused (assert the same status `GET .../releases` gives an operate token, read it from that door in the test, do not hard-code); deploy token bound to `other` app on `.../other/releases/v1/manifest` → 404; the person token from `cliToken` → 200. |
| + - `TestAPIReleaseArtifactRootfs`: `rootfsShipFixture`, ship a rootfs release as `TestAPIShipRootfsHappy` does, GET `.../shop/releases/<v>/artifacts/rootfs.squashfs` → bytes equal to the image; GET `.../artifacts/rootfs-linux-arm64` → 404. |
| + - `TestAPIReleaseArtifactBusy`: fill `fx.srv.releaseReads` to capacity in the test, GET artifact → 429 with `Retry-After` set; drain one slot, GET → 200. |
| + - `TestDeployReachesExactlyItsDoors` (existing): add both patterns to `deployDoors` with a comment `// #1389: a pipeline copies a release it may ship.` |
| + |
| +- [ ] **Step 2: Run, expect FAIL** `go test ./internal/console -run 'TestAPIRelease(Manifest|Artifact|Read)|TestDeployReachesExactlyItsDoors' -count=1` → 404s / deploy-doors mismatch. |
| +- [ ] **Step 3: Implement** the two handlers, the field, the two `routeDecls` entries (`Kind: kindCLI, Allow: svcrole.Allow(svcrole.Publish, svcrole.Deploy)`) with a comment naming #1389 and the design path. If `TestParityTableCoversConsoleRoutes` names them, add rows; it is not expected to (no `/api/cli` rows exist today). |
| +- [ ] **Step 4: Run, expect PASS** same command, plus `go test ./internal/console -run 'TestParity|TestDeployIsBoundToItsApp' -count=1`. |
| +- [ ] **Step 5: Commit** `console: read doors for a release's manifest and artifacts` (body names #1389). |
| + |
| +--- |
| + |
| +### Task 2: Ship door honours expected artifact digests |
| + |
| +**Files:** |
| +- Create: `internal/console/apiship_expect.go` |
| +- Modify: `internal/console/apicli.go` (`shipMeta` field; two one-line calls in `handleAPIShip`) |
| +- Modify: `internal/console/apiship_rootfs.go` (one call in `shipRootfsParts`) |
| +- Test: `internal/console/apiship_expect_test.go` |
| + |
| +**Interfaces:** |
| +- Produces (wire): meta field `expect_artifacts`, object keyed by artifact key (`linux-arm64`…, `site.tar.gz`, `rootfs-linux-arm64`), each `{"sha256": "<64 lowercase hex>", "size": <int>}`. |
| +- Produces (Go): |
| + - `type shipExpect struct { SHA256 string `json:"sha256"`; Size int64 `json:"size"` }` |
| + - `shipMeta.ExpectArtifacts map[string]shipExpect `json:"expect_artifacts,omitempty"`` |
| + - `func checkShipExpectShape(kind string, expect map[string]shipExpect, rootfsSize int64) error` — nil when `expect == nil`. |
| + - `func checkShipExpected(expect map[string]shipExpect, got map[string]release.Artifact) error` — nil when `expect == nil`. |
| + |
| +Placement (both before anything is written and before the `release.GetManifest` existing-version short-circuit, so a forged digest on an existing version is refused too): |
| +- `checkShipExpectShape`: in `handleAPIShip` right after the rootfs/non-rootfs `upload.lower(...)` block, before `CheckShipKind`. Refuse with `refuseUnread(w, 400, err.Error())` (no part read yet). |
| +- `checkShipExpected` binary/static: after the part loop's `len(files) == 0` check, before `s.store.AppFlags`; `jsonError(w, 400, err.Error())`. |
| +- `checkShipExpected` rootfs: in `shipRootfsParts` after the trailing `mr.NextPart()` EOF check, against `map[string]release.Artifact{release.RootfsArtifactKey: {SHA256: sum, Size: meta.RootfsSize}}`; the deferred `os.RemoveAll(dir)` already clears the spool. |
| + |
| +Rules and strings (`%s` is the artifact key): |
| +- Shape: key must be a valid part name for the kind (`targetRe` for binary, `site.tar.gz` for static, `release.RootfsArtifactKey` for rootfs) else `expect_artifacts names %s, which a %s release cannot carry`; sha256 64 lowercase hex and size > 0 else `expect_artifacts for %s needs a sha256 of 64 hex characters and a size above zero`; more keys than the kind's part cap → the first rule's message for the extra key; rootfs: size must equal `rootfs_size` else `expect_artifacts says %d bytes for rootfs-linux-arm64 but rootfs_size says %d`. |
| +- Match (keys checked in sorted order, first failure wins): expected but not sent → `%s was expected but not sent, so nothing was stored`; sent but not expected → `%s was sent but not expected, so nothing was stored`; differs → `%s does not match the release it was copied from, so nothing was stored`. |
| + |
| +- [ ] **Step 1: Write the failing tests** (helpers `postShip`, `metaOf`, `shipPart`, `rootfsShipFixture`, `wantRefusedUnread`, `assertNothingWritten`, `assertScratchEmpty` exist). App `shop` throughout. "Nothing stored" means `release.GetManifest` returns `os.ErrNotExist` AND `fx.rel` has no object at `release.ArtifactKey("bab", "shop", ver, "linux-arm64")`. |
| + - `TestAPIShipExpectMatchingShips`: binary with correct expect → 201; stored artifact sha256/size equal the expect. |
| + - `TestAPIShipExpectRefusesForgedDigest`: expect sha256 of other bytes → 400, message contains `does not match the release it was copied from`; nothing stored. |
| + - `TestAPIShipExpectRefusesMissingAndExtraParts`: expect `linux-arm64`+`linux-amd64`, send only arm64 → 400 `linux-amd64 was expected but not sent`; expect only arm64, send both → 400 `linux-amd64 was sent but not expected`; nothing stored in both. |
| + - `TestAPIShipExpectRefusesForgedOnExistingVersion`: ship v1 without expect (201), re-ship identical bytes as v1 with a forged expect → 400 (not 200); stored manifest unchanged. |
| + - `TestAPIShipExpectStatic`: `site.tar.gz` correct → 201; forged → 400, nothing stored. |
| + - `TestAPIShipExpectRootfs`: correct → 201; forged sha → 400, `assertNothingWritten`, `assertScratchEmpty`; expect size ≠ `rootfs_size` → `wantRefusedUnread` 400 with the rootfs size message. |
| + - `TestAPIShipExpectMalformed`: table (bad hex, size 0, key `rootfs-linux-arm64` on a binary ship, key `../x`) → 400 with the shape messages, refused before any part is read (use `postShipUnread` byte count as the rootfs tests do). |
| +- [ ] **Step 2: Run, expect FAIL** `go test ./internal/console -run 'TestAPIShipExpect' -count=1`. |
| +- [ ] **Step 3: Implement** the type, field and two functions in `apiship_expect.go`; add the three one-line call sites. |
| +- [ ] **Step 4: Run, expect PASS** `go test ./internal/console -run 'TestAPIShip' -count=1` (the whole ship family, to prove no-expect ships are unchanged). |
| +- [ ] **Step 5: Commit** `console: ship refuses artifacts that differ from expect_artifacts`. |
| + |
| +--- |
| + |
| +### Task 3: `carlos releases pull` |
| + |
| +**Files:** |
| +- Create: `release_pull.go` |
| +- Modify: `commands.go` (`releasesCommand` children: `noHint(rawErr("pull", cust, runReleasesPull))`) |
| +- Modify: `parity/parity.tsv` (row after `channels`: `releases-pull releases cli-only releases pull Copies a shipped release out of a console and checks every file against its digests.`), then `make parity-doc` |
| +- Modify: `docs/site/cli.md` (`#### carlos releases pull` under `### carlos releases`, ~line 1012) |
| +- Create: `release_copy_e2e_test.go` (shared fixture, Task 4 extends it) |
| +- Test: `release_pull_test.go` |
| + |
| +**Interfaces:** |
| +- Consumes: Task 1 doors. |
| +- Produces: |
| + - `func runReleasesPull(args []string) error` |
| + - `func pullRelease(ctx context.Context, sess *apiSession, a apiAcct, app, version, out string) (*release.Manifest, error)` |
| + - `func (s *apiSession) releaseManifestRaw(ctx context.Context, a apiAcct, app, version string) ([]byte, error)` (via `s.c.doStream`, body capped at `releaseManifestMaxBytes = 1 << 20`; non-2xx → `apiErrorFromBody`) |
| + - `func (s *apiSession) pullArtifact(ctx context.Context, a apiAcct, app, version string, art release.Artifact, dst string) error` |
| + - `func validPulledFile(name string) bool` — non-empty, `name == filepath.Base(name)`, no `/` or `\`, not `.`/`..`, not `manifest.json`, no `.partial` suffix. |
| + - Test fixture in `release_copy_e2e_test.go`: `type copyConsole struct { url, storeDir string; st *console.Store; rel release.Store; pub ... }` and `func newCopyConsole(t *testing.T, app string) copyConsole` (built as `TestE2ECLIThroughConsole` builds its console, plus `SeedScratchDir: filepath.Join(tmp, "seeds")`; creates `app` in `OpsAccountID` with owner `paul@keymail.dev`); `func (c copyConsole) token(t *testing.T, app string, role svcrole.Role) string` via `NewServicePrincipalScoped(OpsAccountID, "ci-"+role, app, role, []string{"canary", "edge"} for Deploy else nil, nil, ...)`; `func useConsole(t *testing.T, c copyConsole, token string)` sets `CARLOS_CONSOLE` and `CARLOS_SERVICE_TOKEN` with `t.Setenv`. |
| + |
| +Behaviour of `pullRelease`, in order: if `<out>/manifest.json` exists → `%s already holds a release. pull into a new or empty directory`; `os.MkdirAll(out, 0o755)`; fetch manifest raw; unmarshal into `release.Manifest`; refuse if `m.Version != version`, no artifacts, any `File` fails `validPulledFile` (`the release names a file %q that cannot be written safely`), or two artifacts share a `File`; pull each artifact in sorted key order; write `manifest.json` last with the exact fetched bytes (`O_CREATE|O_EXCL`, 0o644), so a dir holding `manifest.json` is always complete. |
| + |
| +`pullArtifact`: GET door, stream to `dst+".partial"` (`O_CREATE|O_TRUNC`) through `io.LimitReader(body, art.Size+1)` and sha256; mismatch or error → remove the partial, return `%s: got %d bytes with sha256 %s but the release says %d bytes with sha256 %s. the partial file was removed`; success → `os.Rename` over `dst` (overwrites a leftover from an interrupted pull). Context per artifact: `shipRootfsTimeout` for rootfs, `shipTimeout` otherwise. |
| + |
| +`runReleasesPull`: flags `appFlag`, `accountFlags`, `consoleOption`, `--out` (required); positional version via `parseInterspersed`; usage `usage: carlos releases pull <version> --app <a> --out <dir> [--account <sqid-or-name>] [--account-id <sqid>] [--console <origin>]`; `resolveMode` nil session → `carlos releases pull reads from a console. set CARLOS_CONSOLE or run carlos login`; prints `pulled %s %s into %s: %d files, every digest matches`. |
| + |
| +- [ ] **Step 1: Write the failing tests** (`release_pull_test.go`; each starts `useTempCredentials(t); clearDeploymentEnv(t)`; source is `newCopyConsole(t, "shop")`, seeded with `runShip` under a Publish token, version `v12`, label `fixing modals`): |
| + - `TestReleasesPullWritesManifestAndArtifacts`: `runReleasesPull([]string{"v12", "--app", "shop", "--out", dir})` with a Deploy token → nil; `dir/manifest.json` bytes equal `release.GetManifestRaw` from A; `dir/linux-arm64` bytes equal the shipped payload; no `*.partial` left. |
| + - `TestReleasesPullRefusesADirThatHoldsARelease`: pull twice into one dir → second error contains `already holds a release`. |
| + - `TestReleasesPullFinishesAnIncompleteDir`: pre-write junk at `dir/linux-arm64`, no manifest → pull succeeds, bytes correct. |
| + - `TestReleasesPullRemovesACorruptDownload`: after the ship, overwrite the artifact object on A's disk (`filepath.Join(a.storeDir, release.ArtifactKey(...))`, same length, one byte flipped) → error contains `the partial file was removed`; neither `linux-arm64`, `linux-arm64.partial` nor `manifest.json` in `dir`. |
| + - `TestReleasesPullNeedsAConsole`: no console env, bucket env set to a temp dir → error equals the bucket-mode string. |
| + - `TestValidPulledFile`: table, true for `linux-arm64`, `site.tar.gz`, `rootfs.squashfs`; false for `""`, `.`, `..`, `../x`, `a/b`, `a\b`, `manifest.json`, `linux-arm64.partial`. |
| +- [ ] **Step 2: Run, expect FAIL** `go test . -run 'TestReleasesPull|TestValidPulledFile' -count=1`. |
| +- [ ] **Step 3: Implement** `release_pull.go`, register the leaf, parity row + `make parity-doc`, and the cli.md entry: what it writes, that it checks every file, that the dir can be a CI artifact, one fenced example `carlos releases pull v12 --app shop --out ./release`. |
| +- [ ] **Step 4: Run, expect PASS** same command plus `go test ./internal/docsite ./internal/parity -count=1`; then `GOOS=darwin go build . && GOOS=windows go build .`. |
| +- [ ] **Step 5: Commit** `cli: carlos releases pull copies a release out of a console`. |
| + |
| +--- |
| + |
| +### Task 4: `carlos ship --from-release` and the two-console witness |
| + |
| +**Files:** |
| +- Create: `ship_from_release.go` |
| +- Modify: `cli.go` `runShip` (one flag, one branch; no new `log.Fatal`) |
| +- Modify: `docs/site/cli.md` (`--from-release` paragraph under `### carlos ship`) |
| +- Modify: `release_copy_e2e_test.go` (the witness tests) |
| +- Test: `ship_from_release_test.go` |
| + |
| +**Interfaces:** |
| +- Consumes: Task 2 wire field; Task 3 `validPulledFile`, `copyConsole`, `newCopyConsole`, `useConsole`, `pullRelease`. |
| +- Produces: |
| + - `type fromReleaseOpts struct { dir, app, console, acctRaw, acctIDRaw string; programChange bool; messageFlags mutationMessageFlags }` (match the types `accountFlags` returns) |
| + - `func runShipFromRelease(fs *flag.FlagSet, o fromReleaseOpts) error` |
| + - `func fromReleaseConflicts(fs *flag.FlagSet) error` |
| + - `func loadReleaseDir(dir string) (*release.Manifest, map[string]string, error)` (parts: artifact key → local path `dir/File`) |
| + - `func (s *apiSession) shipFromRelease(ctx context.Context, a apiAcct, app string, m *release.Manifest, parts map[string]string, programChange bool, message string) (apiShipResult, error)` |
| + - `func compareShippedArtifacts(want map[string]release.Artifact, body []byte) error` |
| + |
| +`runShip` change: `fromRelease := fs.String("from-release", "", "a directory written by carlos releases pull. ships its files and settings unchanged")`. Branch right after `checkEnv, err := shipEnvRefusal(...)`, reusing that call's `log.Fatal`: |
| +```go |
| +if err == nil && *fromRelease != "" { |
| + if err = runShipFromRelease(fs, fromReleaseOpts{...}); err == nil { |
| + return |
| + } |
| +} |
| +if err != nil { |
| + log.Fatal(err) |
| +} |
| +``` |
| + |
| +`fromReleaseConflicts`: allowed flags are `from-release app account account-id console destination d message no-prompt program-change` (drop any that `runShip`'s FlagSet does not define); the first other flag set (via `fs.Visit`, sorted) → `--from-release ships the release's own settings, so it cannot be combined with --%s`; any positional arg → `--from-release ships the files in its directory, so it takes no file arguments`. |
| + |
| +`loadReleaseDir`: read `dir/manifest.json` (missing → `%s has no manifest.json. run carlos releases pull first`); unmarshal; kind must be `binary`, `static` or `rootfs`; each `File` passes `validPulledFile`; hash each file (size + sha256) → mismatch `%s does not match manifest.json, so nothing was shipped`. |
| + |
| +`runShipFromRelease`: `fromReleaseConflicts`, then `resolveMode`; nil session → `carlos ship --from-release ships through a console. set CARLOS_CONSOLE or run carlos login`; `loadReleaseDir` BEFORE any request; resolve account/app as `runShipAPI`'s caller does; `resolveMutationMessage`; ship; print `shipped %s %s from %s, every digest matches the source` or on NoOp `already shipped %s %s with identical content, nothing to do`. |
| + |
| +`shipFromRelease` meta (one struct, `omitempty` as `apiSession.ship` and `shipRootfs` use): `version` = `m.Version`, `kind`, `label`, `notes`, `message`, `capabilities` (marshal of `m.Capabilities` when non-nil), `program_change` = `m.ProgramChange || programChange`, `swap`, `stateless`, `mail`, `assets` = `m.Assets`; rootfs adds `processes` (marshal of `m.Processes`), `hibernate`, `jit`, `rootfs_size` = `m.Artifacts[release.RootfsArtifactKey].Size`; always `expect_artifacts` from `m.Artifacts`. Parts in sorted key order via `writeFilePart`. Timeout `shipRootfsTimeout` for rootfs else `shipTimeout`. On 200/201: `checkCapabilitiesEcho(m.Capabilities, body)`, `checkStatelessEcho`, `checkMailEcho`, `checkSwapEcho`, then `compareShippedArtifacts(m.Artifacts, body)`; other statuses → `apiErrorFromBody` (so a 409 for different bytes under the same version surfaces as today). |
| + |
| +`compareShippedArtifacts`: decode `{"artifacts": {key: {sha256, size}}}`; any key missing, extra or different → `the console stored %s with a different digest than the source release. do not promote this version`. |
| + |
| +- [ ] **Step 1: Write the failing tests.** |
| + `release_copy_e2e_test.go` (A = `newCopyConsole(t, "shop")`, B = `newCopyConsole(t, "storefront")`; ship to A with `runShip` under A's Publish token with `--label "fixing modals" --notes "first cut" --swap hold`; pull with A's Deploy token via `runReleasesPull`): |
| + - `TestE2EReleaseCopyAcrossConsoles`: `useConsole(B, B Deploy token)`; `runShip([]string{"--from-release", dir, "--app", "storefront"})`; stdout contains `every digest matches the source`; B's `release.GetManifest(..., "storefront", "v12")` has `Artifacts` deep-equal (sha256, size, file) to A's, same label, notes, swap; B's `App == "storefront"`, `BuiltBy` starts `console-api`; `runPromote([]string{"--app", "storefront", "v12", "edge"})` succeeds and `release.Channel(ctx, B.rel, B.pub, release.OpsAccount, "storefront", "edge")` reads `v12` (B's own key signed it); a second `runShip --from-release` prints `already shipped`. |
| + - `TestE2EReleaseCopyRefusesATamperedFile`: flip one byte in `dir/linux-arm64`; `runShipFromRelease` (direct, to get the error) → error contains `does not match manifest.json`; B has no manifest for `v12` and no object at `release.ArtifactKey(..., "storefront", "v12", "linux-arm64")`. |
| + - `TestE2EReleaseCopyForgedExpectIsRefusedByTheConsole`: raw multipart POST (built with `mime/multipart` in the test) to B's `/api/cli/apps/bab/storefront/releases` with B's Deploy token: meta `{"version":"v12","kind":"binary","expect_artifacts":{"linux-arm64":{"sha256":<sha of other bytes>,"size":<len>}}}` and the pulled `linux-arm64` → 400; nothing stored on B. |
| + - `TestE2EReleaseCopyDifferentBytesUnderTheSameVersion`: ship other bytes to B as `v12` first; `runShipFromRelease` → error (409 path); B's `v12` manifest unchanged. |
| + - `TestE2EReleaseCopyRootfs`: seed A with a rootfs release through `release.ShipSpooled` (manifest with `Kind: release.KindRootfs`, a `web` process, `Hibernate: true`, artifact `rootfs-linux-arm64` → file `rootfs.squashfs` of 4 KiB); pull; ship `--from-release` to B; B's artifacts, processes and hibernate equal A's. If B's rootfs door needs more than `SeedScratchDir` to accept it, stop and report rather than stubbing. |
| + `ship_from_release_test.go`: |
| + - `TestShipFromReleaseRefusesOtherFlags`: with `sharedCarlos(t)` run `carlos ship --from-release <dir> --app shop --label x` and `... --app shop ./bin` → non-zero exit, stderr contains the two conflict messages. |
| + - `TestCompareShippedArtifacts`: table over response bodies: identical → nil; different sha → error; extra key → error; missing key → error; body with no `artifacts` (an old console) → error. |
| + - `TestLoadReleaseDirRefusesUnsafeNames`: a hand-written `manifest.json` naming `../x` → error before any file is read. |
| +- [ ] **Step 2: Run, expect FAIL** `go test . -run 'TestE2EReleaseCopy|TestShipFromRelease|TestCompareShippedArtifacts|TestLoadReleaseDir' -count=1`. |
| +- [ ] **Step 3: Implement** `ship_from_release.go` and the `runShip` change; cli.md paragraph under `### carlos ship` naming the allowed flags and that a different file stops the ship before upload. |
| +- [ ] **Step 4: Run, expect PASS** same command, plus `go test . -run 'TestE2ECLIThroughConsole' -count=1`, `go test ./internal/docsite -count=1`, cross-compile darwin and windows, `make code-health`. |
| +- [ ] **Step 5: Commit** `cli: carlos ship --from-release ships a pulled release unchanged`. |
| + |
| +--- |
| + |
| +### Task 5: Docs: the CI recipe and the release-once line |
| + |
| +**Files:** |
| +- Modify: `docs/site/cli.md` (new `#### Staging tests X, production promotes X` after `#### Deploying one checkout to several places`, ~line 571) |
| +- Modify: `docs/site/stateless-replicas.md` `## Deploys` first sentence |
| + |
| +- [ ] **Step 1: Write the recipe.** Two CI jobs, one credential each: job 1 on the staging console (`CARLOS_CONSOLE=https://staging.example.com`, a deploy credential for `shop`) runs `carlos ship`, the tests, then `carlos releases pull v12 --app shop --out release`, and uploads `release/` as a CI artifact; job 2 on production (`CARLOS_CONSOLE=https://carlos.example.com`, its own deploy credential) downloads it and runs `carlos ship --from-release release --app shop` then `carlos promote --app shop v12 edge`. Say: the bytes are identical, each console writes and signs its own manifest, and production refuses a file that differs. |
| +- [ ] **Step 2: Edit stateless-replicas.md** so the first `## Deploys` sentence reads: `A deploy runs the release command once per instance, not once per copy, then switches its copies one box at a time.` |
| +- [ ] **Step 3: Run** `go test ./internal/docsite -count=1` → PASS (fenced verbs and `/docs` links resolve). |
| +- [ ] **Step 4: Commit** `docs: promote a tested release from staging to production`. |