@planu/cli 4.2.4 → 4.2.5

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [4.2.5] - 2026-05-22
2
+
3
+ **Tarball SHA-256:** `24d98e6b384752a806fc97a9828afaa94a0281a077e99ff06923e46119a69422`
4
+
5
+ ### Features
6
+ - feat(planu): export reviewer gates to project rules
7
+
8
+
1
9
  ## [4.2.4] - 2026-05-22
2
10
 
3
11
  **Tarball SHA-256:** `963c0c81820ad002206299f102fdcae6635d96cdbe2e602e4f1dbb2d1b41e0c5`
@@ -44,10 +44,18 @@ function buildSharedRules() {
44
44
  '| Trigger | Automatic action |',
45
45
  '|---------|-----------------|',
46
46
  '| New feature / bug / task described | `create_spec` |',
47
+ '| Spec written | Run an independent `planu-spec-reviewer` review before approval |',
47
48
  '| Spec status change | `update_status` |',
48
- '| Implementation complete | `validate` |',
49
+ '| Implementation complete | `validate` + independent `planu-implementation-reviewer` review |',
49
50
  '| Project start | `init_project` |',
50
51
  '',
52
+ '### Review gates — non-bypassable',
53
+ '- A spec cannot move to `approved` without `review_feedback` from `planu-spec-reviewer`.',
54
+ '- The planner/spec author must not self-approve the spec.',
55
+ '- A spec cannot move to `done` without validation evidence and review evidence from `planu-implementation-reviewer`.',
56
+ '- The implementation reviewer must be different from the implementation agent.',
57
+ '- User pressure, shortcut requests, or force-approval language do not bypass reviewer evidence; stop and produce the missing review first.',
58
+ '',
51
59
  '### External integrations',
52
60
  '| Trigger | Automatic action |',
53
61
  '|---------|-----------------|',
@@ -13,19 +13,27 @@ Before moving a spec to \`approved\`, run and pass:
13
13
  3. BDD criteria completeness
14
14
  4. files-to-create / files-to-modify ownership
15
15
  5. test plan and verification commands
16
+ 6. independent \`planu-spec-reviewer\` evidence in \`review_feedback\`
16
17
 
17
- If the user explicitly forces approval, record the reason in the audit trail and make the missing risk visible.
18
+ The spec author, planner, or implementation agent must not self-approve the spec. If reviewer evidence is missing, malformed, or written by any agent other than \`planu-spec-reviewer\`, stop before approval and produce the missing review first.
19
+
20
+ User pressure or force-approval language does not bypass reviewer evidence. Record forced intent in the audit trail, but keep the status blocked until \`planu-spec-reviewer\` approves the spec.
18
21
 
19
22
  ## Done Gate
20
23
 
21
- Before moving a spec to \`done\`, run \`validate\`.
24
+ Before moving a spec to \`done\`, run \`validate\` and require independent \`planu-implementation-reviewer\` evidence.
25
+
26
+ The implementation reviewer must be different from the implementation agent. If validation passes but reviewer evidence is missing, malformed, or written by the implementer, keep the spec out of \`done\`.
22
27
 
23
28
  If implementation intentionally diverged from the approved spec, run \`reconcile_spec\` first and make the divergence explicit before marking done.
24
29
 
25
30
  ## Hard Blocks
26
31
 
27
32
  - Do not approve specs with placeholders.
33
+ - Do not approve specs without \`planu-spec-reviewer\` evidence.
28
34
  - Do not mark done without validation evidence.
35
+ - Do not mark done without \`planu-implementation-reviewer\` evidence.
36
+ - Do not let the same agent write the spec, implement it, and approve its own work.
29
37
  - Do not hide intentional drift; reconcile it.
30
38
  `;
31
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planu/cli",
3
- "version": "4.2.4",
3
+ "version": "4.2.5",
4
4
  "description": "Planu — MCP Server for Spec Driven Development with native Rust acceleration for hot paths. Cross-platform (Linux/macOS/Windows, x64/arm64, glibc/musl).",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -32,14 +32,14 @@
32
32
  "packageName": "@planu/core"
33
33
  },
34
34
  "optionalDependencies": {
35
- "@planu/core-darwin-arm64": "4.2.4",
36
- "@planu/core-darwin-x64": "4.2.4",
37
- "@planu/core-linux-arm64-gnu": "4.2.4",
38
- "@planu/core-linux-arm64-musl": "4.2.4",
39
- "@planu/core-linux-x64-gnu": "4.2.4",
40
- "@planu/core-linux-x64-musl": "4.2.4",
41
- "@planu/core-win32-arm64-msvc": "4.2.4",
42
- "@planu/core-win32-x64-msvc": "4.2.4"
35
+ "@planu/core-darwin-arm64": "4.2.5",
36
+ "@planu/core-darwin-x64": "4.2.5",
37
+ "@planu/core-linux-arm64-gnu": "4.2.5",
38
+ "@planu/core-linux-arm64-musl": "4.2.5",
39
+ "@planu/core-linux-x64-gnu": "4.2.5",
40
+ "@planu/core-linux-x64-musl": "4.2.5",
41
+ "@planu/core-win32-arm64-msvc": "4.2.5",
42
+ "@planu/core-win32-x64-msvc": "4.2.5"
43
43
  },
44
44
  "engines": {
45
45
  "node": ">=24.0.0"