Skip to content

API Reference parrot.flows.dev_loop.nodes.close

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

parrot.flows.dev_loop.nodes.close

View source

DevLoopCloseNode — terminal node that records a run's final state.

Implements Module 10 of the FEAT-250 dev-loop refactor (G7). A pure AI-Parrot node (no Claude Code dispatch) that posts a Jira summary comment and transitions the ticket, then returns a terminal status dict. Used on both the initial path (after DeploymentHandoffNode) and the revision path (after RevisionHandoffNode); the transition label branches on a shared["mode"] flag set by the runner (defaults to "initial" when absent).

Like the other terminal nodes (FailureHandlerNode), it MUST NOT raise: Jira-side errors are logged and surfaced as a degraded status dict.

Class DevLoopCloseNode

Terminal node — Jira summary comment + transition, then end the flow.

Parameter Type Default Description
jira_toolkit Any
name str 'close'
graph_memory Optional[DevLoopGraphMemory] None

Method DevLoopCloseNode.execute

Record the run's final state on Jira. Never raises.

Reads research_output (for the issue key + feature id), qa_report, and any deployment/revision result from shared state, posts a summary comment, transitions the ticket based on shared.get("mode", "initial"), and returns a terminal status.

execute(ctx: Union[FlowContext, Dict[str, Any]], deps: Optional[DependencyResults] = None, **kwargs: Any) -> Dict[str, str]

Parameter Type Default Description
ctx Union[FlowContext, Dict[str, Any]]
deps Optional[DependencyResults] None
**kwargs Any {}

Returns: Dict[str, str] — {"status": "closed", "issue_key": ..., "mode": ...} on success, {"status": "closed_without_ticket", ...} when no Jira issue exists or the run is under skip_jira, or {"status": "close_failed", "error": ...} when a Jira call raises.

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