carlos / platform Public

docs: release commands must be safe to repeat

Apply approved SR-1-C13 beside the stateless ship guidance and include it in the built-copy gate. Accept annotated pending deck statuses without treating them as approved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 45253e6777a0b1250f71f019f09f1f043ef4e0e5 parent f714b00
2 files changed, +10 −3
  • approved_stateless_replicas_copy_test.go +8 −3
  • docs/site/cli.md +2 −0

CI failed — run details

Intent

Attributed to this commit: 12.9 g CO₂e (1,404,654 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on stateless-replicas-1-runtime, 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/approved_stateless_replicas_copy_test.go b/approved_stateless_replicas_copy_test.go
index 68425b9f7..15a0d6295 100644
--- a/approved_stateless_replicas_copy_test.go
+++ b/approved_stateless_replicas_copy_test.go
@@ -9,7 +9,7 @@ import (
const statelessReplicaCopyDeck = "docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md"
-var statelessReplicaBuiltCopy = []string{"SR-1-C01", "SR-1-C02", "SR-1-C03", "SR-1-C09", "SR-1-C10"}
+var statelessReplicaBuiltCopy = []string{"SR-1-C01", "SR-1-C02", "SR-1-C03", "SR-1-C09", "SR-1-C10", "SR-1-C13"}
func statelessReplicaCopyRows(t *testing.T) []copyRow {
t.Helper()
@@ -21,8 +21,13 @@ func statelessReplicaCopyRows(t *testing.T) []copyRow {
lines := strings.Split(string(raw), "\n")
for i, line := range lines {
cells := strings.Split(line, "|")
- if len(cells) >= 6 && strings.HasPrefix(strings.TrimSpace(cells[len(cells)-2]), "approved") {
- cells[len(cells)-2] = " approved "
+ if len(cells) >= 6 {
+ status := strings.TrimSpace(cells[len(cells)-2])
+ if strings.HasPrefix(status, "approved") {
+ cells[len(cells)-2] = " approved "
+ } else if strings.HasPrefix(status, "pending (") {
+ cells[len(cells)-2] = " pending "
+ }
lines[i] = strings.Join(cells, "|")
}
}
diff --git a/docs/site/cli.md b/docs/site/cli.md
index cdfd15e3a..abdcd8b7a 100644
--- a/docs/site/cli.md
+++ b/docs/site/cli.md
@@ -255,6 +255,8 @@ The console records a change, and the app's boxes apply it. A box that follows t
Ship with --stateless when your app keeps its data outside its box. The release gets no local database, CARLOS_DB or Litestream. You provide and operate its database and other data services.
+If the box running the release command disappears, its result may be unknown. The deploy stops and the previous build keeps serving. Deploying again runs the command again, so release commands must be safe to repeat. Rails migrations record completed migrations in schema_migrations.
+
Publishes a release. The artifact is hashed, stored under its content
address, and recorded in a manifest that never changes afterwards. Shipping
does not change what anything serves — for that, see