Skip to content

API Reference parrot.knowledge.ontology.concept_catalog.models

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

parrot.knowledge.ontology.concept_catalog.models

View source

Pydantic v2 row models for the Concept Catalog tables.

These models represent the Postgres rows for ontology_concept, ontology_concept_isa, and the CascadeAlert notification type emitted when a Concept is deprecated. They are used by the service, worker, seed, reconcile, and HTTP modules.

Class CascadeAlert

Notification emitted to the operational service when a Concept is deprecated.

The cascade-on-deprecate flow emits exactly one CascadeAlert per deprecation operation, listing all operational topic_authority edge IDs that reference the deprecated concept.

Fields:

Field Type Default Description
tenant_id str Tenant owning the deprecated concept.
concept_id UUID UUID of the deprecated concept.
concept_slug str Slug of the deprecated concept.
affected_edge_ids list[UUID] List of operational topic_authority.id values that reference this concept.
notified_at datetime Timestamp when this alert was emitted.

Class ConceptRow

Represents a row in the ontology_concept Postgres table.

Fields:

Field Type Default Description
id UUID UUID primary key.
tenant_id str Tenant owning this concept.
slug str Tenant-local slug identifier (e.g. "sales_commissions").
label str Human-readable display label.
synonyms list[str] List of synonym strings for this concept.
description str | None None Optional prose description.
domain str | None None Optional domain tag (e.g. "finance").
state Literal['proposed', 'pending_review', 'approved', 'rejected', 'deprecated'] Current state in the five-state machine.
asserted_by str Who asserted this concept (user email or system).
reviewed_by str | None None Who reviewed the transition (optional).
reviewed_at datetime | None None When the review happened (optional).
rationale str | None None Curator's rationale for the proposal or decision.
effective_from datetime When this concept became effective.
effective_to datetime | None None When this concept expires (optional).

Class IsaEdgeRow

Represents a row in the ontology_concept_isa Postgres table.

Captures a directional is_a (sub-class) relationship between a tenant concept (child) and a parent concept that may live in the framework layer or in the tenant's own catalog.

Fields:

Field Type Default Description
id UUID UUID primary key.
tenant_id str Tenant owning this edge.
child_id UUID FK to ontology_concept.id (the sub-concept).
parent_tier Literal['framework', 'tenant'] Whether the parent lives in the framework or tenant layer.
parent_ref str Framework concept name or tenant ontology_concept.id (as str).
state Literal['proposed', 'pending_review', 'approved', 'rejected', 'deprecated'] Current state in the five-state machine.
asserted_by str Who asserted this edge.
reviewed_by str | None None Reviewer (optional).
rationale str | None None Curator's rationale (optional).

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