Repository navigation
Description
Goal
Make a coding agent's native /goal <objective> mode a first-class ProPR task type with a dedicated operator UI.
The coding agent owns planning, decomposition, parallel subagents, issue/PR structure, status answers, and completion. ProPR only launches and durably hosts the same session.
Thin architecture
Reuse ProPR's existing task execution substrate:
AgentRegistryand providerexecuteTaskcontainer paths;- existing worktree/branch/config/credential handling;
- task state/history session, conversation, container, worktree, and model metadata;
- existing Redis/container output,
taskWatcher, conversation parsers,live-details, native todos, token usage, and LLM metrics; - existing stop, follow-up, liveness, duplicate-execution, queue, realtime, and polling behavior.
Goal mode changes the initial provider input to native /goal <objective>, keeps provider session persistence enabled, and resumes that same session/worktree after interruption.
Add only the minimal owner-scoped goal metadata needed for list/create/control/recovery and final PR association. Do not duplicate existing task output, history, metrics, or transport state.
Product behavior
- Dedicated Goals create/list/detail UI.
- Choose repository, goal-capable agent/model, objective, optional agent concurrency policy, and optional Ultrafix policy.
- Run Claude, Codex, or Antigravity native goal mode when the pinned provider version supports it; otherwise expose the capability as unavailable.
- Resume the same provider session after worker/daemon/container loss.
- Show existing streamed terminal/assistant/tool output, provider-native todos/checklist, tokens, and elapsed/paused time.
- Pause/resume/cancel, request a supported model change, and send free-form or canned status messages to the same session.
- Passively show issues/PRs and record the coding agent's final draft epic PR (or single PR for a small goal); never auto-merge it.
Non-goals
- No ProPR goal planner or planning state.
- No issue/node/dependency hierarchy or task scheduler.
- No goal-specific supervisor, lease system, WAL/event/output store, JSONL authority, socket protocol, container manager, or provider-effect ledger.
- No synthetic checklist or controller-computed “what's done/left” response.
Implementation
- Implement Goals as a thin native /goal task mode #2071 — implement the complete thin task-backed goal mode and validate it end to end.
Earlier #2003-#2015 branches and PRs were an unreleased overengineered direction and are superseded by #2071.
Delivery
The implementation PR targets 2002-epic-long-running-goals. After exact-head audit and end-to-end validation, create one final draft epic PR from that branch to main and leave it unmerged for human approval.
Activity
[-]Epic: First-class long-running goal execution[/-][+]Epic: First-class agent-native long-running goal execution[/+][-]Epic: First-class agent-native long-running goal execution[/-][+]Epic: First-class native /goal execution[/+]