@massu/core 1.15.5 → 1.15.6

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
@@ -10,6 +10,36 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
10
10
  > redistributed under the **Apache License 2.0**. Full license + NOTICE:
11
11
  > `packages/core/assets/embedder/MODEL-LICENSE`.
12
12
 
13
+ ## [1.15.6] - 2026-07-14
14
+
15
+ ### Fixed — the golden path's Deep Security Audit phase was missing entirely
16
+
17
+ `references/phase-3.5-security-audit.md` — a full adversarial security audit loop over every file
18
+ changed in a golden-path run (parallel red-team agents, iterating until the audit converges to ZERO
19
+ findings). Its own text: *"This phase is NEVER skipped. Security is non-negotiable regardless of
20
+ change size, type, or scope."*
21
+
22
+ 0.6.1 SHIPS phase-3.5-security-audit.md
23
+ 1.0.0 does NOT ship it
24
+ 1.15.5 does NOT ship it
25
+
26
+ **It exists in no commit in massu's history** — no deletion commit, no changelog entry, no trace.
27
+ From v1.0.0 through v1.15.5, every user's golden path ran with **no security audit phase at all**.
28
+ The only surviving copy was in a consumer repo that had committed its installed commands months ago.
29
+
30
+ Restored, wired as **Phase 3.5** (after simplification, before pre-commit, exactly where its own
31
+ spec says it belongs), and added to the reference table.
32
+
33
+ **Why every guard missed it, and what changed:** the reference-link check asks *"does every
34
+ reference file have a link?"* — and a file DELETED OUTRIGHT has no link to be missing. A check that
35
+ only sees BROKEN things is structurally blind to ABSENT ones. The anti-vacuity suite now asserts,
36
+ per subsystem, that the file **EXISTS** *and* is **LINKED** *and* is **INVOKED** — a conjunction no
37
+ deletion can satisfy. Proven by attack: deleting the spec file goes RED; deleting the phase while
38
+ keeping the file goes RED.
39
+
40
+ This is the fifth quality subsystem found missing from the golden path in one day, and the only one
41
+ deleted so completely it left no evidence anywhere in the repository.
42
+
13
43
  ## [1.15.5] - 2026-07-14
14
44
 
15
45
  ### Fixed — CRITICAL: `install-commands` could destroy your customizations
@@ -0,0 +1,108 @@
1
+ # Phase 3.5: Deep Security Audit
2
+
3
+ > Reference doc for `/massu-golden-path`. Return to main file for overview.
4
+
5
+ ```
6
+ [GOLDEN PATH -- PHASE 3.5: DEEP SECURITY AUDIT]
7
+ ```
8
+
9
+ ## Purpose
10
+
11
+ Run a full adversarial security audit loop against ALL files changed in this golden path run. This is a deep, iterative audit with parallel red-team agents that converges to zero findings. It runs AFTER simplification (Phase 3) so the audit targets the final, cleaned-up code -- and BEFORE pre-commit verification (Phase 4) so all security fixes are included in the verification gates.
12
+
13
+ **This phase is NEVER skipped.** Security is non-negotiable regardless of change size, type, or scope.
14
+
15
+ ---
16
+
17
+ ## 3.5.1 Determine Audit Scope
18
+
19
+ Collect ALL files changed during this golden path run:
20
+
21
+ ```bash
22
+ git diff --name-only HEAD
23
+ ```
24
+
25
+ If files were already committed in earlier phases, also include:
26
+ ```bash
27
+ git diff --name-only main...HEAD
28
+ ```
29
+
30
+ The audit scope is the union of all changed files. Do NOT narrow scope -- every changed file gets audited.
31
+
32
+ **Output:**
33
+ ```
34
+ SECURITY AUDIT SCOPE:
35
+ Files: [N]
36
+ [list of files]
37
+ ```
38
+
39
+ ---
40
+
41
+ ## 3.5.2 Execute Deep Security Audit
42
+
43
+ Run the full security audit protocol against the scoped files:
44
+
45
+ 1. **Launch 2-4 parallel adversarial reviewer agents** adapted to the codebase area:
46
+ - Backend/API code: 4 agents (Injection, Network/Leakage, DoS/Resources, Red Team Bypass)
47
+ - Frontend code: 3 agents (XSS/Injection, Auth/Data Exposure, Input Validation/Logic)
48
+ - Infrastructure/config: 2 agents (Secrets/Config, Dependencies/Supply Chain)
49
+
50
+ 2. **Consolidate findings** -- deduplicate across agents, take higher severity on disagreements
51
+
52
+ 3. **Fix ALL findings** -- CRITICAL first, then HIGH, MEDIUM, LOW. INFO documented only.
53
+
54
+ 4. **Verify fixes** -- import checks, input validation tests, functionality preserved
55
+
56
+ 5. **Loop until zero findings** -- max 5 iterations, escalate to user if still failing after 5
57
+
58
+ ---
59
+
60
+ ## 3.5.3 Attack Vector Coverage
61
+
62
+ Every audit iteration MUST verify the complete attack vector checklist:
63
+
64
+ ### Universal
65
+ - Hardcoded secrets / API keys / credentials
66
+ - Error messages leaking internal details
67
+ - Dependency vulnerabilities
68
+ - Input validation on ALL external boundaries
69
+
70
+ ### Backend / API
71
+ - SQL injection, command injection, path traversal
72
+ - SSRF, authentication bypass, authorization bypass
73
+ - DoS via unbounded inputs, memory leaks, race conditions
74
+ - Response validation, type confusion
75
+
76
+ ### Frontend
77
+ - XSS, open redirects, sensitive data in client state
78
+ - CSRF, client-side auth bypass
79
+
80
+ ### LLM / AI Specific
81
+ - Prompt injection, model output trust
82
+ - Tool argument injection, vision/multimodal injection
83
+
84
+ ---
85
+
86
+ ## 3.5.4 Completion Gate
87
+
88
+ The phase completes ONLY when the audit loop achieves a clean pass with zero findings.
89
+
90
+ ```
91
+ SECURITY_AUDIT_GATE: PASS
92
+ Iterations: [N]
93
+ Total findings fixed: [N]
94
+ Breakdown: [X] CRITICAL, [X] HIGH, [X] MEDIUM, [X] LOW fixed
95
+ Clean pass: Iteration [N]
96
+ ```
97
+
98
+ **Do NOT proceed to Phase 4 until SECURITY_AUDIT_GATE = PASS.**
99
+
100
+ ---
101
+
102
+ ## Rules
103
+
104
+ 1. **NEVER skip this phase** -- not for small changes, not for docs, not for config
105
+ 2. **NEVER proceed with findings unfixed** -- zero means zero
106
+ 3. **ALL severity levels get fixed** -- CRITICAL through LOW
107
+ 4. **No commit prompt** -- unlike standalone security audit commands, do NOT offer to commit here (Phase 4 handles commits)
108
+ 5. **Findings feed Phase 4** -- security fixes are verified by Phase 4's type check, build, lint, and secrets gates automatically
@@ -150,6 +150,35 @@ Read `references/phase-3-simplify.md` for full details.
150
150
 
151
151
  ---
152
152
 
153
+ ## PHASE 3.5: DEEP SECURITY AUDIT
154
+
155
+ Read `references/phase-3.5-security-audit.md` for full details.
156
+
157
+ **Summary**: A full adversarial security audit loop against EVERY file changed in this run —
158
+ parallel red-team agents, iterating until the audit converges to ZERO findings. It runs AFTER
159
+ simplification (so it audits the final, cleaned-up code) and BEFORE pre-commit verification (so
160
+ every security fix is caught by the Phase 4 gates).
161
+
162
+ **THIS PHASE IS NEVER SKIPPED.** Security is non-negotiable regardless of the size, type, or scope
163
+ of the change. Do not narrow the audit scope: every changed file gets audited.
164
+
165
+ > **This phase SHIPPED in v0.6.1 and had vanished by v1.0.0.** It exists in no commit in this
166
+ > repository's history — the only surviving copy on the machine was in a consumer repo that had
167
+ > committed its installed commands back in April. So for every version from v1.0.0 to v1.15.5,
168
+ > every user's golden path ran with **no security audit phase at all**, and nothing anywhere said
169
+ > so.
170
+ >
171
+ > It was found by accident, on 2026-07-14, when a `git status` showed the file being deleted from
172
+ > that consumer during a reinstall. **The reference-link guard could never have found it:** that
173
+ > guard asks "does every reference file have a link?", and a file that has been deleted outright
174
+ > has no link to be missing. A check that only sees *broken* things is blind to *absent* ones —
175
+ > which is the same failure as a scanner that reports CLEAN because it scanned zero files.
176
+ >
177
+ > Restored and wired 2026-07-14. Guarded by `golden-path-quality-subsystems-wired.test.ts`, which
178
+ > asserts the file EXISTS, is LINKED, and is INVOKED — a conjunction no deletion can satisfy.
179
+
180
+ ---
181
+
153
182
  ## PHASE 4: PRE-COMMIT VERIFICATION
154
183
 
155
184
  Read `references/phase-4-commit.md` for full details.
@@ -216,6 +245,7 @@ This skill is a folder. The following files are available for reference:
216
245
  | `references/vr-visual-calibration.md` | Score 5/3/1 calibration examples for VR-VISUAL weighted dimensions | Calibrating VR-VISUAL scoring in Phase 2.5 |
217
246
  | `references/phase-2.5-gap-analyzer.md` | Gap/enhancement analysis loop, 7 categories (incl. sprint-contract compliance), fix-and-repass until zero | After implementation, before simplification |
218
247
  | `references/phase-3-simplify.md` | Pattern scanner fast gate, dead code detection, parallel semantic review agents | Running simplification after implementation |
248
+ | `references/phase-3.5-security-audit.md` | Adversarial red-team security audit loop over every changed file, iterating to ZERO findings | Phase 3.5 — after simplification, before pre-commit. NEVER skipped |
219
249
  | `references/phase-4-commit.md` | Auto-verification gates, quality scoring, commit format | Preparing a commit |
220
250
  | `references/phase-5-push.md` | Pre-flight, 4-tier push verification, regression detection | Preparing to push to remote |
221
251
  | `references/phase-5.5-production-verify.md` | Deployment landed, runtime logs clean, feature exercised against production with real data | Phase 5.5 — after push, before calling it done |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massu/core",
3
- "version": "1.15.5",
3
+ "version": "1.15.6",
4
4
  "type": "module",
5
5
  "description": "AI Engineering Governance MCP Server - Session memory, knowledge system, feature registry, code intelligence, rule enforcement, tiered tooling (12 free / 73 total), 56 workflow commands, 11 agents, 20+ patterns",
6
6
  "main": "./dist/cli.js",