Repository navigation
Description
Summary
I'd like to explore contributing an optional autonomous engineering coordinator to ProPR, and I'm looking for maintainer feedback on the architecture before committing to a substantial implementation.
I've been using ProPR to coordinate multiple AI coding agents and have been impressed with its existing execution, isolation, GitHub integration, and review capabilities.
The next capability I'd like is continuous, largely unattended engineering coordination: give the system a substantial development objective or approved plan, and have it decompose, prioritize, schedule, execute, verify, and advance through the work without requiring someone to continually manage the task queue.
I'm willing to develop and maintain this functionality, ideally as an upstream contribution. My priority is doing it in a way that aligns with ProPR's architecture and roadmap, rather than building something the project wouldn't want to maintain.
What I'm trying to accomplish
The intended workflow is:
A user supplies a substantial development objective or plan.
An AI coordinator interprets it, inspects relevant project context, and produces appropriately scoped implementation issues with acceptance criteria and dependencies.
A deterministic scheduler identifies eligible work, honors dependencies and capacity limits, and dispatches tasks through ProPR.
ProPR handles coding agents, isolated workspaces, branches, commits, pull requests, and existing review/fix workflows.
The coordinator continually reconciles the plan against actual GitHub and ProPR state.
Failed or incomplete work is investigated, repaired, reassigned, or rescheduled as appropriate.
Available capacity is replenished automatically as work completes.
The user receives evidence-backed progress reports and is involved primarily when a decision genuinely requires human judgment or authorization.
The goal is not merely to run several agents simultaneously. It's to keep an entire engineering plan progressing reliably with minimal supervision.
What I think ProPR already provides
ProPR appears to have most of the necessary execution infrastructure:
Goals, including Orchestrate through ProPR.
Planner Studio and GitHub issue generation.
Automations and scheduled agent activity.
Existing task and worker execution infrastructure.
Isolated worktrees, branches, and containers.
Pull request creation, AI review, and fix loops.
Persistent task history and execution recovery.
REST API, MCP, and CLI control surfaces.
My understanding is that Goals can already decompose work and delegate implementation, but the documented parallel-task limit is enforced by the Goal agent rather than by a deterministic dependency-aware scheduler.
I'm specifically interested in the missing layer that continuously manages an entire objective: dependency eligibility, scheduling, recovery, capacity replenishment, verification, and completion accounting.
Please correct me if I'm overlooking existing functionality or ongoing work that already addresses this.
Proposed architectural direction
I've investigated architectural ideas from Gas City, Gas Town, and OpenAI Symphony.
The approach that currently looks most promising is a lightweight coordinator that reuses ProPR as its execution substrate, rather than implementing another agent runtime or task queue.
The coordinator would combine two elements:
AI engineering judgment
Interpret objectives and decompose plans.
Identify requirements and technical dependencies.
Evaluate implementation results.
Investigate unexpected failures.
Propose repairs and plan amendments.
Determine when human input is genuinely needed.
Deterministic supervision
Maintain the adopted work graph and its revisions.
Enforce dependency and capacity constraints.
Prevent duplicate dispatch.
Reconcile actual task/PR state against expected state.
Preserve action and recovery history across restarts.
Enforce verification and authorization requirements.
Detect stalls and apply bounded recovery policies.
ProPR would remain responsible for execution.
I do not want to introduce a competing worker queue, Docker/worktree manager, GitHub executor, or redundant agent infrastructure.
However, I'm not committed to a companion-service architecture if a native ProPR integration would be cleaner and more appropriate.
Architecture questions for the maintainers
I'd particularly appreciate guidance on the following decisions.
- Native feature or companion service?
Would you prefer this capability to be:
A. Integrated into ProPR: An optional coordinator subsystem reusing ProPR's existing services, database, APIs, and worker infrastructure.
B. An official companion service: A separately running coordinator using ProPR's REST/MCP interfaces.
C. An extension of Goals and Automations: Expanding the existing functionality rather than introducing a distinct coordinator.
My initial preference is a portable coordinator core with a narrow ProPR integration boundary, allowing the implementation to evolve toward whichever deployment model you consider appropriate.
Is autonomous, dependency-aware engineering coordination something you envision as part of ProPR itself?
- Persistence and database ownership
ProPR already uses SQLite through Knex and better-sqlite3.
For an integrated coordinator, would you prefer coordinator-owned tables added through ProPR's existing migration system?
Alternatively, for a companion, would you prefer a separate SQLite database that could later be migrated into ProPR?
I'd like to maintain consistency with the existing stack and avoid unnecessary infrastructure.
The coordinator may need durable records for plan revisions, dispatch operations, retries, authorization decisions, and recovery. GitHub and ProPR would remain authoritative for engineering work and actual execution.
Where would you prefer that additional operational state to live?
- Goals and Planner Studio integration
Would you prefer to expand the existing orchestrated Goal mechanism to support deterministic coordination, or use Goals/Planner as planning components within a separate coordinator?
Ideally, I'd reuse existing planning and issue-generation facilities rather than create another implementation of them.
Are there internal service boundaries or planned extensions you would recommend building around?
- Dependency scheduling and integration
I'm particularly interested in supporting a dependency graph where independent tasks can run concurrently, while dependent tasks wait until their prerequisites are satisfied.
There is also the question of code availability: a downstream task may require changes from an upstream PR that has passed verification but hasn't yet been merged.
Would you prefer this to build on existing Epic execution, introduce a general dependency-DAG scheduler, or use another model for staged integration?
How do you envision managing dependencies where intermediate PRs aren't yet merged?
- Supported dispatch and status interfaces
For an external coordinator, I'd like to avoid depending on private database tables or queue internals.
Are ProPR's REST/MCP interfaces the intended integration boundary for long-running external orchestration?
In particular, I'd welcome guidance on the preferred supported mechanisms for:
Starting implementation of an existing GitHub issue.
Idempotent dispatch and interrupted-request recovery.
Inspecting replacement/retry task lineage.
Inspecting available agent/provider capacity.
Determining whether a PR is ready for integration.
If a small, generic API enhancement is necessary, I'd prefer contributing that independently.
- Authorization and safe autonomy
My intended default would allow autonomous planning, issue creation, execution, review, and routine repair within explicitly configured repository and cost limits.
Merges, deployments, destructive operations, and other higher-risk actions would remain controlled by explicit authorization policies.
Are there existing ProPR permission or capability models you would prefer the coordinator to reuse? Are there autonomy boundaries you would want preserved regardless of configuration?
- Preferred contribution strategy
Assuming this direction is interesting to the project, would you prefer:
A design document/RFC first?
Small generic API or state-management improvements before coordinator functionality?
A minimal vertical slice submitted as an experimental, optional feature?
A separately maintained companion implementation that can be evaluated before native integration?
I'd like to avoid submitting one enormous PR that is difficult to review.
I'm also happy to adapt the architecture to established conventions or upcoming roadmap work that may not yet be documented.
Proposed initial scope
If there's interest, I'd begin with a small, independently testable implementation:
One objective → several generated GitHub issues with dependencies → automatic eligible-task dispatch → ProPR implementation → CI/review verification → recovery and replenishment → evidence-backed objective completion.
The proof of correctness would include:
Restarting the coordinator without losing the adopted plan.
No duplicate task dispatch after interruptions.
Dependencies withheld until their required implementation is available.
Existing ProPR worker recovery respected.
Failed CI or review triggering bounded corrective work.
Completion determined from verifiable results rather than agent narration.
No changes to existing ProPR behavior when the coordinator is disabled.
I'd keep broader portfolio scheduling, complex multi-repository dependencies, additional UI, and advanced policies outside the initial contribution.
Motivation and maintenance
I intend to use this for sustained autonomous development across several repositories and coding-agent providers, so I'm motivated to maintain and test it over time.
If the feature doesn't fit ProPR's product direction, I can maintain it separately using supported interfaces. However, I'd much rather align the design with upstream from the beginning and contribute reusable improvements that benefit other ProPR users.
I'm not asking for a commitment to accept a future PR. I'm asking for architectural guidance before implementing something substantial.
Would this capability fit ProPR's intended direction? If so, which architecture and contribution boundaries would you prefer?
Thanks for any guidance, including pointing me toward existing work that I should reuse instead.
Activity
integry commentedon Nov 2, 2026
Thanks, Dan. This is a thoughtful RFC, and you've read the current architecture correctly. Here's where we'd like to take it.
Short version: we'll strengthen the deterministic primitives in ProPR itself for the next release. The coordinator's judgment layer (breaking down objectives, recovery strategy, deciding when to involve a human) should be built on top of those primitives. Once real usage shows which parts are generally useful, we can bring the more opinionated orchestration pieces upstream.
Why we're splitting it this way
Dependency-aware scheduling, enforced concurrency, no duplicate dispatch and surviving restarts are useful well beyond fully autonomous setups. Anyone who publishes a plan with ordering needs them. They also have to live inside ProPR: an external coordinator reads state, decides, then dispatches, and those steps can't be atomic. ProPR can do them atomically, since the epic queue already advances with a compare-and-set and repository concurrency uses a Redis slot.
The judgment layer varies a lot between teams. ProPR already has flexible hosts for it: orchestrate goals, agent definitions and automations, plus the REST, MCP and CLI surfaces. We'd rather not ship one fixed coordinator before we know which defaults are right.
Answers to your questions
goal_events,goal_blockersand goal artifacts may already cover most of it.Planned primitives for the next release
dependsOnin the plan schema), synced to GitHub as "blocked by" and sub-issue links when a plan is published.max_parallellimit enforced in code, and start new ones as tasks finish.You'd be welcome to take on any of these, and dependency edges plus graph scheduling would be a great place to start. Your coordinator built on top would be the best test of whether the primitives are right. Once it's running, we'd love to hear which parts turned out generic enough to bring upstream.
Your proposed proof of correctness (restart safety, no duplicate dispatch, dependencies withheld until available, bounded corrective work, completion based on verifiable results, no change when disabled) is the right acceptance bar, and we'd apply it to the primitives too.
integry commentedon Nov 20, 2026
Hi Dan, an update on the primitives we listed: all four shipped in 0.9.2 (current release is 0.9.3).
dependsOn. On publish, each issue is linked on GitHub as "blocked by" its prerequisites.epicExecution: "graph"and optionallymaxParallel(MCPimplement_planor the REST implement route). An issue starts once every prerequisite is merged into the epic branch, and the limit is enforced in code. Sequential remains the default.plan.issue_blockedand runs once per blocked queue issue, at most three times per issue, also across restarts. Queue issues can be skipped or retried.GET /api/pull-requests/:number/readiness, MCPget_pull_request_readiness,propr pr readiness. One verdict with coded reasons, no side effects.GET /api/repository-eventsand/wait, MCPlist_repository_events/wait_repository_events,propr events. Ordered, at-least-once, from a cursor.firstTaskId/latestTaskIdon submissions, alineageobject on tasks, and an "Idempotency and retries" section in the MCP docs.get_agent_run_admission, including the per-agent ceilings from Add optional per-agent concurrency ceilings alongside the global admission limit #3386.One thing from my earlier reply is not done: an orchestrate goal cannot yet hand a dependency graph to the scheduler, so a goal's max parallel tasks is still enforced by the agent, not in code. For now a coordinator gets enforced scheduling by publishing a plan and starting it in graph mode.
That should be enough to build the coordinator on public interfaces only. If you try it, the most useful feedback would be which state you still had to keep yourself, and where you had to poll instead of waiting on events.
DanielLemoine commentedon Nov 20, 2026
Thanks for the update, Rinalds. I stopped the private ProPR implementation and went ahead with a separate Coordinator on top of ProPR. So far it’s completed both cross-provider paths: Claude writes and Codex reviews, and Codex writes and Claude reviews. I also got a run where the review caught real issues, the fix produced a new commit, and that exact head was re-reviewed, passed CI, and merged through ProPR.
The published-plan graph mode is the part I’d like to try next. I haven’t validated it in those pilots. I’d like ProPR to own dependency scheduling, with the Coordinator handling my review and merge policies. Today the Coordinator keeps a local journal for pending actions and for reconciling outcomes after an interruption. Once I’ve tried graph mode and the repository events, I can give you a better answer on which state the Coordinator still needs to own and where it still has to poll.