mindforge-cc 3.0.0 → 5.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 (114) hide show
  1. package/.agent/CLAUDE.md +50 -545
  2. package/.claude/CLAUDE.md +50 -545
  3. package/.mindforge/audit/AUDIT-SCHEMA.md +20 -1
  4. package/.mindforge/engine/nexus-tracer.js +115 -0
  5. package/.mindforge/engine/persona-factory.md +45 -0
  6. package/.mindforge/engine/swarm-controller.md +59 -0
  7. package/.mindforge/engine/wave-executor.md +104 -54
  8. package/.mindforge/memory/pattern-library.jsonl +1 -2
  9. package/.mindforge/personas/swarm-templates.json +118 -0
  10. package/.planning/ROI.jsonl +2 -0
  11. package/CHANGELOG.md +133 -22
  12. package/MINDFORGE.md +75 -106
  13. package/README.md +71 -101
  14. package/RELEASENOTES.md +41 -24
  15. package/bin/autonomous/auto-runner.js +154 -4
  16. package/bin/autonomous/context-refactorer.js +64 -0
  17. package/bin/autonomous/steer.js +19 -1
  18. package/bin/autonomous/stuck-monitor.js +43 -0
  19. package/bin/engine/feedback-loop.js +71 -0
  20. package/bin/engine/handover-manager.js +69 -0
  21. package/bin/engine/nexus-tracer.js +215 -0
  22. package/bin/engine/sre-manager.js +63 -0
  23. package/bin/engine/temporal-hindsight.js +88 -0
  24. package/bin/governance/policies/default-policies.jsonl +33 -0
  25. package/bin/governance/policy-engine.js +106 -0
  26. package/bin/governance/rbac-manager.js +109 -0
  27. package/bin/governance/trust-verifier.js +81 -0
  28. package/bin/governance/ztai-archiver.js +104 -0
  29. package/bin/governance/ztai-manager.js +203 -0
  30. package/bin/memory/eis-client.js +95 -0
  31. package/bin/memory/federated-sync.js +127 -0
  32. package/bin/memory/ghost-pattern-detector.js +69 -0
  33. package/bin/memory/knowledge-graph.js +37 -0
  34. package/bin/memory/semantic-hub.js +104 -0
  35. package/bin/models/cloud-broker.js +83 -0
  36. package/bin/models/finops-hub.js +79 -0
  37. package/bin/models/model-broker.js +129 -0
  38. package/bin/skill-validator.js +41 -0
  39. package/docs/INTELLIGENCE-MESH.md +35 -0
  40. package/docs/PERSONAS.md +63 -0
  41. package/docs/{references → References}/audit-events.md +6 -0
  42. package/docs/architecture/NEXUS-DASHBOARD.md +35 -0
  43. package/docs/architecture/PAR-ZTS-SURVEY.md +43 -0
  44. package/docs/architecture/README.md +31 -64
  45. package/docs/architecture/V4-SWARM-MESH.md +77 -0
  46. package/docs/architecture/V5-ENTERPRISE.md +113 -0
  47. package/docs/feature-dashboard.md +6 -1
  48. package/docs/governance-guide.md +47 -23
  49. package/docs/security/SECURITY.md +20 -7
  50. package/docs/security/ZTAI-OVERVIEW.md +37 -0
  51. package/docs/user-guide.md +29 -3
  52. package/docs/usp-features.md +79 -5
  53. package/package.json +1 -1
  54. /package/docs/{context → Context}/Master-Context.md +0 -0
  55. /package/docs/{references → References}/checkpoints.md +0 -0
  56. /package/docs/{references → References}/commands.md +0 -0
  57. /package/docs/{references → References}/config-reference.md +0 -0
  58. /package/docs/{references → References}/continuation-format.md +0 -0
  59. /package/docs/{references → References}/decimal-phase-calculation.md +0 -0
  60. /package/docs/{references → References}/git-integration.md +0 -0
  61. /package/docs/{references → References}/git-planning-commit.md +0 -0
  62. /package/docs/{references → References}/model-profile-resolution.md +0 -0
  63. /package/docs/{references → References}/model-profiles.md +0 -0
  64. /package/docs/{references → References}/phase-argument-parsing.md +0 -0
  65. /package/docs/{references → References}/planning-config.md +0 -0
  66. /package/docs/{references → References}/questioning.md +0 -0
  67. /package/docs/{references → References}/sdk-api.md +0 -0
  68. /package/docs/{references → References}/skills-api.md +0 -0
  69. /package/docs/{references → References}/tdd.md +0 -0
  70. /package/docs/{references → References}/ui-brand.md +0 -0
  71. /package/docs/{references → References}/user-profiling.md +0 -0
  72. /package/docs/{references → References}/verification-patterns.md +0 -0
  73. /package/docs/{references → References}/workstream-flag.md +0 -0
  74. /package/docs/{templates → Templates}/Agents/CLAUDE-MD.md +0 -0
  75. /package/docs/{templates → Templates}/Agents/COPILOT-INSTRUCTIONS.md +0 -0
  76. /package/docs/{templates → Templates}/Agents/DEBUGGER-PROMPT.md +0 -0
  77. /package/docs/{templates → Templates}/Agents/PLANNER-PROMPT.md +0 -0
  78. /package/docs/{templates/codebase → Templates/Codebase}/architecture.md +0 -0
  79. /package/docs/{templates/codebase → Templates/Codebase}/concerns.md +0 -0
  80. /package/docs/{templates/codebase → Templates/Codebase}/conventions.md +0 -0
  81. /package/docs/{templates/codebase → Templates/Codebase}/integrations.md +0 -0
  82. /package/docs/{templates/codebase → Templates/Codebase}/stack.md +0 -0
  83. /package/docs/{templates/codebase → Templates/Codebase}/structure.md +0 -0
  84. /package/docs/{templates/codebase → Templates/Codebase}/testing.md +0 -0
  85. /package/docs/{templates → Templates}/Execution/CONTINUE-HERE.md +0 -0
  86. /package/docs/{templates → Templates}/Execution/DISCUSSION-LOG.md +0 -0
  87. /package/docs/{templates → Templates}/Execution/PHASE-PROMPT.md +0 -0
  88. /package/docs/{templates → Templates}/Execution/STATE.md +0 -0
  89. /package/docs/{templates → Templates}/Execution/SUMMARY-COMPLEX.md +0 -0
  90. /package/docs/{templates → Templates}/Execution/SUMMARY-MINIMAL.md +0 -0
  91. /package/docs/{templates → Templates}/Execution/SUMMARY-STANDARD.md +0 -0
  92. /package/docs/{templates → Templates}/Execution/SUMMARY.md +0 -0
  93. /package/docs/{templates → Templates}/Profile/DEV-PREFERENCES.md +0 -0
  94. /package/docs/{templates → Templates}/Profile/USER-PROFILE.md +0 -0
  95. /package/docs/{templates → Templates}/Profile/USER-SETUP.md +0 -0
  96. /package/docs/{templates → Templates}/Project/DISCOVERY.md +0 -0
  97. /package/docs/{templates → Templates}/Project/MILESTONE-ARCHIVE.md +0 -0
  98. /package/docs/{templates → Templates}/Project/MILESTONE.md +0 -0
  99. /package/docs/{templates → Templates}/Project/PROJECT.md +0 -0
  100. /package/docs/{templates → Templates}/Project/REQUIREMENTS.md +0 -0
  101. /package/docs/{templates → Templates}/Project/RETROSPECTIVE.md +0 -0
  102. /package/docs/{templates → Templates}/Project/ROADMAP.md +0 -0
  103. /package/docs/{templates → Templates}/Quality/DEBUG.md +0 -0
  104. /package/docs/{templates → Templates}/Quality/UAT.md +0 -0
  105. /package/docs/{templates → Templates}/Quality/UI-SPEC.md +0 -0
  106. /package/docs/{templates → Templates}/Quality/VALIDATION.md +0 -0
  107. /package/docs/{templates → Templates}/Quality/VERIFICATION-REPORT.md +0 -0
  108. /package/docs/{templates/research → Templates/Research}/ARCHITECTURE.md +0 -0
  109. /package/docs/{templates/research → Templates/Research}/FEATURES.md +0 -0
  110. /package/docs/{templates/research → Templates/Research}/PITFALLS.md +0 -0
  111. /package/docs/{templates/research → Templates/Research}/STACK.md +0 -0
  112. /package/docs/{templates/research → Templates/Research}/SUMMARY.md +0 -0
  113. /package/docs/{templates → Templates}/System/CONFIG.json +0 -0
  114. /package/docs/{templates → Templates}/System/CONTEXT.md +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,116 @@
1
1
  # Changelog
2
2
 
3
+ ## [5.0.0-alpha.2] — Predictive Reliability & Supply Chain Trust — 2026-03-28
4
+
5
+ 🚀 **MindForge v5.0.0 — Pillars III & IV Implementation**
6
+
7
+ This update adds the next two critical architectural pillars to the v5 Enterprise roadmap, focusing on long-term session reliability and a verifiable asset supply chain.
8
+
9
+ ### Pillar III: Predictive Agentic Reliability (PAR)
10
+
11
+ - **Advanced Loop Detection**: Implemented **S03 (Semantic Mirroring)** and **S04 (Infinite Decomposition)** patterns in the `StuckMonitor`.
12
+ - **Context Density Refactorer**: New proactive utility that triggers context summarization and handoffs when reasoning-to-action density falls below 30%.
13
+ - **C2C Arbitrage**: Integrated **Confidence-to-Cost** threshold gating into the `AutoRunner` to prevent low-value autonomous drift.
14
+ - **Self-Healing Integration**: Automated triggering of "hindsight injection" and state repair when PAR patterns are detected.
15
+
16
+ ### Pillar IV: Supply Chain Trust (ZTS)
17
+
18
+ - **Agentic SBOM**: Implemented the `NexusTracer` manifest generator, producing real-time `MANIFEST.sbom.json` files for every reasoning chain.
19
+ - **7-Dimension Certification (7D)**: Re-architected the `skill-validator` with a weighted scoring system covering Schema, Triggers, Security, Clarity, and Examples.
20
+ - **Enterprise-Grade Enforcement**: Strict `--enterprise` mode requirement for a minimum **7.0/10.0** certification score.
21
+ - **Model/Skill Telemetry**: Integrated real-time tracking of asset provenance and usage history in the audit stream.
22
+
23
+ ## [5.0.0-alpha.1] — Federated Intelligence & Policy Orchestration — 2026-03-28
24
+
25
+ 🚀 **MindForge v5.0.0 — The Enterprise "Beast" Release**
26
+
27
+ This landmark release transforms MindForge into a distributed, governable, and cryptographically verified agentic operating system. V5 introduces the first two pillars of the Enterprise Architecture: Federated Intelligence Mesh (FIM) and Agentic Policy Orchestrator (APO).
28
+
29
+ ### Pillar I: Federated Intelligence Mesh (FIM)
30
+
31
+ - **Enterprise Intelligence Service (EIS)**: Implemented `eis-client.js` for secure, authenticated communication with the organizational knowledge hub.
32
+ - **Delta-Sync Protocol**: Implemented `federated-sync.js` with timestamp-based delta pulls, significantly reducing synchronization latency.
33
+ - **ZTAI-Signed Provenance**: Every knowledge item in the mesh is cryptographically tied to the DID of the originating agent.
34
+ - **Hybrid Knowledge Graph**: Extended `knowledge-graph.js` to seamlessly resolve local nodes and remote federated nodes.
35
+
36
+ ### Pillar II: Agentic Policy Orchestrator (APO)
37
+
38
+ - **Policy-as-Code (PaC)**: Implemented `policy-engine.js` for intent-based evaluation of agent actions against organizational security rules.
39
+ - **RBAC Manager**: Implemented `rbac-manager.js` for mapping DIDs to project roles and binding permissions to ZTAI Trust Tiers.
40
+ - **Policy Interceptor**: Deep integration into `auto-runner.js`, enforcing a pre-flight governance gate before every autonomous wave.
41
+ - **Default Enterprise Policies**: Shipped with initial security guardrails for engine and infrastructure protection.
42
+
43
+ ### Hardening ("Beast" Mode)
44
+
45
+ - **ZTAI Interlock**: All mesh and policy operations now utilize the hardware-enclave (simulated) signing engine for Tier 3 principals.
46
+ - **Dynamic Intent Extraction**: Autonomous intents are now derived in real-time from active session identities.
47
+ - **Conflict Resolution (LWW)**: Hardened the federated sync with Last-Write-Wins conflict resolution logic.
48
+
49
+ ---
50
+
51
+ ## [4.3.0] — Enterprise Mesh & Proactive Equilibrium — 2026-03-28
52
+
53
+ 🚀 **MindForge v4.3.0 — The Maturity Release**
54
+
55
+ This major update completes the **MindForge V4 Roadmap**, introducing autonomous financial governance and self-healing reliability engines. It also includes a comprehensive structural reorganization of the framework for enterprise scalability.
56
+
57
+ ### Key Pillars (v4.3.0)
58
+
59
+ - **Autonomous FinOps Hub (Pillar V)**: Implemented `ModelBroker` for dynamic **C2C (Confidence-to-Cost)** routing and `FinOpsHub` for real-time ROI tracking.
60
+ - **Proactive Equilibrium (Pillar VI)**: Implemented `WaveFeedbackLoop` for divergence detection and `TemporalHindsight` for autonomous state recovery (RCA/Repair).
61
+ - **Structural Reorganization**: Migrated all core engine implementation files from `.mindforge/` logic directories to a standardized `bin/` domain architecture.
62
+ - **Global Memory Sync**: Enhanced `SemanticHub` to support organizational-level knowledge sharing via `~/.mindforge/`.
63
+ - **Hardenened ZTAI Beast Mode**: HSM-simulated signing for Tier 3 principals and automated audit integrity manifests.
64
+
65
+ 🚀 **MindForge v4.2.0 — The Security Revolution**
66
+
67
+ This update introduces **Zero-Trust Agentic Identity (ZTAI)**, a core pillar of the MindForge enterprise security architecture. It establishes a DID-based identity system with cryptographic signing for all agentic actions, ensuring non-repudiable audit trails and tiered governance.
68
+
69
+ ### Key Pillars (v4.2.0)
70
+
71
+ - **ZTAI Identity Engine**: Core manager for DID generation (`did:mindforge:<uuid>`) and Ed25519 key pair lifecycle.
72
+ - **Cryptographic Audit Signing**: All reasoning traces and spans are signed by the originating agent, ensuring log integrity.
73
+ - **Trust-Tiered Governance**: 4-tier authorization model (0-3) for granular permission control across the agentic mesh.
74
+ - **Identity-Lock Engine**: Automated security gate in the `WaveExecutor` that blocks unauthorized Tier 3 actions.
75
+ - **Trust Verifier**: Real-time cryptographic validation of the `AUDIT.jsonl` log for cross-session integrity.
76
+ - **Beast Mode Hardening**: session-based key rotation and hardware security module (HSM) hook placeholders.
77
+
78
+ ---
79
+
80
+ ## [4.1.0] — MindForge Nexus (Observability & Tracing) — 2026-03-27
81
+
82
+ 🚀 **MindForge v4.1.0 — The Observability Revolution**
83
+
84
+ This update introduces **MindForge Nexus**, a high-fidelity observability and tracing system designed for the agentic mesh. It enables deep visibility into agentic "thought chains" and parallel swarm execution through OpenTelemetry-compatible tracing.
85
+
86
+ ### Key Pillars (v4.1.0)
87
+
88
+ - **Nexus Tracer Engine**: Core engine for managing hierarchical spans and trace context propagation across the mesh.
89
+ - **Agentic Reasoning Tracing (ART)**: New audit event type `reasoning_trace` for capturing granular agentic thought cycles.
90
+ - **Hierarchical Span Orchestration**: Universal ART fields (`trace_id`, `span_id`, `parent_span_id`) integrated into all audit events.
91
+ - **Mesh-Integrated Tracing**: Direct injection of tracing protocols into the `Wave Executor` and `Swarm Controller`.
92
+ - **Nexus Dashboard Spec**: Architectural blueprint for real-time trace visualization and reasoning heatmaps.
93
+ - **ZTAI Observability**: Integrated trust-tier visibility for secure execution monitoring.
94
+
95
+ ---
96
+
97
+ ## [4.0.0] — Dynamic Multi-Agent Swarms (Agentic Mesh) — 2026-03-27
98
+
99
+ 🚀 **MindForge v4.0.0 — The Mesh Revolution**
100
+
101
+ This landmark release introduces **Dynamic Multi-Agent Swarms (Agentic Mesh)**, shifting MindForge from sequential subagent execution to a parallel, task-aware, and verifiable cluster-based orchestration system. V4 enables mass-scale autonomous engineering through ephemeral specialist clusters and zero-trust resonance.
102
+
103
+ ### Key Pillars (v4.0.0)
104
+
105
+ - **Dynamic Swarm Orchestration**: The new `SwarmController` analyzes task complexity and spawns ephemeral clusters of specialist personas in parallel.
106
+ - **Micro-Persona Factory**: On-the-fly persona specialization using task-specific knowledge injection via `Context7`.
107
+ - **Wave Executor (Mesh Mode)**: Refactored parallel execution engine with shared `SWARM-STATE` synchronization and leader-led synthesis.
108
+ - **ZTAI (Zero-Trust Agentic Identity)**: DID-based cryptographic signing for swarm actions and multi-tier trust enforcement.
109
+ - **Enterprise specialist Library**: 12+ pre-defined swarm templates including `AIEngineeringSwarm`, `IdentityTrustSwarm`, `DataMeshSwarm`, and `IncidentResponseSwarm`.
110
+ - **HITL Governance Gates**: Human-in-the-loop decision gates for high-risk (Tier 3) architectural and compliance-heavy operations.
111
+
112
+ ---
113
+
3
114
  ## [3.0.0] — Reactive Autonomous Intelligence — 2026-03-27
