Skip to content

docs(spec): move track rules out of AGENTS.md into their guides - #238

Merged
lanyue-llk merged 4 commits into
mainfrom
docs/slim-agents-spec
Nov 4, 2026
Merged

lanyue-llk merged 4 commits into
mainfrom
docs/slim-agents-spec

Conversation

@lanyue-llk

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

Copy link
Copy Markdown
Contributor

What, why and how of this PR

Issues

Part of #87. Remaining from the spec work: the Web Fetch guides still restate the compiled-rerun rule in Chinese (section "已编译评测集的重跑" in src/harness/web_fetch/README.md, a line in HEADLESS.md); translating them belongs to the English-source work. Narrowing the broader visual gates is a code change with a new receipt schema and is not done here.

Summary

AGENTS.md is now a short page of repository-wide rules plus a pointer table from track to guide. Every track or report-specific rule moved to the guide that owns it, and duplicates were merged into one statement. No code, schema, hash-bound file or workflow changed; no new rule file was added.

Before After
AGENTS.md bytes 32013 11731
AGENTS.md lines 105 78

Where each group of rules went

Rules Now in
Certified cohorts, compiled reruns, live_exact, one report implementation, build_report.py modes src/harness/web_fetch/README.md, new section "Certified cohorts and report builds"
Web Fetch diagnostics, cohort-derived content, fresh and composed cohorts, local audit, published-snapshot audit (from SKILL.md, report-and-release.md, audit-and-revision.md) Same section
WCXB population, page ownership, report assets Web Fetch guide, "WCXB paired timing and publication"
Retry result, dynamic capture, popular-site text, pricing and report-change files, provider examples and adoption Web Fetch guide, the existing section for each
Native-worker caller audit, DNS, native browser routes src/harness/web_fetch/HEADLESS.md
Complete WebMainBench authority bundle src/harness/web_fetch/WEBMAINBENCH.md
Search cohort order, relevance, answer derivation, review packets, SERP, quota, comparison layout src/harness/web_search/README.md
Browser Use results, matrix, failure review, failed detail, quarantine examples/browser_use/README.md, new "Report rules"
Replay canonical inputs, report contents, explorer, missing mutation, hosted navigation test, content binding docs/trajectory-replay-protocol.md, new "Report rules"
Public WebArena isolation examples/trajectory_replay/public_webarena/README.md
Page structure, failure chapters, Humanizer, interpretation page, labels, core table, resources, inventories, filters, localized routes .agents/skills/benchmark-report/references/presentation-quality.md, now linked from the skill's read order
Highlights, metric labels, release history, timers, report prose, reader pass, routine checks report-and-release.md (already stated there; missing clauses added)
Before/after build speed protocol evaluation-design.md
Language contract, token lookup docs/report-hosting.md
Latency cohort SKILL.md step 6 (already stated there)

docs/references/review-guidelines.md, the file .opencodereview/rule.json loads, now lists the guide for each changed area, so the review bot is pointed at the moved rules. It names files rather than copying their text. rule.json itself is unchanged.

Owner defaults applied

  • Lexbench report is a declared historical adapter: exempt from the new-track rule in AGENTS.md, stated in its README, and given a row in the language table of docs/report-hosting.md. The row was checked against lexbench/report.py (--include-english, no --language).
  • Visual gates that already go further keep their present scope, and report-and-release.md now says so. Browser Use and WebArena replay receipts bind schema, viewports and checker hashes; the WCXB check, published-snapshot audit and Lexbench ui_check.js cover their own themes and widths. Search already follows the one-pass rule.

The video-gen skill and catalog text are unchanged.

Small corrections made while moving

  • "Filters default to fail" now records that a track may fall back to all when nothing failed, as web_search/report.py does.
  • "Either language" for resource checks became "any generated language".
  • A failed Browser Use detail shows the reviewed root cause "or its unverified state", matching the rule that those fields stay blank until reviewed.
  • SKILL.md step 12 had a missing "and".
  • scripts/README.md rows that cited AGENTS.md as the reason a script stays now cite the Web Fetch guide.

