Skip to content

BRC: add doc-correctness lens #2129

Closed as not planned
Closed as not planned

Description

@jwbron

Background

Postmortem #2125 on PR #2105 — 5+ of GHA's 14 blockers were doc/code mismatches the in-pipeline review missed entirely:

  • docs/guides/repo-config.md:300-305 claims the loader "infers" watch_files / checks — the merge layer never calls the infer_* helpers
  • docs/guides/repo-config.md:312 claims stale repo_settings: blocks "replace" defaults — _merge_repo_block actually leaf-merges
  • docs/guides/repo-config.md:347-355 rollback sed snippet has placeholders that aren't valid YAML
  • docs/guides/repo-config.md:120-128 YAML template has watch_files: nested inside build_commands: — copy-paste produces a schema error on first egg validate-config

Nothing in the lens roster checks docs. reviewer_code's scope-preamble explicitly excludes them on the documenter slice; reviewer_security / reviewer_concurrency don't cover docs either.

Proposal

Add a reviewer_docs role (or a directive in reviewer_code's criteria for the docs slice) that grep-checks:

  • Every code reference in docs resolves to current code
  • Every documented YAML parses against the schema
  • Every documented shell snippet runs cleanly in a dry-run
  • Every "inferred" / "auto-derived" / "the loader will X" claim has a callgraph hit

Acceptance

  • New role or scoped directive wired into BRC implement consensus
  • Catches doc/code drift in the docs slice of a PR before it reaches GHA

References

Activity

  1. added
    p2
    oneshot
    on May 5, 2026
  2. jwbron commented on Jun 10, 2026

    @jwbron
    OwnerAuthor

    Triage close (2026-06-10): counter to the current direction — #3066 is actively working to reduce unconditional specialist lens fan-out because it's one of the largest recurring token multipliers; adding a doc-correctness lens to every cycle goes the other way. If doc-correctness review is wanted, it should enter as a domain-gated lens under the #3066 model (only on diffs touching docs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    oneshotp2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions