Skip to content

API Reference parrot.knowledge.wiki.decisions.operations

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

parrot.knowledge.wiki.decisions.operations

View source

Framework-free decision-plane operations (FEAT-540 M3).

Alias ADR_PATH_OUTSIDE_ROOT

Re-exported from parrot.knowledge.wiki.decisions.models.ADR_PATH_OUTSIDE_ROOT.

Alias DEFAULT_BUDGET_TOKENS

Re-exported from parrot.knowledge.wiki.decisions.render.DEFAULT_BUDGET_TOKENS.

Alias DecisionDossier

Re-exported from parrot.knowledge.wiki.decisions.models.DecisionDossier.

Alias DecisionError

Re-exported from parrot.knowledge.wiki.decisions.models.DecisionError.

Class DecisionGenerateInput

Arguments for wiki_decision_generate.

Fields:

Field Type Default Description
target str One sym: id or one repository-relative file path

Class DecisionWhyInput

Arguments for wiki_decision_why / decision_why.

Fields:

Field Type Default Description
question str Natural-language question, optionally naming a symbol
include_history bool False Include rejected/deprecated/superseded records
limit int 10 Maximum hits across both groups
budget_tokens int DEFAULT_BUDGET_TOKENS Estimated output budget
namespace str | None None

Class DecisionsForSymbolInput

Arguments for wiki_decisions_for_symbol / decision_for_symbol.

Fields:

Field Type Default Description
symbol str A sym:# id, or an exact symbol name
include_history bool False Include rejected/deprecated/superseded records
limit int 10 Maximum hits across both groups
budget_tokens int DEFAULT_BUDGET_TOKENS Estimated output budget
namespace str | None None

Alias OperationResult

Re-exported from parrot.knowledge.wiki.operations.OperationResult.

Class SpecConsequencesInput

Arguments for wiki_spec_consequences.

Fields:

Field Type Default Description
spec_path str Repository-relative path of the spec, e.g. sdd/specs/.spec.md
mode Literal['check', 'governing'] 'check' check: evaluate (read-only); governing: the governing-decisions dossier
budget_tokens int DEFAULT_BUDGET_TOKENS Estimated output budget for the dossier text

Alias estimate_tokens

Re-exported from parrot.knowledge.wiki.store.estimate_tokens.

Function op_decision_generate

Run wiki_decision_generate with unchanged error conversion.

op_decision_generate(store: Any, params: DecisionGenerateInput, **context: Any) -> OperationResult

Parameter Type Default Description
store Any
params DecisionGenerateInput
**context Any {}

Returns: OperationResult

Function op_decision_why

Run wiki_decision_why with unchanged error conversion.

op_decision_why(store: Any, params: DecisionWhyInput, **context: Any) -> OperationResult

Parameter Type Default Description
store Any
params DecisionWhyInput
**context Any {}

Returns: OperationResult

Function op_decisions_for_symbol

Run wiki_decisions_for_symbol with unchanged error conversion.

op_decisions_for_symbol(store: Any, params: DecisionsForSymbolInput, **context: Any) -> OperationResult

Parameter Type Default Description
store Any
params DecisionsForSymbolInput
**context Any {}

Returns: OperationResult

Function op_spec_consequences

Evaluate a spec's declared decisions (read-only); never writes the spec.

op_spec_consequences(store: Any, params: SpecConsequencesInput, **context: Any) -> OperationResult

Parameter Type Default Description
store Any The local wiki store, or None to resolve and require a built plane from root.
params SpecConsequencesInput Validated arguments.
**context Any {} root (required) and config (WikiProjectConfig).

Returns: OperationResult — Rendered Markdown text with the report (check) or dossier (governing) as data.

Alias render_dossier_text

Re-exported from parrot.knowledge.wiki.decisions.render.render_dossier_text.

Alias truncate_to_tokens

Re-exported from parrot.knowledge.wiki.context.truncate_to_tokens.

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