Skip to content

cayu.knowledge.maintenance_planning

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_DETERMINISTIC_EVALUATOR_VERSION

Section titled “KNOWLEDGE_MAINTENANCE_DETERMINISTIC_EVALUATOR_VERSION”
from cayu import KNOWLEDGE_MAINTENANCE_DETERMINISTIC_EVALUATOR_VERSION
KNOWLEDGE_MAINTENANCE_DETERMINISTIC_EVALUATOR_VERSION = 'cayu.knowledge-maintenance-deterministic-evaluator.v1'

Release source · Runtime guarantees · Capability guides

KNOWLEDGE_MAINTENANCE_PLANNING_SCHEMA_VERSION

Section titled “KNOWLEDGE_MAINTENANCE_PLANNING_SCHEMA_VERSION”
from cayu import KNOWLEDGE_MAINTENANCE_PLANNING_SCHEMA_VERSION
KNOWLEDGE_MAINTENANCE_PLANNING_SCHEMA_VERSION = 1

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceEvaluationFinding

One bounded diagnostic without source or replacement prose.

Bases: _PlanningModel.

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
kind KnowledgeMaintenanceEvaluationFindingKind required
code KnowledgeMaintenanceEvaluationFindingCode required
source_references tuple[KnowledgeRevisionRef, ...] ()
evidence_mapping_ids tuple[StrictStr, ...] ()
KnowledgeMaintenanceEvaluationFinding.copy_source_references(value: object) -> tuple[KnowledgeRevisionRef, ...]
KnowledgeMaintenanceEvaluationFinding.copy_evidence_mapping_ids(value: object) -> tuple[str, ...]
KnowledgeMaintenanceEvaluationFinding.validate_code_for_kind() -> KnowledgeMaintenanceEvaluationFinding
KnowledgeMaintenanceEvaluationFinding.fingerprint() -> str

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceEvaluationFindingCode

Closed runtime-owned diagnostic vocabulary for one finding.

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
ROUTING_BINDING_INVALID class attribute 'routing_binding_invalid'
SOURCE_OUTSIDE_ROUTE class attribute 'source_outside_route'
SOURCE_COVERAGE_INCOMPLETE class attribute 'source_coverage_incomplete'
RELATION_COVERAGE_INVALID class attribute 'relation_coverage_invalid'
RELATION_ORIENTATION_INVALID class attribute 'relation_orientation_invalid'
SOURCE_REVISION_EXHAUSTED class attribute 'source_revision_exhausted'
EVIDENCE_COVERAGE_INCOMPLETE class attribute 'evidence_coverage_incomplete'
RELATION_EVIDENCE_MAPPING_INVALID class attribute 'relation_evidence_mapping_invalid'
UNREFERENCED_EVIDENCE_MAPPING class attribute 'unreferenced_evidence_mapping'
EVIDENCE_SOURCE_INVALID class attribute 'evidence_source_invalid'
REPLACEMENT_KIND_DISALLOWED class attribute 'replacement_kind_disallowed'
STALE_SOURCE class attribute 'stale_source'
UNSUPPORTED_CLAIM class attribute 'unsupported_claim'
INFORMATION_LOSS class attribute 'information_loss'
CONTRADICTION_MISHANDLED class attribute 'contradiction_mishandled'
RETENTION_VIOLATION class attribute 'retention_violation'
POLICY_VIOLATION class attribute 'policy_violation'
PROMPT_INJECTION class attribute 'prompt_injection'

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceEvaluationFindingKind

Closed, privacy-safe reasons a maintenance plan cannot proceed.

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
ROUTING_BINDING_INVALID class attribute 'routing_binding_invalid'
SOURCE_OUTSIDE_ROUTE class attribute 'source_outside_route'
SOURCE_COVERAGE_INCOMPLETE class attribute 'source_coverage_incomplete'
RELATION_COVERAGE_INVALID class attribute 'relation_coverage_invalid'
RELATION_ORIENTATION_INVALID class attribute 'relation_orientation_invalid'
SOURCE_REVISION_EXHAUSTED class attribute 'source_revision_exhausted'
EVIDENCE_COVERAGE_INCOMPLETE class attribute 'evidence_coverage_incomplete'
EVIDENCE_SOURCE_INVALID class attribute 'evidence_source_invalid'
REPLACEMENT_KIND_DISALLOWED class attribute 'replacement_kind_disallowed'
STALE_SOURCE class attribute 'stale_source'
UNSUPPORTED_CLAIM class attribute 'unsupported_claim'
INFORMATION_LOSS class attribute 'information_loss'
CONTRADICTION_MISHANDLED class attribute 'contradiction_mishandled'
RETENTION_VIOLATION class attribute 'retention_violation'
POLICY_VIOLATION class attribute 'policy_violation'
PROMPT_INJECTION class attribute 'prompt_injection'

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceEvaluationVerdict

Independent semantic disposition of one structurally valid plan.

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
ACCEPTED class attribute 'accepted'
REJECTED class attribute 'rejected'

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceEvaluatorDecision

Strict output from the injected independent semantic evaluator.

Bases: _PlanningModel.

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
plan_fingerprint StrictStr required
routing_result_fingerprint StrictStr required
configuration_fingerprint StrictStr required
verdict KnowledgeMaintenanceEvaluationVerdict required
findings tuple[KnowledgeMaintenanceEvaluationFinding, ...] ()
KnowledgeMaintenanceEvaluatorDecision.validate_fingerprints(value: str, info) -> str
KnowledgeMaintenanceEvaluatorDecision.copy_findings(value: object) -> tuple[KnowledgeMaintenanceEvaluationFinding, ...]
KnowledgeMaintenanceEvaluatorDecision.validate_verdict() -> KnowledgeMaintenanceEvaluatorDecision

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceEvaluatorInput

Structurally valid plan and exact snapshot passed to the evaluator.

Bases: _PlanningModel.

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
planner_input KnowledgeMaintenancePlannerInput required
plan KnowledgeMaintenancePlanDraft required
budget KnowledgeMaintenanceStageBudget required
KnowledgeMaintenanceEvaluatorInput.copy_planner_input(value: object) -> object
KnowledgeMaintenanceEvaluatorInput.copy_plan(value: object) -> object
KnowledgeMaintenanceEvaluatorInput.copy_budget(value: object) -> object

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceEvaluatorOutput

Strict evaluator response including independent provider usage.

Bases: _PlanningModel.

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
decision KnowledgeMaintenanceEvaluatorDecision required
usage KnowledgeMaintenanceInferenceUsage Field(default_factory=KnowledgeMaintenanceInferenceUsage)
KnowledgeMaintenanceEvaluatorOutput.copy_decision(value: object) -> object
KnowledgeMaintenanceEvaluatorOutput.copy_usage(value: object) -> object

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceEvidenceMapping

One replacement claim mapped to exact routed source revisions.

Bases: _PlanningModel.

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
id StrictStr required
claim StrictStr required
source_references tuple[KnowledgeRevisionRef, ...] required
KnowledgeMaintenanceEvidenceMapping.validate_id(value: str) -> str
KnowledgeMaintenanceEvidenceMapping.validate_claim(value: str) -> str
KnowledgeMaintenanceEvidenceMapping.copy_source_references(value: object) -> tuple[KnowledgeRevisionRef, ...]

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceInferenceUsage

Measured provider use reported by an injected planning component.

Bases: _PlanningModel.

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
model_calls StrictInt 0
input_tokens StrictInt 0
output_tokens StrictInt 0
cost_micro_usd StrictInt 0
model_id StrictStr | None None
KnowledgeMaintenanceInferenceUsage.validate_nonnegative(value: int, info) -> int
KnowledgeMaintenanceInferenceUsage.validate_model_id(value: str | None) -> str | None
KnowledgeMaintenanceInferenceUsage.validate_model_identity() -> KnowledgeMaintenanceInferenceUsage

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenancePlanDraft

Strict untrusted planner output over one exact routing snapshot.

Bases: _PlanningModel.

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_PLANNING_SCHEMA_VERSION
id StrictStr required
routing_request_fingerprint StrictStr required
routing_result_fingerprint StrictStr required
configuration_fingerprint StrictStr required
policy_id StrictStr required
source_references tuple[KnowledgeRevisionRef, ...] required
replacement KnowledgeMaintenanceReplacementDraft required
relations tuple[KnowledgeMaintenanceRelationDraft, ...] required
evidence_mappings tuple[KnowledgeMaintenanceEvidenceMapping, ...] required
rationale StrictStr required
evidence_summary StrictStr required
KnowledgeMaintenancePlanDraft.validate_schema_version(value: object) -> object
KnowledgeMaintenancePlanDraft.validate_identity(value: str, info) -> str
KnowledgeMaintenancePlanDraft.validate_fingerprints(value: str, info) -> str
KnowledgeMaintenancePlanDraft.copy_source_references(value: object) -> tuple[KnowledgeRevisionRef, ...]
KnowledgeMaintenancePlanDraft.copy_replacement(value: object) -> object
KnowledgeMaintenancePlanDraft.copy_relations(value: object) -> tuple[KnowledgeMaintenanceRelationDraft, ...]
KnowledgeMaintenancePlanDraft.copy_evidence_mappings(value: object) -> tuple[KnowledgeMaintenanceEvidenceMapping, ...]
KnowledgeMaintenancePlanDraft.validate_bounded_text(value: str, info) -> str
KnowledgeMaintenancePlanDraft.validate_hard_byte_bound() -> KnowledgeMaintenancePlanDraft
KnowledgeMaintenancePlanDraft.fingerprint() -> str

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenancePlanEndpoint

A replacement placeholder or one exact proposed source endpoint.

Bases: _PlanningModel.

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
kind KnowledgeMaintenancePlanEndpointKind required
reference KnowledgeRevisionRef | None None
KnowledgeMaintenancePlanEndpoint.copy_reference(value: object) -> KnowledgeRevisionRef | None
KnowledgeMaintenancePlanEndpoint.validate_endpoint() -> KnowledgeMaintenancePlanEndpoint

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenancePlanEndpointKind

The two endpoint roles representable in an unpersisted relation draft.

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
REPLACEMENT class attribute 'replacement'
SOURCE class attribute 'source'

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenancePlanEvaluation

Final independent evaluation, including whether the injected evaluator ran.

Bases: _PlanningModel.

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
deterministic_evaluator_version Literal['cayu.knowledge-maintenance-deterministic-evaluator.v1'] KNOWLEDGE_MAINTENANCE_DETERMINISTIC_EVALUATOR_VERSION
plan_fingerprint StrictStr required
routing_result_fingerprint StrictStr required
configuration_fingerprint StrictStr required
evaluator_id StrictStr required
evaluator_version StrictStr required
evaluator_invoked StrictBool required
verdict KnowledgeMaintenanceEvaluationVerdict required
code StrictStr required
findings tuple[KnowledgeMaintenanceEvaluationFinding, ...] ()
KnowledgeMaintenancePlanEvaluation.validate_fingerprints(value: str, info) -> str
KnowledgeMaintenancePlanEvaluation.validate_identity(value: str, info) -> str
KnowledgeMaintenancePlanEvaluation.validate_code(value: str) -> str
KnowledgeMaintenancePlanEvaluation.copy_findings(value: object) -> tuple[KnowledgeMaintenanceEvaluationFinding, ...]
KnowledgeMaintenancePlanEvaluation.validate_verdict() -> KnowledgeMaintenancePlanEvaluation
KnowledgeMaintenancePlanEvaluation.fingerprint() -> str

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenancePlanEvaluator

Independent semantic and application-policy evaluation of one plan.

Bases: Protocol.

async KnowledgeMaintenancePlanEvaluator.evaluate_maintenance_plan(request: KnowledgeMaintenanceEvaluatorInput) -> KnowledgeMaintenanceEvaluatorOutput

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenancePlanner

Provider-neutral proposal generation over one copied bounded snapshot.

Bases: Protocol.

async KnowledgeMaintenancePlanner.propose_maintenance(request: KnowledgeMaintenancePlannerInput) -> KnowledgeMaintenancePlannerOutput

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenancePlannerBudget

Planner invocation budget including every structured-output ceiling.

Bases: KnowledgeMaintenanceStageBudget.

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
max_input_bytes StrictInt required
max_output_bytes StrictInt required
max_model_calls StrictInt required
max_cost_micro_usd StrictInt required
timeout_seconds StrictFloat required
allowed_model_ids tuple[StrictStr, ...] required
max_evidence_mappings StrictInt required
max_replacement_text_bytes StrictInt required
max_claim_bytes StrictInt required
KnowledgeMaintenancePlannerBudget.validate_positive_int(value: int, info) -> int
KnowledgeMaintenancePlannerBudget.validate_model_calls(value: int) -> int
KnowledgeMaintenancePlannerBudget.validate_cost(value: int) -> int
KnowledgeMaintenancePlannerBudget.validate_timeout(value: float) -> float
KnowledgeMaintenancePlannerBudget.copy_allowed_model_ids(value: object) -> tuple[str, ...]
KnowledgeMaintenancePlannerBudget.validate_model_authority() -> KnowledgeMaintenanceStageBudget
KnowledgeMaintenancePlannerBudget.validate_evidence_mapping_count(value: int) -> int
KnowledgeMaintenancePlannerBudget.validate_replacement_text_bytes(value: int) -> int
KnowledgeMaintenancePlannerBudget.validate_claim_bytes(value: int) -> int

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenancePlannerInput

Minimized routed snapshot and budget passed to the untrusted planner.

Bases: _PlanningModel.

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
snapshot KnowledgeMaintenancePlanningSnapshot required
configuration_fingerprint StrictStr required
allowed_replacement_kinds tuple[StrictStr, ...] required
budget KnowledgeMaintenancePlannerBudget required
KnowledgeMaintenancePlannerInput.copy_snapshot(value: object) -> object

validate_configuration_fingerprint (method)

Section titled “validate_configuration_fingerprint (method)”
KnowledgeMaintenancePlannerInput.validate_configuration_fingerprint(value: str) -> str
KnowledgeMaintenancePlannerInput.copy_allowed_kinds(value: object) -> tuple[str, ...]
KnowledgeMaintenancePlannerInput.copy_budget(value: object) -> object
KnowledgeMaintenancePlannerInput.fingerprint() -> str

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenancePlannerOutput

Strict planner response including provider usage accounting.

Bases: _PlanningModel.

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
plan KnowledgeMaintenancePlanDraft required
usage KnowledgeMaintenanceInferenceUsage Field(default_factory=KnowledgeMaintenanceInferenceUsage)
KnowledgeMaintenancePlannerOutput.copy_plan(value: object) -> object
KnowledgeMaintenancePlannerOutput.copy_usage(value: object) -> object

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenancePlanningConfig

Application-owned identities, semantic policy, and resource ceilings.

Bases: _PlanningModel.

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_PLANNING_SCHEMA_VERSION
planner_id StrictStr required
planner_version StrictStr required
evaluator_id StrictStr required
evaluator_version StrictStr required
planner_model_ids tuple[StrictStr, ...] ()
evaluator_model_ids tuple[StrictStr, ...] ()
allowed_replacement_kinds tuple[StrictStr, ...] BUILTIN_KNOWLEDGE_KINDS
max_planner_input_bytes StrictInt 512 * 1024
max_plan_bytes StrictInt MAX_KNOWLEDGE_MAINTENANCE_BYTES
max_evaluator_input_bytes StrictInt 768 * 1024
max_evaluator_output_bytes StrictInt 128 * 1024
max_revalidation_bytes StrictInt 512 * 1024
max_revalidation_concurrency StrictInt 8
max_evidence_mappings StrictInt 100
max_replacement_text_bytes StrictInt 64 * 1024
max_claim_bytes StrictInt MAX_KNOWLEDGE_MAINTENANCE_TEXT_BYTES
max_planner_model_calls StrictInt 1
max_evaluator_model_calls StrictInt 1
max_planner_cost_micro_usd StrictInt 500000
max_evaluator_cost_micro_usd StrictInt 500000
max_total_cost_micro_usd StrictInt 1000000
source_revalidation_timeout_seconds StrictFloat 10.0
planner_timeout_seconds StrictFloat 30.0
evaluator_timeout_seconds StrictFloat 30.0
KnowledgeMaintenancePlanningConfig.validate_schema_version(value: object) -> object
KnowledgeMaintenancePlanningConfig.validate_identity(value: str, info) -> str
KnowledgeMaintenancePlanningConfig.copy_model_identities(value: object, info) -> tuple[str, ...]
KnowledgeMaintenancePlanningConfig.copy_allowed_kinds(value: object) -> tuple[str, ...]
KnowledgeMaintenancePlanningConfig.validate_positive_int(value: int, info) -> int
KnowledgeMaintenancePlanningConfig.validate_model_call_limit(value: int, info) -> int
KnowledgeMaintenancePlanningConfig.validate_nonnegative_int(value: int, info) -> int
KnowledgeMaintenancePlanningConfig.validate_timeout(value: float, info) -> float
KnowledgeMaintenancePlanningConfig.validate_bounds() -> KnowledgeMaintenancePlanningConfig
KnowledgeMaintenancePlanningConfig.fingerprint() -> str
KnowledgeMaintenancePlanningConfig.planner_budget() -> KnowledgeMaintenancePlannerBudget
KnowledgeMaintenancePlanningConfig.evaluator_budget() -> KnowledgeMaintenanceStageBudget

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenancePlanningLimitExceeded

A planning request exceeds a configured pre-invocation ceiling.

Bases: ValueError.

KnowledgeMaintenancePlanningLimitExceeded.__init__(limit: str) -> None

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenancePlanningOutcome

Exhaustive result of one read-only planning attempt.

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
NO_CANDIDATES class attribute 'no_candidates'
ROUTING_INCOMPLETE class attribute 'routing_incomplete'
SOURCE_SET_CHANGED class attribute 'source_set_changed'
SOURCE_REVALIDATION_FAILED class attribute 'source_revalidation_failed'
SOURCE_REVALIDATION_FAILED_AFTER_PLANNING class attribute 'source_revalidation_failed_after_planning'
SOURCE_REVALIDATION_FAILED_AFTER_EVALUATION class attribute 'source_revalidation_failed_after_evaluation'
PLANNER_TIMED_OUT class attribute 'planner_timed_out'
PLANNER_FAILED class attribute 'planner_failed'
PLANNER_INVALID class attribute 'planner_invalid'
PLANNER_OVER_BUDGET class attribute 'planner_over_budget'
DETERMINISTIC_REJECTED class attribute 'deterministic_rejected'
EVALUATOR_TIMED_OUT class attribute 'evaluator_timed_out'
EVALUATOR_FAILED class attribute 'evaluator_failed'
EVALUATOR_INVALID class attribute 'evaluator_invalid'
EVALUATOR_OVER_BUDGET class attribute 'evaluator_over_budget'
EVALUATOR_REJECTED class attribute 'evaluator_rejected'
ACCEPTED class attribute 'accepted'

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenancePlanningResult

Read-only result; accepted plans still have no storage authority.

Bases: _PlanningModel.

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_PLANNING_SCHEMA_VERSION
request_id StrictStr required
request_fingerprint StrictStr required
routing_result_fingerprint StrictStr required
configuration_fingerprint StrictStr required
planner_id StrictStr required
planner_version StrictStr required
evaluator_id StrictStr required
evaluator_version StrictStr required
outcome KnowledgeMaintenancePlanningOutcome required
code StrictStr required
plan KnowledgeMaintenancePlanDraft | None None
evaluation KnowledgeMaintenancePlanEvaluation | None None
planner_usage KnowledgeMaintenanceInferenceUsage | None None
evaluator_usage KnowledgeMaintenanceInferenceUsage | None None
processed_at datetime required
KnowledgeMaintenancePlanningResult.validate_schema_version(value: object) -> object
KnowledgeMaintenancePlanningResult.validate_request_id(value: str) -> str
KnowledgeMaintenancePlanningResult.validate_fingerprints(value: str, info) -> str
KnowledgeMaintenancePlanningResult.validate_component_identity(value: str, info) -> str
KnowledgeMaintenancePlanningResult.validate_code(value: str) -> str
KnowledgeMaintenancePlanningResult.copy_plan(value: object) -> object
KnowledgeMaintenancePlanningResult.copy_evaluation(value: object) -> object
KnowledgeMaintenancePlanningResult.copy_usage(value: object) -> object
KnowledgeMaintenancePlanningResult.validate_processed_at(value: datetime) -> datetime
KnowledgeMaintenancePlanningResult.validate_result_shape() -> KnowledgeMaintenancePlanningResult
KnowledgeMaintenancePlanningResult.fingerprint() -> str

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenancePlanningSnapshot

Minimum authorized routing material disclosed to planning components.

Bases: _PlanningModel.

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
request_id StrictStr required
policy_id StrictStr required
namespace StrictStr required
labels dict[str, str] Field(default_factory=dict)
routing_request_fingerprint StrictStr required
routing_result_fingerprint StrictStr required
routing_configuration_fingerprint StrictStr required
candidate_payload_bytes StrictInt required
candidates tuple[KnowledgeMaintenanceRoutedCandidate, ...] ()
routed_signals tuple[KnowledgeMaintenanceCandidateSignal, ...] ()
KnowledgeMaintenancePlanningSnapshot.validate_identity(value: str, info) -> str
KnowledgeMaintenancePlanningSnapshot.copy_labels(value: object) -> dict[str, str]
KnowledgeMaintenancePlanningSnapshot.validate_fingerprints(value: str, info) -> str
KnowledgeMaintenancePlanningSnapshot.validate_candidate_payload_bytes(value: int) -> int
KnowledgeMaintenancePlanningSnapshot.copy_candidates(value: object) -> tuple[KnowledgeMaintenanceRoutedCandidate, ...]
KnowledgeMaintenancePlanningSnapshot.copy_routed_signals(value: object) -> tuple[KnowledgeMaintenanceCandidateSignal, ...]
KnowledgeMaintenancePlanningSnapshot.validate_authorized_snapshot() -> KnowledgeMaintenancePlanningSnapshot
KnowledgeMaintenancePlanningSnapshot.fingerprint() -> str

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenancePlanningWorkflow

Generate and independently evaluate a bounded plan without writes.

KnowledgeMaintenancePlanningWorkflow.__init__(store: _PlanningStore, *, planner: KnowledgeMaintenancePlanner, evaluator: KnowledgeMaintenancePlanEvaluator, config: KnowledgeMaintenancePlanningConfig, clock: Callable[[], datetime] | None=None) -> None
KnowledgeMaintenancePlanningWorkflow.config() -> KnowledgeMaintenancePlanningConfig
async KnowledgeMaintenancePlanningWorkflow.plan(routing_request: KnowledgeMaintenanceRoutingRequest, routing_result: KnowledgeMaintenanceRoutingResult) -> KnowledgeMaintenancePlanningResult

Plan and evaluate one exact routed snapshot, failing closed.

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceRelationDraft

One proposed typed disposition before replacement identity allocation.

Bases: _PlanningModel.

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
id StrictStr required
subject KnowledgeMaintenancePlanEndpoint required
object KnowledgeMaintenancePlanEndpoint required
kind KnowledgeRelationKind required
evidence_mapping_ids tuple[StrictStr, ...] required
KnowledgeMaintenanceRelationDraft.validate_id(value: str) -> str
KnowledgeMaintenanceRelationDraft.copy_endpoint(value: object) -> object
KnowledgeMaintenanceRelationDraft.copy_evidence_mapping_ids(value: object) -> tuple[str, ...]
KnowledgeMaintenanceRelationDraft.validate_endpoint_roles() -> KnowledgeMaintenanceRelationDraft
KnowledgeMaintenanceRelationDraft.source_reference() -> KnowledgeRevisionRef

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceReplacementDraft

Semantic replacement content; application-owned scope fields are absent.

Bases: _PlanningModel.

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
text StrictStr required
title StrictStr | None None
kind StrictStr required
aspects tuple[StrictStr, ...] ()
impact_targets tuple[StrictStr, ...] ()
KnowledgeMaintenanceReplacementDraft.validate_text(value: str) -> str
KnowledgeMaintenanceReplacementDraft.validate_title(value: str | None) -> str | None
KnowledgeMaintenanceReplacementDraft.validate_kind(value: str) -> str
KnowledgeMaintenanceReplacementDraft.copy_facets(value: object, info) -> tuple[str, ...]

Release source · Runtime guarantees · Capability guides

from cayu import KnowledgeMaintenanceStageBudget

One explicit provider-neutral invocation budget.

Bases: _PlanningModel.

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
max_input_bytes StrictInt required
max_output_bytes StrictInt required
max_model_calls StrictInt required
max_cost_micro_usd StrictInt required
timeout_seconds StrictFloat required
allowed_model_ids tuple[StrictStr, ...] required
KnowledgeMaintenanceStageBudget.validate_positive_int(value: int, info) -> int
KnowledgeMaintenanceStageBudget.validate_model_calls(value: int) -> int
KnowledgeMaintenanceStageBudget.validate_cost(value: int) -> int
KnowledgeMaintenanceStageBudget.validate_timeout(value: float) -> float
KnowledgeMaintenanceStageBudget.copy_allowed_model_ids(value: object) -> tuple[str, ...]
KnowledgeMaintenanceStageBudget.validate_model_authority() -> KnowledgeMaintenanceStageBudget

Release source · Runtime guarantees · Capability guides

from cayu import MAX_KNOWLEDGE_MAINTENANCE_COST_MICRO_USD
MAX_KNOWLEDGE_MAINTENANCE_COST_MICRO_USD = 1000000000

Release source · Runtime guarantees · Capability guides

MAX_KNOWLEDGE_MAINTENANCE_EVALUATION_FINDINGS

Section titled “MAX_KNOWLEDGE_MAINTENANCE_EVALUATION_FINDINGS”
from cayu import MAX_KNOWLEDGE_MAINTENANCE_EVALUATION_FINDINGS
MAX_KNOWLEDGE_MAINTENANCE_EVALUATION_FINDINGS = 256

Release source · Runtime guarantees · Capability guides

from cayu import MAX_KNOWLEDGE_MAINTENANCE_MODEL_CALLS
MAX_KNOWLEDGE_MAINTENANCE_MODEL_CALLS = 16

Release source · Runtime guarantees · Capability guides

from cayu import MAX_KNOWLEDGE_MAINTENANCE_PLAN_CLAIMS
MAX_KNOWLEDGE_MAINTENANCE_PLAN_CLAIMS = 256

Release source · Runtime guarantees · Capability guides

from cayu import MAX_KNOWLEDGE_MAINTENANCE_PLANNING_BYTES
MAX_KNOWLEDGE_MAINTENANCE_PLANNING_BYTES = 4 * 1024 * 1024

Release source · Runtime guarantees · Capability guides

MAX_KNOWLEDGE_MAINTENANCE_PLANNING_TIMEOUT_SECONDS

Section titled “MAX_KNOWLEDGE_MAINTENANCE_PLANNING_TIMEOUT_SECONDS”
from cayu import MAX_KNOWLEDGE_MAINTENANCE_PLANNING_TIMEOUT_SECONDS
MAX_KNOWLEDGE_MAINTENANCE_PLANNING_TIMEOUT_SECONDS = 300.0

Release source · Runtime guarantees · Capability guides

from cayu import MAX_KNOWLEDGE_MAINTENANCE_TOKEN_COUNT
MAX_KNOWLEDGE_MAINTENANCE_TOKEN_COUNT = 2 ** 63 - 1

Release source · Runtime guarantees · Capability guides