carlos / platform Public

activator: a worker exit with no status tells the member (RFS-3-C35)

A worker that ended with no status to tell (a failed start, no exit
record, or an unknown signal) wrote only an operator line, so the member
saw nothing until the crash loop's RFS-3-C10. It now also gets RFS-3-C35,
approved by Paul 2026-10-30 after the Task 11 end-to-end run (#366):

    worker %s exited. starting it again in %s

at warn, in RFS-3-C09's place and paced as C09 is (at most once a minute
in the crash loop). The operator line is kept for every such exit.

The brief named the row RFS-3-C12; that id is already EventRootfsRefused
("this box cannot run the instance: %s"), and the deck's ids are
canonical, so the row is the next free one, RFS-3-C35, added to the
rootfs copy deck as approved 2026-10-30 and to the gate's inventory and
built list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 8ea8e816d0b2c70c70d4d2dff9cda745e93820e3 parent 60edee1
7 files changed, +78 −18
  • approved_rootfs_copy_test.go +5 −0
  • docs/superpowers/plans/2026-10-24-rootfs-apps-copy.md +4 −3
  • internal/activator/rootfsworkers.go +8 −4
  • internal/activator/rootfsworkers_test.go +50 −4
  • internal/rolloutwords/words.go +6 −4
  • internal/rolloutwords/words_test.go +2 −1
  • plan3_groups_test.go +3 −2
