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.
decide_knowledge_maintenance_governance
Section titled “decide_knowledge_maintenance_governance”from cayu import decide_knowledge_maintenance_governanceReturn exact maintenance authority or fail closed before persistence.
async decide_knowledge_maintenance_governance(request: KnowledgeMaintenanceGovernanceRequest, *, config: KnowledgeGovernanceConfig, policy: KnowledgeMaintenanceGovernancePolicy | None=None) -> KnowledgeMaintenanceGovernanceAuthorityRelease source · Runtime guarantees · Capability guides
KnowledgeMaintenanceGovernanceAuthority
Section titled “KnowledgeMaintenanceGovernanceAuthority”from cayu import KnowledgeMaintenanceGovernanceAuthorityValidated request/decision pair accepted by the persistence boundary.
Bases: _GovernanceModel.
Fields and attributes
Section titled “Fields and attributes”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 |
validate_schema_version (method)
Section titled “validate_schema_version (method)”KnowledgeMaintenanceGovernanceAuthority.validate_schema_version(value: object) -> objectcopy_models (method)
Section titled “copy_models (method)”KnowledgeMaintenanceGovernanceAuthority.copy_models(value: object) -> objectvalidate_binding (method)
Section titled “validate_binding (method)”KnowledgeMaintenanceGovernanceAuthority.validate_binding() -> KnowledgeMaintenanceGovernanceAuthorityRelease source · Runtime guarantees · Capability guides
KnowledgeMaintenanceGovernanceDecision
Section titled “KnowledgeMaintenanceGovernanceDecision”from cayu import KnowledgeMaintenanceGovernanceDecisionExact application-policy decision over one request.
Bases: _GovernanceModel.
Fields and attributes
Section titled “Fields and attributes”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) |
validate_schema_version (method)
Section titled “validate_schema_version (method)”KnowledgeMaintenanceGovernanceDecision.validate_schema_version(value: object) -> objectvalidate_request_sha256 (method)
Section titled “validate_request_sha256 (method)”KnowledgeMaintenanceGovernanceDecision.validate_request_sha256(value: str) -> strvalidate_identity (method)
Section titled “validate_identity (method)”KnowledgeMaintenanceGovernanceDecision.validate_identity(value: str, info) -> strcopy_annotations (method)
Section titled “copy_annotations (method)”KnowledgeMaintenanceGovernanceDecision.copy_annotations(value: object) -> dict[str, Any]fingerprint (property)
Section titled “fingerprint (property)”KnowledgeMaintenanceGovernanceDecision.fingerprint() -> strRelease source · Runtime guarantees · Capability guides
KnowledgeMaintenanceGovernanceDisposition
Section titled “KnowledgeMaintenanceGovernanceDisposition”from cayu import KnowledgeMaintenanceGovernanceDispositionApplication-policy disposition for one evaluated proposal.
Bases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”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
KnowledgeMaintenanceGovernancePolicy
Section titled “KnowledgeMaintenanceGovernancePolicy”from cayu import KnowledgeMaintenanceGovernancePolicyApplication authority for one copied, bounded maintenance request.
Bases: Protocol.
decide_maintenance (method)
Section titled “decide_maintenance (method)”async KnowledgeMaintenanceGovernancePolicy.decide_maintenance(request: KnowledgeMaintenanceGovernanceRequest) -> KnowledgeMaintenanceGovernanceDecisionRelease source · Runtime guarantees · Capability guides
KnowledgeMaintenanceGovernancePolicyError
Section titled “KnowledgeMaintenanceGovernancePolicyError”from cayu import KnowledgeMaintenanceGovernancePolicyErrorA maintenance policy failed closed before any store mutation.
Bases: RuntimeError.
init (method)
Section titled “init (method)”KnowledgeMaintenanceGovernancePolicyError.__init__(code: str) -> NoneRelease source · Runtime guarantees · Capability guides
KnowledgeMaintenanceGovernanceReceipt
Section titled “KnowledgeMaintenanceGovernanceReceipt”from cayu import KnowledgeMaintenanceGovernanceReceiptStore-authored evidence for one exact maintenance authority outcome.
Bases: _GovernanceModel.
Fields and attributes
Section titled “Fields and attributes”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 |
validate_schema_version (method)
Section titled “validate_schema_version (method)”KnowledgeMaintenanceGovernanceReceipt.validate_schema_version(value: object) -> objectvalidate_identity (method)
Section titled “validate_identity (method)”KnowledgeMaintenanceGovernanceReceipt.validate_identity(value: str, info) -> strvalidate_proposal_fingerprint (method)
Section titled “validate_proposal_fingerprint (method)”KnowledgeMaintenanceGovernanceReceipt.validate_proposal_fingerprint(value: str) -> strcopy_nested_models (method)
Section titled “copy_nested_models (method)”KnowledgeMaintenanceGovernanceReceipt.copy_nested_models(value: object) -> objectvalidate_committed_at (method)
Section titled “validate_committed_at (method)”KnowledgeMaintenanceGovernanceReceipt.validate_committed_at(value: datetime) -> datetimevalidate_replayed (method)
Section titled “validate_replayed (method)”KnowledgeMaintenanceGovernanceReceipt.validate_replayed(value: object) -> boolvalidate_outcome (method)
Section titled “validate_outcome (method)”KnowledgeMaintenanceGovernanceReceipt.validate_outcome() -> KnowledgeMaintenanceGovernanceReceiptRelease source · Runtime guarantees · Capability guides
KnowledgeMaintenanceGovernanceRequest
Section titled “KnowledgeMaintenanceGovernanceRequest”from cayu import KnowledgeMaintenanceGovernanceRequestCopied bounded material presented to one maintenance policy.
Bases: _GovernanceModel.
Fields and attributes
Section titled “Fields and attributes”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 |
validate_schema_version (method)
Section titled “validate_schema_version (method)”KnowledgeMaintenanceGovernanceRequest.validate_schema_version(value: object) -> objectvalidate_identity (method)
Section titled “validate_identity (method)”KnowledgeMaintenanceGovernanceRequest.validate_identity(value: str, info) -> strvalidate_sha256 (method)
Section titled “validate_sha256 (method)”KnowledgeMaintenanceGovernanceRequest.validate_sha256(value: str, info) -> strcopy_proposal (method)
Section titled “copy_proposal (method)”KnowledgeMaintenanceGovernanceRequest.copy_proposal(value: object) -> objectcopy_access_scope (method)
Section titled “copy_access_scope (method)”KnowledgeMaintenanceGovernanceRequest.copy_access_scope(value: object) -> objectcopy_forbidden_identities (method)
Section titled “copy_forbidden_identities (method)”KnowledgeMaintenanceGovernanceRequest.copy_forbidden_identities(value: object) -> tuple[str, ...]validate_bindings (method)
Section titled “validate_bindings (method)”KnowledgeMaintenanceGovernanceRequest.validate_bindings() -> KnowledgeMaintenanceGovernanceRequestfingerprint (property)
Section titled “fingerprint (property)”KnowledgeMaintenanceGovernanceRequest.fingerprint() -> straccess_scope_sha256 (property)
Section titled “access_scope_sha256 (property)”KnowledgeMaintenanceGovernanceRequest.access_scope_sha256() -> strRelease source · Runtime guarantees · Capability guides
KnowledgeMaintenanceGovernor
Section titled “KnowledgeMaintenanceGovernor”from cayu import KnowledgeMaintenanceGovernorExplicit high-level operation over persisted evaluated proposals.
init (method)
Section titled “init (method)”KnowledgeMaintenanceGovernor.__init__(store: KnowledgeStore, *, config: KnowledgeGovernanceConfig, policy: KnowledgeMaintenanceGovernancePolicy | None=None) -> Nonegovern (method)
Section titled “govern (method)”async KnowledgeMaintenanceGovernor.govern(*, operation_id: str, proposal_id: str, access_scope: KnowledgeAccessScope | None=None) -> KnowledgeMaintenanceGovernanceReceiptGovern 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_receiptLoad 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 | NoneRelease 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_BYTESMAX_KNOWLEDGE_MAINTENANCE_GOVERNANCE_ANNOTATION_BYTES = 4096Release 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_BYTESMAX_KNOWLEDGE_MAINTENANCE_GOVERNANCE_RECEIPT_BYTES = 640000Release 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_BYTESMAX_KNOWLEDGE_MAINTENANCE_GOVERNANCE_REQUEST_BYTES = 512000Release source · Runtime guarantees · Capability guides
prepare_knowledge_maintenance_governance_request
Section titled “prepare_knowledge_maintenance_governance_request”from cayu import prepare_knowledge_maintenance_governance_requestBuild the exact bounded policy input from a persisted accepted proposal.
prepare_knowledge_maintenance_governance_request(publication: KnowledgeMaintenanceProposalPublication, *, operation_id: str, mode: KnowledgeGovernanceMode) -> KnowledgeMaintenanceGovernanceRequest