Skip to content

API Reference parrot.knowledge.wiki.procedure.index

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

parrot.knowledge.wiki.procedure.index

View source

Compiled procedure index: one JSON file, published atomically (FEAT-891).

Alias INDEX_FILE

Re-exported from parrot.knowledge.wiki.procedure.models.INDEX_FILE.

Alias INDEX_SCHEMA_VERSION

Re-exported from parrot.knowledge.wiki.procedure.models.INDEX_SCHEMA_VERSION.

Alias ProbeCost

Re-exported from parrot.knowledge.wiki.procedure.models.ProbeCost.

Alias ProcedureSpec

Re-exported from parrot.knowledge.wiki.procedure.models.ProcedureSpec.

Function compile_index

Return the index document; 'generation' is the sha1 of its canonical JSON.

compile_index(specs: Sequence[ProcedureSpec], sources: Sequence[Path], *, root: Path, probe_costs: Mapping[str, ProbeCost], skill_dirs: list[str] | None = None) -> dict[str, Any]

Parameter Type Default Description
specs Sequence[ProcedureSpec] Procedure specifications, in order.
sources Sequence[Path] Manifest files the specs were built from.
root Path Repository root that source paths are made relative to.
probe_costs Mapping[str, ProbeCost] Probe name to cost; an unknown probe is treated as remote.
skill_dirs list[str] | None None

Returns: dict[str, Any] — The index document including its generation key.

Function is_stale

True when document is None, a listed source is missing or its sha1 differs, or a manifest under sdd/procedures is not listed.

is_stale(document: Mapping[str, Any] | None, *, root: Path) -> bool

Parameter Type Default Description
document Mapping[str, Any] | None
root Path

Returns: bool

Function publish_index

Write procedures.json via a temp file in plane_dir + os.replace; return the path.

publish_index(plane_dir: Path, document: Mapping[str, Any]) -> Path

Parameter Type Default Description
plane_dir Path
document Mapping[str, Any]

Returns: Path

Function read_index

Return the document, or None when absent, unreadable or of another schema version.

read_index(plane_dir: Path) -> dict[str, Any] | None

Parameter Type Default Description
plane_dir Path

Returns: dict[str, Any] | None

Alias skill_directories

Re-exported from parrot.sdd.scripts.procedure_sources.skill_directories.

Alias source_paths

Re-exported from parrot.sdd.scripts.procedure_sources.source_paths.

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