Clarify prompt boundaries and enforce repair decisions

This commit is contained in:
2026-11-15 02:41:32 +00:00
parent e183708021
commit c4ccd7897e
13 changed files with 111 additions and 67 deletions

View File

@@ -208,12 +208,12 @@ func repairCandidates(ctx context.Context, input validateSectionCandidatesInput,
}
operation.Succeeded = true
operation.RecoveryReasons = outcomes.ExecutionRecoveries(operation.Counts)
if response.Action == "withdraw" {
if response.Decision.Action == "withdraw" {
finishAttempt(nil, nil, validateSectionCandidatesResult{})
branch.Outcome = "withdrawn"
return nil, nil
}
revision := response.Correction
revision := response.Decision.Correction
localRef = revision.SegmentReference
target := 0
if input.WorkingTranscript != nil && localRef > 0 && localRef <= len(input.WorkingTranscript.Segments) {