Skip to content

docs(spec): correct wrong facts and record owner defaults - #230

Merged
lanyue-llk merged 3 commits into
mainfrom
docs/fix-wrong-spec-facts
Nov 4, 2026
Merged

lanyue-llk merged 3 commits into
mainfrom
docs/fix-wrong-spec-facts

Conversation

@lanyue-llk

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

Copy link
Copy Markdown
Contributor

What, why and how of this PR

Issues

Closes #151
Closes #174
Closes #175

Part of #87

Summary

Docs, skill files and only the tests that pin the changed wording. No policy or behavior change, and no rendered output changes.

Recorded owner defaults

The owner approved leave-as-is for all three issues. These are recorded owner defaults, not new decisions made by this PR:

Corrected facts

Where It said The code does
AGENTS.md, replay content The build reads the bindings file from --content The bindings file comes from --content-bindings or the repository default; --content holds only the assets; with neither flag the build has no bound content
AGENTS.md, presentation section Every following rule is a presentation rule A new heading separates execution, evidence and track rules; that section also holds further presentation rules for every report, and the common section says so
AGENTS.md, Web Fetch report build_report.py has a default build, and --wcxb selects WCXB --profile is required unless another mode is named; the profile's comparison_kind selects WCXB and --wcxb only checks it; construction and rendering are report_build.py and report.py
AGENTS.md, certified runs Every publishable provider cohort uses run_certified_benchmark.py That applies to Web Fetch and Web Search cohorts (Web Search through the web-search subcommand); other tracks have their own entry points
SKILL.md, publication "Repository publish targets" Targets live outside Git; the guide now names the track's make target or publish command
report-and-release.md, templates Three tracks configs/report-templates.json registers four, including web-search
report-and-release.md, presentation adapter Only WebMainBench invokes it Web Fetch, WCXB, WebMainBench and Web Search gates do, as do the Web Fetch diagnostic and published-snapshot checks; Browser Use and Trajectory Replay use only visible_text; Lexbench has its own verifier
docs/architecture.md, profiles Profiles live under evaluation/ They are external and selected with --profile
docs/architecture.md, paired timing Bare python -m uv run --frozen python -m
docs/dependencies.md, scorer Linked profile under evaluation/webmainbench-full That directory has correction records but no profile
scripts/README.md, inventory ci_scope.sh unlisted; authorize_artifact_site.py named by no guide ci.yml runs the first and docs/report-hosting.md names the second; both are now in the main table

Left alone

The Lexbench report status, the catalog track name and the visual gate wording are out of scope and unchanged.

The claim that the retained Mermaid bytes differ from the jsDelivr 11.4.1 file comes from #175. I did not recheck it against the file under the data home.

Test plan

  • Lint gate (ruff check with F,TID252, then the default config): passed.
  • pytest tests/test_golden_reports.py tests/test_ci_gate.py tests/test_documented_paths.py tests/test_lexbench_cli.py tests/test_skill_sources.py tests/test_web_fetch_owner_commands.py tests/trajectory_replay/test_cli.py: 226 passed, 4 failed.
  • The 4 failures are all in tests/test_ci_gate.py and are already known to fail in this local macOS setup, where the node helper exits with status 1. CI covers them on Linux.
  • Golden route hashes are unchanged, so no snapshot was regenerated.
  • Renamed the two tests that read the "Kept as is (Follow-up to #93: decide the scripts pending in the inventory #151)" section; they still compare that section with the command inventories.
  • Each corrected row was checked against the current code on main.

@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 skipped · 86dacc9

No reviewable content was selected for this run.

@lanyue-llk lanyue-llk left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Independent review, round 1

Head reviewed: 86dacc9e. No P0, P1 or P2 defects found.

Findings

