pub struct PromotionEnvelope {
pub envelope_version: String,
pub prompt: EnvelopeRule,
pub policy: EnvelopeRule,
pub memory_set: EnvelopeRule,
pub tool_permission: EnvelopeRule,
}Expand description
The declared, per-deployment promotion envelope: per candidate kind,
what may promote automatically, what requires review, and what
canaries. Versioned (envelope_version) because the envelope is the
standing approval — a journaled promotion names the envelope version
it cleared, so the audit reads the declaration that was in force, not
a later edit.
Fields§
§envelope_version: StringThe deployment-declared envelope version.
prompt: EnvelopeRuleThe rule for prompt candidates.
policy: EnvelopeRuleThe rule for policy candidates.
memory_set: EnvelopeRuleThe rule for memory_set candidates.
tool_permission: EnvelopeRuleThe rule for tool_permission candidates.
Implementations§
Source§impl PromotionEnvelope
impl PromotionEnvelope
Sourcepub fn r08_default() -> Self
pub fn r08_default() -> Self
The R0.8 default (design open question 6): memory_set candidates
at run and agent scope with a clean verdict may auto-promote;
prompt, policy, and tool_permission always require an
approval token this release.
Sourcepub fn rule_for(&self, kind: CandidateKind) -> &EnvelopeRule
pub fn rule_for(&self, kind: CandidateKind) -> &EnvelopeRule
The rule for kind.
Trait Implementations§
Source§impl Clone for PromotionEnvelope
impl Clone for PromotionEnvelope
Source§fn clone(&self) -> PromotionEnvelope
fn clone(&self) -> PromotionEnvelope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more