refactor(gates): rename the rtk-prefix opt-out marker to rtk-bare:

check-rtk-prefix now exempts a deliberately bare git command only when
the line carries `rtk-bare: <reason>`. The old literal `ADR-0023` is no
longer accepted: plugin content is consumed by other repos and must not
cite this repo's ADRs. The test pins the new marker and adds a case
showing the old string no longer exempts a line. gates.md and an
ADR-0023 addendum record the rename.

Refs: #177

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
This commit is contained in:
Defame1297andClaude Opus 5.5 committed 2026-12-06 18:16:08 +00:00
1 parent b5bb0314d1
commit 435ea59e93
5 files changed
+43 -25

No files matched your search

@@ -166,3 +166,12 @@ that was false about the `gitea-*` skills and a citation to a file that does not
A `check-rtk-prefix` pre-commit hook and `tests/test-check-rtk-prefix.sh` land with it; the test runs
the gate against the pre-sweep corpus on `main` and asserts it fails there, because a gate that only
passes on the fixed tree proves nothing about the drift it was written for.
## Addendum (2026-12-06): the opt-out marker is `rtk-bare:`
The clause-3 opt-out marker that `check-rtk-prefix` accepts is now `rtk-bare:`, written on the same
line as the bare command and followed by its reason (`# rtk-bare: the output is parsed`). It replaces
the literal string `ADR-0023`, which the gate no longer accepts. The cause is issue #177: plugin
content is consumed by other repos, and a marker that cites this repo's ADR leaks a reference those
consumers cannot follow. The decision itself is unchanged — the three clauses, the per-line scope and
the inline-reason requirement all stand; only the marker string moved.