cayu.sessions.PromptAnatomyTransitionReceipt
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import PromptAnatomyTransitionReceiptDurable prompt-succession evidence that never contains prompt text.
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.prompt-anatomy-transition'] |
PROMPT_ANATOMY_TRANSITION_RECORD_TYPE |
schema_version |
Literal[1] |
PROMPT_ANATOMY_TRANSITION_SCHEMA_VERSION |
transition_id |
str |
required |
request_sha256 |
str |
required |
source_session_id |
str |
required |
descendant_session_id |
str |
required |
source_status |
SessionStatus |
required |
source_transcript_cursor |
int |
required |
source_prompt_sha256 |
str |
required |
child_prompt_sha256 |
str |
required |
source_system_prompt_retained |
StrictBool |
required |
child_agent_name |
str |
required |
child_environment_name |
str |
required |
copy_checkpoint |
StrictBool |
required |
source_provider_name |
str |
required |
source_model |
str |
required |
provider_name |
str |
required |
model |
str |
required |
model_target_changed |
StrictBool |
required |
portability_preflight |
Literal['context_messages_validated', 'provider_portable_transcript_preflight'] |
required |
portability_verified |
Literal[True] |
required |
inherited_taint_labels |
tuple[str, ...] |
required |
policy |
Literal[ForkSystemPromptPolicy.CURRENT_AGENT] |
ForkSystemPromptPolicy.CURRENT_AGENT |
create (method)
Section titled “create (method)”PromptAnatomyTransitionReceipt.create(*, request_sha256: str, source_session_id: str, descendant_session_id: str, source_status: SessionStatus, source_transcript_cursor: int, source_prompt_sha256: str, child_prompt_sha256: str, child_agent_name: str, child_environment_name: str, copy_checkpoint: bool, source_provider_name: str, source_model: str, provider_name: str, model: str, model_target_changed: bool, portability_preflight: Literal['context_messages_validated', 'provider_portable_transcript_preflight'], inherited_taint_labels: tuple[str, ...]) -> PromptAnatomyTransitionReceiptBuild one canonical receipt and bind its digest to the same material.
validate_nonblank_receipt_fields (method)
Section titled “validate_nonblank_receipt_fields (method)”PromptAnatomyTransitionReceipt.validate_nonblank_receipt_fields(value: str, info) -> strvalidate_environment (method)
Section titled “validate_environment (method)”PromptAnatomyTransitionReceipt.validate_environment(value: str) -> strvalidate_prompt_digest (method)
Section titled “validate_prompt_digest (method)”PromptAnatomyTransitionReceipt.validate_prompt_digest(value: str, info) -> strvalidate_inherited_taint_labels (method)
Section titled “validate_inherited_taint_labels (method)”PromptAnatomyTransitionReceipt.validate_inherited_taint_labels(value: tuple[str, ...]) -> tuple[str, ...]validate_exact_transition_authority (method)
Section titled “validate_exact_transition_authority (method)”PromptAnatomyTransitionReceipt.validate_exact_transition_authority() -> PromptAnatomyTransitionReceipt