@massu/core 0.4.2 → 0.6.0

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 (125) hide show
  1. package/README.md +40 -0
  2. package/agents/massu-architecture-reviewer.md +104 -0
  3. package/agents/massu-blast-radius-analyzer.md +84 -0
  4. package/agents/massu-competitive-scorer.md +126 -0
  5. package/agents/massu-help-sync.md +73 -0
  6. package/agents/massu-migration-writer.md +94 -0
  7. package/agents/massu-output-scorer.md +87 -0
  8. package/agents/massu-pattern-reviewer.md +84 -0
  9. package/agents/massu-plan-auditor.md +170 -0
  10. package/agents/massu-schema-sync-verifier.md +70 -0
  11. package/agents/massu-security-reviewer.md +98 -0
  12. package/agents/massu-ux-reviewer.md +106 -0
  13. package/commands/_shared-preamble.md +53 -23
  14. package/commands/_shared-references/auto-learning-protocol.md +71 -0
  15. package/commands/_shared-references/blast-radius-protocol.md +76 -0
  16. package/commands/_shared-references/security-pre-screen.md +64 -0
  17. package/commands/_shared-references/test-first-protocol.md +87 -0
  18. package/commands/_shared-references/verification-table.md +52 -0
  19. package/commands/massu-article-review.md +343 -0
  20. package/commands/massu-autoresearch/references/eval-runner.md +84 -0
  21. package/commands/massu-autoresearch/references/safety-rails.md +125 -0
  22. package/commands/massu-autoresearch/references/scoring-protocol.md +151 -0
  23. package/commands/massu-autoresearch.md +258 -0
  24. package/commands/massu-batch.md +44 -12
  25. package/commands/massu-bearings.md +42 -8
  26. package/commands/massu-checkpoint.md +588 -0
  27. package/commands/massu-ci-fix.md +2 -2
  28. package/commands/massu-command-health.md +132 -0
  29. package/commands/massu-command-improve.md +232 -0
  30. package/commands/massu-commit.md +205 -44
  31. package/commands/massu-create-plan.md +239 -57
  32. package/commands/massu-data/references/common-queries.md +79 -0
  33. package/commands/massu-data/references/table-guide.md +50 -0
  34. package/commands/massu-data.md +66 -0
  35. package/commands/massu-dead-code.md +29 -34
  36. package/commands/massu-debug/references/auto-learning.md +61 -0
  37. package/commands/massu-debug/references/codegraph-tracing.md +80 -0
  38. package/commands/massu-debug/references/common-shortcuts.md +98 -0
  39. package/commands/massu-debug/references/investigation-phases.md +294 -0
  40. package/commands/massu-debug/references/report-format.md +107 -0
  41. package/commands/massu-debug.md +105 -386
  42. package/commands/massu-docs.md +1 -1
  43. package/commands/massu-full-audit.md +61 -0
  44. package/commands/massu-gap-enhancement-analyzer.md +276 -16
  45. package/commands/massu-golden-path/references/approval-points.md +216 -0
  46. package/commands/massu-golden-path/references/competitive-mode.md +273 -0
  47. package/commands/massu-golden-path/references/error-handling.md +121 -0
  48. package/commands/massu-golden-path/references/phase-0-requirements.md +53 -0
  49. package/commands/massu-golden-path/references/phase-1-plan-creation.md +168 -0
  50. package/commands/massu-golden-path/references/phase-2-implementation.md +397 -0
  51. package/commands/massu-golden-path/references/phase-2.5-gap-analyzer.md +156 -0
  52. package/commands/massu-golden-path/references/phase-3-simplify.md +40 -0
  53. package/commands/massu-golden-path/references/phase-4-commit.md +94 -0
  54. package/commands/massu-golden-path/references/phase-5-push.md +116 -0
  55. package/commands/massu-golden-path/references/phase-5.5-production-verify.md +170 -0
  56. package/commands/massu-golden-path/references/phase-6-completion.md +113 -0
  57. package/commands/massu-golden-path/references/qa-evaluator-spec.md +137 -0
  58. package/commands/massu-golden-path/references/sprint-contract-protocol.md +117 -0
  59. package/commands/massu-golden-path/references/vr-visual-calibration.md +73 -0
  60. package/commands/massu-golden-path.md +114 -848
  61. package/commands/massu-guide.md +72 -69
  62. package/commands/massu-hooks.md +27 -12
  63. package/commands/massu-hotfix.md +221 -144
  64. package/commands/massu-incident.md +49 -20
  65. package/commands/massu-infra-audit.md +187 -0
  66. package/commands/massu-learning-audit.md +211 -0
  67. package/commands/massu-loop/references/auto-learning.md +49 -0
  68. package/commands/massu-loop/references/checkpoint-audit.md +40 -0
  69. package/commands/massu-loop/references/guardrails.md +17 -0
  70. package/commands/massu-loop/references/iteration-structure.md +115 -0
  71. package/commands/massu-loop/references/loop-controller.md +188 -0
  72. package/commands/massu-loop/references/plan-extraction.md +78 -0
  73. package/commands/massu-loop/references/vr-plan-spec.md +140 -0
  74. package/commands/massu-loop-playwright.md +9 -9
  75. package/commands/massu-loop.md +115 -670
  76. package/commands/massu-new-pattern.md +423 -0
  77. package/commands/massu-perf.md +422 -0
  78. package/commands/massu-plan-audit.md +1 -1
  79. package/commands/massu-plan.md +389 -122
  80. package/commands/massu-production-verify.md +433 -0
  81. package/commands/massu-push.md +62 -378
  82. package/commands/massu-recap.md +29 -3
  83. package/commands/massu-rollback.md +613 -0
  84. package/commands/massu-scaffold-hook.md +2 -4
  85. package/commands/massu-scaffold-page.md +2 -3
  86. package/commands/massu-scaffold-router.md +1 -2
  87. package/commands/massu-security.md +619 -0
  88. package/commands/massu-simplify.md +115 -85
  89. package/commands/massu-squirrels.md +2 -2
  90. package/commands/massu-tdd.md +38 -22
  91. package/commands/massu-test.md +3 -3
  92. package/commands/massu-type-mismatch-audit.md +469 -0
  93. package/commands/massu-ui-audit.md +587 -0
  94. package/commands/massu-verify-playwright.md +287 -32
  95. package/commands/massu-verify.md +150 -46
  96. package/dist/cli.js +1451 -1047
  97. package/dist/hooks/post-tool-use.js +75 -6
  98. package/dist/hooks/user-prompt.js +16 -0
  99. package/package.json +6 -2
  100. package/patterns/build-patterns.md +302 -0
  101. package/patterns/component-patterns.md +246 -0
  102. package/patterns/display-patterns.md +185 -0
  103. package/patterns/form-patterns.md +890 -0
  104. package/patterns/integration-testing-checklist.md +445 -0
  105. package/patterns/security-patterns.md +219 -0
  106. package/patterns/testing-patterns.md +569 -0
  107. package/patterns/tool-routing.md +81 -0
  108. package/patterns/ui-patterns.md +371 -0
  109. package/protocols/plan-implementation.md +267 -0
  110. package/protocols/recovery.md +225 -0
  111. package/protocols/verification.md +404 -0
  112. package/reference/command-taxonomy.md +178 -0
  113. package/reference/cr-rules-reference.md +76 -0
  114. package/reference/hook-execution-order.md +148 -0
  115. package/reference/lessons-learned.md +175 -0
  116. package/reference/patterns-quickref.md +208 -0
  117. package/reference/standards.md +135 -0
  118. package/reference/subagents-reference.md +17 -0
  119. package/reference/vr-verification-reference.md +867 -0
  120. package/src/commands/init.ts +27 -0
  121. package/src/commands/install-commands.ts +149 -53
  122. package/src/hooks/post-tool-use.ts +17 -0
  123. package/src/hooks/user-prompt.ts +21 -0
  124. package/src/memory-file-ingest.ts +127 -0
  125. package/src/memory-tools.ts +34 -1
@@ -1,17 +1,22 @@
1
1
  ---
2
2
  name: massu-commit
3
- description: Pre-commit verification audit with zero-fail release gate
3
+ description: "When user says 'commit', 'ready to commit', 'save my work', or has completed implementation and wants to commit changes"
4
4
  allowed-tools: Bash(*), Read(*), Write(*), Edit(*), Grep(*), Glob(*)
5
5
  ---
6
6
  name: massu-commit
7
7
 
8
- > **Shared rules apply.** Read `.claude/commands/_shared-preamble.md` before proceeding. CR-9, CR-35 enforced.
8
+ > **Shared rules apply.** Read `.claude/commands/_shared-preamble.md` before proceeding. CR-9, CR-12 enforced.
9
9
 
10
- # CS Commit: Pre-Commit Verification Gate
10
+ # Massu Commit: Continuous Verification Audit with Zero-Fail Release Gate
11
11
 
12
12
  ## Objective
13
13
 
14
- Run a continuous AUDIT -> FIX -> VERIFY -> RE-AUDIT loop that proves (with evidence, not assumptions) that the implementation is correct and complete.
14
+ Run a continuous AUDIT -> FIX -> VERIFY -> RE-AUDIT loop that proves (with evidence) that the implementation exactly matches:
15
+
16
+ 1. **The Plan** (source of truth for requirements)
17
+ 2. **CLAUDE.md** (source of truth for patterns, constraints, architecture)
18
+
19
+ The loop MUST continue until a full audit produces ZERO gaps, ZERO failures, and ZERO verification errors.
15
20
 
