Repository navigation
feat(webfetch): verify uniform category results and reviewed scoring - #131
Conversation
There was a problem hiding this comment.
This review found 7 issue(s), including 7 blocking issue(s).
|
Independent review of the Notion recommendations, using the selected saved evidence and current official documentation. No provider parameters were changed, no methods were rerun, and no scores or frozen task definitions were changed. Implemented
Recommendations not applied blindly
Saved-evidence findings
Parameter conclusions — suggestions only
Native product options, decoding native base64, preserving returned bytes, and URL wire encoding are not caller-added retrieval features. The native routes inspected do not add a browser fallback, a second download, case-specific loading hints, or extra adapter retries. The harness's one retry follows the user's clarified policy; internal product retries are unrestricted. Historical results remain historical and are not claimed to have been collected with these review fixes. Validation
|
There was a problem hiding this comment.
This review found 5 issue(s), including 5 blocking issue(s).
There was a problem hiding this comment.
This review found 2 issue(s), including 2 blocking issue(s).
There was a problem hiding this comment.
This review found 3 issue(s), including 3 blocking issue(s).
|
Follow-up to the clarified DNS and primary-content review requirements. The shared HTTP boundary previously did not apply Clarifications supported by the saved evidence:
I am correcting the earlier blanket rejection of article-scope revisions: freezing an overbroad requirement does not establish that the requirement measures the intended user task. Rejecting an indiscriminate downgrade of 95 articles remains appropriate; targeted, independently justified removal of page-shell requirements is a different proposal. The review population is all 91 cases where all 11 configurations actually failed. There is no minimum body-pass count. The earlier six-of-eleven cutoff was too restrictive and has been withdrawn. Cases without a body contract are assessed against their declared list/resource/other primary requirements, not labelled body failures. Body-check success alone does not prove that titles, authors, comments or other primary requirements pass. Results select review priorities; they cannot decide which rule to delete. Primary content, identifying publication metadata, required actual comments, list entries, and notices limiting visible content stay required. Site-wide navigation, interaction controls, unrelated recommendations and global footer boilerplate may be removed from the acceptance gate only when independent page evidence and task intent support that scope. Homepage navigation can itself be primary content; shell categories must not become a global keyword deletion list. Concrete decisions for the proposed revision, not yet applied to frozen tasks or scores:
Because the results have already been inspected and used to select cases, this remains a post-hoc revision even if provider identities and rankings are ignored during rule decisions. Freeze and explain the per-rule changes, keep the original results, apply any revised rules equally to all saved outputs, and label the revised results explicitly. A later unseen cohort is needed for an unbiased validation. No rescoring or frozen-rule edit was performed in this follow-up. Validation: 18,818 tests passed, 132 skipped, 5,797 subtests passed; lint and whitespace checks passed. The new tests cover every hosted adapter with both DNS modes, invalid mode rejection and DoH failure without fallback. All transport calls in those tests are simulated. The all-fail inventory has now been checked across all five suites: 20 access-restriction, 32 article, 11 dynamic-content, 17 popular-site and 11 general Web Fetch tasks. Of these, 54 have explicit body requirements and 37 use other primary checks; a zero body-pass count for the latter is not a body failure. Eight have no stable-text anchors at all, so deleting sidebar anchors cannot address those failures. This is an inventory and contract review, not a claim that independent page inspection for every rule is complete. The Notion section 14.3 arithmetic also needs correction: the selected article-008 has 90 stable-text entries. Its specified deletion ranges (stable-1..7, stable-13, stable-18..23, stable-24..81) identify 72 entries, not 81. The remaining entries include author/publication/partial-content information and ten body-labelled entries (one is a source link). Keep these distinctions rather than deleting by ID prefix. |
There was a problem hiding this comment.
This review found 3 issue(s), including 3 blocking issue(s).
There was a problem hiding this comment.
This review found 3 issue(s), including 3 blocking issue(s).
src/harness/web_fetch/report.py(token_budget_reached): stopped group "src/harness/web_fetch/report.py" mid-review: used 609048 tokens exceeds budget 500000
There was a problem hiding this comment.
This review found 2 issue(s), including 2 blocking issue(s).
src/harness/web_fetch/report_saved_matrix.py(token_budget_reached): stopped group "src/harness/web_fetch/report_saved_matrix.py" mid-review: used 561556 tokens exceeds budget 500000
There was a problem hiding this comment.
This review found 3 issue(s), including 3 blocking issue(s).
src/harness/web_fetch/report_saved_matrix.py(token_budget_reached): stopped group "src/harness/web_fetch/report_saved_matrix.py" mid-review: used 525441 tokens exceeds budget 500000
There was a problem hiding this comment.
This review found 2 issue(s), including 2 blocking issue(s).
src/harness/web_fetch/report_saved_matrix.py(token_budget_reached): stopped group "src/harness/web_fetch/report_saved_matrix.py" mid-review: used 559297 tokens exceeds budget 500000
There was a problem hiding this comment.
This review found 4 issue(s), including 4 blocking issue(s).
There was a problem hiding this comment.
This review found 1 issue(s), including 1 blocking issue(s).
There was a problem hiding this comment.
This review found 1 issue(s), including 1 blocking issue(s).
src/harness/web_fetch/report_saved_matrix.py(token_budget_reached): skipped round 2 of group "src/harness/web_fetch/report_saved_matrix.py": used 573324 tokens exceeds budget 500000
There was a problem hiding this comment.
This review found 1 issue(s), including 1 blocking issue(s).
src/harness/web_fetch/report_saved_matrix.py(token_budget_reached): stopped group "src/harness/web_fetch/report_saved_matrix.py" mid-review: used 605652 tokens exceeds budget 500000
There was a problem hiding this comment.
This review found 2 issue(s), including 2 blocking issue(s).
There was a problem hiding this comment.
This review found 1 issue(s), including 1 blocking issue(s).
There was a problem hiding this comment.
This review found 1 issue(s), including 1 blocking issue(s).
There was a problem hiding this comment.
✅ Re-review complete · 128b34f
No findings in this incremental review.
Openers after the text's last '>' cannot match any tag pattern, but the tolerated-attribute fallback rescanned the remaining text from each one. 120 KB of 'if x<y then' took 7.9 s; it now takes 0.09 s. Verdicts and rendered output are unchanged; the golden snapshot changes only in the scorer source hashes.
There was a problem hiding this comment.
✅ Re-review complete · abc665f
No findings in this incremental review.
Port of #252 (16 commits, head cebd6aa) onto #224 rebased on current #131, resolved once. Same behavior as cebd6aa except: - Keep main's CJK rule (#253): plain text folds letter-spaced single characters only, so separate CJK words or paragraphs never join (cjk-separate-paragraphs-fact-rejected passes again). The plain-text-typography control no longer relies on joining 中文 文本. - Catalog price-heading cards keep #252's broader condition, which covers main's #250 case. - Keep both stable-anchor fallbacks (escaped prose from #131, link labels and extracted fields from #252). - Bind loop variables for B023 and recompute scorer source hashes; add #252's two correction records to the migration receipt. Co-authored-by: Maisiqi <[email protected]>
Port of #252 (16 commits, head cebd6aa) onto #224 rebased on current #131, resolved once. Same behavior as cebd6aa except: - Keep main's CJK rule (#253): plain text folds letter-spaced single characters only, so separate CJK words or paragraphs never join (cjk-separate-paragraphs-fact-rejected passes again). The plain-text-typography control no longer relies on joining 中文 文本. - Catalog price-heading cards keep #252's broader condition, which covers main's #250 case. - Keep both stable-anchor fallbacks (escaped prose from #131, link labels and extracted fields from #252). - Bind loop variables for B023 and recompute scorer source hashes; add #252's two correction records to the migration receipt. Co-authored-by: Maisiqi <[email protected]>
Port of #252 (16 commits, head cebd6aa) onto #224 rebased on current #131, resolved once. Same behavior as cebd6aa except: - Keep main's CJK rule (#253): plain text folds letter-spaced single characters only, so separate CJK words or paragraphs never join (cjk-separate-paragraphs-fact-rejected passes again). The plain-text-typography control no longer relies on joining 中文 文本. - Catalog price-heading cards keep #252's broader condition, which covers main's #250 case. - Keep both stable-anchor fallbacks (escaped prose from #131, link labels and extracted fields from #252). - Bind loop variables for B023 and recompute scorer source hashes; add #252's two correction records to the migration receipt. Co-authored-by: Maisiqi <[email protected]>
Port of #252 (16 commits, head cebd6aa) onto #224 rebased on current #131, resolved once. Same behavior as cebd6aa except: - Keep main's CJK rule (#253): plain text folds letter-spaced single characters only, so separate CJK words or paragraphs never join (cjk-separate-paragraphs-fact-rejected passes again). The plain-text-typography control no longer relies on joining 中文 文本. - Catalog price-heading cards keep #252's broader condition, which covers main's #250 case. - Keep both stable-anchor fallbacks (escaped prose from #131, link labels and extracted fields from #252). - Bind loop variables for B023 and recompute scorer source hashes; add #252's two correction records to the migration receipt. Co-authored-by: Maisiqi <[email protected]>
* fix(webfetch): score returned structured page fields Port of #252 (16 commits, head cebd6aa) onto #224 rebased on current #131, resolved once. Same behavior as cebd6aa except: - Keep main's CJK rule (#253): plain text folds letter-spaced single characters only, so separate CJK words or paragraphs never join (cjk-separate-paragraphs-fact-rejected passes again). The plain-text-typography control no longer relies on joining 中文 文本. - Catalog price-heading cards keep #252's broader condition, which covers main's #250 case. - Keep both stable-anchor fallbacks (escaped prose from #131, link labels and extracted fields from #252). - Bind loop variables for B023 and recompute scorer source hashes; add #252's two correction records to the migration receipt. Co-authored-by: Maisiqi <[email protected]> * fix(webfetch): stop link labels and document titles from passing content checks Independent review of #252 found two false passes in the shared scorer: - Labels of returned links (Firecrawl, Exa and Lexmount return page-wide link lists) satisfied required body facts and stable anchors, so a truncated body plus a table-of-contents link passed. Link labels no longer feed facts or anchors, and tasks without an acceptance contract keep body-only facts. - The Lexmount projection copied the document title (result.title) into page_information.title, letting it pass title contracts that reject document titles. It is already scored as the title field. returned-link-label becomes a negative control; returned-link-fact-cross-page is new. Both are bound in a new correction record. * fix(webfetch): keep malformed Lexmount envelopes free of answer fields After rebasing onto main (#224), a non-JSON body still merged projected page fields into metadata without a declaration, so its evidence failed verification. Merge answer fields only for a parsed envelope. Refresh the route baseline for the projection source hash. * fix(webfetch): keep returned-field scoring within declared scope Returned headings no longer satisfy title checks that exclude page regions, since a flat field cannot prove it came from outside them. Remove the dev.to-specific comment-card parser and revert the unbound named-link, catalog-boundary, Han-spacing and section-heading scoring changes to main; they need their own bound corrections. * fix(webfetch): keep returned duplicates and paragraph breaks visible to checks Repeated returned records now reach the duplicate-record check, and plain-text paragraphs ending in CJK punctuation no longer join. A trailing reply-form heading no longer hides earlier comments. Report evidence shows only fields the scorer accepts for an anchor, and the method-comparison caption is localized. Bind two new controls. * fix(webfetch): merge returned records only with valid, case-exact text rows A complete returned record replaces the same fields parsed as invalid text, and API paths that differ only in case stay separate records. Revert the comment discussion-heading start rule to main: a populated reply-form heading could hide earlier comments. * fix(webfetch): let each text record absorb only one returned copy Further identical returned rows reach the duplicate-record check even when the body also contains the record. Bind a paired control. * fix(webfetch): consume each text record once across quote and exact matches A body quote could absorb one returned copy by exact fields and another by equivalent tags. Track consumed text rows by index. Bind a quote control. --------- Co-authored-by: lanyue-llk <[email protected]> Co-authored-by: Maisiqi <[email protected]>
#131 appended a 40-line internal spec for saved multi-suite reports after Contribute in both READMEs. Move it unchanged into the Web Fetch guide, which the README already links, and drop the duplicate Chinese copy.
Explicit task-population selection
The certified Web Fetch runner can now read a revision-bound population via
--populationand--population-suite, selecting that suite without hand-copying IDs. It rejects mismatched rules, suite hashes, counts, case identities and exported task content before provider calls. Each reviewed population must supply the exported cases digest; older manifests without that binding are rejected. The output retains the selection and records its hash, actual case IDs, input dataset hash and rule revision. Existing manual selection and scoring behavior are unchanged.Validation: repository lint checks; 48 related tests and 9 subtests passed, including a synthetic certified run through measurement and finalization. This does not claim a complete real-provider run of the 530-task population.
Web Fetch reports can now combine saved results across task families with source-backed configuration, retry and scoring checks. This PR also fixes provider input handling and shared content parsing.
What changes
Dataset and report boundaries
The task-rule revision is a separate Hugging Face PR. This PR adds reusable revision support; it does not pin or release that dataset. Adoption requires the reviewed dataset to merge, followed by a separate pin to its verified commit.
The existing report contains 530 tasks × 10 methods. Its ranks describe the selected results and recorded rules, not an untuned controlled comparison. Intermediate trials remain evidence, not additional scored rows. The report has not been regenerated or rescored against the latest HF revisions or latest scorer fixes. Raw captures and run-local evidence stay outside Git.
Validation
Commit
c2372361merges current main, preserving both sets of scoring migration records and binding them to the merged source. The migration, scoring, annotation, ranking and report snapshot checks passed locally (66 tests and 4,082 subtests), along with lint and UI checks. Full CI passed for the merge commit. Bot identified a malformed case ID in the population CLI. Commit128b34fbvalidates case identifiers before creating any work directory. 27 certification tests and 21 subtests passed. Full CI passed and bot re-review completed with zero findings. The preceding commit passed full CI and bot review with zero findings.