Skip to content

API Reference parrot.flows.dev_flow.definition

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.flows.dev_flow.definition

View source

Declarative dev-flow topology (FEAT-412).

Authors the dev-flow graph as a :class:FlowDefinition — the reference/validation/visualization source. Actual execution happens in the engine's explicit-edge mode (build_dev_flow in flow.py re-declares every edge imperatively) because the graph contains OR-joins the from_definition AND-join scheduler cannot fire:

  • planner has TWO predecessors — dev_intake (a feature intake whose document already exists) and ideation (a natural-language intake whose document was just written).
  • feature_handoff has two (qa on pass, feedback_router on accept_with_notes) and failure_handler is the on-error fan-in.

Same engine limitation documented in dev_loop/definition.py.

Topology (spec §2 Component Diagram)::

dev_intake ─(enhancement|new_feature)→ ideation ─┐
     └──────(feature)─────────────────────────────┤
                                                  ▼
planner → development → synthesis → qa ─(passed)→ feature_handoff → close
                ↑                    │                  ▲
                └─(retry, bounded)───┤                  │
                                     ▼                  │
                              feedback_router ──(accept_with_notes)
                                     ├─(escalate)→ failure_handler
                          (+ on_error fan-in from every middle node)

Everything from planner onward is byte-identical in behavior to the FEAT-378 feature-mode graph: the same reused dev_loop.* node types, the same CEL predicates (imported, not re-spelled, so the two graphs cannot silently drift), and the same bounded repair loop — whose stop rule lives in FeedbackRouterNode._retry_allowed(), not on the edge.

This module is pure: no env reads at import time.

Function build_dev_flow_definition

Return the declarative dev-flow :class:FlowDefinition.

build_dev_flow_definition() -> FlowDefinition

Returns: FlowDefinition — The flow="dev-flow" definition: 10 nodes (the 2 dev-flow intake nodes + the 8 reused dev_loop nodes) and the edge set of spec §2. Deliberately absent: bug_intake, research, deployment_handoff, revision_handoff and intent_classifier — dev-flow front-loads no operations concerns.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally