Skip to content

Introduce a thin resumable native-goal session and container contract #2007

Closed as not planned

Description

@integry

Context

Part of #2004 and #2002. A goal is one long-running coding-agent session whose initial input is the agent's native goal command, semantically /goal <objective>.

Scope

Add a thin provider runtime adapter around ProPR's existing goal-scoped agent container/execution path. The adapter starts or reconnects to one native goal session, forwards controls/input, and emits closed typed events.

Do not add another supervisor, session database, JSON/JSONL store, planner, node scheduler, provider-effect ledger, or GitHub orchestrator. The #2003 control plane and #2008 durable event/message work are the only persistence, lease, inbox, replay, and recovery authorities.

Contract

  • Reuse the existing AgentRegistry/container image, credential/config handling, worktree allocation, labels, and Docker execution helpers.
  • Initial input is native goal input: /goal <objective> or the provider's documented programmatic equivalent.
  • Accept the already-persisted provider thread/session/turn identity from the control plane when reconnecting; never invent a second record format.
  • Emit bounded typed terminal/assistant/tool/plan/todo/usage/checkpoint/status events through a caller-supplied durable sink. Do not write event files.
  • Forward one claimed FIFO corrective message to the same session and return provider acknowledgement.
  • Expose pause-at-safe-boundary, resume, cancel, and supported model/reasoning change operations.
  • Keep provider/process calls bounded and idempotent enough for the SQL controller to retry/reconcile.
  • Reject output or controls whose supplied goal/session/lease identity is stale.

For Codex, generate the used App Server request/response/notification bindings from the exact Dockerfile.agent pin (@openai/codex 0.151.0 at this issue revision) and use thread/goal/set|get|clear as the programmatic equivalent of /goal. Keep the adapter minimal, preserve distinct thread/session/turn identity, and fail closed when the running image version differs. Claude and Antigravity mechanics belong in their provider PRs.

Recovery boundary

The adapter does not decide lifecycle state. On daemon/container loss, the SQL controller supplies the persisted identity and exact worktree; the adapter inspects/adopts or recreates the existing goal-scoped container and reconnects to the same provider session. It reports what it finds so the controller can reconcile starting, pause, cancel, model, and message intents.

Acceptance

  • Contract tests cover native start, reconnect to the same session/active turn, one FIFO steering acknowledgement, pause/resume, model acknowledgement, cancel, bounded timeouts, and completion.
  • A real container/App Server smoke test kills and reconnects without starting a second goal.
  • Stale/cross-goal events are rejected by the shared sink/lease fence.
  • No standalone JSON/JSONL authority, ProPR planner/decomposition, hierarchy, or scheduler is introduced.

Activity

  1. added
    enhancement
    base-2004-epic-goal-agent-runtimes
    on Aug 31, 2026
  2. propr-dev commented on Aug 31, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-5.6-sol
    • Branch: 2007/gpt-5.6-sol-introduce-a-resumable-goa-20260831-0012-08e
    • Base Branch: 2004-epic-goal-agent-runtimes
    • Worktree: issue-2007-20260831-0012-gpt-5.6-sol-08e

    🔍 Track Task Execution

  3. added a commit that references this issue on Aug 31, 2026
  4. changed the title [-]Introduce a resumable goal-session contract and container supervisor[/-] [+]Introduce a thin resumable native-goal session and container contract[/+] on Sep 2, 2026
  5. propr-dev commented on Sep 2, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-5.6-sol
    • Branch: 2007/gpt-5.6-sol-introduce-a-thin-resumabl-20260902-1505-9ma
    • Base Branch: 2004-epic-goal-agent-runtimes
    • Worktree: issue-2007-20260902-1505-gpt-5.6-sol-9ma

    🔍 Track Task Execution

  6. added a commit that references this issue on Sep 2, 2026
  7. integry commented on Sep 2, 2026

    @integry
    OwnerAuthor

    Superseded by #2071 and the simplified task-backed native /goal architecture. The unreleased branch is retained only for reference.

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

    AIAI-donebase-2004-epic-goal-agent-runtimesenhancementllm-codex-gpt56-solpropr-planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions