Skip to content

feat(webfetch): verify uniform category results and reviewed scoring - #131

Merged
lanyue-llk merged 128 commits into
mainfrom
codex/webfetch-final-report-20261031
Nov 9, 2026
Merged

lanyue-llk merged 128 commits into
mainfrom
codex/webfetch-final-report-20261031

Conversation

@Maisiqi

@Maisiqi Maisiqi commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Explicit task-population selection

The certified Web Fetch runner can now read a revision-bound population via --population and --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.

PR #131 整体功能与改动总览(中文)

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

  • Reports: retain overall and family rankings by task pass rate, with shared ranks for ties. Ranks require complete matching task coverage and one recorded scorer; diagnostic ranking is opt-in. Mean/P50/P95 measure the final single call, without accumulated retry or waiting time. Preserve evidence links and distinguish failures, undecidable outcomes, uncalled tasks and missing results.
  • Selection and retries: validate settings and evidence for every displayed method/family. Keep failure-only retries and the final result, with no best-of-attempts or per-case configuration exemptions. Category-wide configuration exploration remains supported and disclosed.
  • Providers and scoring: fix Cloudflare selector/frozen-HTML handling, Moli output-format metadata, native input delivery, invocation accounting and retry cleanup. Improve shared HTML/Markdown and comment parsing with regression tests; no case/provider-specific scoring shortcuts.
  • Saved-result checks: verify original records, request settings and scorer identities before building reports. Preserve historical evidence and require visible comparison limits, including in final presentation.

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 c2372361 merges 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. Commit 128b34fb validates 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.

@lexmount-ocr lexmount-ocr Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Review complete · d58cdea

This review found 7 issue(s), including 7 blocking issue(s).

Comment thread scripts/build_report.py Resolved
Comment thread src/harness/web_fetch/native_routes.py Resolved
Comment thread src/harness/web_fetch/report.py Resolved
Comment thread src/harness/web_fetch/report.py Resolved
@Maisiqi Maisiqi changed the title Preserve native fetch delivery and assemble complete saved-result reports feat(webfetch): preserve native delivery and verify saved-result reports Nov 1, 2026
@Maisiqi

Maisiqi commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor Author

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

  • Restore translated ordinary-report coverage wording; use final-call latency wording consistently in both report modes and update the intended golden snapshots.
  • Reject empty/malformed SHA-256 bindings, ambiguous pre-call receipts, first-pass retry continuations, colliding qualified routes, and incompatible check-only CLI options.
  • Make report verification portable. Public audit entries contain names/hashes; --source-spec explicitly verifies the original external evidence.
  • Keep entirely missing methods in both rankings, label incomplete methods, and sort suite rankings by the displayed pass fraction with numeric sorting.
  • Repair Unicode hostname encoding with IDNA2008/UTS46, including mixed case and sharp-s, while preserving existing ASCII URLs, signed queries, userinfo and ports.
  • Keep one harness failure retry by default, reject harness retry budgets above one, and preserve product-internal retry policies. After a timeout, discard late output and allow bounded worker cleanup before the one retry. A worker still running after cleanup leaves an explicit pending retry and incomplete run; it must not silently claim completion or overlap another physical call.
  • Separate source validation from report writes, project suite membership directly, and consolidate only used messages into the existing language catalog. Remove the unused recovery renderer branch and obsolete message module.

Recommendations not applied blindly

  • Do not drop adapter-rejected records from the evidence inventory: retain their original score/logs while excluding them from product-call denominators. The selected real matrix has zero adapter-rejected positions, so the proposed rerun population is empty.
  • Do not add the allegedly missing return entry: it already exists. Keep the scoped method-label override because instance labels contain version/DNS distinctions that the generic method registry does not supply; the context resets after rendering and has a regression test.
  • Do not lower 95 article contracts to diagnostic or remove anchors based on which systems fail. The frozen task explicitly includes related stable page text. Substring matches establish literal presence, not that a particular UI control was captured. A stricter location-sensitive requirement would be a separately justified contract revision, not a report repair. The suspected & discrepancy passes equivalent-form controls; unrelated text fails.
  • Do not deduplicate different suite tasks merely because their URLs match. Selection and analysis now retain suite/case identity; different acceptance contracts are separate tasks.
  • Keep explicit native-default retrieval independent of scoring format: existing paired route-contract tests cover accepted explicit native retrieval without an acceptance contract and rejected invalid contracts. Historical source/policy versions remain hash-bound rather than silently reinterpreted under today's code.

Saved-evidence findings

  • Matrix: 6,050 planned positions, 5,997 saved/called, 2,191 passed, 3,806 failed, 53 not called. Moli 1.1.19 has 498/550 saved positions (51 DNS skips plus its separate lexmount-doc skip), not 499/550. Moli 1.1.15 has 549/550.
  • All 42 split continuations have a failed/uncommitted first call: 41 retained first results are timeouts; one first result was uncommitted with a retained receipt. No first-pass continuation or retry-chain violation was found. The final call remains authoritative.
  • All three Browser Use direct-file cases pass. Bright Data's two failed video-file cases are timeouts, not UTF-8/hash mismatches. Do not infer an encoding-related false negative from an unused possible route.
  • The supplied all-fail script would merge suite identities and treat missing methods as failures. A suite-qualified audit finds 101 cases with no observed pass, 91 with all 11 configurations actually failed, and ten with missing results. Of the 91, 33 have real declared body requirements passed by a majority. This is a diagnostic list, not authority to delete requirements. The four WeChat cases do not share one cause: article-002 has zero body passes; the other three also miss publisher/profile/original fields, not just interaction controls.
  • Historical Crawl4AI replacement: all 550 positions, passed 12 → 103, denominator 550 → 550, mean final-call latency 9,697.52 → 8,361.80 ms. Old retained request envelopes specify browser/residential where available; current envelopes uniformly specify auto/isp. Different dates and execution conditions prevent attributing the change to one parameter. This is a comparison of existing evidence, not a new test. The rebuilt local report includes the compact impact disclosure without restoring all superseded pages.

Parameter conclusions — suggestions only

Method Actual selected request Decision and evidence
Firecrawl onlyMainContent omitted; maxAge=0, proxy=auto Worth trying onlyMainContent=false for tasks requiring whole-page stable text. The official default is true and filters navigation/footer text. Do not add blanket waitFor: smart waiting already exists. Official reference
Exa text.verbosity=full, maxAgeHours=0, no livecrawlTimeout Worth trying livecrawlTimeout=15000 within the common 30-second outer deadline. Eleven saved final failures explicitly report live-crawl timeout; docs recommend 12–15 seconds for slow sites. This does not fix 403s or guarantee higher scores. Official guide
Bright Data render=true even for three direct-file tasks Try omitting forced rendering for direct files; two failed video files timed out. The docs say forced browser rendering can add substantial latency. This is a plausible experiment, not proof of causation. Do not blanket-disable rendering for dynamic pages. Official features
Tavily extract_depth=advanced, include_images=false Advanced extraction is already enabled. include_images=true is a candidate only for image-resource tasks, with the returned image field included in the declared answer contract. Query/chunk truncation is unsuitable for complete-page tasks. Official reference
Crawl4AI Cloud engine=auto, proxy=isp Conditional trial of engine=browser only where auto misses browser-visible content; residential only for genuine network blocks. Neither is a blanket upgrade. Docs warn of higher latency/cost; keep the 30-second limit, not the docs' suggested 120-second client timeout. Official reference
Cloudflare gotoOptions.waitUntil=networkidle2 The documented dynamic-page waiting option is already enabled. No evidence supports a global fixed extra delay or case-specific selector hints. Official guide
Browserbase Fetch redirects/proxies enabled; raw output for files No same-endpoint switch adds JavaScript execution; switching to browser sessions changes the method being measured. Retain the report's uncertainty about whether the service actually applied the requested proxy. Official overview
Browser Use Fetch redirects enabled, US proxy, isolated session No substantiated extra wait/render switch found for this Fetch endpoint. Browser automation is a different product path, not a caller fallback to add. Official guide
DeepSeek Fetch URL only The public Fetch schema exposes only url; no documented rendering/wait knob to recommend. Official reference
Moli 1.1.19 already uses domstable for applicable pages; direct files do not use DOM waiting Do not recommend re-enabling an option already present. 1.1.15 retains its historical configuration; do not relabel it as 1.1.19. Actual frozen CLI receipts are the evidence for these versions.

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

  • Complete Python suite: 18,816 passed, 132 skipped, 5,770 subtests passed.
  • make lint-check, all three make test-ui suites, and git diff --check passed.
  • Top-level report pages reviewed at the standard desktop viewport.
  • Final saved-report build and full portable file/link check passed: 46,510 portable files verified. The separately verified 41,495 original source bindings match the final audit exactly.
  • Compared against the previous report: all 6,050 matrix rows are identical; 18,044 record/answer/case byte comparisons passed. Totals remain 5,997 called, 2,191 passed, 3,806 failed, 53 not called. No scores changed and no provider calls were added.
  • Fix commit: fe18451. PR remains open and unmerged. Remote installation/packaging passed; other CI/review jobs were still pending at this update.

@lexmount-ocr lexmount-ocr Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Re-review complete · fe18451

This review found 5 issue(s), including 5 blocking issue(s).

Comment thread src/harness/web_fetch/report.py Resolved
Comment thread src/harness/web_fetch/report.py Resolved

@lexmount-ocr lexmount-ocr Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Re-review complete · 6fa4ae6

This review found 2 issue(s), including 2 blocking issue(s).

@lexmount-ocr lexmount-ocr Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Re-review complete · 6bf5bac

This review found 3 issue(s), including 3 blocking issue(s).

@Maisiqi

Maisiqi commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

Follow-up to the clarified DNS and primary-content review requirements.

The shared HTTP boundary previously did not apply dns_mode for Firecrawl, Exa, Tavily or Cloudflare. It now applies the declared mode for every hosted API, including redirects, records actual DNS traces, and never adds a fallback/retry. The five adapters that already used the resolver now share this owner. Moli's native-process DNS implementation is unchanged; the requested cohort policy remains Moli/system and hosted APIs/public DoH. This governs API-host resolution on the client, not the service's DNS for the target page. Historical records are not relabelled and no provider was rerun.

Clarifications supported by the saved evidence:

  • All 550 selected Firecrawl request envelopes omit onlyMainContent; the selected configuration files also omit only_main_content. This proves omission in this report's cohort, not that the user never enabled it in an earlier run. false includes whole-page text; true enables main-content-only extraction. No parameter has been changed.
  • Exa's default live-crawl limit is 10,000 ms. The official quickstart recommends 12,000–15,000 ms for slow sites. A fixed 15,000-ms trial would give live crawling more time within the unchanged 30-second outer limit; it is not guaranteed to improve pass rate and should not be assigned after inspecting each case's failures. https://exa.ai/docs/contents/quickstart
  • Bright Data rendering is a service-owned browser option. A future trial should freeze one category rule before calls: HTML-page retrieval keeps the declared rendering behavior; original-file tasks omit forced rendering and retain original bytes. The current task_kind=file population is image-10, video-05 and video-08. A webpage containing a video is not a direct video file. No per-URL exception or failure-triggered switch is proposed. https://docs.brightdata.com/products/web-unlocker/features

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:

  • WeChat article-001/002/003/077: the four interaction controls are appropriate removal candidates under primary-article scope. Retain title, publisher/byline and publication/original information. Profile/contact promotion needs source placement review rather than deletion based on omissions in outputs.
  • Weibo article-008: remove navigation, interaction, unrelated recommendations and global legal/footer requirements; retain title, author, publication information, actual body requirements and the notice that 50% of content is restricted. Do not treat every stable-* rule as shell text. The missing body-82 requirement needs independent source inspection, not automatic deletion.
  • Further candidates include article-014/028/060/071; the frozen rules include login/navigation, app promotion, print controls or unrelated recommendations alongside article content.
  • article-002 remains in the review population despite zero body passes; shell removal cannot explain its primary-content failures, but independently identified interaction controls may still be corrected consistently with the other WeChat articles. article-106/107 are outside the all-fail population: eight/seven methods already pass. They are not automatically changed just because they use the same websites.
  • For risk-diverse-057, Contact/Donate/Talks/Signalboost are not automatically discarded: the task is a personal homepage, whose links may be primary content.

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.

@lexmount-ocr lexmount-ocr Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Review complete · b580734

This review found 3 issue(s), including 3 blocking issue(s).

@lexmount-ocr lexmount-ocr Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Re-review complete · 3c00b8b

This review found 3 issue(s), including 3 blocking issue(s).

⚠️ 1 warning(s) occurred during review.


⚠️ Warnings:

  • 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

Comment thread src/harness/web_fetch/report.py Resolved

@lexmount-ocr lexmount-ocr Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Re-review complete · e7601b7

This review found 2 issue(s), including 2 blocking issue(s).

⚠️ 1 warning(s) occurred during review.


⚠️ Warnings:

  • 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

@lexmount-ocr lexmount-ocr Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Re-review complete · 8271dd7

This review found 3 issue(s), including 3 blocking issue(s).

⚠️ 1 warning(s) occurred during review.


⚠️ Warnings:

  • 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

@lexmount-ocr lexmount-ocr Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Re-review complete · 5c354ed

This review found 2 issue(s), including 2 blocking issue(s).

⚠️ 1 warning(s) occurred during review.


⚠️ Warnings:

  • 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

@Maisiqi Maisiqi changed the title feat(webfetch): preserve native delivery and verify saved-result reports feat(webfetch): verify task-family reports and offline scoring revisions Nov 1, 2026

@lexmount-ocr lexmount-ocr Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Re-review complete · bae65ca

This review found 4 issue(s), including 4 blocking issue(s).

Comment thread src/harness/web_fetch/report.py Resolved

@lexmount-ocr lexmount-ocr Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Re-review complete · c82eb23

This review found 1 issue(s), including 1 blocking issue(s).

@lexmount-ocr lexmount-ocr Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Re-review complete · f69c96d

This review found 1 issue(s), including 1 blocking issue(s).

⚠️ 1 warning(s) occurred during review.


⚠️ Warnings:

  • 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

@lexmount-ocr lexmount-ocr Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Re-review complete · 60f98f0

This review found 1 issue(s), including 1 blocking issue(s).

⚠️ 1 warning(s) occurred during review.


⚠️ Warnings:

  • 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

@lexmount-ocr lexmount-ocr Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Review complete · 2cf8249

This review found 2 issue(s), including 2 blocking issue(s).

Comment thread src/harness/web_fetch/certification.py Resolved
Comment thread src/harness/web_fetch/report.py Resolved

@lexmount-ocr lexmount-ocr Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Review complete · cde2472

This review found 1 issue(s), including 1 blocking issue(s).

Comment thread src/harness/web_fetch/certification.py Resolved

@lexmount-ocr lexmount-ocr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Review complete · 8113ec6

No findings in this review.

@lexmount-ocr lexmount-ocr Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Review complete · c237236

This review found 1 issue(s), including 1 blocking issue(s).

Comment thread src/harness/web_fetch/certification.py Resolved

@lexmount-ocr lexmount-ocr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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.

@lexmount-ocr lexmount-ocr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Review complete · 2112456

No findings in this review.

@lexmount-ocr lexmount-ocr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Re-review complete · abc665f

No findings in this incremental review.

@lanyue-llk
lanyue-llk merged commit 311024a into main Nov 9, 2026
8 checks passed
@lanyue-llk
lanyue-llk deleted the codex/webfetch-final-report-20261031 branch November 9, 2026 13:53
lanyue-llk added a commit that referenced this pull request Nov 9, 2026
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]>
lanyue-llk added a commit that referenced this pull request Nov 9, 2026
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]>
lanyue-llk added a commit that referenced this pull request Nov 9, 2026
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]>
lanyue-llk added a commit that referenced this pull request Nov 9, 2026
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]>
lanyue-llk added a commit that referenced this pull request Nov 10, 2026
* 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]>
lanyue-llk added a commit that referenced this pull request Nov 11, 2026
#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.
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.

2 participants