feat(review): two CLAUDE.md rule keys at MINOR, the catalogue counts 17

This commit is contained in:
Kjell Tore Guttormsen 2026-11-02 13:53:24 +01:00
commit ed67526987
Signed by: ktg
SSH key fingerprint: SHA256:JakMjO6FTBBzN0Bhfj9saOoEjaFxlSdYuZQQpM/lF9Q
9 changed files with 99 additions and 11 deletions

View file

@ -1,7 +1,9 @@
// lib/review/rule-catalogue.mjs
// Canonical rule catalogue for /trekreview.
//
// 15 rule keys, 4-tier severity (matches brief contract).
// 17 rule keys, 4-tier severity (matches brief contract). Decision 98 added
// CLAUDE_MD_DEVIATION and CLAUDE_MD_STALE (both MINOR): a change that breaks, or
// makes untrue, a line of the target repo's tracked instruction files.
// llm-security 5-tier alignment is a v1.1 candidate.
//
// Ordre 5 (review_version 1.1) added the two engine keys: findings from Claude
@ -138,6 +140,21 @@ export const RULE_CATALOGUE = Object.freeze([
description: "A vulnerability reported by Claude Code's /security-review that no narrower rule_key covers.",
memory_route: null,
}),
// memory_route null: a lesson about the instruction files would feed back into them.
Object.freeze({
rule_key: 'CLAUDE_MD_DEVIATION',
severity: 'MINOR',
category: 'conformance',
description: "A change that breaks a line of the target repo's tracked CLAUDE.md, AGENTS.md or .claude/rules file.",
memory_route: null,
}),
Object.freeze({
rule_key: 'CLAUDE_MD_STALE',
severity: 'MINOR',
category: 'conformance',
description: 'A change that makes a line of such an instruction file untrue.',
memory_route: null,
}),
]);
export const MEMORY_ROUTES = Object.freeze(['check', 'rule']);