pub enum CandidateContent {
Prompt {
name: String,
prompt: String,
},
Policy {
family: DecisionFamily,
parameters: Value,
},
MemorySet {
scope: ScopeAddress,
adds: Vec<MemoryRecord>,
supersedes: Vec<String>,
},
ToolPermission {
tool: String,
direction: GrantDirection,
},
}Expand description
The change a candidate declares, per CandidateKind. Serialized with
internal tagging ({"kind": "memory_set", …}): the kind is part of
the content address — a prompt text and a policy parameter set that
happened to serialize alike must never converge.
Variants§
Prompt
New prompt text. The text’s digest — sha256_hex over its UTF-8
bytes — is exactly the pin RunManifest::pin_prompt records, so
the candidate and the run manifest speak one content address.
Fields
Policy
Executor policy parameters for one
crate::record::DecisionFamily — backoff caps, timeout bounds,
concurrency limits. The closed legal-action sets stay closed: a
learned policy chooses among declared actions, never free-form
outputs.
Fields
family: DecisionFamilyThe decision family the parameters govern.
MemorySet
A set of memory records at one scope: adds and supersessions.
Carrying full MemoryRecords — not ids — is what lets the set
carry wave 2’s attributed correction candidates: the records’
provenance (and therefore their own content addresses) is inside
this candidate’s address.
Fields
scope: ScopeAddressThe scope the set applies at.
adds: Vec<MemoryRecord>The records the set adds (already content-addressed, already immutable — a record in two sets is the same record).
ToolPermission
A narrowed or widened tool grant.
Fields
direction: GrantDirectionThe direction of the change (see GrantDirection).
Trait Implementations§
Source§impl Clone for CandidateContent
impl Clone for CandidateContent
Source§fn clone(&self) -> CandidateContent
fn clone(&self) -> CandidateContent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more