mindforge-cc 1.0.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.
Files changed (324) hide show
  1. package/.agent/CLAUDE.md +462 -0
  2. package/.agent/forge/help.md +7 -0
  3. package/.agent/forge/init-project.md +32 -0
  4. package/.agent/forge/plan-phase.md +30 -0
  5. package/.agent/mindforge/approve.md +18 -0
  6. package/.agent/mindforge/audit.md +30 -0
  7. package/.agent/mindforge/benchmark.md +33 -0
  8. package/.agent/mindforge/complete-milestone.md +18 -0
  9. package/.agent/mindforge/debug.md +126 -0
  10. package/.agent/mindforge/discuss-phase.md +138 -0
  11. package/.agent/mindforge/execute-phase.md +165 -0
  12. package/.agent/mindforge/health.md +21 -0
  13. package/.agent/mindforge/help.md +23 -0
  14. package/.agent/mindforge/init-org.md +131 -0
  15. package/.agent/mindforge/init-project.md +155 -0
  16. package/.agent/mindforge/install-skill.md +15 -0
  17. package/.agent/mindforge/map-codebase.md +298 -0
  18. package/.agent/mindforge/metrics.md +22 -0
  19. package/.agent/mindforge/migrate.md +40 -0
  20. package/.agent/mindforge/milestone.md +12 -0
  21. package/.agent/mindforge/next.md +105 -0
  22. package/.agent/mindforge/plan-phase.md +125 -0
  23. package/.agent/mindforge/plugins.md +40 -0
  24. package/.agent/mindforge/pr-review.md +41 -0
  25. package/.agent/mindforge/profile-team.md +23 -0
  26. package/.agent/mindforge/publish-skill.md +19 -0
  27. package/.agent/mindforge/quick.md +135 -0
  28. package/.agent/mindforge/release.md +10 -0
  29. package/.agent/mindforge/retrospective.md +26 -0
  30. package/.agent/mindforge/review.md +157 -0
  31. package/.agent/mindforge/security-scan.md +233 -0
  32. package/.agent/mindforge/ship.md +100 -0
  33. package/.agent/mindforge/skills.md +141 -0
  34. package/.agent/mindforge/status.md +104 -0
  35. package/.agent/mindforge/sync-confluence.md +11 -0
  36. package/.agent/mindforge/sync-jira.md +12 -0
  37. package/.agent/mindforge/tokens.md +8 -0
  38. package/.agent/mindforge/update.md +42 -0
  39. package/.agent/mindforge/verify-phase.md +62 -0
  40. package/.agent/mindforge/workspace.md +29 -0
  41. package/.claude/CLAUDE.md +462 -0
  42. package/.claude/commands/forge/help.md +7 -0
  43. package/.claude/commands/forge/init-project.md +32 -0
  44. package/.claude/commands/forge/plan-phase.md +30 -0
  45. package/.claude/commands/mindforge/approve.md +18 -0
  46. package/.claude/commands/mindforge/audit.md +30 -0
  47. package/.claude/commands/mindforge/benchmark.md +33 -0
  48. package/.claude/commands/mindforge/complete-milestone.md +18 -0
  49. package/.claude/commands/mindforge/debug.md +126 -0
  50. package/.claude/commands/mindforge/discuss-phase.md +138 -0
  51. package/.claude/commands/mindforge/execute-phase.md +165 -0
  52. package/.claude/commands/mindforge/health.md +21 -0
  53. package/.claude/commands/mindforge/help.md +23 -0
  54. package/.claude/commands/mindforge/init-org.md +131 -0
  55. package/.claude/commands/mindforge/init-project.md +155 -0
  56. package/.claude/commands/mindforge/install-skill.md +15 -0
  57. package/.claude/commands/mindforge/map-codebase.md +298 -0
  58. package/.claude/commands/mindforge/metrics.md +22 -0
  59. package/.claude/commands/mindforge/migrate.md +40 -0
  60. package/.claude/commands/mindforge/milestone.md +12 -0
  61. package/.claude/commands/mindforge/next.md +105 -0
  62. package/.claude/commands/mindforge/plan-phase.md +125 -0
  63. package/.claude/commands/mindforge/plugins.md +40 -0
  64. package/.claude/commands/mindforge/pr-review.md +41 -0
  65. package/.claude/commands/mindforge/profile-team.md +23 -0
  66. package/.claude/commands/mindforge/publish-skill.md +19 -0
  67. package/.claude/commands/mindforge/quick.md +135 -0
  68. package/.claude/commands/mindforge/release.md +10 -0
  69. package/.claude/commands/mindforge/retrospective.md +26 -0
  70. package/.claude/commands/mindforge/review.md +157 -0
  71. package/.claude/commands/mindforge/security-scan.md +233 -0
  72. package/.claude/commands/mindforge/ship.md +100 -0
  73. package/.claude/commands/mindforge/skills.md +141 -0
  74. package/.claude/commands/mindforge/status.md +104 -0
  75. package/.claude/commands/mindforge/sync-confluence.md +11 -0
  76. package/.claude/commands/mindforge/sync-jira.md +12 -0
  77. package/.claude/commands/mindforge/tokens.md +8 -0
  78. package/.claude/commands/mindforge/update.md +42 -0
  79. package/.claude/commands/mindforge/verify-phase.md +62 -0
  80. package/.claude/commands/mindforge/workspace.md +29 -0
  81. package/.forge/org/CONVENTIONS.md +0 -0
  82. package/.forge/org/ORG.md +0 -0
  83. package/.forge/org/SECURITY.md +0 -0
  84. package/.forge/org/TOOLS.md +0 -0
  85. package/.forge/personas/analyst.md +0 -0
  86. package/.forge/personas/architect.md +0 -0
  87. package/.forge/personas/debug-specialist.md +0 -0
  88. package/.forge/personas/developer.md +26 -0
  89. package/.forge/personas/qa-engineer.md +0 -0
  90. package/.forge/personas/release-manager.md +0 -0
  91. package/.forge/personas/security-reviewer.md +33 -0
  92. package/.forge/personas/tech-writer.md +0 -0
  93. package/.forge/skills/api-design/SKILL.md +0 -0
  94. package/.forge/skills/code-quality/SKILL.md +0 -0
  95. package/.forge/skills/documentation/SKILL.md +0 -0
  96. package/.forge/skills/security-review/SKILL.md +23 -0
  97. package/.forge/skills/testing-standards/SKILL.md +27 -0
  98. package/.github/workflows/mindforge-ci.yml +224 -0
  99. package/.gitlab-ci-mindforge.yml +18 -0
  100. package/.mindforge/MINDFORGE-SCHEMA.json +165 -0
  101. package/.mindforge/audit/AUDIT-SCHEMA.md +451 -0
  102. package/.mindforge/ci/ci-config-schema.md +21 -0
  103. package/.mindforge/ci/ci-mode.md +179 -0
  104. package/.mindforge/ci/github-actions-adapter.md +224 -0
  105. package/.mindforge/ci/gitlab-ci-adapter.md +31 -0
  106. package/.mindforge/ci/jenkins-adapter.md +44 -0
  107. package/.mindforge/distribution/registry-client.md +166 -0
  108. package/.mindforge/distribution/registry-schema.md +96 -0
  109. package/.mindforge/distribution/skill-publisher.md +44 -0
  110. package/.mindforge/distribution/skill-validator.md +74 -0
  111. package/.mindforge/engine/compaction-protocol.md +182 -0
  112. package/.mindforge/engine/context-injector.md +128 -0
  113. package/.mindforge/engine/dependency-parser.md +113 -0
  114. package/.mindforge/engine/skills/conflict-resolver.md +69 -0
  115. package/.mindforge/engine/skills/loader.md +184 -0
  116. package/.mindforge/engine/skills/registry.md +98 -0
  117. package/.mindforge/engine/skills/versioning.md +75 -0
  118. package/.mindforge/engine/verification-pipeline.md +111 -0
  119. package/.mindforge/engine/wave-executor.md +235 -0
  120. package/.mindforge/governance/GOVERNANCE-CONFIG.md +17 -0
  121. package/.mindforge/governance/approval-workflow.md +37 -0
  122. package/.mindforge/governance/change-classifier.md +63 -0
  123. package/.mindforge/governance/compliance-gates.md +31 -0
  124. package/.mindforge/integrations/confluence.md +27 -0
  125. package/.mindforge/integrations/connection-manager.md +163 -0
  126. package/.mindforge/integrations/github.md +25 -0
  127. package/.mindforge/integrations/gitlab.md +13 -0
  128. package/.mindforge/integrations/jira.md +102 -0
  129. package/.mindforge/integrations/slack.md +41 -0
  130. package/.mindforge/intelligence/antipattern-detector.md +75 -0
  131. package/.mindforge/intelligence/difficulty-scorer.md +55 -0
  132. package/.mindforge/intelligence/health-engine.md +208 -0
  133. package/.mindforge/intelligence/skill-gap-analyser.md +40 -0
  134. package/.mindforge/intelligence/smart-compaction.md +71 -0
  135. package/.mindforge/metrics/METRICS-SCHEMA.md +42 -0
  136. package/.mindforge/metrics/quality-tracker.md +32 -0
  137. package/.mindforge/monorepo/cross-package-planner.md +114 -0
  138. package/.mindforge/monorepo/dependency-graph-builder.md +32 -0
  139. package/.mindforge/monorepo/workspace-detector.md +129 -0
  140. package/.mindforge/org/CONVENTIONS.md +62 -0
  141. package/.mindforge/org/ORG.md +51 -0
  142. package/.mindforge/org/SECURITY.md +50 -0
  143. package/.mindforge/org/TOOLS.md +53 -0
  144. package/.mindforge/org/integrations/INTEGRATIONS-CONFIG.md +58 -0
  145. package/.mindforge/org/skills/MANIFEST.md +38 -0
  146. package/.mindforge/personas/analyst.md +52 -0
  147. package/.mindforge/personas/architect.md +75 -0
  148. package/.mindforge/personas/debug-specialist.md +52 -0
  149. package/.mindforge/personas/developer.md +85 -0
  150. package/.mindforge/personas/overrides/README.md +85 -0
  151. package/.mindforge/personas/qa-engineer.md +61 -0
  152. package/.mindforge/personas/release-manager.md +76 -0
  153. package/.mindforge/personas/security-reviewer.md +91 -0
  154. package/.mindforge/personas/tech-writer.md +51 -0
  155. package/.mindforge/plugins/PLUGINS-MANIFEST.md +23 -0
  156. package/.mindforge/plugins/plugin-loader.md +93 -0
  157. package/.mindforge/plugins/plugin-registry.md +44 -0
  158. package/.mindforge/plugins/plugin-schema.md +68 -0
  159. package/.mindforge/pr-review/ai-reviewer.md +266 -0
  160. package/.mindforge/pr-review/finding-formatter.md +46 -0
  161. package/.mindforge/pr-review/review-prompt-templates.md +44 -0
  162. package/.mindforge/production/compatibility-layer.md +39 -0
  163. package/.mindforge/production/migration-engine.md +52 -0
  164. package/.mindforge/production/production-checklist.md +165 -0
  165. package/.mindforge/production/token-optimiser.md +68 -0
  166. package/.mindforge/skills/accessibility/SKILL.md +106 -0
  167. package/.mindforge/skills/api-design/SKILL.md +98 -0
  168. package/.mindforge/skills/code-quality/SKILL.md +88 -0
  169. package/.mindforge/skills/data-privacy/SKILL.md +126 -0
  170. package/.mindforge/skills/database-patterns/SKILL.md +192 -0
  171. package/.mindforge/skills/documentation/SKILL.md +91 -0
  172. package/.mindforge/skills/incident-response/SKILL.md +180 -0
  173. package/.mindforge/skills/performance/SKILL.md +120 -0
  174. package/.mindforge/skills/security-review/SKILL.md +83 -0
  175. package/.mindforge/skills/testing-standards/SKILL.md +97 -0
  176. package/.mindforge/team/TEAM-PROFILE.md +42 -0
  177. package/.mindforge/team/multi-handoff.md +23 -0
  178. package/.mindforge/team/profiles/README.md +13 -0
  179. package/.mindforge/team/session-merger.md +18 -0
  180. package/.planning/ARCHITECTURE.md +0 -0
  181. package/.planning/AUDIT.jsonl +0 -0
  182. package/.planning/HANDOFF.json +28 -0
  183. package/.planning/PROJECT.md +33 -0
  184. package/.planning/RELEASE-CHECKLIST.md +68 -0
  185. package/.planning/REQUIREMENTS.md +0 -0
  186. package/.planning/ROADMAP.md +0 -0
  187. package/.planning/STATE.md +31 -0
  188. package/.planning/approvals/.gitkeep +1 -0
  189. package/.planning/archive/.gitkeep +1 -0
  190. package/.planning/audit-archive/.gitkeep +1 -0
  191. package/.planning/decisions/.gitkeep +0 -0
  192. package/.planning/decisions/ADR-001-handoff-tracking.md +41 -0
  193. package/.planning/decisions/ADR-002-markdown-commands.md +46 -0
  194. package/.planning/decisions/ADR-003-skills-trigger-model.md +37 -0
  195. package/.planning/decisions/ADR-004-wave-parallelism-model.md +45 -0
  196. package/.planning/decisions/ADR-005-append-only-audit-log.md +51 -0
  197. package/.planning/decisions/ADR-006-tiered-skills-system.md +22 -0
  198. package/.planning/decisions/ADR-007-trigger-keyword-model.md +22 -0
  199. package/.planning/decisions/ADR-008-just-in-time-skill-loading.md +29 -0
  200. package/.planning/decisions/ADR-009-enterprise-integration-retry-policy.md +8 -0
  201. package/.planning/decisions/ADR-010-governance-tier-escalation.md +8 -0
  202. package/.planning/decisions/ADR-011-multi-developer-handoff-contract.md +8 -0
  203. package/.planning/decisions/ADR-012-intelligence-feedback-loops.md +19 -0
  204. package/.planning/decisions/ADR-013-mindforge-md-constitution.md +16 -0
  205. package/.planning/decisions/ADR-014-metrics-as-signals-not-evaluation.md +15 -0
  206. package/.planning/decisions/ADR-015-npm-based-skill-registry.md +26 -0
  207. package/.planning/decisions/ADR-016-ci-exit-code-0-on-timeout.md +27 -0
  208. package/.planning/decisions/ADR-017-sdk-localhost-only.md +28 -0
  209. package/.planning/decisions/ADR-018-installer-self-install-detection.md +15 -0
  210. package/.planning/decisions/ADR-019-self-update-scope-preservation.md +14 -0
  211. package/.planning/decisions/ADR-020-v1.0.0-stable-interface-contract.md +23 -0
  212. package/.planning/jira-sync.json +9 -0
  213. package/.planning/milestones/.gitkeep +1 -0
  214. package/.planning/phases/day1/REVIEW-DAY1.md +50 -0
  215. package/.planning/phases/day1/SECURITY-REVIEW-DAY1.md +15 -0
  216. package/.planning/phases/day2/REVIEW-DAY2.md +521 -0
  217. package/.planning/phases/day3/REVIEW-DAY3.md +234 -0
  218. package/.planning/slack-threads.json +6 -0
  219. package/CHANGELOG.md +175 -0
  220. package/LICENSE +21 -0
  221. package/MINDFORGE.md +76 -0
  222. package/README.md +182 -0
  223. package/RELEASENOTES.md +41 -0
  224. package/SECURITY.md +4 -0
  225. package/bin/install.js +120 -0
  226. package/bin/installer-core.js +292 -0
  227. package/bin/migrations/0.1.0-to-0.5.0.js +37 -0
  228. package/bin/migrations/0.5.0-to-0.6.0.js +17 -0
  229. package/bin/migrations/0.6.0-to-1.0.0.js +100 -0
  230. package/bin/migrations/migrate.js +151 -0
  231. package/bin/migrations/schema-versions.js +64 -0
  232. package/bin/updater/changelog-fetcher.js +62 -0
  233. package/bin/updater/self-update.js +169 -0
  234. package/bin/updater/version-comparator.js +68 -0
  235. package/bin/validate-config.js +92 -0
  236. package/bin/wizard/config-generator.js +112 -0
  237. package/bin/wizard/environment-detector.js +76 -0
  238. package/bin/wizard/setup-wizard.js +237 -0
  239. package/docs/Context/Master-Context.md +701 -0
  240. package/docs/architecture/README.md +35 -0
  241. package/docs/architecture/decision-records-index.md +26 -0
  242. package/docs/ci-cd-integration.md +30 -0
  243. package/docs/ci-quickstart.md +78 -0
  244. package/docs/commands-reference.md +11 -0
  245. package/docs/contributing/CONTRIBUTING.md +38 -0
  246. package/docs/contributing/plugin-authoring.md +50 -0
  247. package/docs/contributing/skill-authoring.md +41 -0
  248. package/docs/enterprise-setup.md +25 -0
  249. package/docs/faq.md +38 -0
  250. package/docs/getting-started.md +36 -0
  251. package/docs/governance-guide.md +23 -0
  252. package/docs/mindforge-md-reference.md +53 -0
  253. package/docs/monorepo-guide.md +26 -0
  254. package/docs/persona-customisation.md +56 -0
  255. package/docs/quick-verify.md +33 -0
  256. package/docs/reference/audit-events.md +53 -0
  257. package/docs/reference/commands.md +82 -0
  258. package/docs/reference/config-reference.md +64 -0
  259. package/docs/reference/sdk-api.md +48 -0
  260. package/docs/reference/skills-api.md +57 -0
  261. package/docs/release-checklist-guide.md +37 -0
  262. package/docs/requirements.md +29 -0
  263. package/docs/sdk-reference.md +27 -0
  264. package/docs/security/SECURITY.md +42 -0
  265. package/docs/security/penetration-test-results.md +31 -0
  266. package/docs/security/threat-model.md +142 -0
  267. package/docs/skills-authoring-guide.md +119 -0
  268. package/docs/skills-publishing-guide.md +21 -0
  269. package/docs/team-setup-guide.md +21 -0
  270. package/docs/troubleshooting.md +119 -0
  271. package/docs/tutorial.md +195 -0
  272. package/docs/upgrade.md +44 -0
  273. package/docs/user-guide.md +131 -0
  274. package/docs/usp-features.md +214 -0
  275. package/eslint.config.mjs +31 -0
  276. package/examples/starter-project/.planning/AUDIT.jsonl +1 -0
  277. package/examples/starter-project/.planning/HANDOFF.json +23 -0
  278. package/examples/starter-project/.planning/PROJECT.md +27 -0
  279. package/examples/starter-project/.planning/STATE.md +10 -0
  280. package/examples/starter-project/MINDFORGE.md +40 -0
  281. package/examples/starter-project/README.md +14 -0
  282. package/implementation-roadmap/day-1-imp/DAY1-HARDEN.md +823 -0
  283. package/implementation-roadmap/day-1-imp/DAY1-IMPLEMENT.md +2459 -0
  284. package/implementation-roadmap/day-1-imp/DAY1-REVIEW.md +288 -0
  285. package/implementation-roadmap/day-2-imp/DAY2-HARDEN.md +954 -0
  286. package/implementation-roadmap/day-2-imp/DAY2-IMPLEMENT.md +2347 -0
  287. package/implementation-roadmap/day-2-imp/DAY2-REVIEW.md +422 -0
  288. package/implementation-roadmap/day-3-imp/DAY3-HARDEN.md +870 -0
  289. package/implementation-roadmap/day-3-imp/DAY3-IMPLEMENT.md +2798 -0
  290. package/implementation-roadmap/day-3-imp/DAY3-REVIEW.md +484 -0
  291. package/implementation-roadmap/day-4-imp/DAY4-HARDEN.md +1087 -0
  292. package/implementation-roadmap/day-4-imp/DAY4-IMPLEMENT.md +2874 -0
  293. package/implementation-roadmap/day-4-imp/DAY4-REVIEW.md +386 -0
  294. package/implementation-roadmap/day-5-imp/DAY5-HARDEN.md +1078 -0
  295. package/implementation-roadmap/day-5-imp/DAY5-IMPLEMENT.md +3151 -0
  296. package/implementation-roadmap/day-5-imp/DAY5-REVIEW.md +345 -0
  297. package/implementation-roadmap/day-6-imp/DAY6-COMPLETE.md +3919 -0
  298. package/implementation-roadmap/day-7-imp-prod/DAY7-PRODUCTION-FINAL.md +4513 -0
  299. package/package.json +31 -0
  300. package/sdk/README.md +69 -0
  301. package/sdk/eslint.config.mjs +34 -0
  302. package/sdk/package-lock.json +1507 -0
  303. package/sdk/package.json +30 -0
  304. package/sdk/src/client.ts +133 -0
  305. package/sdk/src/commands.ts +63 -0
  306. package/sdk/src/events.ts +166 -0
  307. package/sdk/src/index.ts +22 -0
  308. package/sdk/src/types.ts +87 -0
  309. package/sdk/tsconfig.json +13 -0
  310. package/tests/audit.test.js +206 -0
  311. package/tests/ci-mode.test.js +162 -0
  312. package/tests/compaction.test.js +161 -0
  313. package/tests/distribution.test.js +205 -0
  314. package/tests/e2e.test.js +618 -0
  315. package/tests/governance.test.js +130 -0
  316. package/tests/install.test.js +209 -0
  317. package/tests/integrations.test.js +128 -0
  318. package/tests/intelligence.test.js +117 -0
  319. package/tests/metrics.test.js +96 -0
  320. package/tests/migration.test.js +309 -0
  321. package/tests/production.test.js +416 -0
  322. package/tests/sdk.test.js +200 -0
  323. package/tests/skills-platform.test.js +403 -0
  324. package/tests/wave-engine.test.js +338 -0
