mixle.experimental.typed_runtime.transaction module¶
Versioned transactional proposal commit with canaries and verified rollback.
- class CanaryVerdict(accepted, reason, objective_before=None, objective_after=None, lower_confidence_gain=None, confidence_level=None, sample_count=0, metrics=<factory>, proposal_objectives=<factory>)[source]
Bases:
objectMeasured acceptance evidence after proposals have been tentatively applied.
- Parameters:
- class CommitReceipt(commit_id, batch_id, proposal_ids, status, reason, versions_before, versions_after, invalidated_nodes=(), canary=None, participant_fingerprints_before=<factory>, participant_fingerprints_after=<factory>, rollback_verified=None, error_type=None, error_message=None, run_id='', model_id='', elapsed_seconds=0.0)[source]
Bases:
objectCoordinator decision, state fingerprints, and version transition.
- Parameters:
- property accepted: bool
Whether this transaction advanced the model version.
- class ObjectiveGateEvidence(objective_before, objective_after, lower_confidence_gain=None)[source]
Bases:
objectProposal-specific objective evidence used for mixed or multi-update gates.
- class RuntimeVersions(model_version, node_versions)[source]
Bases:
objectCoordinator-owned global and per-node versions.
- class TransactionParticipant(name, semantics, snapshot_fn, restore_fn, fingerprint_fn, artifacts=frozenset({}))[source]
Bases:
objectSnapshot/restore adapter for one mutable state domain.
- Parameters:
- class TransactionalCoordinator(graph, apply_proposal, canary, *, run_id, model_id, participants=(), versions=None, objective_tolerance=1.0e-9, enforce_monotone_objective=True)[source]
Bases:
objectSerialize proposal commits through preflight, snapshot, canary, and commit.
- Parameters:
- property receipts: tuple[CommitReceipt, ...]
Every terminal commit receipt this coordinator produced, oldest first.
A detached tuple: the receipts themselves are frozen and sealed, and the sequence they form is the coordinator’s own record, not a caller-editable list (MXR-080-1905).
- property proposal_receipts: tuple[dict[str, Any], ...]
Serialized proposals seen by this coordinator, in arrival order.
Each row is a fresh
as_dict()payload built at commit time, so the tuple shares no structure a caller can reach (MXR-080-1905).
- property poisoned: bool
Whether an unverified rollback has disabled further commits.
Read-only: this was a plain attribute, so
coordinator.poisoned = Falseun-poisoned a coordinator whose rollback could not be verified and let it accept commits on top of state nothing had confirmed was restored (MXR-080-1905). Onlycommit()sets it, from the rollback verification itself.