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.
EVAL_RUN_INVOCATION_MAX_BYTES
Section titled “EVAL_RUN_INVOCATION_MAX_BYTES”from cayu.evals import EVAL_RUN_INVOCATION_MAX_BYTESEVAL_RUN_INVOCATION_MAX_BYTES = 64 << 10Release source · Runtime guarantees · Capability guides
EVAL_RUN_MAX_OBSERVATION_INTERVAL_SECONDS
Section titled “EVAL_RUN_MAX_OBSERVATION_INTERVAL_SECONDS”from cayu.evals import EVAL_RUN_MAX_OBSERVATION_INTERVAL_SECONDSEVAL_RUN_MAX_OBSERVATION_INTERVAL_SECONDS = 1.0Release source · Runtime guarantees · Capability guides
EVAL_RUN_MAX_TERMINAL_WAIT_SECONDS
Section titled “EVAL_RUN_MAX_TERMINAL_WAIT_SECONDS”from cayu.evals import EVAL_RUN_MAX_TERMINAL_WAIT_SECONDSEVAL_RUN_MAX_TERMINAL_WAIT_SECONDS = 300.0Release source · Runtime guarantees · Capability guides
EVAL_RUN_MIN_OBSERVATION_INTERVAL_SECONDS
Section titled “EVAL_RUN_MIN_OBSERVATION_INTERVAL_SECONDS”from cayu.evals import EVAL_RUN_MIN_OBSERVATION_INTERVAL_SECONDSEVAL_RUN_MIN_OBSERVATION_INTERVAL_SECONDS = 0.05Release source · Runtime guarantees · Capability guides
eval_run_observation
Section titled “eval_run_observation”from cayu.evals import eval_run_observationProject a full public run record into its lightweight lifecycle shape.
eval_run_observation(record: EvalRunRecord) -> EvalRunObservationRelease source · Runtime guarantees · Capability guides
EVAL_STORE_DEFAULT_PAGE_BYTES
Section titled “EVAL_STORE_DEFAULT_PAGE_BYTES”from cayu.evals import EVAL_STORE_DEFAULT_PAGE_BYTESEVAL_STORE_DEFAULT_PAGE_BYTES = 1 << 20Release source · Runtime guarantees · Capability guides
EVAL_STORE_DEFAULT_PAGE_SIZE
Section titled “EVAL_STORE_DEFAULT_PAGE_SIZE”from cayu.evals import EVAL_STORE_DEFAULT_PAGE_SIZEEVAL_STORE_DEFAULT_PAGE_SIZE = 50Release source · Runtime guarantees · Capability guides
EVAL_STORE_MAX_CURSOR_BYTES
Section titled “EVAL_STORE_MAX_CURSOR_BYTES”from cayu.evals import EVAL_STORE_MAX_CURSOR_BYTESEVAL_STORE_MAX_CURSOR_BYTES = 1024Release source · Runtime guarantees · Capability guides
EVAL_STORE_MAX_LEASE_SECONDS
Section titled “EVAL_STORE_MAX_LEASE_SECONDS”from cayu.evals import EVAL_STORE_MAX_LEASE_SECONDSEVAL_STORE_MAX_LEASE_SECONDS = 3600Release source · Runtime guarantees · Capability guides
EVAL_STORE_MAX_PAGE_BYTES
Section titled “EVAL_STORE_MAX_PAGE_BYTES”from cayu.evals import EVAL_STORE_MAX_PAGE_BYTESEVAL_STORE_MAX_PAGE_BYTES = 8 << 20Release source · Runtime guarantees · Capability guides
EVAL_STORE_MAX_PAGE_SIZE
Section titled “EVAL_STORE_MAX_PAGE_SIZE”from cayu.evals import EVAL_STORE_MAX_PAGE_SIZEEVAL_STORE_MAX_PAGE_SIZE = 200Release source · Runtime guarantees · Capability guides
EvalAuthoredSuiteCatalogEntry
Section titled “EvalAuthoredSuiteCatalogEntry”from cayu.evals import EvalAuthoredSuiteCatalogEntryBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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 |
validate_revisions (method)
Section titled “validate_revisions (method)”EvalAuthoredSuiteCatalogEntry.validate_revisions(value: str, info) -> strvalidate_ids (method)
Section titled “validate_ids (method)”EvalAuthoredSuiteCatalogEntry.validate_ids(value: str, info) -> strvalidate_name (method)
Section titled “validate_name (method)”EvalAuthoredSuiteCatalogEntry.validate_name(value: str, info) -> strvalidate_description (method)
Section titled “validate_description (method)”EvalAuthoredSuiteCatalogEntry.validate_description(value: str | None, info) -> str | Nonevalidate_created_at (method)
Section titled “validate_created_at (method)”EvalAuthoredSuiteCatalogEntry.validate_created_at(value: datetime, info) -> datetimevalidate_counts (method)
Section titled “validate_counts (method)”EvalAuthoredSuiteCatalogEntry.validate_counts() -> EvalAuthoredSuiteCatalogEntryRelease source · Runtime guarantees · Capability guides
EvalAuthoredSuiteCatalogPage
Section titled “EvalAuthoredSuiteCatalogPage”from cayu.evals import EvalAuthoredSuiteCatalogPageBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
items |
tuple[EvalAuthoredSuiteCatalogEntry, ...] |
Field(max_length=EVAL_STORE_MAX_PAGE_SIZE) |
next_cursor |
StrictStr | None |
None |
has_more |
StrictBool |
False |
validate_page (method)
Section titled “validate_page (method)”EvalAuthoredSuiteCatalogPage.validate_page() -> EvalAuthoredSuiteCatalogPageRelease source · Runtime guarantees · Capability guides
EvalAuthoredSuiteCatalogQuery
Section titled “EvalAuthoredSuiteCatalogQuery”from cayu.evals import EvalAuthoredSuiteCatalogQueryBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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) |
validate_ids (method)
Section titled “validate_ids (method)”EvalAuthoredSuiteCatalogQuery.validate_ids(value: str | None, info) -> str | Nonevalidate_cursor (method)
Section titled “validate_cursor (method)”EvalAuthoredSuiteCatalogQuery.validate_cursor(value: str | None, info) -> str | NoneRelease source · Runtime guarantees · Capability guides
EvalAuthoredSuiteConflict
Section titled “EvalAuthoredSuiteConflict”from cayu.evals import EvalAuthoredSuiteConflictOne 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
EvalAuthoredSuiteReferenceError
Section titled “EvalAuthoredSuiteReferenceError”from cayu.evals import EvalAuthoredSuiteReferenceErrorAn 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
EvalBaselineConflict
Section titled “EvalBaselineConflict”from cayu.evals import EvalBaselineConflictA 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
EvalBaselineKey
Section titled “EvalBaselineKey”from cayu.evals import EvalBaselineKeyStable scope of one explicit baseline pointer.
Bases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
target_key |
StrictStr |
required |
corpus_revision |
StrictStr |
required |
suite_id |
StrictStr |
required |
validate_portable_ids (method)
Section titled “validate_portable_ids (method)”EvalBaselineKey.validate_portable_ids(value: str, info) -> strvalidate_corpus_revision (method)
Section titled “validate_corpus_revision (method)”EvalBaselineKey.validate_corpus_revision(value: str, info) -> strRelease source · Runtime guarantees · Capability guides
EvalBaselineMutationRecord
Section titled “EvalBaselineMutationRecord”from cayu.evals import EvalBaselineMutationRecordImmutable audit fact for one committed baseline transition.
Bases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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 |
validate_revision_fields (method)
Section titled “validate_revision_fields (method)”EvalBaselineMutationRecord.validate_revision_fields(value: str | None, info) -> str | Nonevalidate_actor_id (method)
Section titled “validate_actor_id (method)”EvalBaselineMutationRecord.validate_actor_id(value: str, info) -> strvalidate_created_at (method)
Section titled “validate_created_at (method)”EvalBaselineMutationRecord.validate_created_at(value: datetime, info) -> datetimevalidate_generations (method)
Section titled “validate_generations (method)”EvalBaselineMutationRecord.validate_generations() -> EvalBaselineMutationRecordRelease source · Runtime guarantees · Capability guides
EvalBaselineRecord
Section titled “EvalBaselineRecord”from cayu.evals import EvalBaselineRecordCurrent mutable pointer to an immutable eval result.
Bases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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 |
validate_result_revision (method)
Section titled “validate_result_revision (method)”EvalBaselineRecord.validate_result_revision(value: str, info) -> strvalidate_updated_by (method)
Section titled “validate_updated_by (method)”EvalBaselineRecord.validate_updated_by(value: str, info) -> strvalidate_updated_at (method)
Section titled “validate_updated_at (method)”EvalBaselineRecord.validate_updated_at(value: datetime, info) -> datetimeRelease source · Runtime guarantees · Capability guides
EvalBaselineUpdate
Section titled “EvalBaselineUpdate”from cayu.evals import EvalBaselineUpdateActor-attributed idempotent compare-and-swap baseline request.
Bases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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 |
validate_revision_fields (method)
Section titled “validate_revision_fields (method)”EvalBaselineUpdate.validate_revision_fields(value: str, info) -> strvalidate_actor_id (method)
Section titled “validate_actor_id (method)”EvalBaselineUpdate.validate_actor_id(value: str, info) -> strRelease source · Runtime guarantees · Capability guides
EvalCaseCatalogEntry
Section titled “EvalCaseCatalogEntry”from cayu.evals import EvalCaseCatalogEntryBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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) |
validate_revision_fields (method)
Section titled “validate_revision_fields (method)”EvalCaseCatalogEntry.validate_revision_fields(value: str, info) -> strvalidate_ids (method)
Section titled “validate_ids (method)”EvalCaseCatalogEntry.validate_ids(value: str, info) -> strvalidate_name (method)
Section titled “validate_name (method)”EvalCaseCatalogEntry.validate_name(value: str, info) -> strvalidate_description (method)
Section titled “validate_description (method)”EvalCaseCatalogEntry.validate_description(value: str | None, info) -> str | NoneRelease source · Runtime guarantees · Capability guides
EvalCaseCatalogPage
Section titled “EvalCaseCatalogPage”from cayu.evals import EvalCaseCatalogPageBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
items |
tuple[EvalCaseCatalogEntry, ...] |
Field(max_length=EVAL_STORE_MAX_PAGE_SIZE) |
next_cursor |
StrictStr | None |
None |
has_more |
StrictBool |
False |
validate_page (method)
Section titled “validate_page (method)”EvalCaseCatalogPage.validate_page() -> EvalCaseCatalogPageRelease source · Runtime guarantees · Capability guides
EvalCaseCatalogQuery
Section titled “EvalCaseCatalogQuery”from cayu.evals import EvalCaseCatalogQueryBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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) |
validate_revision (method)
Section titled “validate_revision (method)”EvalCaseCatalogQuery.validate_revision(value: str, info) -> strvalidate_suite_id (method)
Section titled “validate_suite_id (method)”EvalCaseCatalogQuery.validate_suite_id(value: str, info) -> strvalidate_cursor (method)
Section titled “validate_cursor (method)”EvalCaseCatalogQuery.validate_cursor(value: str | None, info) -> str | NoneRelease source · Runtime guarantees · Capability guides
EvalCatalogQuery
Section titled “EvalCatalogQuery”from cayu.evals import EvalCatalogQueryBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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) |
validate_target_key (method)
Section titled “validate_target_key (method)”EvalCatalogQuery.validate_target_key(value: str | None, info) -> str | Nonevalidate_cursor (method)
Section titled “validate_cursor (method)”EvalCatalogQuery.validate_cursor(value: str | None, info) -> str | NoneRelease source · Runtime guarantees · Capability guides
EvalCorpusCatalogEntry
Section titled “EvalCorpusCatalogEntry”from cayu.evals import EvalCorpusCatalogEntryBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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 |
validate_revision_fields (method)
Section titled “validate_revision_fields (method)”EvalCorpusCatalogEntry.validate_revision_fields(value: str | None, info) -> str | Nonevalidate_target_key (method)
Section titled “validate_target_key (method)”EvalCorpusCatalogEntry.validate_target_key(value: str, info) -> strvalidate_created_at (method)
Section titled “validate_created_at (method)”EvalCorpusCatalogEntry.validate_created_at(value: datetime, info) -> datetimevalidate_counts (method)
Section titled “validate_counts (method)”EvalCorpusCatalogEntry.validate_counts() -> EvalCorpusCatalogEntryRelease source · Runtime guarantees · Capability guides
EvalCorpusCatalogPage
Section titled “EvalCorpusCatalogPage”from cayu.evals import EvalCorpusCatalogPageBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
items |
tuple[EvalCorpusCatalogEntry, ...] |
Field(max_length=EVAL_STORE_MAX_PAGE_SIZE) |
next_cursor |
StrictStr | None |
None |
has_more |
StrictBool |
False |
validate_page (method)
Section titled “validate_page (method)”EvalCorpusCatalogPage.validate_page() -> EvalCorpusCatalogPageRelease source · Runtime guarantees · Capability guides
EvalCorpusConflict
Section titled “EvalCorpusConflict”from cayu.evals import EvalCorpusConflictOne 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
EvalJudgeCalibrationConflict
Section titled “EvalJudgeCalibrationConflict”from cayu.evals import EvalJudgeCalibrationConflictA 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
EvalResultConflict
Section titled “EvalResultConflict”from cayu.evals import EvalResultConflictOne 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
EvalResultPage
Section titled “EvalResultPage”from cayu.evals import EvalResultPageBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
items |
tuple[EvalResultRecord, ...] |
Field(max_length=EVAL_STORE_MAX_PAGE_SIZE) |
next_cursor |
StrictStr | None |
None |
has_more |
StrictBool |
False |
validate_page (method)
Section titled “validate_page (method)”EvalResultPage.validate_page() -> EvalResultPageRelease source · Runtime guarantees · Capability guides
EvalResultQuery
Section titled “EvalResultQuery”from cayu.evals import EvalResultQueryBounded target-scoped immutable result catalog query.
Bases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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) |
validate_target_key (method)
Section titled “validate_target_key (method)”EvalResultQuery.validate_target_key(value: str, info) -> strvalidate_cursor (method)
Section titled “validate_cursor (method)”EvalResultQuery.validate_cursor(value: str | None, info) -> str | NoneRelease source · Runtime guarantees · Capability guides
EvalResultRecord
Section titled “EvalResultRecord”from cayu.evals import EvalResultRecordBounded catalog metadata for one immutable captured or fresh result.
Bases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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 |
validate_revisions (method)
Section titled “validate_revisions (method)”EvalResultRecord.validate_revisions(value: str, info) -> strvalidate_suite_id (method)
Section titled “validate_suite_id (method)”EvalResultRecord.validate_suite_id(value: str, info) -> strvalidate_created_at (method)
Section titled “validate_created_at (method)”EvalResultRecord.validate_created_at(value: datetime, info) -> datetimevalidate_result_summary (method)
Section titled “validate_result_summary (method)”EvalResultRecord.validate_result_summary() -> EvalResultRecordRelease source · Runtime guarantees · Capability guides
EvalRunAdmissionConflict
Section titled “EvalRunAdmissionConflict”from cayu.evals import EvalRunAdmissionConflictA 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
EvalRunClaim
Section titled “EvalRunClaim”from cayu.evals import EvalRunClaimBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
run_id |
StrictStr |
required |
claim_id |
StrictStr |
Field(repr=False) |
epoch |
StrictInt |
Field(ge=1, le=_EVAL_STORE_MAX_BIGINT) |
validate_ids (method)
Section titled “validate_ids (method)”EvalRunClaim.validate_ids(value: str, info) -> strRelease source · Runtime guarantees · Capability guides
EvalRunClaimLost
Section titled “EvalRunClaimLost”from cayu.evals import EvalRunClaimLostA 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
EvalRunCostBudget
Section titled “EvalRunCostBudget”from cayu.evals import EvalRunCostBudgetOne server-priced cost ceiling applied independently to each eval-trial session.
Bases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
max_estimated_cost |
Decimal |
Field(gt=0) |
currency |
StrictStr |
Field(default='USD', min_length=1, max_length=16) |
validate_cost (method)
Section titled “validate_cost (method)”EvalRunCostBudget.validate_cost(value: Decimal, info) -> Decimalvalidate_currency (method)
Section titled “validate_currency (method)”EvalRunCostBudget.validate_currency(value: str, info) -> strRelease source · Runtime guarantees · Capability guides
EvalRunFailureCode
Section titled “EvalRunFailureCode”from cayu.evals import EvalRunFailureCodeSafe terminal diagnostics; arbitrary exception text is never persisted.
Bases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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
EvalRunFailureDiagnostic
Section titled “EvalRunFailureDiagnostic”from cayu.evals import EvalRunFailureDiagnosticSafe causal evidence bound to the containing run and fenced terminal claim.
Bases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
reason |
EvalRunFailureReason |
required |
provider_protocol_reason |
StrictStr | None |
Field(default=None, max_length=128) |
validate_protocol_reason (method)
Section titled “validate_protocol_reason (method)”EvalRunFailureDiagnostic.validate_protocol_reason(value: str | None) -> str | Nonevalidate_protocol_failure (method)
Section titled “validate_protocol_failure (method)”EvalRunFailureDiagnostic.validate_protocol_failure() -> EvalRunFailureDiagnosticphase (property)
Section titled “phase (property)”EvalRunFailureDiagnostic.phase() -> strRelease source · Runtime guarantees · Capability guides
EvalRunFailureReason
Section titled “EvalRunFailureReason”from cayu.evals import EvalRunFailureReasonClosed causal vocabulary; values never come from exception messages.
Bases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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
EvalRunInvocation
Section titled “EvalRunInvocation”from cayu.evals import EvalRunInvocationDurable, 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.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
schema_version |
Literal[1] |
1 |
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) |
validate_schema_version_type (method)
Section titled “validate_schema_version_type (method)”EvalRunInvocation.validate_schema_version_type(value: object) -> objectcopy_origin (method)
Section titled “copy_origin (method)”EvalRunInvocation.copy_origin(value: object) -> objectcopy_limits (method)
Section titled “copy_limits (method)”EvalRunInvocation.copy_limits(value: object) -> objectcopy_cost_budget (method)
Section titled “copy_cost_budget (method)”EvalRunInvocation.copy_cost_budget(value: object) -> objectcopy_execution_profile (method)
Section titled “copy_execution_profile (method)”EvalRunInvocation.copy_execution_profile(value: object) -> objectcopy_execution_profile_snapshot (method)
Section titled “copy_execution_profile_snapshot (method)”EvalRunInvocation.copy_execution_profile_snapshot(value: object) -> objectcopy_scenario (method)
Section titled “copy_scenario (method)”EvalRunInvocation.copy_scenario(value: object) -> objectcopy_authored_suite_exposure (method)
Section titled “copy_authored_suite_exposure (method)”EvalRunInvocation.copy_authored_suite_exposure(value: object) -> objectvalidate_content_revisions (method)
Section titled “validate_content_revisions (method)”EvalRunInvocation.validate_content_revisions(value: str | None, info) -> str | Nonevalidate_provenance (method)
Section titled “validate_provenance (method)”EvalRunInvocation.validate_provenance() -> EvalRunInvocationRelease source · Runtime guarantees · Capability guides
EvalRunLease
Section titled “EvalRunLease”from cayu.evals import EvalRunLeaseBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
run |
EvalRunRecord |
required |
claim |
EvalRunClaim |
Field(repr=False) |
validate_binding (method)
Section titled “validate_binding (method)”EvalRunLease.validate_binding() -> EvalRunLeaseRelease source · Runtime guarantees · Capability guides
EvalRunObservation
Section titled “EvalRunObservation”from cayu.evals import EvalRunObservationSmall mutable-lifecycle projection that never rehydrates run invocation data.
Bases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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 |
validate_run_id (method)
Section titled “validate_run_id (method)”EvalRunObservation.validate_run_id(value: str, info) -> strvalidate_updated_at (method)
Section titled “validate_updated_at (method)”EvalRunObservation.validate_updated_at(value: datetime, info) -> datetimevalidate_lifecycle (method)
Section titled “validate_lifecycle (method)”EvalRunObservation.validate_lifecycle() -> EvalRunObservationid (property)
Section titled “id (property)”EvalRunObservation.id() -> strterminal (property)
Section titled “terminal (property)”EvalRunObservation.terminal() -> boolRelease source · Runtime guarantees · Capability guides
EvalRunOwnership
Section titled “EvalRunOwnership”from cayu.evals import EvalRunOwnershipBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
epoch |
StrictInt |
Field(ge=1, le=_EVAL_STORE_MAX_BIGINT) |
lease_expires_at |
datetime |
required |
validate_lease_expires_at (method)
Section titled “validate_lease_expires_at (method)”EvalRunOwnership.validate_lease_expires_at(value: datetime, info) -> datetimeRelease source · Runtime guarantees · Capability guides
EvalRunPage
Section titled “EvalRunPage”from cayu.evals import EvalRunPageBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
items |
tuple[EvalRunRecord, ...] |
Field(max_length=EVAL_STORE_MAX_PAGE_SIZE) |
next_cursor |
StrictStr | None |
None |
has_more |
StrictBool |
False |
validate_page (method)
Section titled “validate_page (method)”EvalRunPage.validate_page() -> EvalRunPageRelease source · Runtime guarantees · Capability guides
EvalRunQuery
Section titled “EvalRunQuery”from cayu.evals import EvalRunQueryBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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) |
validate_target_key (method)
Section titled “validate_target_key (method)”EvalRunQuery.validate_target_key(value: str | None, info) -> str | Nonevalidate_revision (method)
Section titled “validate_revision (method)”EvalRunQuery.validate_revision(value: str | None, info) -> str | Nonevalidate_cursor (method)
Section titled “validate_cursor (method)”EvalRunQuery.validate_cursor(value: str | None, info) -> str | NoneRelease source · Runtime guarantees · Capability guides
EvalRunRecord
Section titled “EvalRunRecord”from cayu.evals import EvalRunRecordBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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) |
validate_timestamps (method)
Section titled “validate_timestamps (method)”EvalRunRecord.validate_timestamps(value: datetime | None, info) -> datetime | Nonevalidate_lifecycle (method)
Section titled “validate_lifecycle (method)”EvalRunRecord.validate_lifecycle() -> EvalRunRecordid (property)
Section titled “id (property)”EvalRunRecord.id() -> strRelease source · Runtime guarantees · Capability guides
EvalRunRequest
Section titled “EvalRunRequest”from cayu.evals import EvalRunRequestBases: EvalRunSpec.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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) |
validate_run_id (method)
Section titled “validate_run_id (method)”EvalRunRequest.validate_run_id(value: str, info) -> strvalidate_revisions (method)
Section titled “validate_revisions (method)”EvalRunRequest.validate_revisions(value: str, info) -> strvalidate_portable_ids (method)
Section titled “validate_portable_ids (method)”EvalRunRequest.validate_portable_ids(value: str, info) -> strcopy_invocation (method)
Section titled “copy_invocation (method)”EvalRunRequest.copy_invocation(value: object) -> objectid (property)
Section titled “id (property)”EvalRunRequest.id() -> strvalidate_idempotency_key (method)
Section titled “validate_idempotency_key (method)”EvalRunRequest.validate_idempotency_key(value: str, info) -> strsame_logical_request (method)
Section titled “same_logical_request (method)”EvalRunRequest.same_logical_request(other: EvalRunRequest) -> boolRelease source · Runtime guarantees · Capability guides
EvalRunResultSummary
Section titled “EvalRunResultSummary”from cayu.evals import EvalRunResultSummaryBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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) |
validate_revision (method)
Section titled “validate_revision (method)”EvalRunResultSummary.validate_revision(value: str, info) -> strvalidate_score (method)
Section titled “validate_score (method)”EvalRunResultSummary.validate_score() -> EvalRunResultSummaryRelease source · Runtime guarantees · Capability guides
EvalRunSpec
Section titled “EvalRunSpec”from cayu.evals import EvalRunSpecBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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) |
validate_run_id (method)
Section titled “validate_run_id (method)”EvalRunSpec.validate_run_id(value: str, info) -> strvalidate_revisions (method)
Section titled “validate_revisions (method)”EvalRunSpec.validate_revisions(value: str, info) -> strvalidate_portable_ids (method)
Section titled “validate_portable_ids (method)”EvalRunSpec.validate_portable_ids(value: str, info) -> strcopy_invocation (method)
Section titled “copy_invocation (method)”EvalRunSpec.copy_invocation(value: object) -> objectid (property)
Section titled “id (property)”EvalRunSpec.id() -> strRelease source · Runtime guarantees · Capability guides
EvalRunStateConflict
Section titled “EvalRunStateConflict”from cayu.evals import EvalRunStateConflictA 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
EvalRunStatus
Section titled “EvalRunStatus”from cayu.evals import EvalRunStatusBases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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
EvalScenarioApprovalDecisionRecord
Section titled “EvalScenarioApprovalDecisionRecord”from cayu.evals import EvalScenarioApprovalDecisionRecordBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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 |
validate_reason (method)
Section titled “validate_reason (method)”EvalScenarioApprovalDecisionRecord.validate_reason(value: str | None, info) -> str | Nonevalidate_actor_id (method)
Section titled “validate_actor_id (method)”EvalScenarioApprovalDecisionRecord.validate_actor_id(value: str, info) -> strvalidate_submitted_at (method)
Section titled “validate_submitted_at (method)”EvalScenarioApprovalDecisionRecord.validate_submitted_at(value: datetime, info) -> datetimeRelease source · Runtime guarantees · Capability guides
EvalScenarioApprovalSubmission
Section titled “EvalScenarioApprovalSubmission”from cayu.evals import EvalScenarioApprovalSubmissionBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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) |
validate_expected_revision (method)
Section titled “validate_expected_revision (method)”EvalScenarioApprovalSubmission.validate_expected_revision(value: str, info) -> strvalidate_event_id (method)
Section titled “validate_event_id (method)”EvalScenarioApprovalSubmission.validate_event_id(value: str, info) -> strvalidate_reason (method)
Section titled “validate_reason (method)”EvalScenarioApprovalSubmission.validate_reason(value: str | None, info) -> str | Nonevalidate_actor_id (method)
Section titled “validate_actor_id (method)”EvalScenarioApprovalSubmission.validate_actor_id(value: str, info) -> strRelease source · Runtime guarantees · Capability guides
EvalScenarioArtifactReference
Section titled “EvalScenarioArtifactReference”from cayu.evals import EvalScenarioArtifactReferenceOne immutable scenario requirement-to-artifact launch selection.
Bases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
requirement_id |
StrictStr |
required |
artifact_id |
StrictStr |
required |
validate_requirement_id (method)
Section titled “validate_requirement_id (method)”EvalScenarioArtifactReference.validate_requirement_id(value: str, info) -> strvalidate_artifact_id (method)
Section titled “validate_artifact_id (method)”EvalScenarioArtifactReference.validate_artifact_id(value: str, info) -> strRelease source · Runtime guarantees · Capability guides
EvalScenarioCatalogEntry
Section titled “EvalScenarioCatalogEntry”from cayu.evals import EvalScenarioCatalogEntryBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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 |
validate_revision (method)
Section titled “validate_revision (method)”EvalScenarioCatalogEntry.validate_revision(value: str, info) -> strvalidate_ids (method)
Section titled “validate_ids (method)”EvalScenarioCatalogEntry.validate_ids(value: str, info) -> strvalidate_name (method)
Section titled “validate_name (method)”EvalScenarioCatalogEntry.validate_name(value: str, info) -> strvalidate_description (method)
Section titled “validate_description (method)”EvalScenarioCatalogEntry.validate_description(value: str | None, info) -> str | Nonevalidate_created_at (method)
Section titled “validate_created_at (method)”EvalScenarioCatalogEntry.validate_created_at(value: datetime, info) -> datetimevalidate_counts (method)
Section titled “validate_counts (method)”EvalScenarioCatalogEntry.validate_counts() -> EvalScenarioCatalogEntryRelease source · Runtime guarantees · Capability guides
EvalScenarioCatalogPage
Section titled “EvalScenarioCatalogPage”from cayu.evals import EvalScenarioCatalogPageBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
items |
tuple[EvalScenarioCatalogEntry, ...] |
Field(max_length=EVAL_STORE_MAX_PAGE_SIZE) |
next_cursor |
StrictStr | None |
None |
has_more |
StrictBool |
False |
validate_page (method)
Section titled “validate_page (method)”EvalScenarioCatalogPage.validate_page() -> EvalScenarioCatalogPageRelease source · Runtime guarantees · Capability guides
EvalScenarioCatalogQuery
Section titled “EvalScenarioCatalogQuery”from cayu.evals import EvalScenarioCatalogQueryBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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) |
validate_ids (method)
Section titled “validate_ids (method)”EvalScenarioCatalogQuery.validate_ids(value: str | None, info) -> str | Nonevalidate_cursor (method)
Section titled “validate_cursor (method)”EvalScenarioCatalogQuery.validate_cursor(value: str | None, info) -> str | NoneRelease source · Runtime guarantees · Capability guides
EvalScenarioConflict
Section titled “EvalScenarioConflict”from cayu.evals import EvalScenarioConflictOne 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
EvalScenarioRunInvocation
Section titled “EvalScenarioRunInvocation”from cayu.evals import EvalScenarioRunInvocationAuthority-free scenario launch facts frozen into one durable run.
Bases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
schema_version |
Literal[1] |
1 |
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) |
validate_schema_version_type (method)
Section titled “validate_schema_version_type (method)”EvalScenarioRunInvocation.validate_schema_version_type(value: object) -> objectvalidate_revisions (method)
Section titled “validate_revisions (method)”EvalScenarioRunInvocation.validate_revisions(value: str | None, info) -> str | Nonevalidate_environment_name (method)
Section titled “validate_environment_name (method)”EvalScenarioRunInvocation.validate_environment_name(value: str | None, info) -> str | Nonevalidate_artifact_references (method)
Section titled “validate_artifact_references (method)”EvalScenarioRunInvocation.validate_artifact_references() -> EvalScenarioRunInvocationRelease source · Runtime guarantees · Capability guides
EvalScenarioRunProgress
Section titled “EvalScenarioRunProgress”from cayu.evals import EvalScenarioRunProgressBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
schema_version |
Literal[1] |
1 |
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) |
validate_schema_version_type (method)
Section titled “validate_schema_version_type (method)”EvalScenarioRunProgress.validate_schema_version_type(value: object) -> objectvalidate_revisions (method)
Section titled “validate_revisions (method)”EvalScenarioRunProgress.validate_revisions(value: str, info) -> strvalidate_progress (method)
Section titled “validate_progress (method)”EvalScenarioRunProgress.validate_progress() -> EvalScenarioRunProgresscreate (method)
Section titled “create (method)”EvalScenarioRunProgress.create(*, scenario_revision: str, binding_revision: str, attempt: int, trials: tuple[EvalScenarioTrialProgress, ...]) -> EvalScenarioRunProgressreplace_trial (method)
Section titled “replace_trial (method)”EvalScenarioRunProgress.replace_trial(trial: EvalScenarioTrialProgress) -> EvalScenarioRunProgressRelease source · Runtime guarantees · Capability guides
EvalScenarioTrialFailureCode
Section titled “EvalScenarioTrialFailureCode”from cayu.evals import EvalScenarioTrialFailureCodeBases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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
EvalScenarioTrialPhase
Section titled “EvalScenarioTrialPhase”from cayu.evals import EvalScenarioTrialPhaseBases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
PENDING |
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
EvalScenarioTrialProgress
Section titled “EvalScenarioTrialProgress”from cayu.evals import EvalScenarioTrialProgressBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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 |
validate_session_id (method)
Section titled “validate_session_id (method)”EvalScenarioTrialProgress.validate_session_id(value: str | None, info) -> str | Nonevalidate_pending_event_id (method)
Section titled “validate_pending_event_id (method)”EvalScenarioTrialProgress.validate_pending_event_id(value: str | None, info) -> str | Nonevalidate_pending_tool_name (method)
Section titled “validate_pending_tool_name (method)”EvalScenarioTrialProgress.validate_pending_tool_name(value: str | None, info) -> str | Nonevalidate_pending_input_id (method)
Section titled “validate_pending_input_id (method)”EvalScenarioTrialProgress.validate_pending_input_id(value: str | None, info) -> str | Nonevalidate_phase (method)
Section titled “validate_phase (method)”EvalScenarioTrialProgress.validate_phase() -> EvalScenarioTrialProgressRelease source · Runtime guarantees · Capability guides
EvalStore
Section titled “EvalStore”from cayu.evals import EvalStoreBounded persistence for public eval corpora, run state, and safe results.
Bases: ABC.
close (method)
Section titled “close (method)”async EvalStore.close() -> NoneRelease store resources; process-local stores may perform no work.
save_corpus (method)
Section titled “save_corpus (method)”async EvalStore.save_corpus(corpus: EvalCorpusDocument, *, redact_json: Callable[[Any], Any]) -> EvalCorpusCatalogEntryScan and atomically save one complete immutable corpus revision.
load_corpus (method)
Section titled “load_corpus (method)”async EvalStore.load_corpus(revision: str, *, max_bytes: int=EVAL_CORPUS_MAX_BYTES) -> EvalCorpusDocument | NoneLoad one corpus without crossing the caller’s byte ceiling.
list_corpora (method)
Section titled “list_corpora (method)”async EvalStore.list_corpora(query: EvalCatalogQuery | None=None) -> EvalCorpusCatalogPageList immutable corpus revisions in newest-first keyset order.
save_scenario (method)
Section titled “save_scenario (method)”async EvalStore.save_scenario(scenario: EvalScenarioDocumentV2, *, redact_json: Callable[[Any], Any]) -> EvalScenarioCatalogEntryScan and atomically save one immutable portable scenario revision.
load_scenario (method)
Section titled “load_scenario (method)”async EvalStore.load_scenario(revision: str, *, max_bytes: int=EVAL_SCENARIO_MAX_BYTES) -> EvalScenarioDocumentV2 | NoneLoad one scenario without crossing the caller’s byte ceiling.
list_scenarios (method)
Section titled “list_scenarios (method)”async EvalStore.list_scenarios(query: EvalScenarioCatalogQuery | None=None) -> EvalScenarioCatalogPageList immutable scenario revisions in newest-first keyset order.
save_authored_suite (method)
Section titled “save_authored_suite (method)”async EvalStore.save_authored_suite(document: EvalSuiteDocument, *, redact_json: Callable[[Any], Any]) -> EvalAuthoredSuiteCatalogEntryScan and atomically save one reviewed immutable authored suite.
load_authored_suite (method)
Section titled “load_authored_suite (method)”async EvalStore.load_authored_suite(revision: str, *, max_bytes: int=EVAL_SUITE_AUTHORING_MAX_BYTES) -> EvalSuiteDocument | NoneLoad one authored suite without crossing the caller byte ceiling.
list_authored_suites (method)
Section titled “list_authored_suites (method)”async EvalStore.list_authored_suites(query: EvalAuthoredSuiteCatalogQuery | None=None) -> EvalAuthoredSuiteCatalogPageList immutable authored suite revisions in newest-first keyset order.
save_judge_calibration (method)
Section titled “save_judge_calibration (method)”async EvalStore.save_judge_calibration(report: EvalJudgeCalibrationReportV1, *, redact_json: Callable[[Any], Any]) -> EvalJudgeCalibrationReportV1Scan and atomically retain every trial in one completed calibration.
load_judge_calibration (method)
Section titled “load_judge_calibration (method)”async EvalStore.load_judge_calibration(revision: str, *, max_bytes: int=EVAL_JUDGE_CALIBRATION_MAX_BYTES) -> EvalJudgeCalibrationReportV1 | NoneLoad one immutable completed calibration by content revision.
load_judge_calibration_by_run_id (method)
Section titled “load_judge_calibration_by_run_id (method)”async EvalStore.load_judge_calibration_by_run_id(run_id: str, *, max_bytes: int=EVAL_JUDGE_CALIBRATION_MAX_BYTES) -> EvalJudgeCalibrationReportV1 | NoneRecover one completed calibration after retry or server restart.
list_suites (method)
Section titled “list_suites (method)”async EvalStore.list_suites(query: EvalSuiteCatalogQuery) -> EvalSuiteCatalogPageList bounded suite projections for one corpus revision.
list_cases (method)
Section titled “list_cases (method)”async EvalStore.list_cases(query: EvalCaseCatalogQuery) -> EvalCaseCatalogPageList bounded case projections for one corpus suite.
admit_run (method)
Section titled “admit_run (method)”async EvalStore.admit_run(request: EvalRunRequest, *, redact_json: Callable[[Any], Any]) -> EvalRunRecordAtomically admit or replay one logical run request.
load_run_by_idempotency_key (method)
Section titled “load_run_by_idempotency_key (method)”async EvalStore.load_run_by_idempotency_key(idempotency_key: str) -> EvalRunRecord | NoneLoad a previously admitted run by its server-scoped idempotency digest.
load_run (method)
Section titled “load_run (method)”async EvalStore.load_run(run_id: str) -> EvalRunRecord | NoneLoad one run’s public lifecycle projection.
load_run_observation (method)
Section titled “load_run_observation (method)”async EvalStore.load_run_observation(run_id: str) -> EvalRunObservation | NoneLoad 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.
wait_for_run_terminal (method)
Section titled “wait_for_run_terminal (method)”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 | NoneWait 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.
list_runs (method)
Section titled “list_runs (method)”async EvalStore.list_runs(query: EvalRunQuery | None=None) -> EvalRunPageList run projections in newest-first keyset order.
claim_run (method)
Section titled “claim_run (method)”async EvalStore.claim_run(*, target_key: str | None=None, launch_revision: str | None=None, lease_seconds: int=300) -> EvalRunLease | NoneClaim eligible work, optionally restricted to one exact authored launch.
claim_run_for_targets (method)
Section titled “claim_run_for_targets (method)”async EvalStore.claim_run_for_targets(target_keys: tuple[str, ...], *, lease_seconds: int=300) -> EvalRunLease | NoneClaim 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.
heartbeat_run (method)
Section titled “heartbeat_run (method)”async EvalStore.heartbeat_run(claim: EvalRunClaim, *, extend_seconds: int=300) -> EvalRunRecordExtend one still-live fenced run claim.
heartbeat_run_observation (method)
Section titled “heartbeat_run_observation (method)”async EvalStore.heartbeat_run_observation(claim: EvalRunClaim, *, extend_seconds: int=300) -> EvalRunObservationExtend 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.
request_cancel (method)
Section titled “request_cancel (method)”async EvalStore.request_cancel(run_id: str) -> EvalRunRecordPersist cancellation intent, terminalizing unclaimed queued work.
initialize_scenario_progress (method)
Section titled “initialize_scenario_progress (method)”async EvalStore.initialize_scenario_progress(claim: EvalRunClaim, progress: EvalScenarioRunProgress) -> EvalRunRecordReplace scenario progress for a newly claimed execution attempt.
update_scenario_trial (method)
Section titled “update_scenario_trial (method)”async EvalStore.update_scenario_trial(claim: EvalRunClaim, trial: EvalScenarioTrialProgress) -> EvalRunRecordFenced update of one trial inside the current scenario attempt.
load_trial_checkpoints (method)
Section titled “load_trial_checkpoints (method)”async EvalStore.load_trial_checkpoints(claim: EvalRunClaim) -> tuple[EvalRunTrialCheckpoint, ...]Load terminal trial slots only while the exact run claim remains live.
load_trial_evidence_links (method)
Section titled “load_trial_evidence_links (method)”async EvalStore.load_trial_evidence_links(run_id: str) -> tuple[EvalTrialEvidenceLinkV1, ...]Read private retained links without execution authority; unsupported stores return none.
save_trial_checkpoint (method)
Section titled “save_trial_checkpoint (method)”async EvalStore.save_trial_checkpoint(claim: EvalRunClaim, checkpoint: EvalRunTrialCheckpoint, *, redact_json: Callable[[Any], Any]) -> NoneIdempotently retain one terminal slot behind the live publication fence.
submit_scenario_approval (method)
Section titled “submit_scenario_approval (method)”async EvalStore.submit_scenario_approval(run_id: str, submission: EvalScenarioApprovalSubmission) -> EvalRunRecordCAS one fresh operator decision into the exact pending checkpoint.
publish_result (method)
Section titled “publish_result (method)”async EvalStore.publish_result(claim: EvalRunClaim, result: CorpusExecutionResult, *, redact_json: Callable[[Any], Any]) -> EvalRunRecordAtomically publish exactly one immutable safe terminal result.
fail_run (method)
Section titled “fail_run (method)”async EvalStore.fail_run(claim: EvalRunClaim, code: EvalRunFailureCode, *, diagnostic: EvalRunFailureDiagnostic | None=None) -> EvalRunRecordTerminalize owned work with a closed, credential-free diagnostic.
finish_cancel (method)
Section titled “finish_cancel (method)”async EvalStore.finish_cancel(claim: EvalRunClaim) -> EvalRunRecordAcknowledge cancellation after the owner has stopped execution.
release_run (method)
Section titled “release_run (method)”async EvalStore.release_run(claim: EvalRunClaim) -> EvalRunRecordRelease stopped owned work for retry, or finish requested cancellation.
load_result (method)
Section titled “load_result (method)”async EvalStore.load_result(run_id: str, *, max_bytes: int=CORPUS_EXECUTION_RESULT_MAX_BYTES) -> CorpusExecutionResult | NoneLoad one immutable safe result under an exact byte ceiling.
save_captured_result (method)
Section titled “save_captured_result (method)”async EvalStore.save_captured_result(corpus: EvalCorpusDocument, result: CapturedEvaluationResultV1, *, redact_json: Callable[[Any], Any]) -> EvalResultRecordAtomically 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.
load_result_by_revision (method)
Section titled “load_result_by_revision (method)”async EvalStore.load_result_by_revision(revision: str, *, max_bytes: int=CORPUS_EXECUTION_RESULT_MAX_BYTES) -> CorpusExecutionResult | CapturedEvaluationResultV1 | NoneLoad one immutable result independent of its captured/fresh origin.
load_result_record (method)
Section titled “load_result_record (method)”async EvalStore.load_result_record(revision: str) -> EvalResultRecord | NoneLoad bounded metadata for one immutable result revision.
list_results (method)
Section titled “list_results (method)”async EvalStore.list_results(query: EvalResultQuery) -> EvalResultPageList target-scoped immutable result metadata in keyset order.
set_baseline (method)
Section titled “set_baseline (method)”async EvalStore.set_baseline(update: EvalBaselineUpdate, *, redact_json: Callable[[Any], Any]) -> EvalBaselineMutationRecordCommit or replay one actor-attributed baseline CAS mutation.
load_baseline (method)
Section titled “load_baseline (method)”async EvalStore.load_baseline(key: EvalBaselineKey) -> EvalBaselineRecord | NoneLoad the current baseline pointer for one exact evaluation scope.
load_baseline_mutation (method)
Section titled “load_baseline_mutation (method)”async EvalStore.load_baseline_mutation(operation_id: str) -> EvalBaselineMutationRecord | NoneLoad one immutable baseline audit fact by its idempotency digest.
Release source · Runtime guarantees · Capability guides
EvalStorePublicationRejected
Section titled “EvalStorePublicationRejected”from cayu.evals import EvalStorePublicationRejectedPublic 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
EvalStoreResultTooLarge
Section titled “EvalStoreResultTooLarge”from cayu.evals import EvalStoreResultTooLargeA bounded eval-store read cannot fit the requested byte ceiling.
Bases: ValueError.
init (method)
Section titled “init (method)”EvalStoreResultTooLarge.__init__(max_bytes: int) -> NoneRelease source · Runtime guarantees · Capability guides
EvalStoreTransientContention
Section titled “EvalStoreTransientContention”from cayu.evals import EvalStoreTransientContentionA 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
EvalSuiteCatalogEntry
Section titled “EvalSuiteCatalogEntry”from cayu.evals import EvalSuiteCatalogEntryBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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) |
validate_revision_fields (method)
Section titled “validate_revision_fields (method)”EvalSuiteCatalogEntry.validate_revision_fields(value: str, info) -> strvalidate_id (method)
Section titled “validate_id (method)”EvalSuiteCatalogEntry.validate_id(value: str, info) -> strvalidate_name (method)
Section titled “validate_name (method)”EvalSuiteCatalogEntry.validate_name(value: str, info) -> strvalidate_description (method)
Section titled “validate_description (method)”EvalSuiteCatalogEntry.validate_description(value: str | None, info) -> str | Nonevalidate_counts (method)
Section titled “validate_counts (method)”EvalSuiteCatalogEntry.validate_counts() -> EvalSuiteCatalogEntryRelease source · Runtime guarantees · Capability guides
EvalSuiteCatalogPage
Section titled “EvalSuiteCatalogPage”from cayu.evals import EvalSuiteCatalogPageBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
items |
tuple[EvalSuiteCatalogEntry, ...] |
Field(max_length=EVAL_STORE_MAX_PAGE_SIZE) |
next_cursor |
StrictStr | None |
None |
has_more |
StrictBool |
False |
validate_page (method)
Section titled “validate_page (method)”EvalSuiteCatalogPage.validate_page() -> EvalSuiteCatalogPageRelease source · Runtime guarantees · Capability guides
EvalSuiteCatalogQuery
Section titled “EvalSuiteCatalogQuery”from cayu.evals import EvalSuiteCatalogQueryBases: _EvalStoreModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
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) |
validate_revision (method)
Section titled “validate_revision (method)”EvalSuiteCatalogQuery.validate_revision(value: str, info) -> strvalidate_cursor (method)
Section titled “validate_cursor (method)”EvalSuiteCatalogQuery.validate_cursor(value: str | None, info) -> str | NoneRelease source · Runtime guarantees · Capability guides
InMemoryEvalStore
Section titled “InMemoryEvalStore”from cayu.evals import InMemoryEvalStoreExplicitly ephemeral EvalStore for tests and process-local SDK use.
Bases: EvalStore.
close (method)
Section titled “close (method)”async InMemoryEvalStore.close() -> Nonesave_corpus (method)
Section titled “save_corpus (method)”async InMemoryEvalStore.save_corpus(corpus: EvalCorpusDocument, *, redact_json: Callable[[Any], Any]) -> EvalCorpusCatalogEntryload_corpus (method)
Section titled “load_corpus (method)”async InMemoryEvalStore.load_corpus(revision: str, *, max_bytes: int=EVAL_CORPUS_MAX_BYTES) -> EvalCorpusDocument | Nonelist_corpora (method)
Section titled “list_corpora (method)”async InMemoryEvalStore.list_corpora(query: EvalCatalogQuery | None=None) -> EvalCorpusCatalogPagesave_scenario (method)
Section titled “save_scenario (method)”async InMemoryEvalStore.save_scenario(scenario: EvalScenarioDocumentV2, *, redact_json: Callable[[Any], Any]) -> EvalScenarioCatalogEntryload_scenario (method)
Section titled “load_scenario (method)”async InMemoryEvalStore.load_scenario(revision: str, *, max_bytes: int=EVAL_SCENARIO_MAX_BYTES) -> EvalScenarioDocumentV2 | Nonelist_scenarios (method)
Section titled “list_scenarios (method)”async InMemoryEvalStore.list_scenarios(query: EvalScenarioCatalogQuery | None=None) -> EvalScenarioCatalogPagesave_authored_suite (method)
Section titled “save_authored_suite (method)”async InMemoryEvalStore.save_authored_suite(document: EvalSuiteDocument, *, redact_json: Callable[[Any], Any]) -> EvalAuthoredSuiteCatalogEntryload_authored_suite (method)
Section titled “load_authored_suite (method)”async InMemoryEvalStore.load_authored_suite(revision: str, *, max_bytes: int=EVAL_SUITE_AUTHORING_MAX_BYTES) -> EvalSuiteDocument | Nonelist_authored_suites (method)
Section titled “list_authored_suites (method)”async InMemoryEvalStore.list_authored_suites(query: EvalAuthoredSuiteCatalogQuery | None=None) -> EvalAuthoredSuiteCatalogPagesave_judge_calibration (method)
Section titled “save_judge_calibration (method)”async InMemoryEvalStore.save_judge_calibration(report: EvalJudgeCalibrationReportV1, *, redact_json: Callable[[Any], Any]) -> EvalJudgeCalibrationReportV1load_judge_calibration (method)
Section titled “load_judge_calibration (method)”async InMemoryEvalStore.load_judge_calibration(revision: str, *, max_bytes: int=EVAL_JUDGE_CALIBRATION_MAX_BYTES) -> EvalJudgeCalibrationReportV1 | Noneload_judge_calibration_by_run_id (method)
Section titled “load_judge_calibration_by_run_id (method)”async InMemoryEvalStore.load_judge_calibration_by_run_id(run_id: str, *, max_bytes: int=EVAL_JUDGE_CALIBRATION_MAX_BYTES) -> EvalJudgeCalibrationReportV1 | Nonelist_suites (method)
Section titled “list_suites (method)”async InMemoryEvalStore.list_suites(query: EvalSuiteCatalogQuery) -> EvalSuiteCatalogPagelist_cases (method)
Section titled “list_cases (method)”async InMemoryEvalStore.list_cases(query: EvalCaseCatalogQuery) -> EvalCaseCatalogPageadmit_run (method)
Section titled “admit_run (method)”async InMemoryEvalStore.admit_run(request: EvalRunRequest, *, redact_json: Callable[[Any], Any]) -> EvalRunRecordload_run_by_idempotency_key (method)
Section titled “load_run_by_idempotency_key (method)”async InMemoryEvalStore.load_run_by_idempotency_key(idempotency_key: str) -> EvalRunRecord | Noneload_run (method)
Section titled “load_run (method)”async InMemoryEvalStore.load_run(run_id: str) -> EvalRunRecord | Noneload_run_observation (method)
Section titled “load_run_observation (method)”async InMemoryEvalStore.load_run_observation(run_id: str) -> EvalRunObservation | Nonewait_for_run_terminal (method)
Section titled “wait_for_run_terminal (method)”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 | NoneWait 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.
list_runs (method)
Section titled “list_runs (method)”async InMemoryEvalStore.list_runs(query: EvalRunQuery | None=None) -> EvalRunPageclaim_run (method)
Section titled “claim_run (method)”async InMemoryEvalStore.claim_run(*, target_key: str | None=None, launch_revision: str | None=None, lease_seconds: int=300) -> EvalRunLease | Noneclaim_run_for_targets (method)
Section titled “claim_run_for_targets (method)”async InMemoryEvalStore.claim_run_for_targets(target_keys: tuple[str, ...], *, lease_seconds: int=300) -> EvalRunLease | Noneheartbeat_run (method)
Section titled “heartbeat_run (method)”async InMemoryEvalStore.heartbeat_run(claim: EvalRunClaim, *, extend_seconds: int=300) -> EvalRunRecordheartbeat_run_observation (method)
Section titled “heartbeat_run_observation (method)”async InMemoryEvalStore.heartbeat_run_observation(claim: EvalRunClaim, *, extend_seconds: int=300) -> EvalRunObservationrequest_cancel (method)
Section titled “request_cancel (method)”async InMemoryEvalStore.request_cancel(run_id: str) -> EvalRunRecordinitialize_scenario_progress (method)
Section titled “initialize_scenario_progress (method)”async InMemoryEvalStore.initialize_scenario_progress(claim: EvalRunClaim, progress: EvalScenarioRunProgress) -> EvalRunRecordupdate_scenario_trial (method)
Section titled “update_scenario_trial (method)”async InMemoryEvalStore.update_scenario_trial(claim: EvalRunClaim, trial: EvalScenarioTrialProgress) -> EvalRunRecordload_trial_checkpoints (method)
Section titled “load_trial_checkpoints (method)”async InMemoryEvalStore.load_trial_checkpoints(claim: EvalRunClaim) -> tuple[EvalRunTrialCheckpoint, ...]load_trial_evidence_links (method)
Section titled “load_trial_evidence_links (method)”async InMemoryEvalStore.load_trial_evidence_links(run_id: str) -> tuple[EvalTrialEvidenceLinkV1, ...]save_trial_checkpoint (method)
Section titled “save_trial_checkpoint (method)”async InMemoryEvalStore.save_trial_checkpoint(claim: EvalRunClaim, checkpoint: EvalRunTrialCheckpoint, *, redact_json: Callable[[Any], Any]) -> Nonesubmit_scenario_approval (method)
Section titled “submit_scenario_approval (method)”async InMemoryEvalStore.submit_scenario_approval(run_id: str, submission: EvalScenarioApprovalSubmission) -> EvalRunRecordpublish_result (method)
Section titled “publish_result (method)”async InMemoryEvalStore.publish_result(claim: EvalRunClaim, result: CorpusExecutionResult, *, redact_json: Callable[[Any], Any]) -> EvalRunRecordfail_run (method)
Section titled “fail_run (method)”async InMemoryEvalStore.fail_run(claim: EvalRunClaim, code: EvalRunFailureCode, *, diagnostic: EvalRunFailureDiagnostic | None=None) -> EvalRunRecordfinish_cancel (method)
Section titled “finish_cancel (method)”async InMemoryEvalStore.finish_cancel(claim: EvalRunClaim) -> EvalRunRecordrelease_run (method)
Section titled “release_run (method)”async InMemoryEvalStore.release_run(claim: EvalRunClaim) -> EvalRunRecordload_result (method)
Section titled “load_result (method)”async InMemoryEvalStore.load_result(run_id: str, *, max_bytes: int=CORPUS_EXECUTION_RESULT_MAX_BYTES) -> CorpusExecutionResult | Nonesave_captured_result (method)
Section titled “save_captured_result (method)”async InMemoryEvalStore.save_captured_result(corpus: EvalCorpusDocument, result: CapturedEvaluationResultV1, *, redact_json: Callable[[Any], Any]) -> EvalResultRecordload_result_by_revision (method)
Section titled “load_result_by_revision (method)”async InMemoryEvalStore.load_result_by_revision(revision: str, *, max_bytes: int=CORPUS_EXECUTION_RESULT_MAX_BYTES) -> CorpusExecutionResult | CapturedEvaluationResultV1 | Noneload_result_record (method)
Section titled “load_result_record (method)”async InMemoryEvalStore.load_result_record(revision: str) -> EvalResultRecord | Nonelist_results (method)
Section titled “list_results (method)”async InMemoryEvalStore.list_results(query: EvalResultQuery) -> EvalResultPageset_baseline (method)
Section titled “set_baseline (method)”async InMemoryEvalStore.set_baseline(update: EvalBaselineUpdate, *, redact_json: Callable[[Any], Any]) -> EvalBaselineMutationRecordload_baseline (method)
Section titled “load_baseline (method)”async InMemoryEvalStore.load_baseline(key: EvalBaselineKey) -> EvalBaselineRecord | Noneload_baseline_mutation (method)
Section titled “load_baseline_mutation (method)”async InMemoryEvalStore.load_baseline_mutation(operation_id: str) -> EvalBaselineMutationRecord | Noneinit (method)
Section titled “init (method)”InMemoryEvalStore.__init__(*, clock: Callable[[], datetime] | None=None, claim_id_factory: Callable[[], str] | None=None) -> NoneRelease source · Runtime guarantees · Capability guides
TERMINAL_EVAL_RUN_STATUSES
Section titled “TERMINAL_EVAL_RUN_STATUSES”from cayu.evals import TERMINAL_EVAL_RUN_STATUSESTERMINAL_EVAL_RUN_STATUSES = frozenset({EvalRunStatus.COMPLETED, EvalRunStatus.FAILED, EvalRunStatus.CANCELLED})