Skip to main content

CheckRecord

Struct CheckRecord 

Source
pub struct CheckRecord {
Show 16 fields pub ts: u64, pub observed_at: Option<u64>, pub entity: String, pub verdict: String, pub method: Option<String>, pub entity_hash: String, pub actor: String, pub client: Option<String>, pub role: String, pub identity: Option<String>, pub kind: Option<String>, pub schema_ref: Option<String>, pub finding: Option<CheckFinding>, pub renamed_from: Option<String>, pub carried_from: Option<CarriedFrom>, pub checked_write: Option<String>,
}
Expand description

One recorded check — the full ledger line.

Fields§

§ts: u64

Unix epoch seconds at record time: the engine’s clock when the line was written, never caller-supplied.

§observed_at: Option<u64>

Unix epoch seconds at which the check was MADE, when the caller said so (observed_at on memstead check, a --from row and memstead_check): a recorder transcribing checks that were made earlier, or out of order, states the time of each act here and ts keeps the time of the transcription. It is the record’s time of the act (CheckRecord::act_time: observed_at where present, ts otherwise), and the newest record of a kind is the one whose act is latest (CheckLedger::in_standing_order), never the one the ledger happens to hold last. Absent on every line written without it, so existing ledgers parse unchanged.

§entity: String

Full entity id (mem--slug).

§verdict: String

ok | failed.

§method: Option<String>

Optional free-text method note (“diffed against source spec”, “re-ran the derivation”).

§entity_hash: String

The entity’s content_hash at check time — the staleness baseline.

§actor: String

Recorded actor identity (provenance).

§client: Option<String>

Recorded client identity (name@version), when known.

§role: String

The caller-declared role, or "unspecified" — recorded honestly; downstream gates treat unspecified as cannot-confirm, never as any real role.

§identity: Option<String>

The caller-declared identity: an opaque caller-chosen string, the ONLY comparator the independence gate uses. Absent on ledger lines written before identities existed and on identity-less callers — both downgrade every comparison to unconfirmable, never to a guessed category.

§kind: Option<String>

The check kind, from CHECK_KINDS. Absent on ledger lines written before kinds existed AND on freshly recorded verification checks — both read as verification, so an existing ledger upgrades with no migration and a kind-omitted caller’s lines stay byte-identical to before.

§schema_ref: Option<String>

For conformance records: the mem’s schema pin (name@x.y.z) as stamped by the engine at record time — never caller-supplied, so a verdict cannot claim a prose version the caller never read. Absent on verification records.

§finding: Option<CheckFinding>

The structured finding the checker attached, when one was. Absent on every line written before findings existed and on finding-less checks — serde-default, so every existing line still parses and finding-less lines stay byte-identical.

§renamed_from: Option<String>

Set on a line the engine carried across a rename: the id the check was recorded under before the entity took its current id. Every other field is the original act’s, hash included, so the state derived under the new id stays honest — a rename rewrites the file (title, self-links, timestamps), so the carried record reads check_stale until someone checks the renamed entity; what the carry prevents is the ledger losing the entity (never_checked under the new id, an unreachable row under the old). Absent on every line a checker wrote.

§carried_from: Option<CarriedFrom>

Set on a line the engine carried to a new entity_hash (a licensed transition, a sealed export): the hash it was keyed to before and the reason. Absent on every line a checker wrote.

§checked_write: Option<String>

The write whose result the check saw: the backend-native reference of the entity’s last write when the record was made (a commit sha on a git-branch mem, the ledger line’s timestamp token on a folder mem), stamped by the engine. Independence on an entity that is not a plan criterion compares the checker with every identity that wrote the entity up to and including this write, in write order, so a write in the same second before or after the check is told apart without a clock. A carried line keeps its source’s. Absent on every line an earlier engine wrote: those are read against every write at or before their ts.

Implementations§

Source§

impl CheckRecord

Source

pub fn act_time(&self) -> u64

The time of the act: observed_at where the recorder stated one, ts otherwise. The newest record of a kind is the one with the latest act (CheckLedger::in_standing_order).

Source

pub fn resolved_kind(&self) -> Option<CheckKind>

The record’s ENGINE kind, legacy lines included: an absent or unrecognised kind reads as verification, which is exactly what every pre-kind line was; a foreign x-<name> kind is None — recorded, listed, never aggregated into a state.

Source

pub fn foreign_kind(&self) -> Option<&str>

The foreign kind, when the record carries one.

Trait Implementations§

Source§

impl Clone for CheckRecord

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CheckRecord

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CheckRecord

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for CheckRecord

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSend for T
where T: Any + Send,

Source§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_sync(self: Box<T>) -> Box<dyn Any + Sync + Send>

Converts Box<Trait> (where Trait: DowncastSync) to Box<dyn Any + Send + Sync>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send> ⓘ

Converts Arc<Trait> (where Trait: DowncastSync) to Arc<Any>, which can then be downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Fruit for T
where T: Send + Downcast,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more