pub enum NodeBudget {
Solo,
SmallTeam,
TaskForce,
Department,
Custom {
value: usize,
},
}Expand description
Advisory upper bound on the aggregate node count across all subgraphs.
The Phase J cost estimator checks the total node count against
upper_bound() and emits a [tracing::warn!] when exceeded, but never
returns an error — the executor always proceeds.
§Default
NodeBudget::TaskForce (up to 25 nodes).
§Example
use gglib_core::domain::council::task_graph::NodeBudget;
let budget = NodeBudget::TaskForce;
assert_eq!(budget.upper_bound(), 25);
let custom = NodeBudget::Custom { value: 100 };
assert_eq!(custom.upper_bound(), 100);Variants§
Solo
Up to 3 nodes — single-agent equivalent.
SmallTeam
Up to 8 nodes — small coordination team.
TaskForce
Up to 25 nodes — cross-functional task force. Default.
Department
Up to 60 nodes — full department-scale run.
Custom
Caller-specified upper bound.
Implementations§
Source§impl NodeBudget
impl NodeBudget
Sourcepub const fn upper_bound(&self) -> usize
pub const fn upper_bound(&self) -> usize
Returns the advisory upper bound for this budget variant.
Trait Implementations§
Source§impl Clone for NodeBudget
impl Clone for NodeBudget
Source§fn clone(&self) -> NodeBudget
fn clone(&self) -> NodeBudget
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeBudget
impl Debug for NodeBudget
Source§impl Default for NodeBudget
impl Default for NodeBudget
Source§fn default() -> NodeBudget
fn default() -> NodeBudget
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeBudget
impl<'de> Deserialize<'de> for NodeBudget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NodeBudget
impl PartialEq for NodeBudget
Source§impl Serialize for NodeBudget
impl Serialize for NodeBudget
impl Eq for NodeBudget
impl StructuralPartialEq for NodeBudget
Auto Trait Implementations§
impl Freeze for NodeBudget
impl RefUnwindSafe for NodeBudget
impl Send for NodeBudget
impl Sync for NodeBudget
impl Unpin for NodeBudget
impl UnwindSafe for NodeBudget
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
Mutably borrows from an owned value. Read more