Repository navigation
Fix track-specific report correctness findings (Browser Use, Replay, Extract, Search) - #399
Conversation
…ping bilingual headers
… show not returned
…ss errors, add back links
There was a problem hiding this comment.
This review found 1 issue(s), including 1 blocking issue(s).
| text = node.get_text(" ", strip=True) | ||
| parts = {part.strip() for part in text.split("·")} | ||
| if ( | ||
| re.search(r"[0-9a-f]{12,}", text) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
✅ Re-review complete · eadb2f7
No findings in this incremental review.
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]What changed
error. The failure card, the diagnosis text and the program-error block now show that error. Pass text only appears on the success card.<span data-report-en=…>in both editions. It now passes markup. A new reader-facing release check rejects visibledata-report-en=text, with a negative control.check_page_titlesrejects hashes and route stems in title/h1.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 -qgives 4411 passed, 19 skipped.make lint-checkpasses.Part of #398