@mrciphersmith/keryx 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/README.md +4 -1
  2. package/dist/cli.js +8451 -4817
  3. package/dist/core.js +11700 -11374
  4. package/package.json +1 -1
  5. package/src/gdskills/bundled/agents/go-code-auditor.md +1 -1
  6. package/src/gdskills/bundled/agents/python-code-auditor.md +1 -1
  7. package/src/gdskills/bundled/install-manifest.json +271 -4
  8. package/src/gdskills/bundled/rules/core/model-selection.mdc +51 -0
  9. package/src/gdskills/bundled/skills/review/review-jev-rules/SKILL.md +267 -0
  10. package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.detail.md +26 -0
  11. package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.md +1 -1
  12. package/src/gdskills/bundled/stacks/angular/agent-refs.json +4 -0
  13. package/src/gdskills/bundled/stacks/angular/governance/eval.json +1751 -0
  14. package/src/gdskills/bundled/stacks/angular/governance/scout.json +32 -0
  15. package/src/gdskills/bundled/stacks/angular/pack.json +55 -0
  16. package/src/gdskills/bundled/stacks/angular/rules/coding-style.mdc +82 -0
  17. package/src/gdskills/bundled/stacks/angular/rules/patterns.mdc +84 -0
  18. package/src/gdskills/bundled/stacks/angular/rules/security.mdc +70 -0
  19. package/src/gdskills/bundled/stacks/angular/rules/testing.mdc +73 -0
  20. package/src/gdskills/bundled/stacks/angular/skills/angular-build-fix/SKILL.md +127 -0
  21. package/src/gdskills/bundled/stacks/angular/skills/angular-build-fix/evals.json +72 -0
  22. package/src/gdskills/bundled/stacks/angular/skills/angular-code-review/SKILL.md +98 -0
  23. package/src/gdskills/bundled/stacks/angular/skills/angular-code-review/evals.json +73 -0
  24. package/src/gdskills/bundled/stacks/angular/skills/angular-implementation/SKILL.md +112 -0
  25. package/src/gdskills/bundled/stacks/angular/skills/angular-implementation/evals.json +74 -0
  26. package/src/gdskills/bundled/stacks/angular/skills/angular-testing/SKILL.md +102 -0
  27. package/src/gdskills/bundled/stacks/angular/skills/angular-testing/evals.json +71 -0
  28. package/src/gdskills/bundled/stacks/mobx/agent-refs.json +4 -0
  29. package/src/gdskills/bundled/stacks/mobx/governance/eval.json +904 -0
  30. package/src/gdskills/bundled/stacks/mobx/governance/scout.json +18 -0
  31. package/src/gdskills/bundled/stacks/mobx/pack.json +28 -0
  32. package/src/gdskills/bundled/stacks/mobx/rules/coding-style.mdc +91 -0
  33. package/src/gdskills/bundled/stacks/mobx/rules/patterns.mdc +122 -0
  34. package/src/gdskills/bundled/stacks/mobx/rules/security.mdc +56 -0
  35. package/src/gdskills/bundled/stacks/mobx/rules/testing.mdc +63 -0
  36. package/src/gdskills/bundled/stacks/mobx/skills/mobx-observable-testing/SKILL.md +124 -0
  37. package/src/gdskills/bundled/stacks/mobx/skills/mobx-observable-testing/evals.json +73 -0
  38. package/src/gdskills/bundled/stacks/mobx/skills/mobx-store-implementation/SKILL.md +149 -0
  39. package/src/gdskills/bundled/stacks/mobx/skills/mobx-store-implementation/evals.json +74 -0
  40. package/src/gdskills/bundled/stacks/nestjs/agent-refs.json +4 -0
  41. package/src/gdskills/bundled/stacks/nestjs/governance/eval.json +1308 -0
  42. package/src/gdskills/bundled/stacks/nestjs/governance/scout.json +34 -0
  43. package/src/gdskills/bundled/stacks/nestjs/pack.json +53 -0
  44. package/src/gdskills/bundled/stacks/nestjs/rules/coding-style.mdc +70 -0
  45. package/src/gdskills/bundled/stacks/nestjs/rules/patterns.mdc +83 -0
  46. package/src/gdskills/bundled/stacks/nestjs/rules/security.mdc +73 -0
  47. package/src/gdskills/bundled/stacks/nestjs/rules/testing.mdc +69 -0
  48. package/src/gdskills/bundled/stacks/nestjs/skills/nestjs-build-fix/SKILL.md +157 -0
  49. package/src/gdskills/bundled/stacks/nestjs/skills/nestjs-build-fix/evals.json +70 -0
  50. package/src/gdskills/bundled/stacks/nestjs/skills/nestjs-implementation/SKILL.md +129 -0
  51. package/src/gdskills/bundled/stacks/nestjs/skills/nestjs-implementation/evals.json +71 -0
  52. package/src/gdskills/bundled/stacks/nestjs/skills/nestjs-testing/SKILL.md +143 -0
  53. package/src/gdskills/bundled/stacks/nestjs/skills/nestjs-testing/evals.json +69 -0
  54. package/src/gdskills/bundled/stacks/nextjs-nuxt/agent-refs.json +4 -0
  55. package/src/gdskills/bundled/stacks/nextjs-nuxt/governance/eval.json +2413 -0
  56. package/src/gdskills/bundled/stacks/nextjs-nuxt/governance/scout.json +42 -0
  57. package/src/gdskills/bundled/stacks/nextjs-nuxt/pack.json +42 -0
  58. package/src/gdskills/bundled/stacks/nextjs-nuxt/rules/coding-style.mdc +69 -0
  59. package/src/gdskills/bundled/stacks/nextjs-nuxt/rules/patterns.mdc +88 -0
  60. package/src/gdskills/bundled/stacks/nextjs-nuxt/rules/security.mdc +72 -0
  61. package/src/gdskills/bundled/stacks/nextjs-nuxt/rules/testing.mdc +64 -0
  62. package/src/gdskills/bundled/stacks/nextjs-nuxt/skills/nextjs-nuxt-build-fix/SKILL.md +147 -0
  63. package/src/gdskills/bundled/stacks/nextjs-nuxt/skills/nextjs-nuxt-build-fix/evals.json +75 -0
  64. package/src/gdskills/bundled/stacks/nextjs-nuxt/skills/nextjs-nuxt-code-review/SKILL.md +118 -0
  65. package/src/gdskills/bundled/stacks/nextjs-nuxt/skills/nextjs-nuxt-code-review/evals.json +76 -0
  66. package/src/gdskills/bundled/stacks/nextjs-nuxt/skills/nextjs-nuxt-implementation/SKILL.md +135 -0
  67. package/src/gdskills/bundled/stacks/nextjs-nuxt/skills/nextjs-nuxt-implementation/evals.json +78 -0
  68. package/src/gdskills/bundled/stacks/nextjs-nuxt/skills/nextjs-nuxt-testing/SKILL.md +116 -0
  69. package/src/gdskills/bundled/stacks/nextjs-nuxt/skills/nextjs-nuxt-testing/evals.json +75 -0
  70. package/src/gdskills/bundled/stacks/nextjs-nuxt/skills/nextjs-nuxt-upgrade-migration/SKILL.md +134 -0
  71. package/src/gdskills/bundled/stacks/nextjs-nuxt/skills/nextjs-nuxt-upgrade-migration/evals.json +76 -0
  72. package/src/gdskills/bundled/stacks/vue/agent-refs.json +4 -0
  73. package/src/gdskills/bundled/stacks/vue/governance/eval.json +2215 -0
  74. package/src/gdskills/bundled/stacks/vue/governance/scout.json +42 -0
  75. package/src/gdskills/bundled/stacks/vue/pack.json +42 -0
  76. package/src/gdskills/bundled/stacks/vue/rules/coding-style.mdc +73 -0
  77. package/src/gdskills/bundled/stacks/vue/rules/patterns.mdc +84 -0
  78. package/src/gdskills/bundled/stacks/vue/rules/security.mdc +60 -0
  79. package/src/gdskills/bundled/stacks/vue/rules/testing.mdc +69 -0
  80. package/src/gdskills/bundled/stacks/vue/skills/vue-build-fix/SKILL.md +137 -0
  81. package/src/gdskills/bundled/stacks/vue/skills/vue-build-fix/evals.json +72 -0
  82. package/src/gdskills/bundled/stacks/vue/skills/vue-code-review/SKILL.md +120 -0
  83. package/src/gdskills/bundled/stacks/vue/skills/vue-code-review/evals.json +71 -0
  84. package/src/gdskills/bundled/stacks/vue/skills/vue-implementation/SKILL.md +122 -0
  85. package/src/gdskills/bundled/stacks/vue/skills/vue-implementation/evals.json +72 -0
  86. package/src/gdskills/bundled/stacks/vue/skills/vue-testing/SKILL.md +115 -0
  87. package/src/gdskills/bundled/stacks/vue/skills/vue-testing/evals.json +72 -0
  88. package/src/gdskills/bundled/stacks/vue/skills/vue2-to-vue3-migration/SKILL.md +135 -0
  89. package/src/gdskills/bundled/stacks/vue/skills/vue2-to-vue3-migration/evals.json +71 -0
