Skip to content

arch.toml: add [docs] hygiene and fix what arch-check flags (#159) - #160

Merged
jirathip-k merged 2 commits into
stagingfrom
issue-159
Nov 29, 2026
Merged

jirathip-k merged 2 commits into
stagingfrom
issue-159

Conversation

@jirathip-k

@jirathip-k jirathip-k commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Closes #159

For humans

The docs check now also watches the command-line and config files, so docs that drift from them get flagged.
Old decision records that mention removed files, or files in other repos, still say the same thing, but those mentions are no longer formatted as code, so the architecture check stays green.

Changes

  • .gatekeeper/config.toml: new [docs] table with watch = crates/gatekeeper/src/cli.rs, crates/gatekeeper-engine/src/config.rs, crates/gatekeeper-engine/src/arch/config.rs, .gatekeeper/config.toml (per the amendment / decision q4285).
  • .drover/arch.toml: no [docs] table; [comments] policy = "strict" and its except are unchanged.
  • 19 files under docs/architecture/: removed the backticks from the 89 path mentions arch-check reported as "no such path" (removed files such as ci/cap.toml, scripts/budget.py, line-cap.sh, and paths in other repos). The words are the same.

Evidence (head 4f93444)

  • drover arch-check: exit 0, 1255 files, 0 violations.
  • ./.gatekeeper/run check --gate core/arch: exit 0, arch: 1255 files, 0 findings.
  • ./.gatekeeper/run check --gate core/arch --gate core/docs: exit 0, docs: 80 files, 0 findings.
  • cargo fmt --check: exit 0.
  • Fix round: CI's only red at 4f93444 was core/pr-body (the body named the older head bb1770e); every other core gate was ok. This body names the current head.

src/ net +0 (budget +10): config and docs only.

Decisions

  • Per the owner's decision q4285, watch lives in [docs] of .gatekeeper/config.toml (the docs-gate ADR's home), not in .drover/arch.toml, which gatekeeper's own core/arch gate refuses. The doctor-yellow AC moves to a drover issue.
  • I fixed the docs instead of narrowing paths or adding skip globs: all docs live in docs/architecture/, and a skip list of dead paths would keep growing.
  • I removed the backticks instead of rewriting or deleting the mentions, because the ADRs are dated records of past decisions.
  • watch adds nothing beyond the issue's list: gatekeeper-model has no config or cli file, and tests/**/config.toml fixtures are left out as the issue says.

@jirathip-k
jirathip-k merged commit a4781c7 into staging Nov 29, 2026
70 of 76 checks passed
@jirathip-k
jirathip-k deleted the issue-159 branch November 29, 2026 05:22
jirathip-k added a commit that referenced this pull request Nov 29, 2026
#161) (#163)

Old decision records show file names as code again, the way they were written.
No check reads file names in those records, so the earlier change only made the text harder to read. Lines that name removed files already say they were removed.

Closes #161 · 1 review round · src +0 · PASS 2330281
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant