plateprocess.dev · PLATE release v0.12.0

What Next Mcp Exhaustive Flows

What Next? MCP — Exhaustive Flows Enumeration

Research Goal

Exhaustively enumerate every flow, ceremony, decision point, required artifact, label/state transition, agent role, and MCP/tool sequencing that plate_what_next must recognize to deliver the full current PLATE process (per AGENTS.md, .agentic/ files, SPEC, code) without requiring full re-ingestion or drift. Primary artifact for v1 static encoding in the MCP (and handoff to siblings).

Research Path / Sources Surveyed

(Full greps/reads performed; see code comments and prior sessions for traces. Focused on primary sources to avoid drift.)

Categorized Inventory of Flows, Ceremonies, States, Roles, Artifacts, Signals

1. Issue Type Work Loops (AGENTS Required Work Loop)

2. Ceremonies

3. Cross-Cutting Rules & Transitions

4. Agent Roles / Orchestrator Contexts

5. MCP / Tool Surfaces & Sequencing

6. State Detection Signals (queryable live or cheap)

7. Escalation, Autonomous, Prohibited, Human Checkpoints

Decision Matrix / Flow Encoding Recommendations (v1 Static)

v1: Static Python decision tree / tables in mcp_server.py or dedicated what_next.py (inspectable, versioned with AGENTS.md, testable via unit + golden paths, no LLM invention of rules). Encode as if/elif or dict[role][phase/state] → {action, rationale_ref (AGENTS section), prompt_snippet (PLATE instructions to concat to base_role from catalog), required_artifacts, branches (e.g. ask_user), done: bool}.

Prioritize high-value for v1 (per planning: Epic planning, Feature/Bug loop, Research/Design closure, PR babysit, Release cut, Q&A/contemplation; deliver "entire PLATE as exists today" to max in static). Graceful for incomplete state (fallback to health/epic_status + "inspect manually").

Example skeleton (expand from current _what_next + survey):

Handoff to Design #284: Use this inventory for full decision tree encoding (tables or ruleset traceable to AGENTS sections); define exact schemas (see Epic Q&A resolutions for input/output); drift guards (tests asserting coverage of listed flows + links in code/comments to AGENTS; later linter/generated?); integration with plate_plan_epic (subroutine), agent_guidance (inject instructions), baseline skills/catalog (examples for orchestrator spin-up + direct).

For #283 contract recs: plate_what_next (name per planning); live state + hints; output {status, next: {instructions (prompt_snippet), steps, artifacts, refs, done}, snapshot, error?}; static code encoding; read-only; v1 high-fidelity on existing (phased for full).

Current Status & Recommendations

This fulfills the Research goal for #286 (and feeds #283). Open Documentation PR(s) with Closes #286 (and #283); post summary + usage on the Research issue(s) before close; update parent #282 session state / Epic body.

(Exhaustive but focused on primary; further iterations can add SPEC/code specifics or edge cases from fragments.)