Skip to content

orchestration: worker-list proposes nextAction=release for user-retained and unverifiable rows while reclaimable filter is empty #32

Closed

Description

@DoozyX

Summary

worker-list proposes projection.nextAction.kind=release for rows whose resource is explicitly retained (resource.releaseState=retained, resource.retainedReason=user_requested), including rows with liveness=unverifiable, while the same run's --terminal-state reclaimable filter returns no rows.

Command

orca orchestration worker-list --run <run_id> --include-remote --json
orca orchestration worker-list --run <run_id> --terminal-state reclaimable --json

Inspect per row (allowlisted fields only): resource.releaseState, resource.retainedReason, projection.liveness.verdict, projection.nextAction.kind; then result.workers / page.total of the second call.

Expected

A row retained by an explicit worker-retain (retainedReason=user_requested) does not carry nextAction.kind=release. The delivery teardown check treats any reclaimable row as residue, and that filter says nothing is reclaimable. For an unverifiable row the served recovery guide says never to release.

Actual

Four rows were retained / user_requested and still reported nextAction.kind=release: one live, three unverifiable (succeeded, failed, abandoned). The reclaimable filter returned 0 rows (counts: active 1, retained 12, released 11; page.total 0). Captured 2026-10-15T11:20Z, both commands exit 0.

A re-check on the current version shows the abandoned, unverifiable row is still retained / user_requested with nextAction.kind=release, and reclaimable still returns an empty workers array. That row had already been refused once: a supported worker-release returned retained / identity_unproven / processAction none, then the fleet row proposed the same release argv again with no new identity proof. Other user-retained rows stopped showing the symptom only after they were released.

Guide text that misleads

orchestration/references/recovery-and-cleanup.md:

each row carries projection.liveness, projection.attention.categories, projection.attention.requiresAction, and a literal projection.nextAction argv to run

versus the table row:

unverifiable liveness | Keep waiting or inspect; never stop, abandon, retry, or release

A coordinator that runs the literal argv on a retained row releases a worker the user asked to keep. Here the coordinator did not run it; it recorded KEEP.

Not claimed

That Orca would release anything by itself, or that release is never valid for a retained row after the user lifts the retention.

Version

orca --version: 1.4.226-local.1792053322212.6a1d8a29dfdc

Retrospective

.orca/2026-10-15-eros-release2/orchestrate/retrospective.md (Orca issues, entry 1); receipt: orchestrate/teardown-commands.json seq 58/59 in the same run directory.

Activity

  1. added
    retro
    on Oct 15, 2026
  2. DoozyX commented on Nov 17, 2026

    @DoozyX
    OwnerAuthor

    Already fixed on current fork/main (b01519b) by upstream commit 0668ba1 (stablyai#36803, 2026-10-31, after this was filed on 2026-10-15). Not re-implemented.

    Evidence (code read on fork/main; git merge-base --is-ancestor 0668ba1a332 fork/main exits 0):

    • src/shared/orchestration/fleet/orchestration-fleet-worker-projection.ts projectFleetNextAction: a settled worker only gets release when resource.ownershipState === 'owned' and releaseState is neither released nor retained. A retained row (including retainedReason=user_requested) gets { kind: 'none', argv: [] }.
    • deriveWorkerTerminalListState (worker-terminal-ownership.ts) maps release_state = 'retained' to terminalState=retained, so the earlier terminalState === 'reclaimable' branch never fires for it. The federated --include-remote path recomputes through the same projectFleetNextAction (refreshFleetWorkerVerdict).
    • Live and unverifiable rows reach only none or inspect, never release.
    • Regression test from that commit: asks nothing of a finished worker kept open in orchestration-fleet-projection.test.ts (succeeded, owned, releaseState: 'retained', expects none).

    The "unverifiable row refused once, then the same release argv proposed again" case is covered by the same branch. I did not re-run the original captured run, since its data is from 2026-10-15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    retro

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions