Skip to content

API Reference parrot.knowledge.wiki.procedure.models

github-actions[bot] edited this page Dec 2, 2026 · 1 revision

parrot.knowledge.wiki.procedure.models

View source

Procedure graph models (FEAT-891).

Attribute EDGE_FIELDS

Type: dict[str, str]

Attribute EdgeRel

Class ExecutorRef

An inert v1 reference to an executable procedure implementation.

Fields:

Field Type Default Description
kind Literal['flow', 'crew', 'command']
ref str

Attribute GuardKind

Class GuardSpec

A command guard associated with a procedure.

Fields:

Field Type Default Description
kind GuardKind
executable str
argv_prefix list[str]
path_globs list[str]
scope dict[str, ScopeArg]

Attribute INDEX_FILE

Attribute INDEX_SCHEMA_VERSION

Attribute PLANE_DIR

Class ProbeCheck

A registered probe and its expected value.

Fields:

Field Type Default Description
probe str
expect bool | str True
args dict[str, str]

Attribute ProbeCost

Class ProbeResult

The outcome of evaluating one probe check.

Fields:

Field Type Default Description
check ProbeCheck
value bool | None
cost ProbeCost
detail str ''

Attribute ProcedureKind

Class ProcedureManifest

A producer graph and its procedure specifications.

Fields:

Field Type Default Description
schema_version Literal[1] 1
graph str
exclude list[str]
procedures list[ProcedureSpec]
uncovered_ok list[str]

Attribute ProcedureMode

Attribute ProcedureSource

Class ProcedureSpec

One procedure node, independent of how the procedure is implemented.

Fields:

Field Type Default Description
id str
title str
kind ProcedureKind
mode ProcedureMode 'advisory'
source ProcedureSource 'authored'
command str ''
intents list[str]
applies_to list[str]
scope_kind Literal['repo', 'feature', 'task'] 'feature'
preconditions list[ProbeCheck]
done_when list[ProbeCheck]
requires_procedures list[str]
requires_facts list[str]
requires_tools list[str]
next list[str]
alternative_to list[str]
escalates_to list[str]
on_failure list[str]
learned_from list[str]
guards list[GuardSpec]
use_instead str ''
executor ExecutorRef | None None
confirm bool False
advice str ''
body str ''
origin_path str ''

Method ProcedureSpec.edges

Return (src, dst, rel) for every id listed in an edge field.

applies_to targets are entity type names and are returned as type:<Name>.

edges() -> list[tuple[str, str, str]]

Returns: list[tuple[str, str, str]]

Class Resolution

Procedures applicable to a resolved feature or task scope.

Fields:

Field Type Default Description
scope dict[str, str]
stale bool
next list[ResolvedProcedure]
mandatory list[ProcedureSpec]

Class ResolvedProcedure

A procedure enriched with probe results and readiness state.

Fields:

Field Type Default Description
spec ProcedureSpec
done bool | None
ready bool
preconditions list[ProbeResult]

Class ScopeArg

Where a guard reads one scope value from a command line.

Fields:

Field Type Default Description
argv int | None None
flag str | None None

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