Skip to content

0017: Block a merge when docs-check finds a gap ​

Status: accepted

Date: 2026-12-05

PR: #41

Context ​

Decision 0001 started docs-check in shadow mode, so it reported gaps and blocked nothing. The backfill pull requests then closed each gap on main. PR Prep and the knowledge-manager agent now close gaps before a pull request opens.

Options considered ​

  • Let drift stay a warning and block only the other gaps: one rule for all gaps is simpler.

Decision ​

rollout in docs-map.yml is enforce. Each gap that docs-check finds fails its status and the Check the docs job. When the ruleset requires that status, the pull request cannot merge.

docs-check reads docs-map.yml from the base branch. So the pull request that makes this change still runs in shadow mode, and enforcement starts with the next pull request.

Consequences ​

A pull request with a doc gap cannot merge, so the docs on main cannot fall behind the code. The agents close gaps before a pull request opens, so the check seldom stops a pull request. To block a merge, the Production ruleset must require the docs-check status.

Code ​