pub struct DirectionUnit {
pub file: String,
pub concern_lens: String,
pub scoring_budget: u32,
pub out_of_diff: Vec<String>,
pub expert: Vec<String>,
pub test_adjacency: Option<TestAdjacency>,
}Expand description
One directed review unit projected from the graph: a file the change touches, the concern to check, the out-of-diff consumers it must account for, and the routed expert. Graph-derived only (routing + impact closure), NEVER from prose.
Fields§
§file: StringRoot-relative path of the unit to review.
concern_lens: StringThe concern lens the agent should check for this unit, derived from the unit’s risk signals (impact-closure consumers vs a plain touched file).
scoring_budget: u32Per-unit review-effort budget: the weighted-focus composite score for this file. A cloud fan-out spends AI passes/verifiers PROPORTIONAL to this (higher = review harder); a local single-agent loop can ignore it.
out_of_diff: Vec<String>Root-relative paths of modules affected by this unit but NOT in the diff (the out-of-diff context the agent must reason about).
expert: Vec<String>Routed expert(s), when ownership signals are available.
test_adjacency: Option<TestAdjacency>Direct test adjacency of this unit. Absent when the graph was not retained or the unit is itself a test file.