mindforge-cc 5.4.0 → 5.10.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 +16 -7
- package/.mindforge/engine/nexus-tracer.js +7 -111
- package/CHANGELOG.md +48 -0
- package/README.md +48 -7
- package/RELEASENOTES.md +36 -1
- package/bin/dashboard/frontend/index.html +241 -1
- package/bin/dashboard/revops-api.js +47 -0
- package/bin/dashboard/server.js +1 -0
- package/bin/engine/feedback-loop.js +36 -1
- package/bin/engine/nexus-tracer.js +102 -17
- package/bin/engine/sre-manager.js +63 -9
- package/bin/engine/temporal-hindsight.js +27 -0
- package/bin/models/cloud-broker.js +89 -11
- package/bin/models/performance-stats.json +22 -0
- package/bin/revops/debt-monitor.js +60 -0
- package/bin/revops/roi-engine.js +60 -0
- package/bin/revops/velocity-forecaster.js +59 -0
- package/bin/skill-registry.js +66 -1
- package/bin/skill-validator.js +27 -1
- package/docs/INTELLIGENCE-MESH.md +12 -2
- package/docs/architecture/V5-ENTERPRISE.md +25 -22
- package/docs/commands-reference.md +4 -1
- package/docs/governance-guide.md +15 -7
- package/docs/usp-features.md +15 -72
- package/package.json +1 -1
package/.agent/CLAUDE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# MindForge — Unified Protocol Engine (
|
|
1
|
+
# MindForge — Unified Protocol Engine (v5.10.0-NEXUS)
|
|
2
2
|
|
|
3
3
|
# MASTER DIRECTIVE: Every session MUST begin by loading the Parameter Registry (MINDFORGE.md) and activating the `mindforge-neural-orchestrator` layer.
|
|
4
4
|
|
|
@@ -41,11 +41,18 @@ You are a **Dynamic Multi-Agent Swarm (Agentic Mesh)**. Your mission is to execu
|
|
|
41
41
|
- **Shipping**: `mindforge-ship_extended`.
|
|
42
42
|
- **Verification**: `mindforge-verify-work_extended`.
|
|
43
43
|
|
|
44
|
-
### 5. The Temporal Vision Loop (Hindsight)
|
|
45
|
-
**IF** verification fails **OR** deep bug suspected:
|
|
46
|
-
1. Invoke
|
|
47
|
-
2.
|
|
48
|
-
3.
|
|
44
|
+
### 5. The Temporal Vision Loop (Hindsight & Steering)
|
|
45
|
+
**IF** verification fails **OR** deep bug suspected **OR** manual correction needed:
|
|
46
|
+
1. Invoke the **MindForge Dashboard (localhost:7339)** and navigate to the **Temporal** tab.
|
|
47
|
+
2. Use the **Temporal Slider** to identify the exact divergence point in the reasoning history.
|
|
48
|
+
3. Inject a **Hindsight Steering Vector** via the dashboard to rollback state and re-trigger optimization.
|
|
49
|
+
4. Verify the `auto-state.json` status has transitioned to `awaiting_regeneration`.
|
|
50
|
+
|
|
51
|
+
### 6. AgRevOps Governance (Pillar VIII)
|
|
52
|
+
**MANDATORY for all Enterprise-tier sessions**:
|
|
53
|
+
1. Monitor the **AgRevOps Hub** on the dashboard for real-time ROI tracking ($100/hr mapping).
|
|
54
|
+
2. Validate the **Security Health Score** (must remain > 85).
|
|
55
|
+
3. Check the **Velocity Forecaster** for milestone completion ETAs.
|
|
49
56
|
|
|
50
57
|
---
|
|
51
58
|
|
|
@@ -54,9 +61,11 @@ You are a **Dynamic Multi-Agent Swarm (Agentic Mesh)**. Your mission is to execu
|
|
|
54
61
|
Prioritize based on `[REACTIVE_MODE]` in MINDFORGE.md. These are the **Quality gates**:
|
|
55
62
|
|
|
56
63
|
- [ ] **Load Config**: Read PROJECT.md, STATE.md, and **MINDFORGE.md**.
|
|
64
|
+
- [ ] **Nexus Sync**: Ensure `NexusTracer` singleton is initialized and active.
|
|
65
|
+
- [ ] **AgRevOps Check**: Verify ROI trends and Security Health Score via `/api/revops`.
|
|
57
66
|
- [ ] **PLAN-FIRST RULE**: Never code without a verified XML plan.
|
|
58
67
|
- [ ] **Verify First**: Never task-complete without successful `<verify>` output.
|
|
59
|
-
- [ ] **Audit Always**: Write a JSONL entry for every significant session event.
|
|
68
|
+
- [ ] **Audit Always**: Write a JSONL entry for every significant session event. All entries must be Merkle-linked.
|
|
60
69
|
|
|
61
70
|
---
|
|
62
71
|
|
|
@@ -1,115 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* MindForge Nexus —
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* MindForge Nexus — Legacy Shim (v5.9.0)
|
|
3
|
+
*
|
|
4
|
+
* This file acts as a compatibility layer for the v4.1.0-alpha.nexus ART protocol.
|
|
5
|
+
* ALL core tracing logic has been migrated to /bin/engine/nexus-tracer.js for
|
|
6
|
+
* production-grade performance and security hardening.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
const path = require('path');
|
|
10
|
-
const crypto = require('crypto');
|
|
9
|
+
'use strict';
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
constructor(config = {}) {
|
|
14
|
-
this.projectId = config.projectId || 'mindforge-nexus';
|
|
15
|
-
this.auditPath = config.auditPath || path.join(process.cwd(), '.planning', 'AUDIT.jsonl');
|
|
16
|
-
this.currentTraceId = null;
|
|
17
|
-
this.activeSpans = new Map();
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Initialize or resume a trace.
|
|
22
|
-
*/
|
|
23
|
-
startTrace(traceId = null) {
|
|
24
|
-
this.currentTraceId = traceId || `tr_${crypto.randomBytes(8).toString('hex')}`;
|
|
25
|
-
return this.currentTraceId;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Start a new ART span.
|
|
30
|
-
*/
|
|
31
|
-
startSpan(name, attributes = {}, parentSpanId = null) {
|
|
32
|
-
const spanId = `sp_${crypto.randomBytes(6).toString('hex')}`;
|
|
33
|
-
const startTime = new Date().toISOString();
|
|
34
|
-
|
|
35
|
-
const span = {
|
|
36
|
-
id: spanId,
|
|
37
|
-
trace_id: this.currentTraceId,
|
|
38
|
-
parent_id: parentSpanId || null,
|
|
39
|
-
name,
|
|
40
|
-
status: 'active',
|
|
41
|
-
start_time: startTime,
|
|
42
|
-
attributes: {
|
|
43
|
-
...attributes,
|
|
44
|
-
service: 'mindforge-nexus',
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
this.activeSpans.set(spanId, span);
|
|
49
|
-
|
|
50
|
-
// Record span start in AUDIT.jsonl
|
|
51
|
-
this._recordEvent('span_started', {
|
|
52
|
-
span_id: spanId,
|
|
53
|
-
parent_span_id: parentSpanId,
|
|
54
|
-
span_name: name,
|
|
55
|
-
...attributes
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
return spanId;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* End an active span.
|
|
63
|
-
*/
|
|
64
|
-
endSpan(spanId, status = 'success', metadata = {}) {
|
|
65
|
-
const span = this.activeSpans.get(spanId);
|
|
66
|
-
if (!span) return;
|
|
67
|
-
|
|
68
|
-
span.status = status;
|
|
69
|
-
span.end_time = new Date().toISOString();
|
|
70
|
-
|
|
71
|
-
this._recordEvent('span_completed', {
|
|
72
|
-
span_id: spanId,
|
|
73
|
-
status,
|
|
74
|
-
...metadata
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
this.activeSpans.delete(spanId);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Record a Reasoning Trace event (ART granularity).
|
|
82
|
-
*/
|
|
83
|
-
recordReasoning(spanId, agent, thought, resolution = 'none') {
|
|
84
|
-
this._recordEvent('reasoning_trace', {
|
|
85
|
-
span_id: spanId,
|
|
86
|
-
agent,
|
|
87
|
-
thought,
|
|
88
|
-
resolution
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Internal AUDIT writer.
|
|
94
|
-
*/
|
|
95
|
-
_recordEvent(event, data) {
|
|
96
|
-
const entry = {
|
|
97
|
-
id: crypto.randomUUID(),
|
|
98
|
-
timestamp: new Date().toISOString(),
|
|
99
|
-
event,
|
|
100
|
-
trace_id: this.currentTraceId,
|
|
101
|
-
...data
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
try {
|
|
105
|
-
if (!fs.existsSync(path.dirname(this.auditPath))) {
|
|
106
|
-
fs.mkdirSync(path.dirname(this.auditPath), { recursive: true });
|
|
107
|
-
}
|
|
108
|
-
fs.appendFileSync(this.auditPath, JSON.stringify(entry) + '\n');
|
|
109
|
-
} catch (err) {
|
|
110
|
-
console.error(`[NexusTracer] Failed to write audit entry: ${err.message}`);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
module.exports = NexusTracer;
|
|
11
|
+
module.exports = require('../../bin/engine/nexus-tracer');
|
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,55 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [5.8.0] - 2026-03-28
|
|
4
|
+
### Added
|
|
5
|
+
- **Pillar VI: Sovereign Reason Enclaves (ZK-Proof Audit Trails)**.
|
|
6
|
+
- Implemented `SRE-ISOLATED` reasoning mode in `SREManager`.
|
|
7
|
+
- Generated **ZK-Proof Compliance Certificates** (signed by System DID) for confidential reasoning cycles.
|
|
8
|
+
- Integrated masked audit logging in `NexusTracer`, replacing raw thought traces with verifiable proofs.
|
|
9
|
+
- Added `verifyZKProof` utility for non-custodial audit verification.
|
|
10
|
+
|
|
11
|
+
## [5.7.0] - 2026-03-28
|
|
12
|
+
### Added
|
|
13
|
+
- **Pillar V: Multi-Cloud Arbitrage (Task-to-Model Affinity Routing)**.
|
|
14
|
+
- Implemented **Performance-Based Affinity Matrices** in `CloudBroker` for intelligence-first routing.
|
|
15
|
+
- Added `performance-stats.json` persistence to track cross-provider success rates by task taxonomy.
|
|
16
|
+
- Integrated automated result recording in `WaveFeedbackLoop`.
|
|
17
|
+
- Prioritized **Probability of Success** over raw cost/latency in routing scoring.
|
|
18
|
+
|
|
19
|
+
## [5.6.0] - 2026-03-28
|
|
20
|
+
### Added
|
|
21
|
+
- **Pillar IV: Supply Chain Trust (Binary Runtime Attestation)**.
|
|
22
|
+
- Cryptographic skill signing in `SkillRegistry` via ZTAIManager Tier 3 Enclaves.
|
|
23
|
+
- JIT Attestation in `SkillValidator` to verify skill integrity before agent execution.
|
|
24
|
+
- `SIGNATURES.json` tracking for all enterprise-grade skills.
|
|
25
|
+
|
|
26
|
+
## [5.5.0] - 2026-03-28
|
|
27
|
+
### Added
|
|
28
|
+
- **Pillar III: Predictive Agentic Reliability (Reasoning Entropy Monitoring)**.
|
|
29
|
+
- Reasoning Entropy Scoring (RES) in `NexusTracer` to detect semantic stagnation and loops.
|
|
30
|
+
- Proactive Self-Healing trigger for high-similarity thought sequences.
|
|
31
|
+
- Steering Vector generation in `TemporalHindsight` to break agentic deadlocks.
|
|
32
|
+
|
|
3
33
|
## [5.4.0] — Beast Mode Hardening — 2026-03-28
|
|
4
34
|
|
|
35
|
+
# Release Notes - MindForge v5.6.0 "Sentinel Execution"
|
|
36
|
+
|
|
37
|
+
MindForge v5.6.0 introduces the final pillars of the Hyper-Enterprise roadmap: Proactive Reliability and Zero-Trust Skill Execution.
|
|
38
|
+
|
|
39
|
+
## Highlights
|
|
40
|
+
- **Reasoning Entropy Monitoring (PAR)**: Proactively prevents token-burning reasoning loops.
|
|
41
|
+
- **Binary Runtime Attestation (ZTS)**: Cryptographically ensures that skills have not been tampered with before they are loaded by the agent.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## [5.6.0] - Sentinel Execution
|
|
46
|
+
- Implemented JIT Attestation for Skill Registry.
|
|
47
|
+
- Added Skill Signing utility in `mindforge-cc sign`.
|
|
48
|
+
|
|
49
|
+
## [5.5.0] - Predictive Reliability
|
|
50
|
+
- Implemented RES (Reasoning Entropy Scoring) in Nexus Tracer.
|
|
51
|
+
- Added Steering Vector injection for proactive loop breaking.
|
|
52
|
+
|
|
5
53
|
🚀 **MindForge v5.4.0 — Enterprise Resilience (Hardened Edition)**
|
|
6
54
|
|
|
7
55
|
This update elevates the v5.3.0 "Hyper-Enterprise" features to maximum robustness ("Beast Mode"), implementing critical safety systems and advanced observability.
|
package/README.md
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
# MindForge v5.
|
|
1
|
+
# MindForge v5.10.0 — Nexus Steering & AgRevOps
|
|
2
2
|
|
|
3
|
-
MindForge turns AI coding agents into production-grade engineering partners with
|
|
4
|
-
Release published: v5.
|
|
3
|
+
MindForge turns AI coding agents into production-grade engineering partners with **Interactive Temporal Steering (Pillar VII)**, **AgRevOps ROI Analytics (Pillar VIII)**, and a non-bypassable Sovereign Reason Enclave with Merkle-linked ZK-Audit trails.
|
|
4
|
+
Release published: v5.10.0-NEXUS.
|
|
5
|
+
|
|
6
|
+
## What's new in v5.10 (Nexus Steering & AgRevOps)
|
|
7
|
+
|
|
8
|
+
MindForge V5.10 completes the "Hyper-Enterprise" evolution, transforming the dashboard into a high-fidelity control center for temporal debugging and financial governance.
|
|
9
|
+
|
|
10
|
+
- **Interactive Temporal Steering (Pillar VII)**: The 'Time-Travel' slider allows real-time navigation of historical snapshots. Inspect reasoning traces at any point in space-time and inject 'Hindsight Steering Vectors' to correct agentic drift.
|
|
11
|
+
- **AgRevOps ROI Engine (Pillar VIII)**: Automated calculation of economic value ($100/hr dev saving vs token costs). Tracks cumulative savings and net agentic ROI for the entire swarm.
|
|
12
|
+
- **Velocity Forecaster**: Statistical ETA prediction for milestones based on live task completion velocity.
|
|
13
|
+
- **Governance Debt Monitor**: Security Health Score tracking that flags policy bypasses and critical findings in the audit trail.
|
|
14
|
+
- **Nexus Dashboard v2.0**: Major UI upgrade with dedicated Temporal and RevOps tabs, featuring real-time gauges and reasoning inspectors.
|
|
15
|
+
|
|
16
|
+
## What's new in v5.9 (Beast Mode Hardening)
|
|
5
17
|
|
|
6
18
|
## Installation & Setup
|
|
7
19
|
|
|
@@ -36,17 +48,22 @@ npx mindforge-cc@latest --claude --local
|
|
|
36
48
|
AI coding agents degrade over long sessions. Context fills up. Quality drops.
|
|
37
49
|
Decisions get forgotten. MindForge fixes that with:
|
|
38
50
|
|
|
39
|
-
- **
|
|
40
|
-
- **
|
|
51
|
+
- **Sovereign Reason Enclave (v5.8)** — TEE-simulated reasoning isolation with Zero-Knowledge (ZK) Audit Trails.
|
|
52
|
+
- **Multi-Cloud Arbitrage (v5.7)** — Dynamic routing across Vertex AI, Bedrock, and Azure with intelligence-first task affinity.
|
|
53
|
+
- **Sentinel Execution (v5.6)** — JIT Binary Runtime Attestation and Zero-Trust Skill Enforcement.
|
|
54
|
+
- **Interactive Temporal Steering (v5.10)** — Full history scrubbing, hindsight state repair, and real-time temporal slider navigation.
|
|
55
|
+
- **AgRevOps Hub (v5.10)** — Dynamic ROI tracking ($100/hr mapping), Milestone Velocity forecasting, and Governance Debt monitoring.
|
|
56
|
+
- **Sovereign Reason Enclave (v5.8)** — TEE-simulated reasoning isolation with Zero-Knowledge (ZK) Audit Trails.
|
|
57
|
+
- **Multi-Cloud Arbitrage (v5.7)** — Dynamic routing across Vertex AI, Bedrock, and Azure with intelligence-first task affinity.
|
|
58
|
+
- **Sentinel Execution (v5.6)** — JIT Binary Runtime Attestation and Zero-Trust Skill Enforcement.
|
|
41
59
|
- **Human-Agent Handover (v5.0)** — Nexus State Bundles and mid-wave steering injection.
|
|
42
|
-
- **Autonomous FinOps (v4.3)** — Dynamic **C2C** (Confidence-to-Cost) routing
|
|
60
|
+
- **Autonomous FinOps (v4.3)** — Dynamic **C2C** (Confidence-to-Cost) routing.
|
|
43
61
|
- **Proactive Equilibrium (v4.3)** — Real-time **Wave Divergence** monitoring and autonomous state recovery.
|
|
44
62
|
- **MindForge Nexus (v4.1)** — High-fidelity **ART** (Agentic Reasoning Tracing).
|
|
45
63
|
- **Zero-Trust Identity (v4.2)** — DID-signed non-repudiable audit logs with HSM/Enclave support.
|
|
46
64
|
- **Global Intelligence Mesh (v4.2)** — Cross-repo knowledge sharing and Ghost Pattern Detection.
|
|
47
65
|
- **Context Sharding (v3)** — relevance-dense memory management (40% token savings)
|
|
48
66
|
- **Adversarial Synthesis (v3)** — zero-drift logic through red/blue model debate
|
|
49
|
-
- **Temporal Vision (v3)** — full history scrubbing and hindsight state repair
|
|
50
67
|
- **RAG 2.0 (v3)** — automatic semantic shadowing for background pattern retrieval
|
|
51
68
|
- **Role personas** — specialised agent modes for each task type
|
|
52
69
|
- **Specialized Identities** — custom `/agents/` workspace with enriched `IDENTITY.md` protocols
|
|
@@ -292,6 +309,30 @@ See `.mindforge/production/token-optimiser.md`.
|
|
|
292
309
|
|
|
293
310
|
---
|
|
294
311
|
|
|
312
|
+
## What's new in v5.8 (Sovereign Reason Enclaves)
|
|
313
|
+
|
|
314
|
+
MindForge V5.8 implements the sixth pillar of the Hyper-Enterprise roadmap: **Sovereign Reason Enclaves with ZK-Audit**.
|
|
315
|
+
|
|
316
|
+
- **ZK-Proof Compliance Certificates**: Simulated zero-knowledge proofs (signed by System DID) for SRE sessions, proving policy adherence without exposing thoughts.
|
|
317
|
+
- **Privacy-Preserving Auditing**: `NexusTracer` replaces raw reasoning with verifiable certificates in the global audit log.
|
|
318
|
+
- **Enclave Verification**: Cryptographic verification of enclave sessions via `verifyZKProof`.
|
|
319
|
+
|
|
320
|
+
## What's new in v5.7 (Multi-Cloud Arbitrage)
|
|
321
|
+
|
|
322
|
+
MindForge V5.7 implements the fifth pillar of the Hyper-Enterprise roadmap: **Multi-Cloud Arbitrage with Task-to-Model Affinity**.
|
|
323
|
+
|
|
324
|
+
- **Task Affinity Matrices**: Persistent tracking of model success rates by task taxonomy (e.g., Anthropic for refactoring, Google for research).
|
|
325
|
+
- **Intelligence-First Routing**: Scoring weighted 50% on success probability, ensuring the best model for the job.
|
|
326
|
+
- **Feedback Integration**: Automated performance updates via the implementation feedback loop.
|
|
327
|
+
|
|
328
|
+
## What's new in v5.6 (Sentinel Execution)
|
|
329
|
+
|
|
330
|
+
MindForge V5.6 completes the "Hyper-Enterprise" roadmap with two critical security and reliability pillars.
|
|
331
|
+
|
|
332
|
+
- **Binary Runtime Attestation (ZTS)**: Cryptographically sign skills using HSM-secured identities. The `SkillValidator` now performs JIT verification, blocking tampered or unauthorized skills from loading.
|
|
333
|
+
- **Reasoning Entropy Monitoring (PAR)**: The `NexusTracer` now calculates **RES (Reasoning Entropy Scoring)**. If an agent falls into a semantic loop or circular reasoning, the system proactively generates a **Steering Vector** to break the loop and recover the execution wave.
|
|
334
|
+
- **Sentinel Hardening**: Enhanced `NexusTracer` with SRE-aware audit integrity and Merkle-root cumulative hash chains.
|
|
335
|
+
|
|
295
336
|
## What's new in v4.3 (Enterprise Mesh & Equilibrium)
|
|
296
337
|
|
|
297
338
|
MindForge V4.3 matures the framework for enterprise mission-critical environments.
|
package/RELEASENOTES.md
CHANGED
|
@@ -1,4 +1,39 @@
|
|
|
1
|
-
# MindForge v5.
|
|
1
|
+
# MindForge v5.9.0 — Beast Mode Hardening (Nexus Unification)
|
|
2
|
+
## Top Summary
|
|
3
|
+
The v5.9.0 release elevates the MindForge Enterprise architecture to "Beast Mode" by unifying the tracing infrastructure into a single, high-fidelity asynchronous ART protocol and hardening the governance and arbitrage pillars with advanced cryptographic and resilience patterns.
|
|
4
|
+
|
|
5
|
+
## Highlights
|
|
6
|
+
- **Unified NexusTracer Singleton**: Migration of all tracing and reasoning capture to `bin/engine/nexus-tracer.js`. Standardized as a singleton with mandatory `async` methods to support ZTAI cryptographic signing.
|
|
7
|
+
- **Merkle-Style Audit Integrity**: Hardened SRE and ZTAI logs with Merkle-root cumulative hash chains, ensuring every audit entry is cryptographically linked to the entire session history.
|
|
8
|
+
- **MCA Circuit Breakers**: Stateful provider blacklisting in `CloudBroker` that automatically disables failing models for 10 minutes after 3 consecutive errors.
|
|
9
|
+
- **Intelligence Metrics Decay**: Historical performance data now favors recent trends via a 0.95 decay factor, ensuring routing adaptivity.
|
|
10
|
+
- **Async Test Suite**: 100% restoration of the core test suite (Nexus, SRE, RES) for the new asynchronous execution model.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# MindForge v5.8.0 — Sovereign Reason Enclaves (ZK-Audit)
|
|
15
|
+
## Top Summary
|
|
16
|
+
The v5.8.0 release implements the sixth pillar of the Hyper-Enterprise roadmap: Sovereign Reason Enclaves with Zero-Knowledge (ZK) Audit Trails. This enables agents to provide cryptographic proof of policy adherence for confidential reasoning without exposing proprietary content to global logs.
|
|
17
|
+
|
|
18
|
+
## Highlights
|
|
19
|
+
- **ZK-Proof Compliance Certificates**: Simulated zero-knowledge proofs (DID-signed) for SRE sessions.
|
|
20
|
+
- **Privacy-Preserving Auditing**: `NexusTracer` replaces raw thought traces with verifiable certificates for isolated tasks.
|
|
21
|
+
- **Enclave Verification**: New `verifyZKProof` utility for non-custodial audit integrity checks.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# MindForge v5.7.0 — Multi-Cloud Arbitrage (Affinity Routing)
|
|
26
|
+
## Top Summary
|
|
27
|
+
The v5.7.0 release implements the fifth pillar of the Hyper-Enterprise roadmap: Multi-Cloud Arbitrage with Task-to-Model Affinity Routing. Routing is now intelligence-first, mapping task taxonomies to providers with the highest historical success rates.
|
|
28
|
+
|
|
29
|
+
## Highlights
|
|
30
|
+
- **Task-to-Model Affinity Matrices**: Persistent tracking of success probability per model and task type (refactor, test, audit, etc.).
|
|
31
|
+
- **Intelligence-First Routing**: `CloudBroker` weights routing scoring by success probability (50% weight) alongside cost (30%) and latency (20%).
|
|
32
|
+
- **Feedback Loop Integration**: Automated updates to performance metrics via `WaveFeedbackLoop` completions.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
# MindForge v5.6.0 — Sentinel Execution
|
|
2
37
|
## Top Summary
|
|
3
38
|
The v5.4.0 release elevates the "Hyper-Enterprise" features to maximum robustness ("Beast Mode"), implementing critical safety systems, automated blast-radius protection for sensitive files, and advanced failure telemetry.
|
|
4
39
|
|
|
@@ -161,6 +161,8 @@
|
|
|
161
161
|
<button class="tab active" onclick="showPage('activity')">Activity</button>
|
|
162
162
|
<button class="tab" onclick="showPage('metrics')">Metrics</button>
|
|
163
163
|
<button class="tab" onclick="showPage('approvals')">Approvals</button>
|
|
164
|
+
<button class="tab" onclick="showPage('temporal')">Temporal</button>
|
|
165
|
+
<button class="tab" onclick="showPage('revops')">RevOps</button>
|
|
164
166
|
<button class="tab" onclick="showPage('memory')">Memory</button>
|
|
165
167
|
<button class="tab" onclick="showPage('team')">Team</button>
|
|
166
168
|
</nav>
|
|
@@ -213,6 +215,116 @@
|
|
|
213
215
|
</div>
|
|
214
216
|
</div>
|
|
215
217
|
|
|
218
|
+
<!-- PAGE: TEMPORAL -->
|
|
219
|
+
<div id="temporal" class="page">
|
|
220
|
+
<div class="card">
|
|
221
|
+
<div class="card-header">
|
|
222
|
+
<div class="card-title">Temporal Steering Timeline</div>
|
|
223
|
+
<div id="timeline-count" class="badge">0 Snapshots</div>
|
|
224
|
+
</div>
|
|
225
|
+
<div class="card-body">
|
|
226
|
+
<div style="margin-bottom: 24px;">
|
|
227
|
+
<input type="range" id="temporal-slider" style="width:100%; height:8px; accent-color:var(--accent);" min="0" max="0" step="1" oninput="onSliderChange(this.value)">
|
|
228
|
+
<div style="display:flex; justify-content:space-between; margin-top:8px; font-family:var(--font-mono); font-size:10px; color:var(--muted)">
|
|
229
|
+
<span id="slider-start">Past</span>
|
|
230
|
+
<span id="slider-current">Select Snapshot</span>
|
|
231
|
+
<span id="slider-end">Present</span>
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
|
|
235
|
+
<div class="grid-2">
|
|
236
|
+
<div class="card" style="height:400px; border-style:dashed;">
|
|
237
|
+
<div class="card-header"><div class="card-title">Reasoning Snapshot Inspector</div></div>
|
|
238
|
+
<div id="snapshot-viewer" class="card-body" style="font-family:var(--font-mono); font-size:11px; overflow-y:auto; background:#000; color:#eee;">
|
|
239
|
+
Select a point in space-time to inspect agentic state...
|
|
240
|
+
</div>
|
|
241
|
+
</div>
|
|
242
|
+
<div class="card" style="height:400px;">
|
|
243
|
+
<div class="card-header"><div class="card-title">Hindsight Steering Vector</div></div>
|
|
244
|
+
<div class="card-body">
|
|
245
|
+
<p style="color:var(--muted); margin-bottom:16px;">Injecting a steering vector will rollback the system state to the selected snapshot and re-trigger the optimization loop with the new constraints.</p>
|
|
246
|
+
<div style="margin-bottom:20px;">
|
|
247
|
+
<label style="display:block; font-size:11px; margin-bottom:8px; color:var(--muted); text-transform:uppercase;">Steering Instruction:</label>
|
|
248
|
+
<textarea id="steering-input" class="confirm-input" style="height:120px; resize:none;" placeholder="e.g. 'Rewind to step 2 and ignore the legacy auth module...'"></textarea>
|
|
249
|
+
</div>
|
|
250
|
+
<button id="inject-btn" class="btn btn-approve" style="width:100%; justify-content:center;" onclick="injectHindsight()" disabled>Rewind & Inject Fix</button>
|
|
251
|
+
</div>
|
|
252
|
+
</div>
|
|
253
|
+
</div>
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
</div>
|
|
257
|
+
|
|
258
|
+
<!-- PAGE: REVOPS -->
|
|
259
|
+
<div id="revops" class="page">
|
|
260
|
+
<div class="grid-4">
|
|
261
|
+
<div class="card">
|
|
262
|
+
<div class="card-body">
|
|
263
|
+
<div class="stat-label">Agentic ROI</div>
|
|
264
|
+
<div id="rev-roi" class="stat-value">0%</div>
|
|
265
|
+
</div>
|
|
266
|
+
</div>
|
|
267
|
+
<div class="card">
|
|
268
|
+
<div class="card-body">
|
|
269
|
+
<div class="stat-label">Net Value Synthesis</div>
|
|
270
|
+
<div id="rev-net" class="stat-value">$0.00</div>
|
|
271
|
+
</div>
|
|
272
|
+
</div>
|
|
273
|
+
<div class="card">
|
|
274
|
+
<div class="card-body">
|
|
275
|
+
<div class="stat-label">Project Velocity</div>
|
|
276
|
+
<div id="rev-velocity" class="stat-value">0 <span class="stat-unit">tasks/hr</span></div>
|
|
277
|
+
<div id="rev-eta" style="font-size:10px; margin-top:4px; color:var(--muted)">ETA: N/A</div>
|
|
278
|
+
</div>
|
|
279
|
+
</div>
|
|
280
|
+
<div class="card">
|
|
281
|
+
<div class="card-body">
|
|
282
|
+
<div class="stat-label">Security Health</div>
|
|
283
|
+
<div id="rev-health" class="stat-value">100</div>
|
|
284
|
+
<div id="rev-health-status" class="badge" style="margin-top:4px">STATUS: EXCELLENT</div>
|
|
285
|
+
</div>
|
|
286
|
+
</div>
|
|
287
|
+
</div>
|
|
288
|
+
|
|
289
|
+
<div class="grid-2">
|
|
290
|
+
<div class="card">
|
|
291
|
+
<div class="card-header"><div class="card-title">Financial Flow (ROI Mapping)</div></div>
|
|
292
|
+
<div class="card-body">
|
|
293
|
+
<div id="roi-breakdown" style="font-family:var(--font-mono); font-size:12px;">
|
|
294
|
+
<div style="display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--border)">
|
|
295
|
+
<span>Developer Hours Saved:</span> <span id="roi-hours" style="color:var(--green)">0.00h</span>
|
|
296
|
+
</div>
|
|
297
|
+
<div style="display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--border)">
|
|
298
|
+
<span>Gross Value Produced:</span> <span id="roi-gross" style="color:var(--green)">$0.00</span>
|
|
299
|
+
</div>
|
|
300
|
+
<div style="display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--border)">
|
|
301
|
+
<span>Total Token Burn:</span> <span id="roi-burn" style="color:var(--red)">$0.00</span>
|
|
302
|
+
</div>
|
|
303
|
+
<div style="display:flex; justify-content:space-between; padding:12px 0; font-weight:700; font-size:14px;">
|
|
304
|
+
<span>NET AGENTIC ROI:</span> <span id="roi-total-pct" style="color:var(--accent)">0%</span>
|
|
305
|
+
</div>
|
|
306
|
+
</div>
|
|
307
|
+
</div>
|
|
308
|
+
</div>
|
|
309
|
+
<div class="card">
|
|
310
|
+
<div class="card-header"><div class="card-title">Governance Debt Analysis</div></div>
|
|
311
|
+
<div class="card-body">
|
|
312
|
+
<div id="debt-breakdown" style="font-family:var(--font-mono); font-size:12px;">
|
|
313
|
+
<div style="display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--border)">
|
|
314
|
+
<span>Critical Security Findings:</span> <span id="debt-critical">0</span>
|
|
315
|
+
</div>
|
|
316
|
+
<div style="display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--border)">
|
|
317
|
+
<span>Tier 3 Policy Bypasses:</span> <span id="debt-tier3">0</span>
|
|
318
|
+
</div>
|
|
319
|
+
<div style="display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--border)">
|
|
320
|
+
<span>Active Risk Level:</span> <span id="debt-risk" class="badge">MINIMAL</span>
|
|
321
|
+
</div>
|
|
322
|
+
</div>
|
|
323
|
+
</div>
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
326
|
+
</div>
|
|
327
|
+
|
|
216
328
|
<!-- PAGE: MEMORY -->
|
|
217
329
|
<div id="memory" class="page">
|
|
218
330
|
<div class="grid-2">
|
|
@@ -321,9 +433,33 @@
|
|
|
321
433
|
refreshApprovals();
|
|
322
434
|
refreshMemory();
|
|
323
435
|
refreshTeam();
|
|
436
|
+
refreshRevOps();
|
|
437
|
+
if (document.getElementById('temporal').classList.contains('active')) {
|
|
438
|
+
refreshTemporal();
|
|
439
|
+
}
|
|
324
440
|
} catch(e) { console.error('Refresh fail', e); }
|
|
325
441
|
}
|
|
326
442
|
|
|
443
|
+
async function refreshRevOps() {
|
|
444
|
+
try {
|
|
445
|
+
const res = await fetch('/api/revops/overview');
|
|
446
|
+
const data = await res.json();
|
|
447
|
+
if (data.success) {
|
|
448
|
+
updateRevOpsUI(data);
|
|
449
|
+
}
|
|
450
|
+
} catch(e) {}
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
let temporalHistory = [];
|
|
454
|
+
async function refreshTemporal() {
|
|
455
|
+
try {
|
|
456
|
+
const res = await fetch('/api/temporal/history');
|
|
457
|
+
const data = await res.json();
|
|
458
|
+
temporalHistory = data;
|
|
459
|
+
renderTemporalTimeline();
|
|
460
|
+
} catch(e) {}
|
|
461
|
+
}
|
|
462
|
+
|
|
327
463
|
async function refreshApprovals() {
|
|
328
464
|
try {
|
|
329
465
|
const res = await fetch('/api/approvals');
|
|
@@ -503,8 +639,112 @@
|
|
|
503
639
|
ctx.fill();
|
|
504
640
|
}
|
|
505
641
|
|
|
642
|
+
// ── Temporal Steering Logic ────────────────────────────────────────────────
|
|
643
|
+
function renderTemporalTimeline() {
|
|
644
|
+
const slider = document.getElementById('temporal-slider');
|
|
645
|
+
const count = document.getElementById('timeline-count');
|
|
646
|
+
|
|
647
|
+
if (temporalHistory.length === 0) {
|
|
648
|
+
slider.max = 0;
|
|
649
|
+
count.textContent = '0 Snapshots';
|
|
650
|
+
return;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
slider.max = temporalHistory.length - 1;
|
|
654
|
+
count.textContent = `${temporalHistory.length} Snapshots`;
|
|
655
|
+
|
|
656
|
+
// Default to latest if not touching
|
|
657
|
+
if (slider.value == 0 && temporalHistory.length > 0) {
|
|
658
|
+
onSliderChange(temporalHistory.length - 1);
|
|
659
|
+
slider.value = temporalHistory.length - 1;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
let selectedSnapshot = null;
|
|
664
|
+
async function onSliderChange(index) {
|
|
665
|
+
const snap = temporalHistory[temporalHistory.length - 1 - index]; // reversed for chronological range
|
|
666
|
+
if (!snap) return;
|
|
667
|
+
|
|
668
|
+
selectedSnapshot = snap;
|
|
669
|
+
document.getElementById('slider-current').textContent = `Point: ${snap.id.slice(0, 8)} (${new Date(snap.timestamp).toLocaleTimeString()})`;
|
|
670
|
+
document.getElementById('inject-btn').disabled = false;
|
|
671
|
+
|
|
672
|
+
// Fetch sample audit file for this snapshot
|
|
673
|
+
try {
|
|
674
|
+
const res = await fetch(`/api/temporal/snapshot/${snap.id}/AUDIT.jsonl`);
|
|
675
|
+
const content = await res.text();
|
|
676
|
+
document.getElementById('snapshot-viewer').textContent = content || 'No audit log available for this point.';
|
|
677
|
+
} catch(e) {
|
|
678
|
+
document.getElementById('snapshot-viewer').textContent = 'Failed to load snapshot details.';
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
async function injectHindsight() {
|
|
683
|
+
if (!selectedSnapshot) return;
|
|
684
|
+
const instruction = document.getElementById('steering-input').value;
|
|
685
|
+
if (!instruction) {
|
|
686
|
+
alert('Please provide a steering instruction for the hindsight injection.');
|
|
687
|
+
return;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
const btn = document.getElementById('inject-btn');
|
|
691
|
+
btn.disabled = true;
|
|
692
|
+
btn.textContent = 'Injecting Steering Vector...';
|
|
693
|
+
|
|
694
|
+
try {
|
|
695
|
+
const res = await fetch('/api/temporal/inject', {
|
|
696
|
+
method: 'POST',
|
|
697
|
+
headers: { 'Content-Type': 'application/json' },
|
|
698
|
+
body: JSON.stringify({
|
|
699
|
+
auditId: selectedSnapshot.id,
|
|
700
|
+
fixDescription: instruction
|
|
701
|
+
})
|
|
702
|
+
});
|
|
703
|
+
const result = await res.json();
|
|
704
|
+
if (result.success) {
|
|
705
|
+
alert('Hindsight Injection Successful. Agent state rolled back and awaiting re-optimization.');
|
|
706
|
+
showPage('activity');
|
|
707
|
+
} else {
|
|
708
|
+
alert('Injection failed: ' + result.error);
|
|
709
|
+
}
|
|
710
|
+
} catch(e) {
|
|
711
|
+
alert('Failed to connect to temporal engine.');
|
|
712
|
+
} finally {
|
|
713
|
+
btn.disabled = false;
|
|
714
|
+
btn.textContent = 'Rewind & Inject Fix';
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
// ── RevOps Logic ─────────────────────────────────────────────────────────
|
|
719
|
+
function updateRevOpsUI(data) {
|
|
720
|
+
const { roi, velocity, debt } = data;
|
|
721
|
+
|
|
722
|
+
document.getElementById('rev-roi').textContent = `${roi.roi_percentage}%`;
|
|
723
|
+
document.getElementById('rev-net').textContent = `$${roi.net_value}`;
|
|
724
|
+
document.getElementById('rev-velocity').innerHTML = `${velocity.avg_seconds_per_task} <span class="stat-unit">sec/task</span>`;
|
|
725
|
+
document.getElementById('rev-eta').textContent = `ETA: ${velocity.eta}`;
|
|
726
|
+
document.getElementById('rev-health').textContent = debt.security_health_score;
|
|
727
|
+
|
|
728
|
+
const healthStatus = document.getElementById('rev-health-status');
|
|
729
|
+
healthStatus.textContent = `STATUS: ${debt.governance_status.toUpperCase()}`;
|
|
730
|
+
healthStatus.style.background = debt.security_health_score > 80 ? 'rgba(63, 185, 80, 0.15)' : 'rgba(248, 81, 73, 0.15)';
|
|
731
|
+
healthStatus.style.color = debt.security_health_score > 80 ? 'var(--green)' : 'var(--red)';
|
|
732
|
+
|
|
733
|
+
document.getElementById('roi-hours').textContent = `${roi.hours_saved}h`;
|
|
734
|
+
document.getElementById('roi-gross').textContent = `$${roi.gross_value}`;
|
|
735
|
+
document.getElementById('roi-burn').textContent = `$${roi.token_cost}`;
|
|
736
|
+
document.getElementById('roi-total-pct').textContent = `${roi.roi_percentage}%`;
|
|
737
|
+
|
|
738
|
+
document.getElementById('debt-critical').textContent = debt.critical_findings;
|
|
739
|
+
document.getElementById('debt-tier3').textContent = debt.tier3_approvals;
|
|
740
|
+
const riskBadge = document.getElementById('debt-risk');
|
|
741
|
+
riskBadge.textContent = debt.debt_level.toUpperCase();
|
|
742
|
+
riskBadge.className = `badge ${debt.debt_level === 'Minimal' ? 'badge-live' : ''}`;
|
|
743
|
+
if (debt.debt_level !== 'Minimal') riskBadge.style.color = 'var(--yellow)';
|
|
744
|
+
}
|
|
745
|
+
|
|
506
746
|
window.onresize = drawCharts;
|
|
507
|
-
setInterval(refreshData,
|
|
747
|
+
setInterval(refreshData, 10000); // More frequent refresh for live dashboard
|
|
508
748
|
showPage('activity');
|
|
509
749
|
</script>
|
|
510
750
|
</body>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MindForge v5.10.0 — AgRevOps API
|
|
3
|
+
* Exposes ROI, Velocity, and Debt monitoring to the dashboard.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
const express = require('express');
|
|
8
|
+
const router = express.Router();
|
|
9
|
+
const roiEngine = require('../revops/roi-engine');
|
|
10
|
+
const velocityForecaster = require('../revops/velocity-forecaster');
|
|
11
|
+
const debtMonitor = require('../revops/debt-monitor');
|
|
12
|
+
const metricsAggregator = require('./metrics-aggregator');
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* GET /api/revops/overview
|
|
16
|
+
* Returns a consolidated view of ROI, Velocity, and Governance Debt.
|
|
17
|
+
*/
|
|
18
|
+
router.get('/overview', (req, res) => {
|
|
19
|
+
try {
|
|
20
|
+
const metrics = metricsAggregator.getMetrics();
|
|
21
|
+
const status = metricsAggregator.getStatus();
|
|
22
|
+
|
|
23
|
+
// Enrich with current status for forecaster
|
|
24
|
+
const fullMetrics = {
|
|
25
|
+
...metrics,
|
|
26
|
+
tasks_total: status.tasks_total || 0,
|
|
27
|
+
tasks_completed: status.tasks_completed || 0,
|
|
28
|
+
auditEntries: metricsAggregator.getAuditEntries(500) // need enough history for velocity
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const roi = roiEngine.calculate(fullMetrics);
|
|
32
|
+
const velocity = velocityForecaster.predict(fullMetrics);
|
|
33
|
+
const debt = debtMonitor.monitor(fullMetrics);
|
|
34
|
+
|
|
35
|
+
res.json({
|
|
36
|
+
success: true,
|
|
37
|
+
roi,
|
|
38
|
+
velocity,
|
|
39
|
+
debt,
|
|
40
|
+
timestamp: new Date().toISOString()
|
|
41
|
+
});
|
|
42
|
+
} catch (err) {
|
|
43
|
+
res.status(500).json({ success: false, error: 'AgRevOps metrics retrieval failed', detail: err.message });
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
module.exports = router;
|