@massu/core 1.15.4 → 1.15.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 +53 -0
- package/commands/massu-golden-path.md +50 -7
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,59 @@ 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.5] - 2026-07-14
|
|
14
|
+
|
|
15
|
+
### Fixed — CRITICAL: `install-commands` could destroy your customizations
|
|
16
|
+
|
|
17
|
+
- **The installer recorded a hash for a file it did not write.** On meeting a command file with no
|
|
18
|
+
manifest entry, it kept the file (correct) and then recorded THAT FILE'S hash into the manifest —
|
|
19
|
+
a manifest whose entire meaning is "this is the hash of what massu installed". On the next run the
|
|
20
|
+
safe-upgrade path read that back, concluded the file was untouched, and **overwrote it**.
|
|
21
|
+
**Run 1 armed it; run 2 destroyed the work.** Measured against a real repo: 36 files of local
|
|
22
|
+
customization deleted on the second install, reported as success.
|
|
23
|
+
|
|
24
|
+
It now records **nothing** when it cannot prove authorship. The ambiguity is re-detected on every
|
|
25
|
+
run and the file is kept on every run. A customized file with no provenance now FREEZES: safe, but
|
|
26
|
+
stale. Upstream changes reach it via an explicit `rm <file> && massu install-commands`, or a future
|
|
27
|
+
three-way merge. Between "stale" and "your work is silently deleted", we choose stale.
|
|
28
|
+
|
|
29
|
+
- **A test was protecting the bug.** `MANIFEST-06` asserted the fail-open as correct behaviour
|
|
30
|
+
("Manifest seeded with EXISTING hash for kept"). The test agreed with the code because both were
|
|
31
|
+
written from the same wrong assumption. Assertion inverted.
|
|
32
|
+
|
|
33
|
+
- **`scripts/quarantine-poisoned-manifest.mjs`** — repairs a manifest that already contains such a
|
|
34
|
+
hash. It does not re-derive what massu "would have written" (the installer resolves variants and
|
|
35
|
+
renders templates, so the installed bytes are a function of the repo's config); it runs the REAL
|
|
36
|
+
installer against a scratch copy and drops any entry that authorises an overwrite. Dry run by
|
|
37
|
+
default; backs the manifest up before writing.
|
|
38
|
+
|
|
39
|
+
### Fixed — the golden path was missing the machinery that checks the work
|
|
40
|
+
|
|
41
|
+
`8fff05d`, whose message announced only additions, silently **deleted** three quality subsystems.
|
|
42
|
+
The spec files kept shipping; nothing invoked them. Restored and re-wired:
|
|
43
|
+
|
|
44
|
+
- **Sprint contracts (2A.5)** — agree definition-of-done per item BEFORE implementing it.
|
|
45
|
+
- **QA evaluator (2C)** — adversarial acceptance testing AGAINST those contracts.
|
|
46
|
+
- **VR-VISUAL** — weighted 4-dimension scoring (threshold >= 3.0).
|
|
47
|
+
- **Gap analyzer's 7th category** — sprint-contract compliance. Without it the loop could report
|
|
48
|
+
zero gaps while the work missed the definition of done it was built against.
|
|
49
|
+
|
|
50
|
+
And a fourth that was **never wired at all**: **Phase 5.5 — Production Verification**, shipped in
|
|
51
|
+
v0.6.0 and invoked by nothing for its entire life. Its own first line reads *"A feature is NOT
|
|
52
|
+
complete until it is verified working in production with real data. 'Deployed' and 'working' are two
|
|
53
|
+
completely different things."*
|
|
54
|
+
|
|
55
|
+
- **A new gate that deletion cannot satisfy.** The previous check asked only "does every reference
|
|
56
|
+
file have a link?" — so deleting the spec files made it pass. The new one asserts, per subsystem,
|
|
57
|
+
that the file EXISTS **and** is LINKED **and** is INVOKED by name. Proven by attacking all three.
|
|
58
|
+
|
|
59
|
+
### Fixed
|
|
60
|
+
- `massu-pattern-scanner.sh` Check 40 used a relative path and silently failed from any directory but
|
|
61
|
+
the repo root — including `packages/core/`, which is where npm runs `prepublishOnly`. The
|
|
62
|
+
pre-publish check that runs it had therefore never worked.
|
|
63
|
+
- `diff-commands-vs-docs.sh` derived its repo root via `git rev-parse || pwd`; outside a git tree the
|
|
64
|
+
fallback turned "I cannot find the repo" into a confident wrong answer.
|
|
65
|
+
|
|
13
66
|
## [1.15.4] - 2026-07-13
|
|
14
67
|
|
|
15
68
|
### Security
|
|
@@ -106,15 +106,25 @@ Read `references/phase-1-plan-creation.md` for full details.
|
|
|
106
106
|
|
|
107
107
|
Read `references/phase-2-implementation.md` for full details.
|
|
108
108
|
|
|
109
|
-
**Summary**:
|
|
109
|
+
**Summary**: Eight sub-phases:
|
|
110
110
|
- **2A**: Extract plan items into tracking table, initialize session state
|
|
111
|
+
- **2A.5**: **Sprint contracts** — negotiate definition-of-done per plan item BEFORE implementing it (scope boundary, acceptance criteria, VR-* mapping). See `references/sprint-contract-protocol.md`
|
|
111
112
|
- **2B**: Implementation loop (pre-check, execute, guardrail, verify, update per item)
|
|
112
|
-
- **2C**: Multi-perspective review (3 parallel agents: security, architecture, quality)
|
|
113
|
-
- **2D**: Verification audit loop (subagent, circuit breaker CR-37, max 10 iterations)
|
|
113
|
+
- **2C**: Multi-perspective review (3 parallel agents: security, architecture, quality) + **QA evaluator** (conditional, UI plans only — adversarial Playwright-based acceptance testing **against the sprint contracts agreed in 2A.5**). See `references/qa-evaluator-spec.md`
|
|
114
|
+
- **2D**: Verification audit loop (subagent, circuit breaker CR-37, sprint-contract verification, max 10 iterations)
|
|
114
115
|
- **2E**: Post-build reflection + memory persist (CR-38)
|
|
115
116
|
- **2F**: Documentation sync (if user-facing features)
|
|
116
117
|
- **2G**: Browser verification & fix loop (auto-triggers if UI files changed, Playwright MCP)
|
|
117
118
|
|
|
119
|
+
> **2A.5 and 2C are load-bearing, and they were missing.** Commit `8fff05d` — whose message
|
|
120
|
+
> announced only ADDITIONS ("CR-45 zero-tolerance mandate") — silently deleted the sprint
|
|
121
|
+
> contracts and the QA evaluator from this file. Every golden-path run since has implemented
|
|
122
|
+
> against no agreed definition of done, and accepted its own work without an adversarial check.
|
|
123
|
+
> The spec files never stopped shipping; nothing invoked them. Restored 2026-07-14.
|
|
124
|
+
>
|
|
125
|
+
> The order matters: **2A.5 agrees what "done" means BEFORE 2B builds it, so 2C has something
|
|
126
|
+
> to judge against.** A QA evaluator with no contract is grading an exam with no answer key.
|
|
127
|
+
|
|
118
128
|
**Gate**: APPROVAL POINT #2: NEW PATTERN (if needed, any sub-phase)
|
|
119
129
|
|
|
120
130
|
---
|
|
@@ -123,7 +133,12 @@ Read `references/phase-2-implementation.md` for full details.
|
|
|
123
133
|
|
|
124
134
|
Read `references/phase-2.5-gap-analyzer.md` for full details.
|
|
125
135
|
|
|
126
|
-
**Summary**: After implementation completes, run a continuous gap and enhancement analysis loop. A subagent analyzes all changed files across
|
|
136
|
+
**Summary**: After implementation completes, run a continuous gap and enhancement analysis loop. A subagent analyzes all changed files across **7 categories** (functional gaps, UX gaps, data integrity, security, pattern compliance, enhancements, **sprint-contract compliance**). **VR-VISUAL uses weighted 4-dimension scoring (threshold >= 3.0)** — see `references/vr-visual-calibration.md` for the 5/3/1 calibration examples. Every gap/enhancement found is fixed immediately. The loop re-runs until a full pass discovers ZERO gaps. Max 10 iterations. Skippable only for documentation-only changes or explicit user request.
|
|
137
|
+
|
|
138
|
+
> **The 7th category and VR-VISUAL's scoring were deleted by `8fff05d` and restored 2026-07-14.**
|
|
139
|
+
> Without the sprint-contract category, the loop could report ZERO gaps while the work missed the
|
|
140
|
+
> definition of done it was built against. Without the weighted scoring, VR-VISUAL was a
|
|
141
|
+
> pass/fail vibe check with a calibration file nobody read.
|
|
127
142
|
|
|
128
143
|
---
|
|
129
144
|
|
|
@@ -155,6 +170,30 @@ Read `references/phase-5-push.md` for full details.
|
|
|
155
170
|
|
|
156
171
|
---
|
|
157
172
|
|
|
173
|
+
## PHASE 5.5: PRODUCTION VERIFICATION
|
|
174
|
+
|
|
175
|
+
Read `references/phase-5.5-production-verify.md` for full details.
|
|
176
|
+
|
|
177
|
+
**Summary**: After push and CI success, verify the deployment actually LANDED and the feature
|
|
178
|
+
actually WORKS — against production, with real data. Confirm the deploy reached READY, read the
|
|
179
|
+
runtime logs for startup errors, then exercise the feature itself and read back what the system
|
|
180
|
+
returns. Skippable ONLY when the change has no deployed surface (docs-only, tooling-only).
|
|
181
|
+
|
|
182
|
+
**Core principle**: *A feature is NOT complete until it is verified working in production with real
|
|
183
|
+
data. "Deployed" and "working" are two completely different things.*
|
|
184
|
+
|
|
185
|
+
> **This phase was written, shipped in v0.6.0 — and NEVER WIRED IN.** It has been sitting in
|
|
186
|
+
> `references/` for its entire life with nothing invoking it: a `git log -S` over this file finds
|
|
187
|
+
> no commit that ever linked it. It was not deleted; it was never enabled. That is its own failure
|
|
188
|
+
> class ("hunt the built-and-never-enabled"), and it is the more embarrassing one, because the
|
|
189
|
+
> phase that would have caught "we shipped it but never checked it worked" was itself shipped and
|
|
190
|
+
> never checked. Wired 2026-07-14.
|
|
191
|
+
>
|
|
192
|
+
> It goes AFTER the push (you cannot verify a deployment that has not happened) and BEFORE
|
|
193
|
+
> completion (you may not call it done until the world agrees it is).
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
158
197
|
## PHASE 6: COMPLETION
|
|
159
198
|
|
|
160
199
|
Read `references/phase-6-completion.md` for full details.
|
|
@@ -171,12 +210,16 @@ This skill is a folder. The following files are available for reference:
|
|
|
171
210
|
|------|---------|-----------|
|
|
172
211
|
| `references/phase-0-requirements.md` | Requirements interview, ambiguity detection, 10-dimension coverage map | Starting a new implementation from a task description |
|
|
173
212
|
| `references/phase-1-plan-creation.md` | Config/schema reality check, blast radius analysis, plan generation, audit loop | Writing or auditing a plan |
|
|
174
|
-
| `references/phase-2-implementation.md` | Item loop, multi-perspective review, verification audit, browser testing | Executing implementation; any Phase 2 sub-phase |
|
|
175
|
-
| `references/
|
|
213
|
+
| `references/phase-2-implementation.md` | Item loop, sprint contracts, multi-perspective review, QA evaluator, verification audit, browser testing | Executing implementation; any Phase 2 sub-phase |
|
|
214
|
+
| `references/sprint-contract-protocol.md` | Sprint contract template, quality bar, negotiation rules, skip conditions | Phase 2A.5 — agreeing definition-of-done before implementing |
|
|
215
|
+
| `references/qa-evaluator-spec.md` | Adversarial QA evaluator: 4 dimensions, anti-leniency rules, known failure patterns | Phase 2C — QA evaluation (UI plans only) |
|
|
216
|
+
| `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
|
+
| `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 |
|
|
176
218
|
| `references/phase-3-simplify.md` | Pattern scanner fast gate, dead code detection, parallel semantic review agents | Running simplification after implementation |
|
|
177
219
|
| `references/phase-4-commit.md` | Auto-verification gates, quality scoring, commit format | Preparing a commit |
|
|
178
220
|
| `references/phase-5-push.md` | Pre-flight, 4-tier push verification, regression detection | Preparing to push to remote |
|
|
179
|
-
| `references/phase-
|
|
221
|
+
| `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 |
|
|
222
|
+
| `references/phase-6-completion.md` | Final report, plan status update, auto-learning | After production verification; completing the golden path |
|
|
180
223
|
| `references/approval-points.md` | Exact format and options for all 4 approval points (5 with --competitive: Plan, New Pattern, Winner Selection, Commit, Push) | Presenting any approval gate to the user |
|
|
181
224
|
| `references/competitive-mode.md` | Competitive mode protocol: agent spawning, scoring, winner selection | Using --competitive flag |
|
|
182
225
|
| `references/error-handling.md` | Abort handling, non-recoverable errors, post-compaction re-verification, competitive mode errors | On user abort, blocker error, or after context compaction |
|
package/dist/cli.js
CHANGED
|
@@ -4357,9 +4357,9 @@ function syncDirectory(sourceDir, targetDir, framework, manifest, manifestKeyPre
|
|
|
4357
4357
|
continue;
|
|
4358
4358
|
}
|
|
4359
4359
|
if (lastInstalledHash === void 0) {
|
|
4360
|
-
manifest.entries[manifestKey] = existingHash;
|
|
4361
4360
|
process.stderr.write(
|
|
4362
|
-
`First-install
|
|
4361
|
+
`First-install: keeping existing ${targetPath} (differs from upstream, and massu has no record of writing it).
|
|
4362
|
+
It will be kept on every future install until you resolve it explicitly.
|
|
4363
4363
|
To accept upstream: rm ${targetPath} && npx massu install-commands
|
|
4364
4364
|
`
|
|
4365
4365
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@massu/core",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.5",
|
|
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",
|