Skip to content

docs(spec): resolve rule conflicts and reword unreasonable rules - #234

Merged
lanyue-llk merged 7 commits into
mainfrom
docs/resolve-spec-conflicts
Nov 4, 2026
Merged

lanyue-llk merged 7 commits into
mainfrom
docs/resolve-spec-conflicts

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 spec work: moving rules into their track guides, merging duplicated rules, and the open owner decisions listed below.

Summary

Rules are edited in place; none moves between files. Each conflict was checked against current main first.

Conflicts resolved

  1. Report-release browser coverage. CONTRIBUTING.md asked for details and dialogs on both viewports and themes, while AGENTS.md forbids that matrix per release. CONTRIBUTING.md now links to the release gates.
  2. Is the top-level pass unconditional? AGENTS.md and SKILL.md required it for every release, while the change classification skips it for metadata-only and text-only changes. It now applies when measured results, rendered layout or content hierarchy changed. Measured results are named explicitly so that a score change keeps its reader pass. The change classification's layout row now adds the release reader pass when publishing.
  3. Same-task comparison. One rule required a baseline-and-multi-select explorer and another a column matrix. The code has both: browser_use/report.py renders the matrix and trajectory_replay/assets/webarena-report.js the explorer. Web Fetch and Web Search also render the explorer. Browser Use now renders the matrix and every other track with more than two participants uses the explorer; both are generated from the registry.
  4. Publishing diagnostic output. AGENTS.md said never publish it, which forbade the implemented path in report_diagnostic.py and the skill's rule. It now says never assemble it into a certified release or ranking; an explicitly requested diagnostic report uses the diagnostic entries and labels every page.
  5. Deleting superseded history. AGENTS.md said always preserve, while the skill and local_revision.py provide an explicit current-only removal. AGENTS.md now names that exception, and frozen hash-bound evidence a current authority names must keep verifying.
  6. Repair runs. docs/metrics.md and the Web Fetch guide allowed rerunning failures alone, which selects on outcome and contradicts "never retry merely to obtain a better result". A repair run now needs a declared cause; without one the results are cumulative and diagnostic. Predeclared failure retries are stated as part of the run contract. SKILL.md now lists a declared infrastructure failure among its rerun causes, so all three give one answer.
  7. Where task definitions live. AGENTS.md said both that Hugging Face owns them and that Git does. Hugging Face owns them; Git holds code, hash bindings, provenance annotations and synthetic fixtures, and already-frozen definitions stay until superseded.
  8. Language on an agent-driven rebuild. A rebuild keeps the saved language unless the user asks otherwise; a new agent-driven build uses the conversation language. This is aligned in AGENTS.md, SKILL.md, report-and-release.md and the editorial html-delivery.md.

Rules reworded

  • The structural inventory checks the instance profile only when you hold it, because profiles live outside Git.
  • Humanizer passes cover authored prose and articles, not catalog interface strings, quotations or measured text.
  • The build-speed protocol and its receipt check apply to a report that claims a build-to-build speed difference. The protocol itself is unchanged.
  • Provider interface examples and adoption data are scoped to certified Web Fetch reports, matching docs/provider-contract.md.
  • "ImageGen" becomes "a Mermaid diagram or a generated image that encodes the flow".
  • "Study the supplied reference report" becomes "If a reference report is supplied".
  • "Codex CLI jobs" in the review guidance becomes "jobs".

Owner defaults and top line

  • Merge rule: "Do not merge unless the owner authorized it for that work." Never pushing to main stands.
  • Review payloads and report prose already in research/ are frozen legacy that current code may read; no new ones are added. The Web Fetch guide now names report-assets/report-changes.json as the source of the changes page and research/report-changes.json as the frozen fallback.
  • AGENTS.md and CONTRIBUTING.md both state: simple is the best; reject over-design.

Not done

  • Some visual gates still exceed the top-level pass rule: browser_use/report_visual.py, webarena_report_visual.py, published_snapshot.py, wcxb_report_check.py and Lexbench ui_check.js. Their receipts bind viewports and checker hashes, so shrinking them is a code change per track.
  • Nothing tests that research/ stays frozen, because this change adds no tests.

Test plan

No code changes, so no measurement, receipt or rendered route changes.

  • ruff check (both lint gate commands): passed.
  • tests/test_documented_paths.py tests/test_readme_navigation.py tests/test_source_language_policy.py tests/test_web_fetch_owner_commands.py tests/test_skill_sources.py tests/test_ci_gate.py tests/test_runtime_entrypoints.py tests/test_golden_reports.py: 200 passed, 4 failed. The 4 failures are in tests/test_ci_gate.py and are on the known local macOS failure list. Golden snapshots are unchanged.
  • Local tests selected the checkout's code with pytest's -o pythonpath rather than the PYTHONPATH variable.
  • CI on Linux is the full-suite gate.

Resolve the conflicting rules in place, scope rules that could not be followed, and apply the owner defaults on merging and on review payloads under research/.

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

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

Head reviewed: 8546349a. Three P2 findings: each leaves a conflict or drops a rule the PR set out to resolve. All three are small text fixes.

Findings

P2: AGENTS.md:87, .agents/skills/benchmark-report/references/report-and-release.md:57: C3 drops the explorer rule for Web Fetch and Web Search

The old text in report-and-release.md:57 applied to any report whose participant set can grow beyond two. The new text names only Browser Use and Browser Trajectory Replay, then says "A new track with more than two participants picks one of these two forms". AGENTS.md:87 adds that the explorer "belongs to Browser Trajectory Replay".

Two existing tracks already implement the explorer, and neither is mentioned:

  • src/harness/web_fetch/report.py:335-336: "Baseline browser" select plus compare-provider checkboxes.
  • src/harness/web_search/comparison.py:185, 267: baseline_only relation plus data-compare-method checkboxes.

So those tracks lose the rule that governed them, and the ownership statement is wrong. The PR summary's "the code has both" misses them too.

Fix:

  • report-and-release.md:57: "Browser Use renders one same-task matrix with a generated column per configuration. Every other track with more than two participants groups each task's pass/fail participants and provides one baseline selector ...". Then delete the "A new track ... picks" sentence.
  • AGENTS.md:87: "the baseline-and-multi-select explorer is not used for Browser Use; other tracks keep it", or simply remove the ownership clause, since the replay bullet at AGENTS.md:82 already states the explorer.

P2: .agents/skills/benchmark-editorial/references/html-delivery.md:7: C8 still stands in one skill file

The line still reads: "For agent-authored delivery, select the conversation language unless the user specifies another edition. Rebuilds preserve the saved primary language". This is the same clash the PR resolved elsewhere: an agent rebuilding a saved English report from a Chinese conversation gets two answers.

Fix: use the wording from SKILL.md:39: "A rebuild keeps the saved primary language unless the user asks otherwise; a new agent-authored delivery uses the conversation language."

P2: src/harness/web_fetch/README.md:32-33: the frozen-legacy default contradicts a live instruction

AGENTS.md:36 now says report prose already in research/ is frozen legacy and to add no new ones. The Web Fetch guide still says "research/report-changes.json drives the public, collapsible changes/index.html. Record each substantive release's issue, change, score effect, evidence and limits."

That tells contributors to keep adding report prose to a frozen file. It is also out of date for the code: report_changes.py:182-184 reads report-assets/report-changes.json first and uses the repository file only as a fallback. The PR's "Not done" section does not mention this, and the same file is edited at line 291.

Fix: "report-assets/report-changes.json, bound beside the evidence, drives the public, collapsible changes/index.html; research/report-changes.json is a frozen legacy fallback." Keep the "Record each substantive release ..." sentence, which then applies to the bound asset.

The clause "while older report owners migrate" in AGENTS.md:77 should not be read as permission to extend the file. Consider adding "read-only" there.

Verified with no defect

Each item below was checked on this head.

  • Conflicts:
    • C1: the #release-gates anchor exists.
    • C2: the condition is the same in AGENTS.md, SKILL.md:54 and report-and-release.md:105, and is compatible with the change classification and presentation-quality.md.
    • C4: wording matches SKILL.md:32, make webfetch-diagnostic-report and diagnostic-check.
    • C5: the current-only authority is in audit-and-revision.md.
    • C6: no other "rerun only failures" wording remains in docs, and no failed-only option exists in the Web Fetch or Web Search code or scripts.
    • C7: consistent with docs/architecture.md:103-107 and web_fetch/README.md:28.
    • Matrix half of C3: browser_use/report.py:831-880 renders a registry-generated matrix whose cells link to result pages.
  • Rewordings: the profile inventory, Humanizer, build-speed protocol (compatible with evaluation-design.md:35), provider data (compatible with provider-contract.md:133-136), ImageGen, reference report and Codex CLI changes are all present. The remaining ImageGen and Codex strings are in frozen data only.
  • Owner defaults and top line: the merge rule is applied and never pushing to main stands. docs/releases.md:49 does not conflict. The top line is in AGENTS.md:1 and CONTRIBUTING.md:3. No files or tests were added.
  • Scope: "Part of #87" is correct, every conflict is listed, and no rules moved between files. The edited Markdown is not hash-bound by code, configs or tests, and no evidence or frozen evaluation/ file changed.
  • Over-design: none. The diff is 33 added and 29 removed lines of rule text.

Tests and CI

  • Both ruff gate commands: passed.
  • tests/test_documented_paths.py tests/test_readme_navigation.py tests/test_source_language_policy.py tests/test_web_fetch_owner_commands.py tests/test_skill_sources.py tests/test_golden_reports.py tests/test_runtime_entrypoints.py: 160 passed. Golden snapshots are unchanged.
  • tests/test_ci_gate.py: 40 passed, 4 failed. All 4 are known local macOS failures, and the total matches the PR's test plan.
  • CI on this head: all checks pass, including "Tests and static checks" and "Installation and packaging".

@lanyue-llk

Copy link
Copy Markdown
Contributor Author

Review round 1: all three findings fixed, none disputed.

  • 207b96ec: comparison rule. AGENTS.md and report-and-release.md now say Browser Use renders the matrix and every other track with more than two participants uses the baseline-and-multi-select explorer, which matches Web Fetch and Web Search. The "new track picks" sentence and the ownership clause are gone.
  • bd73f19a: editorial html-delivery.md now uses the same rebuild language rule as SKILL.md.
  • 49bc5248: the Web Fetch guide names the bound report-assets/report-changes.json as the source of the changes page and research/report-changes.json as the frozen fallback; new release records go in the bound asset.

Docs only. Lint passed; the doc and golden test targets gave 200 passed and 4 failed, all 4 in tests/test_ci_gate.py on the known local macOS failure list. Golden snapshots 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.

✅ Re-review complete · 49bc524

No findings in this incremental 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: 49bc5248. One P2 and one P3. Both are small wording fixes; the three round 1 findings are fixed.

Findings

P2: .agents/skills/benchmark-report/SKILL.md:52: C6 still gives two answers for an infrastructure failure

docs/metrics.md:31 and src/harness/web_fetch/README.md:293 now allow a repair run for a declared "infrastructure failure". SKILL.md:52, edited in this PR, still says "Rerun only calls whose inputs, provider route/version, runtime contract, or source validity changed". An outage changes none of those.

So an agent facing 20 outage failures with unchanged inputs may rerun under one rule and may not under the other. That is the C6 clash in a narrower form, and this PR introduced the wording that causes it.

Fix: in SKILL.md:52, say "Rerun only calls whose inputs, provider route/version, runtime contract, or source validity changed, or that hit a declared infrastructure failure."

P3: AGENTS.md:100, .agents/skills/benchmark-report/references/report-and-release.md:105, .agents/skills/benchmark-report/references/presentation-quality.md:36: C2 overlaps on layout changes

The first two run the pass over every top-level page when rendered layout changed. The proportional-checks table says a CSS or layout change visually inspects "only the affected page types". A CSS fix on a result detail page gets two different scopes. The cost of picking the wrong one is low, and AGENTS.md takes precedence, so this does not block.

Fix: in presentation-quality.md:36, drop "only" and add "plus the release reader pass when publishing".

Verified with no finding

  • Round 1 fixes: report-and-release.md:57 and AGENTS.md:87 match the code. browser_use/report.py renders the matrix with linked result cells, and Web Fetch and Web Search render the baseline-and-multi-select explorer. Limiting pass/fail grouping to Replay is accurate, because WCXB compares F1 differences rather than pass/fail. html-delivery.md:7 and web_fetch/README.md:32 are fixed.
  • C1: the link target #release-gates exists, and no viewport or theme requirement per release remains.
  • C3, C4, C7: no conflicting wording remains in AGENTS.md, CONTRIBUTING.md, docs/, the skills or the guides under src/. The diagnostic build and check entries are documented in docs/benchmarks.md:245 and web_fetch/README.md:222.
  • C5: audit-and-revision.md:68 names the current-only authority.
  • C8: the four rule sites agree, and resolve_report_language applies explicit, then saved, then default.
  • Reworded rows: all seven unreasonable rows are reworded, with no ImageGen, Codex CLI or "Study the supplied" left in the rule text.
  • Owner defaults: the merge rule and the frozen research/ rule are applied. docs/releases.md:49 does not conflict. No Markdown guide tells contributors to add review payloads to research/.
  • Top line: present in AGENTS.md and CONTRIBUTING.md.
  • Scope: "Part of #87" fits the deferred work listed in the body. The diff is 8 Markdown files, with no new file, test, code, evidence or snapshot change.

Test and CI results

  • Lint: both gate commands passed.
  • Local tests: documentation, skill, CI gate, entry point and golden targets gave 200 passed and 4 failed. All 4 are in tests/test_ci_gate.py and on the known macOS failure list. The golden tests passed.
  • CI on 49bc5248: "Tests and static checks", "Installation and packaging" and "Rendered reference and report checks" all passed.

@lanyue-llk

Copy link
Copy Markdown
Contributor Author

Review round 2 fixes:

  • P2, conflict 6 (SKILL.md): c67bd48 lists a declared infrastructure failure among the rerun causes, matching docs/metrics.md and the Web Fetch guide.
  • P3, conflict 2 (presentation-quality.md): 29656d4 drops "only" from the layout row and adds the release reader pass when publishing.

Nothing disputed. Both are wording changes, so no test was added. CI on the new head is the full-suite gate.

@lexmount-ocr lexmount-ocr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Re-review complete · 29656d4

No findings in this incremental 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 3

Head reviewed: 29656d46, base 35bed218 (current main). No P0, P1 or P2 defects found.

Finding

P3, docs/metrics.md:31 and src/harness/web_fetch/README.md:293. The declared causes for a repair run read as a closed list, "changed input, route or infrastructure failure", which is narrower than .agents/skills/benchmark-report/SKILL.md:52. That rule also allows reruns for a provider version, runtime contract or source validity change. Such a rerun is allowed by the skill, but the two guides would label it cumulative and diagnostic. The cost of the mismatch is low, so this does not block.

Suggested fix: in both places use "(changed input, provider route or version, runtime contract or source validity, or an infrastructure failure)".

What I verified

  • Scope: the diff touches 8 Markdown files and no code, tests, evidence, profiles or workflows. "Part of #87" matches, and the PR body's list of conflicts matches the diff.
  • C1: the CONTRIBUTING.md link resolves to the ## Release gates heading in report-and-release.md.
  • C2: AGENTS.md, SKILL.md, report-and-release.md and presentation-quality.md now agree on when the reader pass runs. Text-only and metadata-only changes stay exempt.
  • C3: AGENTS.md and report-and-release.md give Browser Use the matrix and other tracks the explorer. No "one fixed column" or pairwise wording conflicts remain.
  • C4: AGENTS.md now permits the diagnostic path that SKILL.md:32 describes, while still barring certified assembly and rankings.
  • C5: the exception points to the current-only section of audit-and-revision.md. CONTRIBUTING.md:30 covers refactoring only, so it does not conflict.
  • C6: apart from the P3 above, the guides, SKILL.md and audit-and-revision.md:35 agree. Retries for a better score stay forbidden.
  • C7: no "compact dataset definitions" ownership wording remains in AGENTS.md. It now matches AGENTS.md:14, CONTRIBUTING.md and docs/architecture.md:105.
  • C8: the rebuild language wording matches in all four files.
  • Rewordings: no ImageGen or Codex CLI references remain outside tests and JSON files. The provider example scope matches docs/provider-contract.md. The speed rule agrees with evaluation-design.md:35.
  • Owner defaults:
    • The merge rule has the requested wording, and never pushing to main stands.
    • The research/ freeze does not block new reviews, because Browser Use takes failure_cause_review.source_path and replay takes --review, so they can live outside Git.
    • research/browser-use-remediation.json (AGENTS.md:96) is a remediation record, not a review payload, so that rule still holds.
  • Over-design: the PR adds no abstraction, test or file. The top line is present in both AGENTS.md and CONTRIBUTING.md.

Tests and CI

  • Both ruff lint gate commands passed.
  • tests/test_documented_paths.py, test_readme_navigation.py, test_source_language_policy.py, test_web_fetch_owner_commands.py, test_skill_sources.py and test_golden_reports.py: 141 passed. Golden snapshots are unchanged.
  • I did not run the full suite locally.
  • CI on this head: all checks pass, including "Tests and static checks", "Installation and packaging" and "Rendered reference and report 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.

✅ Re-review complete · ed0b32c

No findings in this incremental review.

lanyue-llk added a commit that referenced this pull request Nov 4, 2026
lanyue-llk added a commit that referenced this pull request Nov 4, 2026
@lanyue-llk
lanyue-llk merged commit 2a20b48 into main Nov 4, 2026
7 checks passed
@lanyue-llk
lanyue-llk deleted the docs/resolve-spec-conflicts branch November 4, 2026 09:11
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