Skip to content

[RFC] Autonomous Engineering Coordinator — Architecture and Contribution Guidance #3385

Open

Description

@DanielLemoine

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.

  1. 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?

  1. 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?

  1. 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?

  1. 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?

  1. 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.

  1. 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?

  1. 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

  1. integry commented on Nov 2, 2026

    @integry
    Owner

    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

    1. Native, companion or extension: primitives go into ProPR natively, mostly by extending epic execution and goals (closest to your option C). The coordinator can run as an orchestrate goal, an agent definition or a companion service using public interfaces, whichever you prefer. Avoid relying on private tables or queue internals.
    2. Persistence: scheduling state (dependency edges, queue state) goes into ProPR tables through the existing Knex migrations. Coordinator-specific state belongs to the coordinator. If it runs as a goal, goal_events, goal_blockers and goal artifacts may already cover most of it.
    3. Goals and Planner: reuse them rather than reimplementing them. We plan to add a way for an orchestrate goal to hand a planned dependency graph to the scheduler. The concurrency limit, which today is only an instruction in the goal prompt, will then be enforced in code.
    4. Dependencies and unmerged work: we'll turn the epic execution queue from an ordered list into a dependency graph. The current sequential and parallel modes become the two edge cases: a chain, and a graph with no dependencies. The epic branch is the integration point for unmerged work: issue PRs merge into the epic branch, downstream issues branch from it, and "ready" means "prerequisite merged into the epic branch." That avoids stacked PRs.
    5. Integration boundary: yes, REST and MCP are the intended interfaces. Idempotent submissions and retry lineage already exist; we'll make sure both are exposed and documented. We'll add a single "ready to integrate" signal per PR (CI, review and Ultrafix state combined), change events you can subscribe to instead of polling, and capacity data the scheduler actually uses.
    6. Authorization: reuse the existing autonomy model (dry run, preview with approval, or auto), plus cost gates, scoped MCP grants and budget caps. One boundary holds regardless of configuration: merging into the default branch, deploying and destructive actions always need explicit approval.
    7. Contribution strategy: a short design note first, then small PRs, each useful on its own, with new behaviour off by default.

    Planned primitives for the next release

    1. Dependency edges on plan issues and epic queues (dependsOn in the plan schema), synced to GitHub as "blocked by" and sub-issue links when a plan is published.
    2. Graph-aware scheduling in the epic queue: compute which issues are ready, start up to a max_parallel limit enforced in code, and start new ones as tasks finish.
    3. A hook when a queue item gets blocked, so an automation or goal can react (Ultrafix, a replacement task, an escalation) instead of the queue simply stopping.
    4. The PR integration-readiness signal, change events and capacity data mentioned in answer 5.

    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.

  2. integry commented on Nov 20, 2026

    @integry
    Owner

    Hi Dan, an update on the primitives we listed: all four shipped in 0.9.2 (current release is 0.9.3).

    1. Dependency edges: plan tasks have stable ids and dependsOn. On publish, each issue is linked on GitHub as "blocked by" its prerequisites.
    2. Graph scheduling: start an epic with epicExecution: "graph" and optionally maxParallel (MCP implement_plan or 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.
    3. Blocked hook: an automation can subscribe to plan.issue_blocked and runs once per blocked queue issue, at most three times per issue, also across restarts. Queue issues can be skipped or retried.
    4. Integration signals:
      • Readiness: GET /api/pull-requests/:number/readiness, MCP get_pull_request_readiness, propr pr readiness. One verdict with coded reasons, no side effects.
      • Change events: GET /api/repository-events and /wait, MCP list_repository_events / wait_repository_events, propr events. Ordered, at-least-once, from a cursor.
      • Retry lineage and idempotency: firstTaskId / latestTaskId on submissions, a lineage object on tasks, and an "Idempotency and retries" section in the MCP docs.
      • Capacity: 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.

  3. DanielLemoine commented on Nov 20, 2026

    @DanielLemoine
    Author

    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.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions