Skip to main content

Gates

Struct Gates 

Source
pub struct Gates {
    pub suppression_comments: Option<String>,
    pub protected_paths: Vec<String>,
    pub read_only_paths: Vec<String>,
    pub retrieval_paths: Vec<String>,
    pub retrieval_tool: Option<String>,
}

Fields§

§suppression_comments: Option<String>§protected_paths: Vec<String>§read_only_paths: Vec<String>

Globs whose COMMITTED files are read-only to agents: new files may be created (the RED-suite authoring window), files in git HEAD may not be modified — N10 (“committed first, read-only hereafter”) as a product gate. Unwaivable, like protected_paths.

§retrieval_paths: Vec<String>

SPIKE — the read contract. Globs whose files an agent must reach through retrieval_tool rather than an unbounded whole-file read.

A read carrying an explicit range is allowed on the Read surface, where the host supplies offset/limit as structured fields the gate can verify: that is the deliberate shape, and the host’s read-before-edit gate needs it. A shell reader gets no such allowance, because a bound spelled inside a command string can only be inferred and head -999999 is indistinguishable from head -50. The asymmetry is the verifiability of the bound, not an inconsistency (hook-matcher-gap charter, Addendum D, HM-10).

§retrieval_tool: Option<String>

The tool a denied read is redirected to. A manifest string, never a hard-coded vendor, so a future in-tree Pushkin index can take the slot without changing the gate.

Trait Implementations§

Source§

impl Debug for Gates

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Gates

Source§

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 Gates

§

impl RefUnwindSafe for Gates

§

impl Send for Gates

§

impl Sync for Gates

§

impl Unpin for Gates

§

impl UnsafeUnpin for Gates

§

impl UnwindSafe for Gates

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.