AutomationRecord
yosoi.archive.AutomationRecord
class AutomationRecord(ImmutableModel):
Bounded observations and receipts validated by the Rust record contract.
This stores evidence, not executable Python objects or resumed Sessions. Pydantic Contract instances are outside the portable Archive contract.
Attributes: version: Logical record schema version. id: Application-authored record identity. observations: Captured evidence with original Session, tab and epoch. operations: Ordered operation receipts with effect certainty preserved. flow_outcome: Optional original Flow declaration and observed outcome. context: Optional application-supplied provenance.
Source: python/yosoi/archive.py:112
Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.
Fields and class attributes
Section titled “Fields and class attributes”version: Literal[1] = 1
id: StrictStr
observations: tuple[Observation, ...] = ()
operations: tuple[OperationReceipt, ...] = ()
flow_outcome: FlowOutcome | None = None
context: AutomationContext | None = None
Methods
Section titled “Methods”from_flow
Section titled “from_flow”@classmethod
def from_flow(cls, id: str, outcome: FlowOutcome) -> Self:
Retain a Flow’s receipts, cleanup, failure capture and unique observations.
Rejected and unknown results remain intact. Inconsistent observations, unsupported outcomes and excessive evidence raise ArchiveError.