P3, AGENTS.md:53 (with the sentence at AGENTS.md:40). The new heading "Execution, evidence and track rules" also covers rules that are neither execution, evidence nor track rules and that apply to every report. Examples are the core-metrics table on every home page, one reader question per page, the standalone interpretation page and reader-facing labels (AGENTS.md:85-88). Line 40 still presents the common requirements as the section above. The old false claim is gone and no rule changes, so this does not block merge. Suggested fix: say at line 40 that the next section also holds further presentation rules, or move those bullets up into "Common report presentation".

What I verified

Corrected facts, each read against the code at this head:

  • Replay content (AGENTS.md:34): matches webarena_report.py:2275-2284, including the --content default, the --content-bindings default and the unbound build when neither flag is given.
  • Web Fetch build (AGENTS.md:56): matches scripts/build_report.py. --profile is required unless another mode is named, comparison_kind selects WCXB, --wcxb only checks the profile, WCXB requires --evidence and defaults to reports/wcxb, and other profiles write to --output or report_output. The evidence fallback matches storage.current_evidence_dir.
  • Templates (report-and-release.md:5): configs/report-templates.json registers the four named tracks.
  • Presentation adapter (report-and-release.md:127): check_presentation is called from the Web Fetch, WCXB and Web Search gates directly. WebMainBench, the Web Fetch diagnostic and the published-snapshot check reach it through release_check.checked_page. Browser Use and Trajectory Replay import only visible_text, plus open_report, read_page and check_report_identity, none of which call it.
  • Publication (SKILL.md:57): --help lists subcommands for all five harness.<track> entry points.
  • Profiles (docs/architecture.md): agrees with the rule in reporting/source_policy.py, and no report-instance profile is under evaluation/. evaluation/risk-control/run-profile.json is a run profile, not a report instance.
  • Scorer link (docs/dependencies.md): the linked directory holds correction records and no profile.
  • Inventory (scripts/README.md): ci.yml runs ci_scope.sh and docs/report-hosting.md:68 names authorize_artifact_site.py. No "Pending owner decision" or #93 reference remains in tracked files.

Scope:

  • #151: leave-as-is is the issue's stated default and is recorded in the renamed section. The authorize script moved to the main table because a guide names it.
  • #174: every script the issue lists exists and has a row in scripts/README.md, and the decision is recorded there.
  • #175: the README's digest matches VENDOR_ASSET_SHA256, reporting/mermaid.py pins 11.4.1, and the unknown upstream version and owner default are recorded. The retained file and its digest are untouched. I did not recheck the claim that the bytes differ from the jsDelivr file, and the PR body discloses that it comes from the issue.
  • Left alone as instructed: the Lexbench status, catalog track name and visual gate wording.
  • Footprint: nothing changes under .github/workflows/, in golden snapshots, or in evidence or receipts. The two test edits only rename tests and follow the new section heading, and they still compare that section with the command inventories.

Tests and CI:

  • Lint gate: passed.
  • Targeted tests: tests/test_golden_reports.py, test_ci_gate.py, test_documented_paths.py, test_lexbench_cli.py, test_skill_sources.py, test_web_fetch_owner_commands.py and trajectory_replay/test_cli.py gave 226 passed and 4 failed, which matches the PR's test plan. All 4 failures are in test_ci_gate.py and are on the known local macOS failure list.
  • CI on this head: all checks pass, including "Tests and static checks", "Installation and packaging" and "Rendered reference and report checks".

@lanyue-llk
lanyue-llk force-pushed the docs/fix-wrong-spec-facts branch from 86dacc9 to 2685f6e Compare November 4, 2026 06:05
@lanyue-llk

Copy link
Copy Markdown
Contributor Author

Review round 1 follow-up. Head is now 2685f6e, rebased onto main f8e47d0.

Fixed

  • P3, AGENTS.md:40 (2685f6e): the common section now says the next section also holds further presentation rules that apply to every report. I kept the bullets where they are so the diff stays small. No rule changes.

Rebase

Disputed

  • Nothing.

Tests

  • Lint gate passed.
  • Golden, documented paths, Lexbench CLI, skill sources, Web Fetch owner commands, replay CLI and CI gate tests: 226 passed, 4 failed. The 4 failures are the tests/test_ci_gate.py tests already known to fail on local macOS. Golden hashes are unchanged.

@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 skipped · 2685f6e

No reviewable content was selected for this run.

@lanyue-llk lanyue-llk left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Independent review, round 2

Reviewed head 2685f6eb. CI is green: "Tests and static checks", "Installation and packaging" and "Rendered reference and report checks" all pass.

Findings

P2, AGENTS.md:58: the certified-run correction goes too far and drops Web Search.

  • Problem: The rule now reads "Run every publishable Web Fetch provider cohort through scripts/run_certified_benchmark.py", and the PR table says "That applies to Web Fetch cohorts". The old claim was too broad for Trajectory Replay and Browser Use, but Web Search also uses this entry:

    • src/harness/web_fetch/certification.py:125-127 routes web-search to search_main(argv[1:], certified=True).
    • src/harness/web_search/runner.py:473-474 forces diagnostic mode unless certified is set, so this is the entry that produces certified Web Search evidence.
    • src/harness/web_search/report.py:2204-2205 rejects a formal release without certified collection evidence.
    • src/harness/web_search/README.md:12 documents the command.

    So the sentence removes a rule that still applies to a track, in a PR that says it makes no policy change.

  • Fix: Name both tracks, for example "Run every publishable Web Fetch or Web Search provider cohort through scripts/run_certified_benchmark.py (web-search for the latter)". Update the matching row in the PR body. The later run_benchmark.py and compiled-reference sentences can stay as they are.

Verified with no defect

  • Replay content (AGENTS.md:34): matches webarena_report.py:2275-2285. The bindings file comes from --content-bindings or the repository default, --content holds the assets, and with neither flag the build has no bound content.
  • Web Fetch report rule: matches scripts/build_report.py:126-152. --profile is required, comparison_kind selects WCXB, --wcxb only checks it, WCXB requires --evidence, and the other output and evidence fallbacks are as stated.
  • Presentation adapter row:
    • check_presentation is reached from the Web Fetch, WCXB and Web Search gates directly.
    • It is reached through checked_page from the WebMainBench, diagnostic and published-snapshot checks.
    • Browser Use and replay import only visible_text and non-presentation helpers.
  • Other corrected rows:
    • The template registry has four tracks.
    • harness.<track> --help lists commands for all five modules.
    • evaluation/ holds no report-instance profile, matching source_policy.py. evaluation/risk-control/run-profile.json is a run profile.
    • evaluation/webmainbench-full holds bindings only.
    • ci.yml:30 runs ci_scope.sh, and docs/report-hosting.md:68 names authorize_artifact_site.py.
    • Every file in scripts/ is listed in the inventory.
  • Renamed section: no reference to "Pending owner decision" or #93 remains in the tree. The two renamed tests still compare that section with the command inventories.
  • Issues:
    • #151 and #174 are recorded as owner defaults, which matches the leave-as-is approval.
    • #175's README note gives the digest, the unknown upstream version and the inconclusive search, as instructed.
    • The digest matches VENDOR_ASSET_SHA256, and the retained file and its binding are untouched.
    • No mermaid.min.js exists under the data home on this machine, so I could not recheck the claim that its bytes differ. The PR body discloses this.
  • Round 1 P3: fixed at AGENTS.md:40.
  • Rules: only docs and two test names and their section lookups changed. Hash-bound evidence is untouched, and no private data, attribution lines or workflow edits appear.

Local runs

  • Lint gate: passed.
  • pytest on test_golden_reports, test_documented_paths, test_lexbench_cli, test_skill_sources, test_web_fetch_owner_commands, trajectory_replay/test_cli and test_ci_gate: 226 passed, 4 failed. All 4 failures are the known macOS node failures in test_ci_gate.py.
  • Golden route hashes are unchanged.

@lanyue-llk

Copy link
Copy Markdown
Contributor Author

Review round 2 follow-up. Head is now cb5e18c, a fast-forward on 2685f6e.

Fixed

  • P2, AGENTS.md:58 (cb5e18c): the certified-run rule now names both tracks, Web Fetch and Web Search, and points to the web-search subcommand. The finding was correct: certification.py routes web-search to search_main(certified=True), the runner forces diagnostic mode otherwise, and the Web Search report rejects a formal release without certified evidence. The matching row in the PR body is updated. This restores the rule for Web Search, so the PR still makes no policy change. No test pins this sentence, so none was added.

Not rebased

  • main has moved to 0051691. Its only new commit touches providers/headless.py and tests/test_native_cdp_port.py, which this PR does not touch, so no rebase was needed. A trial rebase on that commit was clean, and the targeted tests gave the same result there.

Disputed

  • Nothing.

Tests

  • Lint gate passed.
  • Golden, documented paths, Lexbench CLI, skill sources, Web Fetch owner commands, replay CLI and CI gate tests: 226 passed, 4 failed. The 4 failures are the tests/test_ci_gate.py tests already known to fail on local macOS. Golden hashes are unchanged.

@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 skipped · cb5e18c

No reviewable content was selected for this run.

@lanyue-llk lanyue-llk left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Independent review, round 3

Reviewed head cb5e18c3. No defects found: no P0, P1, P2 or P3 findings.

What I verified

  • Round 2 fix (AGENTS.md:58): correct. certification.py routes web-search to search_main(certified=True), and web_search/README.md:12 documents the same command. The sentence does not drop another track either. The risk-control subcommand is imported from harness.web_fetch.risk_control, and wcxb, wcxb-latency and the WebMainBench subcommands are also Web Fetch modules, so "Web Fetch or Web Search" covers everything this entry point runs. The matching row in the PR body is updated.
  • Round 1 fix (AGENTS.md:40): still in place.
  • Full diff against the merge base: docs, skill files, the Lexbench README and two test files only. The two test edits rename the tests and follow the new section heading, and they still compare that section with the command inventories. Nothing changes under .github/workflows/, in golden snapshots, or in evidence or receipts.
  • #151 and #174: the decisions are recorded in scripts/README.md, and no Pending owner decision text remains in Markdown or Python files.
  • #175: the digest in the README matches VENDOR_ASSET_SHA256 in lexbench/report.py, and the retained file and its binding are untouched. The unknown upstream version and the inconclusive search are recorded as instructed.
  • Corrected rows from earlier rounds: I did not re-derive these in full, because the diff for them has not changed since rounds 1 and 2 checked them against the code.
  • Not rechecked: the claim that the retained Mermaid bytes differ from the jsDelivr 11.4.1 file. The PR body says this comes from #175.

Local runs

  • Lint gate: passed.
  • pytest on test_golden_reports, test_ci_gate, test_documented_paths, test_lexbench_cli, test_skill_sources, test_web_fetch_owner_commands and trajectory_replay/test_cli: 226 passed, 4 failed. All 4 failures are the known local macOS node failures in test_ci_gate.py.
  • Golden route hashes are unchanged.

CI on this head

All checks pass, including "Tests and static checks", "Installation and packaging" and "Rendered reference and report checks".

lanyue-llk added a commit that referenced this pull request Nov 4, 2026
Correct statements in the project guides that no longer match the code, and record the owner's leave-as-is decisions for the pending scripts and the retained Lexbench Mermaid runtime.
@lanyue-llk
lanyue-llk force-pushed the docs/fix-wrong-spec-facts branch from cb5e18c to 1435519 Compare November 4, 2026 07:35

@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 skipped · 1435519

No reviewable content was selected for this run.

@lanyue-llk
lanyue-llk merged commit 35bed21 into main Nov 4, 2026
7 checks passed
@lanyue-llk
lanyue-llk deleted the docs/fix-wrong-spec-facts branch November 4, 2026 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant