plateprocess.dev · PLATE release v0.12.0

Pm Orchestrator Architecture And Browser

PM/Orchestrator Architecture and Browser Surface — Design Spec

Overview

The Project Manager (PM) / Orchestrator is emerging as a potential core deliverable for v1.0.0: a long-running system that orchestrates autonomous work, serves a unified Q&A API, coordinates a team of specialized sub-agents (with personas), keeps work within budget, and enables future surfaces like a browser dashboard. It builds on existing PLATE components while providing the "endlessly feeds Questions and Tasks" experience at scale.

GitHub remains the single source of truth. The PM polls "What's Next?", assigns via personas, handles real-time via webhooks, and surfaces via feed/API.

Architecture

Core Components

Integration

Personas / Sub-Agents

Example delegation: PM prompt to sub-agent: "Using [Persona] guidelines, handle [task] for Epic #E. Budget remaining: X. Use simulation if risk > low. Report back with artifacts and usage."

API OpenAPI Sketch (PM endpoints)

openapi: 3.0.0
info:
  title: PLATE PM API
  version: 1.0.0
paths:
  /pm/feed:
    get:
      summary: Get prioritized feed
      parameters:
        - name: filter
          in: query
          schema:
            type: string
            example: "driver:agent"
      responses:
        '200':
          description: List of items
          content:
            application/json:
              example: [{"id": 123, "type": "Question", "title": "...", "driver_label": "agent", "cost_est": 1200, "suggested_subagent": "Researcher"}]
  /pm/answer:
    post:
      summary: Submit Q&A answer
      requestBody:
        content:
          application/json:
            example: {"question_id": 456, "answer_text": "Value prop is X", "source": "browser"}
      responses:
        '200':
          description: Updated with usage
  /pm/task/complete:
    post:
      summary: Complete or delegate task
  /pm/status:
    get:
      summary: Project status (budget, score, driver counts)
  /pm/issue/{id}:
    get:
      summary: Issue state + history + driver
  /pm/driver/set:
    post:
      summary: Set driver label (human override)

Auth via GitHub OAuth/token. Rate limits, error codes (e.g., 429 BudgetExceeded).

Sequence Diagrams (text/Mermaid examples)

Epic Flow via PM:

User/Feed -> PM: Epic #E ready
PM -> plate_what_next: poll
PM -> SubAgent(Planner): break down
SubAgent -> PM: children stubs + budget split
PM -> Feed: surface "Breakdown ready? Budget 20%"
User -> PM: approve
PM -> SubAgent(Dev1): implement feature A (Cautious persona)
PM -> SubAgent(Designer): visuals (Creative)
... parallel ...
PM -> Simulation: for risky part
PM -> Feed: checkpoint "Designs + sim ready?"
User -> PM: approve
SubAgents -> PM: artifacts, usage
PM -> GitHub: PRs, updates
PM -> Feed: "Epic #E ready for close"

Webhook Real-time:

GitHub Webhook (label change to driver:agent) -> PM
PM -> Queue: update task
PM -> plate_what_next: re-eval
PM -> SubAgent: delegate if fits
PM -> Feed: notify "New task assigned"

Risk Mitigations

See #660, #661, #654 for stubs/stories. This doc expands on Q&A refinements for design.