Skip to content

API Reference parrot.knowledge.wiki.experience.transitions

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

parrot.knowledge.wiki.experience.transitions

View source

Shared stdlib-only pairing, evidence and advice transitions.

Alias CommandOutcome

Re-exported from parrot.knowledge.wiki.experience.models.CommandOutcome.

Alias append_event

Re-exported from parrot.knowledge.wiki.experience.fastpath.append_event.

Alias failure_signature

Re-exported from parrot.knowledge.wiki.experience.fastpath.failure_signature.

Alias is_repo_local_command

Re-exported from parrot.knowledge.wiki.experience.fastpath.is_repo_local_command.

Alias leading_command

Re-exported from parrot.knowledge.wiki.experience.fastpath.leading_command.

Alias lesson_id_for

Re-exported from parrot.knowledge.wiki.experience.fastpath.lesson_id_for.

Alias normalize_error

Re-exported from parrot.knowledge.wiki.experience.fastpath.normalize_error.

Function observation_digest

Return the occurrence digest a replay uses to build an <digest>#<n> observation id.

It hashes the same bounded command that :func:on_outcome links hook observations under, so a dispatcher replay of a command lines up with the hook observation of that command regardless of its length or secrets.

observation_digest(command: str) -> str

Parameter Type Default Description
command str Raw command text, exactly as the host reported it.

Returns: str — Hex SHA-1 digest of the redacted, whitespace-collapsed, capped command.

Function on_outcome

Apply one command observation atomically and return bounded advisory data.

on_outcome(plane_dir: Path, *, session: str, command: str, outcome: CommandOutcome, seat: str, matcher: Callable[[str, str, str], Mapping[str, Any] | None], limits: Mapping[str, Any] | None = None) -> str | None

Parameter Type Default Description
plane_dir Path Repository experience plane receiving append-only events.
session str Opaque session identity used for pairing and evidence.
command str Shell command reported by the host.
outcome CommandOutcome Duck-typed command result with ok, error and observation_id.
seat str Host seat recorded with generated events.
matcher Callable[[str, str, str], Mapping[str, Any] | None] Synchronous lookup against the published trigger map.
limits Mapping[str, Any] | None None

Returns: str | None — Escaped advisory text after a matching failure, or None.

Alias redact

Re-exported from parrot.knowledge.wiki.experience.fastpath.redact.

Alias update_session

Re-exported from parrot.knowledge.wiki.experience.fastpath.update_session.

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