pub struct ActivityRecord {Show 20 fields
pub schema: String,
pub id: String,
pub frontier_id: String,
pub against_head: String,
pub assertion: String,
pub assertion_type: String,
pub artifacts: Vec<RecordArtifact>,
pub verifier_runs: Vec<RecordVerifierRun>,
pub caveats: Vec<String>,
pub source: Option<RecordSource>,
pub source_refs: Vec<String>,
pub receipt_digest: String,
pub receipt_path: String,
pub operation_id: String,
pub lineage: Option<ReceiptLineage>,
pub supersedes: Option<String>,
pub emitted_by: String,
pub emitted_at: String,
pub signature: String,
pub signer_pubkey_hex: String,
}Fields§
§schema: String§id: StringContent-addressed id: vrc_ + sha256(canonical body, id = “”)[:16].
frontier_id: StringThe frontier this proposes against.
against_head: StringThe frontier head (event_log_hash) at emit time — the staleness pin.
assertion: StringThe claim: what the emitter asserts is now known / bounded / refuted.
assertion_type: StringClaim type, mirroring finding types: theoretical, computational,
empirical, negative.
artifacts: Vec<RecordArtifact>§verifier_runs: Vec<RecordVerifierRun>§caveats: Vec<String>What this claim does NOT establish. Required non-empty: a receipt with no stated limits is advertising, not science.
source: Option<RecordSource>Scientific source of record. Optional for legacy records.
source_refs: Vec<String>External references the proposal should cite. They are descriptive provenance and may include content-addressed artifact refs.
receipt_digest: StringCanonical digest of the complete logical receipt supplied to land.
It binds review input but carries no acceptance authority.
receipt_path: StringFrontier-relative locator of the canonical, lossless Receipt v1 bytes. New records use this pointer as their evidence source of truth; the older flattened fields remain a deterministic compatibility index.
operation_id: StringClient operation identity that made the record durable. This separates an exact retry from a same-claim receipt carrying independent evidence.
lineage: Option<ReceiptLineage>Producer-declared lineage copied from the receipt for review. The gate may validate it; its presence never makes the claim accepted.
supersedes: Option<String>The vrc_ id of the record revision this one supersedes (optional;
absent on legacy records, so their ids are byte-unchanged). Records
are content-addressed — a revision mints a new id — so continuity
across revisions is a back-pointer chain, the same affordance as
FindingBundle.previous_version and ScientificDiffPack.parent_pack.
Deliberate substitute for a stable-id + revision-digest pairing;
see docs/adr/0002.
emitted_by: StringWho emitted (agent:…, ci:…, reviewer:…). Agents welcome — emitting is proposing, never deciding.
emitted_at: String§signature: StringEd25519 over the canonical body with signature empty. OPTIONAL:
an unsigned receipt is still validatable and landable; validate
reports signed=false loudly.
signer_pubkey_hex: StringImplementations§
Source§impl ActivityRecord
impl ActivityRecord
Sourcepub fn build(
draft: ActivityRecordDraft,
key: Option<&SigningKey>,
) -> Result<Self, String>
pub fn build( draft: ActivityRecordDraft, key: Option<&SigningKey>, ) -> Result<Self, String>
Build and content-address; sign iff a key is supplied.
Sourcepub fn signing_bytes(&self) -> Result<Vec<u8>, String>
pub fn signing_bytes(&self) -> Result<Vec<u8>, String>
Canonical bytes with signature cleared (the id is signed content;
the signature is not part of the id).
pub fn derive_id(&self) -> Result<String, String>
Sourcepub fn to_finding_draft(
&self,
staleness: &str,
signed: bool,
) -> FindingDraftOptions
pub fn to_finding_draft( &self, staleness: &str, signed: bool, ) -> FindingDraftOptions
Shape this record into the standard finding.add proposal draft.
The emitter is the acting originator. When source metadata is present,
scientific authorship comes from the external source of record.
Sourcepub fn to_finding_proposal_at(
&self,
staleness: &str,
signed: bool,
at: &str,
) -> Result<StateProposal, String>
pub fn to_finding_proposal_at( &self, staleness: &str, signed: bool, at: &str, ) -> Result<StateProposal, String>
Build the pending finding proposal that indexes this record while retaining the canonical receipt as the evidence source of truth.
The vela_submission block carries typed roots and relations only; it
does not flatten a second receipt body into the proposal. The injected
timestamp lets a transaction stage deterministic bytes before its
durable marker.
Trait Implementations§
Source§impl Clone for ActivityRecord
impl Clone for ActivityRecord
Source§fn clone(&self) -> ActivityRecord
fn clone(&self) -> ActivityRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more