carlos / platform Public

replicas: restore the wire value "console unreachable" (#511)

The Luna copy pass reworded ErrConsoleUnreachable to "console could
not be reached". Its text is a wire value: boxes send it as a rollout
reason and the CLI and console match on it across versions, so
TestRolloutReason and TestRolloutNoteConsoleUnreachable failed.
Restored in code, and SR-1-C14 back to its approved text, noted "wire
value, not reworded" (controller ruling).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 8e446710733eaec2b3350cfe351d07aaa1d98ac1 parent d3076e1
2 files changed, +5 −2
  • docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md +1 −1
  • internal/replicas/types.go +4 −1
diff --git a/docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md b/docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md
index 667289422..2206b2256 100644
--- a/docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md
+++ b/docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md
@@ -30,7 +30,7 @@ copy too. Internal wire enums are not an excuse to expose unreviewed text.
| SR-1-C11 | docs/site/cli.md | A stateless release can run more than one copy on a fleet after every fleet box and the console support replicas. Apps keep one copy until you set --copies. | approved by delegation (Luna pass, 2026-11-01) |
| SR-1-C12 | internal/console/replicacoordinator.go | this instance changed before the coordination update finished. try again | approved by delegation (Luna pass, 2026-11-01); was: this instance changed while coordination was being updated. try again |
| SR-1-C13 | docs/site/cli.md | 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. | approved by delegation (Luna pass, 2026-11-01); Luna's text for SR-4-C26, reused here because Plan 1 documents repeat-safe release commands |
-| SR-1-C14 | internal/replicas/types.go | console could not be reached | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-1-C14 | internal/replicas/types.go | console unreachable | approved provisionally (controller ruling P25; for Paul's copy review) (wire value, not reworded) |
## Plan 2: count and placement
diff --git a/internal/replicas/types.go b/internal/replicas/types.go
index 52316fd32..7badec0e9 100644
--- a/internal/replicas/types.go
+++ b/internal/replicas/types.go
@@ -41,7 +41,10 @@ type CoordinatorHeldError struct{ RetryAt time.Time }
func (e *CoordinatorHeldError) Error() string { return "replicas: coordinator held" }
-var ErrConsoleUnreachable = errors.New("console could not be reached")
+// ErrConsoleUnreachable is a wire value, not reworded: boxes send its text
+// as a rollout reason, and the CLI and console match on it across
+// versions (copy SR-1-C14).
+var ErrConsoleUnreachable = errors.New("console unreachable")
var ErrFenced = errors.New("replicas: fenced")
var ErrInvalid = errors.New("replicas: invalid transition")