Skip to content

fix(exp35): fix the 7 defects from the 2026-11-28 harness audit - #241

Merged
cmdaltctr merged 4 commits into
v3from
fix/exp35-audit-defects
Nov 28, 2026
Merged

cmdaltctr merged 4 commits into
v3from
fix/exp35-audit-defects

Conversation

@cmdaltctr

@cmdaltctr cmdaltctr commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

This PR fixes the 7 defects from the 2026-11-28 independent audit of the Experiment 35 harness, before the protocol freeze. The audit found no sabotage or bias. Every fix stays inside experiments/35-full-rag-benchmark-2026-11-01/. Nothing in src/ changes. No hypothesis, Holm family, seed, threshold, prompt hash or pin changes.

# Score (L x I) Defect Fix
1 4 x 8 = 32 A closed-missing claim-kind row has no version, so kindgate35 and refusalreport35 reject the run claimstage35._KindsLog writes the gate version on a closed row
2 4 x 8 = 32 A closed-missing answer drops its successful search list, so G1 fails and analyse35 refuses to run The search line is saved to answer.searches.jsonl before the error, and the closed row writes it to retrieval.jsonl. A failed search still writes nothing
3 9 x 2 = 18 reporttables35 merges A16 cases 3 and 4 Four-case reading. The interval is closed, as before
4 2 x 6 = 12 Opposite-sign H8b rows collapse to sign 0 and suppress the claim verdicts35._both adds row_signs, and each row is judged against its own sign
5 3 x 3 = 9 oracle35 resends EMPTY_REPLY_ERROR and drops billed usage Mirrors answers35
6 3 x 2 = 6 joinscores35 flags an empty answer's Ragas NaN as not_defined Empty answers get []
7 2 x 3 = 6 refusalreport35 lets an uncited segment overwrite a cited claim's kind Reads only cited rows

Also: preregistration section 10 point (5) still said "cannot rule out a small effect", which A16 superseded. It now points to A16 cases 3 and 4. This is wording only (score 2 x 2 = 4).

Evidence

  • Tested commit: the PR head. The tree equals the one that passed local CI.
  • Each new test failed on ddd3663a first. A separate mutation pass then broke each of the 7 fixes in turn, and the new tests caught every break:
    • D1: 2 failed
    • D2: 3 failed
    • D3: 10 failed
    • D4: 3 failed
    • D5: 1 failed
    • D6: 2 failed
    • D7: 1 failed
  • Experiment 35 tests plus the file-size ceiling: 1,210 passed. factorial35.py is 499 lines.
  • Tripwire: +39 by test-ID diff against ddd3663a, none removed. _BASE_EXECUTED is now 14,551.
  • ./scripts/local_ci.sh passed with no SKIPPED steps:
    • Python: 14,543 passed, 157 skipped
    • Tripwire: 5 passed
    • Web: 2,678 passed
    • OpenSpec: 108/108
    • Final line: == local CI passed ==

Notes for review

  • Defect 2 adds one new file to each answer run folder, answer.searches.jsonl. It holds search lines only for questions whose answer failed. A side file is needed because OrderedRows can close a question on --resume without searching again.
  • Defect 4 uses an "any holding row" claim rule. This is unchanged from before. Each row is now compared with its own H8b sign (section 7).

Summary by CodeRabbit

  • Bug Fixes
    • Benchmark records now retain retrieval information when answer generation fails, distinguish empty replies from failed calls, and preserve usage data for billed failures.
    • Missing classifications and uncited claims are handled more consistently in reports.
    • Sensitivity comparisons now use each row’s own verdict, and empty answers are scored consistently.
  • Reporting
    • SESOI interval readings now distinguish small real effects from results that cannot determine whether an effect exists.
  • Documentation
    • Updated preregistration guidance for interpreting intervals that cannot exclude 0.02.

A classifier call that failed three times closed its claim with no
version, so the kind gate and the refusal report refused the whole run
(audit defects 1 and 7). The closed row now carries the gate version and
stays factual and unclassified (section 12). The refusal report reads only
cited claim kinds, so an uncited segment with the same text no longer
replaces a cited claim's kind.
…wers

Audit defects 2, 5 and 6:
- A question whose search worked but whose answer failed three times wrote
  no retrieval.jsonl row, so G1 failed and analyse35 refused to run. The
  search line now goes to answer.searches.jsonl before the error and the
  closed row takes it. A failed search still writes no row (section 15).
- oracle35 now saves EMPTY_REPLY_ERROR as a final empty answer and keeps
  billed usage on a failed attempt, as answers35 does (section 12).
- joinscores35 no longer flags an empty answer's Ragas NaN as not defined.
Audit defects 3 and 4:
- reporttables35 now reads each interval in the four cases of Amendment
  A16, so 'a real difference that can be too small to matter' and 'the
  test cannot tell' are no longer one outcome. Closed interval, as before.
- An H8b result with rows 16 and 17 holding with opposite signs collapsed
  to sign 0 and suppressed the registered claim. Each holding row is now
  judged against its own sign (section 7); same-sign results are unchanged.
- preregistration section 10 point (5) now points to A16 cases 3 and 4
  instead of the superseded wording. No hypothesis, threshold or pin moves.
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

This pull request updates Experiment 35 answer and classification records, factorial verdict calculations, score handling, and SESOI report readings. It adds regression tests for these changes and updates the executed-test baseline.

Changes

Answer completion and records

Layer / File(s) Summary
Retain retrieval records for failed answers
experiments/35-full-rag-benchmark-2026-11-01/answers35.py, tests/test_experiment35_parallel_answers.py
The answer stage saves ranked search records when generation fails and reuses them for closed-missing rows. Tests cover generation failures and distinguish them from search failures.
Handle empty oracle answers and scores
experiments/35-full-rag-benchmark-2026-11-01/oracle35.py, experiments/35-full-rag-benchmark-2026-11-01/joinscores35.py, tests/test_experiment35_closedbook_oracle.py, tests/test_experiment35_join_scores.py, tests/test_clean_base_tripwire.py
The oracle stage records an EMPTY_REPLY_ERROR result as an empty answer. Other failed calls retain usage data. Textless answers no longer inherit the Ragas not_defined marker. Tests cover these behaviours, and the executed-test baseline increases to 14,551.

Claim classification and refusal reports

Layer / File(s) Summary
Record classifier versions for missing rows
experiments/35-full-rag-benchmark-2026-11-01/claimstage35.py, tests/test_experiment35_claimstage.py
Missing claim-kind rows now include the classifier version. A test checks the saved version and the unclassified result after three failed attempts.
Use cited claim-kind rows in reports
experiments/35-full-rag-benchmark-2026-11-01/refusalreport35.py, tests/test_experiment35_refusal_report.py
The report excludes uncited rows when it maps claim keys to kinds. Tests cover cited-row precedence and claims that remain unclassified.

Factorial verdict signs

Layer / File(s) Summary
Expose signs for holding rows
experiments/35-full-rag-benchmark-2026-11-01/verdicts35.py, tests/test_experiment35_factorial.py
Verdict results include a sign for each holding row. row_sign returns zero for rows that are not held and falls back to the overall sign when row signs are absent.
Compare H8b sensitivity by row
experiments/35-full-rag-benchmark-2026-11-01/factorial35.py, tests/test_experiment35_factorial.py
H8b sensitivity checks compare each row with its own verdict sign. Tests cover per-row agreement, claim selection, and opposite row signs.

SESOI report readings

Layer / File(s) Summary
Report the four SESOI readings
experiments/35-full-rag-benchmark-2026-11-01/reporttables35.py, experiments/35-full-rag-benchmark-2026-11-01/preregistration.md, tests/test_experiment35_report_tables.py
Threshold-crossing intervals that exclude zero use SMALL_REAL; those that include zero use CANNOT_TELL. Tests cover interval boundaries and SESOI thresholds. The preregistration refers readers to A16 cases 3 and 4.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix

Possibly related PRs

  • cmdaltctr/omrs#223: It changes factorial35.py and reporttables35.py, which are also updated in this pull request.
Merge Risk: Minimal · up to 188e3

This change fixes seven harness defects in the Experiment 35 analysis code and adds regression tests for each. It is confined to the experiment directory. No concrete merge-blocking risk was found, so it looks safe to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change type (fix) and the scope (exp35), and states that the pull request fixes seven defects from the 2026-11-28 harness audit. The change set matches this: the raw summary covers…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change type (fix) and the scope (exp35), and states that the pull request fixes seven defects from the 2026-11-28 harness audit. The change set matches this: the raw summary covers fixes across the Experiment 35 harness, its tests, and the preregistration wording. The title does not name the individual defects, so a reader scanning history learns the area and the count but not the specific fixes. This is a partial match on specificity, not a mismatch.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between ddd3663 and 188e327.

Files selected for processing: 17

  • experiments/35-full-rag-benchmark-2026-11-01/answers35.py
  • experiments/35-full-rag-benchmark-2026-11-01/claimstage35.py
  • experiments/35-full-rag-benchmark-2026-11-01/factorial35.py
  • experiments/35-full-rag-benchmark-2026-11-01/joinscores35.py
  • experiments/35-full-rag-benchmark-2026-11-01/oracle35.py
  • experiments/35-full-rag-benchmark-2026-11-01/preregistration.md
  • experiments/35-full-rag-benchmark-2026-11-01/refusalreport35.py
  • experiments/35-full-rag-benchmark-2026-11-01/reporttables35.py
  • experiments/35-full-rag-benchmark-2026-11-01/verdicts35.py
  • tests/test_clean_base_tripwire.py
  • tests/test_experiment35_claimstage.py
  • tests/test_experiment35_closedbook_oracle.py
  • tests/test_experiment35_factorial.py
  • tests/test_experiment35_join_scores.py
  • tests/test_experiment35_parallel_answers.py
  • tests/test_experiment35_refusal_report.py
  • tests/test_experiment35_report_tables.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@codecov

codecov Bot commented Nov 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.96%. Comparing base (ddd3663) to head (188e327).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##               v3     #241   +/-   ##
=======================================
  Coverage   94.96%   94.96%           
=======================================
  Files         470      470           
  Lines       37761    37761           
  Branches     4857     4857           
=======================================
  Hits        35861    35861           
  Misses       1259     1259           
  Partials      641      641           

@cmdaltctr
cmdaltctr merged commit 06a9f6e into v3 Nov 28, 2026
17 checks passed
@cmdaltctr
cmdaltctr deleted the fix/exp35-audit-defects branch November 28, 2026 20:47
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