Skip to content

feat(web-extract): add versioned field extraction benchmarks and reports - #233

Merged
lanyue-llk merged 117 commits into
mainfrom
codex/web-scraper-swde-benchmark
Nov 5, 2026
Merged

lanyue-llk merged 117 commits into
mainfrom
codex/web-scraper-swde-benchmark

Conversation

@lanyue-llk

@lanyue-llk lanyue-llk commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

What changes

Adds reproducible Web Extract evaluation for Zyte's Product extraction benchmark (140 frozen product pages) and a predeclared SWDE subset (800 pages, eight categories and 80 sites). The datasets retain their original names, sources, licenses, annotations and scorer identities.

The maintained pipeline pins the input version, collects native extraction responses, scores the requested fields, binds evidence reviews and publishes checked reports. It does not run another extractor over provider answers or consult references when projecting native fields.

  • Hugging Face is the dataset authority. Independently hosted snapshots bind its commit and whole-HTML inventory; Cloudflare is the default managed host, with external hosts supported. External hosts qualify every page at first binding and before and after collection, even when they supply a matching manifest. A new deployment requires approval of its exact proposal.
  • Certified collection freezes scope, native options and budget before calls. Resume retains successful results and every physical attempt. Record repairs enforce their parent instructions and delivery format at dispatch, including when an older plan omits fields. Repairs inherit the failed execution’s current options; explicit option changes remain frozen and disclosed. A historical record run with a different instruction-delivery format requires a new cohort. Explicit account denials stop immediately; ambiguous HTTP 403s pause after consecutive denials across three original-source sites. Each new call retains its stopping decision so later classifier changes cannot reinterpret its retry history.
  • Shared record instructions reach every provider through its field descriptions, including properties-only interfaces, and the effective schema and standalone prompt are retained. URL-capable interfaces require a frozen snapshot binding; description limits are checked at planning. Historical SWDE schemas already shared the main-record/exact-copy/empty-array rules; Firecrawl Parse and ScrapeGraph received an additional prompt. The report discloses that configuration difference without relabeling or repeating those calls.
  • The reports distinguish fixed-field APIs, custom-field APIs and programmable extraction platforms by product interface. Browser infrastructure is listed separately. Bright Data's products remain candidates with their actual scope; no missing quality score is presented as a failed test.
  • Common report components explain metric meaning, units, population and direction, convert declared usage to USD per 1,000 calls, and show readable input/output examples. Each report contains its own dataset's examples. Requests, schemas and complete responses have one secondary developer entry. Missing requested fields stay visible; scoring helper fields do not appear as product output.
  • Release checks cover native-response projections, field displays, inventory filters, highlights, metric definitions, numeric pricing and evidence targets. Publication checks the report/profile/target binding before writing, supports idempotent recovery and verifies the exported bytes. Existing staged uploads keep their recovery path; eligible small releases can use one ZIP upload.

Project-owned names use Web Extract. Official product names, API identifiers, source URLs, quotations and hash-bound historical identities retain their original wording. Reusable code and compact bindings live in Git; measured evidence, authored reports and illustrations stay outside it.

Results and reports

  • Zyte product extraction report: eight hosted APIs and the retained historical local reference, 1,260 results.
  • SWDE extraction report: six hosted APIs, 4,800 results. Browserbase completed 800 pages with 789 structured responses; the remaining failures are seven transport errors and four HTTP 500 responses. Scrapfly is outside the agreed SWDE cohort; the retired extruct baseline is not run for SWDE.

The model-assisted evidence audit covers all 6,060 results, with zero unresolved findings and no unreviewed results accepted. Reviewers could see machine outputs; this is not human blind evaluation. Source-qualified reference corrections are applied consistently across methods, while original annotations and scores remain available. Six wholly unannotated SWDE site-field groups are excluded from qualified scoring.

The reports separate overview, results, dataset, methodology, interpretation and supporting resources. They retain Chinese as the primary edition and an English not-generated notice. Prices distinguish plan conversions, workload estimates and actual charges. The SWDE interpretation page also includes the ImageGen illustration and recommendations for a future extraction product and benchmark.

Validation

  • Current review fixes have execution controls for cross-site and single-target 403s, frozen retry decisions, legacy retry reading, old-plan instruction checks, selected historical parents, mixed URL/upload inputs and the historical CLI flag. The affected suite, final classifier controls, generated-client behavior and static checks pass. The latest denial-scope correction passes 187 execution-boundary tests and Ruff locally. Full CI on 786a8b16a passes: 20,857 tests and 5,860 subtests, with 157 skips; installation/packaging, rendered-report checks and Python 3.11 pass. OCR is awaiting backend dispatch.
  • Both complete reports pass their release checks and 104 desktop/narrow, light/dark reader observations with 40 evidence/filter interactions. These include native-response loading, exact failure evidence, Escape, focus restoration, return navigation, multi-method same-page comparison and expanded-instance layout.
  • All 6,060 native responses, field projections, verdicts, scores and final-call timings remain unchanged. The Zyte report restores 415 reference-assessment explanations from the exact retained opinions; their values and verdicts are unchanged. The fixes add no provider calls, model reviews or snapshot deployments.

How native APIs receive the same frozen HTML in the Zyte product cohort

Copy link
Copy Markdown
Contributor Author

The remaining correctness findings are addressed in b7b2fbca2, with report and reader fixes in d881f508b and the subsequent commits.

Finding Resolution
4: instruction delivery All six historical SWDE schemas already included the main-record, exact-copy and empty-array requirements. Firecrawl Parse and ScrapeGraph additionally received the standalone prompt; that difference is now disclosed with frozen execution-code evidence. New runs compose the shared instructions into each property description, including Zyte's properties-only interface, and retain the effective schema and instruction delivery in the request receipt. Historical calls were not relabeled or repeated.
5: snapshot verification External hosting always qualifies every page at first binding, even when its manifest matches. Manifest timeout/connection failures fall back to the page audit. Managed Cloudflare reuse intentionally checks the whole-dataset version manifest against the frozen inventory and deployment binding; the generated documentation now states that distinction.
6: target-page rejection A target page's 403 no longer becomes an account-level blocker. Explicit quota/authentication denial still stops paid dispatch. Paired controls cover the page/account distinction and ordinary text such as a credit-card field.
7: repair inputs Repairs inherit the parent's native options. Explicit overrides remain possible, declared and frozen; an omitted options argument no longer silently switches URL input to HTML. Historical mixed-configuration repairs remain disclosed.
8: run paths Report, repair and review readers use the shared resolver for a run ID, an explicit home-relative path or an absolute path.
10: citation recovery The literal-evaluation fallback handles TypeError as well as decode/syntax failures. Controls include the reported unhashable-key case and require all recovered excerpts to exist in the source.

Upload-only planning no longer requires --snapshots. The language guide lists Web Extract; record examples reject unsupported English before creating files. Navigation and method examples use the maintained catalog. The synthetic example, retry-time rendering, dataset search/sorting, form submission, and predecessor-root findings from the next OCR round are also fixed and covered.

The demonstrated common report gaps now have shared owners: metric explanations and their semantic release checks in harness/reporting/presentation.py, workload price conversion in harness/reporting/pricing.py, and one method-example component used by both extraction report modes. Raw responses stay behind a single developer entry; current result interpretation no longer treats a repaired historical error as the present outcome. The two scoring models retain their different scalar-product and multivalue-record contracts rather than undergoing a module-size-only rewrite.

Validation includes 689 affected tests and 59 subtests, 164 SWDE controls for historical projection reproduction, the final 130 report/reader tests, JavaScript behavior controls, and static/documentation checks. Both complete report trees are being released through the existing targets with desktop/narrow and light/dark reader coverage. No provider calls or snapshot deployments were added. Final release and current-head CI receipts will be reflected in the PR description.

@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 · 83dfc96

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

Comment thread scripts/check_track_naming.py Resolved
Comment thread src/harness/web_extract/pipeline.py Resolved
Comment thread src/harness/web_extract/publication.py Resolved
Comment thread src/harness/web_extract/report.py Resolved
Comment thread src/harness/web_extract/report.py Resolved
Comment thread src/harness/web_extract/report.py Resolved
Comment thread src/harness/web_extract/swde.py Resolved
Comment thread tests/web_extract/test_report_ui.mjs Resolved
@lanyue-llk

Copy link
Copy Markdown
Contributor Author

Review at 83dfc968: closer, but two regressions should block merge

This updates the follow-up at 995ea866 and responds to the resolution table for the earlier findings. Most of those fixes hold. Two changes in this round introduce new failures: an account-level denial can now get past the stop for paid calls, and one non-string field value can abort a report build.

Each item says whether it was executed against this head or confirmed by reading. The test suite was not run, no provider calls were made, and create_plan could not be run on the synthetic dataset because its pinned inventory check rejects it. The disclosure of historical instruction differences and the two published reports were not inspected.

Earlier findings

# Finding Status Notes
4 Prompt delivery differs by adapter Fixed for new runs, with a gap Instructions now go into the schema. See 3 and 4 below. The SWDE schema template does already say "copied exactly" and "empty array"; it does not say to exclude navigation and other records
5 Snapshot pages not byte-checked Mostly fixed External hosts are page-checked at first binding and the generated text now separates the two cases. See 5 below
6 Any 403 or word match blocks the cohort Partly fixed, and a new regression See 1 below
7 Repair can silently change input route Fixed for options Repairs inherit parent options. Instructions are not inherited; see 3 below
8 Inconsistent run paths Fixed Executed: x and runs/x both resolve to <home>/runs/x
10 citation_fragments TypeError Fixed Executed: {["a"]: 1} no longer raises

New findings

Should block merge

1. Account denials can bypass the stop for paid calls. access_blocker returns None as soon as the message looks like a target failure, before it looks at the status or any account wording. Executed results:

Input Result Expected
402, Failed to fetch: insufficient credits None Quota stop
401, Could not fetch: invalid API key None Authentication stop
Success false, Fetch failed: monthly quota exceeded None Quota stop
429, Your credit balance is too low None Quota stop (the narrowed regex no longer matches this wording)
403, Forbidden permission Unclear: this can still be a single page's 403

The first three keep dispatching across the rest of the matrix after the account has been denied, which is the outcome the PR says it prevents. The last row means the original #6 is only fixed when the message happens to contain target wording. Check explicit account signals first, treat 401 and 402 as account-level regardless of text, and only then apply the target exception. Deciding a bare 403 probably needs evidence across more than one page.

2. One non-string value aborts the report build. displayed_values calls esc(item) on raw values, where the previous json.dumps accepted any type. Executed: normalize keeps {"title": [1, 2]} unchanged, record_result_fields correctly scores a [12] as status invalid, and record_field_rows then raises AttributeError: 'int' object has no attribute 'replace'. The invalid-type scoring path can't be rendered, so one provider returning a number stops the whole build. The current reports pass, so this affects future runs rather than the published data. Render non-strings with json.dumps and add a control that uses a non-string value.

Should fix

3. Repairs do not inherit instructions. The repair contract has no extraction_instructions, so collect_calls falls back to the current constant and ignores the parent's value. This is the same class of bug as #7. Repairing a historical parent also merges calls using the new delivery into a cohort that used the old one. Copy the value from the parent contract, as native options now do, and have verify_repair compare them.

4. The receipt does not show the ScrapeGraph prompt. ScrapeGraph still gets a standalone prompt, but the receipt only records the schema location. The record therefore doesn't show everything that method received.

5. External hosts with a manifest get weaker collection checks than those without. Collection only rechecks the manifest when one is bound, while a manifest-less external host has every case checked before and after the run. So a page swapped after first binding on a host that declares a manifest goes unnoticed, even though the README now calls that manifest "a claim by that host". Bind external hosts to the page check at collection too, or state this limit next to "A mismatch stops collection".

