pub struct Trajectory {
pub id: String,
pub target_findings: Vec<String>,
pub deposited_by: String,
pub created: String,
pub steps: Vec<TrajectoryStep>,
pub notes: String,
pub review_state: Option<ReviewState>,
pub retracted: bool,
pub access_tier: AccessTier,
}Fields§
§id: Stringvtr_<16hex>, content-addressed at creation.
target_findings: Vec<String>vf_* findings this trajectory describes the search for. May
be empty when the trajectory leads nowhere yet — the search
can be deposited before its target finding exists.
deposited_by: StringStable actor id of the depositor (the lab / curator / agent that opens the trajectory).
created: StringRFC 3339 creation timestamp (also folded into the id).
steps: Vec<TrajectoryStep>Append-only ordered list of steps. Reproduced by replay from
trajectory.step_appended events.
notes: StringFree-text reviewer note on the trajectory as a whole.
review_state: Option<ReviewState>Optional review verdict — same ReviewState enum the rest of
the kernel uses.
retracted: boolTrue once a trajectory.retracted event has been applied.
access_tier: AccessTierv0.51: Read-side access tier. See FindingBundle.access_tier
for the doctrine. Search paths can be especially sensitive
when they document protocols that capability-gate downstream;
the substrate accommodates this through the same tier
machinery as findings and nulls.
Implementations§
Source§impl Trajectory
impl Trajectory
Sourcepub fn content_address(
target_findings: &[String],
deposited_by: &str,
created: &str,
) -> String
pub fn content_address( target_findings: &[String], deposited_by: &str, created: &str, ) -> String
Compute the content-addressed trajectory id per v0.50 spec:
SHA-256(target_findings.join(",") | deposited_by | created).
Returns first 16 hex chars prefixed with “vtr_”.
Note: target_findings is sorted before concatenation so the
id is stable under permutations of an unordered input set.
Steps are NOT folded into the id — they’re append-only and
would otherwise force a new id every append.
Trait Implementations§
Source§impl Clone for Trajectory
impl Clone for Trajectory
Source§fn clone(&self) -> Trajectory
fn clone(&self) -> Trajectory
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more