cayu.sessions definitions
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.
ActiveInvocationExecutionProfile
Section titled “ActiveInvocationExecutionProfile”from cayu.runtime import ActiveInvocationExecutionProfileDurable profile authority for one active interaction and run epoch.
Bases: BaseModel.
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 |
|---|---|---|
record_type |
Literal['cayu.active-invocation-execution-profile'] |
_ACTIVE_INVOCATION_EXECUTION_PROFILE_RECORD_TYPE |
schema_version |
Literal[1] |
_ACTIVE_INVOCATION_EXECUTION_PROFILE_SCHEMA_VERSION |
session_id |
str |
required |
interaction_id |
str |
required |
run_epoch |
StrictInt |
Field(ge=1, le=MAX_DURABLE_JSON_INTEGER) |
profile |
ExecutionProfileIdentity |
required |
validate_identity (method)
Section titled “validate_identity (method)”ActiveInvocationExecutionProfile.validate_identity(value: str, info) -> strcopy_profile (method)
Section titled “copy_profile (method)”ActiveInvocationExecutionProfile.copy_profile(value: object) -> ExecutionProfileIdentityRelease source · Runtime guarantees · Capability guides
AdmitInvocationCommand
Section titled “AdmitInvocationCommand”from cayu.runtime import AdmitInvocationCommandBases: _InvocationCommandModel.
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] |
INVOCATION_LIFECYCLE_COMMAND_VERSION |
session_id |
str |
required |
expected_session_instance_id |
str |
required |
kind |
Literal[InvocationLifecycleCommandKind.ADMIT] |
InvocationLifecycleCommandKind.ADMIT |
expected_statuses |
tuple[SessionStatus, ...] |
required |
expected_run_epoch |
StrictInt |
Field(ge=0) |
expected_checkpoint_sha256 |
str |
required |
target_active_profile |
ActiveInvocationExecutionProfile |
required |
checkpoint_patch |
InvocationCheckpointPatch |
Field(default_factory=InvocationCheckpointPatch) |
interaction_source_messages |
tuple[Message, ...] |
() |
tool_capability_ceiling |
ToolCapabilityCeiling |
required |
interaction_started_event |
Event | None |
None |
continued_interaction_id |
str | None |
None |
defer_interaction_source |
StrictBool |
False |
model_transition |
SessionModelTransition | None |
None |
execution_profile_decision |
ExecutionProfileDecision | None |
None |
adopted_runtime_identity |
SessionRuntimeIdentity | None |
None |
expected_active_profile |
ActiveInvocationExecutionProfile | None |
None |
allow_pending_initial_interaction |
StrictBool |
False |
participant_permit_operation |
str | None |
None |
participant_permit_commitment |
str | None |
None |
temporary_service_operation_key |
str | None |
None |
validate_identity (method)
Section titled “validate_identity (method)”AdmitInvocationCommand.validate_identity(value: str, info) -> strvalidate_session_instance_id (method)
Section titled “validate_session_instance_id (method)”AdmitInvocationCommand.validate_session_instance_id(value: str) -> strcopy_statuses (method)
Section titled “copy_statuses (method)”AdmitInvocationCommand.copy_statuses(value: object) -> tuple[SessionStatus, ...]copy_messages (method)
Section titled “copy_messages (method)”AdmitInvocationCommand.copy_messages(value: object) -> tuple[Message, ...]validate_checkpoint_digest (method)
Section titled “validate_checkpoint_digest (method)”AdmitInvocationCommand.validate_checkpoint_digest(value: str) -> strcopy_ceiling (method)
Section titled “copy_ceiling (method)”AdmitInvocationCommand.copy_ceiling(value: ToolCapabilityCeiling) -> ToolCapabilityCeilingcopy_optional_event (method)
Section titled “copy_optional_event (method)”AdmitInvocationCommand.copy_optional_event(value: Event | None) -> Event | Nonecopy_optional_runtime_identity (method)
Section titled “copy_optional_runtime_identity (method)”AdmitInvocationCommand.copy_optional_runtime_identity(value: object) -> SessionRuntimeIdentity | Nonevalidate_continued_interaction (method)
Section titled “validate_continued_interaction (method)”AdmitInvocationCommand.validate_continued_interaction(value: str | None) -> str | Nonevalidate_admission_authority (method)
Section titled “validate_admission_authority (method)”AdmitInvocationCommand.validate_admission_authority() -> AdmitInvocationCommandRelease source · Runtime guarantees · Capability guides
AdmittedInvocationBinding
Section titled “AdmittedInvocationBinding”from cayu.runtime import AdmittedInvocationBindingImmutable durable authority projected from an admitted session.
Decorators: @dataclass(frozen=True, slots=True).
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 |
|---|---|---|
session_id |
str |
required |
session_instance_id |
str |
required |
interaction_id |
str |
required |
run_epoch |
int |
required |
agent_name |
str |
required |
provider_name |
str |
required |
model |
str |
required |
runtime_name |
str |
required |
runtime_version |
str | None |
required |
environment_name |
str | None |
required |
runtime_build_provenance |
RuntimeBuildProvenance |
dataclass_field(default_factory=legacy_runtime_build_provenance) |
Release source · Runtime guarantees · Capability guides
ContinuationConflict
Section titled “ContinuationConflict”from cayu.collaboration import ContinuationConflictA continuation key was reused with different authority or state.
Bases: ValueError.
This type’s implementation and inherited behavior are available in the linked release source.
Release source · Runtime guarantees · Capability guides
ContinuationConsumption
Section titled “ContinuationConsumption”from cayu.runtime import ContinuationConsumptionOne durable handoff from a ready latch to one invocation.
Bases: ContractValue.
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] |
CONTINUATION_SCHEMA_VERSION |
ticket |
ContinuationTicket |
required |
latch |
ContinuationLatch |
required |
continuation_id |
StrictStr |
Field(min_length=1, max_length=256) |
mode |
Literal['inline', 'queued'] |
required |
input_digest |
StrictStr |
required |
profile_digest |
StrictStr |
required |
budget_digest |
StrictStr |
required |
service_digest |
StrictStr | None |
Field(default=None, pattern='^[0-9a-f]{64}$') |
admission_command_digest |
StrictStr |
required |
admission_expected_run_epoch |
StrictInt |
Field(ge=1, le=MAX_PORTABLE_JSON_INTEGER) |
admission_claimed |
StrictBool |
False |
admission_claim_id |
StrictStr | None |
Field(default=None, min_length=1, max_length=128) |
receipt_stage |
Literal['prepared', 'admitted', 'excluded'] |
required |
accepted_at |
StrictStr |
required |
bounded_input (method)
Section titled “bounded_input (method)”ContinuationConsumption.bounded_input(value: object) -> Anyimmutable_fields (method)
Section titled “immutable_fields (method)”ContinuationConsumption.immutable_fields() -> ContractValuevalidate_digest (method)
Section titled “validate_digest (method)”ContinuationConsumption.validate_digest(value: str, info) -> strvalidate_accepted_at (method)
Section titled “validate_accepted_at (method)”ContinuationConsumption.validate_accepted_at(value: str) -> strvalidate_match (method)
Section titled “validate_match (method)”ContinuationConsumption.validate_match() -> ContinuationConsumptionRelease source · Runtime guarantees · Capability guides
ContinuationLatch
Section titled “ContinuationLatch”from cayu.runtime import ContinuationLatchImmutable readiness proof, independent of ticket lifecycle revision.
Bases: ContractValue.
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 |
|---|---|---|
unordered_fields |
class attribute |
frozenset({'selected_manifest'}) |
schema_version |
Literal[1] |
CONTINUATION_SCHEMA_VERSION |
ticket |
ContinuationTicket |
required |
wait_receipt_digest |
StrictStr |
required |
outcome_kind |
Literal['success', 'settled', 'failure', 'unavailable'] |
required |
selected_manifest |
tuple[ObjectRef, ...] |
Field(max_length=CONTINUATION_MAX_TARGETS) |
disclosure_digest |
StrictStr |
required |
latch_key |
StrictStr |
Field(min_length=1, max_length=256) |
outcome_digest |
StrictStr |
required |
accepted_at |
StrictStr |
required |
wait_operation |
OperationRef | None |
None |
bounded_input (method)
Section titled “bounded_input (method)”ContinuationLatch.bounded_input(value: object) -> Anyimmutable_fields (method)
Section titled “immutable_fields (method)”ContinuationLatch.immutable_fields() -> ContractValuevalidate_digest (method)
Section titled “validate_digest (method)”ContinuationLatch.validate_digest(value: str, info) -> strvalidate_accepted_at (method)
Section titled “validate_accepted_at (method)”ContinuationLatch.validate_accepted_at(value: str) -> strvalidate_ticket_identity (method)
Section titled “validate_ticket_identity (method)”ContinuationLatch.validate_ticket_identity() -> ContinuationLatchRelease source · Runtime guarantees · Capability guides
ContinuationLatchReceiver
Section titled “ContinuationLatchReceiver”from cayu.runtime import ContinuationLatchReceiverQualified receiving boundary for wait evidence.
Bases: Protocol.
authenticate_continuation_latch (method)
Section titled “authenticate_continuation_latch (method)”async ContinuationLatchReceiver.authenticate_continuation_latch(latch: ContinuationLatch) -> ContinuationLatchRelease source · Runtime guarantees · Capability guides
ContinuationNamespace
Section titled “ContinuationNamespace”from cayu.runtime import ContinuationNamespaceStore-owned namespace binding for one session incarnation.
Bases: ContractValue.
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 |
|---|---|---|
session_id |
Identifier |
required |
session_instance_id |
Identifier |
required |
owner |
OwnerRef |
required |
namespace_id |
Identifier |
required |
generation |
Literal[1] |
1 |
bounded_input (method)
Section titled “bounded_input (method)”ContinuationNamespace.bounded_input(value: object) -> Anyimmutable_fields (method)
Section titled “immutable_fields (method)”ContinuationNamespace.immutable_fields() -> ContractValueexact_namespace (method)
Section titled “exact_namespace (method)”ContinuationNamespace.exact_namespace() -> ContinuationNamespaceRelease source · Runtime guarantees · Capability guides
ContinuationPreparation
Section titled “ContinuationPreparation”from cayu.runtime import ContinuationPreparationExact receiving command; structural validity does not grant authority.
Bases: ExpectedOperation[ContinuationTicket].
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 |
OperationRef |
required |
kind |
Literal['session.continuation.prepare'] |
'session.continuation.prepare' |
schema_version |
Literal[1] |
1 |
mode |
Literal['wait'] |
'wait' |
source |
OwnerRef |
required |
destination |
OwnerRef |
required |
initiator |
InitiatorBinding |
required |
receipt_stage |
Literal['prepared'] |
'prepared' |
intent |
IntentT |
required |
registration |
HandoffIntent[ContinuationTicket] |
required |
bounded_input (method)
Section titled “bounded_input (method)”ContinuationPreparation.bounded_input(value: object) -> Anyimmutable_fields (method)
Section titled “immutable_fields (method)”ContinuationPreparation.immutable_fields() -> ContractValueoperation_scope (method)
Section titled “operation_scope (method)”ContinuationPreparation.operation_scope() -> ExpectedOperation[IntentT]consistent_ticket (method)
Section titled “consistent_ticket (method)”ContinuationPreparation.consistent_ticket() -> ContinuationPreparationRelease source · Runtime guarantees · Capability guides
ContinuationRecord
Section titled “ContinuationRecord”from cayu.collaboration import ContinuationRecordOne atomic aggregate for ticket, latch, consumption and retirement.
Bases: ContractValue.
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] |
CONTINUATION_SCHEMA_VERSION |
namespace |
ContinuationNamespace |
required |
preparation |
ContinuationPreparation |
required |
ticket |
ContinuationTicket |
required |
latch |
ContinuationLatch | None |
None |
consumption |
ContinuationConsumption | None |
None |
retirement |
ContinuationRetirement | None |
None |
released_retirement |
ContinuationReleasedExecution | None |
None |
retirement_acknowledged |
StrictBool |
False |
recovery_writer |
ContinuationRecoveryWriter | None |
Field(default=None, exclude_if=lambda value: value is None) |
events |
tuple[ContinuationEvent, ...] |
Field(default=(), max_length=CONTINUATION_MAX_EVENTS) |
services |
tuple[ContinuationServiceReference, ...] |
Field(default=(), max_length=CONTINUATION_MAX_SERVICES) |
bounded_input (method)
Section titled “bounded_input (method)”ContinuationRecord.bounded_input(value: object) -> Anyimmutable_fields (method)
Section titled “immutable_fields (method)”ContinuationRecord.immutable_fields() -> ContractValuevalidate_aggregate (method)
Section titled “validate_aggregate (method)”ContinuationRecord.validate_aggregate() -> ContinuationRecordRelease source · Runtime guarantees · Capability guides
ContinuationRetirement
Section titled “ContinuationRetirement”from cayu.runtime import ContinuationRetirementExplicit, separately keyed retirement authority.
Bases: ContractValue.
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] |
CONTINUATION_SCHEMA_VERSION |
ticket |
ContinuationTicket |
required |
control_id |
StrictStr |
Field(min_length=1, max_length=256) |
reason |
Literal['cancelled', 'expired', 'failed', 'superseded', 'unavailable'] |
required |
retired_at |
StrictStr |
required |
bounded_input (method)
Section titled “bounded_input (method)”ContinuationRetirement.bounded_input(value: object) -> Anyimmutable_fields (method)
Section titled “immutable_fields (method)”ContinuationRetirement.immutable_fields() -> ContractValuevalidate_retired_at (method)
Section titled “validate_retired_at (method)”ContinuationRetirement.validate_retired_at(value: str) -> strvalidate_reserved_capacity (method)
Section titled “validate_reserved_capacity (method)”ContinuationRetirement.validate_reserved_capacity() -> ContinuationRetirementRelease source · Runtime guarantees · Capability guides
ContinuationService
Section titled “ContinuationService”from cayu.collaboration import ContinuationServiceExact host-selected continuation, independent of automatic scheduling.
Bases: ContractValue.
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 |
|---|---|---|
ticket |
ContinuationTicket |
required |
latch |
ContinuationLatch |
required |
continuation_id |
StrictStr |
Field(min_length=1, max_length=256) |
mode |
Literal['inline', 'queued'] |
required |
accepted_at |
StrictStr |
required |
bounded_input (method)
Section titled “bounded_input (method)”ContinuationService.bounded_input(value: object) -> Anyimmutable_fields (method)
Section titled “immutable_fields (method)”ContinuationService.immutable_fields() -> ContractValuevalidate_accepted_at (method)
Section titled “validate_accepted_at (method)”ContinuationService.validate_accepted_at(value: str) -> strvalidate_wait (method)
Section titled “validate_wait (method)”ContinuationService.validate_wait() -> ContinuationServiceRelease source · Runtime guarantees · Capability guides
ContinuationTicket
Section titled “ContinuationTicket”from cayu.runtime import ContinuationTicketImmutable wait identity plus its mutable lifecycle revision.
Bases: ContractValue.
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 |
|---|---|---|
unordered_fields |
class attribute |
frozenset({'targets'}) |
schema_version |
Literal[1] |
CONTINUATION_SCHEMA_VERSION |
namespace |
ContinuationNamespace |
required |
session_id |
StrictStr |
required |
session_instance_id |
StrictStr |
required |
owner |
OwnerRef |
required |
registration_key |
StrictStr |
Field(min_length=1, max_length=256) |
targets |
tuple[ObjectRef, ...] |
Field(min_length=1, max_length=CONTINUATION_MAX_TARGETS) |
predicate_kind |
Literal['ALL_SUCCESS', 'ALL_SETTLED', 'ANY_SUCCESS', 'QUORUM_SUCCESS'] |
required |
predicate_version |
StrictInt |
Field(ge=1, le=MAX_PORTABLE_JSON_INTEGER) |
threshold |
StrictInt | None |
Field(default=None, ge=1, le=CONTINUATION_MAX_TARGETS) |
deadline |
StrictStr | None |
required |
failure_policy |
StrictStr |
Field(min_length=1, max_length=128) |
service_policy |
StrictStr |
Field(min_length=1, max_length=128) |
wait_edge_revision |
StrictInt |
Field(ge=1, le=MAX_PORTABLE_JSON_INTEGER) |
interaction_id |
StrictStr |
required |
writer_generation |
StrictInt |
Field(ge=1, le=MAX_PORTABLE_JSON_INTEGER) |
purpose |
StrictStr |
Field(min_length=1, max_length=256) |
execution_admission_sha256 |
StrictStr | None |
Field(default=None, pattern='^[0-9a-f]{64}$') |
collaboration_wait_sha256 |
StrictStr | None |
Field(default=None, pattern='^[0-9a-f]{64}$') |
state |
Literal['ARMING', 'WAITING', 'SERVICING', 'CONSUMED', 'RETIRED'] |
required |
revision |
StrictInt |
Field(ge=1, le=MAX_PORTABLE_JSON_INTEGER) |
bounded_input (method)
Section titled “bounded_input (method)”ContinuationTicket.bounded_input(value: object) -> Anyimmutable_fields (method)
Section titled “immutable_fields (method)”ContinuationTicket.immutable_fields() -> ContractValuevalidate_deadline (method)
Section titled “validate_deadline (method)”ContinuationTicket.validate_deadline(value: str | None) -> str | Nonevalidate_text (method)
Section titled “validate_text (method)”ContinuationTicket.validate_text(value: str, info) -> strvalidate_authority (method)
Section titled “validate_authority (method)”ContinuationTicket.validate_authority() -> ContinuationTicketRelease source · Runtime guarantees · Capability guides
ContinuationUnavailable
Section titled “ContinuationUnavailable”from cayu.collaboration import ContinuationUnavailableThe exact continuation cannot be positively reconstructed.
Bases: RuntimeError.
This type’s implementation and inherited behavior are available in the linked release source.
Release source · Runtime guarantees · Capability guides
ContinuationWait
Section titled “ContinuationWait”from cayu.runtime import ContinuationWaitCaller wait intent, excluding runtime-generated session and namespace identity.
Bases: ContractValue.
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 |
|---|---|---|
unordered_fields |
class attribute |
frozenset({'targets'}) |
registration_key |
Identifier |
Field(max_length=256) |
targets |
tuple[ObjectRef, ...] |
Field(min_length=1, max_length=CONTINUATION_MAX_TARGETS) |
predicate_kind |
Literal['ALL_SUCCESS', 'ALL_SETTLED', 'ANY_SUCCESS', 'QUORUM_SUCCESS'] |
required |
predicate_version |
StrictInt |
Field(ge=1, le=MAX_PORTABLE_JSON_INTEGER) |
threshold |
StrictInt | None |
Field(default=None, ge=1, le=CONTINUATION_MAX_TARGETS) |
deadline |
StrictStr | None |
required |
failure_policy |
StrictStr |
Field(min_length=1, max_length=128) |
service_policy |
StrictStr |
Field(min_length=1, max_length=128) |
wait_edge_revision |
StrictInt |
Field(ge=1, le=MAX_PORTABLE_JSON_INTEGER) |
purpose |
StrictStr |
Field(min_length=1, max_length=256) |
execution_admission_sha256 |
StrictStr | None |
Field(default=None, pattern='^[0-9a-f]{64}$') |
collaboration_wait_sha256 |
StrictStr | None |
Field(default=None, pattern='^[0-9a-f]{64}$') |
bounded_input (method)
Section titled “bounded_input (method)”ContinuationWait.bounded_input(value: object) -> Anyimmutable_fields (method)
Section titled “immutable_fields (method)”ContinuationWait.immutable_fields() -> ContractValuevalidate_execution_commitments (method)
Section titled “validate_execution_commitments (method)”ContinuationWait.validate_execution_commitments() -> ContinuationWaitRelease source · Runtime guarantees · Capability guides
copy_invocation_lifecycle_command
Section titled “copy_invocation_lifecycle_command”from cayu.runtime import copy_invocation_lifecycle_commandRevalidate and detach one command before any store receives it.
copy_invocation_lifecycle_command(command: object) -> InvocationLifecycleCommandRelease source · Runtime guarantees · Capability guides
CreateInvocationCommand
Section titled “CreateInvocationCommand”from cayu.runtime import CreateInvocationCommandBases: _InvocationCommandModel.
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] |
INVOCATION_LIFECYCLE_COMMAND_VERSION |
session_id |
str |
required |
expected_session_instance_id |
str |
required |
kind |
Literal[InvocationLifecycleCommandKind.CREATE] |
InvocationLifecycleCommandKind.CREATE |
request |
RunRequest |
required |
identity |
SessionIdentity |
required |
active_profile |
ActiveInvocationExecutionProfile |
required |
interaction_started_event |
Event |
required |
interaction_source_messages |
tuple[Message, ...] |
required |
checkpoint_patch |
InvocationCheckpointPatch |
Field(default_factory=InvocationCheckpointPatch) |
tool_discovery_initialization |
ToolDiscoveryViewInitialization | None |
None |
validate_identity (method)
Section titled “validate_identity (method)”CreateInvocationCommand.validate_identity(value: str, info) -> strvalidate_session_instance_id (method)
Section titled “validate_session_instance_id (method)”CreateInvocationCommand.validate_session_instance_id(value: str) -> strcopy_request (method)
Section titled “copy_request (method)”CreateInvocationCommand.copy_request(value: RunRequest) -> RunRequestcopy_identity (method)
Section titled “copy_identity (method)”CreateInvocationCommand.copy_identity(value: SessionIdentity) -> SessionIdentitycopy_event (method)
Section titled “copy_event (method)”CreateInvocationCommand.copy_event(value: Event) -> Eventcopy_messages (method)
Section titled “copy_messages (method)”CreateInvocationCommand.copy_messages(value: object) -> tuple[Message, ...]validate_create_authority (method)
Section titled “validate_create_authority (method)”CreateInvocationCommand.validate_create_authority() -> CreateInvocationCommandRelease source · Runtime guarantees · Capability guides
EXECUTION_PROFILE_METADATA_KEY
Section titled “EXECUTION_PROFILE_METADATA_KEY”from cayu import EXECUTION_PROFILE_METADATA_KEYEXECUTION_PROFILE_METADATA_KEY = 'cayu:execution_profile'Release source · Runtime guarantees · Capability guides
INVOCATION_LIFECYCLE_COMMAND_VERSION
Section titled “INVOCATION_LIFECYCLE_COMMAND_VERSION”from cayu.runtime import INVOCATION_LIFECYCLE_COMMAND_VERSIONINVOCATION_LIFECYCLE_COMMAND_VERSION = 1Release source · Runtime guarantees · Capability guides
InvocationCheckpointPatch
Section titled “InvocationCheckpointPatch”from cayu.runtime import InvocationCheckpointPatchA bounded root-level CAS patch that cannot address invocation authority.
Bases: BaseModel.
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 |
|---|---|---|
mutation |
RuntimePublicationMutation |
Field(default_factory=RuntimePublicationMutation) |
copy_mutation (method)
Section titled “copy_mutation (method)”InvocationCheckpointPatch.copy_mutation(value: object) -> RuntimePublicationMutationreject_authority_operations (method)
Section titled “reject_authority_operations (method)”InvocationCheckpointPatch.reject_authority_operations() -> InvocationCheckpointPatchRelease source · Runtime guarantees · Capability guides
InvocationLifecycleCommand
Section titled “InvocationLifecycleCommand”from cayu.runtime import InvocationLifecycleCommandInvocationLifecycleCommand: TypeAlias = Annotated[CreateInvocationCommand | AdmitInvocationCommand | RebindInvocationCommand | RejectInvocationCommand | SettleInvocationCommand | ReleaseInvocationCommand, Field(discriminator='kind')]Release source · Runtime guarantees · Capability guides
InvocationLifecycleCommandConflict
Section titled “InvocationLifecycleCommandConflict”from cayu.runtime import InvocationLifecycleCommandConflictA stable lifecycle command identity names different authority.
Bases: ValueError.
This type’s implementation and inherited behavior are available in the linked release source.
Release source · Runtime guarantees · Capability guides
InvocationLifecycleCommandKind
Section titled “InvocationLifecycleCommandKind”from cayu.runtime import InvocationLifecycleCommandKindClosed command family understood by lifecycle command version 1.
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 |
|---|---|---|
CREATE |
class attribute |
'create' |
ADMIT |
class attribute |
'admit' |
REBIND |
class attribute |
'rebind' |
REJECT |
class attribute |
'reject' |
SETTLE |
class attribute |
'settle' |
RELEASE |
class attribute |
'release' |
Release source · Runtime guarantees · Capability guides
InvocationLifecycleResult
Section titled “InvocationLifecycleResult”from cayu.runtime import InvocationLifecycleResultInvocationLifecycleResult: TypeAlias = InvocationMutationResult | InvocationReleaseResult | ExecutionProfileRejectionResult | InteractionTransitionResultRelease source · Runtime guarantees · Capability guides
InvocationMutationResult
Section titled “InvocationMutationResult”from cayu.runtime import InvocationMutationResultOne admitted or rebound invocation and its exact active authority.
Bases: BaseModel.
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 |
|---|---|---|
session |
Session |
required |
active_profile |
ActiveInvocationExecutionProfile |
required |
replayed |
StrictBool |
False |
copy_result_session (method)
Section titled “copy_result_session (method)”InvocationMutationResult.copy_result_session(value: Session) -> Sessionvalidate_result_authority (method)
Section titled “validate_result_authority (method)”InvocationMutationResult.validate_result_authority() -> InvocationMutationResultRelease source · Runtime guarantees · Capability guides
InvocationReleaseResult
Section titled “InvocationReleaseResult”from cayu.runtime import InvocationReleaseResultExact durable result of releasing one invocation run epoch.
Bases: BaseModel.
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 |
|---|---|---|
session |
Session |
required |
active_profile |
ActiveInvocationExecutionProfile |
required |
replayed |
StrictBool |
required |
copy_result_session (method)
Section titled “copy_result_session (method)”InvocationReleaseResult.copy_result_session(value: Session) -> Sessionvalidate_release_result (method)
Section titled “validate_release_result (method)”InvocationReleaseResult.validate_release_result() -> InvocationReleaseResultRelease source · Runtime guarantees · Capability guides
ParticipantSessionCursor
Section titled “ParticipantSessionCursor”from cayu.collaboration import ParticipantSessionCursorBases: ContractValue.
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 |
|---|---|---|
participant |
ParticipantRef |
required |
after |
Identifier |
required |
bounded_input (method)
Section titled “bounded_input (method)”ParticipantSessionCursor.bounded_input(value: object) -> Anyimmutable_fields (method)
Section titled “immutable_fields (method)”ParticipantSessionCursor.immutable_fields() -> ContractValueRelease source · Runtime guarantees · Capability guides
ParticipantSessionReference
Section titled “ParticipantSessionReference”from cayu.collaboration import ParticipantSessionReferenceBases: ContractValue.
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 |
|---|---|---|
participant |
ParticipantRef |
required |
creation_key |
Identifier |
required |
session_id |
Identifier |
required |
session_instance_id |
Identifier |
required |
receipt_commitment |
Identifier |
required |
bounded_input (method)
Section titled “bounded_input (method)”ParticipantSessionReference.bounded_input(value: object) -> Anyimmutable_fields (method)
Section titled “immutable_fields (method)”ParticipantSessionReference.immutable_fields() -> ContractValueRelease source · Runtime guarantees · Capability guides
PreparedInvocationBinding
Section titled “PreparedInvocationBinding”from cayu.runtime import PreparedInvocationBindingA store target fixed before one invocation is durably admitted.
Decorators: @dataclass(frozen=True, slots=True).
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 |
|---|---|---|
session_id |
str |
required |
session_instance_id |
str |
required |
interaction_id |
str |
required |
run_epoch |
int |
required |
agent_name |
str |
required |
provider_name |
str |
required |
model |
str |
required |
runtime_name |
str |
required |
runtime_version |
str | None |
required |
environment_name |
str | None |
required |
runtime_build_provenance |
RuntimeBuildProvenance |
dataclass_field(default_factory=legacy_runtime_build_provenance) |
Release source · Runtime guarantees · Capability guides
RebindInvocationCommand
Section titled “RebindInvocationCommand”from cayu.runtime import RebindInvocationCommandBases: _InvocationCommandModel.
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] |
INVOCATION_LIFECYCLE_COMMAND_VERSION |
session_id |
str |
required |
expected_session_instance_id |
str |
required |
kind |
Literal[InvocationLifecycleCommandKind.REBIND] |
InvocationLifecycleCommandKind.REBIND |
expected_statuses |
tuple[SessionStatus, ...] |
required |
expected_run_epoch |
StrictInt |
Field(ge=0) |
expected_session_sha256 |
str |
required |
expected_checkpoint_sha256 |
str |
required |
expected_active_profile |
ActiveInvocationExecutionProfile |
required |
target_active_profile |
ActiveInvocationExecutionProfile |
required |
target_status |
SessionStatus | None |
None |
checkpoint_patch |
InvocationCheckpointPatch |
Field(default_factory=InvocationCheckpointPatch) |
validate_identity (method)
Section titled “validate_identity (method)”RebindInvocationCommand.validate_identity(value: str, info) -> strvalidate_session_instance_id (method)
Section titled “validate_session_instance_id (method)”RebindInvocationCommand.validate_session_instance_id(value: str) -> strcopy_statuses (method)
Section titled “copy_statuses (method)”RebindInvocationCommand.copy_statuses(value: object) -> tuple[SessionStatus, ...]validate_source_digest (method)
Section titled “validate_source_digest (method)”RebindInvocationCommand.validate_source_digest(value: str, info) -> strvalidate_rebind_authority (method)
Section titled “validate_rebind_authority (method)”RebindInvocationCommand.validate_rebind_authority() -> RebindInvocationCommandRelease source · Runtime guarantees · Capability guides
RecipientContinuationSelection
Section titled “RecipientContinuationSelection”from cayu.collaboration import RecipientContinuationSelectionBounded identity data, not continuation admission or current authorization.
Bases: ContractValue.
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 |
VersionOne |
1 |
session_id |
Identifier |
required |
session_instance_id |
Identifier |
required |
participant |
ParticipantRef |
required |
run_epoch |
Annotated[StrictInt, Field(ge=1, le=MAX_DURABLE_JSON_INTEGER)] |
required |
participant_binding_sha256 |
Digest |
required |
checkpoint_sha256 |
Digest |
required |
release_identity |
Annotated[StrictStr, Field(min_length=1, max_length=1024)] |
required |
release_sha256 |
Digest |
required |
interaction_id |
Identifier |
required |
model_step_id |
Identifier |
required |
completion_event_id |
Identifier |
required |
transcript_end_cursor |
Cursor |
required |
execution_profile_json |
StrictStr |
required |
bounded_input (method)
Section titled “bounded_input (method)”RecipientContinuationSelection.bounded_input(value: object) -> Anyimmutable_fields (method)
Section titled “immutable_fields (method)”RecipientContinuationSelection.immutable_fields() -> ContractValueprofile_snapshot (method)
Section titled “profile_snapshot (method)”RecipientContinuationSelection.profile_snapshot(value: str) -> strRelease source · Runtime guarantees · Capability guides
RejectInvocationCommand
Section titled “RejectInvocationCommand”from cayu.runtime import RejectInvocationCommandBases: _InvocationCommandModel.
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] |
INVOCATION_LIFECYCLE_COMMAND_VERSION |
session_id |
str |
required |
expected_session_instance_id |
str |
required |
kind |
Literal[InvocationLifecycleCommandKind.REJECT] |
InvocationLifecycleCommandKind.REJECT |
expected_statuses |
tuple[SessionStatus, ...] |
required |
expected_run_epoch |
StrictInt |
Field(ge=0) |
expected_profile |
ExecutionProfileIdentity |
required |
candidate_profile |
ExecutionProfileIdentity |
required |
event |
Event |
required |
decision |
ExecutionProfileDecision | None |
None |
expected_active_profile |
ActiveInvocationExecutionProfile | None |
None |
validate_identity (method)
Section titled “validate_identity (method)”RejectInvocationCommand.validate_identity(value: str, info) -> strvalidate_session_instance_id (method)
Section titled “validate_session_instance_id (method)”RejectInvocationCommand.validate_session_instance_id(value: str) -> strcopy_statuses (method)
Section titled “copy_statuses (method)”RejectInvocationCommand.copy_statuses(value: object) -> tuple[SessionStatus, ...]copy_rejection_event (method)
Section titled “copy_rejection_event (method)”RejectInvocationCommand.copy_rejection_event(value: Event) -> Eventvalidate_rejection_authority (method)
Section titled “validate_rejection_authority (method)”RejectInvocationCommand.validate_rejection_authority() -> RejectInvocationCommandRelease source · Runtime guarantees · Capability guides
ReleaseInvocationCommand
Section titled “ReleaseInvocationCommand”from cayu.runtime import ReleaseInvocationCommandBases: _InvocationCommandModel.
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] |
INVOCATION_LIFECYCLE_COMMAND_VERSION |
session_id |
str |
required |
expected_session_instance_id |
str |
required |
kind |
Literal[InvocationLifecycleCommandKind.RELEASE] |
InvocationLifecycleCommandKind.RELEASE |
expected_run_epoch |
StrictInt |
Field(ge=1) |
expected_active_profile |
ActiveInvocationExecutionProfile |
required |
settlement_transition |
InteractionTransitionSpec | None |
None |
recovery_claim_id |
str | None |
None |
terminal_session_event |
Event | None |
None |
validate_identity (method)
Section titled “validate_identity (method)”ReleaseInvocationCommand.validate_identity(value: str, info) -> strvalidate_session_instance_id (method)
Section titled “validate_session_instance_id (method)”ReleaseInvocationCommand.validate_session_instance_id(value: str) -> strvalidate_recovery_claim_id (method)
Section titled “validate_recovery_claim_id (method)”ReleaseInvocationCommand.validate_recovery_claim_id(value: object) -> str | Nonecopy_terminal_session_event (method)
Section titled “copy_terminal_session_event (method)”ReleaseInvocationCommand.copy_terminal_session_event(value: Event | None) -> Event | Nonevalidate_release_authority (method)
Section titled “validate_release_authority (method)”ReleaseInvocationCommand.validate_release_authority() -> ReleaseInvocationCommandRelease source · Runtime guarantees · Capability guides
SettleInvocationCommand
Section titled “SettleInvocationCommand”from cayu.runtime import SettleInvocationCommandBases: _InvocationCommandModel.
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] |
INVOCATION_LIFECYCLE_COMMAND_VERSION |
session_id |
str |
required |
expected_session_instance_id |
str |
required |
kind |
Literal[InvocationLifecycleCommandKind.SETTLE] |
InvocationLifecycleCommandKind.SETTLE |
expected_run_epoch |
StrictInt |
Field(ge=1) |
expected_active_profile |
ActiveInvocationExecutionProfile |
required |
expected_authority_state |
Literal['active', 'released'] |
'active' |
recovery_claim_id |
str | None |
None |
terminalization_only |
StrictBool |
False |
terminalization_plan_ownership |
DurableOperationOwnership | None |
None |
transition |
InteractionTransitionSpec |
required |
validate_identity (method)
Section titled “validate_identity (method)”SettleInvocationCommand.validate_identity(value: str, info) -> strvalidate_session_instance_id (method)
Section titled “validate_session_instance_id (method)”SettleInvocationCommand.validate_session_instance_id(value: str) -> strvalidate_settlement_authority (method)
Section titled “validate_settlement_authority (method)”SettleInvocationCommand.validate_settlement_authority() -> SettleInvocationCommand