diff --git a/approved_rootfs_copy_test.go b/approved_rootfs_copy_test.go
index 08ef60b2e..72743dd3e 100644
--- a/approved_rootfs_copy_test.go
+++ b/approved_rootfs_copy_test.go
@@ -68,6 +68,8 @@ var rootfsCopyIDs = []string{
"RFS-3-C25", "RFS-3-C26", "RFS-3-C27", "RFS-3-C28",
"RFS-3-C29", "RFS-3-C30", "RFS-3-C31", "RFS-3-C32",
"RFS-3-C33", "RFS-3-C34",
+ // Task 11 end-to-end (approved 2026-10-30): a worker exit with no status
+ "RFS-3-C35",
// Plan 4
"RFS-4-C01", "RFS-4-C02", "RFS-4-C03", "RFS-4-C04",
"RFS-4-C05", "RFS-4-C06", "RFS-4-C07", "RFS-4-C08",
@@ -211,6 +213,9 @@ var rootfsCopyBuilt = []string{
// Plan 3 Group W, W1b: the worker events
// (internal/rolloutwords/words.go)
"RFS-3-C08", "RFS-3-C09", "RFS-3-C10",
+ // Task 11 end-to-end: a worker exit with no status to tell
+ // (internal/rolloutwords/words.go)
+ "RFS-3-C35",
// Plan 4 Task 2: what the creating release says, and where a rootfs row
// may run (internal/console/rootfs.go)
"RFS-4-C01", "RFS-4-C02", "RFS-4-C05", "RFS-4-C06", "RFS-4-C07", "RFS-4-C08",
diff --git a/docs/superpowers/plans/2026-10-24-rootfs-apps-copy.md b/docs/superpowers/plans/2026-10-24-rootfs-apps-copy.md
index ec3bf165d..d0509ce81 100644
--- a/docs/superpowers/plans/2026-10-24-rootfs-apps-copy.md
+++ b/docs/superpowers/plans/2026-10-24-rootfs-apps-copy.md
@@ -202,8 +202,9 @@ From the plan: Every row goes to the deck in Task 1 and reaches code only once a
| RFS-3-C32 | internal/release/layoutintent.go (RootfsFloorOverrideUsage, the --allow-below-rootfs-floor help on carlos system update, rollback and apply) | allow a release below v0.29.0 where v0.29.0 or later runs now. boxes may have rootfs instances that release cannot run | approved |
| RFS-3-C33 | internal/host/systemapply.go (systemApplyRootfsFloorRefusal, a hand-run carlos system apply refused on a box on the rootfs floor: the installed release, the floor, the candidate) | this box runs %s, so carlos system apply installs only %s or later here, the releases that run rootfs instances. %s is not one. to install it anyway, pass --allow-below-rootfs-floor | approved |
| RFS-3-C34 | internal/host/systemapply.go (systemApplyRootfsFloorOverride, the hand-run apply's log warning when the override lets a release below the floor through: the candidate, the floor, the candidate) | installing %s below %s with --allow-below-rootfs-floor: this box may have rootfs instances that %s cannot run | approved |
+| RFS-3-C35 | internal/rolloutwords/words.go (EventWorkerExitedUnknown, RFS-3-C09 for a worker exit with no status to tell: the worker, the delay; approved by Paul 2026-10-30 after the Task 11 end-to-end run) | worker %s exited. starting it again in %s | approved |
-From the plan: Count: 29 rows, 28 live, 1 struck (RFS-3-C13). Since then (Task 15 rounds 3 and 4, 2026-10-26/27): 34 rows, 32 live, 2 struck (RFS-3-C13, RFS-3-C25); RFS-3-C30 to C34 were approved by Paul in the copy pass of 2026-10-27, which also revised RFS-4-C01, C05 and C06. The floor moved to the console in round 4, so C30 and C31 are the console's and C33 and C34 the hand-run apply's. (RFS-3-C28 is live until Plan 6 Task 16 marks it struck when runs reach fleet boxes, R7.)
+From the plan: Count: 29 rows, 28 live, 1 struck (RFS-3-C13). Since then (Task 15 rounds 3 and 4, 2026-10-26/27): 34 rows, 32 live, 2 struck (RFS-3-C13, RFS-3-C25); RFS-3-C30 to C34 were approved by Paul in the copy pass of 2026-10-27, which also revised RFS-4-C01, C05 and C06. The floor moved to the console in round 4, so C30 and C31 are the console's and C33 and C34 the hand-run apply's. (RFS-3-C28 is live until Plan 6 Task 16 marks it struck when runs reach fleet boxes, R7.) RFS-3-C35 was approved by Paul on 2026-10-30, after the Task 11 end-to-end run: the member's line for a worker exit with no status to tell, where only an operator line was written before. 35 rows, 33 live, 2 struck.
Plan 3's file cells were set on 2026-10-26 (Plan 3 pre-flight, row 8.3) to the one file that holds each literal, with the old where-it-appears text kept as the note, so the gate's applied-text check can read them. C05 to C07 also format through `ReleaseError.Error`, named in the note. RFS-3-C13 was struck the same day (pre-flight row 3.1): host lifecycle claims are shelved, and Plan 3 adds no reader of the claim switch. The texts are unchanged.
@@ -561,8 +562,8 @@ strike them (Astra R2 finding 5).
- Plan 1: 85 live, 0 struck, 85 rows
- Plan 2: 12 live, 0 struck, 12 rows
-- Plan 3: 32 live, 2 struck, 34 rows
+- Plan 3: 33 live, 2 struck, 35 rows
- Plan 4: 138 live, 0 struck, 138 rows
- Plan 5: 44 live, 0 struck, 44 rows
- Plan 6: 64 live, 0 struck, 64 rows
-- Total: 375 live, 2 struck, 377 rows
+- Total: 376 live, 2 struck, 378 rows
diff --git a/internal/activator/rootfsworkers.go b/internal/activator/rootfsworkers.go
index ab8d12f1f..4f3e510c8 100644
--- a/internal/activator/rootfsworkers.go
+++ b/internal/activator/rootfsworkers.go
@@ -615,8 +615,8 @@ type workerReleaser interface {
// run of sidecarHealthyRun), the restart count, and the member's event:
// RFS-3-C10 once on entering the crash loop, RFS-3-C09 with the delay
// otherwise (at most once a minute in the loop). An exit with no status to
-// tell gives an operator line instead of C09 [pf W1.16]. The caller holds
-// a.mu.
+// tell [pf W1.16] gives an operator line, and RFS-3-C35 in C09's place,
+// paced the same way (Task 11 end-to-end, #366). The caller holds a.mu.
func (a *Service) noteWorkerExitLocked(e *actEntry, wk *rootfsWorker, now time.Time) {
if !wk.started.IsZero() && now.Sub(wk.started) >= sidecarHealthyRun {
wk.backoff, wk.crashLoop = 0, false
@@ -637,12 +637,16 @@ func (a *Service) noteWorkerExitLocked(e *actEntry, wk *rootfsWorker, now time.T
status, ok = workerExitStatus(wk.proc)
}
wait := time.Duration(retryAfterSeconds(wk.backoff)) * time.Second
+ if !ok && !entered {
+ log.Printf("activator: %s: worker %s ended with no exit status to tell (a failed start, no exit record, or an unknown signal); starting it again in %s", e.host, wk.name, wait)
+ }
switch {
case entered:
emitEvent(a.Logs, e.route, "error", fmt.Sprintf(rolloutwords.EventWorkerCrashLoop, wk.name))
- case !ok:
- log.Printf("activator: %s: worker %s ended with no exit status to tell (a failed start, no exit record, or an unknown signal); starting it again in %s", e.host, wk.name, wait)
case wk.crashLoop && !wk.lastExitEvent.IsZero() && now.Sub(wk.lastExitEvent) < time.Minute:
+ case !ok:
+ wk.lastExitEvent = now
+ emitEvent(a.Logs, e.route, "warn", fmt.Sprintf(rolloutwords.EventWorkerExitedUnknown, wk.name, wait.String()))
default:
wk.lastExitEvent = now
emitEvent(a.Logs, e.route, "warn", fmt.Sprintf(rolloutwords.EventWorkerExited, wk.name, status, wait.String()))
diff --git a/internal/activator/rootfsworkers_test.go b/internal/activator/rootfsworkers_test.go
index b9bd07b98..dd7fb0f37 100644
--- a/internal/activator/rootfsworkers_test.go
+++ b/internal/activator/rootfsworkers_test.go
@@ -587,8 +587,18 @@ func TestRootfsWorkersStartAfterWebHealthy(t *testing.T) {
}
// crashLoop makes jobs exit ten times with code and status and checks the
-// restarts' delays, web untouched, and the member's events.
+// restarts' delays, web untouched, and the member's events: RFS-3-C09
+// naming want.
func crashLoop(t *testing.T, code, status string, want int) {
+ t.Helper()
+ crashLoopTelling(t, code, status, func(wait string) string {
+ return fmt.Sprintf(rolloutwords.EventWorkerExited, "jobs", want, wait)
+ })
+}
+
+// crashLoopTelling is crashLoop with the member's exit line given: line
+// words one exit from its restart's delay.
+func crashLoopTelling(t *testing.T, code, status string, line func(wait string) string) {
t.Helper()
r := newWorkerRig(t, workerHost(), "jobs")
r.wake(t)
@@ -625,11 +635,11 @@ func crashLoop(t *testing.T, code, status string, want int) {
}
exited := r.sink.with("worker jobs exited")
if len(exited) != 9 {
- t.Fatalf("RFS-3-C09 emitted %d times, want 9 (every exit but the one that entered the loop): %+v", len(exited), exited)
+ t.Fatalf("the exit line emitted %d times, want 9 (every exit but the one that entered the loop): %+v", len(exited), exited)
}
for i, wait := range []string{"2s", "4s", "8s", "16s", "32s", "1m0s", "1m0s", "1m0s", "1m0s"} {
- if w := fmt.Sprintf(rolloutwords.EventWorkerExited, "jobs", want, wait); exited[i].msg != w {
- t.Errorf("C09 %d = %q, want %q", i+1, exited[i].msg, w)
+ if w := line(wait); exited[i].msg != w || exited[i].level != "warn" {
+ t.Errorf("exit line %d = %q at %q, want %q at warn", i+1, exited[i].msg, exited[i].level, w)
}
}
loop := r.sink.with(fmt.Sprintf(rolloutwords.EventWorkerCrashLoop, "jobs"))[0].at
@@ -651,6 +661,42 @@ func TestRootfsWorkerCrashNeverStopsWeb(t *testing.T) { crashLoop(t, "exited", "
// Review Focus 3: a clean exit is a crash too: restarted, never parked.
func TestCleanExitingWorkerIsRestartedNotParked(t *testing.T) { crashLoop(t, "exited", "0", 0) }
+// Task 11 end-to-end (#366): an exit with no status to tell (no record, or
+// an unknown signal) still tells the member, with RFS-3-C35 in C09's place,
+// paced the same way.
+func TestWorkerExitWithNoStatusTellsTheMember(t *testing.T) {
+ for _, c := range []struct{ code, status string }{{"", ""}, {"killed", "WINCH"}} {
+ crashLoopTelling(t, c.code, c.status, func(wait string) string {
+ return fmt.Sprintf(rolloutwords.EventWorkerExitedUnknown, "jobs", wait)
+ })
+ }
+}
+
+// In the crash loop RFS-3-C35 is paced as C09 is: at most once a minute,
+// with the operator line kept for every exit.
+func TestWorkerExitWithNoStatusIsPacedInTheLoop(t *testing.T) {
+ sink := &rootfsSink{}
+ a := &Service{Logs: sink}
+ e := &actEntry{host: "shop.example.com", route: rootfsGateRoute("shop.example.com")}
+ now := time.Date(2026, 10, 30, 12, 0, 0, 0, time.UTC)
+ for _, c := range []struct {
+ since time.Duration
+ tells bool
+ }{{10 * time.Second, false}, {61 * time.Second, true}} {
+ p := &fakeWorkerProc{}
+ p.exit("", "")
+ wk := &rootfsWorker{name: "jobs", proc: p, backoff: sidecarRestartMax, crashLoop: true, lastExitEvent: now.Add(-c.since)}
+ n := len(sink.msgs())
+ a.mu.Lock()
+ a.noteWorkerExitLocked(e, wk, now)
+ a.mu.Unlock()
+ want := fmt.Sprintf(rolloutwords.EventWorkerExitedUnknown, "jobs", "1m0s")
+ if got := sink.msgs()[n:]; c.tells != slices.Equal(got, []string{want}) || (!c.tells && len(got) != 0) {
+ t.Errorf("%s after the last exit line: told %q, want it told %v", c.since, got, c.tells)
+ }
+ }
+}
+
// [pf W1.16] C09's status: an exit code, 128 plus a known signal's number;
// no record or an unknown signal tells none.
func TestRootfsWorkerExitStatus(t *testing.T) {
diff --git a/internal/rolloutwords/words.go b/internal/rolloutwords/words.go
index af5fd5ee4..9788109ec 100644
--- a/internal/rolloutwords/words.go
+++ b/internal/rolloutwords/words.go
@@ -104,11 +104,13 @@ const (
// approved in the same deck: a worker the build declares beside web,
// filled with the worker's name first. C09's status is the exit code, or
// 128 plus the signal's number for a signal's end; its delay is the wait
-// before the restart, formatted as C11's is.
+// before the restart, formatted as C11's is. C35 (approved 2026-10-30,
+// Task 11 end-to-end) is C09 for an exit with no status to tell.
const (
- EventWorkerStarted = "worker %s started" // RFS-3-C08
- EventWorkerExited = "worker %s exited with status %d. starting it again in %s" // RFS-3-C09
- EventWorkerCrashLoop = "worker %s keeps exiting. it is started again once a minute" // RFS-3-C10
+ EventWorkerStarted = "worker %s started" // RFS-3-C08
+ EventWorkerExited = "worker %s exited with status %d. starting it again in %s" // RFS-3-C09
+ EventWorkerCrashLoop = "worker %s keeps exiting. it is started again once a minute" // RFS-3-C10
+ EventWorkerExitedUnknown = "worker %s exited. starting it again in %s" // RFS-3-C35
)
// States: the REASON column of `carlos instances list` (spec §9.1).
diff --git a/internal/rolloutwords/words_test.go b/internal/rolloutwords/words_test.go
index 44dbcd88f..62cbd9c1d 100644
--- a/internal/rolloutwords/words_test.go
+++ b/internal/rolloutwords/words_test.go
@@ -20,6 +20,7 @@ func allWords() map[string]string {
"EventReleaseStarted": EventReleaseStarted, "EventReleaseDone": EventReleaseDone,
"EventReleaseFailed": EventReleaseFailed, "EventReleaseSignal": EventReleaseSignal,
"EventReleaseTimedOut": EventReleaseTimedOut, "EventReleaseLeaseLost": EventReleaseLeaseLost,
+ "EventWorkerExitedUnknown": EventWorkerExitedUnknown,
}
for k, v := range causes {
out["cause "+k] = v
@@ -56,7 +57,7 @@ func TestVerbsAreWhereTheCallersPutThem(t *testing.T) {
"StateHeld": 1, "StateRollingOut": 0, "StateAsleep": 1, "StateConfigPending": 0, "reasonUnknown": 1,
"unavailableUnknown": 1, "EventRootfsRefused": 1, "RootfsRefusedUnarmed": 0,
"EventReleaseStarted": 1, "EventReleaseDone": 2, "EventReleaseFailed": 1, "EventReleaseSignal": 2,
- "EventReleaseTimedOut": 2, "EventReleaseLeaseLost": 1,
+ "EventReleaseTimedOut": 2, "EventReleaseLeaseLost": 1, "EventWorkerExitedUnknown": 2,
} {
s := words[name]
d := digits[name]
diff --git a/plan3_groups_test.go b/plan3_groups_test.go
index bc33757c1..d61b9ad87 100644
--- a/plan3_groups_test.go
+++ b/plan3_groups_test.go
@@ -34,7 +34,8 @@ import (
// The copy sets, pinned. RFS-3-C13 is struck (pre-flight 3.1) and
// in no set; so is RFS-3-C25 (Paul's Task 15 round 3 ruling), whose place
-// RFS-3-C30 to C34 take.
+// RFS-3-C30 to C34 take. RFS-3-C35 (approved 2026-10-30 after the Task 11
+// end-to-end run) is a worker event, so it is Group W's.
//
// plan3CopyRuns is Task 12's carlos run rows (--version and rootfs runs),
// cut by Paul 2026-10-26, for a later rootfs-runs task (#431). It is a
@@ -43,7 +44,7 @@ import (
var (
plan3CopyA = plan3IDs(11, 12, 14, 15, 16, 23, 24, 30, 31, 32, 33, 34)
plan3CopyR = plan3IDs(1, 2, 3, 4, 5, 6, 7, 29)
- plan3CopyW = plan3IDs(8, 9, 10)
+ plan3CopyW = plan3IDs(8, 9, 10, 35)
plan3CopyRuns = plan3IDs(17, 18, 19, 20, 21, 22, 26, 27, 28)
)