6. Chinese was added to code paths that build English pages, and the docs misstate English support.

  • 原标注下的字段判定 is hard-coded inside the per-language loop of the product build(), so a reviewed result on an English route shows Chinese. The synthetic example has no reviewed rows: an English build shows no stray Chinese, so the example and its check can't catch this.
  • retry_summary, 本次调用为什么失败, displayed_values, dataset_controls, the page() navigation label and the "、" separator also bypass the catalog that the resolution says is in use.
  • docs/report-hosting.md says this builder rejects explicit en. That holds for the record mode, but executing the full-cohort-progress example with --language en produced 19 English pages.

7. Optional --snapshots allows new cohorts to change input route. create_plan now only forces URL input when snapshots are supplied, and nothing checks the case where they are omitted. URL-only methods fail later at run, but upload-capable methods such as cloudflare-json would plan with uploaded HTML. Require snapshots unless every selected method is upload-only, which is the case the resolution describes. Confirmed by reading only.

Minor

  • Network errors on Cloudflare reuse: the broader except means a timeout on an existing deployment's manifest now leads to a proposal for a new deployment. It still needs approval, but it reads as if the version were missing. The fallback is right for external hosts; here the network error should surface.
  • Failure stage on record details: the summary dropped the stage, and the record example's failed case page now shows only 调用失败 · 3.000 秒, with no stage anywhere in that detail. The shared rule expects the stage in the failure diagnosis and treats the full result page as canonical, so at least confirm the dialog still shows it.
  • Exact-match differences can be invisible: <li> rendering collapses whitespace, so "A" and " A " look identical on a page where literal matching marks them different. white-space: pre-wrap on .field-values would fix this.
  • Zyte description limit: by the schema template, a field description is 276 characters plus the field and domain name lengths, against a limit of 300. It fits today, but a longer name fails at call time instead of plan time. The instructions also repeat what the template already says.
  • Small cleanup: create_record's guard sits above its docstring, so it is no longer a docstring. check_record_cohort calls check_method_examples twice. The usage_priced catalog key looks unused now.

Design and legacy items

Before merging

  1. Fix 1 and 2, each with paired controls.
  2. Fix 3–7.
  3. Confirm ocr-review finishes on the final head and that the published reports match it, since renderer changes require a rebuild.

Comment thread src/harness/web_extract/repair.py Resolved
Comment thread src/harness/web_extract/report.py Resolved
Comment thread src/harness/web_extract/report.py Resolved
Comment thread src/harness/web_extract/report.py Resolved
Comment thread src/harness/web_extract/snapshots.py Resolved

lanyue-llk commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor Author

The top-level review and follow-up OCR findings are addressed through 20b10ef61.

Finding Result
Account denial precedence HTTP 401/402 stop dispatch regardless of target wording; explicit low-credit messages stop too. A bare target 403 does not imply an account-wide denial. Paired controls cover both scopes.
Invalid native values Non-string values remain invalid scoring attempts and render safely rather than aborting the report.
Repair execution New repairs freeze and verify the parent's instruction text and delivery format, as well as native options and snapshot input. Historical record runs using another delivery format cannot be silently mixed into a new repair. Existing historical evidence remains readable. Chained repairs inherit the current failed execution's options, origin and suffix; mixed selected configurations are rejected before planning.
ScrapeGraph request receipt The effective schema and actual standalone prompt are both retained. The prompt and Zyte's description limit now come from the method registry.
External snapshot checks A manifest does not exempt an external host from page-byte checks before and after collection or repair. Managed Cloudflare reuse keeps its whole-dataset identity check; network errors surface instead of proposing another deployment.
Language and presentation The original-reference summary, retry text and list separator are localized. The guide now distinguishes bilingual product reports from the Chinese-only record renderer. Canonical failed record details show the failure stage; field values preserve significant whitespace.
New cohort input route URL-capable interfaces require a snapshot binding at planning. Upload-only interfaces can still be planned without one. Zyte's effective field-description length is checked before collection.
Unavailable whole pages A structured page with no scoreable fields remains in All and stays outside whole-page pass/fail filters and comparison relations. Call failures retain their delivery-failure state.
Client source bindings Both report modes bind and check the current JS, CSS, interaction owner, analysis owner and message catalog. Stale record builds cannot pass publication after a client-only fix.
Record release pricing Product and record releases share the numeric price gate; free-text-only quotes are rejected.
Shared checks and cleanup Both report modes call the same metric/example and pricing validators. The duplicate example check, unused message and misplaced docstring are removed. Extruct remains a historical reference and cannot enter a new cohort.
API session isolation Diffbot and Scrapfly keep connection pooling while clearing response cookies before every dispatch. A real requests.Session regression proves that a synthetic Set-Cookie is never replayed on the next case.
Snapshot metadata round trip Published metadata retains the validated hosting provider. Managed Cloudflare and external hosts with or without manifests round-trip through publication and planning without changing verification mode.
Metric guide and headings Shared validation compares headings and individual cell counts/text, rejecting merged or shifted explanations. Client initialization preserves the separate population notes when installing sorting controls.
Numeric comparison sorting Product quality/latency tables and record executed/returned counts use the existing accessible sorting controls and numeric keys. Generated-table tests cover ascending/descending order.
Excluded participants Comparison rows disclose the bound exclusion reason on home and interpretation pages while retaining the complete result inventory. Release checks reject missing or changed disclosure.
Reference explanations The reference assessment keeps its own recorded reason instead of copying the source-field reason. Existing Zyte explanations are restored from the exact hash-bound opinions: 415 strings change; values, verdicts and scores do not.
Managed page-audit publication Full page verification preserves and revalidates the binding's manifest, so published Cloudflare metadata remains usable by planning.
Missing manifest approval HTTP 404 enters the existing deployment-approval proposal; an approved retry reaches deployment. HTTP 401/403/500 and timeouts remain errors without a proposal or remote changes.

The read-only historical-name catalog remains provenance for archived formats; it is not a set of current command aliases. The distinct scalar-product and multivalue-record scoring models remain separate.

Validation: 866 affected Python tests and 63 subtests, generated-client sorting/heading/evidence controls, static checks and 23 documentation checks pass. Current-head CI passes: 20,759 tests and 5,826 subtests passed, with 157 skips. Installation/packaging, rendered-report checks and Python 3.11 pass. OCR completed with zero findings; all 78 review threads are resolved.

Both complete reports passed their release gates, 104 viewport/theme observations and 40 reader interactions. Actual hosted success and failure details also load their native evidence, close with Escape and return through hosted navigation. The final hosted revisions are verified at their existing URLs: Zyte and SWDE, with access unchanged. All 6,060 native results, field verdicts, scores and timings remain unchanged; no provider calls were repeated. Current-head CI passes: 20,759 tests and 5,826 subtests passed, with 157 skips. Installation/packaging, rendered-report checks and Python 3.11 pass. OCR completed with zero findings; all 78 review threads are 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 · 5ae7c0a

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

Comment thread src/harness/web_extract/analysis.py Resolved
Comment thread src/harness/web_extract/repair.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 · e1dacd2

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

Comment thread src/harness/reporting/presentation.py Resolved
Comment thread src/harness/web_extract/pipeline.py Resolved
Comment thread src/harness/web_extract/repair.py Resolved
Comment thread src/harness/web_extract/report.py Resolved
Comment thread src/harness/web_extract/report.py Resolved
Comment thread src/harness/web_extract/snapshots.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 · 4f3d7a7

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

Comment thread src/harness/web_extract/report.py Resolved
Comment thread src/harness/web_extract/review.py Resolved
Comment thread src/harness/web_extract/snapshots.py Resolved
Comment thread src/harness/web_extract/snapshots.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 · 20b10ef

No findings in this incremental review.

@lanyue-llk

Copy link
Copy Markdown
Contributor Author

Review at 20b10ef6: one fix still needed before merge, otherwise close

This updates the review at 83dfc968 and responds to the resolution table. The earlier blockers are fixed, and I found no new correctness bug in the published results. One problem should still be fixed before merge: account denials that use a 403 are still sorted by word matching, and some keep dispatching with nothing to stop them. The rest are small.

Correction to my last review: its first "resolution table" link points to the wrong comment. The correct one is this comment.

What I checked: I ran tests/web_extract (715 passed), the synthetic English product build and the controls marked "executed". CI and ocr-review pass on this head. I made no provider calls and used no real snapshot hosts. Both hosted report URLs returned the same 16 KB app shell to an unauthenticated request, so I did not inspect their content or verify the 415 restored explanation strings.

Earlier findings

Finding Status Evidence
401/402 and account wording bypass the stop Fixed Executed: 402 Failed to fetch stops, and 401 stops regardless of wording
Bare 403 treated as an account block Fixed, but creates finding 1 Executed: Forbidden returns None
Non-string value aborts the build Fixed Executed: [12, "a"] and {"x": 1} both render
Repairs don't inherit instructions Fixed for plans made by this code Read; see 3
ScrapeGraph prompt missing from receipt Fixed Read, with a test on standalone_prompt
External hosts with a manifest get weaker checks Fixed Read: collection and repair both add page checks
Chinese on English paths Fixed for readers Executed: all 19 English pages contain only the 中文 language link. The synthetic example has no reviewed rows, so that path was read only
Optional --snapshots Fixed Read; see 4
Cloudflare network errors, failure stage, whitespace, Zyte limit, misplaced docstring Fixed Read

Should fix before merge

1. A 403 account denial still depends on the exact wording, and nothing else stops the run. access_blocker now pauses on a 403 only if the text matches a short list. Executed results for a 403 response:

Message Result Expected
API access is not enabled for this account None Stop
Your plan does not include this endpoint None Stop
Permission denied: your key cannot fetch this resource None Stop; the word fetch cancels the match
Forbidden, or an empty body None Unclear for one page
access denied by target firewall permission Continue; this is about one target page
Access denied permission Unclear, and treated differently from Forbidden even though a target's block page can say either

Treating one bare 403 as page-level is reasonable. But I found no consecutive-failure check in the dispatch loop, so a key that loses access partway through keeps calling every remaining page for that method. The method then reports hundreds of failures that look like extraction results, and the prior rows stay in place on resume because they no longer count as blocked. In the other direction, one target's block page can still stop the whole cohort.

Wording can't settle this. I suggest pausing a method after a small number of consecutive 403s on different sites, and recording that in access-blocked.json for a person to judge. This is my inference from reading the loop; I did not run a full collection.

Should fix

2. Verifying a retry reruns the current classifier against old rows. The retry check rejects a retried call unless access_blocker flags it today. A bare 403 followed by a retry was valid under 83dfc968, but this head would raise Retry is outside the declared access-repair policy. The rebuilt reports pass, so current evidence appears unaffected. But each change to the classifier can invalidate retained evidence, which AGENTS.md says to preserve. Verify against the reason recorded when the retry happened. Confirmed by reading and by the executed classifier result.

3. The instruction checks only apply when the plan has the new fields. The delivery check runs only in create_plan. collect and the later comparisons skip when the field is absent, and the plan schema is still archived-extraction-repair/1. A plan written before this change can therefore run against a historical parent, use the current constant, and mix delivery formats without any error. Allowing a missing field makes sense for reading old evidence, but collect should reject it for new record repairs. Confirmed by reading.

4. The repair and plan commands don't match what the docs now describe.

  • repair-plan --fixture-base is still required (executed). The new code that inherits the origin when none is given can't be reached from the CLI, and upload-only repairs must pass a URL they don't use. Make the flag optional.
  • The --snapshots requirement and the upload-only rejection together mean firecrawl-parse-json can't share a plan with any other current method. If that is intended, say so in the README, because "only upload-only interfaces may omit it" reads as if they can join a cohort. Confirmed by reading; my attempt to run it stopped earlier, at dataset validation.
  • run --fixture-base can now matter only for plans frozen earlier. If those no longer need it, remove it.

Minor

  • Repair gate order: the historical-delivery check runs before the method selection, so one historical parent blocks a repair limited to a different, current method.
  • Product repairs record unused instructions: the default writes RECORD_INSTRUCTIONS into product repair contracts, although those calls use no record schema. The evidence then describes instructions that were never sent. Add the field only when the dataset has task bindings.
  • Dead code: the target_failure block has no effect, since both of its outcomes return None. Delete it.
  • Duplicates: check runs the same public_risk check twice, and run calls validate_fixture_base twice.
  • Misplaced check: check_method_examples now also validates the comparison controls. Call that from check_reader_contract instead.
  • Text outside the catalog: page, displayed_values and dataset_controls still choose their language with inline branches. The output is correct, but the text bypasses messages.json and its checks.

Accepted

  • Non-list values as false positives: null, "" and 0 now count as attempted predictions. This is stricter than before, but it matches the array schema and has paired tests.
  • Separate scoring models: the shared check_reader_contract now covers the overlap I raised last time.

Before merging

  1. Fix 1, with a control for a run of 403s across sites and another for a single target's 403.
  2. Fix 2–4; the minor items can follow.
  3. Rebuild and re-verify the reports if report.py or its assets change, since the release check now binds those hashes.

@lanyue-llk

lanyue-llk commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor Author

Addressed the review at 20b10ef6 in 3be5f7031, with the historical CLI regression in 3907d90c5 and the denial-scope correction in 786a8b16a.

Finding Resolution
Account versus target 403 Explicit account/plan/key denials pause immediately, including messages that mention fetching. Bare or target-specific denials remain page failures. Three consecutive denials involving distinct original-source hosts pause collection with a repeated_http_403 receipt and the source hosts, without asserting that the account is at fault. A success or another status resets the streak. Resume retries the stopping case within its existing budget and retains every earlier call.
Retained retry decisions New calls checkpoint their stop reason, including an explicit non-stop value, under a frozen receipt policy. Resume and verification use that retained decision. Unreceipted historical evidence uses a fixed legacy eligibility reader, including the older bare-403 policy, while preserving budget, attempt sequence, journal, timing and final-selection checks. It never calls the evolving live classifier to authorize an old retry.
Old repair-plan bypass New record repair dispatch requires the parent's current instruction-delivery format and the exact retained instruction text, even when an old plan omits the fields. Reading completed historical repairs remains supported. Method selection precedes the historical-format gate, and product repairs no longer claim unused record instructions.
CLI and mixed inputs repair-plan --fixture-base is optional: inherited origins are used, and upload-only repairs need none. URL and upload-only interfaces can share a plan; each route retains the same frozen HTML. The planner and README now agree.

run --fixture-base is intentionally retained: an executable historical-plan scenario rejects an absent origin, then succeeds when the original unbound URL plan is given one. Versioned snapshot overrides remain rejected.

The dead target-error branch, duplicate report privacy check and duplicate origin validation are removed. Comparison-control validation belongs to the shared reader gate. Navigation, missing-value and dataset-search labels now use the catalog.

Regression coverage includes cross-site 403 stops, isolated/same-site/reset sequences, immutable receipt validation, old 403 retry history, missing instruction fields before dispatch, mixed native routes, ignored historical parents and the historical CLI path. The latest OCR finding is fixed: target-fetch errors mentioning API no longer count as account denials. All 187 execution-boundary tests and Ruff pass locally. Full CI on 786a8b16a passes: 20,857 tests and 5,860 subtests, with 157 skips; installation/packaging, rendered-report checks and Python 3.11 pass. OCR is awaiting backend dispatch.

Both reports are updated at their existing URLs with access unchanged; authenticated success and failure details, evidence loading, Escape and hosted return navigation have been verified. All 6,060 native responses, field verdicts, scores and timings remain byte/metric-verified; no provider calls, model reviews or snapshot deployments were added. An unauthenticated fetch of these private report links returns the Yours viewer shell; it does not expose their report HTML.

@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 · 3907d90

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

Comment thread src/harness/web_extract/pipeline.py Resolved
@lanyue-llk
lanyue-llk merged commit fe47b24 into main Nov 5, 2026
6 of 7 checks passed
@lanyue-llk
lanyue-llk deleted the codex/web-scraper-swde-benchmark branch November 5, 2026 13:09
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