@@ -0,0 +1,267 @@
1
+ ---
2
+ name: review-jev-rules
3
+ model_tier: light
4
+ description: |
5
+ Use when: an ADDITIONAL, machine-scored pass is wanted over every changed hunk against
6
+ every applicable project rule clause — never replacing any other reviewer. Dispatched
7
+ by review-orchestrator in Wave B, via the CLI (`keryx review jev-rules`), when
8
+ `review.jev.rules: true` in .metaproject/tasks.config.json and a Jev/OpenRouter
9
+ credential is resolvable. It is not an LLM sub-agent: there is nothing to dispatch
10
+ through a platform-native agent mechanism, and no prose is generated by a model —
11
+ Jev only answers a `noul` violation probability per (hunk, rule clause) pair; keryx
12
+ writes every word of every finding.
13
+ NOT for: judgement calls a rule clause does not state (logic bugs, architecture,
14
+ security, performance — those stay with the reviewers that already cover them), and
15
+ not a substitute for reading the rules yourself. A finding here says a hunk likely
16
+ contradicts a clause of a rule this project already wrote down; it says nothing about
17
+ code that violates no documented rule.
18
+ triggers:
19
+ - "jev rules"
20
+ - "rule check"
21
+ - "review --jev-rules"
22
+ metadata:
23
+ author: "MrCipherSmith"
24
+ version: "1.0.0"
25
+ category: "review"
26
+ compatible_harnesses: "cursor,codex,zed,opencode,claude"
27
+ engine: "jev"
28
+ origin: "authored"
29
+ license: "MIT"
30
+ ---
31
+
32
+ # Review — Jev Rules (deterministic project-rule conformance)
33
+
34
+ An ADDITIONAL orchestrator reviewer, flow 330. It is a **keryx program**, not an
35
+ LLM sub-agent: `review-orchestrator` never dispatches a platform-native agent
36
+ for it, it runs `keryx review jev-rules` and reads the `--json` output. Every
37
+ finding is composed by keryx; Jev ("System One" on OpenRouter) supplies only a
38
+ `noul` probability per `(hunk, rule clause)` pair — it never writes prose, and
39
+ nothing it returns is quoted verbatim into a finding except the clause text
40
+ keryx already had.
41
+
42
+ ---
43
+
44
+ ## What it does
45
+
46
+ 1. Discovers rule sources deterministically (`src/review/jev-rules.ts`'s
47
+ module header names the exact scope): every file under
48
+ `.metaproject/rules/**` and `rules/**`, every project-skill or installed
49
+ gdskill whose name or `metadata.category` marks it a coding convention, and
50
+ anything named by `--rules <paths>`. **`--rules` bypass is scoped to ONE
51
+ FILE**: an entry naming a single document bypasses the category filter
52
+ below outright; an entry naming a DIRECTORY is walked and its files are
53
+ filtered exactly like auto-discovery — asking for a whole directory is not
54
+ the same as naming one document, and the whole point of the filter is lost
55
+ if it is.
56
+ 2. **Category filter, before clause extraction.** Each discovered source
57
+ (auto-discovered, or a file found by walking a `--rules` DIRECTORY — never
58
+ a `--rules` entry naming that ONE file explicitly) is classified
59
+ `code`/`process`/`docs` — explicit frontmatter first (`applies_to:
60
+ code|process|docs`, or `metadata.category`), else a documented
61
+ filename/title heuristic (`PROCESS_RULE_HEURISTIC_TERMS`: `commit`, `git`,
62
+ `tdd`, `workflow`, `definition-of-done`, `documentation`, `requirements`,
63
+ `plan`, `prompting`, `subagent`, `skill`, `jobs`, `orchestrat`,
64
+ `review-process`, `release`). A `process`/`docs` source never reaches
65
+ clause extraction at all — excluded, and reported with its reason under
66
+ `excludedSources`.
67
+ 3. Splits each remaining rule document into clauses with
68
+ `extractReferenceClauses` (the same deterministic splitter `review
69
+ conform` uses), drops authoring-template scaffolding
70
+ (`isPlaceholderClauseText`: an unfilled `[x] <criterion> — verified by
71
+ <test>` checklist line, text dominated by `<...>` placeholders, or a bare
72
+ code-fence line — never a real clause, dropped BEFORE tagging so it costs
73
+ nothing), then TAGS every remaining clause `state_kind:
74
+ "pr"|"report"|"hunk"` + `checkable` by REUSING `review conform`'s own
75
+ `applyClauseTags`/`buildClauseTagQuestions`/`clauseTagFromChoice` — an
76
+ explicit `[state:hunk]`/`[not-checkable: ...]` marker on the clause text
77
+ when the rule author wrote one, else one Jev `choice` call per doc's
78
+ untagged clauses (never per clause), cached by the doc's content hash at
79
+ `.metaproject/data/review-jev-rules/clause-tags.json` (a jev-rules-
80
+ specific cache file — `review conform` and `review-jev-rules` never race
81
+ on the same one). Only a clause tagged `state_kind: "hunk"` and
82
+ `checkable` is ever paired against a hunk; anything else is dropped and
83
+ reported under `droppedClauses`.
84
+ 4. Decides, per `(rule, changed file)` pair, whether an applicable clause
85
+ applies — by declared path globs (`metadata.paths`) and/or
86
+ `metadata.stack_requires`, failing toward inclusion exactly like `keryx
87
+ review stack`/`scope.ts` already do, THEN by file kind: a docs hunk
88
+ (`.md`/`.mdx`/`.txt`) pairs only with a `docs`-categorised source or a
89
+ clause explicitly tagged `[docs-applicable]`; a code source never pairs
90
+ with a docs hunk, and vice versa (`clauseFileKindApplicability`).
91
+ 5. Takes every changed hunk from `keryx review scope` (mechanical bulk
92
+ already dropped) and asks Jev, per applicable `(hunk, hunk-checkable
93
+ clause)` pair, **one question**: "does this hunk VIOLATE this clause?" —
94
+ batched under the vendor's 64k token budget, capped at `--max-calls`
95
+ (default 150). The budget is spread FAIRLY: hunks are ranked code, then
96
+ tests, then docs, and pairs are allocated round-robin across hunks rather
97
+ than draining the cap on the first hunk in diff order — every selection,
98
+ every drop, and per-hunk coverage (`selection.hunkCoverage`, how many
99
+ hunks were reached vs. never reached) is reported, never silent.
100
+ 6. Synthesizes findings deterministically: `problem` quotes the clause,
101
+ `impact` is the rule's own stated rationale (if it has a `## Rationale`/
102
+ `## Why` section) or a fixed template, `suggested_fix` names the clause to
103
+ bring the hunk in line with, `evidence` is the hunk location(s) + Jev's
104
+ probability. Severity is capped at `minor` unless the rule itself declares
105
+ a higher one (`[severity: major]` on the clause). One finding per
106
+ `(clause, file)`, deduped across every hunk of that file with a hunk list.
107
+
108
+ **Why steps 2-5's filters exist:** a live check of this repository's own
109
+ 41-doc `.metaproject/rules/**` corpus against a merged PR hand-labelled ~1/10
110
+ findings correct. Two causes, both fixed here: (a) process/agent-behaviour
111
+ rules (commit-message formatting, TDD workflow, an agent's own prompting
112
+ standard) paired against a code hunk they were never meant to describe,
113
+ because the corpus declares no `metadata.paths`/`stack_requires` and
114
+ applicability fails open to "applies everywhere" — the category and
115
+ file-kind filters (steps 2 and 4); (b) a re-measurement then found the
116
+ `--rules` bypass defeating the category filter for an entire directory, and
117
+ the whole `--max-calls` budget landing on a single docs hunk while no code
118
+ hunk was ever scored — the scoped bypass and fair round-robin budget (steps
119
+ 1 and 5). All four are cheap, deterministic, and applied BEFORE any
120
+ violation-scoring Jev call, so they cut cost as well as noise. See
121
+ `.metaproject/flows/330-*/journal.md` for the full before/after numbers.
122
+
123
+ ---
124
+
125
+ ## Input Contract
126
+
127
+ Not dispatched with a prompt — invoked as a CLI command:
128
+
129
+ ```text
130
+ keryx review jev-rules (--diff <ref> | --pr <n> | --scope <scope.json>)
131
+ [--rules <paths>] [--max-calls <n>] [--threshold <0..1>]
132
+ [--repo <owner/repo>] [--model <jev-1.13|jev-latest>]
133
+ [--fixtures <dir>] [--json]
134
+ ```
135
+
136
+ `review-orchestrator` passes `--scope <scope.json>` — the same `keryx review
137
+ scope --json` file every other reviewer's dispatch already reads — so this
138
+ reviewer checks exactly the same hunks, with the same mechanical-bulk drops,
139
+ as everyone else in the round.
140
+
141
+ ---
142
+
143
+ ## Opt-in and privacy
144
+
145
+ Refuses before any read or network call unless `.metaproject/tasks.config.json`
146
+ declares:
147
+
148
+ ```json
149
+ { "review": { "jev": { "rules": true } } }
150
+ ```
151
+
152
+ Every hunk, every rule-clause sent for violation scoring, and every clause
153
+ sent for tagging is redacted first through `src/security/service.ts` — the
154
+ same floor `review conform` and `review ci-triage` already apply. No cache or
155
+ output file stores a credential. Two caches, both gitignored and mode `0600`
156
+ under `.metaproject/data/review-jev-rules/`:
157
+
158
+ - `violation-cache.json`, keyed on the clause text and hunk location, so a
159
+ re-run over unchanged hunks and unchanged rules costs zero additional Jev
160
+ calls.
161
+ - `clause-tags.json`, keyed on the rule doc's own content hash — REUSING
162
+ `review conform`'s own clause-tagging cache module
163
+ (`src/review/conform-tag-cache.ts`) at this jev-rules-specific path, so a
164
+ re-run against a DIFFERENT diff but the SAME rule corpus costs zero
165
+ additional tagging calls even when the hunks (and so the violation cache)
166
+ miss.
167
+
168
+ ---
169
+
170
+ ## Output Contract
171
+
172
+ Emits a `REVIEW_RESULT`-shaped object matching
173
+ `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`
174
+ — `status`, `reviewer: "review-jev-rules"`, `summary`, `findings`, `stats`,
175
+ plus `tokens` (with `taggingCalls`/`violationCalls` counted separately),
176
+ `selection` (`droppedClauses`'s count, and `hunkCoverage` — one
177
+ `{path, applicablePairs, selectedPairs}` per hunk with something to check,
178
+ plus `hunksWithPairs`/`hunksReached`/`hunksNeverReached`), `ruleSources`
179
+ (each with its `category`), `excludedSources` (category-filtered sources
180
+ with their reason), `droppedClauses` (tag-filtered `(ruleId, clauseId)`
181
+ pairs with their reason), and `droppedPlaceholderClauses`
182
+ (authoring-template clauses dropped before tagging, with their reason) —
183
+ under `--json`. `summary` names how many hunks the budget never reached in
184
+ plain text. Its findings merge into the consolidated array exactly like any
185
+ other reviewer's: same Quality Gate, same dedup, same Wave C verification.
186
+
187
+ ---
188
+
189
+ ## Orchestrator integration
190
+
191
+ - `keryx review reviewers --json` lists it under `bundled` with
192
+ `"engine": "jev"`.
193
+ - `review-orchestrator` dispatches it in **Wave B**, alongside the domain/
194
+ convention reviewers, when the opt-in is on and a Jev/OpenRouter credential
195
+ resolves (`resolveJevApiKeyResolution`). When either is false it is
196
+ **skipped with the stated reason**, recorded in `Skipped reviewers` —
197
+ never silently absent.
198
+ - It is **ADDITIONAL**: it never replaces `review-style`, the convention
199
+ reviewers, or any other pass. A rule clause this reviewer flags may also be
200
+ the exact concern a domain reviewer raises independently; the dedup pass
201
+ (by `dedupe_key`/`(file, quote, problem)`) merges the two rather than
202
+ double-counting.
203
+
204
+ ---
205
+
206
+ ### Shared laws (every reviewer)
207
+
208
+ 1. **A claim of runtime harm with no reproducible path is `info`.** If you cannot
209
+ name the input, call, or condition that reaches the code, you have an
210
+ observation, not a finding. Report it as `info` and say what would settle it.
211
+ 2. **Never flag the theoretical.** The path you describe must exist in the code
212
+ under review. Do not report a safe API because it could be misused, or a
213
+ pattern because it is often wrong elsewhere.
214
+ 3. **One finding per class, not one per occurrence.** When the same shape appears
215
+ at several sites, report it once and list every site. Ten findings that are one
216
+ finding hide the other nine problems.
217
+
218
+ This reviewer already satisfies all three by construction: `evidence` always
219
+ names the hunk and quotes it (never an unreproducible claim), a finding is
220
+ only synthesized when the hunk itself is checked against the clause (never a
221
+ theoretical pattern), and `synthesizeFindingsFromViolations` dedupes by
222
+ `(clause, file)` with every hunk listed, never one finding per hunk.
223
+
224
+ ---
225
+
226
+ ## Red Flags
227
+
228
+ | Rationalization | Why it is wrong |
229
+ |---|---|
230
+ | "Jev said 0.9, so this is definitely a violation" | A `noul` score is a probability, not a verdict — severity stays capped at `minor` unless the rule itself declares higher, precisely because Jev alone is not authoritative |
231
+ | "This rule clause doesn't really describe code, but the pair matched anyway" | Applicability defaults to "applies everywhere" when a rule declares no path/stack restriction — the clause-kind filter (step 3), the category filter (step 2), and the file-kind gate (step 4) catch most of this before scoring, but a `state_kind: "hunk"` clause on an off-topic rule can still pass through; that is a property of the rule corpus, not a defect in this reviewer |
232
+ | "No findings means the diff is clean" | `--max-calls` bounds how many pairs are checked; a capped run reports `selection.droppedPairs`/`hunksNeverReached` for exactly this reason — read the selection stats before treating silence as clean |
233
+ | "A rule wasn't checked and I don't know why" | Read `excludedSources` (category filter, at discovery), `droppedClauses` (tag filter, per clause), and `droppedPlaceholderClauses` (template scaffolding, per clause) before assuming a rule was silently skipped — each names the exact reason |
234
+ | "I passed `--rules` at a whole rule directory, so every file in it was checked" | Only a `--rules` entry naming ONE file bypasses the category filter; a directory's files are filtered exactly like auto-discovery — check `excludedSources` |
235
+ | "I'll skip the opt-in check since I trust this project" | The opt-in and credential gates exist because hunk and rule-clause text leaves the machine; skipping them is skipping consent, not a shortcut |
236
+
237
+ ---
238
+
239
+ ## Verification
240
+
241
+ Before trusting a run's findings:
242
+
243
+ 1. Read `selection.droppedPairs`/`selection.notApplicable`/
244
+ `selection.droppedClauses`/`selection.hunkCoverage` in the `--json`
245
+ output — a capped, narrowly-applicable, or tag-filtered run covered less
246
+ than "every changed hunk against every applicable clause", and
247
+ `hunksNeverReached` says exactly how many hunks the budget never got to.
248
+ 2. Read `excludedSources` — a process/meta rule doc excluded by the category
249
+ filter is reported by name and reason, never silently absent from
250
+ `ruleSources`.
251
+ 3. Spot-check a handful of findings against the actual hunk: does the quoted
252
+ line and the cited clause text support the claim? Jev's probability is not
253
+ evidence a human can inspect; the quote and the clause text are.
254
+ 4. Confirm every finding carries `reviewer: "review-jev-rules"` and a
255
+ `dedupe_key` — both are required for the orchestrator's Quality Gate and
256
+ Wave C verification to route it correctly.
257
+
258
+ ---
259
+
260
+ ## Scope Boundaries
261
+
262
+ | Concern | This skill | Use instead |
263
+ |---------|------------|-------------|
264
+ | A hunk contradicts a documented project rule clause | YES | — |
265
+ | Logic bugs, architecture, security, performance not named by any rule | NO | the matching domain reviewer |
266
+ | Judging whether a reported finding is real | NO | `review-verifier` |
267
+ | Writing or maintaining the rules themselves | NO | a human, or `rules/core/*.mdc` directly |
@@ -43,3 +43,29 @@ suppressing it would trade real coverage for tidiness. Record the drift in
43
43
  `review_context` and name it once in the report, so the next person knows the
