pub struct PlanningProjection {
pub pack_name: String,
pub pack_dir: String,
pub standards_root: String,
pub digest: String,
pub base_ref: String,
pub rules: Vec<ProjectedRule>,
}Expand description
The planning-time candidate projection (D-D): the planning-stage rules
the planner must account for, resolved from the TRUSTED source — the same
source selection super::resolution::approval_pin applies, so the
seed, the revision loop, and the approval pin never disagree about WHAT
governs. Carries the delivered rule identities so the fixed-point
revision loop can compute the exact delta a returned plan activates.
Fields§
§pack_name: String§pack_dir: String§standards_root: String§digest: StringThe trusted source’s content digest at resolution time. Approval re-resolves and pins authoritatively; a moved base simply re-resolves again there.
base_ref: StringThe base ref / as-configured path the resolution read, named in the header (the planning surface is pre-pin, so the header says so).
rules: Vec<ProjectedRule>The planning-stage applicable rules, stable-sorted by id. May be
EMPTY (standards govern but nothing applies to the hints) — distinct
from “no standards govern”, which is Ok(None) instead.
Implementations§
Source§impl PlanningProjection
impl PlanningProjection
Sourcepub fn seed_section(&self) -> Option<String>
pub fn seed_section(&self) -> Option<String>
The planning-seed section; None when no planning-stage rule applies
(the seed stays byte-identical to a standards-free mission).
Sourcepub fn delivered(&self) -> Vec<(String, u64)>
pub fn delivered(&self) -> Vec<(String, u64)>
The identities the planner has received (the fixed-point baseline).
Sourcepub fn render_delta(&self, delta: &[ProjectedRule]) -> String
pub fn render_delta(&self, delta: &[ProjectedRule]) -> String
The exact-delta block for one bounded revision turn (D-D): the rules the plan’s touch set newly activates, in the same per-rule shape the seed used, so the planner receives exactly what it was missing and nothing more.
Trait Implementations§
Source§impl Clone for PlanningProjection
impl Clone for PlanningProjection
Source§fn clone(&self) -> PlanningProjection
fn clone(&self) -> PlanningProjection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more