mindforge-cc 2.0.0-alpha.4 → 2.0.0-alpha.7

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 (39) hide show
  1. package/.agent/CLAUDE.md +37 -7
  2. package/.agent/mindforge/dashboard.md +98 -0
  3. package/.agent/mindforge/init-project.md +12 -0
  4. package/.claude/CLAUDE.md +37 -7
  5. package/.claude/commands/mindforge/dashboard.md +98 -0
  6. package/.mindforge/dashboard/api-reference.md +122 -0
  7. package/.mindforge/dashboard/dashboard-spec.md +96 -0
  8. package/.planning/approvals/v2-architecture-approval.json +15 -0
  9. package/CHANGELOG.md +12 -2
  10. package/README.md +18 -2
  11. package/RELEASENOTES.md +1 -1
  12. package/bin/change-classifier.js +86 -0
  13. package/bin/dashboard/api-router.js +198 -0
  14. package/bin/dashboard/approval-handler.js +134 -0
  15. package/bin/dashboard/frontend/index.html +511 -0
  16. package/bin/dashboard/metrics-aggregator.js +296 -0
  17. package/bin/dashboard/server.js +135 -0
  18. package/bin/dashboard/sse-bridge.js +178 -0
  19. package/bin/dashboard/team-tracker.js +0 -0
  20. package/bin/governance/approve.js +60 -0
  21. package/bin/installer-core.js +68 -12
  22. package/bin/mindforge-cli.js +87 -0
  23. package/bin/wizard/setup-wizard.js +5 -1
  24. package/docs/Context/Master-Context.md +11 -11
  25. package/docs/architecture/README.md +2 -0
  26. package/docs/architecture/decision-records-index.md +20 -20
  27. package/docs/ci-cd.md +92 -0
  28. package/docs/commands-reference.md +1 -0
  29. package/docs/enterprise-setup.md +1 -1
  30. package/docs/feature-dashboard.md +52 -0
  31. package/docs/publishing-guide.md +16 -51
  32. package/docs/reference/commands.md +42 -42
  33. package/docs/reference/config-reference.md +2 -2
  34. package/docs/reference/sdk-api.md +1 -1
  35. package/docs/testing-current-version.md +130 -0
  36. package/docs/user-guide.md +24 -2
  37. package/docs/usp-features.md +15 -1
  38. package/docs/workflow-atlas.md +57 -0
  39. package/package.json +5 -2
@@ -6,84 +6,84 @@
6
6
 
7
7
  | Command | Usage | Description | Added |
8
8
  |---|---|---|---|
9
- | `/mindforge:init-project` | `init-project` | Guided project setup — creates all `.planning/` files | Day 1 |
10
- | `/mindforge:discuss-phase` | `discuss-phase [N] [--batch|--auto]` | Pre-planning interview to capture implementation decisions | Day 3 |
11
- | `/mindforge:plan-phase` | `plan-phase [N]` | Research, decompose, and create atomic task plans | Day 1 |
9
+ | `/mindforge:init-project` | `init-project` | Guided project setup — creates all `.planning/` files |
10
+ | `/mindforge:discuss-phase` | `discuss-phase [N] [--batch|--auto]` | Pre-planning interview to capture implementation decisions |
11
+ | `/mindforge:plan-phase` | `plan-phase [N]` | Research, decompose, and create atomic task plans |
12
12
  | `/mindforge:execute-phase` | `execute-phase [N]` | Wave-based parallel execution of all phase plans | Day 1+2 |
