pub enum AgentTemplateArg {
Reviewer,
Contributor,
CiLanding,
}Expand description
Preset operation ceilings for heddle auth derive-agent.
Each variant expands to a curated set of safe agent operations. reviewer
and ci-landing are strict subsets of the safe ceiling; contributor is
the full safe ceiling (the named form of the default --allow-less
derivation). --scope/--allow stay usable alongside a template and, when
combined, may only narrow it (they intersect the template’s set).
Variants§
Reviewer
Read + review: every read RPC plus Pull. No writes, no ref moves. (ListStates/GetState/GetBlame/GetTree/GetBlob/GetDiff/GetCompare/ ListActions/ListContext/GetContextHistory/GetDiscussion/ListByState/ ListBySymbol/… + Pull + WhoAmI.)
Contributor
Read + collaboration writes: the reviewer set plus Push, UpdateRef, SetContext/ReviseContext/SupersedeContext, and OpenDiscussion/AppendTurn/ResolveDiscussion. No repo/namespace admin. This is the full safe agent ceiling — the named form of deriving with no –template/–allow.
CiLanding
Read + Pull + the Push/UpdateRef a CI lander needs to run ready/land. No context or discussion writes.
Trait Implementations§
Source§impl Clone for AgentTemplateArg
impl Clone for AgentTemplateArg
Source§fn clone(&self) -> AgentTemplateArg
fn clone(&self) -> AgentTemplateArg
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more