From ad124eab0dc5070ca9d0718693295e8c842b7e4d Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 5 Sep 2026 22:44:30 +0200 Subject: [PATCH] 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 --- .../src/world/controllers.rs | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/crates/ghostlight-dungeon/src/world/controllers.rs b/crates/ghostlight-dungeon/src/world/controllers.rs index 306e76e..7885b73 100644 --- a/crates/ghostlight-dungeon/src/world/controllers.rs +++ b/crates/ghostlight-dungeon/src/world/controllers.rs @@ -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, })) }