@massa-ai/cursor-plugin 1.34.0 → 1.35.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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "massa-ai",
3
- "version": "1.34.0",
3
+ "version": "1.35.0",
4
4
  "description": "massa-ai — semantic code search, memory, and context compression for Cursor"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massa-ai/cursor-plugin",
3
- "version": "1.34.0",
3
+ "version": "1.35.0",
4
4
  "description": "massa-ai plugin for Cursor — semantic code search, memory, and context compression",
5
5
  "files": [
6
6
  "agents",
@@ -46,6 +46,15 @@ The only two legal skip reasons:
46
46
  Record the skip reason verbatim in the completion report. Any other reason is a
47
47
  protocol violation, not a shortcut.
48
48
 
49
+ **Record the isolation evidence immediately after creation:** the worktree path
50
+ and branch name go into the session status the moment Stage 1 completes, and
51
+ every subsequent edit happens under that path. **Never switch branches in a
52
+ checkout another session may share** — two sessions sharing one checkout can
53
+ move each other's HEAD mid-run and land commits on the wrong branch (recorded
54
+ incident, `.specs/project/STATE.md` 2026-08-05). This is a cross-**session**
55
+ rule; the cross-**subagent** git-safety rule for concurrently-dispatched agents
56
+ is owned by `references/agent-orchestration.md` and is not restated here.
57
+
49
58
  Set up the worktree's dependencies before the first gate — a fresh worktree has
50
59
  no `node_modules`, no `dist`, and no `.env`. A gate that fails only because the
51
60
  worktree was never provisioned is an environment failure; say so rather than
@@ -14,6 +14,8 @@ Load `references/project-context.md` (intake sweep) before the first substantive
14
14
 
15
15
  Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
16
16
 
17
+ **Isolation Gate — before the first file edit:** execute `references/implementation-delivery.md` Stage 0–1 now (fetch base, create the worktree + branch, work inside it) and record the worktree path + branch — or one of Stage 1's two legal skip reasons, verbatim — before any repository mutation.
18
+
17
19
  Not for findings-only architecture review — route to `workflows/architecture/architecture-audit.md`. Not for broad new design work with missing requirements — route to `workflows/spec-driven.md`.
18
20
 
19
21
  1. Resolve/reuse `workflowSessionId`: `architecture-fix-[entity]`
@@ -14,6 +14,8 @@ Load `references/project-context.md` (intake sweep) before the first substantive
14
14
 
15
15
  Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
16
16
 
17
+ **Isolation Gate — before the first file edit:** execute `references/implementation-delivery.md` Stage 0–1 now (fetch base, create the worktree + branch, work inside it) and record the worktree path + branch — or one of Stage 1's two legal skip reasons, verbatim — before any repository mutation.
18
+
17
19
  Not for findings-only bug discovery — route to `workflows/bugs/bugs-audit.md`. Not for one known broken behavior without an audit report — route to `workflows/debug.md`. Not for broad product/design changes — route to `workflows/spec-driven.md`.
18
20
 
19
21
  1. Resolve/reuse `workflowSessionId`: `bugs-fix-[entity]`
@@ -14,6 +14,8 @@ Load `references/project-context.md` (intake sweep) before the first substantive
14
14
 
15
15
  Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
16
16
 
17
+ **Isolation Gate — before the first file edit:** execute `references/implementation-delivery.md` Stage 0–1 now (fetch base, create the worktree + branch, work inside it) and record the worktree path + branch — or one of Stage 1's two legal skip reasons, verbatim — before any repository mutation.
18
+
17
19
  Not for findings-only SOLID, Clean Code, KISS, YAGNI, DRY, maintainability, or overengineering analysis — route to `workflows/code-quality/code-quality-audit.md`.
18
20
 
19
21
  1. Resolve/reuse `workflowSessionId`: `code-quality-fix-[entity]`
@@ -14,6 +14,8 @@ Load `references/project-context.md` (intake sweep) before the first substantive
14
14
 
15
15
  Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
16
16
 
17
+ **Isolation Gate — before the first file edit:** execute `references/implementation-delivery.md` Stage 0–1 now (fetch base, create the worktree + branch, work inside it) and record the worktree path + branch — or one of Stage 1's two legal skip reasons, verbatim — before any repository mutation.
18
+
17
19
  1. Generate/reuse `workflowSessionId`: `debug-[entity]`
18
20
  2. Load shared references:
19
21
  - `references/codebase-investigation.md`
@@ -14,6 +14,8 @@ Load `references/project-context.md` (intake sweep) before the first substantive
14
14
 
15
15
  Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
16
16
 
17
+ **Isolation Gate — before the first file edit:** execute `references/implementation-delivery.md` Stage 0–1 now (fetch base, create the worktree + branch, work inside it) and record the worktree path + branch — or one of Stage 1's two legal skip reasons, verbatim — before any repository mutation.
18
+
17
19
  Not for Flutter, React Native, web UI, generic Figma exploration, variable-only queries, or MCP troubleshooting.
18
20
 
19
21
  1. Resolve/reuse `workflowSessionId`: `design-[entity]`.
@@ -14,6 +14,8 @@ Load `references/project-context.md` (intake sweep) before the first substantive
14
14
 
15
15
  Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
16
16
 
17
+ **Isolation Gate — before the first file edit:** execute `references/implementation-delivery.md` Stage 0–1 now (fetch base, create the worktree + branch, work inside it) and record the worktree path + branch — or one of Stage 1's two legal skip reasons, verbatim — before any repository mutation.
18
+
17
19
  1. Resolve/reuse `projectId` and `workflowSessionId` (`feature-[entity]`)
18
20
  2. `recall` → load prior decisions and patterns for this area
19
21
  - Use the default recall budget: `limit <= 3`, `minImportance >= 0.7`, and `types=["critical","decision","pattern"]` unless the feature needs broader memory discovery.
@@ -14,6 +14,8 @@ Load `references/project-context.md` (intake sweep) before the first substantive
14
14
 
15
15
  Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
16
16
 
17
+ **Isolation Gate — before the first file edit:** execute `references/implementation-delivery.md` Stage 0–1 now (fetch base, create the worktree + branch, work inside it) and record the worktree path + branch — or one of Stage 1's two legal skip reasons, verbatim — before any repository mutation.
18
+
17
19
  1. Resolve or reuse `projectId` and a stable `workflowSessionId`: `general-[entity]`.
18
20
  2. Run General fallback preflight before source work: name the specialized workflow considered, the exact rejected reason, and why fallback does not change verification, mutation behavior, or memory scope. Ask the user only when the rejected workflow would change those behaviors.
19
21
  3. Recall relevant durable context with `recall`. Treat recalled memory as a lead until current source confirms it. Confirm against current source before relying on it only when the change touches the enumerated risk-domain set: public API, data loss, auth/PII, migrations, or cross-service contracts. Otherwise trust recalled memory and cite it with a one-line source note.
@@ -14,6 +14,8 @@ Load `references/project-context.md` (intake sweep) before the first substantive
14
14
 
15
15
  Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
16
16
 
17
+ **Isolation Gate — before the first file edit:** execute `references/implementation-delivery.md` Stage 0–1 now (fetch base, create the worktree + branch, work inside it) and record the worktree path + branch — or one of Stage 1's two legal skip reasons, verbatim — before any repository mutation.
18
+
17
19
  Do not execute from chat summaries, inline review comments, remembered findings, or old PR audit reports. The saved `audits/implementation/<YYYY-MM-DD implementation-audit.md>` report is the source of truth. Route fresh findings work to `workflows/implementation/implementation-audit.md`.
18
20
 
19
21
  1. Resolve/reuse `workflowSessionId`: `implementation-fix-[entity]`.
@@ -14,6 +14,8 @@ Load `references/project-context.md` (intake sweep) before the first substantive
14
14
 
15
15
  Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
16
16
 
17
+ **Isolation Gate — before the first file edit:** execute `references/implementation-delivery.md` Stage 0–1 now (fetch base, create the worktree + branch, work inside it) and record the worktree path + branch — or one of Stage 1's two legal skip reasons, verbatim — before any repository mutation.
18
+
17
19
  Reject direct use without a saved `audits/maestro/<YYYY-MM-DD maestro-audit.md>` report or a parent audit handoff that includes the same required metadata. Do not execute from chat summaries, remembered findings, inline comments, or unsaved model analysis. The saved report or parent handoff is the source of truth.
18
20
 
19
21
  1. Resolve/reuse `workflowSessionId`: `maestro-fix-[entity]`.
@@ -14,6 +14,8 @@ Load `references/project-context.md` (intake sweep) before the first substantive
14
14
 
15
15
  Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
16
16
 
17
+ **Isolation Gate — before the first file edit:** execute `references/implementation-delivery.md` Stage 0–1 now (fetch base, create the worktree + branch, work inside it) and record the worktree path + branch — or one of Stage 1's two legal skip reasons, verbatim — before any repository mutation.
18
+
17
19
  Not for findings-only review of existing flows — route to `workflows/maestro/maestro-audit.md`. Not to execute saved audit findings — route to `workflows/maestro/maestro-fix.md`. Not for app bug fixes or product behavior changes — route to `workflows/debug.md`, `workflows/feature.md`, or `workflows/requirements/requirements-audit.md`.
18
20
 
19
21
  1. Resolve/reuse `workflowSessionId`: `maestro-[entity]`.
@@ -14,6 +14,8 @@ Load `references/project-context.md` (intake sweep) before the first substantive
14
14
 
15
15
  Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
16
16
 
17
+ **Isolation Gate — before the first file edit:** execute `references/implementation-delivery.md` Stage 0–1 now (fetch base, create the worktree + branch, work inside it) and record the worktree path + branch — or one of Stage 1's two legal skip reasons, verbatim — before any repository mutation.
18
+
17
19
  Do not execute from chat summaries, screenshots alone, remembered findings, or an unsaved comparison table. The saved `audits/mobile-figma/<YYYY-MM-DD mobile-figma-audit>.md` report is the source of truth. Route fresh comparison work to `mobile-figma-audit`.
18
20
 
19
21
  1. Resolve/reuse `workflowSessionId`: `mobile-figma-fix-[entity]`.
@@ -14,6 +14,8 @@ Load `references/project-context.md` (intake sweep) before the first substantive
14
14
 
15
15
  Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
16
16
 
17
+ **Isolation Gate — before the first file edit:** execute `references/implementation-delivery.md` Stage 0–1 now (fetch base, create the worktree + branch, work inside it) and record the worktree path + branch — or one of Stage 1's two legal skip reasons, verbatim — before any repository mutation.
18
+
17
19
  1. Resolve/reuse `workflowSessionId`: `refactor-[entity]`
18
20
  2. `recall` → load architectural decisions and coupling patterns for the area
19
21
  3. Load shared references as needed:
@@ -14,6 +14,8 @@ Load `references/project-context.md` (intake sweep) before the first substantive
14
14
 
15
15
  Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
16
16
 
17
+ **Isolation Gate — before the first file edit:** execute `references/implementation-delivery.md` Stage 0–1 now (fetch base, create the worktree + branch, work inside it) and record the worktree path + branch — or one of Stage 1's two legal skip reasons, verbatim — before any repository mutation.
18
+
17
19
  Not for findings-only requirements review — route to `workflows/requirements/requirements-audit.md`. Not for broad feature design when acceptance criteria are missing — route to `workflows/spec-driven.md`.
18
20
 
19
21
  1. Resolve/reuse `workflowSessionId`: `requirements-fix-[entity]`
@@ -14,6 +14,8 @@ Load `references/project-context.md` (intake sweep) before the first substantive
14
14
 
15
15
  Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
16
16
 
17
+ **Isolation Gate — before the first file edit:** execute `references/implementation-delivery.md` Stage 0–1 now (fetch base, create the worktree + branch, work inside it) and record the worktree path + branch — or one of Stage 1's two legal skip reasons, verbatim — before any repository mutation.
18
+
17
19
  Not for findings-only security review — route to `workflows/security/security-audit.md`. Not for generic correctness fixes unless the security report identifies the correctness issue as part of an exploitable path.
18
20
 
19
21
  1. Resolve/reuse `workflowSessionId`: `security-fix-[entity]`
@@ -14,6 +14,8 @@ Load `references/project-context.md` (intake sweep) before the first substantive
14
14
 
15
15
  Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate), `references/code-annotation.md` (doc blocks, rationale, test coverage), and `references/repo-rules-discovery.md` (enforce the target repo's own `.claude/`/`.cursor/` and module/test conventions). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
16
16
 
17
+ **Isolation Gate — before the first file edit:** execute `references/implementation-delivery.md` Stage 0–1 now (fetch base, create the worktree + branch, work inside it) and record the worktree path + branch — or one of Stage 1's two legal skip reasons, verbatim — before any repository mutation.
18
+
17
19
  ## TLC v3 Flow
18
20
 
19
21
  Run the integrated TLC Spec-Driven v3 flow:
@@ -14,6 +14,8 @@ Load `references/project-context.md` (intake sweep) before the first substantive
14
14
 
15
15
  Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
16
16
 
17
+ **Isolation Gate — before the first file edit:** execute `references/implementation-delivery.md` Stage 0–1 now (fetch base, create the worktree + branch, work inside it) and record the worktree path + branch — or one of Stage 1's two legal skip reasons, verbatim — before any repository mutation.
18
+
17
19
  Not for findings-only test coverage, assertion quality, fixture health, flakiness, or regression-risk review — route to `workflows/tests/tests-audit.md`. Not for generic "write some tests" work without an audit report — route broad test planning through the relevant feature, debug, refactor, or spec-driven workflow.
18
20
 
19
21
  1. Resolve/reuse `workflowSessionId`: `tests-fix-[entity]`