You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Integrate and harden agent-native long-running goals end to end #2015
Final integration task for #2002. Start after the control, runtime, and UI sub-epics are integrated into 2002-epic-long-running-goals.
Scope
Validate that ProPR launches one selected coding agent in native goal mode, durably hosts its session/output/controls, and resumes it after failures. The coding agent owns planning and any ProPR/GitHub decomposition.
End-to-end scenarios
Create a goal and prove the selected provider receives native /goal <objective> semantics.
Pass parallelism and Ultrafix preferences and display the coding agent's native plan/checklist.
Kill the provider container, clear Redis, restart the daemon, and resume the same provider session/worktree without starting a second goal.
Pause, restart, resume, and verify native status plus elapsed/active/paused accounting.
Send "what's done?", "what's left?", and a free-form correction in FIFO order; replay replies after reconnect.
Change model/reasoning at a supported boundary and verify requested/effective state and usage attribution.
Exercise Claude, Codex, and Antigravity start/resume/steer/pause/cancel/complete paths.
Reject forged provider control events and cross-user HTTP/socket access.
Preserve existing one-shot issue, review, indexing, planner, and demo flows.
Associate the coding agent's final epic PR and leave it draft/unmerged for human approval.
Final gate
Full CI/security/typecheck suites pass.
Run a dedicated Ultrafix loop on the final epic PR.
One canonical wire contract. Remove/replace every temporary UI goal-contract mirror with one versioned @propr/shared contract. Black-box test real Express/Socket.IO producers through actual UI decoders for create/list/detail, every mutation, message cancel/retry, forward/backward event pages, and list/detail envelopes. Cover hierarchy/node vocabulary, message states, recovery, completion blockers/HTTPS epic URL, stats units, and events. Unknown/malformed required data fails closed; no adapter fabricates defaults, capabilities, stats, cursors, or IDs.
Production durability bridge. Wire runtime state/transition/terminal/event/message ports to the Persist goal lifecycle, one provider session, and fenced control state #2006/Add durable native-goal output, steering, replay, checklist, and statistics #2008 SQL repositories—never InMemoryGoalSessionPorts or Redis as truth. Map controller lease epoch to runtime fences and one canonical per-goal sequence. Inject crashes between control-plane commit, provider acceptance, event/message ack, scheduler/GitHub receipt; after daemon/container replacement plus Redis/queue/socket loss, preserve exact goal/session/provider/worktree/branch/turn/execution identities with no split-brain or duplicate effects.
Real create→list→detail flow. Exercise UI and documented direct API with trimmed Unicode objective limits (10..4000 code points), repository authorization, concurrency/Ultrafix bounds, response-loss idempotent create, immediate list/detail visibility, lifecycle states, requested/effective model, URL filter/search/repository/cursor preservation across Back/Cancel/success, and restart/refresh.
Provider/catalog routing. From the real catalog assert the fail-closed intersection of enabled agent, goalCapable, goalCapableModels, supported model, credentials/runtime availability, and pinned CLI floor. Claude/Codex/Antigravity must launch only the selected adapter/model and persist its native identity. Stale/unknown models, incapable agents, below-floor images, and provider switching fail before session mutation with actionable UI/API diagnostics.
Lifecycle, steering, and model concurrency. Add two-operator/response-loss cases: pause prevents new dispatch and reaches provider-declared safe boundary without cancellation; restart from pausing/paused; resume the same session and refill capacity once; cancel remains terminal. FIFO canned/free-form steering, pending cancellation, uncertain retries, controller status + ordered provider reply, and draft preservation survive reconnect. Rapid model requests and crash during application retain ordered requested/effective/audit state, apply once at the supported boundary, attribute tokens correctly, and reject stale versions.
Realtime/compaction. Through real socket authorization, cover disconnect/reconnect + REST fallback from exclusive cursor, duplicates/out-of-order, multi-page gaps >1,000, advancing targets during drain, process restart, and list invalidation under sustained events. Define/test expired-compacted-cursor reset/bootstrap (or lifetime replay); strict contiguous recovery must not loop. Assert one bounded reconciliation, no gap/duplicates, exact 1,000 client retention, viewport/follow-tail preservation, and socket teardown/re-auth on identity/permission changes.
Authoritative hierarchy/stats/terminal. Durable ProPR nodes—not provider todos—drive checklist/completion. Compare UI/list/detail stats to SQL for retry/no-code/recovered attempts, per-provider/model input/output/cache/reasoning tokens, issues/PRs, and elapsed/active/paused/recovery time with explicit units. Stream chunk-boundary and >1,000-event output containing ANSI/HTML, hostile URI/metadata, secrets, and long lines; assert server redaction, safe render/copy, bounded client/server memory, search/filter, older-page anchor, and live arrivals.
Hierarchy/parallelism/GitHub conflict matrix. Provider-internal agents cannot bypass ProPR’s active-task cap; dependency-ready leaves run concurrently; integration-branch merges serialize; every leaf/sub-epic/final base/head is correct; final epic remains draft until gates pass. Induce base drift and conflicts with auto-resolution enabled/disabled, conflict-agent success/failure, failed CI/Ultrafix, circuit breaker, no-code leaf, deleted/recreated branch, and closed/reopened PR. Restart/redelivery creates at most one conflict job/artifact and never advances readiness without authoritative evidence.
Non-enumeration/revocation. For another user and permission revoked mid-session, test list/detail/events plus every mutation/message route and socket subscribe/reconnect. Cross-owner IDs/cursors—including encoded variants—are indistinguishable from absent, emit no room/data/branch/session metadata, and do not alter sequence/idempotency. UI promptly unsubscribes, aborts stale work, clears list/detail/terminal/clipboard state, and reauthorizes. Demo/read-only remains isolated; logs/metrics contain no objectives, messages, transcripts, credentials, or paths.
Composed accessibility/mobile and executable remote-client evidence. Run keyboard-only desktop+narrow browser flows over real routes: one main landmark, focus order/trap/return, live/busy/offline announcements, draft preservation, reduced motion, terminal navigation, and clipboard failure feedback. From a separate Docker client, execute documented REST/realtime examples against a running ProPR instance for auth, create/list/detail, pause/resume/model/message, and cursor reconnect. Also include upgraded pre-goal DB + active-goal restart and bounded shutdown/checkpoint smoke evidence. This must prove the programmatic long-running goal path works like remote exec, not merely document it.
Integration contract addendum — do not start #2015 until #2003, #2004, and #2005 are merged into #2002. Use Codex GPT-5.6 Sol only.
The final integration must resolve these seams explicitly, not with permissive adapters:
One versioned @propr/shared wire contract
Replace the temporary UI goal-contract mirror.
Unify node readiness/evidence states, message pending/delivering/failed/cancelled and response fields, the closed event registry, detail/recovery/blocker/epic fields, and one time unit.
Use header Idempotency-Key canonically with the documented body fallback.
Enforce one trimmed Unicode objective rule and exact code-point bounds.
Bind every response/event/message to the decoded requested goal ID before applying it client-side.
API and pagination
Implement cancel-message and retryOfMessageId.
Support canonical opaque forward/backward owner+repository+filter-bound cursors with previous/next/reset semantics; no numeric cursor compatibility once the versioned contract is active.
Return bounded detail from one SQL read snapshot with asOfVersion/asOfSequence and count+byte limits.
Production SQL runtime bridge
Connect GoalSessionRuntimePorts to durable SQL; no in-memory production fallback.
Persist exact goal/session/controllerEpoch/turn/execution/attempt/providerOperationGeneration identities, runtime CAS state, initialization/recovery/resume/cancel/model intents, provider barriers, receipts, and bounded histories.
Use one atomic per-goal sequence allocator and transactionally couple state/message/terminal changes with audit events.
Map orchestration lease epoch to runtime fence and recover after daemon/container replacement with Redis, queues, and sockets empty.
Fail-closed capability catalog
A create or model-change candidate is goal-capable only when the agent is enabled, explicitly configured, model-supported and allowlisted, a compatible adapter is registered, credentials/runtime are available, and the pinned CLI/schema floor passes. Creation and live model change must call the same predicate before state mutation. Resolve catalog and core-index merge conflicts deliberately.
Authenticated realtime
Use typed Socket.IO subscribe/ack/event/reset envelopes, SQL replay as truth, atomic high-watermark replay-to-live join, bounded backpressure, repository authorization, periodic permission revalidation, and forced eviction/clear on revocation or identity change.
Required integrated proof
Realistic fake stack: single-PR and nested sub-epic goals, concurrency cap, serialized merges, pause/resume/cancel, FIFO canned/free-form steering, uncertain retries, rapid model changes, no-code/recovered stats, final epic readiness.
Crash matrix around provider ID/output/tool/message/model/cancel/terminal/GitHub side effects, then restart with volatile infrastructure empty and prove stable identities and no duplicate effects/artifacts.
Pinned real smokes: Claude 2.1.220, Codex App Server 0.146.0, Antigravity agy 1.1.13.
Separate authenticated Docker client exercising REST plus Socket.IO end to end, proving /goal works programmatically like remote exec.
Real browser desktop/narrow/keyboard/a11y/offline/reconnect/terminal behavior.
Before the final draft 2002 -> main epic PR, verify every leaf/sub-epic base and head, run full repository and provider validation, then /ultrafix goal=9 max=8 with gpt-5.6-sol. Leave the epic PR draft and unmerged for human approval.
changed the title [-]Integrate and harden long-running goals end to end[/-][+]Integrate and harden agent-native long-running goals end to end[/+]on Sep 2, 2026
Activity
integry commentedon Aug 31, 2026
Owner final-integration acceptance addendum
One canonical wire contract. Remove/replace every temporary UI goal-contract mirror with one versioned
@propr/sharedcontract. Black-box test real Express/Socket.IO producers through actual UI decoders for create/list/detail, every mutation, message cancel/retry, forward/backward event pages, and list/detail envelopes. Cover hierarchy/node vocabulary, message states, recovery, completion blockers/HTTPS epic URL, stats units, and events. Unknown/malformed required data fails closed; no adapter fabricates defaults, capabilities, stats, cursors, or IDs.Production durability bridge. Wire runtime state/transition/terminal/event/message ports to the Persist goal lifecycle, one provider session, and fenced control state #2006/Add durable native-goal output, steering, replay, checklist, and statistics #2008 SQL repositories—never
InMemoryGoalSessionPortsor Redis as truth. Map controller lease epoch to runtime fences and one canonical per-goal sequence. Inject crashes between control-plane commit, provider acceptance, event/message ack, scheduler/GitHub receipt; after daemon/container replacement plus Redis/queue/socket loss, preserve exact goal/session/provider/worktree/branch/turn/execution identities with no split-brain or duplicate effects.Real create→list→detail flow. Exercise UI and documented direct API with trimmed Unicode objective limits (10..4000 code points), repository authorization, concurrency/Ultrafix bounds, response-loss idempotent create, immediate list/detail visibility, lifecycle states, requested/effective model, URL filter/search/repository/cursor preservation across Back/Cancel/success, and restart/refresh.
Provider/catalog routing. From the real catalog assert the fail-closed intersection of enabled agent,
goalCapable,goalCapableModels, supported model, credentials/runtime availability, and pinned CLI floor. Claude/Codex/Antigravity must launch only the selected adapter/model and persist its native identity. Stale/unknown models, incapable agents, below-floor images, and provider switching fail before session mutation with actionable UI/API diagnostics.Lifecycle, steering, and model concurrency. Add two-operator/response-loss cases: pause prevents new dispatch and reaches provider-declared safe boundary without cancellation; restart from
pausing/paused; resume the same session and refill capacity once; cancel remains terminal. FIFO canned/free-form steering, pending cancellation, uncertain retries, controller status + ordered provider reply, and draft preservation survive reconnect. Rapid model requests and crash during application retain ordered requested/effective/audit state, apply once at the supported boundary, attribute tokens correctly, and reject stale versions.Realtime/compaction. Through real socket authorization, cover disconnect/reconnect + REST fallback from exclusive cursor, duplicates/out-of-order, multi-page gaps >1,000, advancing targets during drain, process restart, and list invalidation under sustained events. Define/test expired-compacted-cursor reset/bootstrap (or lifetime replay); strict contiguous recovery must not loop. Assert one bounded reconciliation, no gap/duplicates, exact 1,000 client retention, viewport/follow-tail preservation, and socket teardown/re-auth on identity/permission changes.
Authoritative hierarchy/stats/terminal. Durable ProPR nodes—not provider todos—drive checklist/completion. Compare UI/list/detail stats to SQL for retry/no-code/recovered attempts, per-provider/model input/output/cache/reasoning tokens, issues/PRs, and elapsed/active/paused/recovery time with explicit units. Stream chunk-boundary and >1,000-event output containing ANSI/HTML, hostile URI/metadata, secrets, and long lines; assert server redaction, safe render/copy, bounded client/server memory, search/filter, older-page anchor, and live arrivals.
Hierarchy/parallelism/GitHub conflict matrix. Provider-internal agents cannot bypass ProPR’s active-task cap; dependency-ready leaves run concurrently; integration-branch merges serialize; every leaf/sub-epic/final base/head is correct; final epic remains draft until gates pass. Induce base drift and conflicts with auto-resolution enabled/disabled, conflict-agent success/failure, failed CI/Ultrafix, circuit breaker, no-code leaf, deleted/recreated branch, and closed/reopened PR. Restart/redelivery creates at most one conflict job/artifact and never advances readiness without authoritative evidence.
Non-enumeration/revocation. For another user and permission revoked mid-session, test list/detail/events plus every mutation/message route and socket subscribe/reconnect. Cross-owner IDs/cursors—including encoded variants—are indistinguishable from absent, emit no room/data/branch/session metadata, and do not alter sequence/idempotency. UI promptly unsubscribes, aborts stale work, clears list/detail/terminal/clipboard state, and reauthorizes. Demo/read-only remains isolated; logs/metrics contain no objectives, messages, transcripts, credentials, or paths.
Composed accessibility/mobile and executable remote-client evidence. Run keyboard-only desktop+narrow browser flows over real routes: one main landmark, focus order/trap/return, live/busy/offline announcements, draft preservation, reduced motion, terminal navigation, and clipboard failure feedback. From a separate Docker client, execute documented REST/realtime examples against a running ProPR instance for auth, create/list/detail, pause/resume/model/message, and cursor reconnect. Also include upgraded pre-goal DB + active-goal restart and bounded shutdown/checkpoint smoke evidence. This must prove the programmatic long-running goal path works like remote exec, not merely document it.
integry commentedon Aug 31, 2026
Integration contract addendum — do not start #2015 until #2003, #2004, and #2005 are merged into #2002. Use Codex GPT-5.6 Sol only.
The final integration must resolve these seams explicitly, not with permissive adapters:
Fail-closed capability catalog
A create or model-change candidate is goal-capable only when the agent is enabled, explicitly configured, model-supported and allowlisted, a compatible adapter is registered, credentials/runtime are available, and the pinned CLI/schema floor passes. Creation and live model change must call the same predicate before state mutation. Resolve catalog and core-index merge conflicts deliberately.
Authenticated realtime
Use typed Socket.IO subscribe/ack/event/reset envelopes, SQL replay as truth, atomic high-watermark replay-to-live join, bounded backpressure, repository authorization, periodic permission revalidation, and forced eviction/clear on revocation or identity change.
Required integrated proof
Before the final draft 2002 -> main epic PR, verify every leaf/sub-epic base and head, run full repository and provider validation, then /ultrafix goal=9 max=8 with gpt-5.6-sol. Leave the epic PR draft and unmerged for human approval.
[-]Integrate and harden long-running goals end to end[/-][+]Integrate and harden agent-native long-running goals end to end[/+]integry commentedon Sep 2, 2026
Superseded by #2071 and the simplified task-backed native /goal architecture. The unreleased branch is retained only for reference.