pub struct ResolveChain {
pub intents: Vec<Intent>,
pub plan: Plan,
pub plan_step_index: usize,
pub action: Action,
pub attribution: Attribution,
pub constraints: Vec<Constraint>,
}Expand description
The full attribution chain for a file:line query.
Fields are ordered answer-first: intents carries the “why” answer;
the remaining fields provide the causal chain that produced it.
Line staleness: line numbers are matched against the ranges recorded
at ingest time. If lines have moved since the last vasari ingest run
(e.g. after a refactor that inserts lines above the queried line),
results may be stale. Re-run vasari ingest after significant refactors.
Fields§
§intents: Vec<Intent>The intent(s) that motivated this line of code — the “why” answer.
Sorted by created_at descending (most recent amendment first).
Empty only for orphan plans (plans with no intent_ids).
plan: PlanThe plan that structured the work.
plan_step_index: usizeIndex into plan.steps identifying the specific step that produced this line.
action: ActionThe agent action (tool call) that wrote the code.
attribution: AttributionThe attribution node linking the action to this file:line range.
constraints: Vec<Constraint>Constraints that shaped this work: any Constraint derived from this plan or one of its intents (e.g. “must validate the token signature”, “never store the secret in source”). Sorted by text. Empty when the session carried no extractable constraints.
Implementations§
Source§impl ResolveChain
impl ResolveChain
Sourcepub fn confidence(&self) -> f32
pub fn confidence(&self) -> f32
Attribution confidence: how strongly the ingest adapter believes this action produced this target. 0.0–1.0; 1.0 = exact range match.
Sourcepub fn primary_intent(&self) -> Option<&Intent>
pub fn primary_intent(&self) -> Option<&Intent>
The most recent intent (the originating or most-recently-amended one). Use this when you need a single “primary” answer for display.
Trait Implementations§
Source§impl Clone for ResolveChain
impl Clone for ResolveChain
Source§fn clone(&self) -> ResolveChain
fn clone(&self) -> ResolveChain
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more