mindforge-cc 4.3.0 → 5.1.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.
- package/.agent/CLAUDE.md +14 -12
- package/.agent/hooks/mindforge-session-init_extended.js +42 -0
- package/.agent/settings.json +4 -0
- package/.agent/skills/mindforge-brainstorming/SKILL.md +164 -0
- package/.agent/skills/mindforge-brainstorming/scripts/frame-template.html +214 -0
- package/.agent/skills/mindforge-brainstorming/scripts/helper.js +88 -0
- package/.agent/skills/mindforge-brainstorming/scripts/server.cjs +354 -0
- package/.agent/skills/mindforge-brainstorming/scripts/start-server.sh +148 -0
- package/.agent/skills/mindforge-brainstorming/scripts/stop-server.sh +56 -0
- package/.agent/skills/mindforge-brainstorming/spec-document-reviewer-prompt.md +49 -0
- package/.agent/skills/mindforge-brainstorming/visual-companion.md +287 -0
- package/.agent/skills/mindforge-debug_extended/CREATION-LOG.md +119 -0
- package/.agent/skills/mindforge-debug_extended/SKILL.md +296 -0
- package/.agent/skills/mindforge-debug_extended/condition-based-waiting-example.ts +158 -0
- package/.agent/skills/mindforge-debug_extended/condition-based-waiting.md +115 -0
- package/.agent/skills/mindforge-debug_extended/defense-in-depth.md +122 -0
- package/.agent/skills/mindforge-debug_extended/find-polluter.sh +63 -0
- package/.agent/skills/mindforge-debug_extended/root-cause-tracing.md +169 -0
- package/.agent/skills/mindforge-debug_extended/test-academic.md +14 -0
- package/.agent/skills/mindforge-debug_extended/test-pressure-1.md +58 -0
- package/.agent/skills/mindforge-debug_extended/test-pressure-2.md +68 -0
- package/.agent/skills/mindforge-debug_extended/test-pressure-3.md +69 -0
- package/.agent/skills/mindforge-execute-phase_extended/SKILL.md +70 -0
- package/.agent/skills/mindforge-neural-orchestrator/SKILL.md +115 -0
- package/.agent/skills/mindforge-neural-orchestrator/references/codex-tools.md +100 -0
- package/.agent/skills/mindforge-neural-orchestrator/references/gemini-tools.md +33 -0
- package/.agent/skills/mindforge-parallel-mesh_extended/SKILL.md +182 -0
- package/.agent/skills/mindforge-plan-phase_extended/SKILL.md +152 -0
- package/.agent/skills/mindforge-plan-phase_extended/plan-document-reviewer-prompt.md +49 -0
- package/.agent/skills/mindforge-review-inbound/SKILL.md +213 -0
- package/.agent/skills/mindforge-review-request/SKILL.md +105 -0
- package/.agent/skills/mindforge-review-request/code-reviewer.md +146 -0
- package/.agent/skills/mindforge-ship_extended/SKILL.md +200 -0
- package/.agent/skills/mindforge-skill-creation/SKILL.md +655 -0
- package/.agent/skills/mindforge-skill-creation/anthropic-best-practices.md +1150 -0
- package/.agent/skills/mindforge-skill-creation/examples/CLAUDE_MD_TESTING.md +189 -0
- package/.agent/skills/mindforge-skill-creation/graphviz-conventions.dot +172 -0
- package/.agent/skills/mindforge-skill-creation/persuasion-principles.md +187 -0
- package/.agent/skills/mindforge-skill-creation/render-graphs.js +168 -0
- package/.agent/skills/mindforge-skill-creation/testing-skills-with-subagents.md +384 -0
- package/.agent/skills/mindforge-swarm-execution/SKILL.md +277 -0
- package/.agent/skills/mindforge-swarm-execution/code-quality-reviewer-prompt.md +26 -0
- package/.agent/skills/mindforge-swarm-execution/implementer-prompt.md +113 -0
- package/.agent/skills/mindforge-swarm-execution/spec-reviewer-prompt.md +61 -0
- package/.agent/skills/mindforge-tdd_extended/SKILL.md +371 -0
- package/.agent/skills/mindforge-tdd_extended/testing-anti-patterns.md +299 -0
- package/.agent/skills/mindforge-verify-work_extended/SKILL.md +139 -0
- package/.agent/skills/mindforge-workspace-isolated/SKILL.md +218 -0
- package/.agent/workflows/mindforge-verify-work.md +5 -0
- package/.agent/workflows/mindforge:brainstorming.md +16 -0
- package/.agent/workflows/mindforge:debug.md +4 -2
- package/.agent/workflows/mindforge:execute-phase.md +12 -0
- package/.agent/workflows/mindforge:plan-phase.md +11 -0
- package/.agent/workflows/mindforge:ship.md +6 -1
- package/.agent/workflows/mindforge:tdd.md +7 -2
- package/.mindforge/engine/nexus-tracer.js +115 -0
- package/CHANGELOG.md +298 -122
- package/MINDFORGE.md +17 -9
- package/README.md +52 -100
- package/RELEASENOTES.md +23 -2
- package/bin/autonomous/auto-runner.js +154 -4
- package/bin/autonomous/context-refactorer.js +64 -0
- package/bin/autonomous/steer.js +19 -1
- package/bin/autonomous/stuck-monitor.js +43 -0
- package/bin/engine/handover-manager.js +69 -0
- package/bin/engine/nexus-tracer.js +67 -2
- package/bin/engine/sre-manager.js +63 -0
- package/bin/governance/policies/default-policies.jsonl +33 -0
- package/bin/governance/policy-engine.js +106 -0
- package/bin/governance/rbac-manager.js +109 -0
- package/bin/memory/eis-client.js +95 -0
- package/bin/memory/federated-sync.js +127 -0
- package/bin/memory/knowledge-graph.js +37 -0
- package/bin/models/cloud-broker.js +83 -0
- package/bin/models/model-broker.js +68 -49
- package/bin/skill-validator.js +41 -0
- package/docs/INTELLIGENCE-MESH.md +25 -22
- package/docs/PERSONAS.md +150 -2
- package/docs/architecture/PAR-ZTS-SURVEY.md +43 -0
- package/docs/architecture/README.md +31 -64
- package/docs/architecture/V5-ENTERPRISE.md +114 -0
- package/docs/commands-reference.md +20 -1
- package/docs/governance-guide.md +49 -28
- package/docs/security/SECURITY.md +9 -7
- package/docs/troubleshooting.md +24 -4
- package/docs/user-guide.md +61 -17
- package/docs/usp-features.md +3 -0
- package/package.json +1 -1
- /package/docs/{context → Context}/Master-Context.md +0 -0
- /package/docs/{references → References}/audit-events.md +0 -0
- /package/docs/{references → References}/checkpoints.md +0 -0
- /package/docs/{references → References}/commands.md +0 -0
- /package/docs/{references → References}/config-reference.md +0 -0
- /package/docs/{references → References}/continuation-format.md +0 -0
- /package/docs/{references → References}/decimal-phase-calculation.md +0 -0
- /package/docs/{references → References}/git-integration.md +0 -0
- /package/docs/{references → References}/git-planning-commit.md +0 -0
- /package/docs/{references → References}/model-profile-resolution.md +0 -0
- /package/docs/{references → References}/model-profiles.md +0 -0
- /package/docs/{references → References}/phase-argument-parsing.md +0 -0
- /package/docs/{references → References}/planning-config.md +0 -0
- /package/docs/{references → References}/questioning.md +0 -0
- /package/docs/{references → References}/sdk-api.md +0 -0
- /package/docs/{references → References}/skills-api.md +0 -0
- /package/docs/{references → References}/tdd.md +0 -0
- /package/docs/{references → References}/ui-brand.md +0 -0
- /package/docs/{references → References}/user-profiling.md +0 -0
- /package/docs/{references → References}/verification-patterns.md +0 -0
- /package/docs/{references → References}/workstream-flag.md +0 -0
- /package/docs/{templates → Templates}/Agents/CLAUDE-MD.md +0 -0
- /package/docs/{templates → Templates}/Agents/COPILOT-INSTRUCTIONS.md +0 -0
- /package/docs/{templates → Templates}/Agents/DEBUGGER-PROMPT.md +0 -0
- /package/docs/{templates → Templates}/Agents/PLANNER-PROMPT.md +0 -0
- /package/docs/{templates/codebase → Templates/Codebase}/architecture.md +0 -0
- /package/docs/{templates/codebase → Templates/Codebase}/concerns.md +0 -0
- /package/docs/{templates/codebase → Templates/Codebase}/conventions.md +0 -0
- /package/docs/{templates/codebase → Templates/Codebase}/integrations.md +0 -0
- /package/docs/{templates/codebase → Templates/Codebase}/stack.md +0 -0
- /package/docs/{templates/codebase → Templates/Codebase}/structure.md +0 -0
- /package/docs/{templates/codebase → Templates/Codebase}/testing.md +0 -0
- /package/docs/{templates → Templates}/Execution/CONTINUE-HERE.md +0 -0
- /package/docs/{templates → Templates}/Execution/DISCUSSION-LOG.md +0 -0
- /package/docs/{templates → Templates}/Execution/PHASE-PROMPT.md +0 -0
- /package/docs/{templates → Templates}/Execution/STATE.md +0 -0
- /package/docs/{templates → Templates}/Execution/SUMMARY-COMPLEX.md +0 -0
- /package/docs/{templates → Templates}/Execution/SUMMARY-MINIMAL.md +0 -0
- /package/docs/{templates → Templates}/Execution/SUMMARY-STANDARD.md +0 -0
- /package/docs/{templates → Templates}/Execution/SUMMARY.md +0 -0
- /package/docs/{templates → Templates}/Profile/DEV-PREFERENCES.md +0 -0
- /package/docs/{templates → Templates}/Profile/USER-PROFILE.md +0 -0
- /package/docs/{templates → Templates}/Profile/USER-SETUP.md +0 -0
- /package/docs/{templates → Templates}/Project/DISCOVERY.md +0 -0
- /package/docs/{templates → Templates}/Project/MILESTONE-ARCHIVE.md +0 -0
- /package/docs/{templates → Templates}/Project/MILESTONE.md +0 -0
- /package/docs/{templates → Templates}/Project/PROJECT.md +0 -0
- /package/docs/{templates → Templates}/Project/REQUIREMENTS.md +0 -0
- /package/docs/{templates → Templates}/Project/RETROSPECTIVE.md +0 -0
- /package/docs/{templates → Templates}/Project/ROADMAP.md +0 -0
- /package/docs/{templates → Templates}/Quality/DEBUG.md +0 -0
- /package/docs/{templates → Templates}/Quality/UAT.md +0 -0
- /package/docs/{templates → Templates}/Quality/UI-SPEC.md +0 -0
- /package/docs/{templates → Templates}/Quality/VALIDATION.md +0 -0
- /package/docs/{templates → Templates}/Quality/VERIFICATION-REPORT.md +0 -0
- /package/docs/{templates/research → Templates/Research}/ARCHITECTURE.md +0 -0
- /package/docs/{templates/research → Templates/Research}/FEATURES.md +0 -0
- /package/docs/{templates/research → Templates/Research}/PITFALLS.md +0 -0
- /package/docs/{templates/research → Templates/Research}/STACK.md +0 -0
- /package/docs/{templates/research → Templates/Research}/SUMMARY.md +0 -0
- /package/docs/{templates → Templates}/System/CONFIG.json +0 -0
- /package/docs/{templates → Templates}/System/CONTEXT.md +0 -0
package/docs/PERSONAS.md
CHANGED
|
@@ -19,7 +19,8 @@ MindForge uses a multi-agent orchestration model where specialized personas are
|
|
|
19
19
|
| **Persistence & Memory** | 1 | mf-memory |
|
|
20
20
|
| **Infrastructure & Tools** | 1 | mf-tool |
|
|
21
21
|
| **Strategy & Ops** | 5 | roadmapper, release-manager, tech-writer, roadmapper-extend, user-profiler |
|
|
22
|
-
| **
|
|
22
|
+
| **Neural Protocols** | 6 | brainstormer, swarm-pilot, mesh-orchestrator, workspace-manager, skill-author, tdd-master |
|
|
23
|
+
| **Debuggers** | 2 | debugger, rca-expert |
|
|
23
24
|
| **Mapping** | 2 | codebase-mapper, codebase-mapper-extend |
|
|
24
25
|
|
|
25
26
|
---
|
|
@@ -505,7 +506,7 @@ MindForge uses a multi-agent orchestration model where specialized personas are
|
|
|
505
506
|
|
|
506
507
|
**Role:** Executes implementation plans with atomic commit discipline.
|
|
507
508
|
|
|
508
|
-
| Property | Value |
|
|
509
|
+
| **Property** | **Value** |
|
|
509
510
|
| :--- | :--- |
|
|
510
511
|
| **Spawned by** | `/mindforge:execute-phase`, `/mindforge:agent executor` |
|
|
511
512
|
| **Tools** | Read, Write, Bash, Grep, Glob, CmdStatus, ReadTerminal |
|
|
@@ -614,6 +615,152 @@ MindForge uses a multi-agent orchestration model where specialized personas are
|
|
|
614
615
|
|
|
615
616
|
---
|
|
616
617
|
|
|
618
|
+
---
|
|
619
|
+
|
|
620
|
+
### mindforge-brainstormer (The Ideation Catalyst)
|
|
621
|
+
|
|
622
|
+
**Role:** Expert in deep requirements discovery and behavioral ideation.
|
|
623
|
+
|
|
624
|
+
| Property | Value |
|
|
625
|
+
| :--- | :--- |
|
|
626
|
+
| **Spawned by** | `/mindforge:brainstorming` |
|
|
627
|
+
| **Tools** | Read, Write, Bash, Grep |
|
|
628
|
+
| **Color** | `magenta` |
|
|
629
|
+
| **Trust Tier** | `1` |
|
|
630
|
+
|
|
631
|
+
**Capabilities:**
|
|
632
|
+
- Proactive discovery of edge cases and user intent.
|
|
633
|
+
- Drafting high-fidelity visual companions and behavioral specs.
|
|
634
|
+
- Challenging assumptions through Socratic engineering.
|
|
635
|
+
|
|
636
|
+
---
|
|
637
|
+
|
|
638
|
+
### mindforge-swarm-pilot (The Parallel Executor)
|
|
639
|
+
|
|
640
|
+
**Role:** Orchestrates multiple independent implementation tasks simultaneously.
|
|
641
|
+
|
|
642
|
+
| Property | Value |
|
|
643
|
+
| :--- | :--- |
|
|
644
|
+
| **Spawned by** | `/mindforge:swarm-execution` |
|
|
645
|
+
| **Tools** | Read, Write, Bash, Grep, CmdStatus |
|
|
646
|
+
| **Color** | `yellow` |
|
|
647
|
+
| **Trust Tier** | `2` |
|
|
648
|
+
|
|
649
|
+
**Capabilities:**
|
|
650
|
+
- Managing independent "Execution Waves".
|
|
651
|
+
- Merging parallel contributions with zero conflict.
|
|
652
|
+
- Maintaining high-velocity implementation loops.
|
|
653
|
+
|
|
654
|
+
---
|
|
655
|
+
|
|
656
|
+
### mindforge-mesh-orchestrator (The Context Guardian)
|
|
657
|
+
|
|
658
|
+
**Role:** Synchronizes state and context across parallel agent workstreams.
|
|
659
|
+
|
|
660
|
+
| Property | Value |
|
|
661
|
+
| :--- | :--- |
|
|
662
|
+
| **Spawned by** | `/mindforge:parallel-mesh` |
|
|
663
|
+
| **Tools** | Read, Write, Bash, Grep, Context7 |
|
|
664
|
+
| **Color** | `cyan` |
|
|
665
|
+
| **Trust Tier** | `2` |
|
|
666
|
+
|
|
667
|
+
**Capabilities:**
|
|
668
|
+
- Maintaining a unified "Shared Reality" for swarms.
|
|
669
|
+
- Preventing context drift in complex multi-agent sessions.
|
|
670
|
+
- Dynamic propagation of architectural decisions.
|
|
671
|
+
|
|
672
|
+
---
|
|
673
|
+
|
|
674
|
+
### mindforge-workspace-manager (The Environment Architect)
|
|
675
|
+
|
|
676
|
+
**Role:** Manages isolated development environments and project sharding.
|
|
677
|
+
|
|
678
|
+
| Property | Value |
|
|
679
|
+
| :--- | :--- |
|
|
680
|
+
| **Spawned by** | `/mindforge:workspace-isolated` |
|
|
681
|
+
| **Tools** | Read, Write, Bash, Git |
|
|
682
|
+
| **Color** | `blue` |
|
|
683
|
+
| **Trust Tier** | `3` |
|
|
684
|
+
|
|
685
|
+
**Capabilities:**
|
|
686
|
+
- Provisioning git worktrees for isolated feature branches.
|
|
687
|
+
- Managing workspace cleanup and state protection.
|
|
688
|
+
- Ensuring atomic environment parity across branches.
|
|
689
|
+
|
|
690
|
+
---
|
|
691
|
+
|
|
692
|
+
### mindforge-skill-author (The Framework Evolver)
|
|
693
|
+
|
|
694
|
+
**Role:** Expert in authoring and validating new MindForge skills.
|
|
695
|
+
|
|
696
|
+
| Property | Value |
|
|
697
|
+
| :--- | :--- |
|
|
698
|
+
| **Spawned by** | `/mindforge:skill-creation` |
|
|
699
|
+
| **Tools** | Read, Write, Bash, Grep |
|
|
700
|
+
| **Color** | `purple` |
|
|
701
|
+
| **Trust Tier** | `3` |
|
|
702
|
+
|
|
703
|
+
**Capabilities:**
|
|
704
|
+
- Drafting [SKILL.md] instructions and tool-chains.
|
|
705
|
+
- Validating skill quality against the 7-Dimension Registry.
|
|
706
|
+
- Hardening framework protocols for framework-level releases.
|
|
707
|
+
|
|
708
|
+
---
|
|
709
|
+
|
|
710
|
+
### mindforge-tdd-master (The Quality Zealot)
|
|
711
|
+
|
|
712
|
+
**Role:** Enforces strict Test-Driven Development loops with adversarial rigor.
|
|
713
|
+
|
|
714
|
+
| Property | Value |
|
|
715
|
+
| :--- | :--- |
|
|
716
|
+
| **Spawned by** | `/mindforge:tdd` |
|
|
717
|
+
| **Tools** | Read, Write, Bash, Grep, CmdStatus |
|
|
718
|
+
| **Color** | `red` |
|
|
719
|
+
| **Trust Tier** | `2` |
|
|
720
|
+
|
|
721
|
+
**Capabilities:**
|
|
722
|
+
- Enforcing Red-Green-Refactor discipline.
|
|
723
|
+
- Automated generation of regression-proof test suites.
|
|
724
|
+
- Validating implementation against pure behavioral specs.
|
|
725
|
+
|
|
726
|
+
---
|
|
727
|
+
|
|
728
|
+
### mindforge-rca-expert (The Forensic Scientist)
|
|
729
|
+
|
|
730
|
+
**Role:** Principal specialist in advanced root cause analysis and forensic debugging.
|
|
731
|
+
|
|
732
|
+
| Property | Value |
|
|
733
|
+
| :--- | :--- |
|
|
734
|
+
| **Spawned by** | `/mindforge:debug_extended` |
|
|
735
|
+
| **Tools** | Read, Write, Bash, Grep, CmdStatus, ReadTerminal |
|
|
736
|
+
| **Color** | `orange` |
|
|
737
|
+
| **Trust Tier** | `2` |
|
|
738
|
+
|
|
739
|
+
**Capabilities:**
|
|
740
|
+
- Log-based forensic reconstruction of failures.
|
|
741
|
+
- Identifying systemic architectural flaws.
|
|
742
|
+
- Proving fix validity through falsifiable regression tests.
|
|
743
|
+
|
|
744
|
+
---
|
|
745
|
+
|
|
746
|
+
### mindforge-neural-orchestrator (The Framework Pilot)
|
|
747
|
+
|
|
748
|
+
**Role:** The core identity responsible for activating and managing the protocol mesh.
|
|
749
|
+
|
|
750
|
+
| Property | Value |
|
|
751
|
+
| :--- | :--- |
|
|
752
|
+
| **Spawned by** | `/mindforge:neural-orchestrator` |
|
|
753
|
+
| **Tools** | All |
|
|
754
|
+
| **Color** | `white` |
|
|
755
|
+
| **Trust Tier** | `3` |
|
|
756
|
+
|
|
757
|
+
**Capabilities:**
|
|
758
|
+
- Booting the MindForge Session Engine.
|
|
759
|
+
- Dynamically loading required protocols for the task.
|
|
760
|
+
- Enforcing the Master Directive across all sub-agents.
|
|
761
|
+
|
|
762
|
+
---
|
|
763
|
+
|
|
617
764
|
### mindforge-user-profiler (The Relationship Manager)
|
|
618
765
|
|
|
619
766
|
**Role:** Analyzes session history to personalize agent interactions and technical alignment.
|
|
@@ -649,6 +796,7 @@ MindForge V4 introduces the ability to spawn dynamic, task-aware clusters of spe
|
|
|
649
796
|
| **ComplianceSwarm** | compliance-auditor | legal-compliance, architect, security | GDPR/SOC2 alignment, PII masking |
|
|
650
797
|
| **IdentityTrustSwarm** | identity-architect | security-reviewer, architect, blockchain | Zero-Trust, DID-based signing |
|
|
651
798
|
| **DataMeshSwarm** | data-engineer | db-optimizer, analyst, compliance | Lakehouse patterns, ETL integrity |
|
|
799
|
+
| **NeuralSwarm** | mesh-orchestrator | brainstormer, swarm-pilot, workspace-manager | High-fidelity protocol execution |
|
|
652
800
|
|
|
653
801
|
### Swarm Governance Protocols
|
|
654
802
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# PAR & ZTS Architectural Survey — MindForge v5
|
|
2
|
+
|
|
3
|
+
## Pillar III: Predictive Agentic Reliability (PAR)
|
|
4
|
+
|
|
5
|
+
Predictive Agentic Reliability (PAR) addresses the "Reasoning Decay" problem in long-running autonomous sessions. It implements proactive monitoring and self-healing at the reasoning layer.
|
|
6
|
+
|
|
7
|
+
### 1. Stuck Detection (S03 & S04)
|
|
8
|
+
The `StuckMonitor` has been extended to detect advanced reasoning loop patterns:
|
|
9
|
+
- **S03 (Semantic Mirroring)**: Detects when the agent paraphrases its own previous thoughts without taking new actions.
|
|
10
|
+
- **S04 (Infinite Decomposition)**: Detects when the agent breaks sub-tasks into smaller and smaller pieces indefinitely without resolving the parent task.
|
|
11
|
+
|
|
12
|
+
### 2. Context Refactoring
|
|
13
|
+
The `ContextRefactorer` monitors "Context Density" (the ratio of implementation actions to reasoning thoughts).
|
|
14
|
+
- When density falls below 30%, it triggers a proactive **Refactor Event**.
|
|
15
|
+
- This encourages the agent to summarize its progress and reset its active context window, preventing bloat.
|
|
16
|
+
|
|
17
|
+
### 3. C2C Arbitrage
|
|
18
|
+
Confidence-to-Cost (C2C) arbitrage ensures that the agent only continues execution when the expected value (confidence) exceeds the operational cost (tokens/compute).
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Pillar IV: Supply Chain Trust (ZTS)
|
|
23
|
+
|
|
24
|
+
Supply Chain Trust (ZTS) ensures that every asset (skill, model, tool) used by MindForge is authenticated and verified against enterprise standards.
|
|
25
|
+
|
|
26
|
+
### 1. Agentic SBOM (Software Bill of Materials)
|
|
27
|
+
MindForge now generates a real-time `MANIFEST.sbom.json` during every autonomous run.
|
|
28
|
+
- **Model Tracking**: Logs the exact model version used for every reasoning span.
|
|
29
|
+
- **Skill Telemetry**: Tracks which skills were invoked and their specific versions.
|
|
30
|
+
- **Timestamping**: Captures full start/end telemetry for supply chain auditing.
|
|
31
|
+
|
|
32
|
+
### 2. 7-Dimension Certification (7D)
|
|
33
|
+
Skills are now evaluated across 7 weighted dimensions:
|
|
34
|
+
1. **Schema Compliance (15%)**
|
|
35
|
+
2. **Trigger Density (15%)**
|
|
36
|
+
3. **Mandatory Coverage (20%)**
|
|
37
|
+
4. **Security Sanitization (20%)**
|
|
38
|
+
5. **Doc Clarity (10%)**
|
|
39
|
+
6. **Edge Case Handling (10%)**
|
|
40
|
+
7. **Example Fidelity (10%)**
|
|
41
|
+
|
|
42
|
+
> [!IMPORTANT]
|
|
43
|
+
> In `--enterprise` mode, skills must achieve a minimum score of **7.0/10.0** to be loaded.
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
# MindForge Architecture Overview
|
|
2
2
|
|
|
3
|
-
MindForge
|
|
3
|
+
MindForge v5.0.0 is built on a distributed "Agentic OS" architecture, designed for enterprise-scale intelligence sharing and absolute governance.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
## 1. Core Architectural Pillars
|
|
7
|
+
## 1. Core Architectural Pillars (v5.0.0)
|
|
8
8
|
|
|
9
|
-
The framework is
|
|
9
|
+
The framework is focused on six major pillars, with V5 introducing the **Distributed Intelligence** and **Policy Governance** layers:
|
|
10
10
|
|
|
11
|
-
1. **
|
|
12
|
-
2. **
|
|
13
|
-
3. **
|
|
14
|
-
4. **
|
|
11
|
+
1. **Federated Intelligence Mesh (FIM)**: Distributed knowledge sharing with delta-sync and cryptographic provenance. [V5-ENTERPRISE.md](./V5-ENTERPRISE.md)
|
|
12
|
+
2. **Agentic Policy Orchestrator (APO)**: Non-bypassable policy-as-code governance that intercepts autonomous intents.
|
|
13
|
+
3. **Predictive Agentic Reliability (PAR)**: Self-healing reasoning loops and context refactoring. [PAR-ZTS-SURVEY.md](./PAR-ZTS-SURVEY.md)
|
|
14
|
+
4. **Supply Chain Trust (ZTS)**: Agentic SBOM and 7-dimension skill certification. [PAR-ZTS-SURVEY.md](./PAR-ZTS-SURVEY.md)
|
|
15
|
+
5. **Zero-Trust Agentic Identity (ZTAI)**: DID-based cryptographic signing for all agentic actions and tiered trust enforcement.
|
|
16
|
+
6. **Adversarial Decision Synthesis (ADS)**: 3-model synthesis loop ensuring architectural integrity.
|
|
17
|
+
7. **Semantic Context Sharding**: Tri-tier memory (Hot/Warm/Cold) for high-fidelity context management.
|
|
18
|
+
8. **Autonomous Execution Engine**: Self-healing wave execution with stuck-detection and repair hierarchies.
|
|
15
19
|
|
|
16
20
|
---
|
|
17
21
|
|
|
@@ -21,8 +25,9 @@ MindForge uses a "Tiered Configuration" model allowing for global, organizationa
|
|
|
21
25
|
|
|
22
26
|
| Directory | Scope | Purpose |
|
|
23
27
|
| :--- | :--- | :--- |
|
|
28
|
+
| **EIS / Mesh** | `bin/memory` | Core FIM implementation (eis-client, federated-sync). |
|
|
29
|
+
| **Governance** | `bin/governance` | Core APO implementation (policy-engine, rbac-manager). |
|
|
24
30
|
| `.mindforge/` | System/Global | Core personas, core skills, and engine protocols. |
|
|
25
|
-
| `.mindforge/org/` | Organizational | Shared company standards and private skill registries. |
|
|
26
31
|
| `.agent/` | Project/Local | Project-specific configuration, hooks, and local skill overrides. |
|
|
27
32
|
| `.planning/` | Session/State | Ephemeral state, task blocks, and session handoffs. |
|
|
28
33
|
|
|
@@ -34,78 +39,40 @@ The `file-manifest.json` file in `.agent/` is the single source of truth for the
|
|
|
34
39
|
|
|
35
40
|
---
|
|
36
41
|
|
|
37
|
-
## 4. Runtime Execution Flow
|
|
42
|
+
## 4. Runtime Execution Flow (V5 Hardened)
|
|
38
43
|
|
|
39
|
-
1. **Context Loading**: Load `MINDFORGE.md` and `file-manifest.json
|
|
40
|
-
2. **
|
|
41
|
-
3. **
|
|
42
|
-
4. **
|
|
43
|
-
5. **
|
|
44
|
+
1. **Context Loading**: Load `MINDFORGE.md` and `file-manifest.json`.
|
|
45
|
+
2. **Identity Verification**: Resolve the agent's ZTAI identity and trust tier.
|
|
46
|
+
3. **Policy Interception**: The `APO` evaluates the task intent. If not **PERMIT**, the session is halted.
|
|
47
|
+
4. **Skill Discovery**: Match task intent against the 3-tier skill registry.
|
|
48
|
+
5. **Execution Wave**: Parallel task execution with continuous FIM synchronization.
|
|
49
|
+
6. **Audit Pulse**: All actions are cryptographically signed and appended to `.planning/AUDIT.jsonl`.
|
|
44
50
|
|
|
45
51
|
---
|
|
46
52
|
|
|
47
|
-
## 5.
|
|
53
|
+
## 5. Decision Records & Stability
|
|
48
54
|
|
|
49
|
-
MindForge provides stable interfaces for extension
|
|
55
|
+
MindForge provides stable interfaces for extension while documenting every major design shift via ADRs.
|
|
50
56
|
|
|
51
|
-
- **
|
|
52
|
-
- **
|
|
53
|
-
- **
|
|
54
|
-
- **
|
|
55
|
-
|
|
56
|
-
See [ADR-041](../adr/ADR-041-runtime-interfaces.md) for the stabilization contract.
|
|
57
|
+
- **ADR Index**: See [decision-records-index.md](./decision-records-index.md).
|
|
58
|
+
- **V3 Core**: See [V3-CORE.md](./V3-CORE.md).
|
|
59
|
+
- **V4 Mesh**: See [V4-SWARM-MESH.md](./V4-SWARM-MESH.md).
|
|
60
|
+
- **V5 Enterprise**: See [V5-ENTERPRISE.md](./V5-ENTERPRISE.md).
|
|
57
61
|
|
|
58
62
|
---
|
|
59
63
|
|
|
60
|
-
## 6. Semantic Memory Tiering (V3)
|
|
61
|
-
|
|
62
|
-
MindForge v2.4.0 introduces **Semantic Context Sharding**, a Tri-Tier memory architecture that optimizes context window usage for long-running engineering sessions.
|
|
64
|
+
## 6. Semantic Memory Tiering (V3/V4)
|
|
63
65
|
|
|
64
66
|
| Tier | Storage | Purpose | Retrieval |
|
|
65
67
|
| :--- | :--- | :--- | :--- |
|
|
66
68
|
| **HOT** | `HANDOFF.json` | Immediate task state and core ADRs (SRD > 0.8). | Loaded every session. |
|
|
67
|
-
| **WARM** | `.planning/memories/` | Phase-specific shards and active project context (SRD 0.5-0.8). | Proactive retrieval
|
|
68
|
-
| **COLD** | `.mindforge/memory
|
|
69
|
-
|
|
70
|
-
### SRD Scoring Engine
|
|
71
|
-
|
|
72
|
-
Semantic Relevance Density (SRD) is calculated using a weighted formula:
|
|
73
|
-
`SRD = (Decisiveness * 0.6) + (Frequency * 0.1) + (Impact * 0.3)`
|
|
74
|
-
|
|
75
|
-
### Integrity & Hardening
|
|
76
|
-
|
|
77
|
-
All shards are hardened with **SHA-256 Checksums** and **Semantic Tags** to prevent state drift and enable O(1) keyword-based context injection.
|
|
78
|
-
|
|
79
|
-
---
|
|
80
|
-
|
|
69
|
+
| **WARM** | `.planning/memories/` | Phase-specific shards and active project context (SRD 0.5-0.8). | Proactive retrieval. |
|
|
70
|
+
| **COLD** | `.mindforge/memory` | Global knowledge base and historical logs (SRD < 0.5). | Federated search (FIM). |
|
|
81
71
|
|
|
82
72
|
---
|
|
83
73
|
|
|
84
|
-
## 7. Adversarial Decision Synthesis (ADS)
|
|
74
|
+
## 7. Adversarial Decision Synthesis (ADS)
|
|
85
75
|
|
|
86
|
-
MindForge v3.0.0 introduces **Adversarial Decision Synthesis (ADS)**, a 3-model synthesis loop that ensures every architectural decision is battle-tested.
|
|
87
|
-
|
|
88
|
-
### The 3-Model Loop
|
|
89
|
-
|
|
90
|
-
1. **Blue Team (Architect)**: Proposes the initial high-performance plan.
|
|
91
|
-
2. **Red Team (Auditor)**: Hardened via "Jailbreak" protocol to identify at least 3 critical flaws (Maintainability, Complexity, Security).
|
|
92
|
-
3. **Gold Team (Synthesizer)**: Consolidates findings using the **SOUL.md** scoring algorithm.
|
|
93
|
-
|
|
94
|
-
### SOUL Decision Scoring
|
|
95
|
-
|
|
96
|
-
| Metric | Factor | Description |
|
|
97
|
-
| :--- | :--- | :--- |
|
|
98
|
-
| **I** | Impact | Overall system-wide importance of the change. |
|
|
99
|
-
| **L** | Leverage | How much this change unblocks future high-value work. |
|
|
100
|
-
| **R** | Reversibility | How easy it is to undo this change if it fails. |
|
|
101
|
-
| **E** | Effort | Total engineering complexity and time required. |
|
|
102
|
-
| **Ri** | Risk | Probability of breakage or system regression. |
|
|
103
|
-
| **C** | Cost | Token/Compute usage and infrastructure weight. |
|
|
104
|
-
|
|
105
|
-
**Formula**: `Score = (I * L * R) / (E * Ri * C)`
|
|
106
|
-
|
|
107
|
-
Decisions with a SOUL Score > 1.0 are considered architecturally sound.
|
|
76
|
+
MindForge v3.0.0 introduces **Adversarial Decision Synthesis (ADS)**, a 3-model synthesis loop that ensures every architectural decision is battle-tested using the **SOUL.md** scoring algorithm.
|
|
108
77
|
|
|
109
78
|
---
|
|
110
|
-
|
|
111
|
-
## 8. Stability & Extension
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# MindForge v5 Architecture: The Enterprise Beast
|
|
2
|
+
|
|
3
|
+
MindForge v5.1.0 is built on a distributed "Agentic OS" architecture. This major version introduces distributed intelligence and absolute governance via a zero-trust policy-as-code layer.
|
|
4
|
+
|
|
5
|
+
## 1. Core Architectural Pillars (v5.1.0)
|
|
6
|
+
|
|
7
|
+
### Pillar I: Federated Intelligence Mesh (FIM)
|
|
8
|
+
|
|
9
|
+
The FIM transitions MindForge from local knowledge silos to a shared organizational intelligence mesh.
|
|
10
|
+
|
|
11
|
+
- **Distributed Sync (LWW)**: Cross-node synchronization using Last-Write-Wins (LWW) conflict resolution with cryptographic versioning.
|
|
12
|
+
- **Delta Pull Protocol**: Intelligent synchronization that only retrieves new insights since the last successful sync, minimizing bandwidth and latency.
|
|
13
|
+
- **Enterprise Resilience & Governance (v5.1.0)**: A high-availability central hub for sharing high-confidence agentic findings across the entire enterprise.
|
|
14
|
+
- **ZTAI-Signed Provenance**: Every piece of knowledge in the mesh is cryptographically tied to the DID of the agent that generated it.
|
|
15
|
+
|
|
16
|
+
### Pillar II: Agentic Policy Orchestrator (APO)
|
|
17
|
+
|
|
18
|
+
# MindForge Governance Guide (v5.1.0)
|
|
19
|
+
MindForge v5.1.0 introduces a non-bypassable, intent-level governance layer that evaluates every autonomous wave against organizational security policies.
|
|
20
|
+
|
|
21
|
+
- **Policy-as-Code (PaC)**: Security rules are defined in declarative JSON/YAML schemas, enabling version-controlled governance.
|
|
22
|
+
- **Real-Time Intent Interception**: The `AutoRunner` intercepts swarm intents (Action, Resource, DID, Tier) before execution.
|
|
23
|
+
- **Dynamic RBAC Mapping**: v5.1.0 automatically maps ZTAI Trust Tiers to project roles based on an agent's **Zero-Trust Agentic Identity (ZTAI)** trust tier.
|
|
24
|
+
- **Fail-Safe Governance**: "Default Deny" posture for sensitive operations (API key access, infra modification, etc.).
|
|
25
|
+
|
|
26
|
+
### Pillar III: Predictive Agentic Reliability (PAR)
|
|
27
|
+
|
|
28
|
+
The PAR layer addresses reasoning decay and execution drifting in long-running autonomous sessions.
|
|
29
|
+
|
|
30
|
+
- **Loop Detection (S03/S04)**: Advanced `StuckMonitor` patterns for Semantic Mirroring and Infinite Decomposition.
|
|
31
|
+
- **Context Density Refactorer**: Proactive context summarization and handoff when reasoning-to-action density falls below 30%.
|
|
32
|
+
- **C2C Arbitrage**: Confidence-to-Cost (C2C) threshold gating to prevent low-value autonomous drifts.
|
|
33
|
+
- **Self-Healing Reasoning**: Automated triggering of "hindsight injection" when stuck patterns are detected.
|
|
34
|
+
|
|
35
|
+
### Pillar IV: Supply Chain Trust (ZTS)
|
|
36
|
+
|
|
37
|
+
The ZTS layer ensures the integrity of the agentic supply chain, from the models used to the skills executed.
|
|
38
|
+
|
|
39
|
+
- **Agentic SBOM**: Automated `MANIFEST.sbom.json` generation tracking every model and skill signature in the reasoning chain.
|
|
40
|
+
- **7-Dimension Certification (7D)**: Weighted scoring system (Schema, Triggers, Security, Clarity, etc.) for skill validation.
|
|
41
|
+
- **Enterprise-Grade Enforcement**: Strict `--enterprise` mode requirement for 7.0/10.0 minimum certification score.
|
|
42
|
+
- **Skill Telemetry**: Real-time auditing of skill performance and reliability metrics.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
### Pillar V: Multi-Cloud Arbitrage & Hedging
|
|
47
|
+
|
|
48
|
+
The Multi-Cloud layer ensures absolute availability and cost-efficiency by dynamically load-balancing across multiple AI providers.
|
|
49
|
+
|
|
50
|
+
- **Dynamic Routing**: Real-time arbitrage across Vertex AI, AWS Bedrock, and Azure based on current latency and cost weights.
|
|
51
|
+
- **Provider Fallback Protocol**: Automated "Hedging" that migrates agent context to a secondary cloud provider (e.g., Anthropic to Google) if 5xx errors or high latencies are detected.
|
|
52
|
+
- **Chaos Mode (Beast Mode)**: Built-in reliability testing that simulates provider dropouts to verify the robustness of the fallback loops.
|
|
53
|
+
|
|
54
|
+
### Pillar VI: Sovereign Reason Enclaves (SRE)
|
|
55
|
+
|
|
56
|
+
SRE provides a "Confidential Computing" environment for the agent's internal thought process, protecting sensitive intellectual property.
|
|
57
|
+
|
|
58
|
+
- **TEE-Simulated Reasoning**: Tier 3 workloads execute reasoning traces in high-isolation simulated enclaves with zero-visibility to the global log.
|
|
59
|
+
- **Thought-Chain Sanitization**: Automatically redacts sensitive patterns (keys, credentials, PII) from the reasoning trace before persistent audit.
|
|
60
|
+
- **Enclave Multi-Tenancy**: Isolated reason-space per project wave, ensuring that cross-stream reasoning cannot leak state or logic.
|
|
61
|
+
|
|
62
|
+
### Pillar VII: Dynamic Human-Agent Handover (DHH)
|
|
63
|
+
|
|
64
|
+
DHH creates a seamless bridge between fully autonomous execution and high-precision human steering.
|
|
65
|
+
|
|
66
|
+
- **Nexus State Bundles**: Automated "Context Freeze" and packaging of memory, diffs, and reasoning traces when agent confidence drops below 60%.
|
|
67
|
+
- **Mid-Wave Steering**: In-flight steering injection into the `AutoRunner` loop, allowing humans to re-orient an active autonomous wave without restarts.
|
|
68
|
+
- **Confidence-to-Human Gating**: Proactive interruption of the autonomous stream for "Human-in-the-Loop" approval on sensitive T3 operations.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Technical Components
|
|
73
|
+
|
|
74
|
+
### 🧠 Intelligence Mesh
|
|
75
|
+
|
|
76
|
+
| Component | Path | Description |
|
|
77
|
+
| :--- | :--- | :--- |
|
|
78
|
+
| **EIS Client** | `bin/memory/eis-client.js` | Hardened, ZTAI-signed mesh communicator. |
|
|
79
|
+
| **Fed-Sync** | `bin/memory/federated-sync.js` | Core delta-sync and conflict resolution logic. |
|
|
80
|
+
| **Graph Bridge** | `bin/memory/knowledge-graph.js` | Unified traversal for local and remote nodes. |
|
|
81
|
+
|
|
82
|
+
### 🛡️ Governance & Cloud Arbitrage
|
|
83
|
+
|
|
84
|
+
| Component | Path | Description |
|
|
85
|
+
| :--- | :--- | :--- |
|
|
86
|
+
| **Policy Engine** | `bin/governance/policy-engine.js` | Intent-based RBAC/ABAC evaluator. |
|
|
87
|
+
| **RBAC Manager** | `bin/governance/rbac-manager.js` | Tier-to-role binding and DID mapping. |
|
|
88
|
+
| **Cloud Broker** | `bin/models/cloud-broker.js` | Multi-cloud routing and arbitrage engine. |
|
|
89
|
+
| **Fallback Protocol** | `bin/models/model-broker.js` | Provider hedging and context migration logic. |
|
|
90
|
+
|
|
91
|
+
### ⚡ Reliability & Trust (PAR/ZTS/SRE/DHH)
|
|
92
|
+
|
|
93
|
+
| Component | Path | Description |
|
|
94
|
+
| :--- | :--- | :--- |
|
|
95
|
+
| **Stuck Monitor** | `bin/autonomous/stuck-monitor.js` | S03/S04 loop detection patterns. |
|
|
96
|
+
| **Refactorer** | `bin/autonomous/context-refactorer.js` | Context density and proactive summarization. |
|
|
97
|
+
| **SRE Manager** | `bin/engine/sre-manager.js` | Trusted execution enclave management. |
|
|
98
|
+
| **Handover Manager** | `bin/engine/handover-manager.js` | Nexus bundle creation and steering logic. |
|
|
99
|
+
| **SBOM Tracer** | `bin/engine/nexus-tracer.js` | SRE-aware audit logging and manifest generation. |
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## ZTAI & Enclave Security (v5.1.0)
|
|
104
|
+
|
|
105
|
+
MindForge v5.1.0 enforces **Zero-Trust Agentic Identity (ZTAI)** as the root-of-trust for all enterprise operations.
|
|
106
|
+
|
|
107
|
+
1. **Identity Verification**: Agents prove their identity using Ed25519 signatures.
|
|
108
|
+
2. **Tier Escalation**: Tier 0-1 agents are limited to analytical tasks. Tier 2 agents gain implementation roles. Tier 3 agents (signed by HSM-secured identities) execute in **Sovereign Reason Enclaves**.
|
|
109
|
+
3. **Policy Binding**: Policies specifically reference `trust_tier` requirements for sensitive namespaces.
|
|
110
|
+
4. **Handover Thresholds**: Lower trust tiers trigger human-agent handover (DHH) earlier than senior T3 agents.
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
*For implementation details, refer to the [PAR & ZTS Survey](./PAR-ZTS-SURVEY.md) and [Governance Guide](../governance-guide.md).*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# MindForge
|
|
1
|
+
# MindForge v5.1.0 — Commands Reference
|
|
2
2
|
|
|
3
3
|
MindForge commands are organized into functional pillars to support the entire software development lifecycle (SDLC).
|
|
4
4
|
|
|
@@ -35,6 +35,7 @@ MindForge commands are organized into functional pillars to support the entire s
|
|
|
35
35
|
| `/mindforge:personas --list` | Displays all 32+ specialized engineering personas. |
|
|
36
36
|
| `/mindforge:personas --set ID` | Switches the current agent to a specific persona (e.g., `architect`, `executor`). |
|
|
37
37
|
| `/mindforge:tokens` | Analyzes and profiles token usage for the current session. |
|
|
38
|
+
| `/mindforge:neural-orchestrator` | Activates the advanced protocol layer for the current session. |
|
|
38
39
|
| `shard-helper --verify` | (CLI Internal) Verifies the integrity and SHA-256 checksums of memory shards. |
|
|
39
40
|
|
|
40
41
|
---
|
|
@@ -62,3 +63,21 @@ MindForge commands are organized into functional pillars to support the entire s
|
|
|
62
63
|
| `/mindforge:migrate` | Migrates project metadata between framework versions. |
|
|
63
64
|
| `/mindforge:audit --export` | Generates a human-readable PDF report of the session audit log. |
|
|
64
65
|
| `/mindforge:join-discord` | Join the MindForge developer community for support and collaboration. |
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## 6. Advanced Neural Protocols (Beast Addition)
|
|
70
|
+
|
|
71
|
+
These protocols represent specialized, high-fidelity engineering behaviors ported and hardened for the MindForge ecosystem.
|
|
72
|
+
|
|
73
|
+
| Command | Description |
|
|
74
|
+
| :--- | :--- |
|
|
75
|
+
| `/mindforge:brainstorming` | Deep ideation and requirement exploration before planning. |
|
|
76
|
+
| `/mindforge:swarm-execution` | Swarm-based implementation for independent tasks. |
|
|
77
|
+
| `/mindforge:parallel-mesh` | Orchestrates context across multiple parallel agent waves. |
|
|
78
|
+
| `/mindforge:workspace-isolated` | Manages isolated development environments via git worktrees. |
|
|
79
|
+
| `/mindforge:skill-creation` | Expert protocol for authoring new MindForge skills. |
|
|
80
|
+
| `/mindforge:review-request` | Formalizes peer review requests for completed implementation waves. |
|
|
81
|
+
| `/mindforge:tdd` | Enhanced Test-Driven Development protocol with strict verification. |
|
|
82
|
+
| `/mindforge:debug` | Advanced systematic debugging with persistent state tracking. |
|
|
83
|
+
| `/mindforge:verify-work` | Multi-level truth verification (existence, substance, wiring). |
|
package/docs/governance-guide.md
CHANGED
|
@@ -1,32 +1,53 @@
|
|
|
1
|
-
# MindForge Governance Guide (
|
|
1
|
+
# MindForge Governance Guide (v5.1.0)
|
|
2
|
+
Absolute Control through Policy-as-Code (PaC)
|
|
2
3
|
|
|
3
|
-
## Goal
|
|
4
|
-
|
|
4
|
+
## 1. Goal
|
|
5
|
+
MindForge v5.1.0 introduces a non-bypassable, intent-level governance layer. This guide explains how **Agentic Policy Orchestration (APO)** and **Zero-Trust Agentic Identity (ZTAI)** work together to secure the enterprise development lifecycle, now hardened by the **Neural Protocol Mesh**.
|
|
5
6
|
|
|
6
|
-
##
|
|
7
|
-
|
|
7
|
+
## 2. Agentic Policy Orchestrator (APO)
|
|
8
|
+
The APO is a decentralized governance engine that intercepts every autonomous intent before it is executed.
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
### A. Intent Interception
|
|
11
|
+
Before the `AutoRunner` begins a new execution wave, it extracts the acting agent's **Intent**:
|
|
12
|
+
- **DID**: The unique identity of the agent.
|
|
13
|
+
- **Action**: The operation being attempted (e.g., `process_phase_wave`, `modify_security_config`).
|
|
14
|
+
- **Resource**: The target of the action (e.g., specific directories, files, or API endpoints).
|
|
15
|
+
- **Tier**: The ZTAI Trust Tier assigned to the agent.
|
|
16
|
+
|
|
17
|
+
### B. Policy Evaluation
|
|
18
|
+
The `PolicyEngine` evaluates this intent against organizational **Policy-as-Code (PaC)** definitions (typically stored in `bin/governance/policies/`).
|
|
19
|
+
- **Permit**: The action is allowed and execution proceeds.
|
|
20
|
+
- **Deny**: The action is blocked, and the violation is logged to `AUDIT.jsonl`.
|
|
21
|
+
- **Escalate**: The action requires a higher-tier DID signature or explicit HITL (Human-in-the-Loop) approval.
|
|
22
|
+
|
|
23
|
+
## 3. Trust Tier Architecture (ZTAI Hardened)
|
|
24
|
+
V5.1.0 automatically maps ZTAI Trust Tiers to explicit project roles through the `RBACManager`.
|
|
25
|
+
|
|
26
|
+
| Tier | Role | Scope | Hardening |
|
|
10
27
|
| :--- | :--- | :--- | :--- |
|
|
11
|
-
| **0** | Informational | Research/Query
|
|
12
|
-
| **1** |
|
|
13
|
-
| **2** | Specialized | Security
|
|
14
|
-
| **3** | Principal |
|
|
15
|
-
|
|
16
|
-
## Governance
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
28
|
+
| **0** | Informational | Research/Query only. | Read-only access to non-sensitive docs. |
|
|
29
|
+
| **1** | Implementation| Standard feature dev. | Write access to `/src`, `/tests`, `/bin/memory`. |
|
|
30
|
+
| **2** | Specialized | Security/DevOps Specialist. | Access to `/security`, `/infra`, and `/bin/governance`. |
|
|
31
|
+
| **3** | Principal | Lead Architect / Core Engine. | **HSM-Enclave Signing Required** for all engine modifications. |
|
|
32
|
+
|
|
33
|
+
## 4. Protocol Mesh Governance (v5.1.0 Enhancement)
|
|
34
|
+
The **Beast Addition** integrates protocol-level governance into the APO engine.
|
|
35
|
+
- **Protocol Enforceability**: Every protocol activation (e.g., `/mindforge:tdd`) is logged as a governance event.
|
|
36
|
+
- **Mesh Integrity**: The **Parallel Mesh** synchronizes governance state across multiple agents, preventing "split-brain" policy execution.
|
|
37
|
+
- **Skill Compliance**: New skills created via `/mindforge:skill-creation` are automatically audited for APO compatibility.
|
|
38
|
+
|
|
39
|
+
## 5. Governance Workflow (V5.1.0)
|
|
40
|
+
1. **ZTAI Handshake**: Agent proves identity using Ed25519 signatures.
|
|
41
|
+
2. **Intent Pulse**: Agentic intent is broadcast to the policy interceptor.
|
|
42
|
+
3. **APO Evaluation**: Policy engine checks the intent against PaC rules.
|
|
43
|
+
4. **Role binding**: `RBACManager` grants or revokes permissions based on the active trust tier.
|
|
44
|
+
5. **Verified Wave**: Execution proceeds only if all policy gates are clear.
|
|
45
|
+
|
|
46
|
+
## 6. Enterprise Policies
|
|
47
|
+
MindForge v5.1.0 ships with default policies including:
|
|
48
|
+
- **`gate_tier_3_engine`**: Blocks all modifications to `bin/autonomous/` unless signed by a Tier 3 DID.
|
|
49
|
+
- **`protect_security_namespace`**: Limits access to `/security` and `/governance` to Tier 2+ specialists.
|
|
50
|
+
- **`mesh_integrity_lock`**: Ensures only high-confidence agents can push to the **Federated Intelligence Mesh**.
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
*Status: V5.1.0 "Beast Addition" Governance Implemented & Verified (2026-03-28)*
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
| Version | Security support |
|
|
6
6
|
|---|---|
|
|
7
|
-
|
|
|
8
|
-
|
|
|
9
|
-
| < 0.
|
|
7
|
+
| 5.x.x | ✅ Active — patches released for all severity levels |
|
|
8
|
+
| 4.x.x | ⚠️ Limited — critical fixes only |
|
|
9
|
+
| < 4.0.0 | ❌ No support |
|
|
10
10
|
|
|
11
11
|
## Reporting a vulnerability
|
|
12
12
|
|
|
@@ -29,12 +29,14 @@
|
|
|
29
29
|
- Crediting researchers in the security advisory (with their permission)
|
|
30
30
|
- Maintaining confidentiality until a fix is released
|
|
31
31
|
|
|
32
|
-
## ZTAI
|
|
32
|
+
## ZTAI & Enclave Security (v5.0.0)
|
|
33
33
|
|
|
34
|
-
MindForge enforces **Zero-Trust Agentic Identity (ZTAI)**
|
|
34
|
+
MindForge v5.0.0 enforces **Zero-Trust Agentic Identity (ZTAI)** and **Sovereign Reason Enclaves (SRE)** for all sensitive operations.
|
|
35
35
|
|
|
36
|
-
- **Asymmetric Signing**: All high-tier (T1-T3) agent actions are cryptographically signed.
|
|
37
|
-
- **
|
|
36
|
+
- **Asymmetric Signing**: All high-tier (T1-T3) agent actions are cryptographically signed using Ed25519.
|
|
37
|
+
- **Sovereign Reason Enclaves (SRE)**: Tier 3 principal agents execute reasoning in isolated TEE-simulated enclaves, ensuring that high-value architectural decisions and sensitive IP never leak to the persistent log.
|
|
38
|
+
- **Trace Sanitization**: In-enclave sanitization automatically redacts credentials and PII from reasoning traces before they reach the local filesystem.
|
|
39
|
+
- **Multi-Cloud Resilience**: The **Cloud Broker** provides automated failover and hedging across Vertex AI, Bedrock, and Azure to mitigate provider-side denial-of-service or outages.
|
|
38
40
|
- **Audit Non-Repudiation**: The `AUDIT.jsonl` log is finalized with **Merkle-root integrity manifests** to prevent tampering.
|
|
39
41
|
- **See also:** [ZTAI Overview](file:///Users/sairamugge/Desktop/MindForge/docs/security/ZTAI-OVERVIEW.md)
|
|
40
42
|
|