Skip to content

Local OpenCode Cook cancels before recording runner PID #13368

Description

@chubes4

Problem

An explicitly local OpenCode Cook can reach provider_ready, create an automatic -transport-retry run, then cancel both runs before recording a runner PID or consuming provider budget.

Observed durable runs:

  • agent-task-6477468f-cae3-487f-a96f-b27cb1d01f78
  • agent-task-6477468f-cae3-487f-a96f-b27cb1d01f78-transport-retry

agent-task diagnose --full reports:

  • root cause: agent_task.runner_missing_pid
  • causal phase: runner_submission
  • cancellation reason: missing_runner_pid
  • requested placement: local
  • provider executions consumed: 0
  • no aggregate, diagnostic, attempt, or promotion evidence

Provider readiness was validated immediately beforehand and reported OpenCode ready. A preceding Cook also failed controller admission while the Homeboy executable was upgraded, but this run used the stable 0.359.7+f81f6f5bea3a controller and passed provider readiness.

Expected

  • Local provider submission records its execution PID before cancellation reconciliation can inspect it.
  • An automatic transport retry retains the original task and reaches provider execution when readiness is valid.
  • A pre-provider cancellation preserves the concrete transport/submission error instead of collapsing to missing PID.
  • Deterministic coverage reproduces local OpenCode submission around transport retry creation.

Impact

Tracked candidate work cannot enter provider execution or publication even though the provider is ready and no budget is consumed. Repeated retries create durable cancelled runs without actionable transport evidence.

AI Assistance

OpenAI GPT-5.6 Sol via OpenCode executed the Cooks, inspected durable status/diagnosis, verified provider readiness, searched existing trackers, and drafted this issue. Chris Huber directed the work and remains responsible.

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