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

@@ -213,6 +213,7 @@ func (r *Runner) Run(ctx context.Context, input RunInput) (RunOutput, error) {
for i := range units {
unit := &units[i]
unit.ModuleIndex = moduleIndex
unit.Operations = reportOperations(unit.Operations)
if err == nil {
unit.State = outcomes.WorkCompleted
if evidence.reports {
@@ -545,14 +546,6 @@ func runModulePipeline(ctx context.Context, input collectSectionProposalsInput)
out.Candidates = append(out.Candidates, candidate)
}
}
for operationIndex := range unit.Operations {
operation := &unit.Operations[operationIndex]
if evidence.reports && operation.Reference.Kind == outcomes.OperationProposal && operation.Succeeded {
for _, proposal := range enriched {
operation.ProposalIndices = append(operation.ProposalIndices, nextProposalIndex+proposal.ProposalIndex)
}
}
}
nextProposalIndex += len(enriched)
}