Skip to content

API Reference parrot.tools.execution_plan.store

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

parrot.tools.execution_plan.store

View source

PlanFileStore — versioned plans_dir loader for plan_name mode.

A plan file is a git-diffable, versioned document (the daily Security Advisory pipeline's use case). Per-run parameters use {params.<name>} placeholders substituted at load time, before ExecutionPlan.model_validate() — the frozen executor (PlanToolNode._resolve_args) resolves exactly three runtime placeholder families ({nodes.<id>.output}, {artifacts.<id>}, {item}/{item.<field>}/{index}) and must never be extended for a fourth. See spec §3 Module 3.

Class PlanFileStore

Resolves plans_dir/<name>.(yaml|yml|json) and applies params.

Parameter Type Default Description
plans_dir Path Directory to resolve plan names against.

Attributes:

Attribute Type Description
plans_dir Directory containing versioned plan files.

Method PlanFileStore.load

Load, parameterise and validate a plan file.

load(plan_name: str, params: Optional[Dict[str, Any]] = None) -> ExecutionPlan

Parameter Type Default Description
plan_name str Base filename (without extension) under plans_dir.
params Optional[Dict[str, Any]] None Values for every {params.<name>} placeholder in the file. Every referenced name must be supplied and every supplied name must be referenced — nothing silent.

Returns: ExecutionPlan — The validated :class:ExecutionPlan.

Raises:

  • PlanLoadError — Unknown plan name, missing/unused params, or a validation failure after substitution.

Class PlanLoadError

Raised when a plan file cannot be resolved, parsed or parameterised.

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