Retain only reportable operation details

This commit is contained in:
2026-11-17 04:31:15 +00:00
parent 7f7aea0921
commit ee1ac8fc89
7 changed files with 44 additions and 36 deletions

View File

@@ -222,7 +222,7 @@ func TestRunnerRetainsLaterProposalEvidenceWhenEarlierSectionFails(t *testing.T)
candidate := out.Candidates[0]
later := out.WorkUnits[1]
if candidate.ProposalIndex != 0 || candidate.TargetSegmentID != 93 || later.State != outcomes.WorkInterrupted || later.Failure == nil || !errors.Is(later.Failure, context.Canceled) ||
len(later.Operations) != 1 || len(later.Operations[0].ProposalIndices) != 1 || later.Operations[0].ProposalIndices[0] != candidate.ProposalIndex ||
candidate.SectionIndex == nil || *candidate.SectionIndex != later.Section.Index ||
out.FinalTranscript.Segments[1].Text != "other text" {
t.Fatalf("later candidate or association lost: candidate=%+v work=%+v", candidate, later)
}