Skip to content

cayu.knowledge.maintenance_governance

Public Cayu API. Definitions are grouped by their public source module, and definitions from private implementation modules appear on their package’s page; adding a symbol does not move existing links. The import shown at each entry is a supported public namespace. Read the Python API overview and install the required extra.

from cayu import decide_knowledge_maintenance_governance

Return exact maintenance authority or fail closed before persistence.

async decide_knowledge_maintenance_governance(request: KnowledgeMaintenanceGovernanceRequest, *, config: KnowledgeGovernanceConfig, policy: KnowledgeMaintenanceGovernancePolicy | None=None) -> KnowledgeMaintenanceGovernanceAuthority

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceGovernanceAuthority

Validated request/decision pair accepted by the persistence boundary.

Bases: _GovernanceModel.

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
schema_version Literal[1] 1
request KnowledgeMaintenanceGovernanceRequest required
decision KnowledgeMaintenanceGovernanceDecision required
KnowledgeMaintenanceGovernanceAuthority.validate_schema_version(value: object) -> object
KnowledgeMaintenanceGovernanceAuthority.copy_models(value: object) -> object
KnowledgeMaintenanceGovernanceAuthority.validate_binding() -> KnowledgeMaintenanceGovernanceAuthority

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceGovernanceDecision

Exact application-policy decision over one request.

Bases: _GovernanceModel.

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
schema_version Literal[1] 1
request_sha256 str required
disposition KnowledgeMaintenanceGovernanceDisposition required
policy_identity str required
policy_version str required
code str required
annotations dict[str, Any] Field(default_factory=dict)
KnowledgeMaintenanceGovernanceDecision.validate_schema_version(value: object) -> object
KnowledgeMaintenanceGovernanceDecision.validate_request_sha256(value: str) -> str
KnowledgeMaintenanceGovernanceDecision.validate_identity(value: str, info) -> str
KnowledgeMaintenanceGovernanceDecision.copy_annotations(value: object) -> dict[str, Any]
KnowledgeMaintenanceGovernanceDecision.fingerprint() -> str

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceGovernanceDisposition

Application-policy disposition for one evaluated proposal.

Bases: StrEnum.

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
APPROVE class attribute 'approve'
ROUTE_TO_REVIEW class attribute 'route_to_review'
REJECT class attribute 'reject'

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceGovernancePolicy

Application authority for one copied, bounded maintenance request.

Bases: Protocol.

async KnowledgeMaintenanceGovernancePolicy.decide_maintenance(request: KnowledgeMaintenanceGovernanceRequest) -> KnowledgeMaintenanceGovernanceDecision

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceGovernancePolicyError

A maintenance policy failed closed before any store mutation.

Bases: RuntimeError.

KnowledgeMaintenanceGovernancePolicyError.__init__(code: str) -> None

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceGovernanceReceipt

Store-authored evidence for one exact maintenance authority outcome.

Bases: _GovernanceModel.

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
schema_version Literal[1] 1
operation_id str required
proposal_id str required
proposal_fingerprint str required
authority KnowledgeMaintenanceGovernanceAuthority required
maintenance_receipt KnowledgeMaintenanceDecisionReceipt | None None
committed_at datetime required
replayed bool False
KnowledgeMaintenanceGovernanceReceipt.validate_schema_version(value: object) -> object
KnowledgeMaintenanceGovernanceReceipt.validate_identity(value: str, info) -> str
KnowledgeMaintenanceGovernanceReceipt.validate_proposal_fingerprint(value: str) -> str
KnowledgeMaintenanceGovernanceReceipt.copy_nested_models(value: object) -> object
KnowledgeMaintenanceGovernanceReceipt.validate_committed_at(value: datetime) -> datetime
KnowledgeMaintenanceGovernanceReceipt.validate_replayed(value: object) -> bool
KnowledgeMaintenanceGovernanceReceipt.validate_outcome() -> KnowledgeMaintenanceGovernanceReceipt

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceGovernanceRequest

Copied bounded material presented to one maintenance policy.

Bases: _GovernanceModel.

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
schema_version Literal[1] 1
operation_id str required
mode KnowledgeGovernanceMode required
proposal KnowledgeMaintenanceProposal required
publication_operation_id str required
publication_request_sha256 str required
accepted_plan_fingerprint str required
routing_request_fingerprint str required
routing_result_fingerprint str required
routing_configuration_fingerprint str required
planning_configuration_fingerprint str required
plan_fingerprint str required
evaluation_fingerprint str required
planner_identity str required
planner_version str required
evaluator_identity str required
evaluator_version str required
access_scope KnowledgeAccessScope required
forbidden_authority_identities tuple[str, ...] required
KnowledgeMaintenanceGovernanceRequest.validate_schema_version(value: object) -> object
KnowledgeMaintenanceGovernanceRequest.validate_identity(value: str, info) -> str
KnowledgeMaintenanceGovernanceRequest.validate_sha256(value: str, info) -> str
KnowledgeMaintenanceGovernanceRequest.copy_proposal(value: object) -> object
KnowledgeMaintenanceGovernanceRequest.copy_access_scope(value: object) -> object
KnowledgeMaintenanceGovernanceRequest.copy_forbidden_identities(value: object) -> tuple[str, ...]
KnowledgeMaintenanceGovernanceRequest.validate_bindings() -> KnowledgeMaintenanceGovernanceRequest
KnowledgeMaintenanceGovernanceRequest.fingerprint() -> str
KnowledgeMaintenanceGovernanceRequest.access_scope_sha256() -> str

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceGovernor

Explicit high-level operation over persisted evaluated proposals.

KnowledgeMaintenanceGovernor.__init__(store: KnowledgeStore, *, config: KnowledgeGovernanceConfig, policy: KnowledgeMaintenanceGovernancePolicy | None=None) -> None
async KnowledgeMaintenanceGovernor.govern(*, operation_id: str, proposal_id: str, access_scope: KnowledgeAccessScope | None=None) -> KnowledgeMaintenanceGovernanceReceipt

Govern one exact persisted proposal and return durable attribution.

Release source · Runtime guarantees · Capability guides

load_knowledge_maintenance_governance_receipt

Section titled “load_knowledge_maintenance_governance_receipt”
from cayu import load_knowledge_maintenance_governance_receipt

Load route or terminal governance attribution without invoking a policy.

async load_knowledge_maintenance_governance_receipt(store: KnowledgeStore, *, operation_id: str, access_scope: KnowledgeAccessScope | None=None) -> KnowledgeMaintenanceGovernanceReceipt | None

Release source · Runtime guarantees · Capability guides

MAX_KNOWLEDGE_MAINTENANCE_GOVERNANCE_ANNOTATION_BYTES

Section titled “MAX_KNOWLEDGE_MAINTENANCE_GOVERNANCE_ANNOTATION_BYTES”
from cayu import MAX_KNOWLEDGE_MAINTENANCE_GOVERNANCE_ANNOTATION_BYTES
MAX_KNOWLEDGE_MAINTENANCE_GOVERNANCE_ANNOTATION_BYTES = 4096

Release source · Runtime guarantees · Capability guides

MAX_KNOWLEDGE_MAINTENANCE_GOVERNANCE_RECEIPT_BYTES

Section titled “MAX_KNOWLEDGE_MAINTENANCE_GOVERNANCE_RECEIPT_BYTES”
from cayu import MAX_KNOWLEDGE_MAINTENANCE_GOVERNANCE_RECEIPT_BYTES
MAX_KNOWLEDGE_MAINTENANCE_GOVERNANCE_RECEIPT_BYTES = 640000

Release source · Runtime guarantees · Capability guides

MAX_KNOWLEDGE_MAINTENANCE_GOVERNANCE_REQUEST_BYTES

Section titled “MAX_KNOWLEDGE_MAINTENANCE_GOVERNANCE_REQUEST_BYTES”
from cayu import MAX_KNOWLEDGE_MAINTENANCE_GOVERNANCE_REQUEST_BYTES
MAX_KNOWLEDGE_MAINTENANCE_GOVERNANCE_REQUEST_BYTES = 512000

Release source · Runtime guarantees · Capability guides

prepare_knowledge_maintenance_governance_request

Section titled “prepare_knowledge_maintenance_governance_request”
from cayu import prepare_knowledge_maintenance_governance_request

Build the exact bounded policy input from a persisted accepted proposal.

prepare_knowledge_maintenance_governance_request(publication: KnowledgeMaintenanceProposalPublication, *, operation_id: str, mode: KnowledgeGovernanceMode) -> KnowledgeMaintenanceGovernanceRequest

Release source · Runtime guarantees · Capability guides