16
21
  ---
17
22
 
@@ -28,13 +33,14 @@ Run a continuous AUDIT -> FIX -> VERIFY -> RE-AUDIT loop that proves (with evide
28
33
 
29
34
  ## RELATIONSHIP WITH /massu-push AND /massu-loop
30
35
 
31
- | Command | Purpose | Speed | Runs Full Tests |
32
- |---------|---------|-------|-----------------|
36
+ | Command | Purpose | Speed | Runs Tests |
37
+ |---------|---------|-------|------------|
38
+ | `/massu-simplify` | Efficiency + reuse + semantic pattern analysis | ~1-2 min | NO |
33
39
  | `/massu-commit` | Fast quality gates for committing | ~1-2 min | YES (vitest is fast) |
34
40
  | `/massu-push` | Full verification + security before pushing | ~5 min | YES + regression |
35
- | `/massu-loop` | Autonomous execution with FULL verification | Varies | YES - MANDATORY |
41
+ | `/massu-loop` | Autonomous execution with full verification | Varies | YES - MANDATORY |
36
42
 
37
- **Philosophy**: Commit often (quality checks), push verified (full checks + security).
43
+ **Philosophy**: Commit often (fast checks), push verified (full checks + security).
38
44
 
39
45
  ---
40
46
 
@@ -47,15 +53,44 @@ Write a transition entry to `.massu/workflow-log.md`:
47
53
 
48
54
  ---
49
55
 
56
+ ## PRIME DIRECTIVE: NO ASSUMPTIONS
57
+
58
+ **NEVER assume module interfaces or config structure. ALWAYS verify against real code.**
59
+
60
+ Before committing any tool or config changes, verify ALL references exist:
61
+ ```bash
62
+ # Verify tool definitions match handler cases
63
+ grep -n "name:" packages/core/src/[module]-tools.ts
64
+ grep -n "case " packages/core/src/[module]-tools.ts
65
+
66
+ # Verify config keys match getConfig() usage
67
+ grep -rn "getConfig()" packages/core/src/ | head -20
68
+ ```
69
+
70
+ ---
71
+
72
+ ## PATTERN DISCOVERY VERIFICATION
73
+
74
+ Before committing, verify ALL new code follows existing patterns by searching for existing implementations of the same thing and confirming the new code uses the SAME approach.
75
+
76
+ If new code uses a DIFFERENT approach than existing working code, the commit MUST NOT proceed unless the existing pattern is documented as deprecated or a new pattern is documented with justification.
77
+
78
+ ---
79
+
80
+ ## DUAL VERIFICATION REQUIREMENT
81
+
82
+ Both Code Quality and Plan Coverage gates must pass. Code Quality: PASS + Plan Coverage: FAIL = COMMIT BLOCKED.
83
+
84
+ ---
85
+
50
86
  ## NON-NEGOTIABLE RULES
51
87
 
52
- - Do NOT stop early
53
- - Do NOT skip checks
54
- - Do NOT downgrade failures to warnings
55
- - Do NOT commit unless ALL gates pass
56
- - Do NOT push unless user explicitly instructs
57
- - **Proof > reasoning. Commands > assumptions.**
58
- - **FIX ALL ISSUES ENCOUNTERED (CR-9)** - If ANY issue is discovered during verification - whether from current changes OR pre-existing - fix it immediately.
88
+ 1. Do NOT commit unless ALL gates pass -- no downgrading failures to warnings
89
+ 2. Do NOT push unless user explicitly instructs (`/massu-push` for full verification)
90
+ 3. Plan Coverage verification required -- 100% item-by-item proof (VR-PLAN-COVERAGE)
91
+ 4. FIX ALL ISSUES ENCOUNTERED (CR-9) -- whether current or pre-existing, all severities
92
+ 5. Auto-learn every fix -- record pattern, update scanner
93
+ 6. **Proof > reasoning. Commands > assumptions.**
59
94
 
60
95
  ---
61
96
 
@@ -65,7 +100,7 @@ Write a transition entry to `.massu/workflow-log.md`:
65
100
 
66
101
  ```
67
102
  COMMIT AUDIT LOOP:
68
- 1. Run ALL pre-commit checks (Gates 1-8)
103
+ 1. Run ALL pre-commit checks (Gates 1-10)
69
104
  2. Count total gaps/failures found
70
105
  3. IF gaps > 0:
71
106
  - Fix ALL gaps
@@ -84,19 +119,6 @@ COMMIT AUDIT LOOP:
84
119
 
85
120
  ---
86
121
 
87
- ## CRITICAL: DUAL VERIFICATION REQUIREMENT
88
-
89
- **Commits verify BOTH code quality AND plan coverage.**
90
-
91
- | Verification | What It Checks | Required for Commit |
92
- |--------------|----------------|---------------------|
93
- | **Code Quality** | Is the code correct? | YES |
94
- | **Plan Coverage** | Did we build everything? (if from plan) | YES |
95
-
96
- **Code Quality: PASS + Plan Coverage: FAIL = COMMIT BLOCKED**
97
-
98
- ---
99
-
100
122
  ## DOMAIN-SPECIFIC PATTERN LOADING
101
123
 
102
124
  Based on work being committed, load relevant pattern sections from CLAUDE.md:
@@ -161,6 +183,11 @@ Document each rule:
161
183
  | [name] | [file:line] | [file:line] | [test file] | PASS/FAIL |
162
184
  ```
163
185
 
186
+ #### A4. User Flow Map
187
+
188
+ | Flow | Entry | Actions | API Calls | Data Ops | Status |
189
+ |------|-------|---------|-----------|----------|--------|
190
+
164
191
  ---
165
192
 
166
193
  ### PASS B: Verification & Breakage Hunting
@@ -199,6 +226,15 @@ cd packages/core && npm run build:hooks
199
226
  - Check for incomplete refactors
200
227
  - Verify no silent failures introduced
201
228
 
229
+ #### B6. Pattern Consistency
230
+ - Verify against CLAUDE.md rules
231
+ - Check new code matches established patterns
232
+
233
+ #### B7. Import/Export Integrity
234
+ - All exports have consumers
235
+ - No circular imports
236
+ - ESM-only patterns preserved
237
+
202
238
  ---
203
239
 
204
240
  ## FIX PROTOCOL
@@ -211,6 +247,14 @@ cd packages/core && npm run build:hooks
211
247
  | **P1** | Incorrect behavior, missing requirements, build failures |
212
248
  | **P2** | Consistency issues, pattern violations, test failures |
213
249
 
250
+ ### Technical Debt (discovered during audit)
251
+
252
+ | Debt Type | Action |
253
+ |-----------|--------|
254
+ | Pre-existing pattern violation | Fix immediately (CR-9) |
255
+ | TODO/FIXME in changed files | Resolve or document with issue |
256
+ | Deprecated API usage | Update to current pattern |
257
+
214
258
  ### For Each Fix
215
259
  1. Apply smallest correct fix matching CLAUDE.md patterns
216
260
  2. Run verification for that specific fix
@@ -277,6 +321,7 @@ grep -rn 'sk-[a-zA-Z0-9]\{20,\}\|password.*=.*["\x27][^"\x27]\{8,\}' --include="
277
321
  - `*.test.ts` - test fixtures with mock data
278
322
 
279
323
  ### Gate 8: Plan Coverage (if from plan)
324
+
280
325
  ```markdown
281
326
  ### PLAN COVERAGE GATE
282
327
 
@@ -290,10 +335,19 @@ grep -rn 'sk-[a-zA-Z0-9]\{20,\}\|password.*=.*["\x27][^"\x27]\{8,\}' --include="
290
335
  **PLAN COVERAGE GATE: PASS / FAIL**
291
336
  ```
292
337
 
293
- ---
338
+ ### Gate 9: VR-PLAN-STATUS (if from plan)
339
+ ```bash
340
+ grep "IMPLEMENTATION STATUS" [plan_file] # Expected: Match found
341
+ grep -c "100% COMPLETE\|DONE\|\*\*DONE\*\*" [plan_file] # Expected: count matches completed phases
342
+ ```
343
+ If FAIL: add completion table to plan, mark phases DONE, record commit hash.
294
344
 
295
- ## GATE SUMMARY
345
+ ### Gate 10: Dependency Security
346
+ ```bash
347
+ npm audit --audit-level=high # 0 high/critical vulnerabilities
348
+ ```
296
349
 
350
+ ### Gate Summary Format
297
351
  ```markdown
298
352
  ### PRE-COMMIT GATE SUMMARY
299
353
 
@@ -307,7 +361,10 @@ grep -rn 'sk-[a-zA-Z0-9]\{20,\}\|password.*=.*["\x27][^"\x27]\{8,\}' --include="
307
361
  | 6. No Secrets Staged | git diff --cached check | [result] | PASS/FAIL |
308
362
  | 7. No Credentials | grep check | [X] found | PASS/FAIL |
309
363
  | 8. Plan Coverage | item-by-item | [X]/[X] = [X]% | PASS/FAIL |
364
+ | 9. Plan Status | plan doc updated | Match | PASS/FAIL |
365
+ | 10. Security | npm audit | 0 high/crit | PASS/FAIL |
310
366
 
367
+ BLOCKING GATES: 1-10
311
368
  **OVERALL: PASS / FAIL**
312
369
  ```
313
370
 
@@ -340,6 +397,45 @@ git log -1 --oneline
340
397
 
341
398
  ---
342
399
 
400
+ ## SESSION STATE UPDATE (REQUIRED)
401
+
402
+ Before committing, update `session-state/CURRENT.md`:
403
+
404
+ ```markdown
405
+ ## PRE-COMMIT STATE
406
+ ### Work Completed
407
+ - [List all work with file paths]
408
+ ### Files Changed
409
+ - Created: [list] | Modified: [list] | Deleted: [list]
410
+ ### Verification Summary
411
+ - Pattern scanner: PASS | Type check: PASS | Tests: PASS
412
+ - Hook build: PASS | Generalization: PASS | Security: PASS
413
+ ### Commit Ready
414
+ - All gates passed: YES | Commit message drafted: YES
415
+ ```
416
+
417
+ ---
418
+
419
+ ## AUDIT LOOP (Repeat Until Zero Issues)
420
+
421
+ ```
422
+ ITERATION N:
423
+ 1. Run PASS A (Inventory & Mapping)
424
+ 2. Run PASS B (Verification & Breakage Hunting)
425
+ 3. IF gaps: Build Fix Queue (P0->P1->P2), apply, run ALL gates, return to Step 1
426
+ 4. IF zero gaps AND all gates pass: Update session state, proceed to COMMIT
427
+ ```
428
+
429
+ ### Stop Conditions (ALL must be true)
430
+ - Plan items: 100% verified with VR-* proof
431
+ - CLAUDE.md patterns: 0 violations
432
+ - All code quality gates (1-10): PASS
433
+ - Security gate: 0 high/critical vulnerabilities
434
+ - Tool registration: All tools wired and tested
435
+ - Hook compilation: Exit 0
436
+
437
+ ---
438
+
343
439
  ## COMMIT MESSAGE INTELLIGENCE
344
440
 
345
441
  ### CONVENTIONAL COMMIT ENFORCEMENT
@@ -373,7 +469,6 @@ Analyze `git diff --cached --name-only` to determine scope:
373
469
  | All in `website/` | `website` |
374
470
  | All in `.claude/commands/` | `commands` |
375
471
  | All in `scripts/` | `tooling` |
376
- | All in `website/supabase/` | `supabase` |
377
472
  | Mixed across areas | Most dominant area, or omit scope |
378
473
 
379
474
  ### BREAKING CHANGE DETECTION
@@ -413,20 +508,28 @@ If changes span 3+ unrelated areas (e.g., `packages/core/` + `website/` + `scrip
413
508
 
414
509
  ---
415
510
 
416
- ## START NOW
511
+ ## COMMIT PROTOCOL (Final Step Only)
417
512
 
418
- **Step 0: Write AUTHORIZED_COMMAND to session state (CR-35)**
513
+ ### Pre-Commit Checklist
514
+ - [ ] All audit gates passed
515
+ - [ ] Session state updated
516
+ - [ ] No .env or credential files staged
517
+ - [ ] Commit message drafted
419
518
 
420
- Update `session-state/CURRENT.md` to include `AUTHORIZED_COMMAND: massu-commit`.
519
+ ### Check Staged Files
520
+ ```bash
521
+ git status # Review ALL staged files, verify NO .env* or credential files
522
+ ```
421
523
 
422
- 1. Check work to commit: `git status && git diff --stat`
423
- 2. If Plan exists, begin PASS A
424
- 3. If no Plan, audit against CLAUDE.md patterns only
425
- 4. Run full audit loop until ZERO gaps
426
- 5. Run ALL verification gates
427
- 6. Execute AUTO-LEARNING PROTOCOL
428
- 7. Commit only when ALL conditions met
429
- 8. Report completion, await push instruction
524
+ ---
525
+
526
+ ## POST-COMMIT (Do NOT Auto-Push)
527
+
528
+ ```bash
529
+ git status # Verify commit succeeded, show hash
530
+ ```
531
+
532
+ **DO NOT PUSH** unless user explicitly says "push" or "push to remote".
430
533
 
431
534
  ---
432
535
 
@@ -440,6 +543,33 @@ Verify: `grep "IMPLEMENTATION STATUS" [plan_file]` returns match.
440
543
 
441
544
  ---
442
545
 
546
+ ## Gotchas
547
+
548
+ - **Pattern scanner must pass** -- `scripts/massu-pattern-scanner.sh` runs automatically and MUST exit 0. Never bypass with `--no-verify`
549
+ - **Never skip pre-commit hooks** -- `--no-verify` is forbidden. If a hook fails, fix the underlying issue
550
+ - **Check for .env files in staged changes** -- `git status` must show ZERO `.env*` files staged. Secrets leaked to git history cannot be un-leaked
551
+ - **Commit message must match changes** -- "fix" means bug fix, "add" means new feature, "update" means enhancement. Mismatched messages cause confusion in changelog
552
+ - **Never amend after hook failure** -- when a pre-commit hook fails, the commit did NOT happen. Create a NEW commit after fixing; `--amend` would modify the PREVIOUS commit
553
+
554
+ ---
555
+
556
+ ## START NOW
557
+
558
+ **Step 0: Write AUTHORIZED_COMMAND to session state (CR-12)**
559
+
560
+ Update `session-state/CURRENT.md` to include `AUTHORIZED_COMMAND: massu-commit`.
561
+
562
+ 1. Check work to commit: `git status && git diff --stat`
563
+ 2. If Plan exists, begin PASS A
564
+ 3. If no Plan, audit against CLAUDE.md patterns only
565
+ 4. Run full audit loop until ZERO gaps
566
+ 5. Run ALL verification gates
567
+ 6. Execute AUTO-LEARNING PROTOCOL
568
+ 7. Commit only when ALL conditions met
569
+ 8. Report completion, await push instruction
570
+
571
+ ---
572
+
443
573
  ## AUTO-LEARNING PROTOCOL
444
574
 
445
575
  After committing, if any issues were fixed during this audit:
@@ -457,7 +587,14 @@ If a NEW pattern or utility was created during the commit:
457
587
  ## COMPLETION REPORT
458
588
 
459
589
  ```markdown
460
- ## CS COMMIT COMPLETE
590
+ ## MASSU COMMIT COMPLETE
591
+
592
+ | Gate Category | Status | Evidence |
593
+ |---------------|--------|----------|
594
+ | Code Quality (1-7) | PASS | All gates passed |
595
+ | Plan Coverage (8) | PASS | [X]/[X] = 100% |
596
+ | Plan Status (9) | PASS | Plan doc updated |
597
+ | Security (10) | PASS | 0 high/critical |
461
598
 
462
599
  ### Commit Details
463
600
  - **Hash**: [hash]
@@ -475,7 +612,31 @@ If a NEW pattern or utility was created during the commit:
475
612
  | No Secrets | PASS |
476
613
  | No Credentials | PASS |
477
614
  | Plan Coverage | PASS (X/X = 100%) |
615
+ | Plan Status | PASS |
616
+ | Security | PASS |
617
+
618
+ ### Push Status
619
+ - Pushed: NO (awaiting user instruction)
620
+
621
+ **DUAL VERIFICATION PASSED - READY FOR PUSH ON USER COMMAND**
478
622
 
479
623
  ### Next Steps
480
624
  - Run `/massu-push` to push with full verification
481
625
  ```
626
+
627
+ ---
628
+
629
+ ## QUALITY SCORING (silent)
630
+
631
+ After committing, append one JSONL line to `.claude/metrics/command-scores.jsonl`:
632
+
633
+ | Check | Pass condition |
634
+ |-------|---------------|
635
+ | `all_gates_passed` | All 10 gates exit 0 |
636
+ | `plan_coverage_100` | Plan coverage gate = 100% (or N/A if no plan) |
637
+ | `zero_gap_single_run` | Final audit run found 0 gaps |
638
+ | `conventional_commit` | Commit message matches type(scope): description |
639
+
640
+ ```json
641
+ {"command":"massu-commit","timestamp":"ISO8601","scores":{"all_gates_passed":true,"plan_coverage_100":true,"zero_gap_single_run":true,"conventional_commit":true},"pass_rate":"4/4","input_summary":"[commit-hash]:[message-summary]"}
642
+ ```