Drop the interruption report's unread capture
Nothing reads it: the driver arm reports the subject, both digests, and the gap detail, and the Eve receipt carries the prose and the gap. The capture is still derived where the gap's source span comes from, and is not stored. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
1a19fb2231
commit
ad124eab0d
1 changed files with 8 additions and 11 deletions
|
|
@ -2133,7 +2133,6 @@ pub(crate) enum NarrativeRun {
|
|||
#[derive(Debug)]
|
||||
pub(crate) struct NarrativeInterruption {
|
||||
turn: PersonaTurn,
|
||||
capture: NarrativeCapture,
|
||||
subject: SubjectId,
|
||||
bound_scope_digest: String,
|
||||
/// Absent when the bound re-lowering was already spent, because the runner
|
||||
|
|
@ -2151,10 +2150,6 @@ impl NarrativeInterruption {
|
|||
&self.turn
|
||||
}
|
||||
|
||||
pub(crate) fn capture(&self) -> &NarrativeCapture {
|
||||
&self.capture
|
||||
}
|
||||
|
||||
pub(crate) fn subject(&self) -> SubjectId {
|
||||
self.subject
|
||||
}
|
||||
|
|
@ -4380,11 +4375,14 @@ fn overtaken(
|
|||
));
|
||||
}
|
||||
};
|
||||
let capture = derive_narrative_capture(turn, interpreter_prompt, completed)?;
|
||||
let source = capture.proposal.unwrap_or(SourceRange {
|
||||
start_byte: 0,
|
||||
end_byte: turn.source_prose().len(),
|
||||
});
|
||||
// The gap points at the proposal span the interpretation captured, or at
|
||||
// the whole prose when it captured none.
|
||||
let source = derive_narrative_capture(turn, interpreter_prompt, completed)?
|
||||
.proposal
|
||||
.unwrap_or(SourceRange {
|
||||
start_byte: 0,
|
||||
end_byte: turn.source_prose().len(),
|
||||
});
|
||||
Ok(NarrativeRun::Interrupted(NarrativeInterruption {
|
||||
subject: opportunity.scope.subject_id,
|
||||
bound_scope_digest: opportunity.scope_digest.as_str().to_owned(),
|
||||
|
|
@ -4395,7 +4393,6 @@ fn overtaken(
|
|||
detail: OVERTAKEN_DETAIL.into(),
|
||||
},
|
||||
turn: turn.clone(),
|
||||
capture,
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue