Skip to content

Orchestration: dispatch input rejected after worker terminal creation #18

Closed

Description

@DoozyX

ORCA version: 1.4.222-local.1791362825015.73a70faec124 (orca --version, exit 0).

Observed original command shape, from the retained original invocation receipt; only private task/worktree/sender/run/request values are replaced with safe placeholders for privacy, not reconstructed:
orca orchestration worker-start --spec <redacted-task-spec> --worktree id:<repo-id>::<worktree-path> --agent codex --model gpt-6-luna --effort medium --task-title <redacted-title> --from <coordinator-terminal> --run <run-id> --json --retry-request <request-id>

Expected: once the effective worker and visible terminal exist, input should be accepted or the start should wait for/recommend exact-terminal readiness without leaving an unexplained failed dispatch that needs a separate gated same-task reuse.
Actual: orca orchestration worker-show --dispatch <failed-dispatch-id> --json exited 0 and reported status=failed, stage=dispatch_input, lastError=agent_not_in_foreground, no Task input, and a newly created visible terminal in residualResources. The same exact terminal later reached Ready/context 0; a gated same-task reuse accepted dispatch input and completed successfully. This is an observed boundary mismatch; its root cause is unproven and no fix is claimed.

The adjacent historical activity/freshness report concerns a later stopped agent whose status remained live; this report concerns input rejection before the Task started. No provider-capacity or source-code claim is made.

Retrospective: orchestrate/retrospective.md.

Activity

  1. added
    retro
    on Oct 10, 2026
  2. DoozyX commented on Oct 10, 2026

    @DoozyX
    OwnerAuthor

    New evidence for the already-open dispatch-input issue, not a new causal attribution.

    Exact read-only command: orca orchestration worker-show --dispatch ctx_7035ce075ab5 --json (exit 0). Expected: a new effective worker receives its Task input or an actionable readiness failure before it is presented as started. Actual historical receipt: effective Codex gpt-6.1-sol/high, visible terminal created, then failedStage=dispatch_input/agent_not_in_foreground, no accepted Task input, terminal in residualResources. The same delivery Task also failed ctx_330f79d3d5b9; its second allowed startup retry ctx_bd323f8f2830 subsequently accepted input and completed. Independent review startup ctx_ba0115564cb7 had the same foreground rejection; its allowed same-task retry ctx_21ee5168774f completed. All failures remain in the ledger; no review/fix budgets reset.

    Orca version at current readback: 1.4.224-local.1791619543533.c394414d7f4f; original launch version UNKNOWN. Exact followup query: orca orchestration worker-show --dispatch ctx_bd323f8f2830 --json (exit 0). Retrospective: retained local orchestrate/retrospective.md, entry 10 Oct 2026. Evidence: final-audit-retro-evidence/startup-failure.json, startup-reuse.json and original finite start receipts. No target source, account data or private paths included; vendor root cause is UNKNOWN and host overload is not attributed as the cause.

  3. added
    retro-in-progress
    on Nov 2, 2026
  4. DoozyX commented on Nov 2, 2026

    @DoozyX
    OwnerAuthor

    Claimed by the retro automation (2026-11-02).

    • Coordinator: Claude Code session 787d1063-7fb6-472c-bbc2-60e9db945218, terminal term_c88c6932-1615-4970-abd7-5964169df718, local macOS host.
    • Orca Run/Dispatch IDs: none yet; the first stage is a coordinator-native subagent (SAFE/BLOCKED classification). IDs will be recorded in the run report.
    • Run report: .orca/2026-11-02-retro-issue-18/report.md in the root worktree of this repo.
    • Next: classify SAFE or BLOCKED. Work is parked with a needs-attention comment if BLOCKED.
  5. added
    retro-parked
    on Nov 2, 2026
  6. DoozyX commented on Nov 2, 2026

    @DoozyX
    OwnerAuthor

    needs-attention: fix is implemented and reviewed clean, but not merged. A local PR hook blocked marking PR #46 ready.

    • PR: fix(orchestration): let a worker brief wait for its launched agent to lead the foreground #46 (draft, base main, "Fixes Orchestration: dispatch input rejected after worker terminal creation #18"), head DoozyX/retro-issue-18-brief-foreground-settle at 1ef05307de3ffb93c57ede2809e0581868d5f088, based on fork/main d71bd08.
    • Change: restores the bounded foreground-settle for worker-brief writes (250 ms sampling, up to 10 s, capped by the readiness deadline), originally a23a7be / 9e9df50 / 59dbbdf and lost in the upstream merges. 10 files, 10 non-UI.
    • Verification: independent whole-branch review clean at that SHA (0 patch findings, 8 nits, 3 deferred). Focused tests (17 files, 205 tests), pnpm tc, oxlint, oxfmt and the code-quality gate exit 0. The flaky-test ratchet exits 0 against the fork base. Not run: full suite, build, live PTY. This is not deployment acceptance.
    • Blocker: ~/.claude/hooks/pr-visual-proof-gate.py resolves the PR through the checkout's default remote (origin = upstream stablyai/orca) with a bare gh pr view 46. It reported UI files that are not in this PR, then failed to read the body, so gh pr ready 46 was denied. The PR's real file list has no UI files and its Visual Proof section says N/A. I did not change gh defaults or add a waiver line, since neither was authorized.
    • Recovery: run gh repo set-default DoozyX/orca (or add the visual-proof waiver if you agree to skip proof), then gh pr ready 46 --repo DoozyX/orca, wait for checks, and gh pr merge 46 --squash --repo DoozyX/orca.
    • Preserved: worktree /Users/doozyx/DoozyX/tools/orca/.worktrees/retro-issue-18, the pushed fork branch, and the run report at .orca/2026-11-02-retro-issue-18/report.md in the root worktree.
    • Owners: classifier, implementer and reviewer were all coordinator-native subagents. Each reported completion with no live background work, so none is live.
  7. removed
    retro-in-progress
    on Nov 2, 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