mindforge-cc 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent/CLAUDE.md +462 -0
- package/.agent/forge/help.md +7 -0
- package/.agent/forge/init-project.md +32 -0
- package/.agent/forge/plan-phase.md +30 -0
- package/.agent/mindforge/approve.md +18 -0
- package/.agent/mindforge/audit.md +30 -0
- package/.agent/mindforge/benchmark.md +33 -0
- package/.agent/mindforge/complete-milestone.md +18 -0
- package/.agent/mindforge/debug.md +126 -0
- package/.agent/mindforge/discuss-phase.md +138 -0
- package/.agent/mindforge/execute-phase.md +165 -0
- package/.agent/mindforge/health.md +21 -0
- package/.agent/mindforge/help.md +23 -0
- package/.agent/mindforge/init-org.md +131 -0
- package/.agent/mindforge/init-project.md +155 -0
- package/.agent/mindforge/install-skill.md +15 -0
- package/.agent/mindforge/map-codebase.md +298 -0
- package/.agent/mindforge/metrics.md +22 -0
- package/.agent/mindforge/migrate.md +40 -0
- package/.agent/mindforge/milestone.md +12 -0
- package/.agent/mindforge/next.md +105 -0
- package/.agent/mindforge/plan-phase.md +125 -0
- package/.agent/mindforge/plugins.md +40 -0
- package/.agent/mindforge/pr-review.md +41 -0
- package/.agent/mindforge/profile-team.md +23 -0
- package/.agent/mindforge/publish-skill.md +19 -0
- package/.agent/mindforge/quick.md +135 -0
- package/.agent/mindforge/release.md +10 -0
- package/.agent/mindforge/retrospective.md +26 -0
- package/.agent/mindforge/review.md +157 -0
- package/.agent/mindforge/security-scan.md +233 -0
- package/.agent/mindforge/ship.md +100 -0
- package/.agent/mindforge/skills.md +141 -0
- package/.agent/mindforge/status.md +104 -0
- package/.agent/mindforge/sync-confluence.md +11 -0
- package/.agent/mindforge/sync-jira.md +12 -0
- package/.agent/mindforge/tokens.md +8 -0
- package/.agent/mindforge/update.md +42 -0
- package/.agent/mindforge/verify-phase.md +62 -0
- package/.agent/mindforge/workspace.md +29 -0
- package/.claude/CLAUDE.md +462 -0
- package/.claude/commands/forge/help.md +7 -0
- package/.claude/commands/forge/init-project.md +32 -0
- package/.claude/commands/forge/plan-phase.md +30 -0
- package/.claude/commands/mindforge/approve.md +18 -0
- package/.claude/commands/mindforge/audit.md +30 -0
- package/.claude/commands/mindforge/benchmark.md +33 -0
- package/.claude/commands/mindforge/complete-milestone.md +18 -0
- package/.claude/commands/mindforge/debug.md +126 -0
- package/.claude/commands/mindforge/discuss-phase.md +138 -0
- package/.claude/commands/mindforge/execute-phase.md +165 -0
- package/.claude/commands/mindforge/health.md +21 -0
- package/.claude/commands/mindforge/help.md +23 -0
- package/.claude/commands/mindforge/init-org.md +131 -0
- package/.claude/commands/mindforge/init-project.md +155 -0
- package/.claude/commands/mindforge/install-skill.md +15 -0
- package/.claude/commands/mindforge/map-codebase.md +298 -0
- package/.claude/commands/mindforge/metrics.md +22 -0
- package/.claude/commands/mindforge/migrate.md +40 -0
- package/.claude/commands/mindforge/milestone.md +12 -0
- package/.claude/commands/mindforge/next.md +105 -0
- package/.claude/commands/mindforge/plan-phase.md +125 -0
- package/.claude/commands/mindforge/plugins.md +40 -0
- package/.claude/commands/mindforge/pr-review.md +41 -0
- package/.claude/commands/mindforge/profile-team.md +23 -0
- package/.claude/commands/mindforge/publish-skill.md +19 -0
- package/.claude/commands/mindforge/quick.md +135 -0
- package/.claude/commands/mindforge/release.md +10 -0
- package/.claude/commands/mindforge/retrospective.md +26 -0
- package/.claude/commands/mindforge/review.md +157 -0
- package/.claude/commands/mindforge/security-scan.md +233 -0
- package/.claude/commands/mindforge/ship.md +100 -0
- package/.claude/commands/mindforge/skills.md +141 -0
- package/.claude/commands/mindforge/status.md +104 -0
- package/.claude/commands/mindforge/sync-confluence.md +11 -0
- package/.claude/commands/mindforge/sync-jira.md +12 -0
- package/.claude/commands/mindforge/tokens.md +8 -0
- package/.claude/commands/mindforge/update.md +42 -0
- package/.claude/commands/mindforge/verify-phase.md +62 -0
- package/.claude/commands/mindforge/workspace.md +29 -0
- package/.forge/org/CONVENTIONS.md +0 -0
- package/.forge/org/ORG.md +0 -0
- package/.forge/org/SECURITY.md +0 -0
- package/.forge/org/TOOLS.md +0 -0
- package/.forge/personas/analyst.md +0 -0
- package/.forge/personas/architect.md +0 -0
- package/.forge/personas/debug-specialist.md +0 -0
- package/.forge/personas/developer.md +26 -0
- package/.forge/personas/qa-engineer.md +0 -0
- package/.forge/personas/release-manager.md +0 -0
- package/.forge/personas/security-reviewer.md +33 -0
- package/.forge/personas/tech-writer.md +0 -0
- package/.forge/skills/api-design/SKILL.md +0 -0
- package/.forge/skills/code-quality/SKILL.md +0 -0
- package/.forge/skills/documentation/SKILL.md +0 -0
- package/.forge/skills/security-review/SKILL.md +23 -0
- package/.forge/skills/testing-standards/SKILL.md +27 -0
- package/.github/workflows/mindforge-ci.yml +224 -0
- package/.gitlab-ci-mindforge.yml +18 -0
- package/.mindforge/MINDFORGE-SCHEMA.json +165 -0
- package/.mindforge/audit/AUDIT-SCHEMA.md +451 -0
- package/.mindforge/ci/ci-config-schema.md +21 -0
- package/.mindforge/ci/ci-mode.md +179 -0
- package/.mindforge/ci/github-actions-adapter.md +224 -0
- package/.mindforge/ci/gitlab-ci-adapter.md +31 -0
- package/.mindforge/ci/jenkins-adapter.md +44 -0
- package/.mindforge/distribution/registry-client.md +166 -0
- package/.mindforge/distribution/registry-schema.md +96 -0
- package/.mindforge/distribution/skill-publisher.md +44 -0
- package/.mindforge/distribution/skill-validator.md +74 -0
- package/.mindforge/engine/compaction-protocol.md +182 -0
- package/.mindforge/engine/context-injector.md +128 -0
- package/.mindforge/engine/dependency-parser.md +113 -0
- package/.mindforge/engine/skills/conflict-resolver.md +69 -0
- package/.mindforge/engine/skills/loader.md +184 -0
- package/.mindforge/engine/skills/registry.md +98 -0
- package/.mindforge/engine/skills/versioning.md +75 -0
- package/.mindforge/engine/verification-pipeline.md +111 -0
- package/.mindforge/engine/wave-executor.md +235 -0
- package/.mindforge/governance/GOVERNANCE-CONFIG.md +17 -0
- package/.mindforge/governance/approval-workflow.md +37 -0
- package/.mindforge/governance/change-classifier.md +63 -0
- package/.mindforge/governance/compliance-gates.md +31 -0
- package/.mindforge/integrations/confluence.md +27 -0
- package/.mindforge/integrations/connection-manager.md +163 -0
- package/.mindforge/integrations/github.md +25 -0
- package/.mindforge/integrations/gitlab.md +13 -0
- package/.mindforge/integrations/jira.md +102 -0
- package/.mindforge/integrations/slack.md +41 -0
- package/.mindforge/intelligence/antipattern-detector.md +75 -0
- package/.mindforge/intelligence/difficulty-scorer.md +55 -0
- package/.mindforge/intelligence/health-engine.md +208 -0
- package/.mindforge/intelligence/skill-gap-analyser.md +40 -0
- package/.mindforge/intelligence/smart-compaction.md +71 -0
- package/.mindforge/metrics/METRICS-SCHEMA.md +42 -0
- package/.mindforge/metrics/quality-tracker.md +32 -0
- package/.mindforge/monorepo/cross-package-planner.md +114 -0
- package/.mindforge/monorepo/dependency-graph-builder.md +32 -0
- package/.mindforge/monorepo/workspace-detector.md +129 -0
- package/.mindforge/org/CONVENTIONS.md +62 -0
- package/.mindforge/org/ORG.md +51 -0
- package/.mindforge/org/SECURITY.md +50 -0
- package/.mindforge/org/TOOLS.md +53 -0
- package/.mindforge/org/integrations/INTEGRATIONS-CONFIG.md +58 -0
- package/.mindforge/org/skills/MANIFEST.md +38 -0
- package/.mindforge/personas/analyst.md +52 -0
- package/.mindforge/personas/architect.md +75 -0
- package/.mindforge/personas/debug-specialist.md +52 -0
- package/.mindforge/personas/developer.md +85 -0
- package/.mindforge/personas/overrides/README.md +85 -0
- package/.mindforge/personas/qa-engineer.md +61 -0
- package/.mindforge/personas/release-manager.md +76 -0
- package/.mindforge/personas/security-reviewer.md +91 -0
- package/.mindforge/personas/tech-writer.md +51 -0
- package/.mindforge/plugins/PLUGINS-MANIFEST.md +23 -0
- package/.mindforge/plugins/plugin-loader.md +93 -0
- package/.mindforge/plugins/plugin-registry.md +44 -0
- package/.mindforge/plugins/plugin-schema.md +68 -0
- package/.mindforge/pr-review/ai-reviewer.md +266 -0
- package/.mindforge/pr-review/finding-formatter.md +46 -0
- package/.mindforge/pr-review/review-prompt-templates.md +44 -0
- package/.mindforge/production/compatibility-layer.md +39 -0
- package/.mindforge/production/migration-engine.md +52 -0
- package/.mindforge/production/production-checklist.md +165 -0
- package/.mindforge/production/token-optimiser.md +68 -0
- package/.mindforge/skills/accessibility/SKILL.md +106 -0
- package/.mindforge/skills/api-design/SKILL.md +98 -0
- package/.mindforge/skills/code-quality/SKILL.md +88 -0
- package/.mindforge/skills/data-privacy/SKILL.md +126 -0
- package/.mindforge/skills/database-patterns/SKILL.md +192 -0
- package/.mindforge/skills/documentation/SKILL.md +91 -0
- package/.mindforge/skills/incident-response/SKILL.md +180 -0
- package/.mindforge/skills/performance/SKILL.md +120 -0
- package/.mindforge/skills/security-review/SKILL.md +83 -0
- package/.mindforge/skills/testing-standards/SKILL.md +97 -0
- package/.mindforge/team/TEAM-PROFILE.md +42 -0
- package/.mindforge/team/multi-handoff.md +23 -0
- package/.mindforge/team/profiles/README.md +13 -0
- package/.mindforge/team/session-merger.md +18 -0
- package/.planning/ARCHITECTURE.md +0 -0
- package/.planning/AUDIT.jsonl +0 -0
- package/.planning/HANDOFF.json +28 -0
- package/.planning/PROJECT.md +33 -0
- package/.planning/RELEASE-CHECKLIST.md +68 -0
- package/.planning/REQUIREMENTS.md +0 -0
- package/.planning/ROADMAP.md +0 -0
- package/.planning/STATE.md +31 -0
- package/.planning/approvals/.gitkeep +1 -0
- package/.planning/archive/.gitkeep +1 -0
- package/.planning/audit-archive/.gitkeep +1 -0
- package/.planning/decisions/.gitkeep +0 -0
- package/.planning/decisions/ADR-001-handoff-tracking.md +41 -0
- package/.planning/decisions/ADR-002-markdown-commands.md +46 -0
- package/.planning/decisions/ADR-003-skills-trigger-model.md +37 -0
- package/.planning/decisions/ADR-004-wave-parallelism-model.md +45 -0
- package/.planning/decisions/ADR-005-append-only-audit-log.md +51 -0
- package/.planning/decisions/ADR-006-tiered-skills-system.md +22 -0
- package/.planning/decisions/ADR-007-trigger-keyword-model.md +22 -0
- package/.planning/decisions/ADR-008-just-in-time-skill-loading.md +29 -0
- package/.planning/decisions/ADR-009-enterprise-integration-retry-policy.md +8 -0
- package/.planning/decisions/ADR-010-governance-tier-escalation.md +8 -0
- package/.planning/decisions/ADR-011-multi-developer-handoff-contract.md +8 -0
- package/.planning/decisions/ADR-012-intelligence-feedback-loops.md +19 -0
- package/.planning/decisions/ADR-013-mindforge-md-constitution.md +16 -0
- package/.planning/decisions/ADR-014-metrics-as-signals-not-evaluation.md +15 -0
- package/.planning/decisions/ADR-015-npm-based-skill-registry.md +26 -0
- package/.planning/decisions/ADR-016-ci-exit-code-0-on-timeout.md +27 -0
- package/.planning/decisions/ADR-017-sdk-localhost-only.md +28 -0
- package/.planning/decisions/ADR-018-installer-self-install-detection.md +15 -0
- package/.planning/decisions/ADR-019-self-update-scope-preservation.md +14 -0
- package/.planning/decisions/ADR-020-v1.0.0-stable-interface-contract.md +23 -0
- package/.planning/jira-sync.json +9 -0
- package/.planning/milestones/.gitkeep +1 -0
- package/.planning/phases/day1/REVIEW-DAY1.md +50 -0
- package/.planning/phases/day1/SECURITY-REVIEW-DAY1.md +15 -0
- package/.planning/phases/day2/REVIEW-DAY2.md +521 -0
- package/.planning/phases/day3/REVIEW-DAY3.md +234 -0
- package/.planning/slack-threads.json +6 -0
- package/CHANGELOG.md +175 -0
- package/LICENSE +21 -0
- package/MINDFORGE.md +76 -0
- package/README.md +182 -0
- package/RELEASENOTES.md +41 -0
- package/SECURITY.md +4 -0
- package/bin/install.js +120 -0
- package/bin/installer-core.js +292 -0
- package/bin/migrations/0.1.0-to-0.5.0.js +37 -0
- package/bin/migrations/0.5.0-to-0.6.0.js +17 -0
- package/bin/migrations/0.6.0-to-1.0.0.js +100 -0
- package/bin/migrations/migrate.js +151 -0
- package/bin/migrations/schema-versions.js +64 -0
- package/bin/updater/changelog-fetcher.js +62 -0
- package/bin/updater/self-update.js +169 -0
- package/bin/updater/version-comparator.js +68 -0
- package/bin/validate-config.js +92 -0
- package/bin/wizard/config-generator.js +112 -0
- package/bin/wizard/environment-detector.js +76 -0
- package/bin/wizard/setup-wizard.js +237 -0
- package/docs/Context/Master-Context.md +701 -0
- package/docs/architecture/README.md +35 -0
- package/docs/architecture/decision-records-index.md +26 -0
- package/docs/ci-cd-integration.md +30 -0
- package/docs/ci-quickstart.md +78 -0
- package/docs/commands-reference.md +11 -0
- package/docs/contributing/CONTRIBUTING.md +38 -0
- package/docs/contributing/plugin-authoring.md +50 -0
- package/docs/contributing/skill-authoring.md +41 -0
- package/docs/enterprise-setup.md +25 -0
- package/docs/faq.md +38 -0
- package/docs/getting-started.md +36 -0
- package/docs/governance-guide.md +23 -0
- package/docs/mindforge-md-reference.md +53 -0
- package/docs/monorepo-guide.md +26 -0
- package/docs/persona-customisation.md +56 -0
- package/docs/quick-verify.md +33 -0
- package/docs/reference/audit-events.md +53 -0
- package/docs/reference/commands.md +82 -0
- package/docs/reference/config-reference.md +64 -0
- package/docs/reference/sdk-api.md +48 -0
- package/docs/reference/skills-api.md +57 -0
- package/docs/release-checklist-guide.md +37 -0
- package/docs/requirements.md +29 -0
- package/docs/sdk-reference.md +27 -0
- package/docs/security/SECURITY.md +42 -0
- package/docs/security/penetration-test-results.md +31 -0
- package/docs/security/threat-model.md +142 -0
- package/docs/skills-authoring-guide.md +119 -0
- package/docs/skills-publishing-guide.md +21 -0
- package/docs/team-setup-guide.md +21 -0
- package/docs/troubleshooting.md +119 -0
- package/docs/tutorial.md +195 -0
- package/docs/upgrade.md +44 -0
- package/docs/user-guide.md +131 -0
- package/docs/usp-features.md +214 -0
- package/eslint.config.mjs +31 -0
- package/examples/starter-project/.planning/AUDIT.jsonl +1 -0
- package/examples/starter-project/.planning/HANDOFF.json +23 -0
- package/examples/starter-project/.planning/PROJECT.md +27 -0
- package/examples/starter-project/.planning/STATE.md +10 -0
- package/examples/starter-project/MINDFORGE.md +40 -0
- package/examples/starter-project/README.md +14 -0
- package/implementation-roadmap/day-1-imp/DAY1-HARDEN.md +823 -0
- package/implementation-roadmap/day-1-imp/DAY1-IMPLEMENT.md +2459 -0
- package/implementation-roadmap/day-1-imp/DAY1-REVIEW.md +288 -0
- package/implementation-roadmap/day-2-imp/DAY2-HARDEN.md +954 -0
- package/implementation-roadmap/day-2-imp/DAY2-IMPLEMENT.md +2347 -0
- package/implementation-roadmap/day-2-imp/DAY2-REVIEW.md +422 -0
- package/implementation-roadmap/day-3-imp/DAY3-HARDEN.md +870 -0
- package/implementation-roadmap/day-3-imp/DAY3-IMPLEMENT.md +2798 -0
- package/implementation-roadmap/day-3-imp/DAY3-REVIEW.md +484 -0
- package/implementation-roadmap/day-4-imp/DAY4-HARDEN.md +1087 -0
- package/implementation-roadmap/day-4-imp/DAY4-IMPLEMENT.md +2874 -0
- package/implementation-roadmap/day-4-imp/DAY4-REVIEW.md +386 -0
- package/implementation-roadmap/day-5-imp/DAY5-HARDEN.md +1078 -0
- package/implementation-roadmap/day-5-imp/DAY5-IMPLEMENT.md +3151 -0
- package/implementation-roadmap/day-5-imp/DAY5-REVIEW.md +345 -0
- package/implementation-roadmap/day-6-imp/DAY6-COMPLETE.md +3919 -0
- package/implementation-roadmap/day-7-imp-prod/DAY7-PRODUCTION-FINAL.md +4513 -0
- package/package.json +31 -0
- package/sdk/README.md +69 -0
- package/sdk/eslint.config.mjs +34 -0
- package/sdk/package-lock.json +1507 -0
- package/sdk/package.json +30 -0
- package/sdk/src/client.ts +133 -0
- package/sdk/src/commands.ts +63 -0
- package/sdk/src/events.ts +166 -0
- package/sdk/src/index.ts +22 -0
- package/sdk/src/types.ts +87 -0
- package/sdk/tsconfig.json +13 -0
- package/tests/audit.test.js +206 -0
- package/tests/ci-mode.test.js +162 -0
- package/tests/compaction.test.js +161 -0
- package/tests/distribution.test.js +205 -0
- package/tests/e2e.test.js +618 -0
- package/tests/governance.test.js +130 -0
- package/tests/install.test.js +209 -0
- package/tests/integrations.test.js +128 -0
- package/tests/intelligence.test.js +117 -0
- package/tests/metrics.test.js +96 -0
- package/tests/migration.test.js +309 -0
- package/tests/production.test.js +416 -0
- package/tests/sdk.test.js +200 -0
- package/tests/skills-platform.test.js +403 -0
- package/tests/wave-engine.test.js +338 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# MindForge Architecture Overview
|
|
2
|
+
|
|
3
|
+
## Architectural style
|
|
4
|
+
MindForge is a modular, file-driven framework. Behavior is defined by
|
|
5
|
+
Markdown protocols and JSON schemas, with a small Node.js CLI runtime.
|
|
6
|
+
|
|
7
|
+
## Core layers
|
|
8
|
+
1. **Command layer** — Markdown commands in `.claude/commands/mindforge/`
|
|
9
|
+
2. **Engine layer** — Execution protocols under `.mindforge/engine/`
|
|
10
|
+
3. **Governance layer** — Approvals, audit, compliance gates in `.mindforge/governance/`
|
|
11
|
+
4. **Intelligence layer** — Health, difficulty, anti-patterns in `.mindforge/intelligence/`
|
|
12
|
+
5. **Distribution layer** — Installer, registry, CI, SDK, plugins
|
|
13
|
+
|
|
14
|
+
## Key data artifacts
|
|
15
|
+
- `.planning/PROJECT.md` — project brief
|
|
16
|
+
- `.planning/STATE.md` — current execution state
|
|
17
|
+
- `.planning/HANDOFF.json` — machine-readable session handoff
|
|
18
|
+
- `.planning/AUDIT.jsonl` — append-only audit log
|
|
19
|
+
|
|
20
|
+
## Runtime flow (high level)
|
|
21
|
+
1. `/mindforge:plan-phase` generates atomic plans with dependencies
|
|
22
|
+
2. `/mindforge:execute-phase` runs plans in waves
|
|
23
|
+
3. `/mindforge:verify-phase` runs automated + human gates
|
|
24
|
+
4. `/mindforge:ship` generates release artifacts and PR metadata
|
|
25
|
+
|
|
26
|
+
## Installation targets
|
|
27
|
+
- Claude Code: `~/.claude/` or `.claude/`
|
|
28
|
+
- Antigravity: `~/.gemini/antigravity/` or `.agent/`
|
|
29
|
+
|
|
30
|
+
## SDK integration
|
|
31
|
+
`@mindforge/sdk` provides programmatic access to health checks, audit log
|
|
32
|
+
streaming, and command builders.
|
|
33
|
+
|
|
34
|
+
## Stability contract
|
|
35
|
+
See ADR-020: command interfaces, schemas, and SDK exports are stable in v1.x.x.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# MindForge — Architecture Decision Records Index
|
|
2
|
+
|
|
3
|
+
All 20 ADRs in chronological order.
|
|
4
|
+
|
|
5
|
+
| ADR | Title | Status | Day | Key decision |
|
|
6
|
+
|---|---|---|---|---|
|
|
7
|
+
| ADR-001 | HANDOFF.json for cross-session state | Accepted | Day 2 | HANDOFF.json as the primary cross-session state artifact |
|
|
8
|
+
| ADR-002 | Markdown-based commands | Accepted | Day 1 | Slash commands as Markdown files (not code) |
|
|
9
|
+
| ADR-003 | Keyword-trigger model for skill loading | Accepted | Day 1 | Deterministic keyword matching over AI-decided selection |
|
|
10
|
+
| ADR-004 | Wave parallelism over full parallelism | Accepted | Day 2 | Wave-based (dependency-ordered) over unconstrained parallel |
|
|
11
|
+
| ADR-005 | Append-only JSONL for audit log | Accepted | Day 2 | AUDIT.jsonl append-only (never update, never delete) |
|
|
12
|
+
| ADR-006 | Three-tier skills architecture | Accepted | Day 3 | Core → Org → Project tier hierarchy |
|
|
13
|
+
| ADR-007 | Keyword-trigger model (reaffirmed at Day 3 scale) | Accepted | Day 3 | Confirmed at 10+ skill scale |
|
|
14
|
+
| ADR-008 | Just-in-time skill loading | Accepted | Day 3 | Load at task time, not session start |
|
|
15
|
+
| ADR-009 | Environment-variable-only credential storage | Accepted | Day 4 | Credentials only in env vars, never in config files |
|
|
16
|
+
| ADR-010 | Compliance gates non-bypassable; approvals allow emergency | Accepted | Day 4 | Gates: never bypass. Approvals: emergency override with audit |
|
|
17
|
+
| ADR-011 | Integration failures are non-blocking | Accepted | Day 4 | Jira/Slack/GitHub down ≠ phase blocked |
|
|
18
|
+
| ADR-012 | Intelligence outputs feed back into system behaviour | Accepted | Day 5 | Difficulty → granularity, retro → MINDFORGE.md, quality → behaviour |
|
|
19
|
+
| ADR-013 | MINDFORGE.md as constitution with non-overridable primitives | Accepted | Day 5 | Non-overridable governance primitives cannot be disabled |
|
|
20
|
+
| ADR-014 | Metrics are system signals, not developer performance | Accepted | Day 5 | Quality scores improve the system, not evaluate individuals |
|
|
21
|
+
| ADR-015 | npm as the public skills registry | Accepted | Day 6 | npm ecosystem for skill distribution |
|
|
22
|
+
| ADR-016 | CI timeout exits with code 0 (soft stop) | Accepted | Day 6 | Timeout = save and resume, not failure |
|
|
23
|
+
| ADR-017 | SDK event stream is localhost-only | Accepted | Day 6 | SSE binds to 127.0.0.1 only |
|
|
24
|
+
| ADR-018 | Installer detects and handles self-install | Accepted | Day 7 | Installer running inside its own repo = no-op for framework files |
|
|
25
|
+
| ADR-019 | Self-update preserves original install scope | Accepted | Day 7 | Update local→local, global→global |
|
|
26
|
+
| ADR-020 | v1.0.0 stable interface contract | Accepted | Day 7 | Defines what "stable" means for plugins and SDK consumers |
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# MindForge CI/CD Integration
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
MindForge supports non-interactive CI mode for GitHub Actions, GitLab CI, and Jenkins.
|
|
5
|
+
CI mode activates when `CI=true` or `MINDFORGE_CI=true`.
|
|
6
|
+
|
|
7
|
+
## GitHub Actions
|
|
8
|
+
Use `.github/workflows/mindforge-ci.yml` for:
|
|
9
|
+
- Health checks
|
|
10
|
+
- Security scanning
|
|
11
|
+
- Quality gates
|
|
12
|
+
- AI PR review (if `ANTHROPIC_API_KEY` is set)
|
|
13
|
+
|
|
14
|
+
## GitLab CI
|
|
15
|
+
Use `.gitlab-ci-mindforge.yml` as a template. Ensure CI variables include:
|
|
16
|
+
- `ANTHROPIC_API_KEY`
|
|
17
|
+
- `GITHUB_TOKEN` (optional)
|
|
18
|
+
- `SLACK_BOT_TOKEN` (optional)
|
|
19
|
+
|
|
20
|
+
## Jenkins
|
|
21
|
+
Use `.mindforge/ci/jenkins-adapter.md` for a Jenkinsfile template.
|
|
22
|
+
|
|
23
|
+
## Governance in CI
|
|
24
|
+
- Tier 1 auto-approves.
|
|
25
|
+
- Tier 2 auto-approves only if `CI_AUTO_APPROVE_TIER2=true`.
|
|
26
|
+
- Tier 3 always blocks CI and requires human approval.
|
|
27
|
+
|
|
28
|
+
## Timeouts
|
|
29
|
+
Timeouts are soft stops (exit code 0). MindForge saves state to `HANDOFF.json` and
|
|
30
|
+
prints a summary in the CI step output.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# MindForge CI Quickstart (v1.0.0)
|
|
2
|
+
|
|
3
|
+
This page shows how to run MindForge in real pipelines with non-interactive
|
|
4
|
+
behavior and reliable outputs.
|
|
5
|
+
|
|
6
|
+
## 1. Basic CI run (GitHub Actions)
|
|
7
|
+
|
|
8
|
+
```yaml
|
|
9
|
+
name: MindForge CI
|
|
10
|
+
on:
|
|
11
|
+
pull_request:
|
|
12
|
+
push:
|
|
13
|
+
branches: [main]
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
mindforge:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
- uses: actions/setup-node@v4
|
|
21
|
+
with:
|
|
22
|
+
node-version: 20
|
|
23
|
+
|
|
24
|
+
- name: Install MindForge
|
|
25
|
+
run: npx mindforge-cc@latest --claude --local
|
|
26
|
+
|
|
27
|
+
- name: Run MindForge suite
|
|
28
|
+
run: node tests/install.test.js
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## 2. CI mode behavior
|
|
32
|
+
Set `CI=true` to enable non-interactive operation.
|
|
33
|
+
|
|
34
|
+
MindForge in CI:
|
|
35
|
+
- Skips interactive prompts
|
|
36
|
+
- Emits structured output (if configured)
|
|
37
|
+
- Blocks Tier 3 changes
|
|
38
|
+
- Logs all gate results
|
|
39
|
+
|
|
40
|
+
## 3. Recommended env settings
|
|
41
|
+
```bash
|
|
42
|
+
CI=true
|
|
43
|
+
MINDFORGE_CI=true
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## 4. Add full test battery (v1.0.0)
|
|
47
|
+
```bash
|
|
48
|
+
SUITES=(install wave-engine audit compaction skills-platform \
|
|
49
|
+
integrations governance intelligence metrics \
|
|
50
|
+
distribution ci-mode sdk production migration e2e)
|
|
51
|
+
|
|
52
|
+
for SUITE in "${SUITES[@]}"; do
|
|
53
|
+
node tests/${SUITE}.test.js
|
|
54
|
+
done
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## 5. Reporting
|
|
58
|
+
If you want JSON output in CI, set in `MINDFORGE.md`:
|
|
59
|
+
```
|
|
60
|
+
CI_OUTPUT_FORMAT=json
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## 6. Common CI pitfalls
|
|
64
|
+
- Missing Node 18+ → install newer Node
|
|
65
|
+
- CI failing on Tier 3 changes → approvals required
|
|
66
|
+
- Missing `.planning/` in CI → run `/mindforge:init-project` or `map-codebase`
|
|
67
|
+
|
|
68
|
+
## 7. GitLab CI example
|
|
69
|
+
```yaml
|
|
70
|
+
stages: [test]
|
|
71
|
+
|
|
72
|
+
mindforge:
|
|
73
|
+
stage: test
|
|
74
|
+
image: node:20
|
|
75
|
+
script:
|
|
76
|
+
- npx mindforge-cc@latest --claude --local
|
|
77
|
+
- node tests/install.test.js
|
|
78
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# MindForge — Commands Reference
|
|
2
|
+
|
|
3
|
+
| Command | Description |
|
|
4
|
+
|---------------------------------|-----------------------------------------------|
|
|
5
|
+
| `/mindforge:help` | Show all commands and current project status |
|
|
6
|
+
| `/mindforge:init-project` | Initialise a new project (requirements, scope, state) |
|
|
7
|
+
| `/mindforge:plan-phase [N]` | Plan a phase: discuss → research → create task plans |
|
|
8
|
+
| `/mindforge:execute-phase [N]` | Execute plans with wave-based parallelism |
|
|
9
|
+
| `/mindforge:verify-phase [N]` | Human acceptance testing + automated checks |
|
|
10
|
+
| `/mindforge:ship [N]` | Generate changelog, run quality gates, create PR |
|
|
11
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Contributing to MindForge
|
|
2
|
+
|
|
3
|
+
Thanks for contributing. MindForge prioritizes reliability, security, and
|
|
4
|
+
repeatability. Please follow the guidelines below.
|
|
5
|
+
|
|
6
|
+
## Workflow
|
|
7
|
+
1. Fork the repo and create a branch from `main`
|
|
8
|
+
2. Use branch prefix `feat/`, `fix/`, `chore/`, `docs/`, `test/`
|
|
9
|
+
3. Make small, focused commits with clear messages
|
|
10
|
+
4. Run tests before opening a PR
|
|
11
|
+
|
|
12
|
+
## Local setup
|
|
13
|
+
```bash
|
|
14
|
+
npm install
|
|
15
|
+
npm test
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Commit guidance
|
|
19
|
+
- One logical change per commit
|
|
20
|
+
- Avoid formatting-only changes mixed with functional changes
|
|
21
|
+
- No TODO comments in committed code
|
|
22
|
+
|
|
23
|
+
## Tests
|
|
24
|
+
Run the relevant suite for your change:
|
|
25
|
+
```bash
|
|
26
|
+
node tests/install.test.js
|
|
27
|
+
# plus any affected suites
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## PR checklist
|
|
31
|
+
- [ ] Tests pass locally
|
|
32
|
+
- [ ] Docs updated (if behavior changed)
|
|
33
|
+
- [ ] New commands added to command reference
|
|
34
|
+
- [ ] Security-sensitive changes reviewed
|
|
35
|
+
|
|
36
|
+
## Security
|
|
37
|
+
If you find a vulnerability, do not open a public issue. Report via
|
|
38
|
+
`docs/security/SECURITY.md`.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Plugin Authoring Guide (v1.0.0)
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
Plugins extend MindForge with commands and skills. They are installed from npm
|
|
5
|
+
under the `mindforge-plugin-*` namespace.
|
|
6
|
+
|
|
7
|
+
## Structure
|
|
8
|
+
```
|
|
9
|
+
my-plugin/
|
|
10
|
+
plugin.json
|
|
11
|
+
commands/
|
|
12
|
+
my-command.md
|
|
13
|
+
skills/
|
|
14
|
+
my-skill/
|
|
15
|
+
SKILL.md
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## plugin.json (required)
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"name": "mindforge-plugin-example",
|
|
22
|
+
"version": "1.0.0",
|
|
23
|
+
"mindforge_plugin_api_version": "1.0.0",
|
|
24
|
+
"min_mindforge_version": "1.0.0",
|
|
25
|
+
"commands": ["commands/my-command.md"],
|
|
26
|
+
"skills": ["skills/my-skill/SKILL.md"],
|
|
27
|
+
"permissions": {
|
|
28
|
+
"read_state": true,
|
|
29
|
+
"write_state": false,
|
|
30
|
+
"network": false
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Command authoring
|
|
36
|
+
Command files are standard MindForge command markdown. The first non-empty line
|
|
37
|
+
is used as the command description.
|
|
38
|
+
|
|
39
|
+
## Compatibility
|
|
40
|
+
- `mindforge_plugin_api_version` must be `1.0.0` for MindForge v1.x.x
|
|
41
|
+
- Command name conflicts are auto-renamed per `plugin-loader.md`
|
|
42
|
+
|
|
43
|
+
## Security guidelines
|
|
44
|
+
- Keep permissions minimal
|
|
45
|
+
- Never exfiltrate project data without explicit user approval
|
|
46
|
+
- Pass injection guard (no override or jailbreak phrases)
|
|
47
|
+
|
|
48
|
+
## Test locally
|
|
49
|
+
Use `/mindforge:plugins validate` and `/mindforge:plugins install --local` to
|
|
50
|
+
validate and install into a test project.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Skill Authoring Guide (v1.0.0)
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
Skills capture repeatable domain expertise. They are loaded by keyword triggers.
|
|
5
|
+
|
|
6
|
+
## Create a skill
|
|
7
|
+
1. Create a directory under `.mindforge/skills/<skill-name>/`
|
|
8
|
+
2. Add `SKILL.md` with frontmatter
|
|
9
|
+
3. Add optional `assets/` or `references/`
|
|
10
|
+
|
|
11
|
+
## SKILL.md template
|
|
12
|
+
```markdown
|
|
13
|
+
---
|
|
14
|
+
name: my-skill
|
|
15
|
+
version: 1.0.0
|
|
16
|
+
description: One-line description of the skill
|
|
17
|
+
triggers: ["keyword1", "keyword2"]
|
|
18
|
+
owner: my-team
|
|
19
|
+
scope: project
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# Skill content
|
|
23
|
+
- Guidance
|
|
24
|
+
- Checklists
|
|
25
|
+
- Examples
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Validation
|
|
29
|
+
Run:
|
|
30
|
+
```
|
|
31
|
+
/mindforge:skills validate
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Publishing (optional)
|
|
35
|
+
Publish to npm under `mindforge-skill-*`.
|
|
36
|
+
See `docs/skills-publishing-guide.md` for full steps.
|
|
37
|
+
|
|
38
|
+
## Security rules
|
|
39
|
+
- No instructions that override system policies
|
|
40
|
+
- No credentials or secrets in content
|
|
41
|
+
- Avoid excessive prompts that expand tokens without value
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# MindForge Enterprise Setup
|
|
2
|
+
|
|
3
|
+
## Goal
|
|
4
|
+
Configure Jira, Confluence, Slack, and SCM governance safely without storing
|
|
5
|
+
credentials in the repository.
|
|
6
|
+
|
|
7
|
+
## Setup sequence
|
|
8
|
+
1. Fill non-sensitive values in
|
|
9
|
+
`.mindforge/org/integrations/INTEGRATIONS-CONFIG.md`
|
|
10
|
+
2. Export credentials as environment variables
|
|
11
|
+
3. Validate connectivity through `connection-manager.md`
|
|
12
|
+
4. Run `/mindforge:sync-jira` and `/mindforge:sync-confluence`
|
|
13
|
+
5. Confirm Slack notification behaviour and undelivered-alert fallback
|
|
14
|
+
|
|
15
|
+
## Security rules
|
|
16
|
+
- never commit tokens
|
|
17
|
+
- never run credential-bearing calls with `set -x`
|
|
18
|
+
- never use `curl -v` with Authorization headers
|
|
19
|
+
- rotate credentials by updating the environment, not config files
|
|
20
|
+
|
|
21
|
+
## Supported Day 4 outputs
|
|
22
|
+
- Jira epics and stories for phases/plans
|
|
23
|
+
- Confluence architecture and ADR publishing
|
|
24
|
+
- Slack notifications and thread tracking
|
|
25
|
+
- milestone health and completion workflow
|
package/docs/faq.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# MindForge FAQ (v1.0.0)
|
|
2
|
+
|
|
3
|
+
## Is MindForge tied to Claude only?
|
|
4
|
+
No. MindForge supports Claude Code and Antigravity. Install with `--claude`,
|
|
5
|
+
`--antigravity`, or `--all`.
|
|
6
|
+
|
|
7
|
+
## Global vs local install?
|
|
8
|
+
- **Global:** installs to your home directory and applies to all projects.
|
|
9
|
+
- **Local:** installs to the current repo only. Local takes precedence.
|
|
10
|
+
|
|
11
|
+
## Does MindForge store secrets?
|
|
12
|
+
No. Credentials must stay in environment variables. MindForge never writes
|
|
13
|
+
secrets to files.
|
|
14
|
+
|
|
15
|
+
## Why did CI fail on Tier 3 changes?
|
|
16
|
+
Tier 3 (compliance) changes are blocked in CI by design. Use approvals.
|
|
17
|
+
|
|
18
|
+
## How do I uninstall?
|
|
19
|
+
```
|
|
20
|
+
npx mindforge-cc@latest --uninstall --claude --local
|
|
21
|
+
```
|
|
22
|
+
Uninstall does not delete `.planning/` or `.mindforge/`.
|
|
23
|
+
|
|
24
|
+
## How do I know which commands are available?
|
|
25
|
+
Run:
|
|
26
|
+
```
|
|
27
|
+
/mindforge:help
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Can I add custom commands?
|
|
31
|
+
Yes, via plugins or by adding command markdown files in your project.
|
|
32
|
+
Plugins are preferred for sharing and versioning.
|
|
33
|
+
|
|
34
|
+
## How do I update to the latest version?
|
|
35
|
+
```
|
|
36
|
+
/mindforge:update
|
|
37
|
+
/mindforge:update --apply
|
|
38
|
+
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# MindForge — Getting Started
|
|
2
|
+
|
|
3
|
+
This guide gets you from zero to a working MindForge project in under five minutes.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Claude Code (global)
|
|
9
|
+
npx mindforge-cc --claude --global
|
|
10
|
+
|
|
11
|
+
# Project-local install
|
|
12
|
+
npx mindforge-cc --claude --local
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Initialise your project
|
|
16
|
+
|
|
17
|
+
Open Claude Code in your repository and run:
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
/mindforge:help
|
|
21
|
+
/mindforge:init-project
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
The init command creates your core planning files:
|
|
25
|
+
- `.planning/PROJECT.md`
|
|
26
|
+
- `.planning/REQUIREMENTS.md`
|
|
27
|
+
- `.planning/STATE.md`
|
|
28
|
+
- `.planning/HANDOFF.json`
|
|
29
|
+
|
|
30
|
+
## Next steps
|
|
31
|
+
|
|
32
|
+
1. Plan Phase 1: `/mindforge:plan-phase 1`
|
|
33
|
+
2. Execute Phase 1: `/mindforge:execute-phase 1`
|
|
34
|
+
3. Verify Phase 1: `/mindforge:verify-phase 1`
|
|
35
|
+
4. Ship Phase 1: `/mindforge:ship 1`
|
|
36
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# MindForge Governance Guide
|
|
2
|
+
|
|
3
|
+
## Goal
|
|
4
|
+
Explain how change classification, approvals, compliance gates, and milestone
|
|
5
|
+
governance work in Day 4.
|
|
6
|
+
|
|
7
|
+
## Governance flow
|
|
8
|
+
1. Classify the change before plan execution
|
|
9
|
+
2. Apply Tier 3 signals first
|
|
10
|
+
3. Request approval when required
|
|
11
|
+
4. Enforce compliance gates before completion or release
|
|
12
|
+
5. Log decisions and approvals to AUDIT
|
|
13
|
+
|
|
14
|
+
## Key guarantees
|
|
15
|
+
- Tier 3 can be triggered by code content, not just file paths
|
|
16
|
+
- GDPR/PII gate runs independently of skill loading
|
|
17
|
+
- emergency override requires explicit `--emergency` and listed approver identity
|
|
18
|
+
- approval expiry is session-detected and config-driven
|
|
19
|
+
|
|
20
|
+
## Team operation
|
|
21
|
+
- multi-developer sessions coordinate via shared `HANDOFF.json`
|
|
22
|
+
- stale active developers expire after 4 hours
|
|
23
|
+
- shared state merges happen through git conflict resolution, not silent overwrite
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# MINDFORGE.md Reference
|
|
2
|
+
|
|
3
|
+
`MINDFORGE.md` is the project-level constitution for MindForge defaults.
|
|
4
|
+
|
|
5
|
+
## Location
|
|
6
|
+
Place at repo root beside `package.json`.
|
|
7
|
+
|
|
8
|
+
## Syntax
|
|
9
|
+
- `KEY=value`
|
|
10
|
+
- comments with `#`
|
|
11
|
+
- multiline values with triple quotes
|
|
12
|
+
|
|
13
|
+
## Core settings
|
|
14
|
+
### Model preferences
|
|
15
|
+
- `PLANNER_MODEL`
|
|
16
|
+
- `EXECUTOR_MODEL`
|
|
17
|
+
- `REVIEWER_MODEL`
|
|
18
|
+
- `VERIFIER_MODEL`
|
|
19
|
+
- `SECURITY_MODEL`
|
|
20
|
+
|
|
21
|
+
Valid values: `claude-opus-4-5`, `claude-sonnet-4-5`, `claude-haiku-4-5`, `inherit`.
|
|
22
|
+
Unavailable value -> fallback to `inherit` with warning.
|
|
23
|
+
|
|
24
|
+
### Execution behavior
|
|
25
|
+
- `TIER1_AUTO_APPROVE`
|
|
26
|
+
- `WAVE_CONFIRMATION_REQUIRED`
|
|
27
|
+
- `AUTO_DISCUSS_PHASE`
|
|
28
|
+
- `VERIFY_PASS_RATE_WARNING_THRESHOLD`
|
|
29
|
+
- `COMPACTION_THRESHOLD_PCT`
|
|
30
|
+
- `MAX_TASKS_PER_PHASE`
|
|
31
|
+
|
|
32
|
+
### Quality and governance
|
|
33
|
+
- `MIN_TEST_COVERAGE_PCT`
|
|
34
|
+
- `MAX_FUNCTION_LINES`
|
|
35
|
+
- `MAX_CYCLOMATIC_COMPLEXITY`
|
|
36
|
+
- `BLOCK_ON_MEDIUM_SECURITY_FINDINGS`
|
|
37
|
+
- `DISCUSS_PHASE_REQUIRED_ABOVE_DIFFICULTY`
|
|
38
|
+
- `ANTIPATTERN_SENSITIVITY`
|
|
39
|
+
|
|
40
|
+
### Skills
|
|
41
|
+
- `ALWAYS_LOAD_SKILLS`
|
|
42
|
+
- `DISABLED_SKILLS`
|
|
43
|
+
- `MAX_FULL_SKILL_INJECTIONS`
|
|
44
|
+
|
|
45
|
+
## Non-overridable rules
|
|
46
|
+
Cannot be overridden in MINDFORGE.md:
|
|
47
|
+
- security auto-trigger
|
|
48
|
+
- plan-first rule
|
|
49
|
+
- secret detection gate
|
|
50
|
+
- audit-writing requirement
|
|
51
|
+
- critical security/secret blocking quality gates
|
|
52
|
+
|
|
53
|
+
See ADR-013 for rationale.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# MindForge Monorepo Guide
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
MindForge detects common monorepo setups (npm workspaces, pnpm, Nx, Turborepo, Lerna)
|
|
5
|
+
and builds a workspace manifest for multi-package planning.
|
|
6
|
+
|
|
7
|
+
## Detect workspace
|
|
8
|
+
Run:
|
|
9
|
+
```
|
|
10
|
+
/mindforge:workspace detect
|
|
11
|
+
```
|
|
12
|
+
This writes `.planning/WORKSPACE-MANIFEST.json` and prints package order.
|
|
13
|
+
|
|
14
|
+
## Plan across packages
|
|
15
|
+
Use:
|
|
16
|
+
```
|
|
17
|
+
/mindforge:workspace plan phase N
|
|
18
|
+
```
|
|
19
|
+
Each PLAN file includes `<package>` and `<working-dir>` fields.
|
|
20
|
+
|
|
21
|
+
## Test across packages
|
|
22
|
+
Use:
|
|
23
|
+
```
|
|
24
|
+
/mindforge:workspace test
|
|
25
|
+
```
|
|
26
|
+
Tests run in dependency order, then root integration tests if configured.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# MindForge Persona Customisation
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
MindForge personas are shared and versioned. To tailor them for a specific
|
|
5
|
+
project or phase, use the override system rather than editing the core persona
|
|
6
|
+
files. Overrides are additive and safe to maintain across upgrades.
|
|
7
|
+
|
|
8
|
+
## Where overrides live
|
|
9
|
+
- Project overrides: `.mindforge/personas/overrides/[persona].md`
|
|
10
|
+
- Phase overrides: `.planning/phases/[N]/persona-overrides/[persona].md`
|
|
11
|
+
|
|
12
|
+
Priority order:
|
|
13
|
+
1. Phase override
|
|
14
|
+
2. Project override
|
|
15
|
+
3. Core persona
|
|
16
|
+
|
|
17
|
+
## Override format
|
|
18
|
+
Overrides extend, modify, or remove sections from the base persona.
|
|
19
|
+
Use the following directives:
|
|
20
|
+
|
|
21
|
+
- `## Additional [section]` — append content to the base persona section
|
|
22
|
+
- `## Modified [section]` — replace the base persona section
|
|
23
|
+
- `## Removed [section]` — remove the base persona section
|
|
24
|
+
- `KEY: VALUE` — override specific parameters (e.g., `MAX_FUNCTION_LINES: 60`)
|
|
25
|
+
|
|
26
|
+
## Example override
|
|
27
|
+
|
|
28
|
+
```markdown
|
|
29
|
+
# Developer Persona Override — Payments Service
|
|
30
|
+
# Scope: project
|
|
31
|
+
# Author: Jane Doe
|
|
32
|
+
# Created: 2026-03-20
|
|
33
|
+
|
|
34
|
+
## Additional coding standards
|
|
35
|
+
- All payment flows must be idempotent.
|
|
36
|
+
- All monetary values use integer cents.
|
|
37
|
+
|
|
38
|
+
## Modified conventions
|
|
39
|
+
# Override: "Functions ≤ 40 lines" → allow 60 lines for orchestrators.
|
|
40
|
+
MAX_FUNCTION_LINES: 60
|
|
41
|
+
|
|
42
|
+
## Project-specific forbidden patterns
|
|
43
|
+
- Never call Stripe directly from controllers — use PaymentService only.
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Best practices
|
|
47
|
+
- Keep overrides minimal and specific.
|
|
48
|
+
- Prefer new personas only when the cognitive mode is fundamentally different.
|
|
49
|
+
- Document why an override exists so future maintainers understand its intent.
|
|
50
|
+
- Review overrides at the end of each phase; prune what is no longer relevant.
|
|
51
|
+
|
|
52
|
+
## Validation checklist
|
|
53
|
+
- [ ] Override file is scoped correctly (project vs. phase)
|
|
54
|
+
- [ ] Sections are clearly labeled (Additional / Modified / Removed)
|
|
55
|
+
- [ ] Conflicts are resolved (phase overrides win)
|
|
56
|
+
- [ ] Overrides do not contradict SECURITY.md
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# MindForge Quick Verify (v1.0.0)
|
|
2
|
+
|
|
3
|
+
Use this after installation to confirm everything works.
|
|
4
|
+
|
|
5
|
+
## 1. Health check
|
|
6
|
+
```
|
|
7
|
+
/mindforge:health
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## 2. Create minimal project state
|
|
11
|
+
```
|
|
12
|
+
/mindforge:init-project
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## 3. Verify core files exist
|
|
16
|
+
Expected:
|
|
17
|
+
- `.planning/PROJECT.md`
|
|
18
|
+
- `.planning/STATE.md`
|
|
19
|
+
- `.planning/HANDOFF.json`
|
|
20
|
+
- `.planning/AUDIT.jsonl`
|
|
21
|
+
|
|
22
|
+
## 4. Optional repair
|
|
23
|
+
If anything looks off:
|
|
24
|
+
```
|
|
25
|
+
/mindforge:health --repair
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## 5. Clean success signal
|
|
29
|
+
Run:
|
|
30
|
+
```
|
|
31
|
+
/mindforge:status
|
|
32
|
+
```
|
|
33
|
+
You should see a valid phase status and next action.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# MindForge Audit Events — Reference (v1.0.0)
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
`AUDIT.jsonl` is the append-only record of MindForge operations.
|
|
5
|
+
Each line is a JSON object with a required `event` type and a `session_id`.
|
|
6
|
+
|
|
7
|
+
## Location
|
|
8
|
+
`.planning/AUDIT.jsonl`
|
|
9
|
+
|
|
10
|
+
## Required fields (all events)
|
|
11
|
+
- `id` (UUID v4)
|
|
12
|
+
- `timestamp` (ISO-8601)
|
|
13
|
+
- `event` (string)
|
|
14
|
+
- `agent` (string)
|
|
15
|
+
- `phase` (number or null)
|
|
16
|
+
- `session_id` (string)
|
|
17
|
+
|
|
18
|
+
## Common event types
|
|
19
|
+
### `project_initialised`
|
|
20
|
+
Fields: `project_name`, `tech_stack`, `compliance`
|
|
21
|
+
|
|
22
|
+
### `phase_planned`
|
|
23
|
+
Fields: `plan_count`, `wave_count`, `research_conducted`
|
|
24
|
+
|
|
25
|
+
### `phase_execution_started`
|
|
26
|
+
Fields: `plan_count`, `wave_count`, `dependency_graph_path`
|
|
27
|
+
|
|
28
|
+
### `phase_execution_completed`
|
|
29
|
+
Fields: `tasks_completed`, `tasks_failed`, `verify_status`, `verification_path`
|
|
30
|
+
|
|
31
|
+
### `task_started`
|
|
32
|
+
Fields: `plan`, `task_name`
|
|
33
|
+
|
|
34
|
+
### `task_completed`
|
|
35
|
+
Fields: `plan`, `commit_sha`, `verify_result`
|
|
36
|
+
|
|
37
|
+
### `security_scan_completed`
|
|
38
|
+
Fields: `critical`, `high`, `medium`, `low`, `findings_path`
|
|
39
|
+
|
|
40
|
+
### `gate_result`
|
|
41
|
+
Fields: `gate`, `status`, `detail`
|
|
42
|
+
|
|
43
|
+
### `plugin_installed`
|
|
44
|
+
Fields: `plugin_name`, `version`, `permissions`
|
|
45
|
+
|
|
46
|
+
### `plugin_uninstalled`
|
|
47
|
+
Fields: `plugin_name`
|
|
48
|
+
|
|
49
|
+
## Rotation
|
|
50
|
+
Rotate when file exceeds 10,000 lines. Archive into `.planning/audit-archive/`.
|
|
51
|
+
|
|
52
|
+
## Schema source
|
|
53
|
+
See `.mindforge/audit/AUDIT-SCHEMA.md` for full examples and field definitions.
|