plateprocess.dev · PLATE release v0.12.0

What Next Mcp Orchestrator And Process Encoding

What Next? MCP — Orchestrator Vision, Contract, Live State, and Static Flow Strategy

Research Goal

Resolve key decisions and produce recommendation record for plate_what_next MCP (incorporating orchestrator vision from #282 kickoff Q&A). Survey process surface + state signals; recommend contract (name, inputs/outputs, encoding); explicit feed to Design #284 (schemas/tree/integration) and Feature #285 (v1 scope, tests, dogfood); commit artifact per Research rules.

Research Path / Sources

(Primary sources prioritized; batch reads/greps for efficiency; no invention of new process rules.)

Survey Summary (PLATE Process Surface Area + Current Assets)

Core Process (from AGENTS Required Work Loop + rules):

Current Agent Prompt Assets:

Live State Signals (queryable, cheap to add):

(Prefer live queries inside MCP for freshness + small caller payloads; accept config/context hints (repo, issue/epic ref, task_type, prior_state, extra).)

Recommendations (for Design #284 + Feature #285 + Epic #282)

Tool name/family: plate_what_next (per Q&A resolutions + catalog consistency with plate_* pattern; supporting internals like plate_get_role_prompt or _what_next if needed; not plate_next_step_for unless justified).

State query strategy: Live queries inside impl (health for labels/epics/goals/questions/curiosity/plate_config; epic_status for children/milestones; release_status for fragments/Next Release/tracks; direct GitHub for labels/children/linked/PR state; local FS for .agentic/unreleased/.plate/markers/Goals/wiki if cloned; compose curiosity for Questions). Accept minimal config from caller (repo/issue/task_type/prior_state/hints). Small payloads. Snapshot returned for transparency. Graceful on incomplete (fallback + note).

Output shape (per Epic desired + Q&A): dict with:

Encoding of the "chart" for v1: Static code (Python decision tree / tables / ruleset in mcp_server.py or dedicated mcp/what_next.py; clear, inspectable, versioned with AGENTS.md in git; testable with unit + golden-path examples per ACs). High-fidelity on existing documented process (surface AGENTS/SPEC exactly; do not invent). Use references + citations rather than duplicating full text (to ease drift maintenance). Structure by role x phase/state (e.g. implementer + open Feature child with no tests → "add/update tests first per AGENTS Feature step 3", with prompt_snippet, required artifacts, refs). Cover primary flows per Epic (Epic planning, Feature/Bug loop, Research/Design closure, PR babysit, Release cut, Q&A/contemplation) + cross (labels/fragments at right times, ceremonies). Full "entire PLATE" ambitious — phase v1 (high-value first per this + #286 inventory); note gaps. Future: data-driven (e.g. .plate/process-flow.yml or wiki-sourced with validator/linter) after v1 proves value + drift guards.

Orchestrator vs direct use (per vision + Q&A): Primary mental model = orchestrator (queue of tasks; feed (agent_type e.g. "implementer"|"planner"|"researcher", config={repo, issue/epic ref?, task_type, prior_state, extra}) to MCP; receives full templatized prompt = base from catalog + PLATE snippet; spawns specialized agent; handles "OK, what now?" callbacks as structured MCP). Supports direct agent use (self-guidance before/while tasks to reduce re-teaching). Both benefit from same primitive. Examples in catalog/guidance (orchestrator: "spawn implementer for Feature on #N"; direct: "call what_next for my next step").

Integration points:

Drift guards: Comments in code linking sections of AGENTS.md/SPEC/designs; tests that enumerate/assert coverage of key flows from #286 inventory (golden paths); on process change (fragments required), update both encoded logic + sources (with review). Later: generated-from or linter. No drift between what_next and docs.

v1 scope / prioritization (for Feature #285): High-fidelity static on primary (Epic/Feature/Bug work loops + labels/fragments/PR rules; Research/Design closure; PR babysit; Release status/cut/fundamentals; Q&A/contemplation hooks; bootstrap/health entry; graceful for others). Deliver "entire PLATE as exists today" to max achievable in static without bloat. Defer full edges/CLI (per planning: v1 MCP-only; thin gh plate if data warrants later). Dogfood on #282 + at least one other (e.g. during beta work). Tests in test_mcp.py (or new) + manual.

Other recs from Q&A (recorded in parent #282):

Handoff:

Risks / Open (align with Epic):

This Research artifact + companion #286 exhaustive provide the foundation. Commit, coordinate with siblings, update parent #282, prepare Doc PR(s) with Closes #283 (ref #282), post summary comment + usage report on #283 before close. (See #286 for full enumerated flows to encode.)

(Produced autonomously from primary sources + Epic Q&A; ready for refinement via user input / Design child.)