Skip to content

API Reference parrot.flows.dev_flow.flow

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

parrot.flows.dev_flow.flow

View source

Executable dev-flow builder (FEAT-412).

Mirrors build_dev_loop_feature_flow's declarative-materialize-then-explicit-edge pattern (dev_loop/runner.py): the nodes come from :func:build_dev_flow_definition through the dev-flow factories, then every edge is re-declared imperatively because the graph's OR-joins (planner from two intakes, feature_handoff from two predecessors, the failure_handler fan-in) cannot be fired by the from_definition AND-join scheduler.

The routing predicates for the reused chain are imported from dev_loop.flow rather than re-implemented, so the dev-flow and feature-mode graphs cannot silently diverge.

Function build_dev_flow

Build the executable dev-flow :class:AgentsFlow.

Topology: dev_intake -(enhancement|new_feature)-> ideation -> planner (or dev_intake -(feature)-> planner directly) -> development -> synthesis -> qa -(passed)-> feature_handoff -> close; QA failure -> feedback_router -(escalate)-> failure_handler / -(accept_with_notes)-> feature_handoff / -(retry)-> development (bounded in FeedbackRouterNode._retry_allowed()).

build_dev_flow(*, dispatcher: Any, redis_url: str, jira_toolkit: Any | None = None, git_toolkit: Any | None = None, wiki_toolkit: Any | None = None, codereview_dispatcher: Any | None = None, development_dispatcher_builder: Any | None = None, development_pool_max: int = 4, graph_memory: Any | None = None, wiki_search: Any | None = None, skip_qa: bool = False, require_plan_approval: bool = False, ideation_max_rounds: int | None = None, model_plan: DevFlowModelPlan | None = None, research_coordinator: Any | None = None, research_mcp_servers: dict[str, Any] | None = None, research_mcp_tools: list[str] | None = None, name: str = 'dev-flow', publish_flow_events: bool = True, lifecycle_events: bool = True, checkpoint: bool = False, checkpoint_required: bool = False, checkpoint_store: str | CheckpointStore | None = None, flow_id: str | None = None) -> AgentsFlow

Parameter Type Default Description
dispatcher Any Shared ClaudeCodeDispatcher for ideation and the reused planner/synthesis/QA/feedback nodes.
redis_url str Redis URL for intake/flow-lifecycle events.
jira_toolkit Any | None None Optional JiraToolkit — link-only, never created.
git_toolkit Any | None None Optional GitToolkit (parity with the ops flows).
wiki_toolkit Any | None None Optional LLMWikiToolkit for the handoff's docs ingest.
codereview_dispatcher Any | None None Optional review dispatcher for QANode.
development_dispatcher_builder Any | None None Optional dev-agent pool builder.
development_pool_max int 4 Hard cap on pool workers.
graph_memory Any | None None Optional DevLoopGraphMemory.
wiki_search Any | None None Optional DevLoopWikiSearch — repo context for ideation and the reused nodes that accept it.
skip_qa bool False Forwarded to the reused QA factory.
require_plan_approval bool False Build-time default for the plan_approval gate; a per-run extra_shared["require_plan_approval"] overrides it (FEAT-412 / TASK-2123).
ideation_max_rounds int | None None Override for conf.DEV_FLOW_IDEATION_MAX_ROUNDS.
model_plan DevFlowModelPlan | None None FEAT-486 — per-seat LLM configuration (:class:~parrot.flows.dev_flow.model_plan.DevFlowModelPlan). None (default) preserves today's wiring exactly. A plan whose dev_pool is non-empty deploys that many development sub-agents through agent_builder.build_dispatcher; an explicit development_dispatcher_builder still wins over the plan-derived one.
research_coordinator Any | None None Optional ComplementaryResearchCoordinator (FEAT-482/486) for the ideation seat; an explicit value wins over model_plan's research_partner group. None (default) keeps the factories' precedence untouched.
research_mcp_servers dict[str, Any] | None None Optional EXTRA MCP server configs for the ideation dispatch (e.g. FEAT-485 parrot mcp-local toolkit servers), merged under the built-in wikitoolkit entry. None (default) keeps the dispatch byte-identical.
research_mcp_tools list[str] | None None Optional explicit mcp__... allow rules for those extra servers; None derives server-level mcp__<name> rules.
name str 'dev-flow' Flow name (default "dev-flow").
publish_flow_events bool True When True (default), attach a :class:FlowEventPublisher to the engine's on_node_event hook.
lifecycle_events bool True When True (default), also attach a :class:parrot.bots.flows.flow.telemetry.FlowLifecycleAdapter (FEAT-479).
checkpoint bool False FEAT-480 — enable AgentsFlow state checkpointing. False (default) is byte-identical to pre-FEAT-480 behavior.
checkpoint_required bool False FEAT-480 — when True (with checkpoint), the scheduler awaits a required checkpoint write after every successful node before routing downstream (TASK-2624).
checkpoint_store str | CheckpointStore | None None FEAT-480 — ephemeral CheckpointStore name/ instance/None (env fallback). Ignored when checkpoint is False.
flow_id str | None None FEAT-480 — stable per-run checkpoint identity (typically "dev-flow/<run_id>", minted by DevCheckpointCoordinator). Ignored when checkpoint is False.

Returns: AgentsFlow — A wired :class:AgentsFlow ready to run_flow().

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