Skip to content

API Reference parrot.flows.dev_loop.nodes.revision_handoff

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

parrot.flows.dev_loop.nodes.revision_handoff

View source

RevisionHandoffNode — push to the existing branch + comment the same PR.

Implements the handoff half of Module 9 (FEAT-250 G6). On the revision path (a reviewer asked for changes on a draft PR), this terminal-ish node:

  1. git push to the existing feature branch (subprocess, mirroring DeploymentHandoffNode._push_branch), and
  2. git_toolkit.add_pr_comment(pr_number, …) on the same PR.

It MUST NOT call create_pull_request — the revision loop updates the existing draft PR, it never opens a new one. Like the other terminal nodes it never raises: failures degrade to a structured status dict.

Class RevisionHandoffNode

Revision-path handoff — push existing branch + comment existing PR.

Parameter Type Default Description
git_toolkit Any
name str 'revision_handoff'

Method RevisionHandoffNode.execute

Push the revised branch and comment on the same PR. Never raises.

Reads repo_path/branch/pr_number/repository/feedback from the shared state (seeded by DevLoopRunner.run_revision). Marks shared["mode"] = "revision" for the close node.

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

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

Returns: Dict[str, Any] — {"status": "revised", "pr_number": int, "branch": str} on success, or {"status": "blocked"/"comment_failed", "error": ...}.

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