4
115
 
5
116
  🚀 **MindForge v3.0.0 — The Architecture Revolution**
@@ -406,28 +517,28 @@ partners with full governance, observability, and enterprise integration.
406
517
 
407
518
  ### What ships in v1.0.0
408
519
 
409
- **36 commands** across 7 workflow categories
410
- **10 core skill packs** with three-tier registry (Core/Org/Project)
411
- **8 specialised agent personas** covering all engineering roles
412
- **Wave-based parallel execution** with dependency graph and automatic compaction
413
- **Enterprise integrations**: Jira, Confluence, Slack, GitHub, GitLab
414
- **Three-tier governance**: Tier 1 (auto) / Tier 2 (peer review) / Tier 3 (compliance)
415
- **Five non-bypassable compliance gates** (secret detection, CRITICAL findings, tests, CVEs, GDPR)
416
- **Intelligence layer**: health engine, difficulty scorer, anti-pattern detector, team profiling
417
- **Public skills registry**: npm-based `mindforge-skill-*` ecosystem
418
- **CI/CD integration**: GitHub Actions, GitLab CI, Jenkins adapters
419
- **@mindforge/sdk**: TypeScript SDK with client, event stream, and command builders
420
- **Monorepo support**: npm/pnpm/Nx/Turborepo/Lerna workspace detection
421
- **AI PR Review**: Claude API-powered code review with context loading
422
- **Self-update mechanism**: version check, changelog diff, scope-preserving apply
423
- **Version migration engine**: schema migration from v0.1.0 through v1.0.0
424
- **Plugin system**: extensible via `mindforge-plugin-*` npm namespace
425
- **Token usage optimiser**: profiling and efficiency strategies
426
- **50-point production readiness checklist**: fully verified before this release
427
-
428
- **20 Architecture Decision Records** documenting every major design choice
429
- **15 test suites** with 3× consecutive run requirement
430
- **Complete reference documentation**: commands, security, ADR index, threat model
520
+ **36 commands** across 7 workflow categories
521
+ **10 core skill packs** with three-tier registry (Core/Org/Project)
522
+ **8 specialised agent personas** covering all engineering roles
523
+ **Wave-based parallel execution** with dependency graph and automatic compaction
524
+ **Enterprise integrations**: Jira, Confluence, Slack, GitHub, GitLab
525
+ **Three-tier governance**: Tier 1 (auto) / Tier 2 (peer review) / Tier 3 (compliance)
526
+ **Five non-bypassable compliance gates** (secret detection, CRITICAL findings, tests, CVEs, GDPR)
527
+ **Intelligence layer**: health engine, difficulty scorer, anti-pattern detector, team profiling
528
+ **Public skills registry**: npm-based `mindforge-skill-*` ecosystem
529
+ **CI/CD integration**: GitHub Actions, GitLab CI, Jenkins adapters
530
+ **@mindforge/sdk**: TypeScript SDK with client, event stream, and command builders
531
+ **Monorepo support**: npm/pnpm/Nx/Turborepo/Lerna workspace detection
532
+ **AI PR Review**: Claude API-powered code review with context loading
533
+ **Self-update mechanism**: version check, changelog diff, scope-preserving apply
534
+ **Version migration engine**: schema migration from v0.1.0 through v1.0.0
535
+ **Plugin system**: extensible via `mindforge-plugin-*` npm namespace
536
+ **Token usage optimiser**: profiling and efficiency strategies
537
+ **50-point production readiness checklist**: fully verified before this release
538
+
539
+ **20 Architecture Decision Records** documenting every major design choice
540
+ **15 test suites** with 3× consecutive run requirement
541
+ **Complete reference documentation**: commands, security, ADR index, threat model
431
542
 
432
543
  ### Stable interface contract
433
544
  See ADR-020. All 36 commands, HANDOFF.json schema, AUDIT event types,
package/MINDFORGE.md CHANGED
@@ -1,110 +1,79 @@
1
- # MINDFORGE.md — Project Constitution
2
-
3
- ## NON-OVERRIDABLE RULES (read-only — these cannot be changed in MINDFORGE.md)
4
-
5
- The following CLAUDE.md behaviors are governance primitives and cannot be
6
- disabled or overridden by MINDFORGE.md:
7
-
8
- - Security auto-trigger for auth/payment/PII changes
9
- - Plan-first rule (no implementation without a PLAN)
10
- - Secret detection gate
11
- - AUDIT writing requirement
12
- - Critical security and secret-related quality gates
13
-
14
- Any attempted override is ignored and logged.
15
-
16
- ## Parsing rule for multiline values
17
- Values wrapped in triple quotes are parsed as a verbatim multi-line string from
18
- the first `"""` to the next `"""`.
19
-
20
- ## Model validation
21
- If a configured model is unavailable, fallback to `inherit` and warn.
22
-
23
- ## Project identity
24
- NAME=MindForge
25
- VERSION=2.0.0
26
- DESCRIPTION=Enterprise agentic framework with Multi-Model Intelligence Layer
27
- MINDFORGE_VERSION_REQUIRED=2.0.0
28
-
29
- ## Model preferences
30
- PLANNER_MODEL=claude-opus-4-5
31
- EXECUTOR_MODEL=claude-sonnet-4-5
32
- REVIEWER_MODEL=claude-sonnet-4-5
33
- VERIFIER_MODEL=claude-sonnet-4-5
34
- SECURITY_MODEL=claude-opus-4-5
35
- DEBUG_MODEL=claude-opus-4-5
36
- RESEARCH_MODEL=gemini-1.5-pro
37
- QA_MODEL=claude-4-5-sonnet
38
- QUICK_MODEL=claude-4-5-haiku
39
-
40
- ## Cost Management
41
- MODEL_COST_WARN_USD=1.00
42
- MODEL_COST_HARD_LIMIT_USD=10.00
43
- MODEL_PREFER_CHEAP_BELOW_DIFFICULTY=2.0
44
- REQUIRE_CROSS_REVIEW=false
45
-
46
- ## Execution behavior
47
- TIER1_AUTO_APPROVE=true
48
- WAVE_CONFIRMATION_REQUIRED=false
49
- AUTO_DISCUSS_PHASE=false
50
- VERIFY_PASS_RATE_WARNING_THRESHOLD=0.75
51
- COMPACTION_THRESHOLD_PCT=70
52
- MAX_TASKS_PER_PHASE=15
53
-
54
- ## Quality standards
55
- MIN_TEST_COVERAGE_PCT=80
56
- MAX_FUNCTION_LINES=40
57
- MAX_CYCLOMATIC_COMPLEXITY=10
58
- REQUIRE_ADR_FOR_ALL_DECISIONS=false
59
- BLOCK_ON_MEDIUM_SECURITY_FINDINGS=false
60
-
61
- ## Skills behavior
62
- ALWAYS_LOAD_SKILLS=security-review
63
- DISABLED_SKILLS=
64
- MAX_FULL_SKILL_INJECTIONS=3
65
-
66
- ## Governance
67
- DISCUSS_PHASE_REQUIRED_ABOVE_DIFFICULTY=3.5
68
- ANTIPATTERN_SENSITIVITY=standard
69
- BLOCK_ON_HIGH_ANTIPATTERNS=false
70
-
71
- ## Autonomous mode settings
72
- AUTO_MODE_DEFAULT_TIMEOUT_MINUTES=120
73
- AUTO_PUSH_ON_WAVE_COMPLETE=false
74
- AUTO_NODE_REPAIR_BUDGET=2
75
- AUTO_PLAN_AMBIGUITY_THRESHOLD=3.5
76
- SLACK_WEBHOOK_URL=
77
-
78
- ## Browser Runtime
79
- BROWSER_PORT=7338
80
- BROWSER_HEADLESS=true
81
- DEV_SERVER_URL=http://localhost:3000
82
- AUTO_RUN_QA_AFTER_UI_WAVES=true
83
- BROWSER_IDLE_TIMEOUT_MINUTES=30
84
- AUTO_RUN_UI_REVIEW_AFTER_UI_WAVES=true
85
- UI_PHASE_ACCESSIBILITY_STANDARD=WCAG_AA
86
-
87
- ## Project-specific agent instructions
88
- ADDITIONAL_AGENT_INSTRUCTIONS="""
89
- - Check packages/shared before creating utilities.
90
- - Backend middleware semantics follow Fastify conventions.
91
- - Keep dependency direction one-way from frontend to backend APIs.
92
- - Prefer date-fns for date manipulation.
93
- """
94
-
95
- ## Project-specific forbidden patterns
96
- PROJECT_FORBIDDEN_PATTERNS="""
97
- - No direct DB access from frontend packages
1
+ # MINDFORGE.md — Parameter Registry (v4.1.0-alpha.nexus)
2
+
3
+ ## 1. IDENTITY & VERSIONING
4
+
5
+ [NAME] = MindForge
6
+ [VERSION] = 4.2.0-alpha.ztai
7
+ [STABLE] = false
8
+ [MODE] = "Zero-Trust Identity"
9
+ [REQUIRED_CORE_VERSION] = 4.2.0
10
+
11
+ ## 2. INTELLIGENCE TOGGLES (V4 UPDATES)
12
+
13
+ [SWARM_ORCHESTRATION] = true
14
+ [AUTO_SWARM_THRESHOLD] = 7.0
15
+ [CONTEXT7_DEPTH] = "EXTENDED"
16
+ [DYNAMISM_LEVEL] = 5
17
+ [REACTIVE_MODE] = true
18
+ [CONTEXT_SHARDING] = true
19
+ [ADS_LOOP_ENFORCED] = true
20
+ [TEMPORAL_VISION] = true
21
+ [RAG_2_AUTO_SHADOW] = true
22
+ [ENABLE_ART_TRACING] = true
23
+ [ENABLE_ZTAI] = true
24
+ [ZTAI_KEY_TYPE] = "Ed25519"
25
+ [NEXUS_TRACE_RETENTION_DAYS] = 30
26
+
27
+ ---
28
+
29
+ ## 3. MODEL TOPOLOGY
30
+
31
+ # Persona to Model mapping
32
+ [PLANNER] = claude-opus-4-5
33
+ [EXECUTOR] = claude-sonnet-4-5
34
+ [REVIEWER] = claude-sonnet-4-5
35
+ [VERIFIER] = claude-sonnet-4-5
36
+ [SECURITY] = claude-opus-4-5
37
+ [DEBUG] = claude-opus-4-5
38
+ [RESEARCH] = gemini-1.5-pro
39
+ [QA] = claude-4-5-sonnet
40
+
41
+ ---
42
+
43
+ ## 4. GOVERNANCE & ECONOMICS
44
+
45
+ # Limits and safety gates
46
+ [COST_WARN_USD] = 2.00
47
+ [COST_HARD_LIMIT_USD] = 25.00
48
+ [ADS_DEBATE_ROUNDS] = 2
49
+ [MIN_SOUL_SCORE] = 7.0
50
+ [REQUIRE_ADR] = true
51
+ [BLOCK_ON_SECURITY] = true
52
+
53
+ ---
54
+
55
+ ## 5. RESOURCE GEOMETRY
56
+
57
+ # Paths and ports
58
+ [BROWSER_PORT] = 7338
59
+ [DASHBOARD_PORT] = 7339
60
+ [API_URL] = <http://localhost:3000>
61
+ [SHARD_RETAIN_DAYS] = 7
62
+
63
+ ---
64
+
65
+ ## 6. PROJECT CONSTRAINTS
66
+
67
+ # Static rules for the agent
68
+ [FORBIDDEN] = """
69
+ - No direct DB access from frontend
98
70
  - No synchronous I/O in API handlers
99
- - No console.log in API services
71
+ - No console.log in production services
100
72
  - No TODO comments in committed code
101
73
  """
102
74
 
103
- ## Self-Building Skills
104
- AUTO_CAPTURE_SKILLS=false
105
- AUTO_CAPTURE_MIN_PATTERN_COUNT=2
106
- AUTO_CAPTURE_MIN_CONFIDENCE=0.75
107
- LEARN_MODEL=inherit
108
- MARKETPLACE_REGISTRY=https://registry.mindforge.dev/v1
109
- MARKETPLACE_DAILY_FETCH_LIMIT=50
110
- SKILL_QUALITY_MIN_SCORE=60
75
+ [INSTRUCTIONS] = """
76
+ - Check packages/shared before creating utilities.
77
+ - Backend middleware follows Fastify conventions.
78
+ - Date manipulation using date-fns only.
79
+ """
package/README.md CHANGED
@@ -1,19 +1,34 @@
1
- # MindForge — Enterprise Agentic Framework (v3.0.0-rc1)
1
+ # MindForge — Enterprise Agentic Framework (v5.0.0)
2
2
 
3
- MindForge turns Claude Code and Antigravity into production-grade engineering
4
- partners with governance, observability, and a reactive autonomous intelligence engine.
5
- Release published: v3.0.0-rc1.
3
+ MindForge turns AI coding agents into production-grade engineering partners with governance, multi-cloud resilience, and a non-bypassable Sovereign Reason Enclave.
4
+ Release published: v5.0.0-PRO.
5
+
6
+ ## Installation & Setup
7
+
8
+ ### 🚀 Quick Start (No Install)
9
+
10
+ Run MindForge immediately for a specific runtime without a permanent installation:
6
11
 
7
- # Install
8
12
  ```bash
9
- npx mindforge-cc@latest
13
+ npx mindforge-cc@latest --claude --global
10
14
  ```
11
15
 
12
- # Install V3 (Latest)
16
+ ### 🌍 Global Installation
17
+
18
+ Enable system-wide `/mindforge` commands for your primary AI coding runtime:
19
+
13
20
  ```bash
14
21
  npm install -g mindforge-cc@latest
15
22
  ```
16
23
 
24
+ ### 📂 Local Project Setup
25
+
26
+ Initialize MindForge in an existing repository with specialized agent identities:
27
+
28
+ ```bash
29
+ npx mindforge-cc@latest --claude --local
30
+ ```
31
+
17
32
  ---
18
33
 
19
34
  ## Why MindForge
@@ -21,6 +36,14 @@ npm install -g mindforge-cc@latest
21
36
  AI coding agents degrade over long sessions. Context fills up. Quality drops.
22
37
  Decisions get forgotten. MindForge fixes that with:
23
38
 
39
+ - **Multi-Cloud Arbitrage (v5.0)** — Dynamic routing and provider hedging with low-latency arbitrage.
40
+ - **Sovereign Reason Enclave (v5.0)** — TEE-simulated reasoning isolation and sanitization for confidential workloads.
41
+ - **Human-Agent Handover (v5.0)** — Nexus State Bundles and mid-wave steering injection.
42
+ - **Autonomous FinOps (v4.3)** — Dynamic **C2C** (Confidence-to-Cost) routing and Agentic ROI tracking.
43
+ - **Proactive Equilibrium (v4.3)** — Real-time **Wave Divergence** monitoring and autonomous state recovery.
44
+ - **MindForge Nexus (v4.1)** — High-fidelity **ART** (Agentic Reasoning Tracing).
45
+ - **Zero-Trust Identity (v4.2)** — DID-signed non-repudiable audit logs with HSM/Enclave support.
46
+ - **Global Intelligence Mesh (v4.2)** — Cross-repo knowledge sharing and Ghost Pattern Detection.
24
47
  - **Context Sharding (v3)** — relevance-dense memory management (40% token savings)
25
48
  - **Adversarial Synthesis (v3)** — zero-drift logic through red/blue model debate
26
49
  - **Temporal Vision (v3)** — full history scrubbing and hindsight state repair
@@ -42,94 +65,22 @@ Decisions get forgotten. MindForge fixes that with:
42
65
  ---
43
66
 
44
67
 
45
- ## Install
46
-
47
- ### Claude Code (global)
48
-
49
- ```bash
50
- npx mindforge-cc@latest --claude --global
51
- ```
52
-
53
-
54
- ### Claude Code (local)
55
-
56
- ```bash
57
- npx mindforge-cc@latest --claude --local
58
- ```
59
-
60
- ### Quick Start
61
-
62
- ```bash
63
- # Install the latest stable version
64
- npm install -g mindforge-cc
65
-
66
- # Or try the v2.0.0-alpha (latest features)
67
- npm install -g mindforge-cc@alpha
68
-
69
- # Or try the V3 Release (latest features)
70
- npm install -g mindforge-cc@latest
71
- ```
72
-
73
-
74
- ### Antigravity
75
-
76
- ```bash
77
- npx mindforge-cc@latest --antigravity --global
78
- ```
79
-
80
- Local installs use `agents/` by default. Legacy `.agent/` is supported for existing projects.
81
-
82
- Optional: add bin utilities on local install
83
- ```bash
84
- npx mindforge-cc@latest --claude --local --with-utils
85
- ```
86
-
87
- Optional: minimal project scaffolding
88
- ```bash
89
- npx mindforge-cc@latest --claude --local --minimal
90
- ```
91
-
92
-
93
- ### Cursor
94
-
95
- ```bash
96
- npx mindforge-cc@latest --cursor --local
97
- ```
98
-
99
-
100
- ### Gemini CLI
101
-
102
- ```bash
103
- npx mindforge-cc@latest --gemini --global
104
- ```
105
-
106
-
107
- ### GitHub Copilot
108
-
109
- ```bash
110
- npx mindforge-cc@latest --copilot --local
111
- ```
68
+ ## 🛠️ Configuration & Runtimes
112
69
 
70
+ MindForge adapts to your existing engineering environment via runtime flags:
113
71
 
114
- ### OpenCode
72
+ | Runtime | Global Command | Local Setup |
73
+ | :--- | :--- | :--- |
74
+ | **Claude Code** | `mindforge-cc --claude --global` | `mindforge-cc --claude --local` |
75
+ | **Antigravity** | `mindforge-cc --antigravity --global` | `mindforge-cc --antigravity --local` |
76
+ | **Cursor** | `mindforge-cc --cursor --global` | `mindforge-cc --cursor --local` |
77
+ | **GitHub Copilot** | `mindforge-cc --copilot --global` | `mindforge-cc --copilot --local` |
78
+ | **Gemini CLI** | `mindforge-cc --gemini --global` | `mindforge-cc --gemini --local` |
115
79
 
116
- ```bash
117
- npx mindforge-cc@latest --opencode --global
118
- ```
119
-
120
-
121
- ### Specific Runtime (Universal)
122
-
123
- ```bash
124
- npx mindforge-cc@latest --runtime <name>
125
- ```
126
-
127
-
128
- ### Multiple runtimes
129
-
130
- ```bash
131
- npx mindforge-cc@latest --runtime claude,cursor --local
132
- ```
80
+ ### Advanced Setup Options
81
+ - **Combined Runtimes**: `mindforge-cc --runtime claude,cursor --local`
82
+ - **With Utilities**: `mindforge-cc --local --with-utils` (Installs specialized bin scripts)
83
+ - **Minimalist**: `mindforge-cc --local --minimal` (Only basic protocols, no persona library)
133
84
 
134
85
  ---
135
86
 
@@ -341,19 +292,38 @@ See `.mindforge/production/token-optimiser.md`.
341
292
 
342
293
  ---
343
294
 
344
- ---
295
+ ## What's new in v4.3 (Enterprise Mesh & Equilibrium)
296
+
297
+ MindForge V4.3 matures the framework for enterprise mission-critical environments.
298
+
299
+ - **Autonomous FinOps Hub**: Automated budget enforcement and dynamic model selection based on task complexity (C2C).
300
+ - **Proactive Equilibrium**: Real-time divergence detection (Wave Monitoring) and autonomous repair loops.
301
+ - **Structural Reorganization**: Production-grade `bin/` directory architecture for all core implementation logic.
302
+ - **Enhanced ZTAI**: Asymmetric cryptographic signatures for all and simulated HSM support.
303
+
304
+ ## What's new in v4.2 (Identity & Memory)
305
+
306
+ MindForge V4.2 focuses on **Identity** and **Memory** within the agentic swarm.
345
307
 
346
- ## What's new in v3.0.0-rc1
308
+ - **ZTAI Beast Mode**: Every agent action is cryptographically signed using asymmetric keys. Tier 3 agents use a simulated **Secure Enclave (HSM)** for top-level non-repudiation.
309
+ - **Audit Integrity**: High-fidelity audit manifests generated with **Merkle-root** cumulative hash chains.
310
+ - **Semantic Hub**: Synchronization between local repository memory and the global organizational store (`~/.mindforge/`).
311
+ - **Ghost Pattern Detection**: Proactive risk detection that warns agents when a proposed design matches a past organizational failure.
347
312
 
348
- 🚀 **The Reactive Intelligence Era**
313
+ ## What's new in v4.1 (Nexus)
349
314
 
350
- MindForge V3 transforms the framework from a "disciplined workflow engine" into a **Reactive Autonomous Intelligence**.
315
+ 🚀 **The High-Fidelity Observability Era**
316
+
317
+ MindForge V4.1 introduces **Nexus**, the definitive observability layer for autonomous agents.
318
+
319
+ - **Agentic Reasoning Tracing (ART)**: Deep visibility into "thought chains" and parallel mesh reasoning via hierarchical spans.
320
+ - **Trace Context Propagation**: OpenTelemetry-compatible trace IDs across waves, tasks, and swarm clusters.
321
+ - **Reasoning Heatmaps**: Automated visualization of adversarial disagreement and consensus synthesis.
322
+ - **Mesh Visibility**: Live tracing of ephemeral specialist clusters in the agentic mesh.
323
+
324
+ ---
351
325
 
352
- - **Context Sharding (SRD)**: Achieve a **40% reduction in token waste** via relevance-dense memory management.
353
- - **Adversarial Decision Synthesis (ADS)**: Zero-drift architectural logic through a 3-model debate and SOUL-scoring engine.
354
- - **Temporal Vision**: Full-fidelity history navigation, hindsight state injection, and automated repair.
355
- - **RAG 2.0 (Auto-Shadowing)**: Background pattern retrieval from the local knowledge graph without manual prompts.
356
- - **V3 Core Guide**: New definitive architecture guide in `docs/architecture/V3-CORE.md`.
326
+ ## What's new in v4.0.0 (Swarm)
357
327
 
358
328
  ---
359
329
 
package/RELEASENOTES.md CHANGED
@@ -1,41 +1,58 @@
1
- # MindForge v2.1.1Core Migration & Persona Expansion
2
-
1
+ # MindForge v5.0.0Enterprise Pillars V, VI, VII
3
2
  ## Top Summary
3
+ The v5.0.0 release completes the MindForge Enterprise architecture with the final three pillars: Multi-Cloud Arbitrage, Sovereign Reason Enclaves (SRE), and Dynamic Human-Agent Handover (DHH).
4
+
5
+ ## Highlights
6
+ - **Pillar V: Multi-Cloud Arbitrage**: Intelligent routing across Vertex AI, Bedrock, and Azure with low-latency hedging and autonomous Provider Fallback protocols.
7
+ - **Pillar VI: Sovereign Reason Enclaves (SRE)**: Simulated TEE-based reasoning isolation for confidential workloads, ensuring zero-visibility thought-chains and automatic sanitization of reasoning traces in global logs.
8
+ - **Pillar VII: Dynamic Human-Agent Handover (DHH)**: Automated packaging of "Nexus State Bundles" for human review when confidence scores drop, featuring real-time "Human Steering" injection into the autonomous stream.
9
+ - **Hardening: Beast Mode Phase 2**: Built-in Chaos Mode for provider reliability stress-testing and mandatory state hashing for all handover bundles.
10
+
11
+ ---
12
+
13
+ # MindForge v4.3.0 — Enterprise Mesh & Proactive Equilibrium
4
14
 
5
- MindForge v2.1.1 is a major structural update that finalizes the migration of the MindForge framework into the MindForge ecosystem. This release establishes a unified `.agent/` asset structure, expands the persona count from 8 to 32+, and hardens the 4-pillar workflow (`plan`, `execute`, `verify`, `ship`) for enterprise-scale AI orchestration.
15
+ ## Top Summary
16
+ MindForge v4.3.0 introduces the **Enterprise Intelligence Mesh**, finalizing the v4 roadmap with autonomous FinOps and self-healing reliability. This release also implements **ZTAI Beast Mode**, hardens agentic identity with asymmetric cryptographic signing, and introduces simulated Secure Enclaves (HSM) for Tier 3 principal agents.
6
17
 
7
18
  ## Highlights
8
19
 
9
- - **Unified .agent/ Structure**: 120+ framework assets consolidated for maximum compatibility across Claude Code, Antigravity, and Cursor.
10
- - **32-Persona Expansion**: Integrated advanced personas including `advisor-researcher`, `nyquist-auditor`, and `ui-auditor`.
11
- - **Zero-Watermark Integrity**: 100% removal of legacy rebranding fragments across the entire core and documentation.
12
- - **Enterprise Manifest**: Single source of truth via `file-manifest.json` for multi-project codebase intelligence.
13
- - **Hardened Governance**: Unified settings and non-bypassable quality gates across all runtimes.
20
+ - **Pillar V: Autonomous FinOps Hub**: Dynamic **C2C (Confidence-to-Cost)** model routing and real-time Agentic ROI tracking.
21
+ - **Pillar VI: Proactive Equilibrium**: Real-time **Wave Divergence** monitoring and autonomous **Temporal Hindsight** repair loops.
22
+ - **Global Intelligence Mesh**: Synchronizes local project memory with a repository-agnostic organizational store (`~/.mindforge/`).
23
+ - **Ghost Pattern Detection**: Proactive risk detection that warns agents when a proposed design matches a past organizational failure.
24
+ - **ZTAI Beast Mode**: Every agent action in the mesh is now cryptographically signed using Ed25519 asymmetric keys.
25
+ - **Secure Enclave (HSM) Simulation**: Tier 3 agents (Principal/Architect) now use simulated hardware-secured enclaves for signing.
26
+ - **Audit Integrity Manifests**: Automated generation of Merkle-root based manifests for the `AUDIT.jsonl` log.
27
+ - **Tiered Governance**: Full integration of Trust Tiers [0-3] across the 32-persona library.
14
28
 
15
29
  ## Developer Experience
16
30
 
17
- - **Consolidated Documentation**: Modernized guides for Skills Authoring, Architecture, and Persona-based engineering.
18
- - **Enhanced Hooks**: New lifecycle hooks for better context monitoring and real-time status reporting.
19
- - **Command Parity**: Full support for `/mindforge:browse`, `/mindforge:remember`, and `/mindforge:costs`.
31
+ - **New Command Hooks**: Integration of `semantic-hub` and `ztai-archiver` into the core planning and execution loops.
32
+ - **Enhanced PERSONAS.md**: Detailed trust-tier mappings for all specialists.
33
+ - **Proactive Risk Warnings**: Real-time "Ghost Pattern" matches surfaced during the `/mindforge:plan-phase` process.
20
34
 
21
35
  ## Quality & Stability
22
36
 
23
- - **Grep-Audit Verified**: Verified zero residual branding through recursive deep scanning.
24
- - **Path-Aligned Workflows**: All 60+ workflows now strictly follow the v2.1.1 directory standards.
25
- - **Cross-IDE Tested**: Core features validated across multiple AI-native IDE runtimes.
37
+ - **Verified Identity**: 100% of Tier 3 actions require valid cryptographic signatures.
38
+ - **Tamper-Detection**: Audit manifestations allow for historical integrity verification of the entire session.
39
+ - **Cross-Repo Intelligence**: Validated knowledge sharing between isolated project workspaces via the Semantic Hub.
26
40
 
27
- ## Getting Started
41
+ ## Upgrade Notes
28
42
 
29
- - Install: `npx mindforge-cc@latest --claude --local`
30
- - Verify Health: `/mindforge:health`
31
- - Docs Entry: `README.md`
43
+ - Projects on v4.1.0 should run `/mindforge:update --apply` to enable the ZTAI and Mesh features.
44
+ - Initial global sync will occur automatically upon the first `plan-phase` or `execute-phase`.
45
+ - Legacy memory stores will be semantically indexed for the global store during the first sync.
32
46
 
33
- ## Upgrade Notes
47
+ ---
34
48
 
35
- - Projects on v1.0.0 or v2.0.0 should run `/mindforge:migrate` to align with the new path standards.
36
- - Residual custom skills in legacy folders may need manual relocation to `.agent/skills/`.
49
+ # MindForge v4.1.0 Nexus & High-Fidelity Observability
37
50
 
38
- ## Breaking Changes
51
+ ## Highlights
52
+ - **MindForge Nexus**: Agentic Reasoning Tracing (ART) for deep visibility into thought chains.
53
+ - **Trace Context Propagation**: OpenTelemetry-compatible tracing across parallel waves and swarm clusters.
54
+
55
+ ---
39
56
 
40
- - Legacy `.agent/workflows` (without YAML frontmatter) is no longer automatically registered in Antigravity mode.
41
- - See `docs/upgrade.md` for detailed migration paths.
57
+ # MindForge v2.1.1 Core Migration & Persona Expansion
58
+ ...