44
44
  profile is due a re-read. Never file it as a finding against the code under
45
45
  review: it is a fact about the review, not about the diff.
46
+
47
+ ## CLI-engine reviewers — dispatched as a command, not a sub-agent
48
+
49
+ `review-jev-rules` (flow 330) is an ADDITIONAL reviewer, never replacing any
50
+ other, and its dispatch mechanism differs from every reviewer named in
51
+ SKILL.md's Routing Table: there is no platform-native agent to invoke,
52
+ because it is a deterministic **keryx program**. Run it with `keryx review
53
+ jev-rules --scope <scope.json> --json` — the SAME `scope.json` every other
54
+ Wave A/B reviewer's dispatch already reads, so it checks exactly the same
55
+ hunks. Read its `--json` output as a `REVIEW_RESULT` and merge its `findings`
56
+ into the consolidated array exactly like a sub-agent reviewer's: same
57
+ Sub-Agent Report Quality Gate, same dedup, same Wave C verification.
58
+
59
+ Gate it BEFORE running the command, not after: skip it — recorded in `Skipped
60
+ reviewers` with the reason, never silently absent — when `review.jev.rules`
61
+ is not `true` in `.metaproject/tasks.config.json`, or when no Jev/OpenRouter
62
+ credential is resolvable. Either gate failing means `keryx review jev-rules`
63
+ itself would refuse before any read or network call, so checking first saves
64
+ a doomed dispatch.
65
+
66
+ `keryx review reviewers --json` marks a CLI-engine reviewer with
67
+ `"engine": "jev"` on its `bundled` entry — the field's presence, not its
68
+ absence, is what distinguishes it from the default (an LLM sub-agent
69
+ dispatch). A future engine-backed reviewer follows the same pattern: gate on
70
+ its own opt-in and reachability, dispatch as a command, merge its `--json`
71
+ output the same way.
@@ -1177,7 +1177,7 @@ whoever reads the merge commit a year later reads the body.
1177
1177
  Dispatch selected reviewers in parallel when independent. Use waves when token budget is tight or when one reviewer needs another result:
