Skip to content

Commit 07059ab

Browse files
cdeustclaude
andcommitted
docs(changelog): record the ADR-1060 no-exception revision of the decision gate (#555)
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LSTGMnuSuUXWs7ZBofW1AW
1 parent 2d1b407 commit 07059ab

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,26 @@ adheres to [Semantic Versioning](https://semver.org/).
88

99
### Fixed
1010

11+
- **The decision gate no longer exempts a language, a test file or a file
12+
header (#555).** Owner ruling of 2026-09-10 on ADR-1060, no exception. On
13+
that day six lines of `///` rationale written into a `tests/*.rs` file
14+
passed `mcp_server/hooks/decision_gate.py` because each of its three
15+
exemptions sufficed alone: `//` and `/* */` languages were deferred "until
16+
measured", the path was under a test root, and the run sat before anything
17+
executable. All three are removed. `mcp_server/hooks/_decision_gate_lex.py`
18+
now reads `//` and `/* */` (`.rs .js .jsx .ts .tsx .go .java .c .h .cpp
19+
.hpp .cc .swift .kt .kts .cs .scala .m .mm .dart .php`), `--` (`.sql .lua
20+
.hs`) and `;` (`.el .clj .lisp`) through one scanner that tracks string
21+
literals and block comments, alongside the `#` family (`.py .sh .bash .zsh
22+
.rb .pl .toml .yaml .yml .r .cfg .ini`), so a `//` inside a string literal
23+
is never a comment; a Python comment after code on the same line no longer
24+
counts as a comment line. Unchanged: the eight-line threshold,
25+
grandfathering of blocks already in the file (only what the call introduces
26+
is judged, so the ten tracked files with a long header stay editable), the
27+
`source:` pointer line, fail-open on unreadable input and the explicit
28+
`CORTEX_DECISION_GATE=off` override. The refusal states the new scope. The
29+
measurement behind the header ruling is in the ADR's revision section.
30+
1131
- **`benchmarks/reproduce.sh --only` no longer accepts a selector that runs nothing.**
1232
`--only` was compared token for token against `longmemeval`, `locomo`, `beam`
1333
and `decision-ids`, while the script itself prints the artifact names

0 commit comments

Comments
 (0)