cayu.knowledge.maintenance_persistence
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.
KNOWLEDGE_MAINTENANCE_PROPOSAL_PIPELINE_VERSION
Section titled “KNOWLEDGE_MAINTENANCE_PROPOSAL_PIPELINE_VERSION”from cayu import KNOWLEDGE_MAINTENANCE_PROPOSAL_PIPELINE_VERSIONKNOWLEDGE_MAINTENANCE_PROPOSAL_PIPELINE_VERSION = 'cayu.knowledge-maintenance-proposal-publication.v1'Release source · Runtime guarantees · Capability guides
KNOWLEDGE_MAINTENANCE_PROPOSAL_PUBLICATION_SCHEMA_VERSION
Section titled “KNOWLEDGE_MAINTENANCE_PROPOSAL_PUBLICATION_SCHEMA_VERSION”from cayu import KNOWLEDGE_MAINTENANCE_PROPOSAL_PUBLICATION_SCHEMA_VERSIONKNOWLEDGE_MAINTENANCE_PROPOSAL_PUBLICATION_SCHEMA_VERSION = 1Release source · Runtime guarantees · Capability guides
KnowledgeMaintenanceAcceptedPlan
Section titled “KnowledgeMaintenanceAcceptedPlan”from cayu import KnowledgeMaintenanceAcceptedPlanAttempt-independent accepted semantic plan retained for review.
Provider usage and processing timestamps remain attempt telemetry on
KnowledgeMaintenancePlanningResult. The durable review artifact keeps
the exact plan, evaluation, routing/configuration bindings, and component
identities that determine review authority. Equivalent accepted attempts
therefore converge on one proposal identity.
Bases: _PersistenceModel.
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] |
KNOWLEDGE_MAINTENANCE_PROPOSAL_PUBLICATION_SCHEMA_VERSION |
request_id |
StrictStr |
required |
request_fingerprint |
StrictStr |
required |
routing_result_fingerprint |
StrictStr |
required |
routing_configuration_fingerprint |
StrictStr |
required |
configuration_fingerprint |
StrictStr |
required |
planner_id |
StrictStr |
required |
planner_version |
StrictStr |
required |
evaluator_id |
StrictStr |
required |
evaluator_version |
StrictStr |
required |
deterministic_evaluator_version |
Literal['cayu.knowledge-maintenance-deterministic-evaluator.v1'] |
KNOWLEDGE_MAINTENANCE_DETERMINISTIC_EVALUATOR_VERSION |
plan |
KnowledgeMaintenancePlanDraft |
required |
evaluation |
KnowledgeMaintenancePlanEvaluation |
required |
validate_schema_version (method)
Section titled “validate_schema_version (method)”KnowledgeMaintenanceAcceptedPlan.validate_schema_version(value: object) -> objectvalidate_identity (method)
Section titled “validate_identity (method)”KnowledgeMaintenanceAcceptedPlan.validate_identity(value: str, info) -> strvalidate_fingerprint (method)
Section titled “validate_fingerprint (method)”KnowledgeMaintenanceAcceptedPlan.validate_fingerprint(value: str, info) -> strcopy_plan (method)
Section titled “copy_plan (method)”KnowledgeMaintenanceAcceptedPlan.copy_plan(value: object) -> objectcopy_evaluation (method)
Section titled “copy_evaluation (method)”KnowledgeMaintenanceAcceptedPlan.copy_evaluation(value: object) -> objectvalidate_acceptance (method)
Section titled “validate_acceptance (method)”KnowledgeMaintenanceAcceptedPlan.validate_acceptance() -> KnowledgeMaintenanceAcceptedPlanfingerprint (method)
Section titled “fingerprint (method)”KnowledgeMaintenanceAcceptedPlan.fingerprint() -> strRelease source · Runtime guarantees · Capability guides
KnowledgeMaintenanceProposalPublication
Section titled “KnowledgeMaintenanceProposalPublication”from cayu import KnowledgeMaintenanceProposalPublicationOne durable proposal, accepted semantic record, and pending replacement.
Bases: _PersistenceModel.
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 |
|---|---|---|
proposal |
KnowledgeMaintenanceProposal |
required |
accepted_plan |
KnowledgeMaintenanceAcceptedPlan |
required |
replacement |
KnowledgeEntry |
required |
receipt |
KnowledgeMaintenanceProposalPublicationReceipt |
required |
outcome |
KnowledgeMaintenanceProposalPublicationOutcome |
required |
copy_proposal (method)
Section titled “copy_proposal (method)”KnowledgeMaintenanceProposalPublication.copy_proposal(value: object) -> objectcopy_accepted_plan (method)
Section titled “copy_accepted_plan (method)”KnowledgeMaintenanceProposalPublication.copy_accepted_plan(value: object) -> objectcopy_replacement (method)
Section titled “copy_replacement (method)”KnowledgeMaintenanceProposalPublication.copy_replacement(value: object) -> objectcopy_receipt (method)
Section titled “copy_receipt (method)”KnowledgeMaintenanceProposalPublication.copy_receipt(value: object) -> objectvalidate_publication (method)
Section titled “validate_publication (method)”KnowledgeMaintenanceProposalPublication.validate_publication() -> KnowledgeMaintenanceProposalPublicationRelease source · Runtime guarantees · Capability guides
KnowledgeMaintenanceProposalPublicationConflict
Section titled “KnowledgeMaintenanceProposalPublicationConflict”from cayu import KnowledgeMaintenanceProposalPublicationConflictA proposal publication identity is occupied by different material.
Bases: ValueError.
init (method)
Section titled “init (method)”KnowledgeMaintenanceProposalPublicationConflict.__init__(reason: str) -> NoneRelease source · Runtime guarantees · Capability guides
KnowledgeMaintenanceProposalPublicationOutcome
Section titled “KnowledgeMaintenanceProposalPublicationOutcome”from cayu import KnowledgeMaintenanceProposalPublicationOutcomeDurable outcome of one accepted-plan handoff.
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 |
|---|---|---|
PENDING_PERSISTED |
class attribute |
'pending_persisted' |
EXISTING_PENDING |
class attribute |
'existing_pending' |
EXISTING_DECIDED |
class attribute |
'existing_decided' |
Release source · Runtime guarantees · Capability guides
KnowledgeMaintenanceProposalPublicationReceipt
Section titled “KnowledgeMaintenanceProposalPublicationReceipt”from cayu import KnowledgeMaintenanceProposalPublicationReceiptImmutable replay evidence for one atomic pending proposal publication.
Bases: _PersistenceModel.
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] |
KNOWLEDGE_MAINTENANCE_PROPOSAL_PUBLICATION_SCHEMA_VERSION |
operation_id |
StrictStr |
required |
proposal_id |
StrictStr |
required |
proposal_fingerprint |
StrictStr |
required |
accepted_plan_fingerprint |
StrictStr |
required |
request_sha256 |
StrictStr |
required |
replacement |
KnowledgeRevisionRef |
required |
committed_at |
datetime |
required |
replayed |
bool |
False |
validate_schema_version (method)
Section titled “validate_schema_version (method)”KnowledgeMaintenanceProposalPublicationReceipt.validate_schema_version(value: object) -> objectvalidate_identity (method)
Section titled “validate_identity (method)”KnowledgeMaintenanceProposalPublicationReceipt.validate_identity(value: str, info) -> strvalidate_fingerprint (method)
Section titled “validate_fingerprint (method)”KnowledgeMaintenanceProposalPublicationReceipt.validate_fingerprint(value: str, info) -> strcopy_replacement (method)
Section titled “copy_replacement (method)”KnowledgeMaintenanceProposalPublicationReceipt.copy_replacement(value: object) -> objectvalidate_committed_at (method)
Section titled “validate_committed_at (method)”KnowledgeMaintenanceProposalPublicationReceipt.validate_committed_at(value: datetime) -> datetimevalidate_replayed (method)
Section titled “validate_replayed (method)”KnowledgeMaintenanceProposalPublicationReceipt.validate_replayed(value: object) -> boolRelease source · Runtime guarantees · Capability guides
KnowledgeMaintenanceProposalPublisher
Section titled “KnowledgeMaintenanceProposalPublisher”from cayu import KnowledgeMaintenanceProposalPublisherPersist accepted planning output as one immutable pending review artifact.
init (method)
Section titled “init (method)”KnowledgeMaintenanceProposalPublisher.__init__(store: _ProposalStore, *, access_scope: KnowledgeAccessScope, config: KnowledgeMaintenanceProposalPublisherConfig) -> Noneconfig (property)
Section titled “config (property)”KnowledgeMaintenanceProposalPublisher.config() -> KnowledgeMaintenanceProposalPublisherConfigpublish (method)
Section titled “publish (method)”async KnowledgeMaintenanceProposalPublisher.publish(routing_request: KnowledgeMaintenanceRoutingRequest, routing_result: KnowledgeMaintenanceRoutingResult, planning_result: KnowledgeMaintenancePlanningResult) -> KnowledgeMaintenanceProposalPublicationMaterialize one accepted result without granting lifecycle authority.
load (method)
Section titled “load (method)”async KnowledgeMaintenanceProposalPublisher.load(proposal_id: str) -> KnowledgeMaintenanceProposalPublication | NoneLoad one exact pending or already-decided durable proposal artifact.
Release source · Runtime guarantees · Capability guides
KnowledgeMaintenanceProposalPublisherConfig
Section titled “KnowledgeMaintenanceProposalPublisherConfig”from cayu import KnowledgeMaintenanceProposalPublisherConfigApplication-owned publication identity and deterministic chunk bounds.
Bases: _PersistenceModel.
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] |
KNOWLEDGE_MAINTENANCE_PROPOSAL_PUBLICATION_SCHEMA_VERSION |
publisher_id |
StrictStr |
required |
publisher_version |
StrictStr |
required |
created_by |
StrictStr |
'knowledge_maintenance' |
proposed_by |
StrictStr |
'knowledge_maintenance' |
pipeline_version |
StrictStr |
KNOWLEDGE_MAINTENANCE_PROPOSAL_PIPELINE_VERSION |
chunk_target_bytes |
StrictInt |
DEFAULT_KNOWLEDGE_CHUNK_TARGET_BYTES |
chunk_overlap_bytes |
StrictInt |
DEFAULT_KNOWLEDGE_CHUNK_OVERLAP_BYTES |
max_chunks |
StrictInt |
DEFAULT_KNOWLEDGE_INDEX_MAX_CHUNKS |
validate_schema_version (method)
Section titled “validate_schema_version (method)”KnowledgeMaintenanceProposalPublisherConfig.validate_schema_version(value: object) -> objectvalidate_identity (method)
Section titled “validate_identity (method)”KnowledgeMaintenanceProposalPublisherConfig.validate_identity(value: str, info) -> strvalidate_chunk_bound (method)
Section titled “validate_chunk_bound (method)”KnowledgeMaintenanceProposalPublisherConfig.validate_chunk_bound(value: int, info) -> intvalidate_chunk_bounds (method)
Section titled “validate_chunk_bounds (method)”KnowledgeMaintenanceProposalPublisherConfig.validate_chunk_bounds() -> KnowledgeMaintenanceProposalPublisherConfigfingerprint (method)
Section titled “fingerprint (method)”KnowledgeMaintenanceProposalPublisherConfig.fingerprint() -> str