1178
1178
 
1179
1179
  1. Wave A - core correctness/risk reviewers: logic, architecture, security/highload when selected.
1180
- 2. Wave B - domain reviewers: frontend/backend/testing/convention reviewers filtered to relevant files.
1180
+ 2. Wave B - domain reviewers: frontend/backend/testing/convention reviewers filtered to relevant files. `review-jev-rules` (flow 330) also runs here, CLI-engine not sub-agent — `SKILL.detail.md` § "CLI-engine reviewers".
1181
1181
  3. Wave C - **verification**: `review-verifier` over the consolidated findings, when blockers/majors
1182
1182
  exist, `--verify` is set, or the PR is high-risk. See below.
1183
1183
 
@@ -0,0 +1,4 @@
1
+ {
2
+ "agents": [],
3
+ "note": "Demoted from stable (R1 review round 2, PR #719, N-M1): a realism sweep found angular-implementation's and angular-testing's positive/negative trigger prompts were trigger-prefix near-copies or scorer-avoidant phrasing rather than genuinely independent realistic requests. Rewritten with natural phrasing per the reviewer's own probes and NOT iterated against the router. Honest result: angular-implementation's trigger accuracy collapsed (TP 1/7) and angular-testing picked up a real false positive (an e2e/staging negative it should not select) -- both accepted as the true routing signal rather than polished back to a passing score. angular-build-fix and angular-code-review still pass cleanly. A pack needs every skill to pass, so angular reverts to stability: \"experimental\"; the generated agent-code-auditor/build-fixer pair is removed."
4
+ }