Skip to content

Orchestration: rejected heartbeats from a stale terminal handle keep being delivered to the run (released dispatch) #5

Closed

Description

@nachumi-a2zoperations

Refs #2. Run run_a144cf4db54a, dispatch ctx_72f27ddd9783 (task task_cd2560093d6c, completed + released hours earlier). Since ~22:0xZ 2026-11-03 the coordinator kept receiving heartbeat deliveries (5 in total, e.g. msg_6c7f27cbd59b 22:26:36Z) from term_23423815-67ad-4b90-bc7a-5f524c2c1b83 with _orcaLifecycleRejection worker_identity_cha… / 'Orca rejected this heartbeat: … is not the exact process that owns Dispatch'. orca terminal close → terminal_handle_stale; not in orca terminal list.

ROOT CAUSE FOUND (22:5xZ): an orphaned heartbeat shell survived the worker release — pid 85380, parent 1, etime 19 h 37 m, /bin/bash -c source …/shell-snapshots/snapshot-bash-1793674761302-kn4p19.sh … with a sleep 300 child, env carrying ORCA_AGENT_PANE / ORCA_WORKTREE_ID (…/z8-buzz/z8buzz-backfill-iss…, worktree already removed) / the dispatch + terminal ids. It sent a heartbeat every 5 min; Orca rejected each one AND delivered the rejection to the run's FIFO. Killed by hand (kill 85380).

Two asks: (1) worker-release / terminal close should reap the agent pane's process group (the heartbeat loop was reparented to launchd and outlived the pane); (2) a heartbeat Orca rejects for a released dispatch should not be delivered to the run at all, or once with the sender pid. Version: Orca 1.4.244-blowzer.2 era (this Mac).

Activity

  1. added a commit that references this issue on Nov 6, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions