Skip to content

Fix track-specific report correctness findings (Browser Use, Replay, Extract, Search) - #399

Merged
lanyue-llk merged 5 commits into
mainfrom
report/trackfix
Nov 25, 2026
Merged

lanyue-llk merged 5 commits into
mainfrom
report/trackfix

Conversation

@lanyue-llk

Copy link
Copy Markdown
Contributor

Purpose

First part of #398: the track-specific correctness findings from the reader review. Each one made a report state something false or hide the evidence a reader needs. Readability items follow in a second PR.

flowchart LR
  E[Evaluation / call record] --> D{Failed?}
  D -- yes --> F[Failure card: located step + exact error inline]
  D -- no --> P[Pass card: pass text only]
  F --> I[Inventory row: stage + first error line]
  F --> C[Release check / test: no pass text, no empty step, no escaped markup, no hash titles, no match on no-output calls]
Loading

What changed

Finding Track Fix
B1 Browser Use A failure with no per-rule failures used to say "全部官方 evaluator 均通过" and hid the evaluation's top-level error. The failure card, the diagnosis text and the program-error block now show that error. Pass text only appears on the success card.
B2 Browser Use The home table header escaped <span data-report-en=…> in both editions. It now passes markup. A new reader-facing release check rejects visible data-report-en= text, with a negative control.
B19 Web Extract Page titles used route stems ("合成示例 · index") and case/source pages and the dialog showed 12-hex hashes. They now use page names and the case's page address. check_page_titles rejects hashes and route stems in title/h1.
B20 Web Extract Blocked or failed calls (no output) showed "符合 / 符合标注" for null references. Every field now shows 未返回 / "Not returned" in the comparison, detail, results buttons, record rows and the dialog. Stored statuses and scores are unchanged. A release check plus record-cohort assertion rejects any match on a call without output.
B9 Curated replay The failure card read "超时 第 步 · unknown · –" and the error sat behind "证据 5". It now names the step only when the trace located it, otherwise says so, and shows the exact error inline. Inventory rows gain a stage + first-error line. The per-row diagnosis dialog belongs to the shared explorer in #397, so it is noted there rather than built here.
B17 Web Search Detail page: "实际请求参数" now heads only the request parameters, and metrics get their own "本次调用指标" heading. "原始错误" renders only when an error exists. Two-column tables size to their content. Back links to 逐题对照 appear at top and bottom. The release check rejects a missing back link or an error section without an error.

Baselines

Changed intentionally, and only for text and markup. Scores, counts and latencies are identical in every track.

  • browser-use*.json: failure-card text and page hashes.
  • trajectory-replay-curated-*.json: failure panel and inventory row text.
  • web-extract-*.json: headings, 未返回 cells, page hashes.
  • web-search*.json: h2 outline (metrics heading, back links) and page hashes (inline CSS).

Allowlists unchanged. Scorer sources untouched.

Verification

  • uv run --frozen --all-extras python -m pytest tests/browser_use tests/trajectory_replay tests/web_extract tests/web_search tests/baselines tests/test_architecture_layering.py tests/test_architecture_instance_literals.py -n 8 --dist worksteal -q gives 4411 passed, 19 skipped.
  • make lint-check passes.
  • Fixture reports rebuilt and screenshotted at 1440/390 in light/dark, with no horizontal page scroll. Checked routes: the Browser Use failure page, the curated failure page, Extract case pages and Search detail pages.

Part of #398

@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 · 1f4d577

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

Comment thread src/harness/web_extract/report.py Outdated
text = node.get_text(" ", strip=True)
parts = {part.strip() for part in text.split("·")}
if (
re.search(r"[0-9a-f]{12,}", text)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

bug · medium
This substring check also rejects legitimate page addresses now supplied by case_label. For example, https://example.org/product/123456789012 produces a title containing 12 hexadecimal characters, so check_reader_contract raises even though no internal case hash is displayed. Restrict detection to standalone internal identifier labels (or compare against known case IDs) rather than arbitrary substrings in URL labels, and add a regression test for a numeric product URL.

@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 · eadb2f7

No findings in this incremental review.

@lanyue-llk
lanyue-llk merged commit d814768 into main Nov 25, 2026
10 checks passed
@lanyue-llk
lanyue-llk deleted the report/trackfix branch November 25, 2026 10:05
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