Test plan

  • Sentence-level check, not committed: every sentence removed from AGENTS.md, SKILL.md, report-and-release.md, audit-and-revision.md, evaluation-design.md, the editorial skill, CONTRIBUTING.md and docs/architecture.md was searched across all Markdown. I read each one with no verbatim match and either found the same rule reworded in its destination or restored the clause. This was a manual judgment on about 240 sentences. The check found four lost clauses, now restored.
  • tests/test_documented_paths.py, test_readme_navigation.py, test_public_report_language.py, test_skill_sources.py, test_source_language_policy.py, test_packaging_hygiene.py, test_security.py, test_runtime_entrypoints.py, test_web_fetch_owner_commands.py, tests/trajectory_replay/test_cli.py: pass.
  • tests/test_golden_reports.py: pass, snapshots unchanged.
  • tests/test_ci_gate.py: the 4 concurrency tests fail locally. They are on the known local macOS failure list and do not touch these files.
  • These local runs were on f1dcafc0; the branch was then rebased onto 8f2232b7, which changed no Markdown. CI results are on the PR checks.

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

No findings in this review.

@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

Reviewed head ddb01bac against main 8f2232b7. Two clauses were lost in the move, so this needs one small follow-up.

Findings

P2: .agents/skills/benchmark-report/references/evaluation-design.md:21: the equalization rule was lost.

  • Problem: SKILL.md step 3 said "Equalize the task, inputs, output contract, call budget, and scoring. Do not require identical internals." The step now links to "Fairness means equivalent opportunity", which says only "the same external contract". That wording does not state that call budget and scoring must be equal, and "equalize" no longer appears in any tracked Markdown. The per-case list in the same file only declares a timeout and call count. It does not require them to match across methods.
  • Fix: add one sentence to line 21: "Equalize the task, inputs, output contract, call budget and scoring; do not require identical internals."

P2: .agents/skills/benchmark-report/references/report-and-release.md:69: routine check scope lost two items.

  • Problem: the removed AGENTS.md rule said routine checks cover "the complete route inventory, evidence, links, terminology, filters, pagination and static readability". The merged text keeps the other items but drops terminology and static readability. "Static readability" no longer appears in any tracked Markdown, although browser_use/report_check.py:763 still enforces a readability guard. The PR table lists routine checks as "missing clauses added", so that claim is incomplete.
  • Fix: extend the sentence to "Routine report checks stay fast and deterministic, cover terminology and static readability as well, and launch no browser".

P3: .agents/skills/benchmark-report/references/presentation-quality.md:57: a duplicate remains.

  • Problem: "Give each report page one primary reader question" repeats line 53 of the same section, "A page should have one primary question". This PR's job is to merge duplicates into one statement.
  • Fix: delete the first sentence of line 57 and keep "Before adding a section...".

What I verified

  • Scope of the diff: 21 files, all Markdown. No code, schema, JSON or workflow file changed, and no new rule file was added.
  • Size claim: AGENTS.md goes from 32013 to 11731 bytes and from 105 to 78 lines, as stated.
  • Lost rules: I read every removed line in the diff, then compared single words and word pairs across all tracked Markdown before and after, and checked the terms that vanished. Apart from the findings above, the rules I traced exist in their destinations, including:
    • token lookup in docs/report-hosting.md:73
    • edition rules in the docs/benchmarks.md table
    • explorer rules in report-and-release.md:25
    • per-case review tables in report-and-release.md:21
    • Search one-pass delivery in web_search/README.md:77-82
    • oversized-report and --presentation-binding rules in the Web Fetch guide
  • Ledger: I checked the MOVE and MERGE rows against this head. presentation-quality.md stays a separate file now linked from the skill's read order, rather than being merged, which fits the "no new rule file" constraint.
  • Links: a throwaway checker found no broken relative links or anchors across tracked Markdown, excluding the vendored Humanizer skills. No file outside Markdown binds a moved section by hash in the searches I ran.
  • Lexbench default: harness.lexbench report exists, it has --include-english and no --language, and it is absent from configs/report-templates.json. The new table row and exemption are accurate.
  • Visual gates default:
    • Browser Use and WebArena replay receipts bind schema, viewports and checker_sources.
    • The WCXB check, published-snapshot audit and Lexbench ui_check.js loop over their own widths and themes, as report-and-release.md now says.
  • Review bot: .opencodereview/rule.json loads docs/references/review-guidelines.md, and the new supplement table maps each changed area to its guides. It names files instead of copying rules, the same way the supplement already named AGENTS.md.
  • Issues section: "Part of #87" is correct, and the remaining Chinese rerun section and the visual-gate code work are listed.
  • Over-design: none. The PR adds no abstraction, test or file.

Tests and CI

  • Ruff lint gate: pass.
  • tests/test_documented_paths.py, test_readme_navigation.py, test_public_report_language.py, test_skill_sources.py, test_source_language_policy.py, test_packaging_hygiene.py, test_security.py, test_runtime_entrypoints.py, test_web_fetch_owner_commands.py, tests/trajectory_replay/test_cli.py, test_golden_reports.py and test_ci_gate.py: 345 passed, 4 failed. All 4 failures are the test_ci_gate.py concurrency tests on the known local macOS list, and the golden snapshots are unchanged.
  • CI on this head: all checks pass.

@lanyue-llk

Copy link
Copy Markdown
Contributor Author

Review round 1 fixes:

  • P2, fixed in a626db2: restored "Equalize the task, inputs, output contract, call budget and scoring; do not require identical internals." in the fairness section of evaluation-design.md.
  • P2, fixed in be97e0b: routine report check scope in report-and-release.md names terminology and static readability again.
  • P3, fixed in fad9b34: removed the duplicate one-question sentence from presentation-quality.md.

Nothing disputed. Documentation only; lint passes and tests/test_golden_reports.py passes unchanged (17 passed).

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

No findings in this review.

@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

Head reviewed: fad9b34b, on current main 8f2232b7. No defects found.

Round 1 fixes

  • evaluation-design.md:21 now holds the rule equalizing task, inputs, output contract, call budget and scoring.
  • report-and-release.md names terminology and static readability in the routine check scope again.
  • The duplicate one-question sentence in presentation-quality.md is gone.

Rules moved, none lost

  • I read every line removed from AGENTS.md, and the skill and reference removals, then searched for each rule's destination. This covered the phrases most likely to drop out in a merge:
    • release tags as labels
    • edition rules for minor and major changes
    • directional highlights and parallel metric labels
    • the baseline and multi-select explorer for other tracks
    • review page contents
    • per-host token saving
    • --presentation-binding, --cached-content and data attachments
    • the Search one-pass check
    • Escape handling and focus restoration in dialogs
  • This was a judgment check of rule meaning, not a mechanical proof.
  • The MOVE and MERGE rows I checked against current main have their rule at the stated destination.

Accuracy of what the PR adds

  • Lexbench row: lexbench/report.py has --include-english and no --language.
  • Visual gate paragraph: Browser Use and WebArena replay receipts bind schema, viewports and checker sources. The WCXB check, published_snapshot.py and ui_check.js each cover their own themes or widths.
  • Web Search certified entry: scripts/run_certified_benchmark.py web-search is the command above the new sentence.
  • Relative links and anchors in all changed Markdown files resolve, checked with a throwaway script.
  • AGENTS.md is 32013 bytes before and 11731 after, 78 lines, as the PR states.

Scope

  • "Part of #87" is accurate, and the remaining work is listed.
  • The diff touches only Markdown: no code, workflow, schema or hash-bound file, and no new rule file.
  • docs/references/review-guidelines.md now lists the guide for each changed area. It names files, as the supplement already did for AGENTS.md.
  • I could not check how the OCR backend reads named files, because its configuration is outside this repository.

Over-design
No new abstraction or machinery. The added text is relocated rules plus short pointers.

Tests run locally on this head

  • 161 passed across test_documented_paths, test_readme_navigation, test_public_report_language, test_skill_sources, test_source_language_policy, test_packaging_hygiene, test_security and test_golden_reports.
  • Golden snapshots are unchanged.
  • Both ruff gates are clean.

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
@lanyue-llk
lanyue-llk merged commit 2323967 into main Nov 4, 2026
7 checks passed
@lanyue-llk
lanyue-llk deleted the docs/slim-agents-spec branch November 4, 2026 12:28
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