13
- | `/mindforge:verify-phase` | `verify-phase [N]` | Automated + human acceptance testing pipeline | Day 1 |
14
- | `/mindforge:ship` | `ship [N]` | Create PR, write release notes, push to remote | Day 1 |
15
- | `/mindforge:auto` | `auto [--phase N] [--milestone M]` | Walk-away autonomous execution with stuck detection | Day 8 |
16
- | `/mindforge:steer` | `steer "instruction"` | Inject guidance into a running autonomous session | Day 8 |
17
- | `/mindforge:next` | `next` | Auto-detect and execute the correct next workflow step | Day 2 |
18
- | `/mindforge:cross-review` | `cross-review` | Adversarial multi-model code review and synthesis | Day 10 |
19
- | `/mindforge:research` | `research "query"` | Deep research using Gemini 1.5 Pro 1M context | Day 10 |
20
- | `/mindforge:remember` | `remember [--add X|--search Y|--promote ID|--stats]` | Persistent knowledge graph management | Day 11 |
13
+ | `/mindforge:verify-phase` | `verify-phase [N]` | Automated + human acceptance testing pipeline |
14
+ | `/mindforge:ship` | `ship [N]` | Create PR, write release notes, push to remote |
15
+ | `/mindforge:auto` | `auto [--phase N] [--milestone M]` | Walk-away autonomous execution with stuck detection |
16
+ | `/mindforge:steer` | `steer "instruction"` | Inject guidance into a running autonomous session |
17
+ | `/mindforge:next` | `next` | Auto-detect and execute the correct next workflow step |
18
+ | `/mindforge:cross-review` | `cross-review` | Adversarial multi-model code review and synthesis |
19
+ | `/mindforge:research` | `research "query"` | Deep research using Gemini 1.5 Pro 1M context |
20
+ | `/mindforge:remember` | `remember [--add X|--search Y|--promote ID|--stats]` | Persistent knowledge graph management |
21
21
 
22
22
  ### Project setup & discovery
23
23
 
24
24
  | Command | Usage | Description | Added |
25
25
  |---|---|---|---|
26
- | `/mindforge:map-codebase` | `map-codebase` | Brownfield onboarding: infer stack and seed docs | Day 6 |
27
- | `/mindforge:quick` | `quick` | Run a small, single-task plan without a full phase | Day 2 |
28
- | `/mindforge:status` | `status` | Show current phase, plan status, and next action | Day 2 |
29
- | `/mindforge:health` | `health [--repair]` | Validate installation and repair drift | Day 2 |
30
- | `/mindforge:review` | `review [N]` | Run a structured review pass for a phase | Day 5 |
31
- | `/mindforge:debug` | `debug [plan-id]` | Debug a failed plan with root-cause workflow | Day 5 |
26
+ | `/mindforge:map-codebase` | `map-codebase` | Brownfield onboarding: infer stack and seed docs |
27
+ | `/mindforge:quick` | `quick` | Run a small, single-task plan without a full phase |
28
+ | `/mindforge:status` | `status` | Show current phase, plan status, and next action |
29
+ | `/mindforge:health` | `health [--repair]` | Validate installation and repair drift |
30
+ | `/mindforge:review` | `review [N]` | Run a structured review pass for a phase |
31
+ | `/mindforge:debug` | `debug [plan-id]` | Debug a failed plan with root-cause workflow |
32
32
 
33
33
  ### Governance & compliance
34
34
 
35
35
  | Command | Usage | Description | Added |
36
36
  |---|---|---|---|
37
- | `/mindforge:approve` | `approve [--tier 2|3]` | Process approvals and emergency overrides | Day 4 |
38
- | `/mindforge:audit` | `audit [--phase N] [--event X] [--since DATE]` | Query `AUDIT.jsonl` history | Day 2 |
39
- | `/mindforge:security-scan` | `security-scan [--deep] [--secrets] [--deps]` | Security scan with OWASP classification | Day 2 |
40
- | `/mindforge:milestone` | `milestone [name]` | Create or update milestone definitions | Day 4 |
41
- | `/mindforge:complete-milestone` | `complete-milestone [name]` | Archive milestone and generate release report | Day 4 |
42
- | `/mindforge:retrospective` | `retrospective [N]` | Phase retrospective and improvement actions | Day 5 |
37
+ | `/mindforge:approve` | `approve [--tier 2|3]` | Process approvals and emergency overrides |
38
+ | `/mindforge:audit` | `audit [--phase N] [--event X] [--since DATE]` | Query `AUDIT.jsonl` history |
39
+ | `/mindforge:security-scan` | `security-scan [--deep] [--secrets] [--deps]` | Security scan with OWASP classification |
40
+ | `/mindforge:milestone` | `milestone [name]` | Create or update milestone definitions |
41
+ | `/mindforge:complete-milestone` | `complete-milestone [name]` | Archive milestone and generate release report |
42
+ | `/mindforge:retrospective` | `retrospective [N]` | Phase retrospective and improvement actions |
43
43
 
44
44
  ### Skills & plugins
45
45
 
46
46
  | Command | Usage | Description | Added |
47
47
  |---|---|---|---|
48
- | `/mindforge:skills` | `skills [list|validate|refresh]` | Manage core/org/project skills | Day 3 |
49
- | `/mindforge:install-skill` | `install-skill <name> [--version]` | Install skill from registry | Day 6 |
50
- | `/mindforge:publish-skill` | `publish-skill <path>` | Publish a skill to the registry | Day 6 |
51
- | `/mindforge:plugins` | `plugins [list|install|uninstall|validate]` | Manage plugin lifecycle | Day 7 |
48
+ | `/mindforge:skills` | `skills [list|validate|refresh]` | Manage core/org/project skills |
49
+ | `/mindforge:install-skill` | `install-skill <name> [--version]` | Install skill from registry |
50
+ | `/mindforge:publish-skill` | `publish-skill <path>` | Publish a skill to the registry |
51
+ | `/mindforge:plugins` | `plugins [list|install|uninstall|validate]` | Manage plugin lifecycle |
52
52
 
53
53
  ### Intelligence & metrics
54
54
 
55
55
  | Command | Usage | Description | Added |
56
56
  |---|---|---|---|
57
- | `/mindforge:metrics` | `metrics [--phase N]` | Compute quality and throughput metrics | Day 5 |
58
- | `/mindforge:profile-team` | `profile-team` | Generate team skill and ownership profile | Day 5 |
59
- | `/mindforge:benchmark` | `benchmark [--skill X]` | Measure skill effectiveness | Day 6 |
60
- | `/mindforge:tokens` | `tokens [--profile] [--summary]` | Token usage profiling and optimisation | Day 7 |
57
+ | `/mindforge:metrics` | `metrics [--phase N]` | Compute quality and throughput metrics |
58
+ | `/mindforge:profile-team` | `profile-team` | Generate team skill and ownership profile |
59
+ | `/mindforge:benchmark` | `benchmark [--skill X]` | Measure skill effectiveness |
60
+ | `/mindforge:tokens` | `tokens [--profile] [--summary]` | Token usage profiling and optimisation |
61
61
 
62
62
  ### Integrations & distribution
63
63
 
64
64
  | Command | Usage | Description | Added |
65
65
  |---|---|---|---|
66
- | `/mindforge:init-org` | `init-org` | Org-wide MindForge setup | Day 6 |
67
- | `/mindforge:sync-jira` | `sync-jira [--project KEY]` | Sync phases and plans to Jira | Day 4 |
68
- | `/mindforge:sync-confluence` | `sync-confluence [--page ...]` | Publish docs to Confluence | Day 4 |
69
- | `/mindforge:pr-review` | `pr-review [--range A..B]` | AI PR review with context | Day 6 |
70
- | `/mindforge:workspace` | `workspace [detect|plan|test]` | Monorepo workspace management | Day 6 |
71
- | `/mindforge:browse` | `browse [--navigate URL] [--command]` | Control persistent browser daemon and sessions | Day 9 |
72
- | `/mindforge:qa` | `qa [--diff] [--all]` | Run systematic visual QA and regression tests | Day 9 |
66
+ | `/mindforge:init-org` | `init-org` | Org-wide MindForge setup |
67
+ | `/mindforge:sync-jira` | `sync-jira [--project KEY]` | Sync phases and plans to Jira |
68
+ | `/mindforge:sync-confluence` | `sync-confluence [--page ...]` | Publish docs to Confluence |
69
+ | `/mindforge:pr-review` | `pr-review [--range A..B]` | AI PR review with context |
70
+ | `/mindforge:workspace` | `workspace [detect|plan|test]` | Monorepo workspace management |
71
+ | `/mindforge:browse` | `browse [--navigate URL] [--command]` | Control persistent browser daemon and sessions |
72
+ | `/mindforge:qa` | `qa [--diff] [--all]` | Run systematic visual QA and regression tests |
73
73
 
74
74
  ### Release & maintenance
75
75
 
76
76
  | Command | Usage | Description | Added |
77
77
  |---|---|---|---|
78
- | `/mindforge:update` | `update [--apply] [--force] [--check]` | Check for and apply framework updates | Day 7 |
79
- | `/mindforge:migrate` | `migrate [--from vX] [--to vY] [--dry-run]` | Run schema migrations | Day 7 |
80
- | `/mindforge:release` | `release [--tag vX]` | Framework release pipeline (core team) | Day 7 |
78
+ | `/mindforge:update` | `update [--apply] [--force] [--check]` | Check for and apply framework updates |
79
+ | `/mindforge:migrate` | `migrate [--from vX] [--to vY] [--dry-run]` | Run schema migrations |
80
+ | `/mindforge:release` | `release [--tag vX]` | Framework release pipeline (core team) |
81
81
 
82
82
  ### Utility
83
83
 
84
84
  | Command | Usage | Description | Added |
85
85
  |---|---|---|---|
86
- | `/mindforge:help` | `help` | Show all available commands and current project status | Day 1 |
86
+ | `/mindforge:help` | `help` | Show all available commands and current project status |
87
87
 
88
88
  ## Command interface contract (v1.0.0 stable)
89
89
 
@@ -44,12 +44,12 @@ Unavailable values fallback to `inherit` with a warning.
44
44
  - `ANTIPATTERN_SENSITIVITY`
45
45
  - `BLOCK_ON_HIGH_ANTIPATTERNS`
46
46
 
47
- ## Token settings (Day 7)
47
+ ## Token settings
48
48
  - `TOKEN_WARN_THRESHOLD`
49
49
  - `TOKEN_LEAN_MODE`
50
50
  - `TOKEN_MAX_FILE_LINES`
51
51
 
52
- ## Update settings (Day 7)
52
+ ## Update settings
53
53
  - `MINDFORGE_AUTO_CHECK_UPDATES` (true/false)
54
54
 
55
55
  ## Non-overridable rules
@@ -11,7 +11,7 @@ From `sdk/src/index.ts`:
11
11
  - `MindForgeClient`
12
12
  - `MindForgeEventStream`
13
13
  - `commands`
14
- - `MindForgeMemory` (Day 11)
14
+ - `MindForgeMemory`
15
15
  - Types: `MindForgeConfig`, `PhaseResult`, `TaskResult`, `SecurityFinding`,
16
16
  `GateResult`, `HealthReport`, `HealthIssue`, `MindForgeEvent`, `CommandOptions`
17
17
  - `VERSION`
@@ -0,0 +1,130 @@
1
+ # MindForge v2.0.0-alpha.7: In-Depth Testing Guide (Antigravity)
2
+
3
+ This document provides a step-by-step rigorous testing flow to validate the entire MindForge framework from a blank project state. It is designed to be shared and logged for architectural review.
4
+
5
+ ## 🏁 Phase 0: Isolated Setup
6
+ 1. Create a new empty directory (e.g., `Mind-Forge-Test`): `mkdir Mind-Forge-Test && cd Mind-Forge-Test`
7
+ 2. **Linked Alpha Testing** (Simulated Live Publish):
8
+ - Use the **Absolute Binary Path** to bypass shell PATH configuration issues:
9
+ ```bash
10
+ /Users/sairamugge/.vite-plus/js_runtime/node/24.14.0/bin/mindforge-cc --antigravity --local
11
+ ```
12
+ - *Confirmation*: Run the command with `--version`. It must show `v2.0.0-alpha.7`.
13
+ 3. Verify the local binary exists: `ls agents/bin/install.js` (or `.agent/bin/install.js` if legacy)
14
+
15
+ ## 🏗 Phase 1: Registry & Integrity
16
+ **Objective**: Verify that MindForge correctly registers the project and mirrors commands.
17
+
18
+ **Command**:
19
+ ```bash
20
+ ./mindforge:init-project
21
+ ```
22
+
23
+ **Post-Init Verification**:
24
+ - Check `.claude/commands/mindforge/` and `.agent/commands/mindforge/`. They should be identical.
25
+ - Verify the project is in the global registry (optional):
26
+ ```bash
27
+ cat ~/.mindforge/registry.json
28
+ ```
29
+ **Prompt to Agent**:
30
+ > "Initialize this project for me. I am building a simple 'Weather Proxy API' in Node.js. Please set up the `.planning/` directory and registry."
31
+
32
+ **Success Criteria**:
33
+ - `.planning/PROJECT.md` is created with the Weather Proxy brief.
34
+ - `.mindforge/` metadata directory is populated.
35
+
36
+ ## 📝 Phase 2: Workflow & Planning
37
+ **Objective**: Test the planning engine and dependency mapping.
38
+
39
+ **Prompt to Agent**:
40
+ > "I need a plan to implement the weather service. Phase 1 should handle the API structure, Phase 2 should handle the weather fetching logic, and Phase 3 should add caching. Generate a detailed plan for Phase 1."
41
+
42
+ **Command**:
43
+ ```bash
44
+ /mindforge:plan-phase 1
45
+ ```
46
+
47
+ **Success Criteria**:
48
+ - `.planning/phases/phase-1/PLAN.md` is generated.
49
+ - Plan status is set to `[ ]` in `task.md`.
50
+
51
+ ## 🤖 Phase 3: Autonomous Execution (The "Walk-Away" Test)
52
+ **Objective**: Test the `/mindforge:auto` engine and state management.
53
+
54
+ **Command**:
55
+ ```bash
56
+ /mindforge:auto --phase 1
57
+ ```
58
+
59
+ **Success Criteria**:
60
+ - MindForge iterates through tasks without human intervention.
61
+ - Code is written to the project (e.g., `index.js`, `routes/`).
62
+ - `.planning/AUDIT.jsonl` is logging every execution step.
63
+
64
+ ## 📊 Phase 4: Observability (Dashboard)
65
+ **Objective**: Test the Real-time Dashboard and SSE Bridge.
66
+
67
+ **Command**:
68
+ ```bash
69
+ /mindforge:dashboard --start --open
70
+ ```
71
+
72
+ **Testing Steps**:
73
+ 1. Keep the dashboard open at `http://localhost:7339`.
74
+ 2. Run another command (e.g., `/mindforge:health`).
75
+ 3. Verify that the "Activity Feed" in the browser updates instantly.
76
+ 4. Check the "Metrics" tab for token spend data.
77
+
78
+ ## 🧠 Phase 5: Persistent Memory
79
+ **Objective**: Test the Knowledge Graph retrieval.
80
+
81
+ **Command**:
82
+ ```bash
83
+ /mindforge:remember --search "api structure"
84
+ ```
85
+
86
+ **Success Criteria**:
87
+ - MindForge returns findings from the earlier `/mindforge:init-project` or `/mindforge:plan-phase` steps.
88
+
89
+ ## ⚔️ Phase 6: Multi-Model Hardening
90
+ **Objective**: Test the adversarial cross-review system.
91
+
92
+ **Command**:
93
+ ```bash
94
+ /mindforge:cross-review
95
+ ```
96
+
97
+ **Success Criteria**:
98
+ - MindForge invokes secondary models (GPT/Gemini) to critique the code generated in Phase 3.
99
+ - Review results are logged in `review_results.md`.
100
+
101
+ ## 🚢 Phase 7: Verification & Shipping
102
+ **Objective**: Test the quality gates and release automation.
103
+
104
+ **Commands**:
105
+ ```bash
106
+ /mindforge:verify-phase 1
107
+ /mindforge:ship 1
108
+ ```
109
+
110
+ **Success Criteria**:
111
+ - `CHANGELOG.md` is updated.
112
+ - A PR-ready diff is generated.
113
+
114
+ ---
115
+
116
+ ## 🛡 Phase 8: Framework Conflict Check
117
+ **Objective**: Ensure MindForge is isolated from other frameworks.
118
+
119
+ 1. **Port Check**: Verify the dashboard is on `7339` and not conflicting with common framework ports (e.g., 8000, 8080).
120
+ 2. **Directory Check**: Ensure no other framework is writing to `.planning/` or `.mindforge/`.
121
+ 3. **Process Check**: Run `ps aux | grep mindforge` to ensure only one instance of the SSE bridge is active.
122
+
123
+ ## 📂 Logging for Review
124
+ All Antigravity sessions are logged. To share your results for review, zip and send:
125
+ - `.planning/AUDIT.jsonl` (Full execution history)
126
+ - `CHANGELOG.md` (Outcome summary)
127
+ ## 💡 Troubleshooting
128
+ - **Command not found**: Ensure you are using `./mindforge:command` or `/mindforge:command` within the agent.
129
+ - **Wrong Version**: Run `/mindforge:health` and check for "v2.0.0-alpha.7". If it shows "v1.0.5", your installation failed or you are using the global `npx` version.
130
+ - **Registry Error**: Check `~/.mindforge/registry.json` exists; it is now automatically created by the v2 installer.
@@ -1,4 +1,4 @@
1
- # MindForge User Guide (v2.0.0-alpha.4)
1
+ # MindForge User Guide (v2.0.0-alpha.7)
2
2
 
3
3
  This guide gets you from install to productive, with the minimum needed to run
4
4
  MindForge in a real project. It assumes Node.js 18+.
@@ -152,7 +152,29 @@ Relevant memories are automatically loaded at the start of every session, provid
152
152
 
153
153
  ---
154
154
 
155
- ## 10. Update and migration
155
+ ## 10. Real-time Dashboard (v2)
156
+ MindForge provides a premium web-based dashboard for real-time observability of your agent waves, metrics, and team activity.
157
+
158
+ ### Start the Dashboard
159
+ ```bash
160
+ /mindforge:dashboard --start --open
161
+ ```
162
+ This will start the Express-based SSE bridge and open `http://localhost:7339` in your default browser.
163
+
164
+ ### Features
165
+ - **Live Activity**: Real-time stream of audit logs and agent status.
166
+ - **Metrics & Costs**: Live visualization of token spend and session quality.
167
+ - **Browser Governance**: Approve or reject Tier 2/3 changes directly from the UI.
168
+ - **Team Feed**: See what other agents are doing in a multi-agent environment.
169
+
170
+ ### Stop the Dashboard
171
+ ```bash
172
+ /mindforge:dashboard --stop
173
+ ```
174
+
175
+ ---
176
+
177
+ ## 11. Update and migration
156
178
  ### Check for updates
157
179
  ```
158
180
  /mindforge:update
@@ -1,4 +1,4 @@
1
- # MindForge v2.0.0 — Unique Selling Points, Features, and Best Practices (v2.0.0-alpha.4)
1
+ # MindForge v2.0.0 — Unique Selling Points, Features, and Best Practices (v2.0.0-alpha.7)
2
2
 
3
3
  This document summarizes what makes MindForge v2.0.0 distinct, what features
4
4
  are included in the latest alpha release, and how to use them effectively.
@@ -43,6 +43,9 @@ are included in the latest alpha release, and how to use them effectively.
43
43
  11. **Persistent Knowledge Graph (v2)**
44
44
  - Captures and ranks engineering context (decisions, bug patterns, preferences) across project sessions using TF-IDF and confidence reinforcement.
45
45
 
46
+ 12. **Real-time Observability Dashboard (v2)**
47
+ - High-fidelity web interface for live audit streams, metrics visualization, and browser-based governance with zero performance overhead.
48
+
46
49
  ---
47
50
 
48
51
  ## Feature Set (v1.0.0)
@@ -200,6 +203,17 @@ preserving scope (local vs global).
200
203
 
201
204
  ---
202
205
 
206
+ ### 16. Real-time Dashboard (v2)
207
+ **What it does:** Web-based control plane for observing agent waves, costs, and quality metrics in real-time.
208
+
209
+ **How to use:**
210
+ ```bash
211
+ /mindforge:dashboard --start --open
212
+ ```
213
+ Access at `http://localhost:7339` (Localhost-only for security).
214
+
215
+ ---
216
+
203
217
  ### 15. SDK (TypeScript)
204
218
  **What it does:** Programmatic access to health, audit log, event stream, and commands.
205
219
 
@@ -0,0 +1,57 @@
1
+ # 🗺️ MindForge Workflow Atlas
2
+
3
+ This document classifies every workflow and action in the MindForge `.github/` directory, explaining their triggers, roles, and governance tiers.
4
+
5
+ ---
6
+
7
+ ## 🏗️ The 5-Layer Plane Architecture (v2.0.0 — Recommended)
8
+
9
+ These workflows form the modular "Beast" architecture implemented for enterprise-grade autonomy.
10
+
11
+ ### 1. Control Plane (`control-plane.yml`)
12
+ - **Primary Trigger**: `push` or `pull_request` to `main` or `develop`.
13
+ - **Role**: The Central Nervous System. It runs the `change-classifier.js` to assign a **Governance Tier (1-3)**. It enforces security gates and routes execution to other planes.
14
+ - **Priority**: High. This is the non-bypassable entry point.
15
+
16
+ ### 2. Execution Plane (`execution-plane.yml`)
17
+ - **Primary Trigger**: `workflow_call` (Exclusively invoked by the Control Plane).
18
+ - **Role**: The Muscle. It handles the environment setup, project health checks (`mindforge-cli.js health`), and executes the agent in `--headless` mode.
19
+ - **Verification**: Runs `npm test` and `npm run lint`.
20
+
21
+ ### 3. AI Intelligence Layer (`ai-intelligence.yml`)
22
+ - **Primary Trigger**: `workflow_call` (Invoked by Control Plane specifically on Pull Requests).
23
+ - **Role**: The Brain. Performs adversarial code reviews using **Claude** and **GPT-4o**. Posts a combined architectural review as a PR comment.
24
+
25
+ ### 4. Release Plane (`release-plane.yml`)
26
+ - **Primary Trigger**: `push` of a version tag (e.g., `git push origin v1.2.3`).
27
+ - **Role**: The Logistics. Automates building the package, publishing to **npm**, and drafting a GitHub Release with changelogs.
28
+
29
+ ### 5. Observability Plane (`observability-plane.yml`)
30
+ - **Primary Trigger**: `workflow_run` (Auto-runs whenever the "MindForge Control Plane" completes).
31
+ - **Role**: The Memory. Collects metrics on token costs, success rates, and audit logs to generate a summary of CI effectiveness.
32
+
33
+ ---
34
+
35
+ ## 🏛️ Maintenance & Legacy Workflows
36
+
37
+ These are existing workflows that provide secondary check-points or manual controls.
38
+
39
+ | Workflow | Trigger | Role | Status |
40
+ | :--- | :--- | :--- | :--- |
41
+ | `mindforge-ci.yml` | `push` to `main` or `feat/**` | Basic health/test check for feature branches. | **Active** |
42
+ | `mindforge-autonomous.yml` | `schedule` (Daily) or Manual | Runs deep maintenance or long-running tasks. | **Active** |
43
+ | `mindforge-ai-review.yml` | PR Label: `needs-review` | Label-triggered deep AI review. | **Fallback** |
44
+ | `mindforge-release.yml` | Tag: `v*` | Original release script. | **Redundant** |
45
+ | `mindforge-observability.yml`| `workflow_run` of "Core CI" | Original observability collector. | **Redundant** |
46
+
47
+ ---
48
+
49
+ ## 🚦 Trigger Logic Summary
50
+
51
+ | Event | Workflow Triggered | Primary Action |
52
+ | :--- | :--- | :--- |
53
+ | **New PR** | `control-plane.yml` | Classify → Security Scan → AI PR Review |
54
+ | **Commit to main** | `control-plane.yml` | Governance check → Execution |
55
+ | **Push Tag (v*)** | `release-plane.yml` | Publish to npm → Create GitHub Release |
56
+ | **Manual Reset** | `mindforge-autonomous.yml` | Run /mindforge:auto on specific phase |
57
+ | **Midnight** | `mindforge-autonomous.yml` | Daily health & autonomous cleanup |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindforge-cc",
3
- "version": "2.0.0-alpha.4",
3
+ "version": "2.0.0-alpha.7",
4
4
  "description": "MindForge - Enterprise Agentic Framework for Claude Code and Antigravity",
5
5
  "bin": {
6
6
  "mindforge-cc": "bin/install.js"
@@ -44,5 +44,8 @@
44
44
  },
45
45
  "engines": {
46
46
  "node": ">=18.0.0"
47
+ },
48
+ "dependencies": {
49
+ "express": "^4.19.2"
47
50
  }
48
- }
51
+ }