Repository navigation
fix(webfetch): report non-executable revision references as unavailable - #262
Conversation
The revision export gate scored descriptive reference_answer text, record-task ground truth and body-only ground_truth_main_content as full answers. Tasks that also need records, anchors, titles, comments, links or files then failed the gate (72 controls in HF LexBench-Web-Fetch PR #3). Score dataset reference text as plain_text. A rejected text that cannot carry every declared requirement, and still meets its body requirement, is recorded under incomplete_reference_answers and leaves the case unavailable. Body failures, text-only contract failures and accepted error pages still fail. Let a review declare inherits: <predecessor id>. After checking the predecessor hash, change rows byte-identical to the predecessor's reuse its review entry, so a cumulative revision need not copy 460 entries. Reviews without inherits validate as before.
There was a problem hiding this comment.
This review found 1 issue(s), including 1 blocking issue(s).
| shared = previous_review.get('shared_reasons', {}) | ||
| reviewed = {(item['suite'], item['case_id']) for item in entries} | ||
| inherited = [] | ||
| for item in previous_review.get('changes', []): |
There was a problem hiding this comment.
P2: Resolve the predecessor's inherited entries before copying its reviews. For a valid chain A → B → C, where B uses inherits: A and omits unchanged entries, C using inherits: B sees only B's explicit changes. Even when the rows and all predecessor hashes match, the omitted entries are never inherited and _review_annotation raises Annotation review task inventory differs. This makes a successfully inherited revision unusable as a complete inheritance source for the next revision. Expand the predecessor's effective entries (with the same hash checks and reason resolution at each hop) before applying the current row-equality filter, and add a three-revision-chain test.
A revision that itself inherits listed only its explicit entries, so the next revision in a chain could not reuse the omitted ones. Expand the predecessor's inherited entries, with the same hash checks and reason resolution at each hop, before filtering identical rows. Add a three-revision chain test.
There was a problem hiding this comment.
✅ Re-review complete · 9c94c83
No findings in this incremental review.
There was a problem hiding this comment.
✅ Re-review complete · aacac21
No findings in this incremental review.
|
Independent review: P1 at |
Problem
lexbench-webfetch export --revision primary-content-20261103rejected HFLexmount/LexBench-Web-FetchPR #3 (refs/pr/3, head9b724b6) on 72 controls: webfetch 17, popular-sites 43, dynamic-content 9 and articles 044/102/104.check_revision_referencesscored the descriptivereference_answer, record-task ground truth and body-onlyground_truth_main_contentas complete answers. Those tasks also need records, page anchors, titles, comments, links or files, which a text field can't hold.The same revision has to copy 460 of its 532
reviews.jsonentries fromreview-550-20261023, because every change row needs its own entry.Change
answer_format: plain_text.incomplete_reference_answersand the case isunavailable. A passing text still passes. Review-evidence sources keep their current scoring."inherits": "<predecessor id>". After the predecessor file is checked againstdefinition['predecessor'].sha256and its review hash, any change row byte-identical to the predecessor's reuses the predecessor's effective entry (its explicit entries plus whatever it inherits itself, along with sharedreason_refreasons). All the existing per-entry checks still run. Reviews withoutinheritsvalidate as before.score_attemptis unchanged, so this PR adds no scoring-regression controls.code-migration.jsonrefreshesbenchmark.pyafter_sha256and adds a correction record.Verification
I ran the real
exportgate against the PR #3 working tree, with every suite exported into a fresh scratch directory:No suite accepts the error page.
Inheritance check: I removed the 460 identical entries from a copy of PR #3
reviews.jsonand addedinherits: review-550-20261023. For all five suites, the revised datasets and review records match the explicit 532-entry version. The published revisions (serialization-20261021,review-550-20261023) still passinspect_annotation_revisionfor every suite.New tests:
unavailable.uv run --frozen --all-extras python -m pytest tests/benchmarks/webfetch tests/benchmarks/test_current_scoring_controls.py: 11102 passed.make lint-checkpasses.Review fix and what the gate still guarantees
An independent review found that a wrong required fact or pattern was excused whenever the contract also had an anchor or record check. Any failed text check (body, facts, patterns, literals, length, content) is now conclusive, and the regression test
test_wrong_text_requirement_fails_beside_a_passing_anchorcovers it. The HF #3 export results are unchanged (webfetch 117/33, popular sites 20/80, dynamic content 21/79, access restrictions 0/86, articles 59/37, error page accepted nowhere).The gate does not require a revision to show a passing executable control; main didn't either. What remains:
--review-sourceis supplied;changes_sha256, source hashes, regression IDs) still applies.A replaced body anchor that a body-only text lacks is reported
unavailable, notfailed.