pub struct FeatureCharter {
pub charter_id: String,
pub session_id: String,
pub scope_description: String,
pub max_modules: Option<u32>,
pub max_files: Option<u32>,
pub max_revisions: Option<u32>,
pub language_constraint: Option<String>,
pub created_at: i64,
}Expand description
A scoping document that constrains what the architect may plan.
The FeatureCharter sits above individual task plans and provides
boundaries: maximum module count, maximum files, language policy,
and a human-readable description of the intended outcome.
Fields§
§charter_id: StringUnique charter identifier (typically per session).
session_id: StringSession ID.
scope_description: StringHuman-readable scope description (the user’s original request).
max_modules: Option<u32>Maximum number of modules/nodes the architect may produce.
max_files: Option<u32>Maximum total files the plan may create.
max_revisions: Option<u32>Maximum plan revisions before hard escalation.
language_constraint: Option<String>Language or plugin constraint (e.g. "rust", "python").
created_at: i64Epoch seconds when the charter was created.
Implementations§
Source§impl FeatureCharter
impl FeatureCharter
Sourcepub fn new(
session_id: impl Into<String>,
scope_description: impl Into<String>,
) -> FeatureCharter
pub fn new( session_id: impl Into<String>, scope_description: impl Into<String>, ) -> FeatureCharter
Create a new charter with just a scope description.
Sourcepub fn exceeds_module_budget(&self, task_count: usize) -> bool
pub fn exceeds_module_budget(&self, task_count: usize) -> bool
Check whether a plan exceeds the charter’s module budget.
Sourcepub fn exceeds_file_budget(&self, file_count: usize) -> bool
pub fn exceeds_file_budget(&self, file_count: usize) -> bool
Check whether a plan exceeds the charter’s file budget.
Trait Implementations§
Source§impl Clone for FeatureCharter
impl Clone for FeatureCharter
Source§fn clone(&self) -> FeatureCharter
fn clone(&self) -> FeatureCharter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FeatureCharter
impl Debug for FeatureCharter
Source§impl<'de> Deserialize<'de> for FeatureCharter
impl<'de> Deserialize<'de> for FeatureCharter
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FeatureCharter, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FeatureCharter, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for FeatureCharter
impl Serialize for FeatureCharter
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for FeatureCharter
impl RefUnwindSafe for FeatureCharter
impl Send for FeatureCharter
impl Sync for FeatureCharter
impl Unpin for FeatureCharter
impl UnsafeUnpin for FeatureCharter
impl UnwindSafe for FeatureCharter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more