Skip to content

API Reference parrot.sdd.experts_cli

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

parrot.sdd.experts_cli

View source

parrot sdd experts — advisory expert consultation on SDD documents (FEAT-890 M8).

Consultation is advisory: it never blocks and exits 0 when nothing matches.

Alias Contribution

Re-exported from parrot.experts.contributions.Contribution.

Alias Finding

Re-exported from parrot.experts.contributions.Finding.

Alias ScopeGrid

Re-exported from parrot.experts.grid.models.ScopeGrid.

Function consult

Run matching scopes' flows over a document and persist per-expert contributions.

consult(*, repo_root: Path, doc: Path, feature_id: str | None, registry: Any, scopes: dict[str, ScopeGrid]) -> list[Path]

Parameter Type Default Description
repo_root Path
doc Path
feature_id str | None
registry Any
scopes dict[str, ScopeGrid]

Returns: list[Path] — The contribution files written (empty when no scope matches).

Function consult_cmd

Consult the experts whose scope matches DOC's projects/tags (advisory; never blocks).

A malformed --feature is a usage error. Anything that goes wrong while consulting (registry, scopes, taxonomy, a failing expert) is logged and reported in one line with exit code 0, so it can never stop /sdd-proposal or /sdd-spec.

consult_cmd(doc: Path, feature_id: str | None, root: Path) -> None

Parameter Type Default Description
doc Path
feature_id str | None
root Path

Alias contribution_dir

Re-exported from parrot.experts.contributions.contribution_dir.

Function experts

Expert delegation helpers.

experts() -> None

Alias load_contribution

Re-exported from parrot.experts.contributions.load_contribution.

Alias load_scopes

Re-exported from parrot.experts.grid.loader.load_scopes.

Attribute logger

Function match_scopes

Pick scopes whose match intersects the document's projects or tags.

match_scopes(scopes: dict[str, ScopeGrid], projects: list[str], tags: list[str]) -> list[ScopeGrid]

Parameter Type Default Description
scopes dict[str, ScopeGrid]
projects list[str]
tags list[str]

Returns: list[ScopeGrid]

Alias normalize_project

Re-exported from parrot.sdd.scripts.sdd_meta.normalize_project.

Alias normalize_tag

Re-exported from parrot.sdd.scripts.sdd_meta.normalize_tag.

Function parse_findings

Parse an expert answer into findings; fall back to one info finding holding the raw text.

parse_findings(text: str) -> list[Finding]

Parameter Type Default Description
text str

Returns: list[Finding]

Alias parse_taxonomy

Re-exported from parrot.sdd.scripts.sdd_meta.parse_taxonomy.

Function promote_cmd

Promote a confirmed finding to an inferred decision.

promote_cmd(contribution: Path, finding_id: str, root: Path) -> None

Parameter Type Default Description
contribution Path
finding_id str
root Path

Alias save_contribution

Re-exported from parrot.experts.contributions.save_contribution.

Function triage_cmd

Update the finding status and reason.

triage_cmd(contribution: Path, finding_id: str, action: str, reason: str, root: Path) -> None

Parameter Type Default Description
contribution Path
finding_id str
action str
reason str
root Path

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