Skip to content

cayu.verification.completion_verifiers

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.verification import CompletionVerifierExecutionError

A deterministic verifier failed without publishing a completion decision.

Bases: RuntimeError.

This type’s implementation and inherited behavior are available in the linked release source.

Release source · Runtime guarantees · Capability guides

from cayu.verification import CompletionVerifierExecutionRequest

Serializable authority for one bounded deterministic verifier execution.

Bases: FrozenWorkContractModel.

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_id str required
claim_id str required
decision_id str required
worker_id str required
lease_seconds StrictInt Field(default=300, ge=1, le=WORK_VERIFICATION_LEASE_MAX_SECONDS)
execution_timeout_seconds StrictFloat Field(default=30.0, gt=0, le=WORK_VERIFICATION_LEASE_MAX_SECONDS)
profile_adoption ExecutionProfileAdoptionIntent | None None
CompletionVerifierExecutionRequest.validate_identity(value: str, info) -> str
CompletionVerifierExecutionRequest.validate_timeout_within_lease() -> CompletionVerifierExecutionRequest
CompletionVerifierExecutionRequest.copy_profile_adoption(value: object) -> ExecutionProfileAdoptionIntent | None

Release source · Runtime guarantees · Capability guides

from cayu.verification import CompletionVerifierRequest

Immutable bounded evidence presented to one deterministic verifier.

Bases: FrozenWorkContractModel.

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
contract WorkContract required
attempt WorkAttempt required
proposal CompletionProposal required
CompletionVerifierRequest.copy_contract(value: object) -> object
CompletionVerifierRequest.copy_attempt(value: object) -> object
CompletionVerifierRequest.copy_proposal(value: object) -> object
CompletionVerifierRequest.validate_authority_chain() -> CompletionVerifierRequest

Release source · Runtime guarantees · Capability guides

from cayu.verification import CompletionVerifierUnavailable

The exact deterministic verifier required by a contract is unavailable.

Bases: RuntimeError.

This type’s implementation and inherited behavior are available in the linked release source.

Release source · Runtime guarantees · Capability guides

from cayu.verification import DeterministicCompletionVerifier

Read-only application policy resolved from a durable verifier reference.

The runtime may repeat verify after a crash before decision publication. Implementations must therefore be deterministic and side-effect-free. Any necessary external mutation belongs behind Cayu’s ordinary effect contracts.

Bases: ABC.

DeterministicCompletionVerifier.execution_profile_identity() -> ExecutionProfileBehaviorIdentity | None

Return stable application-versioned identity for verifier behavior.

DeterministicCompletionVerifier.execution_profile_components() -> tuple[CompletionVerifierProfileComponentDeclaration, ...]

Return stable identities for other decision-bearing dependencies.

async DeterministicCompletionVerifier.verify(request: CompletionVerifierRequest) -> CompletionVerifierDecision

Evaluate one completion proposal without choosing durable authority.

Release source · Runtime guarantees · Capability guides