Skip to content

API Reference parrot.knowledge.wiki.decisions.inventory

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

parrot.knowledge.wiki.decisions.inventory

View source

Consistent decision inventory snapshot and eligibility predicate (FEAT-784 M5).

Alias APPROVAL_UNVERIFIED

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

Alias ApprovalAdapter

Re-exported from parrot.knowledge.wiki.decisions.approvals.ApprovalAdapter.

Alias ApprovalManifest

Re-exported from parrot.knowledge.wiki.decisions.approvals.ApprovalManifest.

Attribute BATCH_MARKER_CATEGORY

Alias BaseWikiStore

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

Alias DecisionDiagnostic

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

Alias DecisionError

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

Alias DecisionRecord

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

Alias DecisionRef

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

Alias DecisionRepository

Re-exported from parrot.knowledge.wiki.decisions.repository.DecisionRepository.

Class InventorySnapshot

One consistent read of decision inventory, taxonomy, and approvals.

Parameter Type Default Description
eligible list[DecisionRecord]
manifest SnapshotManifest
diagnostics list[DecisionDiagnostic]
heads dict[str, DecisionRef]

Method InventorySnapshot.take

Take a two-phase snapshot, failing when its pages change mid-read.

take(repo: DecisionRepository, taxonomy: Taxonomy, approvals: ApprovalManifest, adapter: ApprovalAdapter, structural_revision: str, *, store: BaseWikiStore, root: Path, config_digest: str) -> 'InventorySnapshot'

Parameter Type Default Description
repo DecisionRepository
taxonomy Taxonomy
approvals ApprovalManifest
adapter ApprovalAdapter
structural_revision str
store BaseWikiStore
root Path
config_digest str

Returns: 'InventorySnapshot'

Method InventorySnapshot.effective_head

Return the effective record for a decision, if it participated in the snapshot.

effective_head(decision_id: str) -> DecisionRef | None

Parameter Type Default Description
decision_id str

Returns: DecisionRef | None

Method InventorySnapshot.governing

Return all eligible decisions applicable by domain, target, or explicit reference.

governing(about: set[str], scope_ids: set[str]) -> list[DecisionRecord]

Parameter Type Default Description
about set[str]
scope_ids set[str]

Returns: list[DecisionRecord]

Attribute RULES_VERSION

Alias SNAPSHOT_UNSTABLE

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

Alias SUPERSESSION_INVALID

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

Class SnapshotManifest

Every input on which an inventory evaluation depended.

Attributes:

Attribute Type Description
inventory dict[str, str]
taxonomy_digest str
approvals_digest str
structural_revision str
rules_version int
config_digest str

Alias Taxonomy

Re-exported from parrot.knowledge.wiki.decisions.taxonomy.Taxonomy.

Function batch_marker_id

Return the page id for a batch's visibility marker.

batch_marker_id(batch_id: str) -> str

Parameter Type Default Description
batch_id str

Returns: str

Alias canonical_json

Re-exported from parrot.knowledge.wiki.decisions.codec.canonical_json.

Function is_eligible

Return whether a record is an authoritative active decision.

is_eligible(record: DecisionRecord, *, approved_batches: frozenset[str]) -> bool

Parameter Type Default Description
record DecisionRecord
approved_batches frozenset[str]

Returns: bool

Attribute logger

Function record_hash

Return the codec's content hash for a decision record.

record_hash(record: DecisionRecord) -> str

Parameter Type Default Description
record DecisionRecord

Returns: str

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