Skip to content

API Reference parrot.semantic.accounting.live

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

parrot.semantic.accounting.live

View source

Live validation of accounting models: drift + assertions (FEAT-713 M9). Trusted host entry point.

Alias AccountingToolkit

Re-exported from parrot.semantic.accounting.toolkit.AccountingToolkit.

Alias AssertionResult

Re-exported from parrot.semantic.accounting.models.AssertionResult.

Alias ChartSnapshot

Re-exported from parrot.semantic.accounting.models.ChartSnapshot.

Class LiveValidationReport

Live status of every configured model.

Fields:

Field Type Default Description
models tuple[ModelLiveStatus, ...]

Class ModelLiveStatus

Outcome of one model's live validation; recorded as the model's catalog flags on success.

Fields:

Field Type Default Description
tenant str
model str
drift_accounts tuple[str, ...]
assertion_results tuple[AssertionResult, ...]
audit_ids tuple[str, ...]
blocked bool
checked_at datetime
error str | None None

Alias ModelValidationError

Re-exported from parrot.semantic.accounting.errors.ModelValidationError.

Alias Period

Re-exported from parrot.semantic.accounting.models.Period.

Alias detect_drift

Re-exported from parrot.semantic.accounting.loader.detect_drift.

Function last_closed_month

The full natural month before today's month.

last_closed_month(today: date) -> Period

Parameter Type Default Description
today date

Returns: Period

Attribute logger

Function run_live_validation

Validate every configured model; never a tool.

run_live_validation(toolkit: 'AccountingToolkit', *, today: date | None = None) -> LiveValidationReport

Parameter Type Default Description
toolkit 'AccountingToolkit'
today date | None None

Returns: LiveValidationReport

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