pub struct GatingProfile {
pub allow_side_effects: bool,
pub require_approval_for_risk: RiskLevel,
pub max_tool_calls_per_tick: u32,
pub max_file_mutations_per_tick: u32,
pub allow_network: bool,
pub allow_shell: bool,
}Expand description
Dynamic constraints output by the homeostasis controller.
Enforced at the harness boundary in the runtime. Tighter than static policy (which is the hard floor), gating provides dynamic safety based on agent health state.
Fields§
§allow_side_effects: boolWhether side effects (writes, deletes, network) are allowed.
require_approval_for_risk: RiskLevelMinimum risk level that requires human approval.
max_tool_calls_per_tick: u32Maximum tool calls allowed per tick.
max_file_mutations_per_tick: u32Maximum file mutations allowed per tick.
allow_network: boolWhether network access is allowed.
allow_shell: boolWhether shell execution is allowed.
Trait Implementations§
Source§impl Clone for GatingProfile
impl Clone for GatingProfile
Source§fn clone(&self) -> GatingProfile
fn clone(&self) -> GatingProfile
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 GatingProfile
impl Debug for GatingProfile
Source§impl Default for GatingProfile
impl Default for GatingProfile
Source§impl<'de> Deserialize<'de> for GatingProfile
impl<'de> Deserialize<'de> for GatingProfile
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
Auto Trait Implementations§
impl Freeze for GatingProfile
impl RefUnwindSafe for GatingProfile
impl Send for GatingProfile
impl Sync for GatingProfile
impl Unpin for GatingProfile
impl UnsafeUnpin for GatingProfile
impl UnwindSafe for GatingProfile
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