mindforge-cc 6.1.0-alpha → 6.2.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/bin/lib/commands.cjs +4 -4
- package/.agent/bin/lib/state.cjs +1 -1
- package/.agent/bin/lib/verify.cjs +7 -7
- package/.agent/bin/mindforge-tools.cjs +1 -1
- package/.agent/hooks/mindforge-context-monitor.js +1 -1
- package/.agent/hooks/mindforge-session-init_extended.js +4 -4
- package/.agent/hooks/mindforge-workflow-guard.js +1 -1
- package/.agent/mindforge/debug.md +3 -0
- package/.agent/mindforge/execute-phase.md +6 -0
- package/.agent/mindforge/learning.md +20 -0
- package/.agent/mindforge/plan-phase.md +9 -7
- package/.agent/mindforge/record-learning.md +22 -0
- package/.agent/mindforge/retrospective.md +1 -0
- package/.agent/mindforge/ship.md +7 -0
- package/.claude/CLAUDE.md +16 -7
- package/.claude/commands/mindforge/approve.md +16 -24
- package/.claude/commands/mindforge/audit.md +28 -28
- package/.claude/commands/mindforge/auto.md +20 -27
- package/.claude/commands/mindforge/benchmark.md +31 -24
- package/.claude/commands/mindforge/browse.md +24 -22
- package/.claude/commands/mindforge/complete-milestone.md +16 -26
- package/.claude/commands/mindforge/costs.md +10 -23
- package/.claude/commands/mindforge/cross-review.md +15 -25
- package/.claude/commands/mindforge/dashboard.md +99 -32
- package/.claude/commands/mindforge/debug.md +130 -31
- package/.claude/commands/mindforge/discuss-phase.md +139 -33
- package/.claude/commands/mindforge/execute-phase.md +197 -34
- package/.claude/commands/mindforge/health.md +25 -25
- package/.claude/commands/mindforge/help.md +27 -23
- package/.claude/commands/mindforge/init-org.md +132 -34
- package/.claude/commands/mindforge/init-project.md +167 -37
- package/.claude/commands/mindforge/install-skill.md +24 -28
- package/.claude/commands/mindforge/learn.md +144 -33
- package/.claude/commands/mindforge/learning.md +20 -0
- package/.claude/commands/mindforge/map-codebase.md +299 -33
- package/.claude/commands/mindforge/marketplace.md +121 -30
- package/.claude/commands/mindforge/metrics.md +20 -27
- package/.claude/commands/mindforge/migrate.md +41 -30
- package/.claude/commands/mindforge/milestone.md +11 -30
- package/.claude/commands/mindforge/new-runtime.md +20 -26
- package/.claude/commands/mindforge/next.md +106 -31
- package/.claude/commands/mindforge/plan-phase.md +128 -31
- package/.claude/commands/mindforge/plugins.md +38 -28
- package/.claude/commands/mindforge/pr-review.md +42 -29
- package/.claude/commands/mindforge/profile-team.md +21 -24
- package/.claude/commands/mindforge/publish-skill.md +18 -25
- package/.claude/commands/mindforge/qa.md +14 -25
- package/.claude/commands/mindforge/quick.md +136 -32
- package/.claude/commands/mindforge/record-learning.md +22 -0
- package/.claude/commands/mindforge/release.md +9 -24
- package/.claude/commands/mindforge/remember.md +24 -23
- package/.claude/commands/mindforge/research.md +11 -24
- package/.claude/commands/mindforge/retrospective.md +25 -26
- package/.claude/commands/mindforge/review.md +158 -34
- package/.claude/commands/mindforge/security-scan.md +239 -31
- package/.claude/commands/mindforge/ship.md +108 -31
- package/.claude/commands/mindforge/skills.md +142 -33
- package/.claude/commands/mindforge/status.md +110 -27
- package/.claude/commands/mindforge/steer.md +11 -22
- package/.claude/commands/mindforge/sync-confluence.md +10 -25
- package/.claude/commands/mindforge/sync-jira.md +11 -27
- package/.claude/commands/mindforge/tokens.md +7 -22
- package/.claude/commands/mindforge/update.md +43 -30
- package/.claude/commands/mindforge/verify-phase.md +63 -27
- package/.claude/commands/mindforge/workspace.md +27 -26
- package/.mindforge/engine/shard-controller.md +1 -1
- package/CHANGELOG.md +34 -15
- package/README.md +93 -98
- package/RELEASENOTES.md +6 -6
- package/bin/autonomous/auto-runner.js +1 -1
- package/bin/autonomous/mesh-self-healer.js +2 -2
- package/bin/change-classifier.js +1 -1
- package/bin/dashboard/server.js +4 -4
- package/bin/dashboard/sse-bridge.js +1 -1
- package/bin/engine/learning-manager.js +181 -0
- package/bin/engine/sre-manager.js +1 -1
- package/bin/engine/temporal-cli.js +1 -1
- package/bin/engine/temporal-hindsight.js +4 -4
- package/bin/governance/approve.js +2 -2
- package/bin/governance/policy-engine.js +1 -1
- package/bin/governance/ztai-manager.js +1 -1
- package/bin/hindsight-injector.js +1 -1
- package/bin/installer-core.js +8 -0
- package/bin/memory/federated-sync.js +7 -7
- package/bin/mindforge-cli.js +9 -0
- package/bin/models/cloud-broker.js +1 -1
- package/bin/review/ads-engine.js +6 -6
- package/bin/skill-registry.js +4 -4
- package/bin/skills-builder/marketplace-client.js +2 -2
- package/bin/skills-builder/pattern-detector.js +2 -2
- package/bin/skills-builder/skill-generator.js +1 -1
- package/bin/skills-builder/skill-registrar.js +4 -4
- package/bin/skills-builder/skill-scorer.js +1 -1
- package/bin/skills-builder/source-loader.js +2 -2
- package/bin/wizard/theme.js +1 -1
- package/docs/CAPABILITIES-MANIFEST.md +2 -2
- package/docs/MIND-FORGE-REFERENCE-V6.md +3 -3
- package/docs/Templates/Project/AGENTS_LEARNING.md +88 -0
- package/docs/architecture/V4-SWARM-MESH.md +1 -1
- package/docs/architecture/V5-ENTERPRISE.md +1 -1
- package/docs/ci-cd.md +1 -1
- package/docs/commands-reference.md +106 -48
- package/docs/registry/COMMANDS.md +1 -1
- package/docs/registry/PERSONAS.md +1 -1
- package/docs/registry/README.md +1 -1
- package/docs/registry/SKILLS.md +1 -1
- package/docs/security/ZTAI-OVERVIEW.md +1 -1
- package/docs/user-guide.md +2 -2
- package/docs/workflow-atlas.md +1 -1
- package/package.json +1 -1
|
@@ -547,8 +547,8 @@ function cmdProgressRender(cwd, format, raw) {
|
|
|
547
547
|
const bar = '\u2588'.repeat(filled) + '\u2591'.repeat(barWidth - filled);
|
|
548
548
|
let out = `# ${milestone.version} ${milestone.name}\n\n`;
|
|
549
549
|
out += `**Progress:** [${bar}] ${totalSummaries}/${totalPlans} plans (${percent}%)\n\n`;
|
|
550
|
-
out +=
|
|
551
|
-
out +=
|
|
550
|
+
out += '| Phase | Name | Plans | Status |\n';
|
|
551
|
+
out += '|-------|------|-------|--------|\n';
|
|
552
552
|
for (const p of phases) {
|
|
553
553
|
out += `| ${p.number} | ${p.name} | ${p.summaries}/${p.plans} | ${p.status} |\n`;
|
|
554
554
|
}
|
|
@@ -923,8 +923,8 @@ function cmdStats(cwd, format, raw) {
|
|
|
923
923
|
out += `**Requirements:** ${requirementsComplete}/${requirementsTotal} complete\n`;
|
|
924
924
|
}
|
|
925
925
|
out += '\n';
|
|
926
|
-
out +=
|
|
927
|
-
out +=
|
|
926
|
+
out += '| Phase | Name | Plans | Completed | Status |\n';
|
|
927
|
+
out += '|-------|------|-------|-----------|--------|\n';
|
|
928
928
|
for (const p of phases) {
|
|
929
929
|
out += `| ${p.number} | ${p.name} | ${p.plans} | ${p.summaries} | ${p.status} |\n`;
|
|
930
930
|
}
|
package/.agent/bin/lib/state.cjs
CHANGED
|
@@ -723,7 +723,7 @@ function stripFrontmatter(content) {
|
|
|
723
723
|
// Handles CRLF line endings and multiple stacked blocks (corruption recovery).
|
|
724
724
|
// Greedy: keeps stripping ---...--- blocks separated by optional whitespace.
|
|
725
725
|
let result = content;
|
|
726
|
-
|
|
726
|
+
|
|
727
727
|
while (true) {
|
|
728
728
|
const stripped = result.replace(/^\s*---\r?\n[\s\S]*?\r?\n---\s*/, '');
|
|
729
729
|
if (stripped === result) break;
|
|
@@ -778,14 +778,14 @@ function cmdValidateHealth(cwd, options, raw) {
|
|
|
778
778
|
}
|
|
779
779
|
// Generate minimal STATE.md from ROADMAP.md structure
|
|
780
780
|
const milestone = getMilestoneInfo(cwd);
|
|
781
|
-
let stateContent =
|
|
782
|
-
stateContent +=
|
|
783
|
-
stateContent +=
|
|
784
|
-
stateContent +=
|
|
781
|
+
let stateContent = '# Session State\n\n';
|
|
782
|
+
stateContent += '## Project Reference\n\n';
|
|
783
|
+
stateContent += 'See: .planning/PROJECT.md\n\n';
|
|
784
|
+
stateContent += '## Position\n\n';
|
|
785
785
|
stateContent += `**Milestone:** ${milestone.version} ${milestone.name}\n`;
|
|
786
|
-
stateContent +=
|
|
787
|
-
stateContent +=
|
|
788
|
-
stateContent +=
|
|
786
|
+
stateContent += '**Current phase:** (determining...)\n';
|
|
787
|
+
stateContent += '**Status:** Resuming\n\n';
|
|
788
|
+
stateContent += '## Session Log\n\n';
|
|
789
789
|
stateContent += `- ${new Date().toISOString().split('T')[0]}: STATE.md regenerated by /mindforge-health --repair\n`;
|
|
790
790
|
writeStateMd(statePath, stateContent, cwd);
|
|
791
791
|
repairActions.push({ action: repair, success: true, path: 'STATE.md' });
|
|
@@ -143,7 +143,7 @@ process.stdin.on('end', () => {
|
|
|
143
143
|
|
|
144
144
|
const output = {
|
|
145
145
|
hookSpecificOutput: {
|
|
146
|
-
hookEventName: process.env.GEMINI_API_KEY ?
|
|
146
|
+
hookEventName: process.env.GEMINI_API_KEY ? 'AfterTool' : 'PostToolUse',
|
|
147
147
|
additionalContext: message
|
|
148
148
|
}
|
|
149
149
|
};
|
|
@@ -16,16 +16,16 @@ function run() {
|
|
|
16
16
|
|
|
17
17
|
// Check for MindForge registry for additional info if needed
|
|
18
18
|
const registryPath = path.join(projectRoot, 'MINDFORGE.md');
|
|
19
|
-
let registryWarning =
|
|
19
|
+
let registryWarning = '';
|
|
20
20
|
if (!fs.existsSync(registryPath)) {
|
|
21
|
-
registryWarning =
|
|
21
|
+
registryWarning = '\n\n[WARNING]: MINDFORGE.md Parameter Registry not found. Architectural integrity may be degraded.';
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
const sessionContext =
|
|
24
|
+
const sessionContext = '<EXTREMELY_IMPORTANT>\nYou have MindForge Swarm Intelligence.\n\n**Below is the full content of your \'mindforge-neural-orchestrator\' skill - your introduction to using skills. For all other skills, use the \'Skill\' tool:**\n\n' + skillContent + registryWarning + '\n</EXTREMELY_IMPORTANT>';
|
|
25
25
|
|
|
26
26
|
const output = {
|
|
27
27
|
hookSpecificOutput: {
|
|
28
|
-
hookEventName:
|
|
28
|
+
hookEventName: 'SessionStart',
|
|
29
29
|
additionalContext: sessionContext
|
|
30
30
|
},
|
|
31
31
|
// Fallback for other platforms
|
|
@@ -77,7 +77,7 @@ process.stdin.on('end', () => {
|
|
|
77
77
|
// not in a subagent context. Inject advisory warning.
|
|
78
78
|
const output = {
|
|
79
79
|
hookSpecificOutput: {
|
|
80
|
-
hookEventName:
|
|
80
|
+
hookEventName: 'PreToolUse',
|
|
81
81
|
additionalContext: `⚠️ WORKFLOW ADVISORY: You're editing ${path.basename(filePath)} directly without a MindForge command. ` +
|
|
82
82
|
'This edit will not be tracked in STATE.md or produce a SUMMARY.md. ' +
|
|
83
83
|
'Consider using /mindforge:fast for trivial fixes or /mindforge:quick for larger changes ' +
|
|
@@ -12,6 +12,9 @@ Systematic debugging using the Debug Specialist persona with full RCA protocol.
|
|
|
12
12
|
Load `.mindforge/personas/debug-specialist.md` immediately.
|
|
13
13
|
This command runs entirely in that persona for its full duration.
|
|
14
14
|
|
|
15
|
+
## Step 0 — Initial Intelligence Check
|
|
16
|
+
Read `AGENTS_LEARNING.md` before intake. Check the "Mistakes Observed" and "Anti-Patterns" sections to see if this issue matches a known historical failure.
|
|
17
|
+
|
|
15
18
|
## Step 1 — Intake
|
|
16
19
|
|
|
17
20
|
Ask the user:
|
|
@@ -106,6 +106,7 @@ After all tasks in wave complete:
|
|
|
106
106
|
- Stop. Ask user how to proceed.
|
|
107
107
|
3. If tests pass:
|
|
108
108
|
- Report: "Wave [W] complete. All [X] tasks passed. Tests passing. ✅"
|
|
109
|
+
- Run `/mindforge:record-learning` if any architectural "Aha!" moments or significant anti-patterns were discovered during this wave.
|
|
109
110
|
- Write WAVE-REPORT update
|
|
110
111
|
|
|
111
112
|
## Step 4 — Phase-level verification
|
|
@@ -139,6 +140,11 @@ Run /mindforge:verify-phase [N] for human acceptance testing.
|
|
|
139
140
|
|
|
140
141
|
Update HANDOFF.json with completed phase info.
|
|
141
142
|
|
|
143
|
+
## Step 5.1 — Final Intelligence Sync
|
|
144
|
+
1. Read `AGENTS_LEARNING.md` one last time.
|
|
145
|
+
2. Run `/mindforge:record-learning` to capture the final phase-level learnings (Mistakes discovered during UAT, architectural refinements).
|
|
146
|
+
3. Commit `AGENTS_LEARNING.md` if updated.
|
|
147
|
+
|
|
142
148
|
Write final AUDIT entry:
|
|
143
149
|
```json
|
|
144
150
|
{
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Consult or initialize the project agentic learning memory - AGENTS_LEARNING.md
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /mindforge:learning [init]
|
|
6
|
+
|
|
7
|
+
Consult the project's persistent engineering memory to avoid past mistakes and follow established best practices.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
- `/mindforge:learning`: Displays the current learning status and path to the learning file.
|
|
12
|
+
- `/mindforge:learning init`: Initializes a new `AGENTS_LEARNING.md` in the project root if it doesn't already exist.
|
|
13
|
+
|
|
14
|
+
## Why use this?
|
|
15
|
+
Before starting any significant implementation or refactor, you MUST consult the learning memory. It contains project-specific "Anti-Patterns" to avoid and "Best Practices" that have been proven in this specific system.
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
1. Run `/mindforge:learning` to find where the learning file is.
|
|
19
|
+
2. Read the file to understand recent architectural shifts or discovered failure scenarios.
|
|
20
|
+
3. If the project is new, run `/mindforge:learning init` to scaffold the memory.
|
|
@@ -11,11 +11,12 @@ Read PROJECT.md, REQUIREMENTS.md, ARCHITECTURE.md, and STATE.md before proceedin
|
|
|
11
11
|
## Pre-read (before any questions or planning)
|
|
12
12
|
|
|
13
13
|
Read these files in order:
|
|
14
|
-
1.
|
|
15
|
-
2. `.planning/
|
|
16
|
-
3. `.planning/
|
|
17
|
-
4. `.planning/
|
|
18
|
-
5. `.planning/
|
|
14
|
+
1. `AGENTS_LEARNING.md` (MUST READ to avoid repeating past mistakes)
|
|
15
|
+
2. `.planning/PROJECT.md`
|
|
16
|
+
3. `.planning/REQUIREMENTS.md`
|
|
17
|
+
4. `.planning/ARCHITECTURE.md`
|
|
18
|
+
5. `.planning/STATE.md`
|
|
19
|
+
6. `.planning/phases/phase-[N]/CONTEXT.md` (if it exists)
|
|
19
20
|
|
|
20
21
|
### If CONTEXT.md exists for phase [N]:
|
|
21
22
|
This means `/mindforge:discuss-phase [N]` was already run.
|
|
@@ -62,8 +63,9 @@ Spawn a research subagent with this context only:
|
|
|
62
63
|
Instruct it to investigate:
|
|
63
64
|
1. Best available libraries for this phase's requirements (with version numbers)
|
|
64
65
|
2. Common pitfalls and anti-patterns for this tech domain
|
|
65
|
-
3.
|
|
66
|
-
4.
|
|
66
|
+
3. Project-specific anti-patterns from `AGENTS_LEARNING.md`
|
|
67
|
+
4. Relevant architectural patterns (with tradeoffs)
|
|
68
|
+
5. Any known security considerations specific to this domain
|
|
67
69
|
|
|
68
70
|
Write findings to `.planning/phases/phase-[N]/RESEARCH.md`.
|
|
69
71
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Append a new Learning Entry to the Evolution Log in AGENTS_LEARNING.md
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /mindforge:record-learning
|
|
6
|
+
|
|
7
|
+
Append a new Learning Entry to the `Evolution Log`. Recording learnings regularly is a MANDATORY practice to build project intelligence.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
`/mindforge:record-learning`
|
|
12
|
+
|
|
13
|
+
This command initiates a session-end recording. You should provide details on:
|
|
14
|
+
- **Context**: What task was being performed.
|
|
15
|
+
- **Mistake**: What went wrong.
|
|
16
|
+
- **Root Cause**: Why it happened.
|
|
17
|
+
- **Fix**: What was done.
|
|
18
|
+
- **Prevention Rule**: Rule to avoid this in the future.
|
|
19
|
+
- **Category**: (Best Practice, Anti-Pattern, Bug Fix, Architecture).
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
Run after a complex debugging session to capture the root cause and the specific engineering oversight to prevent it from happening again.
|
|
@@ -13,6 +13,7 @@ Facilitate a structured retrospective with objective metrics + qualitative insig
|
|
|
13
13
|
3. Write retrospective artifact in `.planning/phases/...` or `.planning/milestones/...`.
|
|
14
14
|
4. Create follow-up tasks/tickets for action items.
|
|
15
15
|
5. Update metrics with retrospective-completed event.
|
|
16
|
+
6. Run `/mindforge:record-learning` to sync any new architectural "Aha!" moments or significant anti-patterns discovered during this phase/milestone.
|
|
16
17
|
|
|
17
18
|
## Step 5 — Apply learnings to MINDFORGE.md
|
|
18
19
|
Ask explicitly:
|
package/.agent/mindforge/ship.md
CHANGED
|
@@ -49,6 +49,12 @@ npm audit --audit-level=high
|
|
|
49
49
|
|
|
50
50
|
If any gate fails: stop. Report the failures. Do not proceed to PR creation.
|
|
51
51
|
|
|
52
|
+
## Step 2.1 — Final Intelligence Audit
|
|
53
|
+
1. Read `AGENTS_LEARNING.md` for this project.
|
|
54
|
+
2. Verify if any new architectural patterns, anti-patterns, or mistakes from this phase were recorded.
|
|
55
|
+
3. If not: Run `/mindforge:record-learning` now to capture them before shipping.
|
|
56
|
+
4. Commit `AGENTS_LEARNING.md` if updated.
|
|
57
|
+
|
|
52
58
|
## Step 3 — Create PR description
|
|
53
59
|
Generate a complete PR description:
|
|
54
60
|
|
|
@@ -78,6 +84,7 @@ Generate a complete PR description:
|
|
|
78
84
|
|
|
79
85
|
### Checklist
|
|
80
86
|
- [x] CHANGELOG.md updated
|
|
87
|
+
- [x] AGENTS_LEARNING.md updated with phase-specific insights
|
|
81
88
|
- [x] All tests pass
|
|
82
89
|
- [x] No linter errors
|
|
83
90
|
- [x] UAT signed off
|
package/.claude/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,30 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Process pending approvals and emergency overrides
|
|
4
|
-
argument-hint: [approval-id] [--approve|--reject] [--reason "..."] [--emergency]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- list_dir
|
|
7
|
-
- view_file
|
|
8
|
-
- write_to_file
|
|
2
|
+
description: Process pending approvals and emergency overrides. Usage:
|
|
9
3
|
---
|
|
10
4
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
</objective>
|
|
5
|
+
Process pending approvals and emergency overrides. Usage:
|
|
6
|
+
`/mindforge:approve [approval-id] [--approve|--reject] [--reason "..."] [--emergency]`
|
|
14
7
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
## Listing approvals
|
|
9
|
+
Scan `.planning/approvals/` and show only files with `status: pending` unless
|
|
10
|
+
the user explicitly asks for historical records.
|
|
18
11
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
## Standard approval flow
|
|
13
|
+
1. Read the approval file
|
|
14
|
+
2. Confirm current identity from `git config user.email` or `$USER`
|
|
15
|
+
3. Validate approver eligibility from `INTEGRATIONS-CONFIG.md`
|
|
16
|
+
4. Record approval or rejection with timestamp and reason
|
|
23
17
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
5. **Emergency Override**: If `--emergency` is used, bypass standard checks if the identity matches the pre-defined emergency approver list.
|
|
30
|
-
</process>
|
|
18
|
+
## Emergency overrides
|
|
19
|
+
Emergency override requires the `--emergency` flag.
|
|
20
|
+
Read `EMERGENCY_APPROVERS` from `INTEGRATIONS-CONFIG.md` and deny the request if
|
|
21
|
+
the current identity is not listed. Document that git-config-based identity is
|
|
22
|
+
a convenience layer, not a high-assurance identity proof.
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Query the .planning/AUDIT.jsonl log by phase, event, date, or severity
|
|
4
|
-
argument-hint: [filters]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- run_command
|
|
7
|
-
- view_file
|
|
8
|
-
- list_dir
|
|
2
|
+
description: Query .planning/AUDIT.jsonl by phase, event, date, severity, integration, or
|
|
9
3
|
---
|
|
10
4
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
</objective>
|
|
5
|
+
Query `.planning/AUDIT.jsonl` by phase, event, date, severity, integration, or
|
|
6
|
+
agent. Usage: `/mindforge:audit [filters]`
|
|
14
7
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
## Supported options
|
|
9
|
+
- `--phase N`
|
|
10
|
+
- `--event NAME`
|
|
11
|
+
- `--agent NAME`
|
|
12
|
+
- `--severity LEVEL`
|
|
13
|
+
- `--date YYYY-MM-DD`
|
|
14
|
+
- `--summary`
|
|
15
|
+
- `--verify`
|
|
16
|
+
- `--export PATH`
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
Filters: --phase, --event, --agent, --severity, --date, --summary, --verify, --export
|
|
23
|
-
</context>
|
|
18
|
+
## Summary mode
|
|
19
|
+
Summarise counts by event, severity, integration, and phase.
|
|
20
|
+
Entries with `"phase": null` are reported as `project-level`, not dropped.
|
|
24
21
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
## Verify mode
|
|
23
|
+
Validate JSONL shape and chronological ordering.
|
|
24
|
+
Timestamp comparison may use string comparison because ISO-8601 UTC timestamps
|
|
25
|
+
with a `Z` suffix sort lexicographically.
|
|
26
|
+
|
|
27
|
+
## Archive rotation
|
|
28
|
+
If the active audit log exceeds 10,000 lines, rotate it into
|
|
29
|
+
`.planning/audit-archive/` before continuing heavy writes. Rotation must never
|
|
30
|
+
delete history; it archives then resets the active file.
|
|
31
|
+
|
|
32
|
+
## Export safety
|
|
33
|
+
Validate export paths stay inside the project directory. If a path traversal or
|
|
34
|
+
unsafe destination is requested, export into `.planning/` instead.
|
|
@@ -1,33 +1,26 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Start the MindForge Autonomous Execution Engine
|
|
4
|
-
argument-hint: [Phase N] [--resume] [--headless] [--dry-run]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- run_command
|
|
7
|
-
- list_dir
|
|
8
|
-
- view_file
|
|
9
|
-
- write_to_file
|
|
2
|
+
description: Starts the MindForge Autonomous Execution Engine for the
|
|
10
3
|
---
|
|
11
4
|
|
|
12
|
-
|
|
13
|
-
Execute a planned phase entirely unattended, coordinating wave fulfillment, self-repair of minor failures, and compliance gating while maintaining a persistent state checkpoint.
|
|
14
|
-
</objective>
|
|
5
|
+
# /mindforge:auto [Phase N]
|
|
15
6
|
|
|
16
|
-
|
|
17
|
-
.
|
|
18
|
-
|
|
7
|
+
**Purpose**: Starts the MindForge Autonomous Execution Engine for the
|
|
8
|
+
specified phase. The agent will execute all waves, handle repairs, and
|
|
9
|
+
perform compliance gates without requiring human confirmation.
|
|
19
10
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
11
|
+
## Usage
|
|
12
|
+
- `/mindforge:auto --phase 3` (Standard unattended mode)
|
|
13
|
+
- `/mindforge:auto --resume` (Resumes from last checkpoint)
|
|
14
|
+
- `/mindforge:auto --headless` (CI/CD optimized output)
|
|
15
|
+
- `/mindforge:auto --dry-run` (Show the wave DAG and plan without executing)
|
|
25
16
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
17
|
+
## Behavior
|
|
18
|
+
- **Zero-Interaction**: Auto-approves Tier 1/2 changes if gates pass.
|
|
19
|
+
- **Self-Repair**: Tries RETRY/DECOMPOSE before asking for help.
|
|
20
|
+
- **Checkpointing**: Constant state persistence in `HANDOFF.json`.
|
|
21
|
+
- **Governance**: ESCALATES on Tier 3 changes (Auth/Payment/PII).
|
|
22
|
+
|
|
23
|
+
## Environment Variables
|
|
24
|
+
- `AUTO_MODE_TIMEOUT_MINUTES`: Default 120.
|
|
25
|
+
- `AUTO_PUSH_ON_WAVE_COMPLETE`: Default false.
|
|
26
|
+
- `SLACK_WEBHOOK_URL`: Required for notifications.
|
|
@@ -1,30 +1,37 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Measure skill effectiveness and project metrics over time
|
|
4
|
-
argument-hint: [--skill skill-name] [--compare skill-a skill-b]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- view_file
|
|
7
|
-
- list_dir
|
|
2
|
+
description: Measure skill effectiveness over time.
|
|
8
3
|
---
|
|
9
4
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
</objective>
|
|
5
|
+
# MindForge — Benchmark Command
|
|
6
|
+
# Usage: /mindforge:benchmark [--skill skill-name] [--compare skill-a skill-b]
|
|
13
7
|
|
|
14
|
-
|
|
15
|
-
.claude/commands/mindforge/benchmark.md
|
|
16
|
-
</execution_context>
|
|
8
|
+
Measure skill effectiveness over time.
|
|
17
9
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
## Single skill benchmark
|
|
11
|
+
For a named skill, analyse AUDIT.jsonl and skill-usage.jsonl:
|
|
12
|
+
- How many times was the skill loaded this month?
|
|
13
|
+
- What is the verify pass rate for tasks where this skill was loaded?
|
|
14
|
+
- Are there anti-patterns less common after this skill is loaded?
|
|
15
|
+
- What is the average session quality score when this skill is active?
|
|
22
16
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
Report:
|
|
18
|
+
```
|
|
19
|
+
Skill Benchmark: security-review v1.0.0
|
|
20
|
+
────────────────────────────────────────
|
|
21
|
+
Usage (last 30 days): 47 task loads
|
|
22
|
+
Trigger distribution: text match 68%, file-path 22%, file-name 10%
|
|
23
|
+
Verify pass rate: 91% (vs. 84% baseline without this skill)
|
|
24
|
+
Security findings: 8 HIGH caught (0 CRITICAL missed in tasks using this skill)
|
|
25
|
+
Session quality lift: +6.2 points average when loaded
|
|
26
|
+
|
|
27
|
+
Assessment: HIGH VALUE — clear quality improvement signal
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Skill comparison
|
|
31
|
+
Compare two skills head-to-head:
|
|
32
|
+
- Load frequency
|
|
33
|
+
- Verify pass rate improvement
|
|
34
|
+
- Anti-pattern detection rate
|
|
35
|
+
- Context budget cost (token estimate)
|
|
36
|
+
|
|
37
|
+
Helps decide: should you keep both skills, or deprecate the lower-performer?
|
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Control the persistent MindForge browser daemon for visual verification
|
|
4
|
-
argument-hint: <url | action>
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- open_browser_url
|
|
7
|
-
- run_command
|
|
2
|
+
description: @mindforge browse <url | action>
|
|
8
3
|
---
|
|
9
4
|
|
|
10
|
-
|
|
11
|
-
Enable the agent to interact with web interfaces, maintain persistent sessions, and perform visual audits of UI changes using an automated browser daemon.
|
|
12
|
-
</objective>
|
|
5
|
+
# /mindforge:browse
|
|
13
6
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
</execution_context>
|
|
7
|
+
## Usage
|
|
8
|
+
`@mindforge browse <url | action>`
|
|
17
9
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
</context>
|
|
10
|
+
## Description
|
|
11
|
+
Controls the persistent MindForge browser daemon.
|
|
12
|
+
Maintains session state (cookies/localStorage) for the AI.
|
|
22
13
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
14
|
+
## Actions
|
|
15
|
+
| Action | Description |
|
|
16
|
+
|---|---|
|
|
17
|
+
| `--start` | Initialize browser daemon |
|
|
18
|
+
| `--stop` | Kill browser daemon |
|
|
19
|
+
| `--status` | Show daemon health and active sessions |
|
|
20
|
+
| `--session <name>` | Switch browser context |
|
|
21
|
+
| `--import-session <name> --from <browser>` | Import cookies from host browser (chrome, arc, etc) |
|
|
22
|
+
| `<url>` | Navigate the current page to URL |
|
|
23
|
+
| `click <selector>` | Trigger click event |
|
|
24
|
+
| `type <sel> <text>` | Fill input field |
|
|
25
|
+
| `screenshot` | Capture current viewport |
|
|
26
|
+
|
|
27
|
+
## Security
|
|
28
|
+
- Daemon binds to `127.0.0.1` only.
|
|
29
|
+
- Session files are gitignored.
|
|
30
|
+
- Use only for debugging and visual verification.
|
|
@@ -1,32 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Archive a completed milestone and prepare the next version
|
|
4
|
-
argument-hint: <name> <version>
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- list_dir
|
|
7
|
-
- view_file
|
|
8
|
-
- write_to_file
|
|
9
|
-
- run_command
|
|
2
|
+
description: Archive a completed milestone, generate a release report, and prepare the next
|
|
10
3
|
---
|
|
11
4
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</objective>
|
|
5
|
+
Archive a completed milestone, generate a release report, and prepare the next
|
|
6
|
+
milestone. Usage: `/mindforge:complete-milestone <name> <version>`
|
|
15
7
|
|
|
16
|
-
|
|
17
|
-
.
|
|
18
|
-
</execution_context>
|
|
8
|
+
## Step 1 — Validate milestone completion
|
|
9
|
+
Ensure every included phase is verified and has no pending blocking approvals.
|
|
19
10
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</context>
|
|
11
|
+
## Step 2 — Generate milestone report
|
|
12
|
+
Summarise shipped phases, notable changes, risks, approvals, and unresolved
|
|
13
|
+
follow-ups.
|
|
24
14
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
15
|
+
## Step 3 — Archive milestone artifacts
|
|
16
|
+
Archive only the phases included in the milestone, not the entire
|
|
17
|
+
`.planning/phases/` directory. Preserve history in the archive while keeping
|
|
18
|
+
active planning files available in place.
|
|
19
|
+
|
|
20
|
+
## Step 4 — Release metadata
|
|
21
|
+
Create the release tag, update `STATE.md` with milestone summary, and mark the
|
|
22
|
+
project ready for the next version.
|