Skip to content

Upgrade and root-audit the 10-method Web Fetch report - #9

Merged
lanyue-llk merged 32 commits into
mainfrom
codex/upgrade-12-method-webfetch-report
Sep 15, 2026
Merged

lanyue-llk merged 32 commits into
mainfrom
codex/upgrade-12-method-webfetch-report

Conversation

@lanyue-llk

@lanyue-llk lanyue-llk commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Upgrade the current 10-method Web Fetch publication to the five-browser report information architecture. The two Lexmount adapters remain registered, but their older cohorts are not part of the current 1,500-result matrix.
  • Independently review all 1,500/1,500 authoritative results, including the remaining passes; unresolved review decisions: 0. The final anomaly audit examined 343 triggered results across 150 groups and records no unresolved root-cause finding.
  • Fix shared scoring, review-reuse, evidence and provider-adapter causes instead of editing stored verdicts. Add hash-bound physical-call logs and an accessible details dialog showing final output, last error, status, timing and available native events. Historical capture limitations are disclosed rather than invented.
  • Show all-call mean/P50/P95 in the overall ranking without the old header prefix, keep method names on one line, and fold the common-pass latency diagnostic.

Root-cause corrections and necessary reruns

  • Harden document table/calendar acceptance and Markdown separator normalization with paired FP/FN controls; preserve strict literal-pipe matching. Correct the Wikimedia thumbnail-host review rule without accepting a non-thumbnail asset rewrite.
  • Use Cloudflare's Browser Rendering /markdown for body tasks, /scrape for resource-link tasks, and Workers AI /ai/tomarkdown for the seven direct-document tasks. Repair .mp4.zip and /video/BV... candidate loss, then restrict video-link extraction to genuine anchor URL candidates rather than account/navigation/iframe links.
  • Use Firecrawl selector Actions and its native video format where those routes fit the task. Keep Moli bound to 1.1.4 and preserve its raw direct-file route; no 1.1.5 cohort was run.
  • Supersede only the declared affected scope: 44 certified physical provider calls across the correction chain, producing 40 current logical replacements; 1,460 unchanged results retain reviewed baseline evidence. No full 150-task rerun for every method.
  • A pre-response read timeout now has a narrowly verified raw-absence audit path: the call-log hash, empty-output hash, timeout error, request layer, scorer and final result must all match. Successful responses or unsupported raw absence still fail the audit gate.

Verification and publication

  • Final matrix: 1,032 pass / 468 fail, 150 tasks, 10 measured methods; 1,500/1,500 reviewed, accepted unreviewed passes 0, unresolved decisions 0.
  • make test, make fixture-smoke, make report, and make report-check passed locally. The report checker found 3,342 logical routes and 0 broken local links.
  • Updated the bound existing Sites site RSdbALdbdNG6 to activated version ver_4352ebce880149e1ada4a1b97680c364. Open the public report. The share page and a new failed-call log dialog were checked by opening them in a browser; no published artifact was downloaded back.

This PR is intentionally left open for review; it does not merge main.

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Claude finished @lanyue-llk's task in 3m 3s —— View job


PR Review

  • Read CLAUDE.md and gather context
  • Review PR diff for bugs and security issues
  • Post findings

Three bugs found. No security issues.


Bug 1 — report_access_registry: silent KeyError on stale mapping

harness/web_fetch/accounts.py:314

account_id = REPORT_PROVIDER_ACCOUNT_IDS.get(provider)
if account_id:
    rows.append(account_by_id[account_id])  # KeyError if not in ACCOUNT_REGISTRY

If REPORT_PROVIDER_ACCOUNT_IDS maps a provider to an account id that doesn't exist in ACCOUNT_REGISTRY, this raises a bare KeyError. The "unknown provider" case below it produces a friendly ValueError with a diagnostic message; this path gives nothing. A one-line guard would make the failure mode consistent:

if account_id not in account_by_id:
    missing.append(provider)
    continue
rows.append(account_by_id[account_id])

Fix this →


Bug 2 — first_correction: unguarded next() raises StopIteration

harness/web_fetch/report_changes.py:53

def first_correction(history, releases):
    release=next(r for r in releases if r['id']=='2026-09-03-fairness-correction')

If releases doesn't contain the hardcoded id, next() propagates StopIteration instead of a meaningful ValueError. The test on line 16 only covers the binding check, not the missing-release case. Since StopIteration can suppress itself unexpectedly when this generator is used inside another generator context, this should be:

release = next((r for r in releases if r['id'] == '2026-09-03-fairness-correction'), None)
if release is None:
    raise ValueError('Release 2026-09-03-fairness-correction not found')

Fix this →


Bug 3 — render_changes: shutil.copytree without existence check

harness/web_fetch/report_changes.py:111-112

if selection.exists():
    ...
    for name in ['file-provider-rerun', 'file-provider-rerun-native', ...]:
        shutil.copytree(evidence_root/name, out/name)  # FileNotFoundError if absent

selection.exists() gates the block, but the four evidence subdirectories aren't individually checked. If any one is absent (partial run, manual cleanup), shutil.copytree raises FileNotFoundError mid-loop, leaving a partially-written output directory. Either check existence first or wrap with a try/except that names the missing path.

Fix this →

@github-actions github-actions 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.

Automated Claude review completed. Review run: https://github.com/lexmount/browser-eval/actions/runs/34437621961. Please check Claude's inline feedback and summary comment for details.

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Claude finished @lanyue-llk's task in 2m 21s —— View job


PR Review

  • Read CLAUDE.md and gather context
  • Check if previously reported bugs were fixed
  • Review new commits for bugs and security issues
  • Post findings

The three bugs from the previous review are still unfixed in the updated commits. No new bugs found in the added files (runtime_identity.py, assemble_webfetch_refresh.py).


Bug 1 — report_access_registry: silent KeyError on stale mapping (unfixed)

harness/web_fetch/accounts.py:314

account_id = REPORT_PROVIDER_ACCOUNT_IDS.get(provider)
if account_id:
    rows.append(account_by_id[account_id])  # KeyError if id not in ACCOUNT_REGISTRY

The REPORT_PROVIDER_ACCOUNT_IDS dict maps e.g. "cloudflare-markdown" → "cloudflare-browser-rendering", but there is no guarantee that "cloudflare-browser-rendering" exists in ACCOUNT_REGISTRY. A stale mapping raises a bare KeyError with no diagnostic. Fix:

if account_id not in account_by_id:
    missing.append(provider)
    continue
rows.append(account_by_id[account_id])

Fix this →


Bug 2 — first_correction: unguarded next() raises StopIteration (unfixed)

harness/web_fetch/report_changes.py:53

release=next(r for r in releases if r['id']=='2026-09-03-fairness-correction')

If the hardcoded id is absent, StopIteration propagates instead of a meaningful error. Fix:

release = next((r for r in releases if r['id'] == '2026-09-03-fairness-correction'), None)
if release is None:
    raise ValueError('Release 2026-09-03-fairness-correction not found')

Fix this →


Bug 3 — render_changes: shutil.copytree without existence check (unfixed)

harness/web_fetch/report_changes.py:111-112

for name in ['file-provider-rerun', 'file-provider-rerun-native', ...]:
    shutil.copytree(evidence_root/name, out/name)  # FileNotFoundError if absent

The outer selection.exists() guard does not cover the four evidence subdirectories individually. A partial run or manual cleanup leaves one directory missing and raises FileNotFoundError mid-loop, leaving a partially-written output directory. Each copytree call should be guarded.

Fix this →


@github-actions github-actions 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.

Automated Claude review completed. Review run: https://github.com/lexmount/browser-eval/actions/runs/34448553685. Please check Claude's inline feedback and summary comment for details.

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

PR Review

  • Read CLAUDE.md and gather context
  • Check if previously reported bugs were fixed
  • Review new commits for bugs and security issues
  • Post findings

View job run

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Claude finished @lanyue-llk's task in 1m 19s —— View job


PR Review

  • Read CLAUDE.md and gather context
  • Check if previously reported bugs were fixed
  • Review new commits for bugs and security issues
  • Post findings

The three bugs from the previous two reviews are still unfixed. No new bugs found in the added files (runtime_identity.py, assemble_webfetch_refresh.py).


Bug 1 — report_access_registry: silent KeyError on stale mapping (unfixed)

harness/web_fetch/accounts.py:314

account_id = REPORT_PROVIDER_ACCOUNT_IDS.get(provider)
if account_id:
    rows.append(account_by_id[account_id])  # KeyError if id not in ACCOUNT_REGISTRY

REPORT_PROVIDER_ACCOUNT_IDS maps a provider to an account id, but there is no guarantee that the account id exists in ACCOUNT_REGISTRY. A stale mapping raises a bare KeyError with no diagnostic, while the missing path below it produces a useful ValueError. Fix:

if account_id not in account_by_id:
    missing.append(provider)
    continue
rows.append(account_by_id[account_id])

Fix this →


Bug 2 — first_correction: unguarded next() raises StopIteration (unfixed)

harness/web_fetch/report_changes.py:53

release=next(r for r in releases if r['id']=='2026-09-03-fairness-correction')

If the hardcoded id is absent, StopIteration propagates instead of a meaningful error. This is especially hazardous when called from inside another generator, where StopIteration silently terminates the outer generator in Python 3.6 and is still confusing to debug in later versions. Fix:

release = next((r for r in releases if r['id'] == '2026-09-03-fairness-correction'), None)
if release is None:
    raise ValueError('Release 2026-09-03-fairness-correction not found')

Fix this →


Bug 3 — render_changes: shutil.copytree without existence check (unfixed)

harness/web_fetch/report_changes.py:111-112

for name in ['file-provider-rerun', 'file-provider-rerun-native', 'file-provider-rerun-crawl-http', 'file-provider-rerun-crawl-final']:
    shutil.copytree(evidence_root/name, out/name)  # FileNotFoundError if any is absent

The outer selection.exists() guard on line 104 does not cover the four evidence subdirectories individually. A partial run or manual cleanup leaves one directory missing and raises FileNotFoundError mid-loop, leaving a partially-written output directory. Each copytree call should be guarded.

Fix this →

@github-actions github-actions 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.

Automated Claude review completed. Review run: https://github.com/lexmount/browser-eval/actions/runs/34449033570. Please check Claude's inline feedback and summary comment for details.

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Claude finished @lanyue-llk's task in 1m 28s —— View job


PR Review

  • Read CLAUDE.md and gather context
  • Check if previously reported bugs were fixed
  • Review new commits for bugs and security issues
  • Post findings

The three bugs from prior reviews are still unfixed. No new bugs found in the latest commits (finalize_benchmark_run.py, assemble_webfetch_refresh.py, postcheck_headless.py).


Bug 1 — report_access_registry: silent KeyError on stale mapping (unfixed)

harness/web_fetch/accounts.py:314

account_id = REPORT_PROVIDER_ACCOUNT_IDS.get(provider)
if account_id:
    rows.append(account_by_id[account_id])  # KeyError if id not in ACCOUNT_REGISTRY

REPORT_PROVIDER_ACCOUNT_IDS maps a provider to an account id, but there is no guarantee that the account id exists in ACCOUNT_REGISTRY. A stale mapping raises a bare KeyError with no diagnostic, while the missing path below it produces a useful ValueError. Fix:

if account_id not in account_by_id:
    missing.append(provider)
    continue
rows.append(account_by_id[account_id])

Fix this →


Bug 2 — first_correction: unguarded next() raises StopIteration (unfixed)

harness/web_fetch/report_changes.py:53

release=next(r for r in releases if r['id']=='2026-09-03-fairness-correction')

If the hardcoded id is absent, StopIteration propagates instead of a meaningful error. This is especially hazardous when called from inside another generator, where StopIteration silently terminates the outer generator in Python 3.6 and is still confusing to debug in later versions. Fix:

release = next((r for r in releases if r['id'] == '2026-09-03-fairness-correction'), None)
if release is None:
    raise ValueError('Release 2026-09-03-fairness-correction not found')

Fix this →


Bug 3 — render_changes: shutil.copytree without existence check (unfixed)

harness/web_fetch/report_changes.py:111-112

for name in ['file-provider-rerun','file-provider-rerun-native','file-provider-rerun-crawl-http','file-provider-rerun-crawl-final']:
    shutil.copytree(evidence_root/name,out/name)  # FileNotFoundError if any is absent

The outer selection.exists() guard on line 104 does not cover the four evidence subdirectories individually. A partial run or manual cleanup leaves one directory missing and raises FileNotFoundError mid-loop, leaving a partially-written output directory. Each copytree call should be guarded.

Fix this →

@github-actions github-actions 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.

Automated Claude review completed. Review run: https://github.com/lexmount/browser-eval/actions/runs/34449710259. Please check Claude's inline feedback and summary comment for details.

@github-actions

Copy link
Copy Markdown

Claude Code is working…

I'll analyze this and get back to you.

View job run

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Claude encountered an error after 3s —— View job


I'll analyze this and get back to you.

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Claude finished @lanyue-llk's task in 1m 17s —— View job


PR Review

  • Read CLAUDE.md and gather context
  • Check if previously reported bugs were fixed
  • Review new commits for bugs and security issues
  • Post findings

The three bugs from prior reviews are still unfixed. No new bugs found in the latest commits (run_certified_benchmark.py, finalize_benchmark_run.py).


Bug 1 — report_access_registry: silent KeyError on stale mapping (unfixed)

harness/web_fetch/accounts.py:314

account_id = REPORT_PROVIDER_ACCOUNT_IDS.get(provider)
if account_id:
    rows.append(account_by_id[account_id])  # KeyError if id not in ACCOUNT_REGISTRY

REPORT_PROVIDER_ACCOUNT_IDS maps a provider to an account id, but there is no guarantee that the account id exists in ACCOUNT_REGISTRY. A stale mapping raises a bare KeyError with no diagnostic, while the missing path below it produces a useful ValueError. Fix:

if account_id not in account_by_id:
    missing.append(provider)
    continue
rows.append(account_by_id[account_id])

Fix this →


Bug 2 — first_correction: unguarded next() raises StopIteration (unfixed)

harness/web_fetch/report_changes.py:53

release=next(r for r in releases if r['id']=='2026-09-03-fairness-correction')

If the hardcoded id is absent, StopIteration propagates instead of a meaningful error. This is especially hazardous when called from inside another generator, where StopIteration silently terminates the outer generator. Fix:

release = next((r for r in releases if r['id'] == '2026-09-03-fairness-correction'), None)
if release is None:
    raise ValueError('Release 2026-09-03-fairness-correction not found')

Fix this →


Bug 3 — render_changes: shutil.copytree without existence check (unfixed)

harness/web_fetch/report_changes.py:111-112

for name in ['file-provider-rerun','file-provider-rerun-native','file-provider-rerun-crawl-http','file-provider-rerun-crawl-final']:
    shutil.copytree(evidence_root/name,out/name)  # FileNotFoundError if any is absent

The outer selection.exists() guard on line 104 does not cover the four evidence subdirectories individually. A partial run or manual cleanup leaves one directory missing and raises FileNotFoundError mid-loop, leaving a partially-written output directory. Each copytree call should be guarded.

Fix this →

@github-actions github-actions 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.

Automated Claude review completed. Review run: https://github.com/lexmount/browser-eval/actions/runs/34451581823. Please check Claude's inline feedback and summary comment for details.

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Claude finished @lanyue-llk's task in 1m 10s —— View job


PR Review

  • Read CLAUDE.md and gather context
  • Check if previously reported bugs were fixed
  • Review new commits for bugs and security issues
  • Post findings

The three bugs from prior reviews are still unfixed. No new bugs found in the latest commits.


Bug 1 — report_access_registry: silent KeyError on stale mapping (unfixed)

harness/web_fetch/accounts.py:314

account_id = REPORT_PROVIDER_ACCOUNT_IDS.get(provider)
if account_id:
    rows.append(account_by_id[account_id])  # KeyError if id not in ACCOUNT_REGISTRY

REPORT_PROVIDER_ACCOUNT_IDS maps a provider to an account id, but there is no guarantee the account id exists in ACCOUNT_REGISTRY. A stale mapping raises a bare KeyError with no diagnostic, while the missing path below produces a useful ValueError. Fix:

if account_id not in account_by_id:
    missing.append(provider)
    continue
rows.append(account_by_id[account_id])

Fix this →


Bug 2 — first_correction: unguarded next() raises StopIteration (unfixed)

harness/web_fetch/report_changes.py:53

release=next(r for r in releases if r['id']=='2026-09-03-fairness-correction')

If the hardcoded id is absent, StopIteration propagates instead of a meaningful error. This is hazardous when called from inside another generator, where StopIteration silently terminates the outer generator. Fix:

release = next((r for r in releases if r['id'] == '2026-09-03-fairness-correction'), None)
if release is None:
    raise ValueError('Release 2026-09-03-fairness-correction not found')

Fix this →


Bug 3 — render_changes: shutil.copytree without existence check (unfixed)

harness/web_fetch/report_changes.py:111-112

for name in ['file-provider-rerun','file-provider-rerun-native','file-provider-rerun-crawl-http','file-provider-rerun-crawl-final']:
    shutil.copytree(evidence_root/name,out/name)  # FileNotFoundError if any is absent

The outer selection.exists() guard on line 104 does not cover the four evidence subdirectories individually. A partial run or manual cleanup leaves one directory missing and raises FileNotFoundError mid-loop, leaving a partially-written output directory. Each copytree call should be guarded:

for name in ['file-provider-rerun','file-provider-rerun-native','file-provider-rerun-crawl-http','file-provider-rerun-crawl-final']:
    src = evidence_root / name
    if not src.exists():
        raise FileNotFoundError(f'Expected evidence directory missing: {src}')
    shutil.copytree(src, out / name)

Fix this →

@github-actions github-actions 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.

Automated Claude review completed. Review run: https://github.com/lexmount/browser-eval/actions/runs/34454129938. Please check Claude's inline feedback and summary comment for details.

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Claude finished @lanyue-llk's task in 1m 41s —— View job


PR Review

  • Read CLAUDE.md and gather context
  • Check if previously reported bugs were fixed
  • Review new commits for bugs and security issues
  • Post findings

The three bugs from prior reviews are still unfixed. No new bugs found in the latest commits (collect_source_evidence.py, freeze_headless_references.py, report_i18n.py, run_certified_benchmark.py, finalize_benchmark_run.py).


Bug 1 — report_access_registry: silent KeyError on stale mapping (unfixed)

harness/web_fetch/accounts.py:314

account_id = REPORT_PROVIDER_ACCOUNT_IDS.get(provider)
if account_id:
    rows.append(account_by_id[account_id])  # KeyError if id not in ACCOUNT_REGISTRY

REPORT_PROVIDER_ACCOUNT_IDS maps a provider to an account id, but there is no guarantee the account id exists in ACCOUNT_REGISTRY. A stale mapping raises a bare KeyError with no diagnostic, while the missing path below produces a useful ValueError. Fix:

if account_id not in account_by_id:
    missing.append(provider)
    continue
rows.append(account_by_id[account_id])

Fix this →


Bug 2 — first_correction: unguarded next() raises StopIteration (unfixed)

harness/web_fetch/report_changes.py:53

release=next(r for r in releases if r['id']=='2026-09-03-fairness-correction')

If the hardcoded id is absent, StopIteration propagates instead of a meaningful error. This is hazardous when called from inside another generator, where StopIteration silently terminates the outer generator. Fix:

release = next((r for r in releases if r['id'] == '2026-09-03-fairness-correction'), None)
if release is None:
    raise ValueError('Release 2026-09-03-fairness-correction not found')

Fix this →


Bug 3 — render_changes: shutil.copytree without existence check (unfixed)

harness/web_fetch/report_changes.py:111-112

for name in ['file-provider-rerun','file-provider-rerun-native','file-provider-rerun-crawl-http','file-provider-rerun-crawl-final']:
    shutil.copytree(evidence_root/name,out/name)  # FileNotFoundError if any is absent

The outer selection.exists() guard on line 104 does not cover the four evidence subdirectories individually. A partial run or manual cleanup leaves one directory missing and raises FileNotFoundError mid-loop, leaving a partially-written output directory. Each copytree call should be guarded:

for name in ['file-provider-rerun','file-provider-rerun-native','file-provider-rerun-crawl-http','file-provider-rerun-crawl-final']:
    src = evidence_root / name
    if not src.exists():
        raise FileNotFoundError(f'Expected evidence directory missing: {src}')
    shutil.copytree(src, out / name)

Fix this →

@github-actions github-actions 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.

Automated Claude review completed. Review run: https://github.com/lexmount/browser-eval/actions/runs/34454366929. Please check Claude's inline feedback and summary comment for details.

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Claude finished @lanyue-llk's task in 2m 45s —— View job


PR Review

  • Read CLAUDE.md and gather context
  • Check if previously reported bugs were fixed
  • Review new commits for bugs and security issues
  • Post findings

The three bugs from prior reviews are still unfixed. No new bugs found in the latest commit (call_boundary.py, providers/base.py, providers/moli.py, providers/subprocess_jsonl.py, runner.py — cancellable provider timeout cleanup).


Bug 1 — report_access_registry: silent KeyError on stale mapping (unfixed)

harness/web_fetch/accounts.py:312-314

account_id = REPORT_PROVIDER_ACCOUNT_IDS.get(provider)
if account_id:
    rows.append(account_by_id[account_id])  # KeyError if id not in ACCOUNT_REGISTRY

REPORT_PROVIDER_ACCOUNT_IDS maps a provider to an account id, but there is no guarantee the account id exists in ACCOUNT_REGISTRY. A stale mapping raises a bare KeyError with no diagnostic, while the missing path below produces a useful ValueError. Fix:

if account_id not in account_by_id:
    missing.append(provider)
    continue
rows.append(account_by_id[account_id])

Fix this →


Bug 2 — first_correction: unguarded next() raises StopIteration (unfixed)

harness/web_fetch/report_changes.py:53

release=next(r for r in releases if r['id']=='2026-09-03-fairness-correction')

If the hardcoded id is absent, StopIteration propagates instead of a meaningful error. This is hazardous when called from inside another generator, where StopIteration silently terminates the outer generator. Fix:

release = next((r for r in releases if r['id'] == '2026-09-03-fairness-correction'), None)
if release is None:
    raise ValueError('Release 2026-09-03-fairness-correction not found')

Fix this →


Bug 3 — render_changes: shutil.copytree without existence check (unfixed)

harness/web_fetch/report_changes.py:111-112

for name in ['file-provider-rerun','file-provider-rerun-native','file-provider-rerun-crawl-http','file-provider-rerun-crawl-final']:
    shutil.copytree(evidence_root/name,out/name)  # FileNotFoundError if any is absent

The outer selection.exists() guard on line 104 does not cover the four evidence subdirectories individually. A partial run or manual cleanup leaves one directory missing and raises FileNotFoundError mid-loop, leaving a partially-written output directory. Each copytree call should be guarded:

for name in ['file-provider-rerun','file-provider-rerun-native','file-provider-rerun-crawl-http','file-provider-rerun-crawl-final']:
    src = evidence_root / name
    if not src.exists():
        raise FileNotFoundError(f'Expected evidence directory missing: {src}')
    shutil.copytree(src, out / name)

Fix this →

@github-actions github-actions 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.

Automated Claude review completed. Review run: https://github.com/lexmount/browser-eval/actions/runs/34455948366. Please check Claude's inline feedback and summary comment for details.

@github-actions

github-actions Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Claude finished @lanyue-llk's task in 1m 44s —— View job


PR Review

  • 读取 AGENTS.md 和 SKILL.md
  • 独立核查历史 bug 修复状态(实际读取代码)
  • 审查最新 commit d7ef217 关键变更
  • 发布结论

Review 结论

通过

最新 commit d7ef217("fail closed on missing promotion records")修复了所有历史 review 报告的未修复问题。经独立读取当前代码确认,全部 bug 已修复且有配套测试。


历史 bug 修复状态(独立核查)

2ee8256 修复的三个原始 bug(均已确认有效):

  • accounts.py:314-316:if account_id not in account_by_id 守卫已加入。已修复。 ✓
  • report_changes.py:57-60:first_correction 已改为 next(..., None) + 显式 ValueError。已修复。 ✓
  • report_changes.py:98-105:render_changes 批量预检四个证据目录,任一缺失一次性 raise FileNotFoundError,无半写风险。已修复。 ✓

d7ef217 修复的两个新 bug(本次首次确认修复):

  • scripts/promote_reference_candidate.py:69-71, 92-94:历史多轮 review 报告的两处裸 next() 已通过新增 _change_for_case 辅助函数(line 23-27)完全消除。test_promotion_reports_missing_computed_change_as_validation_error 验证该路径。已修复。 ✓

  • scripts/assemble_headless.py:618:裸 next(r for r,_ in selected ...) 已替换为 _selected_record(selected, key)(辅助函数 line 38-44,使用 next(..., None) + ValueError)。test_provider_replacement_requires_prior_selected_record 验证该路径。已修复。 ✓

d7ef217 同时修复的两个历史 P2 命名问题:

  • verify_artifact_hub.py:86:内层变量 base → base_match,消除对外层 base URL 参数的遮蔽。已修复。 ✓
  • verify_artifact_hub.py:109:before, after → prefix, suffix,消除对外层 before/after metadata 变量的遮蔽。已修复。 ✓

问题及建议

未发现需要阻塞合并的问题。残余风险:无。

@github-actions

github-actions Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Claude finished @lanyue-llk's task in 1m 3s —— View job


PR Review

  • Read CLAUDE.md and gather context
  • Check if previously reported bugs are fixed
  • Review new commits for bugs and security issues
  • Post findings

All previously reported bugs are fixed in commit d7ef217 ("fail closed on missing promotion records"). No new bugs found.

promote_reference_candidate.py unguarded next() (fixed ✓)

The two bare next() calls at lines 69–71 and 92–94 are replaced by a _change_for_case(changes, case_id) helper (line 23–27) that uses next(..., None) and raises ValueError('Computed reference changes omit promoted case: '+case_id). Test test_promotion_reports_missing_computed_change_as_validation_error covers the missing-entry path.

assemble_headless.py unguarded next() (fixed ✓)

Line 618 old=next(r for r,_ in selected ...) is replaced by _selected_record(selected, key) (lines 38–45), which raises ValueError('Provider replacement has no prior selected record: ...'). Test test_provider_replacement_requires_prior_selected_record covers it.

verify_artifact_hub.py variable shadowing (fixed ✓)

base → base_match and before/after → prefix/suffix in verify_public_files, eliminating the outer-scope name conflicts reported in prior reviews.

Previously fixed bugs from 2ee8256 — still fixed ✓

  • harness/web_fetch/accounts.py:314 — account_id not in account_by_id guard present.
  • harness/web_fetch/report_changes.py:57 — first_correction uses guarded next(..., None) + ValueError.
  • harness/web_fetch/report_changes.py:99–105 — render_changes preflights all four evidence directories before any copytree.

@github-actions github-actions 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.

Automated Claude review completed. Review run: https://github.com/lexmount/browser-eval/actions/runs/34810888924. Please check Claude's inline feedback and summary comment for details.

@github-actions

github-actions Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Claude finished @lanyue-llk's task in 4m 38s —— View job


PR Review

  • Read CLAUDE.md and gather context
  • Confirm previously reported bugs are still fixed
  • Review new commits for bugs and security issues
  • Post findings

All three bugs from prior reviews are fixed (confirmed in 2ee8256; those files are unchanged in 1ee6ce6). No new bugs found in the latest commit.

Previously fixed bugs — still fixed ✓

  • harness/web_fetch/accounts.py:314 — account_id not in account_by_id guard present.
  • harness/web_fetch/report_changes.py:57 — first_correction uses guarded next(..., None) + ValueError.
  • harness/web_fetch/report_changes.py:99–105 — render_changes preflights all four evidence directories before any copytree.

New commit 1ee6ce6 — no bugs found

Reviewed:

  • body_coverage.py: New Dinic's max-flow algorithm in _maximum_allocation for global region allocation. The flow graph is always 4 levels deep (source → unit → region → sink), so the recursive send() function has a fixed maximum recursion depth of 4. The combinations loop in _global_region_allocation is exponential in the number of regions, but benchmarking contracts use a small fixed number of regions so this is acceptable in practice. One variable shadowing (capacity = demands[identifier][unit] inside for unit, capacity in shared.items()) does not cause a bug because the source edge add_edge(source, unit_node, capacity) is called before the inner reassignment.
  • reference_quality.py: script_payload_shell() uses threshold heuristics (≥10 regex hits, longest-line ratio ≥0.5, short-prose ratio <0.15) to reject serialized application state. The test in test_reference_quality.py covers the false-positive case (readable JS article) and true-positive case (state dump). Correct.
  • metrics.py: script_payload_shell now gates content_pass and raises stable_task_errors for body_text contracts. Consistent with blocked_page handling. Correct.
  • review_headless_results.py: validate_review_evidence regex _labeled_evidence uses non-greedy .*? with a terminating lookahead — no ReDoS risk. Evidence quality validation triggers a retry (continue) when it fails during the for protocol_attempt loop; after all retries the else: branch raises SystemExit(problem) with the last error. Correct.
  • merge_result_review_revision.py: The normalization block explicitly sets final_verdict = machine for all retained attempts, which is intentional per the comment ("After the scorer is corrected, bind machine/final verdict fields to the current persisted score"). The confirmed_scoring_errors counter will be 0 after normalization — this is correct for the post-fix case.
  • assemble_headless.py: bind_missing_assembled_scoring_gap reads assembly_review twice (read_text() for validation, read_bytes() for hashing). Since both reads are sequential on an immutable file, this is safe. Correct.
  • report.py: review_index(None) returns {} via (audit or {}).get('attempts', []), so audited_attempts is always a valid dict. Correct.

@github-actions

github-actions Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

PR Review

  • 读取 AGENTS.md 和 SKILL.md
  • 独立核查历史 bug 修复状态(实际读取代码)
  • 审查最新 commit 1ee6ce6 关键变更
  • 发布结论

View job run

@github-actions github-actions 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.

Automated Claude review completed. Review run: https://github.com/lexmount/browser-eval/actions/runs/34827515309. Please check Claude's inline feedback and summary comment for details.

@github-actions

github-actions Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Claude finished @lanyue-llk's task in 48s —— View job


PR Review

  • Read AGENTS.md and gather context
  • Check if previously reported bugs are still fixed
  • Review new commits for bugs and security issues
  • Post findings

All previously reported bugs are still fixed. No new bugs found in commit 71535c1.

Previously fixed bugs — still fixed ✓

  • harness/web_fetch/accounts.py:314 — account_id not in account_by_id guard present.
  • harness/web_fetch/report_changes.py:57 — first_correction uses guarded next(..., None) + ValueError.
  • harness/web_fetch/report_changes.py:99–105 — render_changes preflights all four evidence directories before any copytree.
  • scripts/promote_reference_candidate.py — _change_for_case helper eliminates both unguarded next() calls.
  • scripts/assemble_headless.py — _selected_record helper eliminates unguarded next().

New commit 71535c1 — no bugs found

Only updates the artifact_hub_expected_version assertion in tests/test_runtime_entrypoints.py from ver_be0b5445f043498da0b43093b2d890e3 to ver_357337c8b6b6466e9b34bea358a4975e. No logic changes.

@github-actions

github-actions Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Claude finished @lanyue-llk's task in 3m 1s —— View job


PR Review

  • 读取 AGENTS.md 和 SKILL.md
  • 独立核查历史 bug 修复状态(实际读取代码)
  • 审查最新两个 commit 关键变更
  • 发布结论

Review 结论

通过

历史各轮报告的所有 bug 均已修复,两个最新 commit 无新阻塞问题。


历史 bug 修复状态(独立核查当前代码)

  • accounts.py:314-316:if account_id not in account_by_id 守卫已加入,stale mapping → ValueError。已修复。 ✓
  • report_changes.py:57-60:first_correction 已改为 next(..., None) + 显式 ValueError。已修复。 ✓
  • report_changes.py:98-105:批量预检四个证据目录,任一缺失一次性 raise FileNotFoundError,无半写风险。已修复。 ✓
  • scripts/promote_reference_candidate.py:23-27:_change_for_case 辅助函数完全消除两处裸 next(),用 next(..., None) + ValueError 替代。已修复。 ✓
  • scripts/assemble_headless.py:38-44:_selected_record 辅助函数修复 line 618 裸 next(),抛出带诊断信息的 ValueError。已修复。 ✓
  • scripts/verify_artifact_hub.py:86, 109:局部变量已改名为 base_match 和 prefix/suffix,消除命名遮蔽。已修复。 ✓

最新两个 commit 核查

1ee6ce6(audit full web fetch matrix and fix scoring roots)——无新阻塞问题:

  • body_coverage.py:_maximum_allocation 改为 Dinic's max-flow 算法(BFS + 多路增广)。流图固定四层(source → unit → region → sink),递归最大深度为 4,无栈溢出风险。for unit, capacity in shared.items() 内层 capacity = demands[identifier][unit] 遮蔽外层 capacity,但 add_edge(source, unit_node, capacity) 在内层循环前调用,使用的是外层正确值,功能无误。✓
  • reference_quality.py:59-77:script_payload_shell 三重独立信号(_SCRIPT_SHELL_LINE ≥10 次、longest_ratio ≥ 0.5、short_prose_ratio < 0.15),对 1000 字节以下文本直接 return False,避免误判短文本。✓
  • metrics.py:561-562:script_payload_shell 命中时追加 stable_task_errors 并令 content_pass = False,与 blocked_page 处理对称。✓
  • report.py:175-176:review_index(None) 通过 (audit or {}).get('attempts', []) 返回 {},调用方 review_cell 和 overall_ranking 的 None 路径安全。✓
  • scoring-regressions.json:本次新增 165 行回归控制,均有双侧配对(false-positive + false-negative),通过 score_attempt 公开路径验证。✓

71535c1(bind report test to published version)——仅修改测试断言:

tests/test_runtime_entrypoints.py 将期望版本从 ver_be0b5445f043498da0b43093b2d890e3 更新为 ver_357337c8b6b6466e9b34bea358a4975e,与 evaluation/current-report.json:artifact_hub_expected_version 一致。✓


问题及建议

未发现需要阻塞合并的问题。残余风险:无。

@github-actions github-actions 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.

Automated Claude review completed. Review run: https://github.com/lexmount/browser-eval/actions/runs/34828073756. Please check Claude's inline feedback and summary comment for details.

@github-actions

github-actions Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Claude finished @lanyue-llk's task in 7m 46s —— View job


PR Review

  • 读取 AGENTS.md 和 SKILL.md
  • 独立核查历史 bug 修复状态(实际读取代码)
  • 审查最新 commit daf445a 关键变更
  • 发布结论

Review 结论

通过

历史所有已报告 bug 均保持修复。最新 commit daf445a("fix web fetch benchmark audit and report")引入的异常门禁、请求语义修正和公开产物清理逻辑正确,无新阻塞缺陷。


历史 bug 修复状态(独立核查当前代码)

  • accounts.py:314-316:if account_id not in account_by_id 守卫已加入。已修复。 ✓
  • report_changes.py:57-60:first_correction 已改为 next(..., None) + 显式 ValueError。已修复。 ✓
  • report_changes.py:98-105:render_changes 批量预检四个证据目录,任一缺失一次性 raise FileNotFoundError。已修复。 ✓
  • scripts/promote_reference_candidate.py:23-27:_change_for_case 辅助函数消除两处裸 next()。已修复。 ✓
  • scripts/assemble_headless.py:38-44:_selected_record 辅助函数修复 line 618 裸 next()。已修复。 ✓
  • scripts/verify_artifact_hub.py:86, 109:base_match/prefix/suffix 命名遮蔽问题已修复。已修复。 ✓

最新 commit daf445a 核查

异常审查基础设施(无阻塞问题):

  • anomaly_review.py:detect_anomalies 基于七层信号计算触发集;require_anomaly_review 在 dataset.comparison.require_anomaly_review=True 时强制执行,否则直接返回。review_result_anomalies.py:226 在安装前调用 require_result_review(含 anomaly gate),确保七层审查先于安装。✓
  • result_review.py:_require_result_review:anomaly_gate 路径通过 detect_anomalies 重新计算触发集后与 review 中的 anomaly_review 字段对比;七层字段、同类范围理由、根因和纠正措施均强制非空;insufficient 状态拒绝通过。✓
  • test_anomaly_review.py:覆盖跨层怀疑触发、结构式 forbidden 触发、主机路径触发、微型输出触发、Moli 失败形态和未修复缺陷阻塞等七个路径,测试完整。✓

merge_result_review_revision.py 变更(设计正确,命名值得注意):

  • line 163, 318-319:anomaly_gate = not dataset.get('comparison', {}).get('require_anomaly_review', False)。当 require_anomaly_review=True 时 anomaly_gate=False,使用 require_blind_result_review(跳过异常门禁);当 require_anomaly_review=False 时 anomaly_gate=True,使用 require_result_review(但 dataset 设置为 False,no-op)。两路均不在合并步骤执行异常门禁,异常审查由 review_result_anomalies.py 单独完成后再安装。test_matrix_refresh_stages_blind_review_before_full_anomaly_investigation(tests/test_result_review.py:554)明确覆盖此设计:合并后通过 require_blind_result_review,fail require_result_review。逻辑正确,变量命名有歧义(见下方 P2)。✓

请求语义与公开产物修正(无阻塞问题):

  • revise_cloudflare_saved_response.py:correct() 读取 hash-bound 原始信封重建 ok/error_type,调用 contained_path 确保路径安全,强制 task_verdict_changed: False 不改变任务判定;finalize() 调用 require_result_review(anomaly gate=True)作为安装门禁,valid_scoring_revision 验证修订链完整性。reference_revision_path 通过 BFS 允许经过若干参考修订后的证据状态仍被绑定。✓
  • cloudflare.py:_interface_error:新增 envelope_success 参数,从保存的 success/result/meta.status 信封归一化 error_type。revise_cloudflare_saved_response.py 正确传入 envelope_success=payload.get("success") is True。✓
  • cowagent.py:_sanitize_public_content:正则 r"\s*\|\s*Saved to:\s*(?:/Users/|/home/|/private/|/tmp/)[^\]\r\n]+" 只移除保存路径通知,保留正文。[^\]\r\n]+ 不含 / 以外的特殊字符,不影响 Markdown 链接结构。✓
  • openclaw_webfetch_worker.mts:将 error.stack(含本机源码路径)替换为 error.message(稳定消息),公开产物不再暴露宿主路径。✓
  • crawl4ai_worker.py:dynamic_extraction_config:将声明的 v2 extraction 配置注入 Crawl4AI js_code,在 wait 完成后克隆有界 DOM 根;非动态 track 或缺少 selector 时不注入,不影响普通任务。✓

评分与参考修正(无阻塞问题):

  • stable_tasks.py:_product_records:新函数处理前置字段(如 "Free shipping")位于卡片边界前的情况:仅当每个空白行分隔块各自独立解析为一条完整记录时,才将前置块视为独立卡片的属性;否则回退到宽松行布局解析。双侧回归控制 prefix-field-belongs-to-following-product-card 和 prefix-field-cannot-repair-previous-product-card 已注册。✓
  • revise_reference_evidence.py:scoring_relevant_reference_change:NON_SCORING_REFERENCE_FIELDS = {"ground_truth_evidence", "source_verification"} 仅改元数据字段时跳过 rescore(),不制造伪评分修订。test_provenance_only_reference_change_does_not_rewrite_results 覆盖两侧验证。✓
  • reference_lifecycle.py:valid_review_rebase:改为 bridged() BFS 遍历,允许经过多次参考修订后仍可复用的旧 review。✓
  • evaluation/dataset.json:require_anomaly_review: true:已启用异常审查门禁。与 require_result_review 中的 gate 配合,强制发布前完成七层异常调查。✓

问题及建议

未发现需要阻塞合并的问题。

残余 [P2] scripts/merge_result_review_revision.py:163, 318-319:anomaly_gate = not require_anomaly_review — 变量名 anomaly_gate 的语义与实际作用(控制选用 blind 还是 full validator)相反,容易误导读者以为 False 表示"不需要异常门禁"。建议后续改名为 use_full_validator = not require_anomaly_review 或加注释说明此处有意跳过异常门禁(异常审查由 review_result_anomalies.py 单独完成)。

@github-actions

github-actions Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Claude finished @lanyue-llk's task in 3m 33s —— View job


PR Review

  • Read CLAUDE.md and gather context
  • Confirm previously reported bugs are still fixed
  • Review new commits for bugs and security issues
  • Post findings

All previously fixed bugs are still fixed. No new bugs found in commit daf445a ("fix web fetch benchmark audit and report").

Previously fixed bugs — still fixed ✓

  • harness/web_fetch/accounts.py:314 — account_id not in account_by_id guard present.
  • harness/web_fetch/report_changes.py:57 — first_correction uses guarded next(..., None) + ValueError.
  • harness/web_fetch/report_changes.py:99–105 — render_changes preflights all four evidence directories before any copytree.
  • scripts/promote_reference_candidate.py — _change_for_case helper eliminates both unguarded next() calls.
  • scripts/assemble_headless.py — _selected_record helper eliminates unguarded next().

New commit daf445a — no bugs found

Reviewed:

  • harness/web_fetch/anomaly_review.py (new): detect_anomalies uses defaultdict safely throughout; require_anomaly_review validates all seven required evidence layers and fails closed on insufficient or unresolved status. No unguarded lookups.

  • harness/web_fetch/result_review.py: _require_result_review refactored to support an anomaly_gate flag. The next(c for c in dataset['cases'] if c['id']==r['case_id']) at line 109 is unguarded, but this pattern pre-exists in origin/main (same line 58), so it is not introduced by this commit. The require_blind_result_review / require_result_review split is correct.

  • scripts/revise_cloudflare_saved_response.py (new): correct() verifies content integrity (digest(current_content) != content_sha256) before rewriting; the before_task or after_task guard correctly prevents corrections from touching any passing task; finalize() BFS in reference_revision_path is cycle-safe via the seen set. Both error paths produce ValueError.

  • harness/web_fetch/providers/cloudflare.py: _interface_error correctly changes the origin-status check from >= 400 to not 200 <= origin_status < 300 (also catches 1xx/3xx) and removes answer-presence from request classification. content = content if envelope_success else "" preserves result bytes for scoring even when origin is blocked — intentional per the comment.

  • harness/web_fetch/providers/moli.py: document_runtime_fetch_task gating (document_path.endswith(".docx")) is mutually exclusive with the PDF raw path; the runtime-fetch branch validates the PK magic bytes before proceeding to extract_document_text. _markdown_http_error_status uses fullmatch with a 1024-byte guard, preventing false positives on legitimate long documents. private_network_allowlist_hosts validation rejects uppercase and duplicate entries via casefold + set-length comparison. Correct.

  • harness/web_fetch/providers/cowagent.py: _sanitize_public_content regex correctly strips | Saved to: /... leakage without consuming bracket-delimited markdown structure.

  • scripts/review_result_anomalies.py (new): anomaly_groups keys by (provider, track, route, error_type, status_family, document_response, triggers) — deterministic grouping. merge_group_resolutions validates group scope before writing. cached_group_resolutions remaps by exact attempt scope, not batch index. Correct.

  • harness/web_fetch/retrieval_hints.py: Version 2 extraction block validates selector, maximum_count bounds (1–1000), deduplication of exclude_selectors, and fallback enum. _dynamic_text_expression correctly reads extraction_selector or selector and extraction_maximum_count for v2, falling back to v1 fields otherwise.

  • harness/web_fetch/stable_tasks.py: _product_records falls back to the original _products call whenever the sub-block split produces a mixed or single-block result, preserving existing behavior for all non-multi-card cases.

@github-actions github-actions 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.

Automated Claude review completed. Review run: https://github.com/lexmount/browser-eval/actions/runs/34866323410. Please check Claude's inline feedback and summary comment for details.

@github-actions

github-actions Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Claude encountered an error —— View job


I'll analyze this and get back to you.

@github-actions

github-actions Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Claude finished @lanyue-llk's task in 5m 19s —— View job


PR Review

  • Read CLAUDE.md and gather context
  • Confirm previously reported bugs are still fixed
  • Review new commits for bugs and security issues
  • Post findings

All previously fixed bugs are still fixed. No new bugs found in commit 5578565 ("Fix Web Fetch provider routes, scoring audit, and call drilldown").

Previously fixed bugs — still fixed ✓

  • harness/web_fetch/accounts.py:314 — account_id not in account_by_id guard present.
  • harness/web_fetch/report_changes.py:57 — first_correction uses guarded next(..., None) + ValueError.
  • harness/web_fetch/report_changes.py:99–105 — render_changes preflights all four evidence directories before any copytree.
  • scripts/promote_reference_candidate.py — _change_for_case helper eliminates both unguarded next() calls.
  • scripts/assemble_headless.py — _selected_record helper eliminates unguarded next().
  • scripts/verify_artifact_hub.py — base_match/prefix/suffix variable shadowing fixed.

New commit 5578565 — no bugs found

Reviewed:

  • harness/web_fetch/runner.py — _public_text / _public_url / _public_request_summary sanitizers are applied consistently before writing to the public call log. Credential redaction covers Bearer tokens, key-value patterns (TOKEN=, authorization:, etc.), and POSIX/Windows local paths. _REQUEST_SUMMARY_FORBIDDEN allowlist prevents headers, cookie, authorization, key, and similar keys from leaking through request_summary. Tests in test_public_call_logs.py verify that Bearer never-publish, CODEX_TOKEN=top-secret, user-directory paths, and api_token query parameters are all absent from the serialized public log. contained_path is used for all log file writes; safe_identifier validates provider names and case IDs before they appear in file paths.

  • harness/web_fetch/artifacts.py — verify_public_call_log enforces closed-schema validation (exact set of top-level and nested keys), symlink rejection, hash/size binding, output path containment under artifacts/, and event structure invariants. public_call_log_binding rejects any path not rooted at call-logs/.

  • harness/web_fetch/providers/cloudflare.py — _uses_direct_document_route only examines the submitted URL path, never reference data. _multipart_body boundary uses a SHA-256 prefix, safe filename character filter, and no injection surface. _read_response_body progressively tightens socket timeout before each read to prevent indefinite streaming. _resource_urls applies urljoin + urlsplit scheme-and-host validation before adding any URL; the href video filter uses URL-path segments, not reference answers.

  • harness/web_fetch/providers/subprocess_jsonl.py — The new structured stderr capture (sequence + total-bytes tracking under a Condition lock) correctly sets stderr_truncated when retained bytes fall below actual bytes. The _request_stderr quiet-wait loop exits when the sequence stabilises, preventing unbounded waits. TimeoutError.public_metadata / RuntimeError.public_metadata are allowlisted in runner.py's exception handler before reaching the public log.

  • harness/web_fetch/report.py — call_log_dialog uses esc() for all dynamic values in the HTML template. public_provider_metadata strips keys in _PRIVATE_LOG_KEYS and any private_-prefixed keys before rendering. Call-log file reads use contained_path(out, binding['path']).

  • harness/web_fetch/anomaly_review.py — _bounded_transport_raw_absence requires all seven conditions before allowing an insufficient raw layer: ok=False, status_code=None, error_type='timeout', request/scorer/final verified, no raw artifact, and a hash-bound public call log confirming zero output bytes and matching error type/message.

  • select_cohort_history in report_changes.py — uses the two-argument next((...), None) form; no StopIteration hazard.

@github-actions

github-actions Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Claude finished @lanyue-llk's task in 6m 21s —— View job


PR Review

  • 读取 AGENTS.md 和 SKILL.md
  • 独立核查历史 bug 修复状态(实际读取代码)
  • 审查最新 commit 5578565 关键变更
  • 发布结论

Review 结论

通过

历史所有已报告 bug 均保持修复。最新 commit 5578565("Fix Web Fetch provider routes, scoring audit, and call drilldown")引入的公开调用日志基础设施、路由修正和评分改进逻辑正确,无阻塞缺陷。


历史 bug 修复状态(独立核查当前代码)

  • accounts.py:314-316:if account_id not in account_by_id 守卫已加入。已修复。 ✓
  • report_changes.py:57-60:first_correction 已改为 next(..., None) + 显式 ValueError。已修复。 ✓
  • report_changes.py:98-105:批量预检四个证据目录,无半写风险。已修复。 ✓
  • scripts/promote_reference_candidate.py:23-27:_change_for_case 辅助函数消除两处裸 next()。已修复。 ✓
  • scripts/assemble_headless.py:38-44:_selected_record 辅助函数修复裸 next()。已修复。 ✓
  • scripts/verify_artifact_hub.py:86, 109:变量改名为 base_match/prefix/suffix,命名遮蔽已消除。已修复。 ✓

最新 commit 5578565 核查

公开调用日志基础设施(无阻塞问题):

  • artifacts.py:verify_public_call_log:闭合 schema 检查(顶层字段集合精确匹配 10 个),path 限定为 call-logs/ 前缀,逐级检查符号链接,验证字节大小 + SHA-256 + 输出绑定,events 数组结构严格(首/末事件 + 中间必须有 response_received 或 exception_raised)。verify_record_public_call_logs 汇总后整体调用,无半验证状态。✓
  • runner.py:_public_text / _public_url / _public_request_summary:_BEARER 正则脱敏 Bearer token,_SECRET_VALUE 覆盖常见 key=value 形式,_POSIX_LOCAL_PATH/_WINDOWS_LOCAL_PATH 移除本机路径;_REQUEST_SUMMARY_FORBIDDEN 以 casefold 子串匹配拦截凭据键(含 header、token、secret 等),key 格式限制 [A-Za-z0-9_.-]{1,64} 防止注入。test_public_call_logs.py:test_success_has_closed_complete_hash_bound_log 显式验证 never-publish、/Users/、Bearer 均不出现在序列化输出中。✓
  • report_build.py:136-152:call-log 文件与 output 文件在进入 staging 前均由 verify_public_call_log 验证;copy 后再次在 staging 目录验证(双重校验);output 冲突按 SHA-256 判断,哈希不同才拒绝。✓
  • package_artifact_hub.py:JS 端 publicMetadata 过滤 private_* 键与私有路径,Python 端 log_paths 与 HTML by_kind['call-log'] 长度断言确保批量替换不错位;pre.closest('dialog') 跳过弹窗内元素,防止报告加载器干扰弹窗内容。✓

路由修正与重跑(无阻塞问题):

  • cloudflare.py:新增 _uses_direct_document_route 按 URL 路径决策(不依赖参考答案),ArXiv /pdf/ 特例显式处理;_video_page_href 按路径分段过滤(不接受带 video/videos/watch 之外的普通导航);_multipart_body 文件名消毒只保留 ASCII 字母数字与 ._-;_read_response_body 逐块读取时动态更新 socket 超时,防止慢响应消耗超预算。✓
  • firecrawl.py:动态题切换为 Scrape Actions selector wait;视频资源题新增 video 格式字段;requested_* 元数据字段记录实际请求参数,test_dynamic_provider_waits.py 验证。✓
  • metrics.py:normalize_resource_url:Wikimedia 缩略图规范化由宽泛的 endswith('wikimedia.org') and '/thumb/' in path 改为精确检查 upload.wikimedia.org 或 thumb.wikimedia.org 且含 /thumb/ 路径;主机替换只对 thumb.wikimedia.org 执行,不对 upload.wikimedia.org 自替换。test_wikimedia_host_equivalence_is_only_for_the_same_thumbnail_asset 覆盖同资产、异资产、无缩略图路径三个判别。✓
  • metrics.py:normalize_for_match:表格分隔行(所有 visible cell 均满足 :?-{3,}:?)在归一化时跳过(不转为空格),普通含 | 的行仍按原逻辑替换。test_only_pure_markdown_table_rules_are_layout 覆盖纯分隔行、混合数据行、非表格 --- 行三种情况。回归控制 markdown-table-rule-does-not-break-visible-calendar-fact + markdown-table-rule-cannot-hide-wrong-calendar-fact 双侧覆盖。✓

异常审查扩展(无阻塞问题):

  • anomaly_review.py:_bounded_transport_raw_absence:仅在 raw=insufficient + request/scorer/final_verdict=verified + ok=False + status_code=None + error_type=timeout + 无原始响应路径 + call log 哈希绑定可验证的情况下豁免 insufficient 检查,条件极为严格,无法被普通失败触发。✓
  • anomaly_review.py:provider-track-at-most-one-pass:只对声明 cohort 完整(≥3 例、case 集合完全匹配、无重复、全有确定结果)且恰好一条通过时触发;不完整运行的缺失调用不被误判为异常。✓
  • reference_lifecycle.py:valid_scoring_revision:增加 blind_review_hashes(通过 require_blind_result_review 验证的候选集)作为最终 receipt binding 的备用路径,支持盲审后、全量异常门禁前完成修订链。require_blind_result_review 本身仍需通过才能加入候选集,标准未降低。✓

双语一致性: report_i18n.py 已覆盖 call_log_dialog 所有静态字符串(含动态数量格式、—(未记录)、成功/失败 HTTP 状态正则等),TEXT 条目验证通过。✓

凭据隔离: 新增 public_provider_metadata 在 Python 渲染层和 JS 加载层均过滤 private_* 前缀键与 raw_response_path 等私有指针,发布包不含私有路径。✓


问题及建议

未发现需要阻塞合并的问题。残余风险:无。

@github-actions github-actions 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.

Automated Claude review completed. Review run: https://github.com/lexmount/browser-eval/actions/runs/34943645587. Please check Claude's inline feedback and summary comment for details.

Comment thread .env.example Resolved
@github-actions

github-actions Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Claude finished @lanyue-llk's task in 2m 15s —— View job


PR Review

  • 读取 AGENTS.md 和 SKILL.md
  • 独立核查历史 bug 修复状态及最新 commit bf20cd6 变更
  • 审查用户 inline 评论指出的问题
  • 发布结论

Review 结论

通过

历史所有已报告 bug 均保持修复。最新 commit bf20cd6("Clarify shared local Node runtime in env template")仅在 .env.example 补充一行注释,无逻辑变更。用户两处 inline 问题已解答如下。


用户 inline 问题回复

.env.example:7:"为什么和 openclaw 有关?"

最新 commit bf20cd6 已在 OPENCLAW_NODE 行上方加注:

# OpenClaw is a measured method; DeepSeek Harness shares this pinned Node runtime.

即 OPENCLAW_NODE/OPENCLAW_PNPM 是 OpenClaw provider(被测方法之一)的 pnpm 运行时路径,DeepSeek Harness 复用同一个固定 Node 版本,因此路径统一放在 OPENCLAW_* 名称空间下。注释已说明,无需进一步改动。


research/reference-freeze-promotions/2026-09-11-browser-http-reference-scope-promotion.json:"这些是执行日志吗?适合放到 git 吗?"

不是执行日志,适合入库。 这些文件是 reference-promotion receipts(参考冻结晋升收据):

  • kind: "reference_freeze_promotion",含 input_dataset_sha256、capture_audit_sha256 等哈希绑定字段。
  • 每条记录仅保存 case ID、受影响范围、旧/新 reference SHA-256 和来源 URL/revision,无原始抓取内容、无 provider 输出、无凭据。
  • 文件体积紧凑(40–105 行),属于 AGENTS.md 规定可入库的 "public release metadata"。

AGENTS.md 明确区分:"Git may contain compact benchmark definitions, annotations, independent source evidence and public release metadata, but never measured outputs, execution manifests, provider artifacts, rerun directories, credentials or internal work logs."

这批文件满足前者、不属于后者,入库合规。


历史 bug 修复状态(独立核查当前代码)

  • accounts.py:if account_id not in account_by_id 守卫已加入。已修复。 ✓
  • report_changes.py:first_correction 已改为 next(..., None) + 显式 ValueError。已修复。 ✓
  • report_changes.py:render_changes 批量预检四个证据目录,无半写风险。已修复。 ✓
  • scripts/promote_reference_candidate.py:_change_for_case 辅助函数消除两处裸 next()。已修复。 ✓
  • scripts/assemble_headless.py:_selected_record 辅助函数修复裸 next()。已修复。 ✓
  • scripts/verify_artifact_hub.py:局部变量已改为 base_match/prefix/suffix,命名遮蔽已消除。已修复。 ✓

问题及建议

未发现需要阻塞合并的问题。残余风险:无。

@github-actions

github-actions Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Claude finished @lanyue-llk's task in 46s —— View job


PR Review

  • Read CLAUDE.md and gather context
  • Confirm previously reported bugs are still fixed
  • Review new commits for bugs and security issues
  • Post findings

All previously fixed bugs are still fixed. No new bugs found in commit bf20cd6 ("Clarify shared local Node runtime in env template").

Previously fixed bugs — still fixed ✓

  • harness/web_fetch/accounts.py:314 — account_id not in account_by_id guard present.
  • harness/web_fetch/report_changes.py:57 — first_correction uses guarded next(..., None) + ValueError.
  • harness/web_fetch/report_changes.py:99–105 — render_changes preflights all four evidence directories before any copytree.
  • scripts/promote_reference_candidate.py — _change_for_case helper eliminates both unguarded next() calls.
  • scripts/assemble_headless.py — _selected_record helper eliminates unguarded next().
  • scripts/verify_artifact_hub.py — base_match/prefix/suffix variable shadowing fixed.

New commit bf20cd6 — no bugs found

Only adds one comment line to .env.example clarifying that OpenClaw is a measured method and DeepSeek Harness shares its pinned Node runtime. No logic changes.

@github-actions github-actions 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.

Automated Claude review completed. Review run: https://github.com/lexmount/browser-eval/actions/runs/34947507940. Please check Claude's inline feedback and summary comment for details.

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