mindforge-cc 6.2.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
|
@@ -1,30 +1,113 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Display a rich dashboard of the current project state
|
|
4
|
-
argument-hint: none
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- list_dir
|
|
7
|
-
- view_file
|
|
8
|
-
- run_command
|
|
2
|
+
description: Display a rich dashboard of the current project state.
|
|
9
3
|
---
|
|
10
4
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
5
|
+
# MindForge — Status Command
|
|
6
|
+
# Usage: /mindforge:status
|
|
7
|
+
|
|
8
|
+
Display a rich dashboard of the current project state.
|
|
9
|
+
Pull data from STATE.md, AUDIT.jsonl, REQUIREMENTS.md, and the phases directory.
|
|
10
|
+
|
|
11
|
+
## Dashboard sections
|
|
12
|
+
|
|
13
|
+
### Section 1 — Project header
|
|
14
|
+
```
|
|
15
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
16
|
+
⚡ MindForge Status — [Project Name]
|
|
17
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
18
|
+
Last updated : [STATE.md last updated timestamp]
|
|
19
|
+
Current phase: Phase [N] — [phase description]
|
|
20
|
+
Status : [status from STATE.md]
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Section 2 — Phase progress
|
|
24
|
+
```
|
|
25
|
+
Phase Progress
|
|
26
|
+
───────────────────────────────────────────────────────
|
|
27
|
+
Phase 1 [████████████████████] 100% — Complete ✅
|
|
28
|
+
Phase 2 [████████░░░░░░░░░░░░] 40% — In progress
|
|
29
|
+
Phase 3 [░░░░░░░░░░░░░░░░░░░░] 0% — Not started
|
|
30
|
+
Phase 4 [░░░░░░░░░░░░░░░░░░░░] 0% — Not started
|
|
31
|
+
```
|
|
32
|
+
Calculate percentage from: tasks with SUMMARY files / total tasks in phase.
|
|
33
|
+
Count ONLY SUMMARY files that contain `Status: Completed ✅` (or `Status` + `Completed`).
|
|
34
|
+
Do not count failed tasks as progress.
|
|
35
|
+
If VERIFICATION.md is missing for a phase: label it "In progress" not "0% verified".
|
|
36
|
+
|
|
37
|
+
### Section 3 — Requirements coverage
|
|
38
|
+
Read REQUIREMENTS.md and count:
|
|
39
|
+
- Total v1 requirements
|
|
40
|
+
- Requirements with a passing test (from VERIFICATION.md files)
|
|
41
|
+
- Requirements implemented but untested
|
|
42
|
+
- Requirements not yet started
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
Requirements (v1)
|
|
46
|
+
───────────────────────────────────────────────────────
|
|
47
|
+
Total : [N]
|
|
48
|
+
✅ Done + tested : [N]
|
|
49
|
+
⚠️ Done, no test : [N]
|
|
50
|
+
🔴 Not started : [N]
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Section 4 — Recent activity (from AUDIT.jsonl)
|
|
54
|
+
Read the last 10 entries from AUDIT.jsonl and display:
|
|
55
|
+
```
|
|
56
|
+
Recent Activity
|
|
57
|
+
───────────────────────────────────────────────────────
|
|
58
|
+
[timestamp] task_completed Plan 03: User API endpoints ✅
|
|
59
|
+
[timestamp] task_completed Plan 02: Product model ✅
|
|
60
|
+
[timestamp] task_started Plan 03: User API endpoints
|
|
61
|
+
[timestamp] task_completed Plan 01: User model ✅
|
|
62
|
+
[timestamp] context_compaction Phase 2, Plan 03 (72% context)
|
|
63
|
+
```
|
|
64
|
+
If AUDIT.jsonl is empty or missing, display:
|
|
65
|
+
```
|
|
66
|
+
Recent Activity
|
|
67
|
+
───────────────────────────────────────────────────────
|
|
68
|
+
No activity logged yet. Activity will appear here
|
|
69
|
+
after running /mindforge:execute-phase.
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Section 5 — Open issues
|
|
73
|
+
Check for:
|
|
74
|
+
- Any open SECURITY-REVIEW files with CRITICAL or HIGH findings
|
|
75
|
+
- Any BUGS.md files with open issues
|
|
76
|
+
- Any failed tasks in WAVE-REPORT files
|
|
77
|
+
- Any blockers in STATE.md
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
Open Issues
|
|
81
|
+
───────────────────────────────────────────────────────
|
|
82
|
+
🔴 CRITICAL: [if any — from SECURITY-REVIEW]
|
|
83
|
+
🟠 HIGH: [if any]
|
|
84
|
+
✅ No open issues
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Section 7 — Sovereign Intelligence
|
|
88
|
+
```
|
|
89
|
+
Sovereign Intelligence (v6.2.0-alpha)
|
|
90
|
+
───────────────────────────────────────────────────────
|
|
91
|
+
🛡️ PQAS Security : [ACTIVE | PASSIVE] (Dilithium-5)
|
|
92
|
+
🎯 Proactive Homing: [ENABLED | DISABLED]
|
|
93
|
+
🧠 Drift Recovery : [N] remediation events
|
|
94
|
+
🧬 Biometric Gate : [LOCKED | BYPASSED]
|
|
95
|
+
```
|
|
96
|
+
- PQAS Status: Check if `bin/governance/quantum-crypto.js` exists and if `PolicyEngine.js` has `highRiskBypass` enabled.
|
|
97
|
+
- Proactive Homing: Check if `bin/autonomous/intent-harvester.js` is active in `AutoRunner.js`.
|
|
98
|
+
|
|
99
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Data sources (in priority order)
|
|
103
|
+
1. STATE.md — authoritative for current status
|
|
104
|
+
2. AUDIT.jsonl — authoritative for history
|
|
105
|
+
3. REQUIREMENTS.md — authoritative for scope
|
|
106
|
+
4. VERIFICATION.md files — authoritative for test coverage
|
|
107
|
+
5. WAVE-REPORT files — authoritative for execution history
|
|
108
|
+
6. HANDOFF.json — authoritative for session state
|
|
109
|
+
|
|
110
|
+
## Performance notes
|
|
111
|
+
- For recent activity, read only the last 500 bytes of AUDIT.jsonl:
|
|
112
|
+
`tail -c 500 .planning/AUDIT.jsonl | [parse last complete JSON objects]`
|
|
113
|
+
- For requirement counts, count lines starting with `| FR-` instead of parsing the whole file.
|
|
@@ -1,28 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Inject mid-execution guidance into the running autonomous engine
|
|
4
|
-
argument-hint: "[instruction]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- write_to_file
|
|
7
|
-
- view_file
|
|
2
|
+
description: Injects mid-execution guidance into the running autonomous engine.
|
|
8
3
|
---
|
|
9
4
|
|
|
10
|
-
|
|
11
|
-
Provide a mechanism for human course-correction during long-running autonomous waves, allowing the user to redirect the agent's focus or update constraints without stopping the process.
|
|
12
|
-
</objective>
|
|
5
|
+
# /mindforge:steer "[instruction]"
|
|
13
6
|
|
|
14
|
-
|
|
15
|
-
.
|
|
16
|
-
</execution_context>
|
|
7
|
+
**Purpose**: Injects mid-execution guidance into the running autonomous engine.
|
|
8
|
+
Steering guidance is applied at the next task boundary to course-correct MindForge.
|
|
17
9
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
## Usage
|
|
11
|
+
- `/mindforge:steer "Use the new logger in all created files"`
|
|
12
|
+
- `/mindforge:steer --task 3-05 "This plan is too broad, focus on login only"`
|
|
13
|
+
- `/mindforge:steer --cancel` (Clears the steering queue)
|
|
22
14
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
3. **Validate**: Ensure steering does not violate core security or governance gates.
|
|
27
|
-
4. **Cancel**: Clear the steering queue if instructions are no longer relevant.
|
|
28
|
-
</process>
|
|
15
|
+
## Precedence
|
|
16
|
+
- Steering instructions take precedence over the original `PLAN-N-MM.md` actions.
|
|
17
|
+
- Steering cannot override core security constraints or governance gates.
|
|
@@ -1,30 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Publish approved planning artifacts to Confluence
|
|
4
|
-
argument-hint: [--architecture] [--phase N] [--milestone name]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- run_command
|
|
7
|
-
- view_file
|
|
8
|
-
- write_to_file
|
|
2
|
+
description: Publish approved planning artifacts to Confluence. Usage:
|
|
9
3
|
---
|
|
10
4
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
</objective>
|
|
5
|
+
Publish approved planning artifacts to Confluence. Usage:
|
|
6
|
+
`/mindforge:sync-confluence [--architecture] [--phase N] [--milestone name]`
|
|
14
7
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
## Behaviour
|
|
9
|
+
- verify Confluence availability through `connection-manager.md`
|
|
10
|
+
- publish idempotently by existing page title or page ID
|
|
11
|
+
- never publish secrets, raw approval notes, or raw audit logs
|
|
12
|
+
- log success, skip, or failure to AUDIT
|
|
18
13
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Exclusion: Secrets, raw logs, and PII are strictly filtered before publication.
|
|
22
|
-
</context>
|
|
23
|
-
|
|
24
|
-
<process>
|
|
25
|
-
1. **Assemble Content**: Gather target artifacts (ARCHITECTURE.md, Phase Plans, Milestone reports).
|
|
26
|
-
2. **Filter & Sanitize**: Remove all sensitive data (passwords, tokens, raw audit trails).
|
|
27
|
-
3. **Publish**: Update existing pages or create new ones in the specified Confluence space.
|
|
28
|
-
4. **Indempotency**: Match pages by title or project-wide ID to avoid duplication.
|
|
29
|
-
5. **Audit**: Log publication success or skipped files.
|
|
30
|
-
</process>
|
|
14
|
+
Publishing failures are non-fatal and create a pending manual action in
|
|
15
|
+
`STATE.md`.
|
|
@@ -1,32 +1,16 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Synchronize MindForge phase and plan metadata to Jira
|
|
4
|
-
argument-hint: [--phase N] [--plan M]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- run_command
|
|
7
|
-
- view_file
|
|
8
|
-
- write_to_file
|
|
2
|
+
description: Synchronise MindForge phase and plan metadata to Jira. Usage:
|
|
9
3
|
---
|
|
10
4
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
</objective>
|
|
5
|
+
Synchronise MindForge phase and plan metadata to Jira. Usage:
|
|
6
|
+
`/mindforge:sync-jira [--phase N] [--plan M]`
|
|
14
7
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
## Behaviour
|
|
9
|
+
- verify Jira availability through `connection-manager.md`
|
|
10
|
+
- create or update Epic and Story mappings in `.planning/jira-sync.json`
|
|
11
|
+
- use dynamic transition lookup, never hardcoded IDs
|
|
12
|
+
- preserve manual Jira edits
|
|
13
|
+
- log all actions to AUDIT
|
|
18
14
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Auth: Managed via `connection-manager.md`.
|
|
22
|
-
Resilience: Failures are non-fatal; state is logged in `STATE.md` for retry.
|
|
23
|
-
</context>
|
|
24
|
-
|
|
25
|
-
<process>
|
|
26
|
-
1. **Verify Connection**: Ensure Jira API availability and auth tokens are valid.
|
|
27
|
-
2. **Resolve Mappings**: Map Phase and Plan IDs to Jira Epics and Stories.
|
|
28
|
-
3. **Transition Issues**: Update Jira statuses based on verification results (e.g., Verified -> Done).
|
|
29
|
-
4. **Sync Content**: Push plan descriptions and requirements to the relevant Jira tickets.
|
|
30
|
-
5. **Preserve Manual Edits**: Avoid overwriting manual comments or fields in Jira.
|
|
31
|
-
6. **Audit**: Log the sync event with counts of updated and created tickets.
|
|
32
|
-
</process>
|
|
15
|
+
Integration failures are non-fatal and should be written to `STATE.md` for
|
|
16
|
+
manual retry.
|
|
@@ -1,27 +1,12 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Analyze token consumption profile and efficiency
|
|
4
|
-
argument-hint: [--phase N] [--session ID] [--window short|medium|long] [--optimise]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- view_file
|
|
7
|
-
- run_command
|
|
2
|
+
description: Display token consumption profile and efficiency analysis.
|
|
8
3
|
---
|
|
9
4
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
</objective>
|
|
5
|
+
# MindForge — Token Usage Command
|
|
6
|
+
# Usage: /mindforge:tokens [--phase N] [--session ID] [--window short|medium|long] [--optimise]
|
|
13
7
|
|
|
14
|
-
|
|
15
|
-
.
|
|
16
|
-
|
|
8
|
+
## Purpose
|
|
9
|
+
Display token consumption profile and efficiency analysis.
|
|
10
|
+
Helps identify where tokens are being spent and how to reduce waste.
|
|
17
11
|
|
|
18
|
-
|
|
19
|
-
Analysis Focus: Input vs Output tokens, cache hits/misses, compaction efficiency.
|
|
20
|
-
</context>
|
|
21
|
-
|
|
22
|
-
<process>
|
|
23
|
-
1. **Fetch Profiles**: Read token usage data for the specified scope.
|
|
24
|
-
2. **Identify Waste**: Detect large, repetitive context injections or missed cache opportunities.
|
|
25
|
-
3. **Optimization Advice**: If `--optimise` is set, provide specific recommendations (e.g., "Summarize ARCHITECTURE.md to save 2k tokens/session").
|
|
26
|
-
4. **Report**: Display the token consumption profile and efficiency score.
|
|
27
|
-
</process>
|
|
12
|
+
## Default output (no flags — last 5 sessions)
|
|
@@ -1,33 +1,46 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Safely check for and apply MindForge framework updates
|
|
4
|
-
argument-hint: [--apply] [--force] [--check] [--skip-changelog]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- run_command
|
|
7
|
-
- view_file
|
|
8
|
-
- write_to_file
|
|
2
|
+
description: Check for and apply MindForge framework updates in a safe, scope-preserving way.
|
|
9
3
|
---
|
|
10
4
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
3.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
5
|
+
# MindForge — Update Command
|
|
6
|
+
# Usage: /mindforge:update [--apply] [--force] [--check] [--skip-changelog]
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
Check for and apply MindForge framework updates in a safe, scope-preserving way.
|
|
10
|
+
|
|
11
|
+
## Execution flow
|
|
12
|
+
|
|
13
|
+
### 1. Version check
|
|
14
|
+
Execute `bin/updater/self-update.js` `checkAndUpdate()`.
|
|
15
|
+
Always show: current version, latest version, update type (major/minor/patch).
|
|
16
|
+
|
|
17
|
+
### 2. Changelog display (unless --skip-changelog)
|
|
18
|
+
Fetch and display the relevant CHANGELOG.md section.
|
|
19
|
+
For major updates: prefix with ⚠️ BREAKING CHANGES notice.
|
|
20
|
+
Limit display to 3,000 characters — link to full CHANGELOG for the rest.
|
|
21
|
+
|
|
22
|
+
### 3. Confirmation gate (unless --apply)
|
|
23
|
+
Without --apply: show update info, stop. Do not modify any files.
|
|
24
|
+
Message: "To apply this update: /mindforge:update --apply"
|
|
25
|
+
|
|
26
|
+
### 4. Apply (with --apply)
|
|
27
|
+
a. Detect original install scope (local vs global, claude vs antigravity)
|
|
28
|
+
b. Read schema_version from HANDOFF.json (captures current version BEFORE update)
|
|
29
|
+
c. Run `npx mindforge-cc@[latest] --[runtime] --[scope]`
|
|
30
|
+
d. Run migration: `node bin/migrations/migrate.js` with captured schema_version
|
|
31
|
+
e. Run /mindforge:health to verify update succeeded
|
|
32
|
+
|
|
33
|
+
### 5. Post-update health check
|
|
34
|
+
If health errors: surface them immediately with specific fix instructions.
|
|
35
|
+
Common post-update issue: CLAUDE.md and .agent/CLAUDE.md drifted → auto-repair.
|
|
36
|
+
|
|
37
|
+
## Error scenarios and recovery
|
|
38
|
+
|
|
39
|
+
| Error | Recovery |
|
|
40
|
+
|---|---|
|
|
41
|
+
| npm registry unreachable | Message: "Check internet. Manual: npm info mindforge-cc version" |
|
|
42
|
+
| Update download fails | Retry once, then suggest manual: `npx mindforge-cc@latest` |
|
|
43
|
+
| Migration fails | Restored from backup automatically. Run /mindforge:migrate manually. |
|
|
44
|
+
| Install scope detection fails | Prompt user: "Is your install global or local?" |
|
|
45
|
+
|
|
46
|
+
## AUDIT entry
|
|
@@ -1,30 +1,66 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Human acceptance testing (UAT) for a completed phase
|
|
4
|
-
argument-hint: [N]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- view_file
|
|
7
|
-
- write_to_file
|
|
2
|
+
description: Human acceptance testing for a completed phase. Usage: /mindforge:verify-phase [N]
|
|
8
3
|
---
|
|
9
4
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
5
|
+
Human acceptance testing for a completed phase. Usage: /mindforge:verify-phase [N]
|
|
6
|
+
|
|
7
|
+
## Pre-check
|
|
8
|
+
`.planning/phases/[N]/VERIFICATION.md` must exist.
|
|
9
|
+
If it does not: instruct the user to run /mindforge:execute-phase [N] first.
|
|
10
|
+
|
|
11
|
+
## Step 1 — Extract testable deliverables
|
|
12
|
+
Read REQUIREMENTS.md and the phase PLAN files.
|
|
13
|
+
Generate a list of testable deliverables — things the user can actually check.
|
|
14
|
+
|
|
15
|
+
Format each as a clear, actionable test instruction:
|
|
16
|
+
"Navigate to /login and submit a form with a valid email and password.
|
|
17
|
+
You should be redirected to /dashboard within 2 seconds."
|
|
18
|
+
|
|
19
|
+
## Step 2 — Walk through each deliverable
|
|
20
|
+
Present one at a time. After each:
|
|
21
|
+
"Please test this now and tell me: pass ✅ or fail ❌ — and describe what you saw."
|
|
22
|
+
|
|
23
|
+
Wait for the user's response before proceeding to the next.
|
|
24
|
+
|
|
25
|
+
## Step 3 — Handle failures
|
|
26
|
+
If the user reports a failure:
|
|
27
|
+
1. Ask: "What exactly happened? (error message, wrong behaviour, nothing happened)"
|
|
28
|
+
2. Spawn a debug subagent with: the failure description, the relevant PLAN file,
|
|
29
|
+
and the relevant source files. Instruct it to find the root cause.
|
|
30
|
+
3. Create a fix plan: `.planning/phases/[N]/FIX-PLAN-[N]-[NN].md`
|
|
31
|
+
using the same XML format as regular plans.
|
|
32
|
+
4. Ask the user: "Fix plan created. Run /mindforge:execute-phase [N] again
|
|
33
|
+
to apply the fixes?"
|
|
34
|
+
|
|
35
|
+
## Step 4 — Write UAT record
|
|
36
|
+
Write `.planning/phases/[N]/UAT.md`:
|
|
37
|
+
|
|
38
|
+
```markdown
|
|
39
|
+
# UAT — Phase [N]
|
|
40
|
+
|
|
41
|
+
## Tester
|
|
42
|
+
[User name or "developer"]
|
|
43
|
+
|
|
44
|
+
## Date
|
|
45
|
+
[ISO 8601 date]
|
|
46
|
+
|
|
47
|
+
## Results
|
|
48
|
+
|
|
49
|
+
| # | Deliverable | Result | Notes |
|
|
50
|
+
|---|------------------------------------|--------|------------------------|
|
|
51
|
+
| 1 | [description] | ✅ | [what was observed] |
|
|
52
|
+
| 2 | [description] | ❌ | [what went wrong] |
|
|
53
|
+
|
|
54
|
+
## Overall status
|
|
55
|
+
All passed ✅ / Issues found — fix plans created ❌
|
|
56
|
+
|
|
57
|
+
## Sign-off
|
|
58
|
+
[Passed / Pending fixes]
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Step 5 — Update state if all pass
|
|
62
|
+
If all deliverables pass:
|
|
63
|
+
Update STATE.md: phase N = verified and signed off.
|
|
64
|
+
Tell the user:
|
|
65
|
+
"✅ Phase [N] verified and signed off.
|
|
66
|
+
Run /mindforge:ship [N] to create the release PR."
|
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Manage monorepo workspaces and cross-package dependencies
|
|
4
|
-
argument-hint: [detect|list|plan phase N|test]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- run_command
|
|
7
|
-
- list_dir
|
|
8
|
-
- view_file
|
|
9
|
-
- write_to_file
|
|
2
|
+
description: Monorepo workspace management.
|
|
10
3
|
---
|
|
11
4
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</objective>
|
|
5
|
+
# MindForge — Workspace Command
|
|
6
|
+
# Usage: /mindforge:workspace [detect|list|plan phase N|test]
|
|
15
7
|
|
|
16
|
-
|
|
17
|
-
.claude/commands/mindforge/workspace.md
|
|
18
|
-
</execution_context>
|
|
8
|
+
Monorepo workspace management.
|
|
19
9
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
</context>
|
|
10
|
+
## detect
|
|
11
|
+
Run workspace detector from `.mindforge/monorepo/workspace-detector.md`.
|
|
12
|
+
Write WORKSPACE-MANIFEST.json.
|
|
13
|
+
Report: workspace type, packages found, dependency order.
|
|
25
14
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
15
|
+
## list
|
|
16
|
+
Read WORKSPACE-MANIFEST.json and display package list:
|
|
17
|
+
```
|
|
18
|
+
Workspace: Turborepo (4 packages)
|
|
19
|
+
packages/shared → @myapp/shared (lib, 0 dependents)
|
|
20
|
+
apps/api → @myapp/api (api, depends on: shared)
|
|
21
|
+
apps/web → @myapp/web (web, depends on: shared, api)
|
|
22
|
+
apps/mobile → @myapp/mobile (mobile, depends on: shared)
|
|
23
|
+
Execution order: shared → api → (web, mobile in parallel)
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## plan phase N
|
|
27
|
+
Create a phase plan that spans multiple packages.
|
|
28
|
+
Uses cross-package-planner.md to determine package execution order.
|
|
29
|
+
Each PLAN file includes a `<package>` and `<working-dir>` field.
|
|
30
|
+
|
|
31
|
+
## test
|
|
32
|
+
Run tests across all packages in dependency order.
|
|
33
|
+
Report per-package test results and aggregate coverage.
|
|
@@ -46,7 +46,7 @@ Every context item (Decision, Discovery, Task Result) is scored before compactio
|
|
|
46
46
|
- **Deduplication**: Before appending to a shard, check for identical `topic` or `id` to avoid context cycles.
|
|
47
47
|
- **Pruning**: Warm shards are archived to Cold storage upon Phase Completion.
|
|
48
48
|
|
|
49
|
-
## 5.
|
|
49
|
+
## 5. Enterprise-Grade — Hardening Phase
|
|
50
50
|
- **Temporal Integrity**: Every shard entry must contain a `sha256` checksum. `bin/shard-helper.js --verify` ensures zero corruption.
|
|
51
51
|
- **Semantic Indexing**: Shards are tagged automatically during compaction for O(1) keyword retrieval.
|
|
52
52
|
- **Hindsight Injection**: If a "Warm" decision is corrected in a later session, the shard is updated with a `superseded_by` pointer.
|