Skip to content

Fix completeness gate for truncation and parse failures - #78

Merged
MaximilianAnzinger merged 1 commit into
mainfrom
chore/fixes
Aug 25, 2026
Merged

Fix completeness gate for truncation and parse failures#78
MaximilianAnzinger merged 1 commit into
mainfrom
chore/fixes

Conversation

@MaximilianAnzinger

Copy link
Copy Markdown
Collaborator

Summary

  • Three-way error split: MetricNotApplicableError (skip) vs TransientLLMError (retry) vs everything else (failed). Previously, max_tokens truncation and parse errors were silently absorbed as "skipped".
  • Completeness gate fixed: complete = (transient + failed) == 0 — truncation now correctly fails the run instead of reporting success.
  • Paper references removed from test docstrings.

Test plan

  • test_truncation_error_fails_completeness — verifies truncation flips complete to false
  • test_skipped_error_does_not_fail_completeness — verifies MetricNotApplicableError is still a clean skip
  • Full suite: 204 tests passing

🤖 Generated with Claude Code

…lures

The two-way exception split (transient vs. everything-else-is-skipped) let
max_tokens truncation and parse errors be absorbed as "skipped", so the
completeness gate reported `complete: true` even with data loss.

- Add `MetricNotApplicableError` for genuine inapplicability (e.g. distractor
  metric on true/false questions)
- Three-way handler: transient → retry, not-applicable → skip, other → failed
- `complete = (transient + failed) == 0` instead of ignoring non-transient errors
- Clean paper-specific references from test docstrings

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@MaximilianAnzinger MaximilianAnzinger added this to the 2.0.0 milestone Aug 25, 2026
@MaximilianAnzinger
MaximilianAnzinger merged commit fefbf80 into main Aug 25, 2026
5 checks passed
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.

1 participant