@@ -0,0 +1,701 @@
1
+ # MindForge — Continuation State File
2
+ # Generated: Day 7 Complete
3
+ # Purpose: Provide full context for resuming in a new chat session
4
+
5
+ ---
6
+
7
+ ## PROJECT IDENTITY
8
+
9
+ **Name:** MindForge (`mindforge-cc` on npm)
10
+ **Tagline:** Enterprise Agentic Framework — the best agentic framework
11
+ **Repository:** `github.com/mindforge-dev/mindforge` (conceptual)
12
+ **npm package:** `npx mindforge-cc@latest`
13
+ **Current version:** v1.0.0 (first stable public release, tagged at Day 7 completion)
14
+ **Runtimes supported:** Claude Code (`.claude/`) and Antigravity (`.agent/`)
15
+ **License:** MIT
16
+
17
+ **Purpose:** Transform Claude Code and Antigravity from powerful-but-unstructured
18
+ AI tools into systematic, production-grade engineering partners. MindForge wraps
19
+ any software project with: structured lifecycle management (plan → execute → verify
20
+ → ship), wave-based parallel execution, a three-tier skills system, enterprise
21
+ integrations (Jira, Confluence, Slack, GitHub), three-tier governance (Tier 1/2/3
22
+ approvals), and a complete intelligence layer (health engine, difficulty scorer,
23
+ anti-pattern detector, quality metrics, team profiling).
24
+
25
+ ---
26
+
27
+ ## WHAT WAS BUILT — DAY BY DAY
28
+
29
+ ### Day 1 — Foundation (`feat/mindforge-core-scaffold` → v0.1.0)
30
+
31
+ **Branch:** `feat/mindforge-core-scaffold`
32
+ **Output files:** `DAY1-IMPLEMENT.md`, `DAY1-REVIEW.md`, `DAY1-HARDEN.md`
33
+
34
+ Built the entire structural foundation:
35
+
36
+ - **`.claude/CLAUDE.md`** — The agent entry point. Session start protocol, plan-first rule, quality gates, security auto-trigger, state artifact table. Mirrored identically to `.agent/CLAUDE.md` (Antigravity runtime).
37
+ - **8 agent persona files** in `.mindforge/personas/`:
38
+ - `analyst.md` — Requirements decomposition and gap identification
39
+ - `architect.md` — System design, ADRs, technology decisions
40
+ - `developer.md` — Implementation with 5 common AI anti-pattern guards
41
+ - `qa-engineer.md` — Test strategy and verification
42
+ - `security-reviewer.md` — OWASP-aligned security review
43
+ - `tech-writer.md` — Documentation and changelog authoring
44
+ - `debug-specialist.md` — 10-step root cause analysis protocol
45
+ - `release-manager.md` — Deployment coordination
46
+ - **5 initial core skill packs** in `.mindforge/skills/`:
47
+ - `security-review/SKILL.md` — 29 trigger keywords, OWASP A01-A10
48
+ - `code-quality/SKILL.md` — Complexity, naming, error handling
49
+ - `api-design/SKILL.md` — REST conventions, versioning, error schemas
50
+ - `testing-standards/SKILL.md` — Coverage, test patterns, TDD
51
+ - `documentation/SKILL.md` — README, ADRs, changelogs
52
+ - **6 slash commands** (Days 1 baseline):
53
+ - `/mindforge:help` — Show all commands
54
+ - `/mindforge:init-project` — Guided project setup
55
+ - `/mindforge:plan-phase [N]` — Research and decompose into PLAN files
56
+ - `/mindforge:execute-phase [N]` — Wave-based parallel execution
57
+ - `/mindforge:verify-phase [N]` — Automated + UAT testing pipeline
58
+ - `/mindforge:ship [N]` — Create PR, release notes, push
59
+ - **Org context templates:** `ORG.md`, `CONVENTIONS.md`, `SECURITY.md`, `TOOLS.md`
60
+ - **Project state templates:** `PROJECT.md`, `STATE.md`, `HANDOFF.json` (schema_version, _warning field, context_refs)
61
+ - **`bin/install.js`** — npx installer skeleton
62
+ - **`package.json`** — `name: "mindforge-cc"`, version 0.1.0
63
+ - **`tests/install.test.js`** — Structural integrity tests
64
+
65
+ **Key ADRs established:** ADR-001 (HANDOFF.json), ADR-002 (Markdown commands), ADR-003 (keyword trigger model)
66
+
67
+ ---
68
+
69
+ ### Day 2 — Wave Execution Engine (`feat/mindforge-wave-engine` → v0.2.0)
70
+
71
+ **Branch:** `feat/mindforge-wave-engine`
72
+ **Output files:** `DAY2-IMPLEMENT.md`, `DAY2-REVIEW.md`, `DAY2-HARDEN.md`
73
+
74
+ Built the execution engine that makes plans actually run:
75
+
76
+ - **`.mindforge/engine/`** — 5 engine files:
77
+ - `dependency-parser.md` — Parses PLAN XML into a DAG, circular dependency detection, file conflict detection
78
+ - `wave-executor.md` — Kahn's topological sort for wave grouping, parallel within waves, sequential between waves, `WAVE-REPORT-N.md` output format
79
+ - `context-injector.md` — Minimum-context principle per subagent (30K token budget), path traversal guard, SECURITY.md placeholder validation
80
+ - `compaction-protocol.md` — 6-step compaction at 70% context: WIP commit, STATE.md update, HANDOFF.json write, AUDIT entry, compact and continue
81
+ - `verification-pipeline.md` — 4-stage pipeline: automated tests → requirement traceability → type/lint → security regression
82
+ - **AUDIT.jsonl system** — Append-only audit log at `.planning/AUDIT.jsonl`, 12 event types (task_started, task_completed, task_failed, security_finding, quality_gate_failed, context_compaction, phase_completed, decision_recorded, etc.), universal schema: id (UUID v4), timestamp (ISO-8601), event, agent, phase, session_id
83
+ - **`.planning/HANDOFF.json`** schema expanded with: recent_commits, recent_files, agent_notes, in_progress object, updated_at
84
+ - **4 new commands** (total: 10):
85
+ - `/mindforge:next` — Auto-detect next workflow step with full decision tree
86
+ - `/mindforge:quick [--flags]` — Ad-hoc task execution outside phases
87
+ - `/mindforge:status` — Rich project dashboard with phase progress bars
88
+ - `/mindforge:debug` — Full Debug Specialist persona, 4-question intake, 10-step RCA, `DEBUG-timestamp.md` output
89
+ - **3 new test suites:** `tests/wave-engine.test.js` (parseDependencies, Kahn's algorithm, circular detection, file conflicts), `tests/audit.test.js` (schema validation, JSONL integrity), `tests/compaction.test.js` (HANDOFF schema, 85% emergency threshold)
90
+
91
+ **Key ADRs:** ADR-004 (wave parallelism), ADR-005 (append-only JSONL audit log)
92
+
93
+ ---
94
+
95
+ ### Day 3 — Skills Platform (`feat/mindforge-skills-platform` → v0.3.0)
96
+
97
+ **Branch:** `feat/mindforge-skills-platform`
98
+ **Output files:** `DAY3-IMPLEMENT.md`, `DAY3-REVIEW.md`, `DAY3-HARDEN.md`
99
+
100
+ Built the skills distribution and intelligence engine:
101
+
102
+ - **`.mindforge/engine/skills/`** — 4 engine files:
103
+ - `registry.md` — MANIFEST.md format, three-tier registry (Core T1 → Org T2 → Project T3), tier priority (Project > Org > Core), health check protocol
104
+ - `loader.md` — 5-step JIT loading (trigger index → text matching → file-path matching → **file-name matching** → conflict resolution → load), context budget (summarise skills 4+ at max 150 words each), injection guard, skills loading report format
105
+ - `versioning.md` — Semver for skills, frontmatter with name/version/status/triggers/breaking_changes/changelog, compatibility check protocol, upgrade protocol
106
+ - `conflict-resolver.md` — 4 conflict types: same trigger different skills (load both), same skill name different tiers (higher tier wins), trigger subset (more specific as primary), mutual exclusion (match count tiebreak)
107
+ - **5 new core skill packs** (total: 10):
108
+ - `performance/SKILL.md` — Core Web Vitals (LCP/INP/CLS targets), bundle budgets, N+1 detection, caching TTL tables, p50/p95/p99 targets
109
+ - `accessibility/SKILL.md` — WCAG 2.1 AA + WCAG 2.2 new criteria, ARIA patterns, keyboard testing, `@media (prefers-reduced-motion)`
110
+ - `data-privacy/SKILL.md` — GDPR/CCPA/PIPEDA, consent withdrawal rule, PII forbidden patterns with code examples, lawful basis documentation
111
+ - `incident-response/SKILL.md` — P0-P3 classification, runbook template, blameless postmortem template, monitoring standards per feature
112
+ - `database-patterns/SKILL.md` — **Compound cursor pagination** (BLOCKING bug fix: `(created_at, id)` not just `created_at`), UUIDv7 guidance, N+1 detection, transaction isolation, index strategy
113
+ - **`.mindforge/org/skills/MANIFEST.md`** — All 10 skills registered in three-tier table format with paths
114
+ - **Persona customisation system:** `.mindforge/personas/overrides/` with additive/override/remove directives, phase-level overrides at `.planning/phases/[N]/persona-overrides/`
115
+ - **5 new commands** (total: 15):
116
+ - `/mindforge:skills` — Full CLI: list/info/search/validate/add/update
117
+ - `/mindforge:review` — Code review using code-quality + security personas, `CODE-REVIEW-timestamp.md` output, BLOCKING/MAJOR/MINOR/SUGGESTION findings
118
+ - `/mindforge:security-scan` — OWASP A01-A10, secret detection, dependency CVE audit, `SECURITY-SCAN-timestamp.md` output, CRITICAL finding blocking with bold warning
119
+ - `/mindforge:map-codebase` — 4 parallel subagents (stack analyst, architecture analyst, conventions analyst, quality baseline analyst), brownfield onboarding, CONVENTIONS.md marked [DRAFT]
120
+ - `/mindforge:discuss-phase` — Pre-planning interview (3 templates: Visual/UI, API/Backend, Data/Database, Integration), CONTEXT.md output, `--batch` and `--auto` flags
121
+ - **`docs/skills-authoring-guide.md`** — Complete guide for creating Tier 2/3 skills
122
+ - **1 new test suite:** `tests/skills-platform.test.js` (frontmatter validation, trigger counts, mandatory actions, MANIFEST.md path resolution)
123
+
124
+ **Critical fixes in hardening:**
125
+ - Cursor pagination corrected to compound `(created_at, id)` cursor
126
+ - Gate 4 GDPR made independent of data-privacy skill loading
127
+ - `plan-phase.md` updated to read CONTEXT.md from discuss-phase
128
+
129
+ **Key ADRs:** ADR-006 (three-tier skills), ADR-007 (trigger model at scale), ADR-008 (JIT loading)
130
+
131
+ ---
132
+
133
+ ### Day 4 — Enterprise Integrations + Governance (`feat/mindforge-enterprise-integrations` → v0.4.0)
134
+
135
+ **Branch:** `feat/mindforge-enterprise-integrations`
136
+ **Output files:** `DAY4-IMPLEMENT.md`, `DAY4-REVIEW.md`, `DAY4-HARDEN.md`
137
+
138
+ Built the enterprise integration and governance layer:
139
+
140
+ - **`.mindforge/integrations/`** — 6 files:
141
+ - `connection-manager.md` — Credential safety (env vars only, never in files), 5 availability states (available/unconfigured/invalid_credentials/unreachable/rate_limited), circuit breaker pattern (3 failures → circuit open), retry policy (exponential backoff × 3), 10s timeout on all calls, **shell credential hygiene** (no `set -x`, no `curl -v` with auth headers), credential unset after use
142
+ - `jira.md` — REST API v3, **dynamic transition ID lookup** (not hardcoded IDs), Epic/Story/Bug creation, jira-sync.json state file, conflict handling (no destructive overwrites of manual Jira changes)
143
+ - `confluence.md` — API v2, Markdown→Confluence Wiki conversion, idempotent page creation (update not duplicate), confluence-sync.json state file
144
+ - `slack.md` — Block Kit templates (phase complete, CRITICAL finding, approval request), thread management, slack-threads.json, graceful degradation when unconfigured, CRITICAL findings written to STATE.md "Undelivered alerts" when Slack unconfigured
145
+ - `github.md` — PR creation with template, reviewer assignment, branch protection pre-flight, PR template at `.github/pull_request_template.md`, release tag creation
146
+ - `gitlab.md` — Equivalent MR workflow
147
+ - **`.mindforge/governance/`** — 4 files:
148
+ - `change-classifier.md` — **Three signals for Tier 3**: (A) file path patterns (`auth/`, `payment/`, `login.ts`, etc.), (B) **code content patterns** (`jwt.sign`, `bcrypt`, `stripe.` in the actual diff), (C) audit history (recent security findings elevate to Tier 3). Tier 1/2 classification. `change_classified` AUDIT event with `signal_triggered` and `pattern_matched` fields
149
+ - `approval-workflow.md` — PENDING→APPROVED/REJECTED/EXPIRED lifecycle, `.planning/approvals/APPROVAL-[uuid].json` schema, blocking execution until resolved, emergency override with `EMERGENCY_APPROVERS` list, post-incident review auto-task
150
+ - `compliance-gates.md` — **5 non-bypassable gates**: Gate 1 (no CRITICAL findings), Gate 2 (tests passing), Gate 3 (no secrets — override: NOT POSSIBLE), Gate 4 (GDPR retention — **independent of skill loading**, PII field detection via diff scanning), Gate 5 (dependency CVEs). `GATE-RESULTS-[N].md` output
151
+ - `GOVERNANCE-CONFIG.md` — TIER2_APPROVERS, TIER3_APPROVERS, EMERGENCY_APPROVERS, SLA hours, escalation contact
152
+ - **`.mindforge/team/`** — Multi-developer HANDOFF:
153
+ - `multi-handoff.md` — Per-developer files at `.planning/handoffs/HANDOFF-[dev-id].json`, dev-id from `git config user.email`, shared team HANDOFF.json (phase-level), active_developers field with last_seen, stale detection (> 4 hours), conflict detection (same plan → same files)
154
+ - `session-merger.md` — Post-session artifact reconciliation
155
+ - **AUDIT.jsonl archiving** — Archive at 10,000 lines to `.planning/audit-archive/`, archive marker entry, continue with fresh AUDIT.jsonl
156
+ - **6 new commands** (total: 21):
157
+ - `/mindforge:audit` — Filter by phase/event/date/severity, `--export`, `--verify` (integrity check), `--include-archived`, `--summary`
158
+ - `/mindforge:milestone` — create/status/list, MILESTONE-[name].md
159
+ - `/mindforge:complete-milestone` — Security scan + report + CHANGELOG + Confluence publish + release tag + GitHub release + Slack notification + **scoped archive** (only milestone phases, not all)
160
+ - `/mindforge:approve` — List pending, approve, reject, emergency override (EMERGENCY_APPROVERS validated), expiry processing
161
+ - `/mindforge:sync-jira` — Bidirectional sync with `--dry-run` and `--force`
162
+ - `/mindforge:sync-confluence` — Publish architecture/ADRs/phase docs with `--page all`
163
+ - **`.mindforge/org/integrations/INTEGRATIONS-CONFIG.md`** — All integration non-credential config
164
+ - **2 new test suites:** `tests/integrations.test.js`, `tests/governance.test.js` (change classifier simulation, approval schema validation, compliance gate checks)
165
+
166
+ **Key ADRs:** ADR-009 (env-var credentials), ADR-010 (gates non-bypassable, approvals allow emergency), ADR-011 (integrations non-blocking), ADR-012 wait — actually ADR-009/010/011
167
+
168
+ ---
169
+
170
+ ### Day 5 — Intelligence Layer (`feat/mindforge-intelligence-layer` → v0.5.0)
171
+
172
+ **Branch:** `feat/mindforge-intelligence-layer`
173
+ **Output files:** `DAY5-IMPLEMENT.md`, `DAY5-REVIEW.md`, `DAY5-HARDEN.md`
174
+
175
+ Built the framework's self-awareness and self-improvement systems:
176
+
177
+ - **`.mindforge/intelligence/`** — 5 files:
178
+ - `health-engine.md` — 7 categories: (1) installation integrity (47+ required files, CLAUDE.md parity, command parity), (2) context file health (PROJECT.md placeholder detection, HANDOFF.json secret scan, STATE.md staleness), (3) skills registry health, (4) persona system health (override injection guard), (5) state consistency (phase status vs. artifact presence), (6) integration connectivity (live health checks), (7) security configuration (.gitignore completeness, SECURITY.md placeholder detection). Auto-repair for 7 issue types. AUDIT.jsonl quarantine-not-deletion for corrupt lines
179
+ - `difficulty-scorer.md` — 4-dimension scoring: Technical × 0.35 + Risk × 0.30 + Ambiguity × 0.20 + Dependencies × 0.15. Composite → recommended task count (Easy: 2-3, Moderate: 4-6, Challenging: 6-10, Hard: 10-15). `DIFFICULTY-SCORE-[N].md` output with risk flags
180
+ - `antipattern-detector.md` — 5 categories, 13 patterns. Architecture (A01 God Object with executable-line-count, A02 Circular Deps, A03 Distributed Monolith, A04 Hardcoded Config). Database (B01 SELECT*, B02 Missing FK indexes, B03 Unbounded queries with **cursor pagination exemption**). Security (C01 auth type coercion with **test-file exclusion**, C02 Missing auth middleware, C03 PII in URLs). Code Quality (D01 over 500 exec lines, D02 Magic strings, D03 Swallowed errors). Testing (E01 implementation testing, E02 flaky test indicators)
181
+ - `skill-gap-analyser.md` — Maps work categories to required/recommended skills, checks MANIFEST.md availability, reports gaps with options (create skill / proceed without / update existing)
182
+ - `smart-compaction.md` — **3 compaction levels**: Level 1 (lightweight 70-79%), Level 2 (structured extraction 80-89% — 5 blocks: decisions made with rationale + what ruled out, discoveries, current task state, implicit knowledge, quality signals), Level 3 (emergency 90%+). Level 2 HANDOFF.json has richer schema with decisions_made/discoveries/implicit_knowledge/quality_signals arrays. Session restart reads implicit knowledge before PLAN files
183
+ - **`.mindforge/team/`** expanded:
184
+ - `TEAM-PROFILE.md` — Tech stack preferences, working patterns (session length, compaction frequency), quality patterns (verify pass rate, common failure types), personalisation rules, **metrics ethics policy** (per ADR-014: metrics are NOT developer performance evaluation)
185
+ - `profiles/README.md` — Per-developer PROFILE-[dev-id].md template
186
+ - **`.mindforge/metrics/`** — 2 files:
187
+ - `METRICS-SCHEMA.md` — 4 JSONL files: `session-quality.jsonl` (score formula: base 100, -15/task_failed, -30/CRITICAL, clamped 0-100, +5 bonuses), `phase-metrics.jsonl`, `skill-usage.jsonl`, `compaction-quality.jsonl`
188
+ - `quality-tracker.md` — 5 trend metrics, early warning signals, **automatic behaviour adjustments** (verify rate < 75% → agent adds step validation, task failure > 20% → halve scope estimate, compactions > 2/session → proactive summarisation, security findings increasing → load security-review for ALL tasks)
189
+ - **`MINDFORGE.md`** — Project constitution file in project root. 25+ configurable settings: model preferences (PLANNER_MODEL, EXECUTOR_MODEL, etc.), execution behaviour (WAVE_CONFIRMATION_REQUIRED, COMPACTION_THRESHOLD_PCT, MAX_TASKS_PER_PHASE), quality standards (MIN_TEST_COVERAGE_PCT, MAX_FUNCTION_LINES), skills behaviour (ALWAYS_LOAD_SKILLS, DISABLED_SKILLS), git conventions (COMMIT_FORMAT, BRANCHING_STRATEGY), CI/CD settings. **NON-OVERRIDABLE rules section**: SECURITY_AUTOTRIGGER, SECRET_DETECTION, PLAN_FIRST, AUDIT_WRITING cannot be disabled
190
+ - **`.mindforge/MINDFORGE-SCHEMA.json`** — JSON Schema with type validation, min/max bounds, `nonOverridable: true` markers. `bin/validate-config.js` validates MINDFORGE.md against schema
191
+ - **Interactive setup wizard** — `bin/wizard/setup-wizard.js` (7-step guided install), `environment-detector.js` (detects runtimes, project type, package manager, existing MindForge), `config-generator.js` (writes INTEGRATIONS-CONFIG.md, GOVERNANCE-CONFIG.md from wizard input)
192
+ - **4 new commands** (total: 25):
193
+ - `/mindforge:health [--repair] [--category] [--verbose]`
194
+ - `/mindforge:retrospective [phase|milestone] [--template agile|4ls|starfish]` — Quantitative data from AUDIT.jsonl + qualitative discussion, RETROSPECTIVE-[N].md output, **feeds back to MINDFORGE.md** with specific setting changes mapped to retrospective findings
195
+ - `/mindforge:profile-team [--refresh] [--developer] [--questionnaire]`
196
+ - `/mindforge:metrics [--window short|medium|long] [--export]`
197
+ - **2 new test suites:** `tests/intelligence.test.js` (difficulty scorer, antipattern detector, smart compaction, MINDFORGE.md validation), `tests/metrics.test.js` (session quality score formula, phase quality score formula, metrics schema)
198
+
199
+ **Feedback loops sealed:**
200
+ 1. Retrospective → MINDFORGE.md (explicit setting change suggestions)
201
+ 2. Difficulty score → task granularity (planner reads DIFFICULTY-SCORE file before creating plans)
202
+ 3. Quality metrics → automatic session behaviour adjustments
203
+
204
+ **Key ADRs:** ADR-012 (intelligence feedback loops), ADR-013 (MINDFORGE.md constitution with non-overridable primitives), ADR-014 (metrics as system signals, not developer evaluation)
205
+
206
+ ---
207
+
208
+ ### Day 6 — Distribution Platform (`feat/mindforge-distribution-platform` → v0.6.0)
209
+
210
+ **Branch:** `feat/mindforge-distribution-platform`
211
+ **Output files:** `DAY6-COMPLETE.md` (all three prompts in one file)
212
+
213
+ Built the public distribution, CI/CD, SDK, and monorepo layers:
214
+
215
+ - **`.mindforge/distribution/`** — 4 files:
216
+ - `registry-schema.md` — npm-based registry, `mindforge-skill-[category]-[name]` naming, `package.json mindforge` field, quality standards (5 requirements), private registry support via INTEGRATIONS-CONFIG.md
217
+ - `registry-client.md` — Installation flow: resolve name → check installed → fetch (npm pack) → **TOCTOU-safe temp dir (chmod 700 + tarball size check)** → validate (Level 1+2, Level 3 for public registry) → injection guard → install to tier directory → register in MANIFEST.md → AUDIT entry. Update and uninstall protocols
218
+ - `skill-validator.md` — Level 1 (schema), Level 2 (content), Level 3 (quality). Validation output format
219
+ - `registry-client.md` also covers update (check latest vs installed, auto MINOR/PATCH, confirm MAJOR) and uninstall
220
+ - **`.mindforge/ci/`** — 4 files:
221
+ - `ci-mode.md` — Auto-activates on `CI=true` or `MINDFORGE_CI=true` or `stdin.isTTY === false`. Tier 3 ALWAYS fails CI (cannot be configured away). **Exit code 0 for timeout** (soft stop, saves state, next run resumes via HANDOFF.json). Exit code 1 for gate failures. JSON and GitHub Annotations output formats. MINDFORGE.md CI settings: `CI_AUTO_APPROVE_TIER2`, `CI_SECURITY_SCAN`, `CI_MIN_COVERAGE_PCT`, `CI_OUTPUT_FORMAT`
222
+ - `github-actions-adapter.md` — 4-job workflow: mindforge-health, mindforge-security (secret detection + npm audit), mindforge-quality (tsc + eslint + tests + coverage), mindforge-ai-review (PR reviews). **Tier 3 governance block** with clear error message and resolution steps. GitHub step summary for timeout state
223
+ - `gitlab-ci-adapter.md` — Equivalent GitLab CI pipeline
224
+ - `ci-config-schema.md` — CI configuration reference
225
+ - **`.mindforge/pr-review/`** — 3 files:
226
+ - `ai-reviewer.md` — Claude API integration (`claude-sonnet-4-6`), context loading from PROJECT.md + ARCHITECTURE.md + CONVENTIONS.md, **file-based diff truncation** (top 20 most-changed files, not character truncation), **robust daily limit** (parse-error tolerant, creates file if missing), rate limiting (50/day configurable via `AI_REVIEW_DAILY_LIMIT`), cache by commit SHA (60 min TTL), graceful skip when `ANTHROPIC_API_KEY` unset
227
+ - `review-prompt-templates.md` — 3 specialised templates: security (OWASP checklist mode), database migration (rollback, non-blocking, NOT NULL checks), API breaking change (versioning, deprecation, migration guide)
228
+ - `finding-formatter.md` — GitHub-flavoured markdown PR comment format
229
+ - **`.mindforge/monorepo/`** — 3 files:
230
+ - `workspace-detector.md` — Detects: npm workspaces, pnpm workspaces, Nx, Turborepo, Lerna. `WORKSPACE-MANIFEST.json` at `.planning/`. Package metadata extraction
231
+ - `cross-package-planner.md` — Topological sort for package execution order. Per-package PLAN files with `<package>` and `<working-dir>` fields. **Affected package detection uses WORKSPACE-MANIFEST.json paths** (not depth assumption — handles `libs/shared/utils/` deep nesting). Transitive dependency detection
232
+ - `dependency-graph-builder.md` — Cross-package DAG construction
233
+ - **`@mindforge/sdk`** at `sdk/src/`:
234
+ - `types.ts` — Full TypeScript type definitions: MindForgeConfig, PhaseResult, TaskResult, SecurityFinding, GateResult, HealthReport, MindForgeEvent union type
235
+ - `client.ts` — MindForgeClient: isInitialised(), readState(), readHandoff(), health(), readAuditLog(filter), readSessionMetrics(limit), validateConfig()
236
+ - `events.ts` — MindForgeEventStream SSE server: **localhost-only binding (127.0.0.1)**, non-localhost connection rejection (403), exact CORS origin matching, **Linux inotify fallback** (`ENOSPC` → polling at 2s interval), AUDIT.jsonl file watching and broadcast
237
+ - `commands.ts` — Command string builders: health(), planPhase(), executePhase(), securityScan(), audit(), prReview()
238
+ - `index.ts` — Public API exports + VERSION constant
239
+ - **6 new commands** (total: 31):
240
+ - `/mindforge:init-org` — 8-question org setup, generates all org templates, creates `@[org]/mindforge-config` npm package scaffold
241
+ - `/mindforge:install-skill [name] [--tier] [--registry]` — Full registry client protocol
242
+ - `/mindforge:publish-skill [dir] [--dry-run]` — Level 1+2+3 validation, npm publish with verification
243
+ - `/mindforge:pr-review [--diff] [--sha] [--output github|json|markdown]`
244
+ - `/mindforge:workspace [detect|list|plan|test]` — Monorepo management
245
+ - `/mindforge:benchmark [--skill] [--compare]` — Skill effectiveness benchmarking from AUDIT.jsonl
246
+ - **GitHub Actions workflow:** `.github/workflows/mindforge-ci.yml`
247
+ - **3 new test suites:** `tests/distribution.test.js`, `tests/ci-mode.test.js`, `tests/sdk.test.js`
248
+
249
+ **Key ADRs:** ADR-015 (npm as skills registry), ADR-016 (CI timeout = exit 0, soft stop), ADR-017 (SDK SSE localhost-only)
250
+
251
+ ---
252
+
253
+ ### Day 7 — Production Hardening & v1.0.0 Release (`feat/mindforge-production-release` → v1.0.0)
254
+
255
+ **Branch:** `feat/mindforge-production-release`
256
+ **Output files:** `DAY7-PRODUCTION-FINAL.md` (all three prompts in one file, 174KB)
257
+
258
+ Made MindForge production-ready and shipped v1.0.0:
259
+
260
+ - **`bin/install.js`** (complete rewrite) — All flags: `--version`, `--help`, `--all`, `--global/-g`, `--local/-l`, `--install`, `--update`, `--uninstall`, `--check`, `--dry-run`, `--force`, `--verbose`, `--skip-wizard`. Node.js ≥18 gate. CI mode detection (`CI=true` or `stdin.isTTY === false`). Routes to wizard or core installer
261
+ - **`bin/installer-core.js`** (complete implementation) — RUNTIMES config map (claude + antigravity), **SENSITIVE_EXCLUDE with correct regex** (`/\.key$/` not `'*.key'` — glob bug fixed), **self-install detection** (`package.json.name === 'mindforge-cc'` → skip framework file copy), safeCopyClaude with large-file warning, copyDir with excludePatterns, verifyInstall checks 6 critical files, uninstall preserves `.planning/` and `.mindforge/` (user data), graceful output at each step
262
+ - **`bin/updater/`** — Complete self-update system:
263
+ - `version-comparator.js` — `compareSemver()`, `upgradeType()` (major/minor/patch/none), `fetchLatestVersion()` (5s timeout, npm registry, graceful null on failure)
264
+ - `changelog-fetcher.js` — `fetchChangelog(from, to)` (8s timeout, GitHub raw, `extractEntries()` version range parser), handles `## [1.0.0]`, `## v1.0.0`, `## 1.0.0` header formats
265
+ - `self-update.js` — `checkAndUpdate()`: version check → changelog display → **scope detection** (`detectInstallScope()` checks local before global per ADR-019) → **reads schema_version from HANDOFF.json BEFORE update** (not after) → apply update with detected scope → run migration with pre-update schema_version
266
+ - **`bin/migrations/`** — Complete version migration engine:
267
+ - `migrate.js` — `runMigrations(from, to)`: backup creation with **abort if backup fails**, backup integrity verification (file count + non-empty), execute migrations, restore on failure, **CI auto-deletes backup**, HANDOFF.json schema_version update. **Correct filter logic**: `compareSemver(m.toVersion, fromVersion) > 0 AND compareSemver(m.toVersion, toVersion) <= 0` (handles intermediate versions like v0.3.0)
268
+ - `schema-versions.js` — Complete history of all schema changes v0.1.0 → v1.0.0
269
+ - `0.1.0-to-0.5.0.js` — Adds intelligence layer fields
270
+ - `0.5.0-to-0.6.0.js` — Adds distribution platform fields
271
+ - `0.6.0-to-1.0.0.js` — Adds plugin_api_version, backfills session_id, converts VERIFY_PASS_RATE_WARNING_THRESHOLD (percent → decimal, only values >1)
272
+ - **`.mindforge/plugins/`** — Complete plugin system:
273
+ - `plugin-schema.md` — `mindforge-plugin-[category]-[name]` naming, `plugin.json` manifest with `mindforge.provides` (commands/skills/personas/hooks) and `mindforge.permissions` (read_audit_log/write_audit_log/read_state/write_state/network_access/file_system_write), advisory permission model explanation, 7 lifecycle hooks, reserved 36 command names
274
+ - `plugin-loader.md` — Discovery → validation (plugin_api_version, injection guard, skill Level 1+2) → load components (**dynamic reserved-name detection** via `ls .claude/commands/mindforge/` not hardcoded list) → report → AUDIT entry. Multiple plugins same hook: MANIFEST order, independent execution
275
+ - `PLUGINS-MANIFEST.md` — Ready for first plugin installation
276
+ - **`.mindforge/production/`** — 4 production hardening files:
277
+ - `token-optimiser.md` — Token consumption model table, efficiency formula (`useful_output_tokens / total_tokens_consumed`, target >35%), 5 strategies (lean PLAN actions with before/after examples showing 580-token saving, JIT file reading, selective STATE.md loading, code line ranges, skill summarisation at 4+), `token-usage.jsonl` schema, MINDFORGE.md token settings
278
+ - `migration-engine.md` — Engine specification
279
+ - `compatibility-layer.md` — Cross-version graceful degradation spec
280
+ - `production-checklist.md` — **50-point checklist** in 5 sections (A: Installation 10, B: Commands 10, C: Governance gates 10, D: Documentation 10, E: Test coverage 10), each item has verification step + verifier + date fields. Release gate procedure
281
+ - **Complete documentation hierarchy** at `docs/`:
282
+ - `docs/reference/commands.md` — All 36 commands documented
283
+ - `docs/security/SECURITY.md` — Supported versions, responsible disclosure (security@mindforge.dev, 24h ack, 90-day disclosure)
284
+ - `docs/security/threat-model.md` — 7 threat actors with controls and residual risk ratings
285
+ - `docs/architecture/decision-records-index.md` — All 20 ADRs indexed
286
+ - `docs/contributing/CONTRIBUTING.md`, `skill-authoring.md`, `plugin-authoring.md`
287
+ - **5 new commands** (total: 36):
288
+ - `/mindforge:update [--apply] [--force] [--check]` — Full self-update with changelog
289
+ - `/mindforge:migrate [--from] [--to] [--dry-run] [--force]` — Schema migration
290
+ - `/mindforge:plugins [list|install|uninstall|info|validate|create]` — Plugin management
291
+ - `/mindforge:tokens [--optimise]` — Token usage dashboard + recommendations
292
+ - `/mindforge:release [--version] [--dry-run]` — 8-stage release pipeline (core team command)
293
+ - **3 new test suites:** `tests/production.test.js` (installer, updater, migration engine, plugin system, all 36 commands), `tests/migration.test.js` (full chain v0.1.0→v1.0.0, HANDOFF migration, AUDIT backfill, MINDFORGE.md conversion, migration chain filter logic), `tests/e2e.test.js` (complete greenfield workflow in temp dir, brownfield map-codebase path, security gate scenarios, all AUDIT.jsonl entries validated)
294
+
295
+ **Key ADRs:** ADR-018 (self-install detection), ADR-019 (update scope preservation), ADR-020 (v1.0.0 stable interface contract — 36 commands, HANDOFF schema, AUDIT events, SDK types, plugin.json format are all stable in 1.x.x)
296
+
297
+ ---
298
+
299
+ ## CURRENT SYSTEM ARCHITECTURE
300
+
301
+ ```
302
+ mindforge-cc/ ← npm package root
303
+
304
+ ├── bin/
305
+ │ ├── install.js ← Entry point (npx mindforge-cc@latest)
306
+ │ ├── installer-core.js ← Non-interactive installer core
307
+ │ ├── validate-config.js ← MINDFORGE.md validator
308
+ │ ├── updater/
309
+ │ │ ├── version-comparator.js
310
+ │ │ ├── changelog-fetcher.js
311
+ │ │ └── self-update.js
312
+ │ ├── migrations/
313
+ │ │ ├── migrate.js ← Migration runner
314
+ │ │ ├── schema-versions.js
315
+ │ │ ├── 0.1.0-to-0.5.0.js
316
+ │ │ ├── 0.5.0-to-0.6.0.js
317
+ │ │ └── 0.6.0-to-1.0.0.js
318
+ │ └── wizard/
319
+ │ ├── setup-wizard.js ← Interactive setup
320
+ │ ├── environment-detector.js
321
+ │ └── config-generator.js
322
+
323
+ ├── .claude/
324
+ │ ├── CLAUDE.md ← Agent entry point (Claude Code)
325
+ │ └── commands/mindforge/ ← 36 slash command definitions
326
+ │ └── [36 .md command files]
327
+
328
+ ├── .agent/
329
+ │ ├── CLAUDE.md ← Agent entry point (Antigravity)
330
+ │ └── mindforge/ ← Mirror of .claude/commands/mindforge/
331
+ │ └── [36 .md command files]
332
+
333
+ ├── .mindforge/
334
+ │ ├── personas/ ← 8 persona definitions + overrides/
335
+ │ ├── skills/ ← 10 core skill packs (SKILL.md each)
336
+ │ ├── engine/
337
+ │ │ ├── wave-executor.md ← Kahn's topological sort, parallel waves
338
+ │ │ ├── dependency-parser.md ← DAG builder from PLAN XML
339
+ │ │ ├── context-injector.md ← Minimum-context subagent injection
340
+ │ │ ├── compaction-protocol.md ← Smart 3-level compaction
341
+ │ │ ├── verification-pipeline.md ← 4-stage verify
342
+ │ │ └── skills/ ← Registry, loader, versioning, conflict resolver
343
+ │ ├── integrations/ ← Jira, Confluence, Slack, GitHub, GitLab, connection-manager
344
+ │ ├── governance/ ← change-classifier, approval-workflow, compliance-gates, GOVERNANCE-CONFIG
345
+ │ ├── intelligence/ ← health-engine, difficulty-scorer, antipattern-detector, skill-gap-analyser, smart-compaction
346
+ │ ├── metrics/ ← METRICS-SCHEMA.md, quality-tracker.md
347
+ │ ├── team/ ← TEAM-PROFILE.md, profiles/, multi-handoff, session-merger
348
+ │ ├── production/ ← token-optimiser, migration-engine, compatibility-layer, production-checklist
349
+ │ ├── plugins/ ← plugin-schema, plugin-loader, PLUGINS-MANIFEST.md
350
+ │ ├── distribution/ ← registry-schema, registry-client, skill-validator
351
+ │ ├── ci/ ← ci-mode, github-actions-adapter, gitlab-ci-adapter
352
+ │ ├── pr-review/ ← ai-reviewer, review-prompt-templates, finding-formatter
353
+ │ ├── monorepo/ ← workspace-detector, cross-package-planner, dependency-graph-builder
354
+ │ ├── org/
355
+ │ │ ├── ORG.md
356
+ │ │ ├── CONVENTIONS.md
357
+ │ │ ├── SECURITY.md
358
+ │ │ ├── TOOLS.md
359
+ │ │ ├── skills/
360
+ │ │ │ └── MANIFEST.md ← All 10 skills registered
361
+ │ │ └── integrations/
362
+ │ │ └── INTEGRATIONS-CONFIG.md
363
+ │ ├── audit/
364
+ │ │ └── AUDIT-SCHEMA.md ← AUDIT.jsonl schema + archiving protocol
365
+ │ └── MINDFORGE-SCHEMA.json ← JSON Schema for MINDFORGE.md
366
+
367
+ ├── .planning/ ← Project state (created per project)
368
+ │ ├── PROJECT.md
369
+ │ ├── REQUIREMENTS.md
370
+ │ ├── ARCHITECTURE.md
371
+ │ ├── ROADMAP.md
372
+ │ ├── STATE.md
373
+ │ ├── HANDOFF.json ← Schema v1.0.0 (plugin_api_version, decisions_made, etc.)
374
+ │ ├── AUDIT.jsonl ← Append-only, session_id required in v1.0.0
375
+ │ ├── audit-archive/
376
+ │ ├── approvals/
377
+ │ ├── handoffs/ ← Per-developer HANDOFF-[dev-id].json files
378
+ │ ├── milestones/
379
+ │ ├── decisions/ ← ADR-001 through ADR-020
380
+ │ └── phases/
381
+ │ └── [N]/
382
+ │ ├── PLAN-N-MM.md ← XML task plans
383
+ │ ├── DEPENDENCY-GRAPH-N.md
384
+ │ ├── DIFFICULTY-SCORE-N.md
385
+ │ ├── CONTEXT.md ← From /mindforge:discuss-phase
386
+ │ ├── SUMMARY-N-MM.md ← Post-execution summaries
387
+ │ ├── WAVE-REPORT-N.md
388
+ │ ├── SECURITY-REVIEW-N.md
389
+ │ ├── GATE-RESULTS-N.md
390
+ │ ├── VERIFICATION-N.md
391
+ │ └── UAT-N.md
392
+
393
+ ├── MINDFORGE.md ← Project constitution (project root)
394
+ ├── CHANGELOG.md ← v0.1.0 → v1.0.0 history
395
+ ├── SECURITY.md ← Security policy
396
+ ├── package.json ← version: "1.0.0"
397
+
398
+ ├── sdk/
399
+ │ ├── src/
400
+ │ │ ├── index.ts ← Public API exports
401
+ │ │ ├── types.ts ← TypeScript type definitions
402
+ │ │ ├── client.ts ← MindForgeClient
403
+ │ │ ├── events.ts ← MindForgeEventStream (SSE)
404
+ │ │ └── commands.ts ← Command string builders
405
+ │ └── package.json ← @mindforge/sdk v0.6.0
406
+
407
+ ├── tests/ ← 15 test suites
408
+ │ ├── install.test.js ← Day 1
409
+ │ ├── wave-engine.test.js ← Day 2
410
+ │ ├── audit.test.js ← Day 2
411
+ │ ├── compaction.test.js ← Day 2
412
+ │ ├── skills-platform.test.js ← Day 3
413
+ │ ├── integrations.test.js ← Day 4
414
+ │ ├── governance.test.js ← Day 4
415
+ │ ├── intelligence.test.js ← Day 5
416
+ │ ├── metrics.test.js ← Day 5
417
+ │ ├── distribution.test.js ← Day 6
418
+ │ ├── ci-mode.test.js ← Day 6
419
+ │ ├── sdk.test.js ← Day 6
420
+ │ ├── production.test.js ← Day 7
421
+ │ ├── migration.test.js ← Day 7
422
+ │ └── e2e.test.js ← Day 7
423
+
424
+ ├── docs/
425
+ │ ├── reference/ ← commands.md, skills-api.md, sdk-api.md, config-reference.md, audit-events.md
426
+ │ ├── architecture/ ← README.md, decision-records-index.md
427
+ │ ├── contributing/ ← CONTRIBUTING.md, skill-authoring.md, plugin-authoring.md
428
+ │ └── security/ ← SECURITY.md, threat-model.md, penetration-test-results.md
429
+
430
+ └── .github/
431
+ └── workflows/
432
+ └── mindforge-ci.yml ← 4-job CI pipeline
433
+ ```
434
+
435
+ ---
436
+
437
+ ## ALL IMPLEMENTED FEATURES (complete inventory)
438
+
439
+ ### 36 Slash Commands
440
+
441
+ | # | Command | Category | Day |
442
+ |---|---|---|---|
443
+ | 1 | `/mindforge:help` | Lifecycle | 1 |
444
+ | 2 | `/mindforge:init-project` | Lifecycle | 1 |
445
+ | 3 | `/mindforge:plan-phase [N]` | Lifecycle | 1 |
446
+ | 4 | `/mindforge:execute-phase [N]` | Lifecycle | 1 |
447
+ | 5 | `/mindforge:verify-phase [N]` | Lifecycle | 1 |
448
+ | 6 | `/mindforge:ship [N]` | Lifecycle | 1 |
449
+ | 7 | `/mindforge:next` | Management | 2 |
450
+ | 8 | `/mindforge:quick` | Management | 2 |
451
+ | 9 | `/mindforge:status` | Management | 2 |
452
+ | 10 | `/mindforge:debug` | Management | 2 |
453
+ | 11 | `/mindforge:skills` | Skills | 3 |
454
+ | 12 | `/mindforge:review` | Review | 3 |
455
+ | 13 | `/mindforge:security-scan` | Review | 3 |
456
+ | 14 | `/mindforge:map-codebase` | Setup | 3 |
457
+ | 15 | `/mindforge:discuss-phase` | Planning | 3 |
458
+ | 16 | `/mindforge:audit` | Governance | 4 |
459
+ | 17 | `/mindforge:milestone` | Milestone | 4 |
460
+ | 18 | `/mindforge:complete-milestone` | Milestone | 4 |
461
+ | 19 | `/mindforge:approve` | Governance | 4 |
462
+ | 20 | `/mindforge:sync-jira` | Integration | 4 |
463
+ | 21 | `/mindforge:sync-confluence` | Integration | 4 |
464
+ | 22 | `/mindforge:health` | Intelligence | 5 |
465
+ | 23 | `/mindforge:retrospective` | Intelligence | 5 |
466
+ | 24 | `/mindforge:profile-team` | Intelligence | 5 |
467
+ | 25 | `/mindforge:metrics` | Intelligence | 5 |
468
+ | 26 | `/mindforge:init-org` | Setup | 6 |
469
+ | 27 | `/mindforge:install-skill` | Distribution | 6 |
470
+ | 28 | `/mindforge:publish-skill` | Distribution | 6 |
471
+ | 29 | `/mindforge:pr-review` | Review | 6 |
472
+ | 30 | `/mindforge:workspace` | Monorepo | 6 |
473
+ | 31 | `/mindforge:benchmark` | Intelligence | 6 |
474
+ | 32 | `/mindforge:update` | Framework | 7 |
475
+ | 33 | `/mindforge:migrate` | Framework | 7 |
476
+ | 34 | `/mindforge:plugins` | Framework | 7 |
477
+ | 35 | `/mindforge:tokens` | Intelligence | 7 |
478
+ | 36 | `/mindforge:release` | Framework | 7 |
479
+
480
+ ### 10 Core Skill Packs (all with JIT loading, frontmatter, triggers, checklists)
481
+
482
+ 1. `security-review` — OWASP A01-A10, 29 triggers
483
+ 2. `code-quality` — Complexity, naming, patterns
484
+ 3. `api-design` — REST, versioning, error schemas
485
+ 4. `testing-standards` — Coverage, TDD, patterns
486
+ 5. `documentation` — README, ADRs, changelogs
487
+ 6. `performance` — Core Web Vitals, N+1, caching
488
+ 7. `accessibility` — WCAG 2.1+2.2 AA, ARIA, keyboard
489
+ 8. `data-privacy` — GDPR/CCPA, consent, PII patterns
490
+ 9. `incident-response` — P0-P3, runbooks, postmortems
491
+ 10. `database-patterns` — Compound cursor, UUIDv7, indexes
492
+
493
+ ### 8 Agent Personas
494
+
495
+ analyst, architect, developer, qa-engineer, security-reviewer, tech-writer, debug-specialist, release-manager
496
+
497
+ ### 20 Architecture Decision Records
498
+
499
+ ADR-001 through ADR-020 covering: HANDOFF.json, Markdown commands, keyword triggers, wave parallelism, append-only audit, three-tier skills, JIT loading, env-var credentials, compliance gate bypass rules, non-blocking integrations, intelligence feedback loops, MINDFORGE.md constitution, metrics ethics policy, npm registry, CI timeout exit code, localhost SDK, self-install detection, update scope preservation, v1.0.0 stable interface contract
500
+
501
+ ### 15 Test Suites (all in `tests/`)
502
+
503
+ install, wave-engine, audit, compaction, skills-platform, integrations, governance, intelligence, metrics, distribution, ci-mode, sdk, production, migration, e2e
504
+
505
+ ### Governance System
506
+
507
+ - **5 non-bypassable compliance gates**: secret detection (Gate 3 is absolute), CRITICAL security findings, test suite, dependency CVEs, GDPR retention (independent of skill loading)
508
+ - **3-tier approval**: Tier 1 auto, Tier 2 peer (24h SLA), Tier 3 compliance (4h SLA)
509
+ - **3-signal Tier 3 detection**: file path + code content (`jwt.sign` anywhere) + audit history
510
+ - **Emergency override**: only EMERGENCY_APPROVERS list, post-incident review auto-created, audit logged
511
+
512
+ ---
513
+
514
+ ## KEY TECHNICAL DECISIONS
515
+
516
+ | Decision | Choice | Rationale |
517
+ |---|---|---|
518
+ | Command format | Markdown `.md` files | Human-readable, git-diffable, no compilation |
519
+ | Skill loading | JIT keyword triggers | Deterministic, reproducible across sessions |
520
+ | Audit log | Append-only JSONL | Immutable record, simple tooling, git-friendly |
521
+ | Cross-session state | HANDOFF.json | Structured, versioned, migration-safe |
522
+ | Credentials | Env vars only | Never in files — git history is permanent |
523
+ | Skills registry | npm ecosystem | Free infrastructure, existing tooling |
524
+ | CI timeout | Exit code 0 | Timeout ≠ failure, state preserved, resume next run |
525
+ | SSE server | localhost 127.0.0.1 | Project state is sensitive, no network exposure |
526
+ | Plugin permissions | Advisory model | Enforced through agent governance, not OS |
527
+ | Migration filter | toVersion range check | Handles intermediate versions correctly |
528
+ | Compaction | Level 1/2/3 structured | Preserves decisions/discoveries/implicit knowledge |
529
+ | Metrics | System signals only | Never developer performance evaluation (ADR-014) |
530
+
531
+ ---
532
+
533
+ ## KNOWN ISSUES AND GAPS (going into Day 8)
534
+
535
+ ### Not yet implemented (deferred)
536
+ 1. **GUI/Web dashboard** — All outputs are currently Markdown + terminal. No web interface for status, metrics, or approvals
537
+ 2. **Real-time multi-developer coordination** — Multi-HANDOFF system is documented but has no conflict resolution beyond warnings
538
+ 3. **True `npx mindforge-skills` CLI** — The skills install/publish commands are agent commands, not a standalone npm binary
539
+ 4. **SDK TypeScript compilation** — `sdk/` has `.ts` source files but no build output (`dist/`) yet; needs `tsc` build step
540
+ 5. **`docs/security/penetration-test-results.md`** — Scaffolded but not filled in
541
+ 6. **`docs/contributing/CONTRIBUTING.md`** and `plugin-authoring.md` — Scaffolded but content minimal
542
+ 7. **Line-range file reading** (`src/auth/login.ts:40-65`) — Noted in token-optimiser as v1.1.0 feature
543
+ 8. **Lazy file reading enforcement** — Token optimiser Strategy 2 is advisory; execution engine still reads all files upfront
544
+ 9. **`npx mindforge-plugins` standalone binary** — Plugin management only via `/mindforge:plugins` agent command
545
+ 10. **Skill auto-update notifications** — No proactive notification when skills have updates
546
+
547
+ ### Known edge cases in current implementation
548
+ 1. **Windows path handling** — Installer uses `path.join()` which uses backslashes on Windows; not validated on Windows
549
+ 2. **Simultaneous session conflicts** — Two developers updating shared HANDOFF.json simultaneously → last write wins (acknowledged, no lock mechanism)
550
+ 3. **Large project STATE.md** — No automatic pruning; can grow very large in long-lived projects
551
+ 4. **`npm audit` rate limits** — Dependency scanning in CI may hit npm rate limits for large projects
552
+ 5. **ANTHROPIC_API_KEY absence** — AI PR review gracefully skips but there's no fallback static analysis beyond what MindForge already runs
553
+ 6. **Jira Classic vs Next-gen project type** — Dynamic detection recommended but not fully specified; field `customfield_10014` varies
554
+
555
+ ### Architectural debt
556
+ 1. **PLAN XML format** — XML in Markdown is fragile. A migration to structured YAML front-matter would be cleaner but is a MAJOR breaking change
557
+ 2. **AUDIT.jsonl grows without limit** — Archiving at 10K lines is reactive; proactive compaction scheduling not implemented
558
+ 3. **`0.1.0-to-0.5.0.js` and `0.5.0-to-0.6.0.js` migrations** — Written as stubs (correct fields, minimal content); need expanding to cover all edge cases
559
+ 4. **SDK version** — `sdk/package.json` shows `v0.6.0` but should be `v1.0.0` to match the framework version at release
560
+ 5. **MINDFORGE.md parser** — Current k=v parsing is regex-based, not a real parser; triple-quote multi-line values are documented but parsing is fragile
561
+
562
+ ---
563
+
564
+ ## WHAT DAY 8 SHOULD FOCUS ON
565
+
566
+ Day 8's theme: **Multi-Runtime Expansion + Real-Time Collaboration + Public Launch Readiness**
567
+
568
+ ### Primary objectives
569
+
570
+ **1. Multi-runtime expansion — Cursor AI + Windsurf + Codex**
571
+ MindForge currently targets Claude Code (`.claude/`) and Antigravity (`.agent/`).
572
+ Day 8 should add:
573
+ - Cursor AI adapter: `.cursor/rules/` directory structure
574
+ - Windsurf adapter: `.windsurf/` directory structure
575
+ - OpenAI Codex adapter: `.codex/` directory
576
+ Each adapter requires: runtime detection in installer, correct entry point file format, command mirroring, and testing
577
+
578
+ **2. Real-time web dashboard (basic)**
579
+ Build a simple Node.js/Express server (`bin/dashboard.js`) that:
580
+ - Serves a single-page HTML/JS dashboard
581
+ - Reads AUDIT.jsonl, STATE.md, HANDOFF.json, metrics JSONL files
582
+ - Streams live updates via the existing SDK `MindForgeEventStream`
583
+ - Shows: current phase/task, AUDIT event feed, quality scores, pending approvals
584
+ - No authentication required (localhost-only, same security model as SSE)
585
+ - This is the missing observability layer for teams who don't want CLI-only visibility
586
+
587
+ **3. SDK compilation and npm publish**
588
+ - Complete `sdk/tsconfig.json` for proper compilation
589
+ - Build `sdk/dist/index.js` and `sdk/dist/index.d.ts`
590
+ - Publish `@mindforge/sdk` to npm separately from `mindforge-cc`
591
+ - Update SDK README with working installation and example code
592
+ - Add SDK version sync (SDK version = framework version)
593
+
594
+ **4. `npx mindforge-skills` standalone binary**
595
+ Add to `package.json.bin`:
596
+ ```json
597
+ { "mindforge-cc": "bin/install.js", "mindforge-skills": "bin/skills-cli.js" }
598
+ ```
599
+ `bin/skills-cli.js` provides: `mindforge-skills install [name]`, `mindforge-skills search [query]`, `mindforge-skills list`, `mindforge-skills publish [dir]`
600
+
601
+ **5. Complete CONTRIBUTING.md and plugin-authoring guide**
602
+ These are scaffolded but empty — essential for community growth post-v1.0.0 launch
603
+
604
+ ### Secondary objectives
605
+
606
+ **6. MINDFORGE.md parser hardening**
607
+ Replace regex k=v parsing with a proper line-by-line parser that correctly handles triple-quote multi-line values, inline comments, and section headers. Add more test coverage.
608
+
609
+ **7. SDK version alignment**
610
+ Sync `sdk/package.json` version to match `mindforge-cc` version at release time. Add a pre-publish check.
611
+
612
+ **8. Migration edge case completion**
613
+ Expand `0.1.0-to-0.5.0.js` and `0.5.0-to-0.6.0.js` stub migrations with full field coverage and edge case handling (matching the completeness of `0.6.0-to-1.0.0.js`)
614
+
615
+ **9. Windows compatibility verification**
616
+ Test all installer code paths on Windows. Fix path separator issues where found. Add Windows-specific tests to `tests/install.test.js`.
617
+
618
+ **10. Public launch materials**
619
+ - Announcement blog post draft
620
+ - Getting started video script (5-minute demo: install → init-project → plan → execute → verify)
621
+ - Community Discord/Slack setup
622
+ - `mindforge.dev` landing page content
623
+
624
+ ### Day 8 branch and version
625
+
626
+ **Branch:** `feat/mindforge-multi-runtime-dashboard`
627
+ **Target version:** v1.1.0 (stable minor — no breaking changes)
628
+
629
+ ---
630
+
631
+ ## PROMPTING APPROACH THAT WORKED
632
+
633
+ All 7 days followed the same 3-prompt structure per day:
634
+ 1. **Implementation prompt** — Detailed task-by-task build instructions with exact code
635
+ 2. **Review prompt** — Adversarial multi-pass review with persona activation
636
+ 3. **Hardening prompt** — Fixes + ADRs + test additions + final verification
637
+
638
+ Days 1-5 delivered 3 separate .md files. Days 6-7 consolidated into a single file with clear PART 1/2/3 separators (more efficient for long context).
639
+
640
+ Each prompt used:
641
+ - `git add . && git commit -m "..."` between every task (never batch commits)
642
+ - Exact shell verification commands at the end of each task
643
+ - Personas activated explicitly (`architect.md + security-reviewer.md + qa-engineer.md`)
644
+ - Test-driven: every feature had a test in the same task or the next task
645
+ - Explicit "do not implement" sections to prevent scope creep
646
+
647
+ ---
648
+
649
+ ## OUTPUT FILE INVENTORY
650
+
651
+ All prompt files are in `/mnt/user-data/outputs/`:
652
+
653
+ | File | Day | Size | Content |
654
+ |---|---|---|---|
655
+ | `DAY1-IMPLEMENT.md` | 1 | 78KB | Foundation implementation |
656
+ | `DAY1-REVIEW.md` | 1 | 12KB | Foundation review |
657
+ | `DAY1-HARDEN.md` | 1 | 27KB | Foundation hardening |
658
+ | `DAY2-IMPLEMENT.md` | 2 | 73KB | Wave engine implementation |
659
+ | `DAY2-REVIEW.md` | 2 | 20KB | Wave engine review |
660
+ | `DAY2-HARDEN.md` | 2 | 33KB | Wave engine hardening |
661
+ | `DAY3-IMPLEMENT.md` | 3 | 99KB | Skills platform implementation |
662
+ | `DAY3-REVIEW.md` | 3 | 24KB | Skills platform review |
663
+ | `DAY3-HARDEN.md` | 3 | 29KB | Skills platform hardening |
664
+ | `DAY4-IMPLEMENT.md` | 4 | 93KB | Enterprise integrations implementation |
665
+ | `DAY4-REVIEW.md` | 4 | 18KB | Enterprise integrations review |
666
+ | `DAY4-HARDEN.md` | 4 | 37KB | Enterprise integrations hardening |
667
+ | `DAY5-IMPLEMENT.md` | 5 | 108KB | Intelligence layer implementation |
668
+ | `DAY5-REVIEW.md` | 5 | 16KB | Intelligence layer review |
669
+ | `DAY5-HARDEN.md` | 5 | 38KB | Intelligence layer hardening |
670
+ | `DAY6-COMPLETE.md` | 6 | 129KB | Distribution platform (impl+review+harden) |
671
+ | `DAY7-COMPLETE.md` | 7 | 122KB | Production release v1 (impl+review+harden) |
672
+ | `DAY7-PRODUCTION-FINAL.md` | 7 | 174KB | Production release final (complete, definitive) |
673
+
674
+ **Total prompt content generated: ~1.1MB across 18 files, ~32,000 lines**
675
+
676
+ ---
677
+
678
+ ## QUICK REFERENCE: KEY FILE PATHS
679
+
680
+ | What | Path |
681
+ |---|---|
682
+ | Agent entry point (Claude Code) | `.claude/CLAUDE.md` |
683
+ | Agent entry point (Antigravity) | `.agent/CLAUDE.md` |
684
+ | All 36 commands | `.claude/commands/mindforge/*.md` |
685
+ | Skills manifest | `.mindforge/org/skills/MANIFEST.md` |
686
+ | Governance config | `.mindforge/governance/GOVERNANCE-CONFIG.md` |
687
+ | Integrations config | `.mindforge/org/integrations/INTEGRATIONS-CONFIG.md` |
688
+ | Project constitution | `MINDFORGE.md` (project root) |
689
+ | Schema validator | `.mindforge/MINDFORGE-SCHEMA.json` |
690
+ | Project state | `.planning/STATE.md` |
691
+ | Cross-session state | `.planning/HANDOFF.json` |
692
+ | Audit log | `.planning/AUDIT.jsonl` |
693
+ | Current phase plans | `.planning/phases/[N]/PLAN-[N]-[MM].md` |
694
+ | ADRs | `.planning/decisions/ADR-001 through ADR-020.md` |
695
+ | Plugin manifest | `.mindforge/plugins/PLUGINS-MANIFEST.md` |
696
+ | Team profile | `.mindforge/team/TEAM-PROFILE.md` |
697
+ | Metrics | `.mindforge/metrics/session-quality.jsonl` |
698
+
699
+ ---
700
+
701
+ *State file generated at Day 7 completion. MindForge v1.0.0 — 36 commands · 10 skills · 8 personas · 20 ADRs · 15 test suites.*