pub struct Intervention {
pub trigger: Trigger,
pub context: String,
pub text: String,
pub aftermath: String,
pub at: usize,
pub tools_before: Vec<String>,
pub tools_after: Vec<String>,
}Expand description
One moment in a transcript where the user stepped in.
Fields§
§trigger: Trigger§context: StringWhat mecha was doing at that point, compact.
text: StringWhat the user said, or what was denied.
aftermath: StringHow the assistant responded after the intervention. Without this a
reflector cannot tell a correction from a test the model passed — the
first false lesson in this store was exactly that, caught by
mecha validate probing it.
at: usizeIndex of the message the intervention rides in. What lets provenance classification look up the taint covering this exact moment rather than guessing from the whole session.
tools_before: Vec<String>Names of the tools the assistant was calling around the intervention —
names only, never arguments. A tool name comes from the registry’s
closed set, so it survives into Intervention::user_evidence_only
where every model-authored byte is withheld.
tools_after: Vec<String>Tool names called after the intervention, same rule.
Implementations§
Source§impl Intervention
impl Intervention
Sourcepub fn user_evidence_only(&self) -> Intervention
pub fn user_evidence_only(&self) -> Intervention
The clean-evidence view: the user’s own typed words and registry-owned tool names, with every assistant-authored excerpt withheld.
This is what the reflector sees when the conversation’s taint cannot
prove the excerpts clean — see evidence_for. The markers say the
withholding happened, so the reflector reasons from absence rather
than mistaking it for the start of a task; its frame tells it to
prefer skip when the user’s words alone carry no lesson.
Trait Implementations§
Source§impl Clone for Intervention
impl Clone for Intervention
Source§fn clone(&self) -> Intervention
fn clone(&self) -> Intervention
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more