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

+7 -5
View File
@@ -734,16 +734,18 @@ checking only a leading span flags neither, and still catches the ordinary
### The clause-3 opt-out
A command that is deliberately bare — because rtk rewrites the output the skill parses, or because
the command is interactive — is exempted by putting the literal string `ADR-0023` **on the same
line**: in a shell comment for a code line, in the cell text for a table row.
the command is interactive — is exempted by putting the marker `rtk-bare:` and its reason **on the
same line**: in a shell comment for a code line, in the cell text for a table row. The marker was
`ADR-0023` until issue #177; it is neutral because plugin content is consumed by other repos and must
not cite this repo's ADRs. The old string no longer exempts a line.
Per line, never per block. A fenced procedure routinely mixes `rtk git` steps with one deliberately
bare command (`git-remotes/references/push.md` does exactly that), and a block-level marker would
silently disarm every checked line around the marked one. The cost is a repeated `# bare per
ADR-0023` in the three blocks of `git-log-format.md` where every line is deliberately bare; that
silently disarm every checked line around the marked one. The cost is a repeated `# rtk-bare:` in
the three blocks of `git-log-format.md` where every line is deliberately bare; that
repetition is the price of the marked line being the only line the marker speaks for.
The marker is a plain substring match, so a line that mentions `ADR-0023` for an unrelated reason is
The marker is a plain substring match, so a line that mentions `rtk-bare:` for an unrelated reason is
also exempt. Accepted deliberately: the marker records an author's opt-out, it is not a security
boundary, and a stricter form would only move the same trust to a different string.