Skip to content

cayu.evals.store

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.evals import EVAL_RUN_INVOCATION_MAX_BYTES
EVAL_RUN_INVOCATION_MAX_BYTES = 64 << 10

Release source · Runtime guarantees · Capability guides

from cayu.evals import EVAL_RUN_MAX_OBSERVATION_INTERVAL_SECONDS
EVAL_RUN_MAX_OBSERVATION_INTERVAL_SECONDS = 1.0

Release source · Runtime guarantees · Capability guides

from cayu.evals import EVAL_RUN_MAX_TERMINAL_WAIT_SECONDS
EVAL_RUN_MAX_TERMINAL_WAIT_SECONDS = 300.0

Release source · Runtime guarantees · Capability guides

from cayu.evals import EVAL_RUN_MIN_OBSERVATION_INTERVAL_SECONDS
EVAL_RUN_MIN_OBSERVATION_INTERVAL_SECONDS = 0.05

Release source · Runtime guarantees · Capability guides

from cayu.evals import eval_run_observation

Project a full public run record into its lightweight lifecycle shape.

eval_run_observation(record: EvalRunRecord) -> EvalRunObservation

Release source · Runtime guarantees · Capability guides

from cayu.evals import EVAL_STORE_DEFAULT_PAGE_BYTES
EVAL_STORE_DEFAULT_PAGE_BYTES = 1 << 20

Release source · Runtime guarantees · Capability guides

from cayu.evals import EVAL_STORE_DEFAULT_PAGE_SIZE
EVAL_STORE_DEFAULT_PAGE_SIZE = 50

Release source · Runtime guarantees · Capability guides

from cayu.evals import EVAL_STORE_MAX_CURSOR_BYTES
EVAL_STORE_MAX_CURSOR_BYTES = 1024

Release source · Runtime guarantees · Capability guides

from cayu.evals import EVAL_STORE_MAX_LEASE_SECONDS
EVAL_STORE_MAX_LEASE_SECONDS = 3600

Release source · Runtime guarantees · Capability guides

from cayu.evals import EVAL_STORE_MAX_PAGE_BYTES
EVAL_STORE_MAX_PAGE_BYTES = 8 << 20

Release source · Runtime guarantees · Capability guides

from cayu.evals import EVAL_STORE_MAX_PAGE_SIZE
EVAL_STORE_MAX_PAGE_SIZE = 200

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalAuthoredSuiteCatalogEntry

Bases: _EvalStoreModel.

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
revision StrictStr required
id StrictStr required
suite_revision StrictStr required
target_key StrictStr required
name StrictStr required
description StrictStr | None None
case_count StrictInt Field(ge=1, le=EVAL_CORPUS_MAX_CASES)
assertion_count StrictInt Field(ge=1, le=EVAL_CORPUS_MAX_CASES * EVAL_CORPUS_MAX_ASSERTIONS_PER_CASE)
simple_input_count StrictInt Field(ge=0, le=EVAL_CORPUS_MAX_CASES)
scenario_count StrictInt Field(ge=0, le=EVAL_CORPUS_MAX_CASES)
trials StrictInt Field(ge=1, le=EVAL_CORPUS_MAX_TRIALS)
timeout_seconds StrictInt Field(ge=1, le=EVAL_CORPUS_MAX_TIMEOUT_SECONDS)
document_bytes StrictInt Field(ge=1, le=EVAL_SUITE_AUTHORING_MAX_BYTES)
created_at datetime required
EvalAuthoredSuiteCatalogEntry.validate_revisions(value: str, info) -> str
EvalAuthoredSuiteCatalogEntry.validate_ids(value: str, info) -> str
EvalAuthoredSuiteCatalogEntry.validate_name(value: str, info) -> str
EvalAuthoredSuiteCatalogEntry.validate_description(value: str | None, info) -> str | None
EvalAuthoredSuiteCatalogEntry.validate_created_at(value: datetime, info) -> datetime
EvalAuthoredSuiteCatalogEntry.validate_counts() -> EvalAuthoredSuiteCatalogEntry

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalAuthoredSuiteCatalogPage

Bases: _EvalStoreModel.

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
items tuple[EvalAuthoredSuiteCatalogEntry, ...] Field(max_length=EVAL_STORE_MAX_PAGE_SIZE)
next_cursor StrictStr | None None
has_more StrictBool False
EvalAuthoredSuiteCatalogPage.validate_page() -> EvalAuthoredSuiteCatalogPage

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalAuthoredSuiteCatalogQuery

Bases: _EvalStoreModel.

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
target_key StrictStr | None None
suite_id StrictStr | None None
cursor StrictStr | None None
limit StrictInt Field(default=EVAL_STORE_DEFAULT_PAGE_SIZE, ge=1, le=EVAL_STORE_MAX_PAGE_SIZE)
max_result_bytes StrictInt Field(default=EVAL_STORE_DEFAULT_PAGE_BYTES, ge=1024, le=EVAL_STORE_MAX_PAGE_BYTES)
EvalAuthoredSuiteCatalogQuery.validate_ids(value: str | None, info) -> str | None
EvalAuthoredSuiteCatalogQuery.validate_cursor(value: str | None, info) -> str | None

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalAuthoredSuiteConflict

One immutable authored-suite revision resolves to contradictory content.

Bases: ValueError.

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

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalAuthoredSuiteReferenceError

An authored suite references an unavailable or incompatible scenario.

Bases: ValueError.

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

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalBaselineConflict

A baseline mutation lost its compare-and-swap or idempotency contract.

Bases: ValueError.

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

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalBaselineKey

Stable scope of one explicit baseline pointer.

Bases: _EvalStoreModel.

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
target_key StrictStr required
corpus_revision StrictStr required
suite_id StrictStr required
EvalBaselineKey.validate_portable_ids(value: str, info) -> str
EvalBaselineKey.validate_corpus_revision(value: str, info) -> str

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalBaselineMutationRecord

Immutable audit fact for one committed baseline transition.

Bases: _EvalStoreModel.

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
operation_id StrictStr required
key EvalBaselineKey required
expected_generation StrictInt Field(ge=0, le=_EVAL_STORE_MAX_BIGINT)
previous_result_revision StrictStr | None None
selected_result_revision StrictStr required
resulting_generation StrictInt Field(ge=1, le=_EVAL_STORE_MAX_BIGINT)
actor_id StrictStr required
created_at datetime required
EvalBaselineMutationRecord.validate_revision_fields(value: str | None, info) -> str | None
EvalBaselineMutationRecord.validate_actor_id(value: str, info) -> str
EvalBaselineMutationRecord.validate_created_at(value: datetime, info) -> datetime
EvalBaselineMutationRecord.validate_generations() -> EvalBaselineMutationRecord

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalBaselineRecord

Current mutable pointer to an immutable eval result.

Bases: _EvalStoreModel.

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
key EvalBaselineKey required
result_revision StrictStr required
generation StrictInt Field(ge=1, le=_EVAL_STORE_MAX_BIGINT)
updated_by StrictStr required
updated_at datetime required
EvalBaselineRecord.validate_result_revision(value: str, info) -> str
EvalBaselineRecord.validate_updated_by(value: str, info) -> str
EvalBaselineRecord.validate_updated_at(value: datetime, info) -> datetime

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalBaselineUpdate

Actor-attributed idempotent compare-and-swap baseline request.

Bases: _EvalStoreModel.

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
key EvalBaselineKey required
result_revision StrictStr required
expected_generation StrictInt Field(ge=0, le=_EVAL_STORE_MAX_BIGINT)
operation_id StrictStr required
actor_id StrictStr required
EvalBaselineUpdate.validate_revision_fields(value: str, info) -> str
EvalBaselineUpdate.validate_actor_id(value: str, info) -> str

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalCaseCatalogEntry

Bases: _EvalStoreModel.

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
corpus_revision StrictStr required
id StrictStr required
revision StrictStr required
suite_id StrictStr required
name StrictStr required
description StrictStr | None None
message_count StrictInt Field(ge=0, le=EVAL_CORPUS_MAX_MESSAGES_PER_CASE)
assertion_count StrictInt Field(ge=1, le=EVAL_CORPUS_MAX_ASSERTIONS_PER_CASE)
EvalCaseCatalogEntry.validate_revision_fields(value: str, info) -> str
EvalCaseCatalogEntry.validate_ids(value: str, info) -> str
EvalCaseCatalogEntry.validate_name(value: str, info) -> str
EvalCaseCatalogEntry.validate_description(value: str | None, info) -> str | None

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalCaseCatalogPage

Bases: _EvalStoreModel.

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
items tuple[EvalCaseCatalogEntry, ...] Field(max_length=EVAL_STORE_MAX_PAGE_SIZE)
next_cursor StrictStr | None None
has_more StrictBool False
EvalCaseCatalogPage.validate_page() -> EvalCaseCatalogPage

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalCaseCatalogQuery

Bases: _EvalStoreModel.

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
corpus_revision StrictStr required
suite_id StrictStr required
cursor StrictStr | None None
limit StrictInt Field(default=EVAL_STORE_DEFAULT_PAGE_SIZE, ge=1, le=EVAL_STORE_MAX_PAGE_SIZE)
max_result_bytes StrictInt Field(default=EVAL_STORE_DEFAULT_PAGE_BYTES, ge=1024, le=EVAL_STORE_MAX_PAGE_BYTES)
EvalCaseCatalogQuery.validate_revision(value: str, info) -> str
EvalCaseCatalogQuery.validate_suite_id(value: str, info) -> str
EvalCaseCatalogQuery.validate_cursor(value: str | None, info) -> str | None

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalCatalogQuery

Bases: _EvalStoreModel.

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
target_key StrictStr | None None
cursor StrictStr | None None
limit StrictInt Field(default=EVAL_STORE_DEFAULT_PAGE_SIZE, ge=1, le=EVAL_STORE_MAX_PAGE_SIZE)
max_result_bytes StrictInt Field(default=EVAL_STORE_DEFAULT_PAGE_BYTES, ge=1024, le=EVAL_STORE_MAX_PAGE_BYTES)
EvalCatalogQuery.validate_target_key(value: str | None, info) -> str | None
EvalCatalogQuery.validate_cursor(value: str | None, info) -> str | None

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalCorpusCatalogEntry

Bases: _EvalStoreModel.

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
revision StrictStr required
target_key StrictStr required
evidence_policy_revision StrictStr required
pricing_profile_fingerprint StrictStr | None None
suite_count StrictInt Field(ge=1, le=EVAL_CORPUS_MAX_SUITES)
case_count StrictInt Field(ge=1, le=EVAL_CORPUS_MAX_CASES)
assertion_count StrictInt Field(ge=1, le=EVAL_CORPUS_MAX_CASES * EVAL_CORPUS_MAX_ASSERTIONS_PER_CASE)
expanded_assertion_result_count StrictInt Field(ge=1, le=EVAL_CORPUS_MAX_SUITES * EVAL_CORPUS_MAX_PUBLISHED_ASSERTION_RESULTS)
document_bytes StrictInt Field(ge=1, le=EVAL_CORPUS_MAX_BYTES)
created_at datetime required
EvalCorpusCatalogEntry.validate_revision_fields(value: str | None, info) -> str | None
EvalCorpusCatalogEntry.validate_target_key(value: str, info) -> str
EvalCorpusCatalogEntry.validate_created_at(value: datetime, info) -> datetime
EvalCorpusCatalogEntry.validate_counts() -> EvalCorpusCatalogEntry

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalCorpusCatalogPage

Bases: _EvalStoreModel.

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
items tuple[EvalCorpusCatalogEntry, ...] Field(max_length=EVAL_STORE_MAX_PAGE_SIZE)
next_cursor StrictStr | None None
has_more StrictBool False
EvalCorpusCatalogPage.validate_page() -> EvalCorpusCatalogPage

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalCorpusConflict

One immutable corpus revision resolves to contradictory stored content.

Bases: ValueError.

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

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalJudgeCalibrationConflict

A calibration revision or run identity resolves to contradictory content.

Bases: ValueError.

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

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalResultConflict

One immutable result revision resolves to contradictory stored content.

Bases: ValueError.

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

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalResultPage

Bases: _EvalStoreModel.

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
items tuple[EvalResultRecord, ...] Field(max_length=EVAL_STORE_MAX_PAGE_SIZE)
next_cursor StrictStr | None None
has_more StrictBool False
EvalResultPage.validate_page() -> EvalResultPage

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalResultQuery

Bounded target-scoped immutable result catalog query.

Bases: _EvalStoreModel.

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
target_key StrictStr required
origin EvalResultOrigin | None None
cursor StrictStr | None None
limit StrictInt Field(default=EVAL_STORE_DEFAULT_PAGE_SIZE, ge=1, le=EVAL_STORE_MAX_PAGE_SIZE)
max_result_bytes StrictInt Field(default=EVAL_STORE_DEFAULT_PAGE_BYTES, ge=1024, le=EVAL_STORE_MAX_PAGE_BYTES)
EvalResultQuery.validate_target_key(value: str, info) -> str
EvalResultQuery.validate_cursor(value: str | None, info) -> str | None

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalResultRecord

Bounded catalog metadata for one immutable captured or fresh result.

Bases: _EvalStoreModel.

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
revision StrictStr required
origin EvalResultOrigin required
target EvalResultTargetIdentityV1 required
corpus_revision StrictStr required
suite_id StrictStr required
suite_revision StrictStr required
status Literal['passed', 'failed', 'unavailable', 'error'] required
score StrictFloat | None Field(default=None, ge=0.0, le=1.0)
document_bytes StrictInt Field(ge=1, le=CORPUS_EXECUTION_RESULT_MAX_BYTES)
created_at datetime required
EvalResultRecord.validate_revisions(value: str, info) -> str
EvalResultRecord.validate_suite_id(value: str, info) -> str
EvalResultRecord.validate_created_at(value: datetime, info) -> datetime
EvalResultRecord.validate_result_summary() -> EvalResultRecord

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalRunAdmissionConflict

A run id or idempotency key is already bound to another request.

Bases: ValueError.

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

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalRunClaim

Bases: _EvalStoreModel.

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
run_id StrictStr required
claim_id StrictStr Field(repr=False)
epoch StrictInt Field(ge=1, le=_EVAL_STORE_MAX_BIGINT)
EvalRunClaim.validate_ids(value: str, info) -> str

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalRunClaimLost

A worker no longer owns the live fenced claim required for a mutation.

Bases: RuntimeError.

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

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalRunCostBudget

One server-priced cost ceiling applied independently to each eval-trial session.

Bases: _EvalStoreModel.

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_estimated_cost Decimal Field(gt=0)
currency StrictStr Field(default='USD', min_length=1, max_length=16)
EvalRunCostBudget.validate_cost(value: Decimal, info) -> Decimal
EvalRunCostBudget.validate_currency(value: str, info) -> str

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalRunFailureCode

Safe terminal diagnostics; arbitrary exception text is never persisted.

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
TARGET_UNAVAILABLE class attribute 'target_unavailable'
CORPUS_UNAVAILABLE class attribute 'corpus_unavailable'
EXECUTION_FAILED class attribute 'execution_failed'
WORKER_INTERRUPTED class attribute 'worker_interrupted'

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalRunFailureDiagnostic

Safe causal evidence bound to the containing run and fenced terminal claim.

Bases: _EvalStoreModel.

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
reason EvalRunFailureReason required
provider_protocol_reason StrictStr | None Field(default=None, max_length=128)
EvalRunFailureDiagnostic.validate_protocol_reason(value: str | None) -> str | None
EvalRunFailureDiagnostic.validate_protocol_failure() -> EvalRunFailureDiagnostic
EvalRunFailureDiagnostic.phase() -> str

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalRunFailureReason

Closed causal vocabulary; values never come from exception messages.

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
CORPUS_LOAD_FAILED class attribute 'corpus_load_failed'
CORPUS_MISSING class attribute 'corpus_missing'
TARGET_REGISTRATION_MISSING class attribute 'target_registration_missing'
TARGET_PREFLIGHT_FAILED class attribute 'target_preflight_failed'
EXECUTION_PROFILE_MISSING class attribute 'execution_profile_missing'
EXECUTION_PROFILE_CHANGED class attribute 'execution_profile_changed'
TARGET_IDENTITY_FAILED class attribute 'target_identity_failed'
TARGET_IDENTITY_CHANGED class attribute 'target_identity_changed'
CORPUS_COMPILATION_FAILED class attribute 'corpus_compilation_failed'
EXECUTION_FAILED class attribute 'execution_failed'
EXECUTION_PROFILE_REJECTED class attribute 'execution_profile_rejected'
PROVIDER_PROTOCOL_FAILED class attribute 'provider_protocol_failed'
EXECUTION_CANCELLED class attribute 'execution_cancelled'
RESULT_PUBLICATION_FAILED class attribute 'result_publication_failed'

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalRunInvocation

Durable, authority-free execution contractions and trusted caller provenance.

The HTTP API constructs this value after authentication. It retains only the bounded subject/tenant projection needed to mint ordinary runtime invocation provenance after a worker restart; authentication claims never enter EvalStore. None bounds inherit the server-owned target request base.

Bases: _EvalStoreModel.

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
retain_trial_checkpoints StrictBool Field(default=False, exclude_if=lambda value: value is False)
recovery_policy EvalRunRecoveryPolicyV1 | None Field(default=None, exclude_if=lambda value: value is None)
retry_of EvalRunRetryLineageV1 | None Field(default=None, exclude_if=lambda value: value is None)
source SessionExecutionSource SessionExecutionSource.SDK_RUN
origin InvocationOrigin | None None
max_steps StrictInt | None Field(default=None, ge=1, le=MAX_STEPS)
limits RunLimits | None None
cost_budget EvalRunCostBudget | None None
execution_profile EvalExecutionProfileBindingV1 | None Field(default=None, exclude_if=lambda value: value is None)
execution_profile_snapshot EvalExecutionProfileV1 | None Field(default=None, exclude_if=lambda value: value is None)
admission_request_revision StrictStr | None Field(default=None, description='Secret-safe identity of the exact authenticated request that admitted this run.', exclude_if=lambda value: value is None)
authored_suite_revision StrictStr | None Field(default=None, exclude_if=lambda value: value is None)
authored_suite_selection_revision StrictStr | None Field(default=None, exclude_if=lambda value: value is None)
authored_suite_launch_revision StrictStr | None Field(default=None, description='Secret-safe identity shared by every durable run admitted by one authored-suite launch.', exclude_if=lambda value: value is None)
authored_suite_launch_lane StrictInt | None Field(default=None, ge=0, le=EVAL_SUITE_MAX_CONCURRENCY - 1, description='Concurrency lane shared by serialized runs from one suite launch.', exclude_if=lambda value: value is None)
authored_suite_exposure EvalSuiteRunExposureV1 | None Field(default=None, exclude_if=lambda value: value is None)
scenario EvalScenarioRunInvocation | None Field(default=None, exclude_if=lambda value: value is None)
EvalRunInvocation.validate_schema_version_type(value: object) -> object
EvalRunInvocation.copy_origin(value: object) -> object
EvalRunInvocation.copy_limits(value: object) -> object
EvalRunInvocation.copy_cost_budget(value: object) -> object
EvalRunInvocation.copy_execution_profile(value: object) -> object
EvalRunInvocation.copy_execution_profile_snapshot(value: object) -> object
EvalRunInvocation.copy_scenario(value: object) -> object
EvalRunInvocation.copy_authored_suite_exposure(value: object) -> object
EvalRunInvocation.validate_content_revisions(value: str | None, info) -> str | None
EvalRunInvocation.validate_provenance() -> EvalRunInvocation

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalRunLease

Bases: _EvalStoreModel.

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
run EvalRunRecord required
claim EvalRunClaim Field(repr=False)
EvalRunLease.validate_binding() -> EvalRunLease

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalRunObservation

Small mutable-lifecycle projection that never rehydrates run invocation data.

Bases: _EvalStoreModel.

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
run_id StrictStr required
status EvalRunStatus required
attempt_count StrictInt Field(ge=0, le=_EVAL_STORE_MAX_BIGINT)
updated_at datetime required
ownership EvalRunOwnership | None None
EvalRunObservation.validate_run_id(value: str, info) -> str
EvalRunObservation.validate_updated_at(value: datetime, info) -> datetime
EvalRunObservation.validate_lifecycle() -> EvalRunObservation
EvalRunObservation.id() -> str
EvalRunObservation.terminal() -> bool

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalRunOwnership

Bases: _EvalStoreModel.

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
epoch StrictInt Field(ge=1, le=_EVAL_STORE_MAX_BIGINT)
lease_expires_at datetime required
EvalRunOwnership.validate_lease_expires_at(value: datetime, info) -> datetime

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalRunPage

Bases: _EvalStoreModel.

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
items tuple[EvalRunRecord, ...] Field(max_length=EVAL_STORE_MAX_PAGE_SIZE)
next_cursor StrictStr | None None
has_more StrictBool False
EvalRunPage.validate_page() -> EvalRunPage

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalRunQuery

Bases: _EvalStoreModel.

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
target_key StrictStr | None None
status EvalRunStatus | None None
corpus_revision StrictStr | None None
cursor StrictStr | None None
limit StrictInt Field(default=EVAL_STORE_DEFAULT_PAGE_SIZE, ge=1, le=EVAL_STORE_MAX_PAGE_SIZE)
max_result_bytes StrictInt Field(default=EVAL_STORE_DEFAULT_PAGE_BYTES, ge=1024, le=EVAL_STORE_MAX_PAGE_BYTES)
EvalRunQuery.validate_target_key(value: str | None, info) -> str | None
EvalRunQuery.validate_revision(value: str | None, info) -> str | None
EvalRunQuery.validate_cursor(value: str | None, info) -> str | None

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalRunRecord

Bases: _EvalStoreModel.

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
spec EvalRunSpec required
status EvalRunStatus required
attempt_count StrictInt Field(ge=0, le=_EVAL_STORE_MAX_BIGINT)
created_at datetime required
updated_at datetime required
started_at datetime | None None
finished_at datetime | None None
cancel_requested_at datetime | None None
ownership EvalRunOwnership | None None
result EvalRunResultSummary | None None
failure_code EvalRunFailureCode | None None
failure_diagnostic EvalRunFailureDiagnostic | None None
scenario_progress EvalScenarioRunProgress | None Field(default=None, exclude_if=lambda value: value is None)
EvalRunRecord.validate_timestamps(value: datetime | None, info) -> datetime | None
EvalRunRecord.validate_lifecycle() -> EvalRunRecord
EvalRunRecord.id() -> str

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalRunRequest

Bases: EvalRunSpec.

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
run_id StrictStr required
corpus_revision StrictStr required
target_key StrictStr required
suite_id StrictStr required
suite_revision StrictStr required
max_concurrency StrictInt Field(ge=1, le=EVAL_MAX_CONCURRENCY)
invocation EvalRunInvocation Field(default_factory=EvalRunInvocation)
idempotency_key StrictStr Field(repr=False)
EvalRunRequest.validate_run_id(value: str, info) -> str
EvalRunRequest.validate_revisions(value: str, info) -> str
EvalRunRequest.validate_portable_ids(value: str, info) -> str
EvalRunRequest.copy_invocation(value: object) -> object
EvalRunRequest.id() -> str
EvalRunRequest.validate_idempotency_key(value: str, info) -> str
EvalRunRequest.same_logical_request(other: EvalRunRequest) -> bool

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalRunResultSummary

Bases: _EvalStoreModel.

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
revision StrictStr required
status Literal['passed', 'failed', 'unavailable', 'error'] required
score StrictFloat | None Field(default=None, ge=0.0, le=1.0)
duration_ms StrictInt Field(ge=0, le=_EVAL_STORE_MAX_BIGINT)
EvalRunResultSummary.validate_revision(value: str, info) -> str
EvalRunResultSummary.validate_score() -> EvalRunResultSummary

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalRunSpec

Bases: _EvalStoreModel.

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
run_id StrictStr required
corpus_revision StrictStr required
target_key StrictStr required
suite_id StrictStr required
suite_revision StrictStr required
max_concurrency StrictInt Field(ge=1, le=EVAL_MAX_CONCURRENCY)
invocation EvalRunInvocation Field(default_factory=EvalRunInvocation)
EvalRunSpec.validate_run_id(value: str, info) -> str
EvalRunSpec.validate_revisions(value: str, info) -> str
EvalRunSpec.validate_portable_ids(value: str, info) -> str
EvalRunSpec.copy_invocation(value: object) -> object
EvalRunSpec.id() -> str

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalRunStateConflict

A requested run lifecycle transition is not valid from current state.

Bases: ValueError.

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

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalRunStatus

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
QUEUED class attribute 'queued'
RUNNING class attribute 'running'
CANCELLING class attribute 'cancelling'
COMPLETED class attribute 'completed'
FAILED class attribute 'failed'
CANCELLED class attribute 'cancelled'

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalScenarioApprovalDecisionRecord

Bases: _EvalStoreModel.

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 Literal['approve', 'deny'] required
reason StrictStr | None Field(default=None, max_length=2048)
actor_id StrictStr Field(max_length=512)
submitted_at datetime required
EvalScenarioApprovalDecisionRecord.validate_reason(value: str | None, info) -> str | None
EvalScenarioApprovalDecisionRecord.validate_actor_id(value: str, info) -> str
EvalScenarioApprovalDecisionRecord.validate_submitted_at(value: datetime, info) -> datetime

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalScenarioApprovalSubmission

Bases: _EvalStoreModel.

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
expected_progress_revision StrictStr required
trial_number StrictInt Field(ge=1, le=EVAL_CORPUS_MAX_TRIALS)
event_id StrictStr required
decision Literal['approve', 'deny'] required
reason StrictStr | None Field(default=None, max_length=2048)
actor_id StrictStr Field(max_length=512)
EvalScenarioApprovalSubmission.validate_expected_revision(value: str, info) -> str
EvalScenarioApprovalSubmission.validate_event_id(value: str, info) -> str
EvalScenarioApprovalSubmission.validate_reason(value: str | None, info) -> str | None
EvalScenarioApprovalSubmission.validate_actor_id(value: str, info) -> str

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalScenarioArtifactReference

One immutable scenario requirement-to-artifact launch selection.

Bases: _EvalStoreModel.

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
requirement_id StrictStr required
artifact_id StrictStr required
EvalScenarioArtifactReference.validate_requirement_id(value: str, info) -> str
EvalScenarioArtifactReference.validate_artifact_id(value: str, info) -> str

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalScenarioCatalogEntry

Bases: _EvalStoreModel.

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
revision StrictStr required
id StrictStr required
target_key StrictStr required
name StrictStr required
description StrictStr | None None
event_count StrictInt Field(ge=1, le=EVAL_SCENARIO_MAX_EVENTS)
input_event_count StrictInt Field(ge=1, le=EVAL_SCENARIO_MAX_EVENTS)
approval_checkpoint_count StrictInt Field(ge=0, le=EVAL_SCENARIO_MAX_EVENTS)
message_count StrictInt Field(ge=1, le=EVAL_SCENARIO_MAX_EVENTS * 32)
part_count StrictInt Field(ge=1, le=EVAL_SCENARIO_MAX_EVENTS * 32 * 32)
artifact_requirement_count StrictInt Field(ge=0, le=EVAL_SCENARIO_MAX_ARTIFACT_REQUIREMENTS)
secret_requirement_count StrictInt Field(ge=0, le=EVAL_SCENARIO_MAX_SECRET_REQUIREMENTS)
document_bytes StrictInt Field(ge=1, le=EVAL_SCENARIO_MAX_BYTES)
created_at datetime required
EvalScenarioCatalogEntry.validate_revision(value: str, info) -> str
EvalScenarioCatalogEntry.validate_ids(value: str, info) -> str
EvalScenarioCatalogEntry.validate_name(value: str, info) -> str
EvalScenarioCatalogEntry.validate_description(value: str | None, info) -> str | None
EvalScenarioCatalogEntry.validate_created_at(value: datetime, info) -> datetime
EvalScenarioCatalogEntry.validate_counts() -> EvalScenarioCatalogEntry

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalScenarioCatalogPage

Bases: _EvalStoreModel.

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
items tuple[EvalScenarioCatalogEntry, ...] Field(max_length=EVAL_STORE_MAX_PAGE_SIZE)
next_cursor StrictStr | None None
has_more StrictBool False
EvalScenarioCatalogPage.validate_page() -> EvalScenarioCatalogPage

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalScenarioCatalogQuery

Bases: _EvalStoreModel.

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
target_key StrictStr | None None
scenario_id StrictStr | None None
cursor StrictStr | None None
limit StrictInt Field(default=EVAL_STORE_DEFAULT_PAGE_SIZE, ge=1, le=EVAL_STORE_MAX_PAGE_SIZE)
max_result_bytes StrictInt Field(default=EVAL_STORE_DEFAULT_PAGE_BYTES, ge=1024, le=EVAL_STORE_MAX_PAGE_BYTES)
EvalScenarioCatalogQuery.validate_ids(value: str | None, info) -> str | None
EvalScenarioCatalogQuery.validate_cursor(value: str | None, info) -> str | None

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalScenarioConflict

One immutable scenario revision resolves to contradictory stored content.

Bases: ValueError.

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

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalScenarioRunInvocation

Authority-free scenario launch facts frozen into one durable run.

Bases: _EvalStoreModel.

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
scenario_revision StrictStr required
binding_revision StrictStr required
authored_suite_revision StrictStr | None Field(default=None, exclude_if=lambda value: value is None)
authored_case_revision StrictStr | None Field(default=None, exclude_if=lambda value: value is None)
environment_name StrictStr | None None
trials StrictInt Field(ge=1, le=EVAL_CORPUS_MAX_TRIALS)
timeout_seconds StrictInt Field(ge=1, le=EVAL_CORPUS_MAX_TIMEOUT_SECONDS)
artifact_references tuple[EvalScenarioArtifactReference, ...] Field(default_factory=tuple, max_length=EVAL_SCENARIO_MAX_ARTIFACT_REQUIREMENTS)
EvalScenarioRunInvocation.validate_schema_version_type(value: object) -> object
EvalScenarioRunInvocation.validate_revisions(value: str | None, info) -> str | None
EvalScenarioRunInvocation.validate_environment_name(value: str | None, info) -> str | None
EvalScenarioRunInvocation.validate_artifact_references() -> EvalScenarioRunInvocation

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalScenarioRunProgress

Bases: _EvalStoreModel.

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
revision StrictStr required
scenario_revision StrictStr required
binding_revision StrictStr required
attempt StrictInt Field(ge=1, le=_EVAL_STORE_MAX_BIGINT)
trials tuple[EvalScenarioTrialProgress, ...] Field(min_length=1, max_length=EVAL_CORPUS_MAX_TRIALS)
EvalScenarioRunProgress.validate_schema_version_type(value: object) -> object
EvalScenarioRunProgress.validate_revisions(value: str, info) -> str
EvalScenarioRunProgress.validate_progress() -> EvalScenarioRunProgress
EvalScenarioRunProgress.create(*, scenario_revision: str, binding_revision: str, attempt: int, trials: tuple[EvalScenarioTrialProgress, ...]) -> EvalScenarioRunProgress
EvalScenarioRunProgress.replace_trial(trial: EvalScenarioTrialProgress) -> EvalScenarioRunProgress

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalScenarioTrialFailureCode

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
EXECUTION_FAILED class attribute 'execution_failed'
EXECUTION_PROFILE_CHANGED class attribute 'execution_profile_changed'
UNEXPECTED_SESSION_STATE class attribute 'unexpected_session_state'
EXPECTED_APPROVAL_UNAVAILABLE class attribute 'expected_approval_unavailable'
EXPECTED_USER_INPUT_UNAVAILABLE class attribute 'expected_user_input_unavailable'

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalScenarioTrialPhase

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
PENDING class attribute 'pending'
RUNNING class attribute 'running'
AWAITING_APPROVAL class attribute 'awaiting_approval'
AWAITING_RESUME class attribute 'awaiting_resume'
COMPLETED class attribute 'completed'
ERROR class attribute 'error'

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalScenarioTrialProgress

Bases: _EvalStoreModel.

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
trial_number StrictInt Field(ge=1, le=EVAL_CORPUS_MAX_TRIALS)
phase EvalScenarioTrialPhase required
session_id StrictStr | None None
next_event_sequence StrictInt Field(ge=0, le=EVAL_SCENARIO_MAX_EVENTS)
pending_event_id StrictStr | None None
pending_tool_name StrictStr | None None
pending_input_id StrictStr | None None
pending_resume_kind Literal['user_input', 'manual_recovery'] | None None
approval EvalScenarioApprovalDecisionRecord | None None
failure_code EvalScenarioTrialFailureCode | None None
EvalScenarioTrialProgress.validate_session_id(value: str | None, info) -> str | None
EvalScenarioTrialProgress.validate_pending_event_id(value: str | None, info) -> str | None
EvalScenarioTrialProgress.validate_pending_tool_name(value: str | None, info) -> str | None
EvalScenarioTrialProgress.validate_pending_input_id(value: str | None, info) -> str | None
EvalScenarioTrialProgress.validate_phase() -> EvalScenarioTrialProgress

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalStore

Bounded persistence for public eval corpora, run state, and safe results.

Bases: ABC.

async EvalStore.close() -> None

Release store resources; process-local stores may perform no work.

async EvalStore.save_corpus(corpus: EvalCorpusDocument, *, redact_json: Callable[[Any], Any]) -> EvalCorpusCatalogEntry

Scan and atomically save one complete immutable corpus revision.

async EvalStore.load_corpus(revision: str, *, max_bytes: int=EVAL_CORPUS_MAX_BYTES) -> EvalCorpusDocument | None

Load one corpus without crossing the caller’s byte ceiling.

async EvalStore.list_corpora(query: EvalCatalogQuery | None=None) -> EvalCorpusCatalogPage

List immutable corpus revisions in newest-first keyset order.

async EvalStore.save_scenario(scenario: EvalScenarioDocumentV2, *, redact_json: Callable[[Any], Any]) -> EvalScenarioCatalogEntry

Scan and atomically save one immutable portable scenario revision.

async EvalStore.load_scenario(revision: str, *, max_bytes: int=EVAL_SCENARIO_MAX_BYTES) -> EvalScenarioDocumentV2 | None

Load one scenario without crossing the caller’s byte ceiling.

async EvalStore.list_scenarios(query: EvalScenarioCatalogQuery | None=None) -> EvalScenarioCatalogPage

List immutable scenario revisions in newest-first keyset order.

async EvalStore.save_authored_suite(document: EvalSuiteDocument, *, redact_json: Callable[[Any], Any]) -> EvalAuthoredSuiteCatalogEntry

Scan and atomically save one reviewed immutable authored suite.

async EvalStore.load_authored_suite(revision: str, *, max_bytes: int=EVAL_SUITE_AUTHORING_MAX_BYTES) -> EvalSuiteDocument | None

Load one authored suite without crossing the caller byte ceiling.

async EvalStore.list_authored_suites(query: EvalAuthoredSuiteCatalogQuery | None=None) -> EvalAuthoredSuiteCatalogPage

List immutable authored suite revisions in newest-first keyset order.

async EvalStore.save_judge_calibration(report: EvalJudgeCalibrationReportV1, *, redact_json: Callable[[Any], Any]) -> EvalJudgeCalibrationReportV1

Scan and atomically retain every trial in one completed calibration.

async EvalStore.load_judge_calibration(revision: str, *, max_bytes: int=EVAL_JUDGE_CALIBRATION_MAX_BYTES) -> EvalJudgeCalibrationReportV1 | None

Load one immutable completed calibration by content revision.

async EvalStore.load_judge_calibration_by_run_id(run_id: str, *, max_bytes: int=EVAL_JUDGE_CALIBRATION_MAX_BYTES) -> EvalJudgeCalibrationReportV1 | None

Recover one completed calibration after retry or server restart.

async EvalStore.list_suites(query: EvalSuiteCatalogQuery) -> EvalSuiteCatalogPage

List bounded suite projections for one corpus revision.

async EvalStore.list_cases(query: EvalCaseCatalogQuery) -> EvalCaseCatalogPage

List bounded case projections for one corpus suite.

async EvalStore.admit_run(request: EvalRunRequest, *, redact_json: Callable[[Any], Any]) -> EvalRunRecord

Atomically admit or replay one logical run request.

async EvalStore.load_run_by_idempotency_key(idempotency_key: str) -> EvalRunRecord | None

Load a previously admitted run by its server-scoped idempotency digest.

async EvalStore.load_run(run_id: str) -> EvalRunRecord | None

Load one run’s public lifecycle projection.

async EvalStore.load_run_observation(run_id: str) -> EvalRunObservation | None

Load mutable claim/status state without requiring immutable invocation data.

Custom stores retain compatibility through this full-record fallback. Built-in stores override it with a small indexed projection.

async EvalStore.wait_for_run_terminal(run_id: str, *, timeout_seconds: float=30.0, poll_interval_seconds: float=EVAL_RUN_MIN_OBSERVATION_INTERVAL_SECONDS, max_poll_interval_seconds: float=EVAL_RUN_MAX_OBSERVATION_INTERVAL_SECONDS) -> EvalRunObservation | None

Wait within a strict deadline for a terminal run observation.

Polling begins no faster than the public 50 ms floor and exponentially backs off to the caller’s bounded ceiling. A missing run returns None; deadline exhaustion raises TimeoutError.

async EvalStore.list_runs(query: EvalRunQuery | None=None) -> EvalRunPage

List run projections in newest-first keyset order.

async EvalStore.claim_run(*, target_key: str | None=None, launch_revision: str | None=None, lease_seconds: int=300) -> EvalRunLease | None

Claim eligible work, optionally restricted to one exact authored launch.

async EvalStore.claim_run_for_targets(target_keys: tuple[str, ...], *, lease_seconds: int=300) -> EvalRunLease | None

Claim work only from a bounded approved target set.

Custom stores inherit a compatible sequential fallback. Durable built-in stores override this with one indexed atomic claim across the whole set.

async EvalStore.heartbeat_run(claim: EvalRunClaim, *, extend_seconds: int=300) -> EvalRunRecord

Extend one still-live fenced run claim.

async EvalStore.heartbeat_run_observation(claim: EvalRunClaim, *, extend_seconds: int=300) -> EvalRunObservation

Extend a claim and return only its mutable lifecycle projection.

Custom stores retain compatibility through the full-record heartbeat. Built-in stores override this method to avoid immutable rehydration.

async EvalStore.request_cancel(run_id: str) -> EvalRunRecord

Persist cancellation intent, terminalizing unclaimed queued work.

async EvalStore.initialize_scenario_progress(claim: EvalRunClaim, progress: EvalScenarioRunProgress) -> EvalRunRecord

Replace scenario progress for a newly claimed execution attempt.

async EvalStore.update_scenario_trial(claim: EvalRunClaim, trial: EvalScenarioTrialProgress) -> EvalRunRecord

Fenced update of one trial inside the current scenario attempt.

async EvalStore.load_trial_checkpoints(claim: EvalRunClaim) -> tuple[EvalRunTrialCheckpoint, ...]

Load terminal trial slots only while the exact run claim remains live.

async EvalStore.load_trial_evidence_links(run_id: str) -> tuple[EvalTrialEvidenceLinkV1, ...]

Read private retained links without execution authority; unsupported stores return none.

async EvalStore.save_trial_checkpoint(claim: EvalRunClaim, checkpoint: EvalRunTrialCheckpoint, *, redact_json: Callable[[Any], Any]) -> None

Idempotently retain one terminal slot behind the live publication fence.

async EvalStore.submit_scenario_approval(run_id: str, submission: EvalScenarioApprovalSubmission) -> EvalRunRecord

CAS one fresh operator decision into the exact pending checkpoint.

async EvalStore.publish_result(claim: EvalRunClaim, result: CorpusExecutionResult, *, redact_json: Callable[[Any], Any]) -> EvalRunRecord

Atomically publish exactly one immutable safe terminal result.

async EvalStore.fail_run(claim: EvalRunClaim, code: EvalRunFailureCode, *, diagnostic: EvalRunFailureDiagnostic | None=None) -> EvalRunRecord

Terminalize owned work with a closed, credential-free diagnostic.

async EvalStore.finish_cancel(claim: EvalRunClaim) -> EvalRunRecord

Acknowledge cancellation after the owner has stopped execution.

async EvalStore.release_run(claim: EvalRunClaim) -> EvalRunRecord

Release stopped owned work for retry, or finish requested cancellation.

async EvalStore.load_result(run_id: str, *, max_bytes: int=CORPUS_EXECUTION_RESULT_MAX_BYTES) -> CorpusExecutionResult | None

Load one immutable safe result under an exact byte ceiling.

async EvalStore.save_captured_result(corpus: EvalCorpusDocument, result: CapturedEvaluationResultV1, *, redact_json: Callable[[Any], Any]) -> EvalResultRecord

Atomically save one immutable corpus and its captured result.

Existing custom V1 stores remain constructible. They opt into the new contract by overriding this method and captured_results.

async EvalStore.load_result_by_revision(revision: str, *, max_bytes: int=CORPUS_EXECUTION_RESULT_MAX_BYTES) -> CorpusExecutionResult | CapturedEvaluationResultV1 | None

Load one immutable result independent of its captured/fresh origin.

async EvalStore.load_result_record(revision: str) -> EvalResultRecord | None

Load bounded metadata for one immutable result revision.

async EvalStore.list_results(query: EvalResultQuery) -> EvalResultPage

List target-scoped immutable result metadata in keyset order.

async EvalStore.set_baseline(update: EvalBaselineUpdate, *, redact_json: Callable[[Any], Any]) -> EvalBaselineMutationRecord

Commit or replay one actor-attributed baseline CAS mutation.

async EvalStore.load_baseline(key: EvalBaselineKey) -> EvalBaselineRecord | None

Load the current baseline pointer for one exact evaluation scope.

async EvalStore.load_baseline_mutation(operation_id: str) -> EvalBaselineMutationRecord | None

Load one immutable baseline audit fact by its idempotency digest.

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalStorePublicationRejected

Public eval data could not cross the active credential-redaction boundary.

Bases: ValueError.

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

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalStoreResultTooLarge

A bounded eval-store read cannot fit the requested byte ceiling.

Bases: ValueError.

EvalStoreResultTooLarge.__init__(max_bytes: int) -> None

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalStoreTransientContention

A bounded durable eval-store write exhausted its transient contention budget.

Bases: RuntimeError.

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

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalSuiteCatalogEntry

Bases: _EvalStoreModel.

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
corpus_revision StrictStr required
id StrictStr required
revision StrictStr required
name StrictStr required
description StrictStr | None None
case_count StrictInt Field(ge=1, le=EVAL_CORPUS_MAX_CASES)
assertion_count StrictInt Field(ge=1, le=EVAL_CORPUS_MAX_CASES * EVAL_CORPUS_MAX_ASSERTIONS_PER_CASE)
trials StrictInt Field(ge=1, le=EVAL_CORPUS_MAX_TRIALS)
timeout_seconds StrictInt Field(ge=1, le=EVAL_CORPUS_MAX_TIMEOUT_SECONDS)
EvalSuiteCatalogEntry.validate_revision_fields(value: str, info) -> str
EvalSuiteCatalogEntry.validate_id(value: str, info) -> str
EvalSuiteCatalogEntry.validate_name(value: str, info) -> str
EvalSuiteCatalogEntry.validate_description(value: str | None, info) -> str | None
EvalSuiteCatalogEntry.validate_counts() -> EvalSuiteCatalogEntry

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalSuiteCatalogPage

Bases: _EvalStoreModel.

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
items tuple[EvalSuiteCatalogEntry, ...] Field(max_length=EVAL_STORE_MAX_PAGE_SIZE)
next_cursor StrictStr | None None
has_more StrictBool False
EvalSuiteCatalogPage.validate_page() -> EvalSuiteCatalogPage

Release source · Runtime guarantees · Capability guides

from cayu.evals import EvalSuiteCatalogQuery

Bases: _EvalStoreModel.

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
corpus_revision StrictStr required
cursor StrictStr | None None
limit StrictInt Field(default=EVAL_STORE_DEFAULT_PAGE_SIZE, ge=1, le=EVAL_STORE_MAX_PAGE_SIZE)
max_result_bytes StrictInt Field(default=EVAL_STORE_DEFAULT_PAGE_BYTES, ge=1024, le=EVAL_STORE_MAX_PAGE_BYTES)
EvalSuiteCatalogQuery.validate_revision(value: str, info) -> str
EvalSuiteCatalogQuery.validate_cursor(value: str | None, info) -> str | None

Release source · Runtime guarantees · Capability guides

from cayu.evals import InMemoryEvalStore

Explicitly ephemeral EvalStore for tests and process-local SDK use.

Bases: EvalStore.

async InMemoryEvalStore.close() -> None
async InMemoryEvalStore.save_corpus(corpus: EvalCorpusDocument, *, redact_json: Callable[[Any], Any]) -> EvalCorpusCatalogEntry
async InMemoryEvalStore.load_corpus(revision: str, *, max_bytes: int=EVAL_CORPUS_MAX_BYTES) -> EvalCorpusDocument | None
async InMemoryEvalStore.list_corpora(query: EvalCatalogQuery | None=None) -> EvalCorpusCatalogPage
async InMemoryEvalStore.save_scenario(scenario: EvalScenarioDocumentV2, *, redact_json: Callable[[Any], Any]) -> EvalScenarioCatalogEntry
async InMemoryEvalStore.load_scenario(revision: str, *, max_bytes: int=EVAL_SCENARIO_MAX_BYTES) -> EvalScenarioDocumentV2 | None
async InMemoryEvalStore.list_scenarios(query: EvalScenarioCatalogQuery | None=None) -> EvalScenarioCatalogPage
async InMemoryEvalStore.save_authored_suite(document: EvalSuiteDocument, *, redact_json: Callable[[Any], Any]) -> EvalAuthoredSuiteCatalogEntry
async InMemoryEvalStore.load_authored_suite(revision: str, *, max_bytes: int=EVAL_SUITE_AUTHORING_MAX_BYTES) -> EvalSuiteDocument | None
async InMemoryEvalStore.list_authored_suites(query: EvalAuthoredSuiteCatalogQuery | None=None) -> EvalAuthoredSuiteCatalogPage
async InMemoryEvalStore.save_judge_calibration(report: EvalJudgeCalibrationReportV1, *, redact_json: Callable[[Any], Any]) -> EvalJudgeCalibrationReportV1
async InMemoryEvalStore.load_judge_calibration(revision: str, *, max_bytes: int=EVAL_JUDGE_CALIBRATION_MAX_BYTES) -> EvalJudgeCalibrationReportV1 | None
async InMemoryEvalStore.load_judge_calibration_by_run_id(run_id: str, *, max_bytes: int=EVAL_JUDGE_CALIBRATION_MAX_BYTES) -> EvalJudgeCalibrationReportV1 | None
async InMemoryEvalStore.list_suites(query: EvalSuiteCatalogQuery) -> EvalSuiteCatalogPage
async InMemoryEvalStore.list_cases(query: EvalCaseCatalogQuery) -> EvalCaseCatalogPage
async InMemoryEvalStore.admit_run(request: EvalRunRequest, *, redact_json: Callable[[Any], Any]) -> EvalRunRecord
async InMemoryEvalStore.load_run_by_idempotency_key(idempotency_key: str) -> EvalRunRecord | None
async InMemoryEvalStore.load_run(run_id: str) -> EvalRunRecord | None
async InMemoryEvalStore.load_run_observation(run_id: str) -> EvalRunObservation | None
async InMemoryEvalStore.wait_for_run_terminal(run_id: str, *, timeout_seconds: float=30.0, poll_interval_seconds: float=EVAL_RUN_MIN_OBSERVATION_INTERVAL_SECONDS, max_poll_interval_seconds: float=EVAL_RUN_MAX_OBSERVATION_INTERVAL_SECONDS) -> EvalRunObservation | None

Wait within a strict deadline for a terminal run observation.

Polling begins no faster than the public 50 ms floor and exponentially backs off to the caller’s bounded ceiling. A missing run returns None; deadline exhaustion raises TimeoutError.

async InMemoryEvalStore.list_runs(query: EvalRunQuery | None=None) -> EvalRunPage
async InMemoryEvalStore.claim_run(*, target_key: str | None=None, launch_revision: str | None=None, lease_seconds: int=300) -> EvalRunLease | None
async InMemoryEvalStore.claim_run_for_targets(target_keys: tuple[str, ...], *, lease_seconds: int=300) -> EvalRunLease | None
async InMemoryEvalStore.heartbeat_run(claim: EvalRunClaim, *, extend_seconds: int=300) -> EvalRunRecord
async InMemoryEvalStore.heartbeat_run_observation(claim: EvalRunClaim, *, extend_seconds: int=300) -> EvalRunObservation
async InMemoryEvalStore.request_cancel(run_id: str) -> EvalRunRecord
async InMemoryEvalStore.initialize_scenario_progress(claim: EvalRunClaim, progress: EvalScenarioRunProgress) -> EvalRunRecord
async InMemoryEvalStore.update_scenario_trial(claim: EvalRunClaim, trial: EvalScenarioTrialProgress) -> EvalRunRecord
async InMemoryEvalStore.load_trial_checkpoints(claim: EvalRunClaim) -> tuple[EvalRunTrialCheckpoint, ...]
async InMemoryEvalStore.load_trial_evidence_links(run_id: str) -> tuple[EvalTrialEvidenceLinkV1, ...]
async InMemoryEvalStore.save_trial_checkpoint(claim: EvalRunClaim, checkpoint: EvalRunTrialCheckpoint, *, redact_json: Callable[[Any], Any]) -> None
async InMemoryEvalStore.submit_scenario_approval(run_id: str, submission: EvalScenarioApprovalSubmission) -> EvalRunRecord
async InMemoryEvalStore.publish_result(claim: EvalRunClaim, result: CorpusExecutionResult, *, redact_json: Callable[[Any], Any]) -> EvalRunRecord
async InMemoryEvalStore.fail_run(claim: EvalRunClaim, code: EvalRunFailureCode, *, diagnostic: EvalRunFailureDiagnostic | None=None) -> EvalRunRecord
async InMemoryEvalStore.finish_cancel(claim: EvalRunClaim) -> EvalRunRecord
async InMemoryEvalStore.release_run(claim: EvalRunClaim) -> EvalRunRecord
async InMemoryEvalStore.load_result(run_id: str, *, max_bytes: int=CORPUS_EXECUTION_RESULT_MAX_BYTES) -> CorpusExecutionResult | None
async InMemoryEvalStore.save_captured_result(corpus: EvalCorpusDocument, result: CapturedEvaluationResultV1, *, redact_json: Callable[[Any], Any]) -> EvalResultRecord
async InMemoryEvalStore.load_result_by_revision(revision: str, *, max_bytes: int=CORPUS_EXECUTION_RESULT_MAX_BYTES) -> CorpusExecutionResult | CapturedEvaluationResultV1 | None
async InMemoryEvalStore.load_result_record(revision: str) -> EvalResultRecord | None
async InMemoryEvalStore.list_results(query: EvalResultQuery) -> EvalResultPage
async InMemoryEvalStore.set_baseline(update: EvalBaselineUpdate, *, redact_json: Callable[[Any], Any]) -> EvalBaselineMutationRecord
async InMemoryEvalStore.load_baseline(key: EvalBaselineKey) -> EvalBaselineRecord | None
async InMemoryEvalStore.load_baseline_mutation(operation_id: str) -> EvalBaselineMutationRecord | None
InMemoryEvalStore.__init__(*, clock: Callable[[], datetime] | None=None, claim_id_factory: Callable[[], str] | None=None) -> None

Release source · Runtime guarantees · Capability guides

from cayu.evals import TERMINAL_EVAL_RUN_STATUSES
TERMINAL_EVAL_RUN_STATUSES = frozenset({EvalRunStatus.COMPLETED, EvalRunStatus.FAILED, EvalRunStatus.CANCELLED})

Release source · Runtime guarantees · Capability guides