docs: the promote recipe waits for staging to serve the version
For #1389: poll the X-Carlos-Version header, bounded, before the tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/site/cli.md+9 −3
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-SsNqCj .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/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 github.com/aws/aws-sdk-go-v2/service/sts v1.45.6 go: downloading golang.org/x/sys v0.49.0 go: downloading golang.org/x/mod v0.41.0 go: downloading github.com/pion/turn/v4 v4.1.4 go: downloading github.com/pierrec/lz4/v4 v4.1.22 go: downloading github.com/pion/randutil v0.1.0 go: downloading github.com/pion/transport/v4 v4.0.2 go: downloading github.com/pion/dtls/v3 v3.1.4 go: downloading github.com/klauspost/compress v1.20.2 go: downloading github.com/wlynxg/anet v0.0.5 go: downloading github.com/prometheus/client_golang v1.17.0 go: downloading golang.org/x/sync v0.24.0 go: downloading github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.20.18 go: downloading github.com/lmittmann/tint v1.1.3 go: downloading google.golang.org/protobuf v1.36.10 go: downloading github.com/prometheus/client_model v0.5.0 go: downloading github.com/cespare/xxhash/v2 v2.3.0 go: downloading github.com/prometheus/procfs v0.12.0 go: downloading github.com/prometheus/common v0.45.0 go: downloading golang.org/x/text v0.43.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 modernc.org/memory v1.11.0 go: downloading github.com/dustin/go-humanize v1.0.1 go: downloading modernc.org/mathutil v1.7.1 go: downloading github.com/google/uuid v1.6.0 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 amadan: job cancelled — a newer push superseded it
Intent
<task-notification> <task-id>ac2cc0d9be424abf6</task-id> <tool-use-id>toolu_01Xh1KpXJcG6eN6kpUDGUqCo</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a88005ac-72e4-481c-884f-581940b8c2c5/tasks/ac2cc0d9be424abf6.output</output-file> <status>completed</status> <summary>Agent "Implement Task 5: docs" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>Status: DONE Commit: 11dadfe5 `docs: the promote recipe ships, promotes and tests one version`. The tree is clean. The `packed-refs.lock` error appeared again, but the commit landed. Tests: `go test ./internal/docsite -count=1` printed `ok`. Fixes in `docs/site/cli.md`: 1. The staging ship is now `carlos ship --app shop --version v12 ./bin/server`. Flags come before the file argument, as in the `### carlos ship` section. 2. Staging now runs `carlos promote --app shop v12 edge` before the tests. cli.md documents no wait option for promote, so the text says to test once staging serves v12. Then it pulls. 3. The manifest wording now says the files are byte-identical while the manifests differ. Each console writes its own manifest and signs its own channel pointers. Concerns: none. Report: `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/release-copy-across-consoles/.superpowers/sdd/2026-11-25-release-copy-across-consoles/task-5-report.md`</result> <usage><subagent_tokens>51331</subagent_tokens><tool_uses>3</tool_uses><duration_ms>27754</duration_ms></usage> </task-notification>
<task-notification> <task-id>bm8dtiy7z</task-id> <tool-use-id>toolu_01GXLW4cTf9PW4YZFJR2XQYk</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a88005ac-72e4-481c-884f-581940b8c2c5/tasks/bm8dtiy7z.output</output-file> <status>completed</status> <summary>Background command "S=/home/paulca/.paseo/zerosub/homes/claude-37fe90ef3f56/plugins/cache/claude-plugins-official/superpowers/7.0.2/skills/subagent-driven-development; W=$PWD/.superpowers/sdd/2026-11-25-release-copy-across-consoles; bash $S/scripts/review-package docs/superpowers/plans/2026-11-25-release-copy-across-consoles.md af7db08f HEAD | tail -1; cat > $W/task-5-rereview-scope.md <<EOF SCOPED RE-REVIEW (round 1). Follow the fenced block of $S/re-review-prompt.md instead of the full task review. Findings to verdict ADDRESSED / NOT ADDRESSED: the three Important findings in $W/task-5-review-r1.md. Flag only new breakage in this fix diff. EOF git push -q 2>&1|tail -1; $W/astra-review.sh "Task 5 (re-review round 1)" $W/task-5-brief.md $W/task-5-report.md $W/review-af7db08f..11dadfe5.diff $W/task-5-review-r2.md $W/task-5-rereview-scope.md > $W/task-5-review-r2.log 2>&1; echo exit=$?; grep -v '^$' $W/task-5-review-r2.md" completed (exit code 0)</summary> </task-notification>
Attributed to this commit: 8.51 g CO₂e (1,048,773 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/site/cli.md b/docs/site/cli.md| index 55f7a0826..9e74445bd 100644 |
| --- a/docs/site/cli.md |
| +++ b/docs/site/cli.md |
| @@ -625,15 +625,21 @@ from one console to the other instead of building it twice. Use two CI jobs, |
| each with its own deploy credential (`CARLOS_SERVICE_TOKEN`) for `shop`. |
| Job 1 runs against the staging console. It ships a named version, promotes |
| -it so staging serves it, and runs your tests once staging serves that |
| -version. Then it pulls the release into a directory and keeps that |
| +it so staging serves it, waits until the app's `X-Carlos-Version` header |
| +shows that version, and runs your tests. Then it pulls the release into a directory and keeps that |
| directory as a CI artifact: |
| ```sh |
| export CARLOS_CONSOLE=https://staging.example.com |
| carlos ship --app shop --version v12 ./bin/server |
| carlos promote --app shop v12 edge |
| -# run your tests against staging once it serves v12 |
| +# wait up to 5 minutes for staging to serve v12, or fail the job |
| +for i in $(seq 30); do |
| + curl -sI https://shop.staging.example.com/ | grep -qi '^x-carlos-version: v12' && break |
| + [ "$i" = 30 ] && { echo "staging never served v12" >&2; exit 1; } |
| + sleep 10 |
| +done |
| +# run your tests against staging here |
| carlos releases pull v12 --app shop --out release |
| ``` |