Skip to content

fix(classifier): dedupe tool-error iteration numbers - #19

Open
MrBeldum wants to merge 1 commit into
loop-eng:mainfrom
MrBeldum:fix/10-dedupe-tool-error-iters
Open

fix(classifier): dedupe tool-error iteration numbers#19
MrBeldum wants to merge 1 commit into
loop-eng:mainfrom
MrBeldum:fix/10-dedupe-tool-error-iters

Conversation

@MrBeldum

@MrBeldum MrBeldum commented Sep 4, 2026

Copy link
Copy Markdown

Summary

  • detectToolError recorded an iteration twice when it was both PhaseError and a tool-ish verification failure (file not found / permission denied / etc.), producing evidence like Tool errors at iterations [3, 3, 5].
  • Switch the second check to else if so each iteration is listed at most once.
  • Add regression coverage for the duplicate case and for verify-fail without PhaseError.

Fixes #10

Test plan

  • go test ./internal/classifier/ -count=1

PhaseError plus a tool-ish verification failure used to append the same
iteration twice, producing evidence like [3, 3, 5]. Use else-if so each
iteration is recorded at most once.

Fixes loop-eng#10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

detectToolError can record duplicate iteration numbers

1 participant