pub enum Record {
Show 20 variants
Prepared(Box<Transaction>),
Advance {
txn: TxnId,
epoch: u64,
to: TxnState,
note: String,
withdrawn_for: Option<TxnId>,
},
Takeover {
txn: TxnId,
from_epoch: u64,
lease: Lease,
},
Renew {
txn: TxnId,
epoch: u64,
worker_pid: Option<u32>,
boot_at: Timestamp,
},
OpBegin {
op: OpId,
call: String,
},
OpAck {
op: OpId,
outcome: Outcome,
},
OverrideSet(Override),
OverrideLifted(UnitId),
Incident(Incident),
KnownGood(GenerationId),
LiveTested(Option<GenerationId>),
AcceptedBaseline(Option<GenerationId>),
SecurityFloor(Option<GenerationId>),
ExternalAccepted {
seq: u64,
digest: Hash,
},
TokenUsed {
nonce: [u8; 16],
expires: Timestamp,
approver: u64,
txn: u64,
},
AgentStarted {
name: String,
instance: [u8; 16],
by: u32,
},
Resolved {
txn: TxnId,
resolution: Resolution,
by: Actor,
},
Reconciliation(Reconciliation),
HoldApplied {
unit: UnitId,
by: HoldBy,
},
HoldLifted {
unit: UnitId,
reason: String,
},
}Variants§
Prepared(Box<Transaction>)
The transaction exists from this record on (§12 step 4).
Advance
Fields
Takeover
Compare-and-swap on the epoch: valid only if from_epoch is current.
Renew
Fields
OpBegin
Written and fsynced before the backend call it names.
OpAck
OverrideSet(Override)
OverrideLifted(UnitId)
Incident(Incident)
KnownGood(GenerationId)
LiveTested(Option<GenerationId>)
AcceptedBaseline(Option<GenerationId>)
SecurityFloor(Option<GenerationId>)
The security floor (§12e): derived when a generation commits, or set by
an administrator’s mark-security-floor; never by a proposal.
ExternalAccepted
The external desired-state document accepted (§9 hook, §12c, B-16): its sequence number and the hash of its bytes. Replay protection lives here, in the journal and its checkpoint, not in a cache file.
TokenUsed
An approval used (§12 step 4, I7): by whom, for which transaction.
Fields
AgentStarted
planarian agent run <name> by this uid (§11, I24): the started
unit’s instance (its InvocationID) acts with that user’s permissions,
attributed to the agent. Journaled once the unit has started, so a
failed or refused start binds nothing; covered by the chain.
Fields
Resolved
Reconciliation(Reconciliation)
HoldApplied
§12d Network security fails closed: the unit’s traffic is held, journaled before the call (write-ahead). A failure posture response, not a transaction (docs/bypasses.md).
HoldLifted
The hold is lifted: the unit is Running and its Readiness probes pass, or an attested release. Journaled before the call.