oficina / equipo Public

hostedops: unit wait has no exit 3; fix the package comment

unit wait waits until its unit is done (0) or past its bound (99); the
package comment said it exits 3 while running. Drop the unused
ExitRunning constant with it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 8c8d1f6768459c853140f2ad3e05a9d12414ba2c parent 14c0eff
2 files changed, +14 −7
  • docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md +7 −0
  • internal/hostedops/ops.go +7 −7
diff --git a/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md b/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md
index aad35a54..73469034 100644
--- a/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md
+++ b/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md
@@ -3374,3 +3374,10 @@ Mutation checks, each restored and green again:
- **F3** a read error allowed (`if on`). Same test: FAIL `drill_test.go:72: attachment unreadable: reboot = 0, want 99`.
- **F4** the old journal refusal put back ahead of the read. `-run 'TestFenceRecordsWhatItFenced|TestRebootRefusalReadsTheFence'`:
FAIL `drill_test.go:31: ops controller reboot ... = 99, want 0` and `drill_test.go:72: journalled, since detached: reboot = 99, want 0`.
+
+### Fix 3: `unit wait` exit status in the package comment
+
+The `internal/hostedops` package comment said `unit wait` exits 3 while its unit runs; it waits
+until the unit is done (0) or past its bound, and a failed, killed or unresolved unit is 99. The
+comment now says so, and the unused `ExitRunning = 3` constant is gone (nothing referenced it;
+`go vet ./internal/hostedops/...` and the build pass). A comment-only fix: no test, no mutation.
diff --git a/internal/hostedops/ops.go b/internal/hostedops/ops.go
index 9b04fe40..e2bf8d15 100644
--- a/internal/hostedops/ops.go
+++ b/internal/hostedops/ops.go
@@ -6,9 +6,10 @@
// equipo-hosted-ops -dir P -run RUN [-profile PR -account A -region R [-role ROLE[/SESSION]]] COMMAND ...
//
// Exit status: 0 success, 1 an ordinary failure, 99 a safety failure (a
-// hard stop; the account plan's section S follows). The one exception is
-// "unit wait", which exits 3 when its unit is still running and the call
-// should be repeated. Every action writes one journal line.
+// hard stop; the account plan's section S follows). "unit wait" has no
+// code of its own: it waits until its unit is done (0) or past its bound,
+// and a failed, killed or unresolved unit is 99. Every action writes one
+// journal line.
//
// Every command that calls the provider opens it once (Opener): the
// credentials are resolved once, frozen for the process and verified
@@ -32,10 +33,9 @@ import (
// Exit codes.
const (
- ExitOK = 0
- ExitFail = 1
- ExitRunning = 3
- ExitStop = 99
+ ExitOK = 0
+ ExitFail = 1
+ ExitStop = 99
)
// StopError is a hard stop: exit 99.