PolicyTickEffect class

A single tick of an EphemeralPolicy.

Recorded once per (policy, cell) tick during a pulse wave. On replay, the tick is consumed from the journal and re-applied to the CycleChecker so diamond graphs do not spuriously detect cycles (the cycle-checker fix the previous revision deferred).

Inheritance

Constructors

PolicyTickEffect({required int ordinal, required String inputDigest, required String outputDigest, required DateTime at, required String policyLabel, required String cellId})
const

Properties

at → DateTime
Wall-clock time of the observation. Recorded because replay needs to reconstruct ordering; not part of the semantics of the effect.
finalinherited
cellId → String
The cell on which the policy ticked. Necessary because a pulse can visit multiple cells, and only the cell being ticked matters to the CycleChecker.
final
hashCode → int
The hash code for this object.
no setterinherited
inputDigest → String
SHA-256 fingerprint of the effect's input (e.g. for Clock.now, the fingerprint of "clock"; for IoEffect, the fingerprint of the request).
finalinherited
kind → String
The type tag stored in the ledger. Stable across schema versions.
no setteroverride
ordinal → int
Monotonic ordinal within the journal, assigned by EffectJournal. Used to assert exact consumption during replay.
finalinherited
outputDigest → String
SHA-256 fingerprint of the effect's output (e.g. the epoch millis for a clock read; the response body for an I/O call).
finalinherited
policyLabel → String
A stable label for the policy, e.g. 'cachePolicy'.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
payloadJson() → Map<String, Object?>
The variant-specific payload. Called by toJson.
override
toJson() → Map<String, Object?>
Serialises this record to its canonical JSON map.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromJson(Map<String, Object?> json) → PolicyTickEffect
Reconstructs an EffectRecord from toJson's output.
override