Skip to content

API Reference parrot.flows.dev_loop.definition

github-actions[bot] edited this page Nov 10, 2026 · 4 revisions

parrot.flows.dev_loop.definition

View source

Declarative dev-loop topology — FlowDefinition authoring (FEAT-250 G1).

This module expresses the dev-loop graph declaratively as a :class:FlowDefinition (nodes + edges), replacing the imperative wiring that used to live inline in :func:parrot.flows.dev_loop.flow.build_dev_loop_flow. The node types are the dev_loop.* types registered via @register_node on each node class; the live dependencies are injected at materialization time by :func:parrot.flows.dev_loop.factories.build_dev_loop_node_factories.

Routing predicates are expressed as CEL strings on on_condition edges. cel_evaluator coerces a Pydantic node result via model_dump(), so result.kind (WorkBrief) and result.passed (QAReport) resolve exactly as the legacy Python callables (_is_bug / _qa_passed …) did.

Execution note (engine limitation). The graph below merges the bug and non-bug paths at research — an OR-join. The engine's from_definition scheduler uses an AND-join (a node spawns only when all its predecessors completed), which cannot fire research when the bug_intake branch is skipped. The dev-loop therefore executes in the engine's explicit-edge mode (OR-join + skip-propagation) — see flow.build_dev_loop_flow. This module remains the single declarative source of the topology (used for materialization, validation, the parity test, and visualization).

Function build_dev_loop_definition

Return the declarative dev-loop :class:FlowDefinition.

revision and feature mirror the same boolean-flag shape (FEAT-378 extends FEAT-250's revision: bool precedent rather than introducing a mode enum) so the two pre-existing topologies (the default bug/enhancement/new_feature graph and the revision graph) stay byte-identical — this function only gained a new early-return branch, nothing in the default/revision=True bodies changed.

build_dev_loop_definition(*, revision: bool = False, feature: bool = False) -> FlowDefinition

Parameter Type Default Description
revision bool False When True, return the short revision-mode graph (entering at development and ending at the revision handoff/close).
feature bool False When True, return the feature-mode graph (FEAT-378): entering at intent_classifier (routed by kind=="feature") through planner/development/synthesis/qa/ feedback_router/feature_handoff. Mutually exclusive with revision — revision wins if both are True.

Returns: FlowDefinition — A validated initial-run FlowDefinition reproducing the FEAT-132 routing plus the new terminal close node (default), the FEAT-250 revision graph (revision=True), or the FEAT-378 feature-mode graph (feature=True).

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