secufusion-mcp 2.1.0 → 2.1.1

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/agents/planner.md CHANGED
@@ -60,6 +60,24 @@ There are NO circumstances under which Phase 00 can be skipped, abbreviated, or
60
60
 
61
61
  The ONLY tool calls permitted before Phase 00 completes are `prime_session`, `manage_project_spec`, and `spec_read_intent`.
62
62
 
63
+ ---
64
+
65
+ ## Phase 0.25 — Clarify and Capture Business Intent (The WHY Layer)
66
+ (TRIGGER: when a **NEW** task, feature, or bug is received that has no existing tracking)
67
+
68
+ Before thinking about *how* to implement the task, you must understand *why* it is needed.
69
+ 1. **Analyze** the requested task.
70
+ 2. **Ask** the user clarifying questions if the following are not completely clear:
71
+ - Why is this being built? What user or business problem does it solve?
72
+ - What is already there, and is this actually needed?
73
+ - What is the business risk if not delivered?
74
+ 3. **YIELD** and wait for the user to clarify the business intent. Do not proceed until the intent is clear.
75
+
76
+ Once the intent is clarified:
77
+ 1. Call `manage_task(action: "initialize", ...)` to initialize the task tracking (The HOW layer).
78
+ 2. Call `spec_create_intent(...)` to capture the clarified business intent (The WHY layer).
79
+
80
+ Only after both of these are created may you proceed to Phase 0.5.
63
81
 
64
82
  ---
65
83
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Architect a solution for a task or Jira ticket using the loaded DNA. Creates a dedicated task workspace, classifies the work, and produces a strict implementation plan awaiting your approval.
2
+ description: Architect a solution for a task or Jira ticket using the loaded DNA. Clarifies business intent, creates a dedicated task workspace, classifies the work, and produces a strict implementation plan awaiting your approval.
3
3
  argument-hint: <ticket-id or feature description> e.g. WI-123 or "add user login endpoint"
4
4
  ---
5
5
 
@@ -15,33 +15,42 @@ Task / Ticket: **$ARGUMENTS**
15
15
  2. If `DNA_LOADED` is `false` or `null`, **ABORT immediately** and tell the user:
16
16
  > ❌ Project DNA is not loaded. Please run `/sfn:init` first.
17
17
 
18
- ## Phase 1 — Initialize the Task Workspace
18
+ ## Phase 1 — Clarify and Capture Business Intent (The WHY Layer)
19
19
 
20
+ Before thinking about *how* to implement the task, you must understand *why* it is needed.
21
+ 1. Analyze the requested task.
22
+ 2. Ask the user clarifying questions if the following are not completely clear:
23
+ - Why is this being built? What user or business problem does it solve?
24
+ - What is already there, and is this actually needed?
25
+ - What is the business risk if not delivered?
26
+ 3. **YIELD** and wait for the user to clarify the business intent. Do not proceed to Phase 2 until the intent is clear.
27
+
28
+ Once the intent is clarified, call `spec_create_intent` with:
29
+ - `work_item_id`: the ticket ID or a slugified version of the description
30
+ - `title`: short human-readable title
31
+ - `business_goal`: The clarified business problem it solves.
32
+ - `acceptance_criteria`: Given/When/Then ACs gathered from the ticket/clarification.
33
+ - `services_involved`: **Polyglot service map** — list every service this touches, regardless of language (Java, Go, Python, TypeScript).
34
+ - `risk`: business risk if not delivered.
35
+
36
+ > 💡 This creates `.secufusion/intents/<num>-WI-<id>-<slug>.md` — a human-readable file capturing the WHY.
37
+
38
+ ## Phase 2 — Initialize the Task Workspace (The HOW Layer)
39
+
40
+ Now that the *why* is captured, initialize the *how* tracking.
20
41
  Call `manage_task` with:
21
42
  ```
22
43
  action: "initialize"
23
- work_item_id: <the ticket ID or a slugified version of the description>
44
+ work_item_id: <same ID as above>
24
45
  ```
25
46
  This creates the dedicated workspace folder at `.secufusion/tasks/<id>/` and begins tracking progress. Do not proceed until this call succeeds.
26
47
 
27
- ## Phase 1.5 — Capture Business Intent (The WHY Layer)
28
-
29
- Immediately after `manage_task` initializes, call `spec_create_intent` with:
30
- - `work_item_id`: same ID as above
31
- - `title`: short human-readable title
32
- - `business_goal`: **Ask the user** if not provided — "Why is this being built? What user or business problem does it solve?"
33
- - `acceptance_criteria`: Given/When/Then ACs gathered from the ticket
34
- - `services_involved`: **Polyglot service map** — list every service this touches, regardless of language (Java, Go, Python, TypeScript). This is how Go/Rust/Python services are tracked even without AST parsers.
35
- - `risk`: business risk if not delivered
36
-
37
- > 💡 This creates `.secufusion/intents/<num>-WI-<id>-<slug>.md` — a human-readable file capturing the WHY. The JSON task folder captures the HOW. Together they give a complete picture.
38
-
39
- ## Phase 2 — Load Context
48
+ ## Phase 3 — Load Context
40
49
 
41
50
  1. Call `prime_session(work_item_id: <id>)` to efficiently load the project DNA state and relevant architectural context for this specific task.
42
51
  2. Read the `.secufusion-project-spec.json` from the project root to understand the golden rules, constraints, and acceptance criteria boundaries for this project.
43
52
 
44
- ## Phase 3 — Classify the Task
53
+ ## Phase 4 — Classify the Task
45
54
 
46
55
  Call `classify_task` with the task description: **$ARGUMENTS**
47
56
 
@@ -51,7 +60,7 @@ This formally categorizes the work (Feature, Bug, Refactor, Security, Performanc
51
60
 
52
61
  Wait for explicit approval before continuing.
53
62
 
54
- ## Phase 4 — Write the Implementation Plan (After Approval)
63
+ ## Phase 5 — Write the Implementation Plan (After Approval)
55
64
 
56
65
  Read `.agents/planner.md` for the Planner Persona instructions and produce a strict, step-by-step implementation plan that includes:
57
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secufusion-mcp",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "type": "module",
5
5
  "description": "SecuFusion MCP server - developer workflow tooling with guardrails",
6
6
  "main": "mcp/dist/server.js",