Skip to content

orchestration: worker-release cannot close a terminal reused via worker-start --terminal; only the last dispatch's release closes it #2

Closed

Description

@DoozyX

worker-release cannot close a terminal that was reused through worker-start --terminal; the result depends on which dispatch is released.

Seen on: 1.4.221-local.1791262937090.6b85338989d7 CLI; the run started on app 1.4.218-local (version not recorded per entry).
Run run_f9b087216665, a delivery run on a Go service repo. One implementer terminal received several fix rounds through worker-start --terminal <handle> --worktree <selector>, as the delivery guide's fix-round rule asks.

Command: orca orchestration worker-release --dispatch <id> --json after each accepted worker_done.

Expected: after an accepted settlement, release closes the terminal, or returns something the coordinator can act on.

Actual, unit 1 (several dispatches on one terminal):

  • fix dispatch: retained / external_terminal
  • original implement dispatch: retained / ownership_transferred
  • first reuse: retained / user_takeover
  • fix dispatches the user had asked to keep: retained / user_requested
  • The coordinator has no Orca path to close the terminal afterwards, so it was left open for the user.

Actual, unit 2 (dispatch ctx_719ae9f55d5d): releasing the LATEST dispatch on a reused terminal returned processAction=closed_agent_terminal and closed the terminal. The earlier releases of older dispatches on reused terminals had returned retained. So only the last dispatch's release closes a reused terminal, and releasing in the wrong order leaves it open.

Related: releasing an implementer dispatch whose terminal was already closed by releasing a later dispatch on the same terminal returns ok:true state:retained processAction:none; the record stays retained.

Suggested direction: when a terminal is reused within one run, return it to coordinator ownership on the next release, or add a release that closes the terminal regardless of dispatch order.

Retrospective: .orca/2026-10-01-perf-bench/orchestrate/retrospective.md, Orca issues 2 (also retro-notes.md, 2026-10-05 entries).

Activity

  1. added
    retro
    retro-in-progress
    retro-parked
    on Oct 6, 2026
  2. DoozyX commented on Oct 14, 2026

    @DoozyX
    OwnerAuthor

    Parked during the authorized 2026-10-14 automation recovery to restore the retro queue. The automation coordinator ended its October 9 run after ENOSPC, before review/PR and label cleanup; its final output is preserved in automation run 10.

    Preserved work: local branch DoozyX/retro-2-release-reused-terminal still points to commit d112a4effbe162977b223883a5d0268e94ec6c43 (9 changed files). Historical worktree /Users/doozyx/DoozyX/tools/orca/.worktrees/retro-2-release-reused-terminal is now absent; only the root checkout is registered with Git. Existing evidence remains under /Users/doozyx/DoozyX/tools/orca/.orca/2026-10-09-retro-issue-2/, including unit-2-record.md; its recorded verification limitations require independent review before any feature acceptance or landing.

    Ownership remains unverifiable, not exited: orca orchestration worker-show --dispatch ctx_2d602394b534 reports Run run_53686cedc7c4, dispatch completed/succeeded, retained resource user_owned with retainedReason=user_takeover, liveness=unverifiable/missing_status, and no matching current terminal. The recovery coordinator explicitly authorized parking this settled historical automation claim and removing retro-in-progress only to unblock other eligible issues; retro-parked excludes this issue from retries. No old terminal/resource was stopped, released, deleted, or reassigned, and no source repair or issue feature was attempted.

    Needs attention: establish the retained owner's status, recover/review the preserved commit and verification gaps, then explicitly unpark before delivery resumes. Current recovery report: /Users/doozyx/DoozyX/tools/orca/.orca/2026-10-14-automation-recovery/retro-recovery-report.md.

  3. removed
    retro-in-progress
    on Oct 14, 2026
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

    retroretro-parked

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions