mindforge-cc 11.9.1 → 11.9.3

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 (121) hide show
  1. package/.agent/CLAUDE.md +37 -13
  2. package/.agent/hooks/mindforge-block-no-verify.js +61 -13
  3. package/.agent/hooks/mindforge-config-protection.js +82 -3
  4. package/.agent/hooks/mindforge-context-monitor.js +1 -1
  5. package/.agent/hooks/mindforge-workflow-guard.js +2 -2
  6. package/.agent/hooks/run-with-flags.js +190 -20
  7. package/.agent/mindforge/browse.md +2 -2
  8. package/.agent/mindforge/checkpoint.md +1 -1
  9. package/.agent/mindforge/consult.md +1 -1
  10. package/.agent/mindforge/cost-report.md +1 -1
  11. package/.agent/mindforge/harness-audit.md +1 -1
  12. package/.agent/mindforge/orch-add-feature.md +1 -1
  13. package/.agent/mindforge/orch-build-mvp.md +1 -1
  14. package/.agent/mindforge/orch-change-feature.md +1 -1
  15. package/.agent/mindforge/orch-fix-defect.md +1 -1
  16. package/.agent/mindforge/orch-refine-code.md +1 -1
  17. package/.agent/mindforge/qa.md +2 -2
  18. package/.claude/CLAUDE.md +37 -13
  19. package/.claude/commands/mindforge/browse.md +2 -2
  20. package/.claude/commands/mindforge/checkpoint.md +1 -1
  21. package/.claude/commands/mindforge/consult.md +1 -1
  22. package/.claude/commands/mindforge/cost-report.md +1 -1
  23. package/.claude/commands/mindforge/harness-audit.md +1 -1
  24. package/.claude/commands/mindforge/orch-add-feature.md +1 -1
  25. package/.claude/commands/mindforge/orch-build-mvp.md +1 -1
  26. package/.claude/commands/mindforge/orch-change-feature.md +1 -1
  27. package/.claude/commands/mindforge/orch-fix-defect.md +1 -1
  28. package/.claude/commands/mindforge/orch-refine-code.md +1 -1
  29. package/.claude/commands/mindforge/qa.md +2 -2
  30. package/.mindforge/MINDFORGE-SCHEMA.json +126 -13
  31. package/.mindforge/config.json +4 -4
  32. package/.mindforge/engine/autonomous/headless-adapter.md +2 -2
  33. package/.mindforge/engine/cost-tracking/router.md +1 -1
  34. package/.mindforge/engine/cost-tracking/token-ledger.md +21 -24
  35. package/.mindforge/engine/temporal-protocol.md +2 -2
  36. package/.mindforge/governance/change-classifier.md +20 -4
  37. package/.mindforge/memory/sync-manifest.json +1 -1
  38. package/.mindforge/metrics/METRICS-SCHEMA.md +13 -4
  39. package/.mindforge/personas/cost-optimizer.md +2 -2
  40. package/.mindforge/personas/multi-model-bridge.md +1 -1
  41. package/.mindforge/skills/agent-architecture-audit/SKILL.md +2 -2
  42. package/.mindforge/skills/cost-aware-routing/SKILL.md +3 -3
  43. package/.mindforge/skills/multi-llm-consult/SKILL.md +2 -2
  44. package/.mindforge/skills/orch-pipeline/SKILL.md +4 -4
  45. package/CHANGELOG.md +402 -0
  46. package/MINDFORGE.md +13 -6
  47. package/README.md +51 -2
  48. package/RELEASENOTES.md +55 -2
  49. package/SECURITY.md +22 -3
  50. package/bin/autonomous/audit-writer.js +48 -33
  51. package/bin/autonomous/auto-runner.js +65 -2
  52. package/bin/change-classifier.js +151 -16
  53. package/bin/dashboard/api-router.js +28 -47
  54. package/bin/dashboard/error-response.js +44 -0
  55. package/bin/dashboard/frontend/app.js +429 -0
  56. package/bin/dashboard/frontend/index.html +14 -390
  57. package/bin/dashboard/metrics-aggregator.js +75 -30
  58. package/bin/dashboard/revops-api.js +12 -2
  59. package/bin/dashboard/server.js +245 -6
  60. package/bin/dashboard/sse-bridge.js +11 -8
  61. package/bin/dashboard/temporal-api.js +11 -5
  62. package/bin/engine/remediation-engine.js +12 -1
  63. package/bin/engine/sre-manager.js +1 -1
  64. package/bin/engine/temporal-cli.js +56 -6
  65. package/bin/engine/temporal-hub.js +41 -9
  66. package/bin/engine/verification-runner.js +134 -17
  67. package/bin/engine/verify-cli.js +25 -7
  68. package/bin/eval/eval-harness.js +212 -1
  69. package/bin/eval/golden-set-retrieval.json +9 -0
  70. package/bin/governance/approval-record.js +147 -0
  71. package/bin/governance/approve.js +12 -7
  72. package/bin/governance/policy-engine.js +41 -3
  73. package/bin/governance/policy-gate-hardened.js +36 -1
  74. package/bin/governance/verify-approvals.js +163 -0
  75. package/bin/harness-audit.js +224 -10
  76. package/bin/hindsight-injector.js +8 -2
  77. package/bin/hooks/instinct-capture-hook.js +19 -5
  78. package/bin/install.js +63 -3
  79. package/bin/installer/harness-adapter-compliance.js +339 -28
  80. package/bin/installer/hook-registration.js +504 -0
  81. package/bin/installer-core.js +451 -63
  82. package/bin/learning/instinct-cli.js +14 -24
  83. package/bin/memory/knowledge-capture.js +23 -3
  84. package/bin/memory/knowledge-graph.js +70 -31
  85. package/bin/memory/vector-hub.js +500 -44
  86. package/bin/migrations/0.6.0-to-1.0.0.js +30 -25
  87. package/bin/migrations/1.0.0-to-2.0.0.js +22 -23
  88. package/bin/mindforge-cli.js +110 -17
  89. package/bin/models/cost-tracker.js +126 -29
  90. package/bin/models/model-client.js +6 -1
  91. package/bin/models/model-router.js +28 -7
  92. package/bin/models/usage-record.js +71 -0
  93. package/bin/revops/debt-monitor.js +57 -13
  94. package/bin/security/trust-gate-hook.js +50 -6
  95. package/bin/skill-validator.js +6 -1
  96. package/bin/skills-builder/skill-scorer.js +46 -6
  97. package/bin/updater/self-update.js +6 -1
  98. package/bin/updater/version-comparator.js +21 -1
  99. package/bin/utils/file-lock.js +106 -0
  100. package/bin/utils/mindforge-params.js +124 -0
  101. package/bin/utils/mindforge-version.js +99 -0
  102. package/bin/utils/redact-secrets.js +106 -0
  103. package/bin/validate-config.js +75 -17
  104. package/bin/wizard/setup-wizard.js +4 -1
  105. package/bin/wizard/theme.js +9 -1
  106. package/changelogs/index.json +11 -9
  107. package/changelogs/v11.9.2.md +209 -0
  108. package/changelogs/v11.9.3.md +195 -0
  109. package/docs/References/config-reference.md +76 -14
  110. package/docs/References/sdk-api.md +1 -1
  111. package/docs/Templates/Codebase/architecture.md +1 -1
  112. package/docs/commands-reference.md +4 -5
  113. package/docs/faq.md +25 -5
  114. package/docs/getting-started.md +3 -3
  115. package/docs/sdk-reference.md +15 -7
  116. package/docs/troubleshooting.md +10 -6
  117. package/docs/user-guide.md +14 -14
  118. package/examples/sdk-integration/README.md +1 -1
  119. package/package.json +10 -4
  120. package/subagents/.claude-plugin/marketplace.json +1 -1
  121. package/bin/dashboard/approval-handler.js +0 -136
@@ -0,0 +1,195 @@
1
+ # Changelog
2
+
3
+ ## [11.9.3] — 2026-08-21 — Honesty: gates that can fail, commands that run, a release path that is checked
4
+
5
+ Patch release. No new features. Twenty-one fixes, and they all turned out to be the
6
+ same defect: **an instrument reported success while doing nothing.** Gates that could
7
+ not fail, tests satisfied by a comment, docs describing capabilities with no code
8
+ behind them, commands printing success while performing no action, and a publish path
9
+ that no check ever touched.
10
+
11
+ Contains behaviour changes under a patch bump — several of the things being fixed were
12
+ bugs that a consumer could have been relying on. Read BREAKING before upgrading if you
13
+ script against the CLI or the installer.
14
+
15
+ ### BREAKING
16
+
17
+ Each of these is a bug fix whose correct behaviour differs from the shipped behaviour.
18
+
19
+ - **Routed CLI commands now act on YOUR project, not MindForge's own checkout.**
20
+ `bin/mindforge-cli.js` passed `cwd: ROOT` to every routed command, so `mindforge
21
+ classify` diffed MindForge's repository instead of yours, and `mindforge health`
22
+ inspected MindForge's `node_modules`. Measured across all 27 routed commands: 7
23
+ changed behaviour, all in the correct direction, none regressed. If you parsed output
24
+ that happened to describe MindForge itself, it now describes your project. (#201)
25
+
26
+ - **`npx mindforge-cc install` — and any other positional argument — now exits 1.**
27
+ The installer takes flags only and silently ignored stray words, so
28
+ `npx mindforge-cc install` appeared to work while installing nothing configured.
29
+ It now refuses with the correct form. `--runtime`'s value token is still accepted.
30
+ Use `npx mindforge-cc --claude --local`. (#202)
31
+
32
+ - **`mindforge verify` now SKIPS unavailable stages instead of failing them.** A project
33
+ with no ESLint config, no test script or no `bin/verify-audit.js` was reported as
34
+ FAILING those stages rather than as not having them. If your CI relied on a non-zero
35
+ exit in those cases, it will now pass. A run in which every stage skipped prints a
36
+ "NOTHING WAS VERIFIED" banner rather than a clean bill of health. (#204)
37
+
38
+ - **`scripts/sync-version.js` now exits non-zero when the plugin build artifacts are
39
+ stale.** A bump used to report `✅ every derivable channel is at <version>` and exit 0
40
+ while leaving `npm test` red. If you script this, handle the new exit code — it means
41
+ "run the build chain it just printed". (#211)
42
+
43
+ - **A self-install no longer writes over your tracked files.** Running the installer
44
+ inside a MindForge checkout printed that it was skipping and then overwrote 149
45
+ tracked files, including `CLAUDE.md`, `.claude/**`, `.agent/**` and `.mindforge/**`.
46
+ The skip is now honoured for local scope. (#200)
47
+
48
+ - **Releases must be tagged on a commit reachable from `main`.** The release workflow
49
+ now refuses a tag that is not an ancestor of `origin/main`. The documented flow is
50
+ develop → release → main; tagging elsewhere previously published, with provenance
51
+ attesting to that tree. (#216)
52
+
53
+ ### Fixed
54
+
55
+ **Installer**
56
+
57
+ - A self-install claimed to skip and then overwrote 149 tracked files. The gate is now
58
+ scope-aware (`isSelfInstall() && scope === 'local'`). (#200)
59
+ - Every `--global` install reported failure on a correct run: `verifyInstall` demanded
60
+ six `bin/**` paths regardless of scope, so a global install ended
61
+ `❌ 6 of 12 required file(s) missing` and exit 1, with a `--force` retry that could
62
+ not help. A global install writes 389 files to `$HOME/.claude` and, deliberately,
63
+ zero to `bin/`. (#210)
64
+ - 11 of 27 routed CLI verbs died on `MODULE_NOT_FOUND` in a real install: the router
65
+ shipped but 6 of the scripts it dispatches to did not. `coreFiles` grew from 2 entries
66
+ to 8. (#210)
67
+ - Two leaks: `/tmp` staging files left behind on abandoned runs, and developer runtime
68
+ state (`celestial.db`, `.browser-daemon-token`) copied into consumer projects.
69
+ `SENSITIVE_EXCLUDE` now covers both. (#210)
70
+ - The forge commands overwrote three `mindforge` commands of the same name. (#197)
71
+ - The documented default install did not deliver the CLI it documents. (#196)
72
+
73
+ **Versioning and release**
74
+
75
+ - `sync-version.js --fetch-sha` hashed npm's 404 error body. For an unpublished version
76
+ the registry answers `{"error":"Not found"}` and `curl -sL` exits 0, so the digest
77
+ written into the Homebrew formula was the SHA-256 of that error text — the same
78
+ constant for every unpublished version — and `--check` then passed. Now `curl -fsSL`
79
+ plus a gzip magic-byte check, and it refuses rather than writing a digest no artifact
80
+ can match. (#203)
81
+ - The Homebrew formula may now LAG canonical but never LEAD it. Requiring equality
82
+ before publishing required something impossible: the digest is the hash of a tarball
83
+ that does not exist yet, and `npm test` blocked the publish that would have made it
84
+ satisfiable. (#208)
85
+ - Semver comparison is numeric per component. Lexicographically, `11.10.0` reads as
86
+ *behind* `11.9.2` — wrong on exactly the first release past a `.9` minor. (#208)
87
+ - Three version channels had no writer at all, so `npm test` failed on every bump and
88
+ the documented remedy could not fix it: `mcp-server/server.json` (both keys, matched
89
+ by identifier), `AGENTS.md`, and `sdk/README.md`'s second shape. (#207, #211)
90
+ - **No channel covered a document a user receives.** `SECURITY.md` — the security policy
91
+ at the root of the published package — said "Current version: 11.9.0", and
92
+ getting-started, faq, troubleshooting, user-guide and sdk-reference all titled
93
+ themselves v11.9.0: three releases stale, while every npm manifest was correct.
94
+ `--check` was green throughout, because a channel that does not exist cannot drift.
95
+ Structural markers now track canonical; narrative measurements deliberately do not.
96
+ (#211)
97
+ - A bump is not finished when `sync-version.js` exits. Two tracked artifacts are gated
98
+ against `package.json` and only a build can write them —
99
+ `plugins/mindforge/.claude-plugin/plugin.json` and
100
+ `plugins/mindforge/mcp/dist/index.js`. They are now reported under
101
+ `🔨 REQUIRE A BUILD` with the exact three-command chain, which nothing had documented.
102
+ (#211)
103
+ - `sync-version.js` reported "a channel is AHEAD of canonical" whenever its exit code
104
+ was non-zero for any reason, so the `--fetch-sha` refusal for an unpublished tarball
105
+ claimed the formula LEADS canonical in the same run that printed "DEFERRED until after
106
+ publish (behind, not ahead)". (#211)
107
+ - `changelogs/index.json`, which `bin/updater/changelog-fetcher.js` reads as the
108
+ authoritative version list, was missing 11.9.2. (#218)
109
+
110
+ **Publishing**
111
+
112
+ - **The tag push that publishes was exempt from every gate.** Publishing is triggered by
113
+ exactly one event — a `v*` tag push — and the repository's only ruleset targets
114
+ branches, so its six required checks applied to nothing on the path that ships. GitHub
115
+ cannot attach required status checks to a tag. A `preflight` job now gates it. (#216)
116
+ - The `stable` npm dist-tag was moved by hand, or not at all — it sat four releases
117
+ behind `latest` (11.8.3 against 11.9.2), so `npm i mindforge-cc@stable` delivered a
118
+ build with none of the 11.9.x fixes. The release workflow now moves it as its final
119
+ step: forward-only, prereleases skipped, and verified against npm's uncached dist-tags
120
+ endpoint rather than the CDN-cached packument. (#216)
121
+
122
+ **Dashboard**
123
+
124
+ - `--status` and `--stop` were documented in nine places and implemented in none; both
125
+ printed nothing and exited 0. Now implemented, before `express` is required, so they
126
+ work without the dependency installed. (#206)
127
+ - `--stop` identified the target by the SHAPE of its command line, which matched any
128
+ `node <anything>/dashboard/server.js` — verified against
129
+ `node /var/www/unrelated_app/dashboard/server.js`. It now resolves the script's
130
+ realpath and compares it to its own. (#206)
131
+ - `--status` printed a port it could not know: the PID file records only the pid, so it
132
+ reported whatever port that invocation happened to receive. Measured, `--status` on a
133
+ server started with `--port 7466` printed "port 7339". (#206)
134
+
135
+ **Memory**
136
+
137
+ - Every abandoned exit left a full copy of the database on disk — 1.8 GB of orphaned
138
+ `.tmp` files. (#199)
139
+ - The SDK's WebSocket client took the caller's process down on a failed reconnect. (#191)
140
+
141
+ **Verification**
142
+
143
+ - `mindforge verify`'s lint stage used `--max-warnings=0`, which made it impossible to
144
+ pass in the repository it ships from: `npx eslint .` reports 199 problems / 0 errors /
145
+ 199 warnings, so `verify` reported a lint FAILURE on a tree that is green by the
146
+ project's own contract. Aligned with the project's definition; errors still fail. (#204)
147
+ - `temporal cleanup` printed "🧹 Cleaning up old temporal snapshots..." and
148
+ "✅ Cleanup complete." with no cleanup between them. Now wired to
149
+ `TemporalHub.gc({maxSnapshots: 50, maxAgeDays: 30})` with `--dry-run` and honest
150
+ counts, including zero. (#209)
151
+
152
+ **Documentation that named things that do not exist**
153
+
154
+ - The protocol files instructed the agent to run `soul-engine.js` and
155
+ `shard-controller.js`, neither of which exists anywhere in the package. Those steps
156
+ are reasoning protocols and now say so. (#205)
157
+ - Fifteen phantom `/mindforge:` slash commands in shipped docs. A reader following
158
+ `docs/user-guide.md` typed `/mindforge:personas --list` and got nothing. They were not
159
+ typos: `.agent/workflows/` holds 130 tracked files using those exact names — an old
160
+ target layout, committed and orphaned, shipping zero files. (#209)
161
+ - Four documented CLI invocations could not be run, each verified by running it:
162
+ `npx mindforge-cc@latest install` (exit 1), `mindforge-cli.js dashboard` (exit 1),
163
+ `npx mindforge auto` in a shipped engine doc (`auto` is a slash command, never a CLI
164
+ verb), and `@mindforge <verb>`, a syntax that exists nowhere. (#213)
165
+ - `workflow` is the most-documented CLI verb in the project and works, but appeared in
166
+ neither `--help` nor the "Available commands" list, so a user who mistyped it was told
167
+ it does not exist. (#213)
168
+ - Root `CLAUDE.md` named `bin/hooks/mindforge-context-monitor.js`; the file is under
169
+ `.agent/hooks/`. (#214)
170
+
171
+ ### Added
172
+
173
+ - **`preflight` job on the release workflow.** Asserts the tagged commit is an ancestor
174
+ of `origin/main`, then runs the six gates a tag push never saw, with the publish job
175
+ behind `needs:`. (#216)
176
+ - **Automatic `stable` dist-tag movement**, forward-only and verified. (#216)
177
+ - **`node bin/dashboard/server.js --status` / `--stop`.** Not CLI verbs —
178
+ `mindforge-cli.js dashboard` does not route. (#206)
179
+ - **`mindforge temporal cleanup --dry-run`.** (#209)
180
+ - New regression gates, each falsified by mutation before being trusted:
181
+ `tests/protocol-claims.test.js` (no exemption list, deliberately — a name-keyed
182
+ allowlist was shown to excuse the exact defect it was written for), the shipped-doc
183
+ phantom-command gate, the CLI-verb gate, the authority-doc `.js` gate, the
184
+ version-channel round trips, and assertions that the release preflight itself cannot
185
+ be silently removed.
186
+
187
+ ### Notes for operators
188
+
189
+ - `npm run version:check` is the offline drift check. A bump is finished only when
190
+ `sync-version.js` exits 0 — if it prints `🔨 REQUIRE A BUILD`, run the three commands
191
+ it names and commit both regenerated files.
192
+ - Releases are now gated on being tagged from `main`. One residual, inherent to
193
+ tag-triggered workflows: a tag push resolves the workflow from the TAGGED ref, so a
194
+ tag placed on a commit predating this release runs that commit's workflow and is
195
+ ungated.
@@ -4,24 +4,86 @@
4
4
 
5
5
  ---
6
6
 
7
+ ## 0. Syntax and required keys
8
+
9
+ **Read this first.** As of 11.9.2 `node bin/validate-config.js` and
10
+ `mindforge security-scan` can actually fail — before that they reported
11
+ `0 settings configured` and exited 0 on any input, so an invalid registry passed silently.
12
+
13
+ Two syntaxes are accepted:
14
+
15
+ ```text
16
+ [PLANNER] = claude-opus-4-7 # bracketed — CANONICAL, what the shipped MINDFORGE.md uses
17
+ PLANNER_MODEL=claude-opus-4-7 # plain — legacy, still read, used by examples/starter-project
18
+ ```
19
+
20
+ Prefer the bracketed form. A bracketed key must open the line (leading whitespace is allowed)
21
+ and be followed by `=`. Prose bullets that merely mention `[KEY]` are not parsed as settings.
22
+
23
+ **These five keys are REQUIRED.** Validation exits 1 if any is missing:
24
+
25
+ | Key | Example |
26
+ | :--- | :--- |
27
+ | `[VERSION]` | `11.9.2` — must match `^\d+\.\d+\.\d+$` |
28
+ | `[REACTIVE_MODE]` | `true` |
29
+ | `[PLANNER]` | `claude-opus-4-7` |
30
+ | `[EXECUTOR]` | `claude-sonnet-4-6` |
31
+ | `[MIN_SOUL_SCORE]` | `8` (range 0–10) |
32
+
33
+ Three more are **recommended** — absent ones produce a warning, not an error:
34
+ `[COST_WARN_USD]`, `[COST_HARD_LIMIT_USD]`, `[BLOCK_ON_SECURITY]`.
35
+
36
+ > `[COST_HARD_LIMIT_USD]` is **enforced from 11.9.3** (it was declared but inert in 11.9.2).
37
+ > `preflight()` refuses the model call once today's ledger spend plus the call estimate reaches
38
+ > the limit. Because the key is *recommended* rather than *required*, an absent key — or an
39
+ > explicit `0` — leaves the cap off; a present-but-unparseable value is a hard error
40
+ > (`COST_LIMIT_MISCONFIGURED`), not a silent bypass.
41
+
42
+ ---
43
+
7
44
  ## 1. Model Configuration
8
45
 
9
46
  MindForge uses a tiered model routing system. You can specify exact models for different phases of the lifecycle.
10
47
 
11
- | Key | Description | Default |
12
- | :--- | :--- | :--- |
13
- | `PLANNER_MODEL` | Model used for task decomposition and planning. | `claude-sonnet-4-5` |
14
- | `EXECUTOR_MODEL` | Model used for code generation and implementation. | `claude-sonnet-4-5` |
15
- | `REVIEWER_MODEL` | Model used for code review and PR analysis. | `claude-opus-4-alpha` |
16
- | `VERIFIER_MODEL` | Model used for testing and UAT verification. | `claude-sonnet-4-5` |
17
- | `SECURITY_MODEL` | Model used for sensitive security scanning. | `claude-opus-4-alpha` |
18
-
19
- **Supported Values:**
20
-
21
- - `claude-opus-4-alpha` (High intelligence, slow, expensive)
22
- - `claude-sonnet-4-5` (Balanced, recommended)
23
- - `claude-haiku-4-5` (Fast, logical, best for trivial tasks)
24
- - `inherit` (Use the system-wide default)
48
+ The canonical keys are the short bracketed forms; the `*_MODEL` names are accepted aliases kept
49
+ for older configs.
50
+
51
+ | Key | Alias | Description | Shipped default |
52
+ | :--- | :--- | :--- | :--- |
53
+ | `[PLANNER]` | `PLANNER_MODEL` | Task decomposition and planning. | `claude-opus-4-7` |
54
+ | `[EXECUTOR]` | `EXECUTOR_MODEL` | Code generation and implementation. | `claude-sonnet-4-6` |
55
+ | `[REVIEWER]` | `REVIEWER_MODEL` | Code review and PR analysis. | `claude-sonnet-4-6` |
56
+ | `[VERIFIER]` | `VERIFIER_MODEL` | Testing and UAT verification. | `claude-sonnet-4-6` |
57
+ | `[SECURITY]` | `SECURITY_MODEL` | Sensitive security scanning. | `claude-opus-4-7` |
58
+ | `[DEBUG]` | — | Debugging and root-cause analysis. | `claude-opus-4-7` |
59
+
60
+ **Values are free-form strings** — the schema does not constrain them to a list, so a new model
61
+ id works without a framework upgrade. The ids shipped in `MINDFORGE.md` today are
62
+ `claude-opus-4-7`, `claude-sonnet-4-6` and `claude-haiku-4-5`; `inherit` selects the
63
+ system-wide default. Because the values are unconstrained, a typo is NOT caught by validation —
64
+ it falls through to the routing defaults.
65
+
66
+ ---
67
+
68
+ ## 1b. Numeric bounds enforced by validation
69
+
70
+ Out-of-range values now fail. These were previously documented nowhere a consumer reads.
71
+
72
+ | Key | Range | Key | Range |
73
+ | :--- | :--- | :--- | :--- |
74
+ | `MIN_SOUL_SCORE` | 0–10 | `MAX_TASKS_PER_PHASE` | 1–50 |
75
+ | `AUTO_SWARM_THRESHOLD` | 0–10 | `MIN_TEST_COVERAGE_PCT` | 0–100 |
76
+ | `DYNAMISM_LEVEL` | 1–5 | `MAX_FUNCTION_LINES` | 10–200 |
77
+ | `ADS_DEBATE_ROUNDS` | 1–10 | `MAX_CYCLOMATIC_COMPLEXITY` | 3–30 |
78
+ | `COMPACTION_THRESHOLD_PCT` | 50–90 | `MAX_FULL_SKILL_INJECTIONS` | 1–10 |
79
+ | `DASHBOARD_PORT` | 1024–65535 | `NEXUS_TRACE_RETENTION_DAYS` | 1–365 |
80
+ | `BROWSER_PORT` | 1024–65535 | `SHARD_RETAIN_DAYS` | 1–365 |
81
+ | `COST_WARN_USD` | 0–10000 | `AI_REVIEW_DAILY_LIMIT` | 0–500 |
82
+ | `COST_HARD_LIMIT_USD` | 0–10000 | `CI_MIN_COVERAGE_PCT` | 0–100 |
83
+ | `VERIFY_PASS_RATE_WARNING_THRESHOLD` | 0–1 | `DISCUSS_PHASE_REQUIRED_ABOVE_DIFFICULTY` | 1–5 |
84
+
85
+ If one of these rejects a value you consider legitimate, the bound is wrong — report it rather
86
+ than editing your registry to satisfy it.
25
87
 
26
88
  ---
27
89
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Package
4
4
 
5
- `@mindforge/sdk`
5
+ `mindforge-sdk`
6
6
 
7
7
  ## Exports
8
8
 
@@ -146,7 +146,7 @@ Template for `.mindforge/codebase/ARCHITECTURE.md` - captures conceptual code or
146
146
 
147
147
  **CLI Command Execution:**
148
148
 
149
- 1. User runs: `mindforge new-project`
149
+ 1. User runs: `mytool new-project`
150
150
  2. Commander parses args and flags
151
151
  3. Command handler invoked (`src/commands/new-project.ts`)
152
152
  4. Handler calls service methods (`src/services/project.ts` → `create()`)
@@ -131,13 +131,12 @@ High-fidelity behaviors ported from the Superpowers library and hardened for pro
131
131
 
132
132
  | Command | Description |
133
133
  | :--- | :--- |
134
- | `/mindforge:brainstorming` | Deep exploratory protocol for intent clarification and architectural ideation. |
135
- | `/mindforge:swarm-execution` | Wave-based implemention for independent, non-conflicting tasks. |
136
- | `/mindforge:parallel-mesh` | Orchestrates a mesh of agent waves with automated dependency compaction. |
134
+ | *(protocol, not a command)* | Wave-based implementation for independent tasks see `.mindforge/engine/swarm-controller.md`. |
135
+ | *(protocol, not a command)* | Mesh of agent waves with dependency compaction — see `.mindforge/engine/wave-executor.md`. |
137
136
  | `/mindforge:workspace` | Manages isolated development environments via git worktrees with smart safety checks. |
138
- | `/mindforge:tdd` | Strict Test-Driven Development (Red-Green-Refactor) with automated test generation. |
137
+ | `/mindforge:skill-tdd` | Strict Test-Driven Development (Red-Green-Refactor) with automated test generation. |
139
138
  | `/mindforge:debug` | Systematic debugging using persistent state tracking and Root Cause Analysis. |
140
- | `/mindforge:verify-work` | Multi-level truth verification protocol (substance, existence, wiring). |
139
+ | `/mindforge:verify-phase` | Multi-level truth verification protocol (substance, existence, wiring). |
141
140
  | `/mindforge:retrospective` | Facilitates structured team retrospectives with objective telemetry and metrics. |
142
141
 
143
142
  ---
package/docs/faq.md CHANGED
@@ -1,4 +1,4 @@
1
- # MindForge FAQ (v11.9.0)
1
+ # MindForge FAQ (v11.9.3)
2
2
 
3
3
  ## Is MindForge tied to Claude only?
4
4
  No. MindForge supports Claude Code and Antigravity. Install with `--claude`,
@@ -55,13 +55,21 @@ The `deep-research` workflow was removed before the v11.8.0 release (the superpo
55
55
  ## Version & Stability
56
56
 
57
57
  **Q: What version is current?**
58
- v11.9.0 — verify with `node bin/mindforge-cli.js --version`
58
+ v11.9.3 — verify with `node bin/mindforge-cli.js --version`
59
59
 
60
60
  **Q: Is v11.9.0 production-stable?**
61
61
  Yes. The IQ200 deep-audit (258 discrete checks across 14 dimensions) shows 258/258 passing. 0 CVEs, 0 test failures, 0 ESLint errors, 0 TypeScript errors.
62
62
 
63
- **Q: What npm dist-tags point to v11.9.0?**
64
- Both `latest` and `stable`: `npx mindforge-cc@stable` or `npx mindforge-cc@latest`
63
+ **Q: Which npm dist-tag should I install?**
64
+ `latest` is every published release, including patches. `stable` tracks the newest
65
+ non-prerelease and is moved by the release workflow as its final step — forward only, so it
66
+ never regresses to an older version. Prerelease builds keep their own `rc` and `alpha` tags and
67
+ never become `stable`. Use `npx mindforge-cc@latest` unless you specifically want to lag a
68
+ release behind. Check what each points at right now with `npm dist-tag ls mindforge-cc`.
69
+
70
+ > This answer deliberately names no version. It previously claimed `latest` and `stable` both
71
+ > pointed at v11.9.0; measured, they were 11.9.2 and 11.8.3 — neither. A documented invariant
72
+ > survives releases, a documented value does not.
65
73
 
66
74
  ## Known Limitations
67
75
 
@@ -72,4 +80,16 @@ Spawn dispatch is not yet implemented in v11.9.0. Use `/mindforge:auto` or `/min
72
80
  Tier-3 trust uses in-process key simulation in v11.9.0 — this is intentional and safe. `SECURITY_TIER_3_SIMULATED = true` is the documented v11.x behavior. Hardware TPM/HSM is planned for v12.x.
73
81
 
74
82
  **Q: What is the test coverage?**
75
- 95/97 tests passing (0 failures, 2 permanently env-skipped). Line coverage ~66% — gaps are in `bin/source-loader.js` and `scripts/ci/validate-assets.js`. Target is 80% for v11.9.0.
83
+ 133 test files: 131 pass, 0 failures, 2 env-dependent skips (`browser.test.js` needs a Chromium
84
+ daemon, `sre-integration.test.js` needs git worktree support and a clean tree).
85
+
86
+ The enforced floor is **30% lines**, gated in CI by the `mindforge-quality` job
87
+ (`npx c8 --check-coverage --lines 30 --exclude 'plugins/**' --exclude 'mcp-server/dist/**'`).
88
+ The measured figure is printed by that job and deliberately not restated here. The previous
89
+ answer to this question was wrong in three ways at once — a test count from a much smaller
90
+ suite, a stale coverage figure, and two named coverage gaps that were no longer the gaps — and
91
+ it stayed wrong because none of it was checked by anything. `tests/doc-count-claims.test.js`
92
+ now pins every count this file does state.
93
+
94
+ Both `--exclude` flags are load-bearing: without them c8 measured the generated `plugins/` tree
95
+ and `mcp-server/dist/` esbuild output, which understated real coverage substantially.
@@ -1,4 +1,4 @@
1
- # MindForge — Getting Started (v11.9.0)
1
+ # MindForge — Getting Started (v11.9.3)
2
2
 
3
3
  This guide gets you from zero to a working MindForge project in under five minutes.
4
4
 
@@ -108,7 +108,7 @@ Or use slash commands: `/mindforge:wf-code-audit`
108
108
  ## Your First 5 Minutes with MindForge
109
109
 
110
110
  1. **Verify install:** `node bin/mindforge-cli.js health`
111
- 2. **Check version:** `node bin/mindforge-cli.js --version` (should print `11.9.0`)
111
+ 2. **Check version:** `node bin/mindforge-cli.js --version` (should print `11.9.3`)
112
112
  3. **List workflows:** `node bin/mindforge-cli.js workflow list`
113
113
  4. **Run first slash command:** Open Claude Code → `/mindforge:status`
114
114
  5. **Onboard your codebase:** Open Claude Code → `/mindforge:wf-onboard-codebase`
@@ -140,4 +140,4 @@ MindForge operates on a high-velocity 4-pillar lifecycle:
140
140
 
141
141
  - Explore the [User Guide](user-guide.md) for advanced features.
142
142
  - Switch to a specialized [Persona](PERSONAS.md) for target tasks.
143
- - Join the community: `/mindforge:join-discord`.
143
+ - Join the community: https://github.com/sairam0424/MindForge/issues.
@@ -2,8 +2,8 @@
2
2
 
3
3
  ## Overview
4
4
 
5
- The `@mindforge/sdk` package provides a programmatic TypeScript API for integrating
6
- MindForge into tools, dashboards, and CI pipelines. Import from `@mindforge/sdk`.
5
+ The `mindforge-sdk` package provides a programmatic TypeScript API for integrating
6
+ MindForge into tools, dashboards, and CI pipelines. Import from `mindforge-sdk`.
7
7
 
8
8
  ```typescript
9
9
  import {
@@ -11,14 +11,14 @@ import {
11
11
  MindForgeEventStream,
12
12
  MindForgeMemory,
13
13
  commands,
14
- } from '@mindforge/sdk';
14
+ } from 'mindforge-sdk';
15
15
  ```
16
16
 
17
- Current SDK version: `11.9.0`
17
+ Current SDK version: `11.9.3`
18
18
 
19
19
  ---
20
20
 
21
- ## SDK Exports (v11.9.0)
21
+ ## SDK Exports (v11.9.3)
22
22
 
23
23
  ```javascript
24
24
  const {
@@ -28,7 +28,7 @@ const {
28
28
  commands, // Command registry
29
29
  batch, // Batch execution
30
30
  MindForgeMemory, // Memory interface
31
- VERSION // '11.9.0'
31
+ VERSION // '11.9.3'
32
32
  } = require('mindforge-sdk');
33
33
  // or: import { MindForgeClient, VERSION } from 'mindforge-sdk';
34
34
  ```
@@ -417,6 +417,14 @@ cd sdk && npm install && npm run build
417
417
 
418
418
  ## Installation
419
419
  ```bash
420
- npm install mindforge-sdk@11.8.0
420
+ npm install mindforge-sdk
421
421
  # or: npx mindforge-cc@stable # installs SDK as part of the framework
422
422
  ```
423
+
424
+ > **`mindforge-sdk` is versioned independently of the framework.** The release workflow
425
+ > (`.github/workflows/mindforge-release.yml`) publishes `mindforge-cc` and
426
+ > `mindforge-mcp-server` only — it has no `sdk` steps — so `sdk/package.json`'s version
427
+ > tracks the monorepo while the published package does not. At the time of writing the
428
+ > latest published SDK is **11.8.0** (`npm view mindforge-sdk versions`), even though the
429
+ > in-repo `sdk/package.json` reads 11.9.2. Install it unpinned, as above; pinning it to a
430
+ > framework version yields `E404 No match found for version …`.
@@ -1,4 +1,4 @@
1
- # MindForge Troubleshooting (v11.9.0)
1
+ # MindForge Troubleshooting (v11.9.3)
2
2
 
3
3
  This page lists common issues and fast fixes. If you get stuck, start with
4
4
  `/mindforge:health`.
@@ -117,15 +117,19 @@ rerun migration. See `.mindforge/audit/AUDIT-SCHEMA.md` for expected format.
117
117
 
118
118
  ### Protocol Step 0 fails to activate
119
119
  **Symptom:** Commands proceed without activating `_extended` skills.
120
- **Fix:** Run `/mindforge:neural-orchestrator --reset`. Ensure all `_extended` skills are present in `.agent/skills/`.
120
+ **Fix:** Ensure all `_extended` skills are present in `.agent/skills/`, then start a fresh session so the
121
+ skill loader re-reads them. There is no orchestrator reset command.
121
122
 
122
123
  ### Context drift in Parallel Mesh
123
124
  **Symptom:** Parallel agents making conflicting decisions.
124
- **Fix:** Run `/mindforge:parallel-mesh --sync`. This forces a global state re-synchronization across all active worker identities.
125
+ **Fix:** Re-synchronise by re-reading `.planning/HANDOFF.json` and `.planning/auto-state.json` before the
126
+ next wave — the mesh protocol is described in `.mindforge/engine/wave-executor.md`. It is a protocol you
127
+ follow, not a command.
125
128
 
126
129
  ### Workspace isolation failure
127
130
  **Symptom:** Conflicts between feature branches or dirty worktree.
128
- **Fix:** Run `/mindforge:workspace-isolated --cleanup`. Use `/mindforge:health --repair` if `.git/worktrees/` is corrupt.
131
+ **Fix:** Run `/mindforge:workspace` to inspect worktree state. Use `/mindforge:health --repair` if
132
+ `.git/worktrees/` is corrupt.
129
133
 
130
134
  ---
131
135
 
@@ -133,7 +137,7 @@ rerun migration. See `.mindforge/audit/AUDIT-SCHEMA.md` for expected format.
133
137
  If the above doesn’t resolve it:
134
138
  - Review `docs/user-guide.md`
135
139
  - Check `docs/security/SECURITY.md` for security issues
136
- - Open a GitHub issue or join the Discord: `/mindforge:join-discord`
140
+ - Open a GitHub issue: https://github.com/sairam0424/MindForge/issues
137
141
  - **Architecture**: `docs/architecture/V5-ENTERPRISE.md`
138
142
  - **Commands**: `docs/commands-reference.md`
139
143
  - **Personas**: `docs/PERSONAS.md`
@@ -203,4 +207,4 @@ All tests must be run from the MindForge project root: `cd /path/to/MindForge &&
203
207
 
204
208
  **Symptom:** `--version` flag reports "Unknown command" on installs older than v11.9.0.
205
209
 
206
- **Fix:** Upgrade to v11.9.0: `npx mindforge-cc@latest install`
210
+ **Fix:** Upgrade: `npx mindforge-cc@latest --claude --local`
@@ -1,8 +1,8 @@
1
- # MindForge User Guide (v11.9.0)
1
+ # MindForge User Guide (v11.9.3)
2
2
 
3
3
  This guide gets you from install to productive, with the minimum needed to run MindForge in a real project.
4
4
 
5
- > **v11.9.0 Stats:** 35 workflows · 221 slash commands · 232 engine skills · 216 personas · 0 CVEs · 258/258 IQ200 checks passing
5
+ > **v11.9.3 Stats:** 35 workflows · 221 slash commands · 232 engine skills · 216 personas · 0 CVEs · 258/258 IQ200 checks passing
6
6
 
7
7
  ## Prerequisites
8
8
 
@@ -44,7 +44,7 @@ mindforge health # Verify project integrity
44
44
  mindforge security-scan # Run security checks
45
45
  mindforge headless # Run agent in non-interactive mode
46
46
  mindforge --verbose ... # Enable verbose output for debugging
47
- mindforge --version # Print installed version (e.g. 11.9.0) and exit 0
47
+ mindforge --version # Print installed version (e.g. 11.9.3) and exit 0
48
48
  ```
49
49
 
50
50
  Use `--verbose` (or `-v`) on any command for detailed diagnostic output. Use `--version` (or `-V`) to print the installed version and exit.
@@ -127,7 +127,7 @@ MindForge features 211 specialized personas. Each persona is optimized for a spe
127
127
  To switch personas or see the full list:
128
128
 
129
129
  ```bash
130
- /mindforge:personas --list
130
+ ls .mindforge/personas/ # 216 persona briefs; there is no personas command
131
131
  ```
132
132
 
133
133
  ---
@@ -137,7 +137,7 @@ To switch personas or see the full list:
137
137
  For complex tasks that require minimal intervention:
138
138
 
139
139
  ```bash
140
- /mindforge:autonomous --phase [N]
140
+ /mindforge:auto --phase [N]
141
141
  ```
142
142
 
143
143
  Use the **Steer** command to guide logic without stopping execution:
@@ -153,7 +153,7 @@ Use the **Steer** command to guide logic without stopping execution:
153
153
  Observe your agent waves, token spend, and milestone progress in real-time.
154
154
 
155
155
  ```bash
156
- /mindforge:dashboard --start --open
156
+ /mindforge:dashboard --open
157
157
  ```
158
158
 
159
159
  The dashboard provides a premium web interface at `http://localhost:7339`.
@@ -179,7 +179,7 @@ Extend MindForge by learning from documentation or authoring custom protocols.
179
179
 
180
180
  ```bash
181
181
  /mindforge:learn https://docs.nextjs.org "nextjs-mastery"
182
- /mindforge:skill-creation # Author a new high-fidelity protocol
182
+ /mindforge:skills-index # browse the catalogue; author new skills per the guide in CLAUDE.md
183
183
  ```
184
184
 
185
185
  ---
@@ -189,7 +189,7 @@ Extend MindForge by learning from documentation or authoring custom protocols.
189
189
  MindForge features automated PR creation and commit management.
190
190
 
191
191
  ```bash
192
- /mindforge:pr-branch "feature/auth-refactor"
192
+ git switch -c feature/auth-refactor # no pr-branch command; use git, then /mindforge:pr-review
193
193
  /mindforge:ship --auto-pr
194
194
  ```
195
195
 
@@ -202,7 +202,7 @@ MindForge provides mission-critical resilience and sovereign reasoning for enter
202
202
  ### Multi-Cloud Arbitrage
203
203
  MindForge automatically hedges against provider outages and optimizes for cost/latency.
204
204
  ```bash
205
- /mindforge:settings --cloud-arbitrage on
205
+ # settings live in MINDFORGE.md as [KEY] = value; edit it, then run `mindforge security-scan`
206
206
  ```
207
207
 
208
208
  ### Sovereign Reason Enclaves (SRE)
@@ -214,8 +214,8 @@ Tier 3 (Principal) agents execute reasoning in isolated enclaves to protect sens
214
214
  ### Dynamic Human-Agent Handover & Temporal Steering (Pillar VII)
215
215
  NEXUS enables sub-second state reconstruction and **Hindsight Injection**. When an agent drifts, roll back its logic via the Dashboard's **Temporal Slider** and inject a steering vector to re-orient the wave.
216
216
  ```bash
217
- /mindforge:temporal status # View active reasoning snapshots
218
- /mindforge:temporal inject [ID] # Manual CLI-based hindsight
217
+ mindforge temporal status # View active reasoning snapshots (a CLI command)
218
+ mindforge temporal inject [ID] # Manual CLI-based hindsight
219
219
  ```
220
220
 
221
221
  ### Agentic Revenue Operations (AgRevOps) (Pillar VIII)
@@ -239,7 +239,7 @@ The **Enterprise Expansion** introduces 14 hardened protocols from the Superpowe
239
239
 
240
240
  Activate the mesh for any session:
241
241
  ```bash
242
- /mindforge:neural-orchestrator
242
+ # the orchestrator layer is a protocol in .mindforge/engine/, not a command
243
243
  ```
244
244
 
245
245
  ---
@@ -260,7 +260,7 @@ Keep your framework current with the latest personas and library updates:
260
260
 
261
261
  MindForge allows you to "time-travel" through your agent's reasoning.
262
262
 
263
- 1. **Launch the Dashboard**: `/mindforge:dashboard --start --open`
263
+ 1. **Launch the Dashboard**: `/mindforge:dashboard --open`
264
264
  2. **Navigate to 'Temporal'**: Use the horizontal slider to scrub through reasoning snapshots.
265
265
  3. **Inspect State**: View the exact memory, file diffs, and thought chain at that point in space-time.
266
266
  4. **Inject Hindsight**: If you see a logic error, use the **Hindsight Injector** form to roll back and provide a corrective "Steering Vector."
@@ -283,4 +283,4 @@ Monitor your project's economic performance in real-time via the **RevOps Hub**.
283
283
  - **USP & Roadmap**: `docs/usp-features.md`
284
284
  - **Commands**: `docs/commands-reference.md`
285
285
  - **Troubleshooting**: `docs/troubleshooting.md`
286
- - **Discord**: `/mindforge:join-discord`
286
+ - **Issues**: https://github.com/sairam0424/MindForge/issues
@@ -1,6 +1,6 @@
1
1
  # SDK Integration Example
2
2
 
3
- Demonstrates basic usage of the `@mindforge/sdk` package.
3
+ Demonstrates basic usage of the `mindforge-sdk` package.
4
4
 
5
5
  ## Prerequisites
6
6