Skip to content

API Reference parrot.sdd.stale

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

parrot.sdd.stale

View source

Stale SDD files: hand-copied, retired or no-longer-shipped files left in a repository (FEAT-795 M1).

Read-only: computes the stale set and the source-checkout guard; never writes or deletes.

Alias RECEIPT_PATH

Re-exported from parrot.sdd.installer.RECEIPT_PATH.

Attribute RECEIPT_ROOTS

Type: tuple[str, ...]

Attribute RETIRED_PATTERNS

Type: tuple[tuple[str, tuple[str, ...], str], ...]

Attribute SDD_PREFIX_DIRS

Type: tuple[tuple[str, tuple[str, ...]], ...]

Attribute SOURCE_CHECKOUT_MARKER

Alias SUPPORTED_HOSTS

Re-exported from parrot.sdd.installer.SUPPORTED_HOSTS.

Class StaleEntry

One stale file: repo-relative path, reason, human detail, symlink (never followed).

Fields:

Field Type Default Description
path str
reason StaleReason
detail str
symlink bool False

Attribute StaleReason

Function find_stale

Return stale SDD files for hosts, ordered by repository-relative path.

find_stale(root: Path, hosts: Sequence[str] = SUPPORTED_HOSTS) -> list[StaleEntry]

Parameter Type Default Description
root Path
hosts Sequence[str] SUPPORTED_HOSTS

Returns: list[StaleEntry]

Raises:

  • ValueError — If a requested host is unsupported.

Function has_symlinked_ancestor

Return whether a folder between root and rel_path (exclusive) is a symlink.

has_symlinked_ancestor(root: Path, rel_path: str) -> bool

Parameter Type Default Description
root Path
rel_path str

Returns: bool

Function is_safe_receipt_target

Return whether a receipt entry is a clean relative path inside a folder the installer writes to.

The receipt is committed to the repository, so it is untrusted input: absolute paths, ../. segments, backslashes and paths outside :data:RECEIPT_ROOTS are rejected.

is_safe_receipt_target(target: str) -> bool

Parameter Type Default Description
target str

Returns: bool

Function is_source_checkout

Return whether root is the ai-parrot monorepo.

is_source_checkout(root: Path) -> bool

Parameter Type Default Description
root Path

Returns: bool

Alias load_manifest

Re-exported from parrot.sdd.installer.load_manifest.

Alias load_receipt

Re-exported from parrot.sdd.installer.load_receipt.

Attribute logger

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