Repository navigation
Description
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
propr-dev commentedon Aug 31, 2026
🤖 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:
codexgpt-5.6-sol2007/gpt-5.6-sol-introduce-a-resumable-goa-20260831-0012-08e2004-epic-goal-agent-runtimesissue-2007-20260831-0012-gpt-5.6-sol-08e🔍 Track Task Execution
fix(ai): Resolve issue #2007 - Introduce a resumable goal-session con…
feat(ai): All production files are well within the 400-line limit and…
[-]Introduce a resumable goal-session contract and container supervisor[/-][+]Introduce a thin resumable native-goal session and container contract[/+]propr-dev commentedon Sep 2, 2026
🤖 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:
codexgpt-5.6-sol2007/gpt-5.6-sol-introduce-a-thin-resumabl-20260902-1505-9ma2004-epic-goal-agent-runtimesissue-2007-20260902-1505-gpt-5.6-sol-9ma🔍 Track Task Execution
fix(ai): Resolve issue #2007 - Introduce a thin resumable native-goal…
integry commentedon Sep 2, 2026
Superseded by #2071 and the simplified task-backed native /goal architecture. The unreleased branch is retained only for reference.