Expand description
Non-interactive frontier state transitions.
Write commands are proposal-first. Pending proposals are review artifacts; accepted proposals become canonical state events through one reducer.
Structs§
Functions§
- add_
artifact - Deposit a generic content-addressed artifact and emit an
artifact.assertedcanonical event. The full artifact is carried inline on the event payload so a future replay reconstructs the artifact table without reading.vela/artifacts. - add_
finding - add_
finding_ entity - v0.79: Append a new entity tag to an existing finding. Lands as
a signed
finding.entity_addedevent. Idempotent on(finding_id, entity_name): re-applying with the same name + type is a no-op so federation re-sync stays clean. Closes the v0.78.4 honest gap that forced reviewers to append new findings just to add a tag. - add_
negative_ result - v0.49: Add a NegativeResult to the frontier, emitting a
negative_result.assertedcanonical event. - add_
note - append_
trajectory_ step - v0.50: Append a step to an existing Trajectory. Step kind one of
hypothesis | tried | ruled_out | observed | refined. Idempotent on duplicate step content-addresses (so an agent that re-runs an append after a crash doesn’t double-append). - caveat_
finding - create_
trajectory - v0.50: Open a new Trajectory and emit a
trajectory.createdcanonical event. Returns the newvtr_*id in the report’sfinding_idfield (the StateCommandReport schema reuses that field for the primary mutated object id). - deposit_
prediction - v0.70: deposit a Prediction record onto the frontier as a
signed canonical
prediction.depositedevent. Mirror ofdeposit_replicationfor the Prediction primitive. - deposit_
replication - v0.70: deposit a Replication record onto the frontier as a
signed canonical
replication.depositedevent. Idempotent under re-application: if thevrep_*id already exists on the frontier, the helper refuses with a clear error rather than silently no-op’ing. The event is appended to the canonical event log; the reducer arm projects it ontoProject.replicationson subsequent loads. - finding_
context - history
- history_
as_ of - v0.55: time-travel replay. When
as_ofisSome(ts), the returnedevents/review_events/confidence_updatesare filtered to records whose timestamp is<= ts(RFC3339 lexicographic compare), theconfidencefield reports the score at that time (last confidence update at-or-before cutoff, or genesis if none), and areplayed_at_scorefield surfaces it explicitly so a caller doesn’t need to walk the updates array. - record_
attestation - v0.80.1: Per-event attestation. Emit an
attestation.recordedcanonical event pointing at a targetvev_*id, recording who attested it, the scope, and an optional Carina Proof primitive id + Ed25519 signature. Append-only: re-attesting the same target event by the same attester writes a new attestation event (each carries a unique id). - reject_
finding - repair_
evidence_ atom_ locator - v0.56: Mechanically repair a missing evidence-atom locator by
copying the locator from the parent source record. If
locatorisNonethe resolver pulls the value fromfrontier.sourcesfor the atom’s parent. The proposal carries both the resolved locator and the source id it was derived from so a fresh replay reconstructs the derivation without re-resolving. - repair_
finding_ span - v0.57: Mechanically repair a missing evidence-span on a finding by
appending a
{section, text}span. The proposal lands as afinding.span_repairand the canonical event asfinding.span_repaired. - resolve_
finding_ entity - v0.57: Resolve a single named entity inside a finding’s
assertion.entities to a canonical id with resolution metadata.
Clears the entity’s needs_review flag. Lands as a signed
finding.entity_resolvedevent. - resolve_
frontier_ conflict - v0.59: record a reviewer’s verdict on a previously detected
federation conflict. Pairs with the existing
frontier.conflict_detectedevent byconflict_event_id. The conflict event itself is not modified; this helper appends a newfrontier.conflict_resolvedcanonical event to the log. - retract_
finding - review_
finding - revise_
confidence - set_
causal - v0.38: Set or revise a finding’s
causal_claimand (optionally)causal_evidence_grade. Appends anassertion.reinterpreted_causalevent capturing the prior reading, the new reading, and the actor. Bypasses the proposal flow because (a) the mutation is local and reversible by another call, and (b) the schema layer ships ahead of the reasoning surface — the next milestone will route this through proposals once the do-calculus layer needs it. - set_
tier - v0.51: Re-classify the access tier of a finding / negative_result
/ trajectory / artifact. Emits a
tier.setcanonical event so the reclassification is replay-deterministic and auditable. - state_
transitions - supersede_
finding - v0.14: build the proposal that supersedes
old_idwith a new finding bundle.