musubix 3.3.8 → 3.3.10

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.
Files changed (92) hide show
  1. package/README.md +50 -305
  2. package/bin/musubix.js +1 -9
  3. package/dist/index.d.ts +25 -0
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.js +74 -0
  6. package/dist/index.js.map +1 -0
  7. package/package.json +49 -55
  8. package/.github/AGENTS.md +0 -949
  9. package/.github/prompts/sdd-change-apply.prompt.md +0 -283
  10. package/.github/prompts/sdd-change-archive.prompt.md +0 -241
  11. package/.github/prompts/sdd-change-init.prompt.md +0 -269
  12. package/.github/prompts/sdd-design.prompt.md +0 -250
  13. package/.github/prompts/sdd-implement.prompt.md +0 -387
  14. package/.github/prompts/sdd-requirements.prompt.md +0 -193
  15. package/.github/prompts/sdd-review.prompt.md +0 -155
  16. package/.github/prompts/sdd-security.prompt.md +0 -228
  17. package/.github/prompts/sdd-steering.prompt.md +0 -269
  18. package/.github/prompts/sdd-tasks.prompt.md +0 -255
  19. package/.github/prompts/sdd-test.prompt.md +0 -230
  20. package/.github/prompts/sdd-validate.prompt.md +0 -304
  21. package/.github/skills/musubix-adr-generation/SKILL.md +0 -209
  22. package/.github/skills/musubix-best-practices/SKILL.md +0 -315
  23. package/.github/skills/musubix-c4-design/SKILL.md +0 -162
  24. package/.github/skills/musubix-code-generation/SKILL.md +0 -237
  25. package/.github/skills/musubix-domain-inference/SKILL.md +0 -196
  26. package/.github/skills/musubix-ears-validation/SKILL.md +0 -161
  27. package/.github/skills/musubix-sdd-workflow/SKILL.md +0 -217
  28. package/.github/skills/musubix-technical-writing/SKILL.md +0 -444
  29. package/.github/skills/musubix-test-generation/SKILL.md +0 -212
  30. package/.github/skills/musubix-traceability/SKILL.md +0 -141
  31. package/AGENTS.md +0 -1065
  32. package/LICENSE +0 -21
  33. package/README.ja.md +0 -296
  34. package/bin/musubix-mcp.js +0 -15
  35. package/docs/API-REFERENCE.md +0 -1425
  36. package/docs/GITHUB-ACTIONS-NPM-SETUP.md +0 -132
  37. package/docs/INSTALL-GUIDE.ja.md +0 -459
  38. package/docs/INSTALL-GUIDE.md +0 -459
  39. package/docs/MIGRATION-v3.0.md +0 -324
  40. package/docs/MUSUBI-enhancement_roadmap_20260105.md +0 -651
  41. package/docs/MUSUBIX-v3.0-User-Guide.md +0 -1357
  42. package/docs/MUSUBIXv2.2.0-Manual-outline.md +0 -136
  43. package/docs/MUSUBIXv2.2.0-Manual.md +0 -3123
  44. package/docs/MUSUBIXv2.3.5-Refactering.md +0 -1310
  45. package/docs/MUSUBIv1.6.1-enhancement_roadmap_20260105.md +0 -291
  46. package/docs/MUSUBIv2.2.0-USERGUIDE.md +0 -2079
  47. package/docs/ROADMAP-v1.5.md +0 -116
  48. package/docs/SwarmCoding.md +0 -1284
  49. package/docs/Test-prompt.md +0 -105
  50. package/docs/USER-GUIDE-v1.8.0.md +0 -2371
  51. package/docs/USER-GUIDE.ja.md +0 -2147
  52. package/docs/USER-GUIDE.md +0 -3022
  53. package/docs/YATA-GLOBAL-GUIDE.ja.md +0 -750
  54. package/docs/YATA-GLOBAL-GUIDE.md +0 -595
  55. package/docs/YATA-LOCAL-GUIDE.ja.md +0 -989
  56. package/docs/YATA-LOCAL-GUIDE.md +0 -730
  57. package/docs/adr/0001-real-time-pattern-learning-architecture-for-v1-5-0.md +0 -75
  58. package/docs/adr/0002-pattern-sharing-protocol-for-cross-team-collaborat.md +0 -79
  59. package/docs/adr/0003-owl-2-rl-implementation-strategy-for-advanced-infe.md +0 -90
  60. package/docs/enterprise-knowledge-management.md +0 -1737
  61. package/docs/evolution-from-musubi-to-musubix.md +0 -2170
  62. package/docs/getting-started-with-sdd.md +0 -1602
  63. package/docs/moodle-refactering-codegraph-musubix.md +0 -391
  64. package/docs/moodle-refactering-codegraph.md +0 -278
  65. package/docs/overview/MUSUBIX-CodeGraph.md +0 -322
  66. package/docs/overview/MUSUBIX-Core.md +0 -671
  67. package/docs/overview/MUSUBIX-Decisions.md +0 -494
  68. package/docs/overview/MUSUBIX-FormalVerify.md +0 -566
  69. package/docs/overview/MUSUBIX-Knowledge.md +0 -1231
  70. package/docs/overview/MUSUBIX-Learning.md +0 -837
  71. package/docs/overview/MUSUBIX-MCP-Server.md +0 -535
  72. package/docs/overview/MUSUBIX-Overview.md +0 -264
  73. package/docs/overview/MUSUBIX-Phase1-Complete.md +0 -271
  74. package/docs/overview/MUSUBIX-Phase2-Complete.md +0 -310
  75. package/docs/overview/MUSUBIX-Policy.md +0 -477
  76. package/docs/overview/MUSUBIX-Roadmap-v2.md +0 -399
  77. package/docs/overview/MUSUBIX-Security-Plan.md +0 -939
  78. package/docs/overview/MUSUBIX-Security-v2.1.md +0 -668
  79. package/docs/overview/MUSUBIX-Security.md +0 -891
  80. package/docs/overview/MUSUBIX-YATA.md +0 -666
  81. package/docs/overview/MUSUBIX-v2.2.0-Advanced-Learning.md +0 -513
  82. package/docs/overview/Neuro-SymbolicAI.md +0 -159
  83. package/docs/packages/knowledge.md +0 -594
  84. package/docs/qiita-linux-kernel-knowledge-graph.md +0 -596
  85. package/scripts/generate-quality-gate-report.ts +0 -106
  86. package/scripts/postinstall.js +0 -94
  87. package/steering/.musubi-version +0 -1
  88. package/steering/product.ja.md +0 -572
  89. package/steering/project.yml +0 -66
  90. package/steering/rules/constitution.md +0 -491
  91. package/steering/structure.ja.md +0 -503
  92. package/steering/tech.ja.md +0 -208
@@ -1,66 +0,0 @@
1
- # MUSUBIX Project Configuration
2
- name: MUSUBIX
3
- description: Neuro-Symbolic AI Integration System - Neural (LLM) + Symbolic (YATA Knowledge Graph)
4
- locale: ja
5
- version: "1.1.15"
6
- created: 2026-01-01
7
- updated: 2026-01-04
8
-
9
- # Technology Stack
10
- tech_stack:
11
- approach: monorepo
12
- languages:
13
- - TypeScript
14
- runtime: Node.js >= 20.0.0
15
- package_manager: npm >= 10.0.0
16
- test_framework: Vitest
17
- build_system: npm workspaces
18
-
19
- # Packages
20
- packages:
21
- - name: "@nahisaho/musubix-core"
22
- path: packages/core
23
- description: Core library - CLI, EARS validation, code generation, design patterns
24
- - name: "@nahisaho/musubix-mcp-server"
25
- path: packages/mcp-server
26
- description: MCP Server - 9 tools, 3 prompts
27
- - name: "@nahisaho/musubix-yata-client"
28
- path: packages/yata-client
29
- description: YATA Client - Knowledge graph integration
30
-
31
- # Domain Support
32
- domains:
33
- count: 62
34
- components: ~430
35
- categories:
36
- - general (13 components)
37
- - manufacturing, logistics, education (8 each)
38
- - travel, telecom, sports, shipping, security, realestate, property, marketing, hotel, healthcare, game, environment, childcare, caregiving, beauty, banking, aviation, archive, agritech, agriculture (7 each)
39
- - warehouse, vehicle, restaurant, recruitment, pharmacy, petcare, music, insurance, hr, fitness, event, ecommerce, accounting (6 each)
40
- - wedding, veterinary, ticketing, survey, subscription, streaming, social, rental, railway, podcast, parking, news, museum, media, library, legal, laundry, iot, government, funeral, energy, election, elearning, crowdfunding, crm, construction, cinema, charity, auction (5 each)
41
-
42
-
43
- # Review Gate Settings (v6.2.0)
44
- reviewGate:
45
- requirements:
46
- earsCheck: true
47
- stakeholderCoverage: true
48
- acceptanceCriteriaRequired: true
49
- design:
50
- c4Required: ['context', 'container', 'component']
51
- adrRequired: true
52
- constitutionalArticles: [1, 2, 7, 8]
53
- implementation:
54
- minCoverage: 80
55
- coverageType: 'line'
56
- lintStrict: true
57
-
58
- # Traceability Settings (v6.2.0)
59
- traceability:
60
- patterns:
61
- - 'REQ-[A-Z0-9]+-\\d{3}'
62
- - 'IMP-\\d+\\.\\d+-\\d{3}(?:-\\d{2})?'
63
- extractFrom:
64
- - 'src/**/*.{ts,js}'
65
- - 'tests/**/*.test.{ts,js}'
66
- outputPath: 'storage/traceability/matrix.yml'
@@ -1,491 +0,0 @@
1
- # Constitutional Governance
2
-
3
- **Version**: 1.0
4
- **Status**: Immutable
5
- **Enforcement**: Mandatory via `constitution-enforcer` skill
6
-
7
- ---
8
-
9
- ## Overview
10
-
11
- This document defines the 9 Constitutional Articles that govern all development activities in this project. These articles are **immutable** and must be enforced at every stage of the SDD workflow.
12
-
13
- **Enforcement Agent**: The `constitution-enforcer` skill validates compliance with these articles before proceeding to implementation.
14
-
15
- ---
16
-
17
- ## Article I: Library-First Principle
18
-
19
- **Statement**: All new features SHALL begin as independent libraries before integration into applications.
20
-
21
- ### Requirements
22
-
23
- - Every feature MUST start as a standalone library
24
- - Libraries MUST have their own test suites
25
- - Libraries MUST be independently deployable
26
- - Libraries MUST NOT depend on application code
27
- - Libraries MAY be published to package registries
28
-
29
- ### Rationale
30
-
31
- - Enforces modularity and reusability
32
- - Prevents tight coupling
33
- - Enables independent testing and versioning
34
- - Facilitates code sharing across projects
35
-
36
- ### Validation Checklist
37
-
38
- - [ ] Feature implemented as library in `/lib` or separate package
39
- - [ ] Library has independent package.json (if applicable)
40
- - [ ] Library has dedicated test suite
41
- - [ ] Library exports public API
42
- - [ ] No imports from application code
43
-
44
- ---
45
-
46
- ## Article II: CLI Interface Mandate
47
-
48
- **Statement**: All libraries SHALL expose functionality through CLI interfaces.
49
-
50
- ### Requirements
51
-
52
- - Every library MUST provide a CLI interface
53
- - CLI MUST expose all primary functionality
54
- - CLI MUST follow consistent argument conventions
55
- - CLI MUST provide help text and usage examples
56
- - CLI MAY delegate to library API
57
-
58
- ### Rationale
59
-
60
- - Enables scriptability and automation
61
- - Facilitates testing and debugging
62
- - Improves developer experience
63
- - Enables integration with CI/CD pipelines
64
-
65
- ### Validation Checklist
66
-
67
- - [ ] Library provides CLI entry point (bin/ or scripts/)
68
- - [ ] CLI documented with --help flag
69
- - [ ] CLI supports common operations
70
- - [ ] CLI uses consistent argument patterns (flags, options)
71
- - [ ] CLI exit codes follow conventions (0=success, non-zero=error)
72
-
73
- ---
74
-
75
- ## Article III: Test-First Imperative
76
-
77
- **Statement**: Tests SHALL be written before implementation (Red-Green-Blue cycle).
78
-
79
- ### Requirements
80
-
81
- - Tests MUST be written before production code
82
- - Tests MUST follow Red-Green-Blue cycle:
83
- 1. **Red**: Write failing test
84
- 2. **Green**: Write minimal code to pass
85
- 3. **Blue**: Refactor with confidence
86
- - Tests MUST cover all EARS requirements
87
- - Test coverage MUST exceed 80%
88
- - Integration tests MUST use real services (see Article IX)
89
-
90
- ### Rationale
91
-
92
- - Ensures requirements are testable
93
- - Prevents over-engineering
94
- - Provides executable specifications
95
- - Enables safe refactoring
96
-
97
- ### Validation Checklist
98
-
99
- - [ ] Tests exist before implementation
100
- - [ ] All EARS requirements have corresponding tests
101
- - [ ] Test coverage ≥ 80%
102
- - [ ] Tests follow Red-Green-Blue evidence (git history)
103
- - [ ] No production code without tests
104
-
105
- ---
106
-
107
- ## Article IV: EARS Requirements Format
108
-
109
- **Statement**: All requirements SHALL use EARS (Easy Approach to Requirements Syntax) format.
110
-
111
- ### Requirements
112
-
113
- - Requirements MUST use one of 5 EARS patterns:
114
- 1. **Event-driven**: `WHEN [event], the [system] SHALL [response]`
115
- 2. **State-driven**: `WHILE [state], the [system] SHALL [response]`
116
- 3. **Unwanted behavior**: `IF [error], THEN the [system] SHALL [response]`
117
- 4. **Optional features**: `WHERE [feature enabled], the [system] SHALL [response]`
118
- 5. **Ubiquitous**: `The [system] SHALL [requirement]`
119
- - Requirements MUST be unambiguous
120
- - Requirements MUST include acceptance criteria
121
- - Requirements MUST be traceable to design and tests
122
-
123
- ### Rationale
124
-
125
- - Eliminates ambiguity
126
- - Improves testability
127
- - Enables traceability
128
- - Standardizes requirements format
129
-
130
- ### Validation Checklist
131
-
132
- - [ ] All requirements use EARS patterns
133
- - [ ] Requirements are unambiguous (single interpretation)
134
- - [ ] Acceptance criteria defined
135
- - [ ] Requirements mapped to tests (see `traceability-auditor`)
136
- - [ ] Requirements reviewed by stakeholders
137
-
138
- **Reference**: See `steering/rules/ears-format.md` for complete EARS guide.
139
-
140
- ---
141
-
142
- ## Article V: Traceability Mandate
143
-
144
- **Statement**: 100% traceability SHALL be maintained between Requirements ↔ Design ↔ Code ↔ Tests.
145
-
146
- ### Requirements
147
-
148
- - Every requirement MUST map to:
149
- - Design decisions (architecture, API, database)
150
- - Implementation (source files, functions)
151
- - Tests (test cases, scenarios)
152
- - Every test MUST reference requirement ID
153
- - Design documents MUST include requirements coverage matrix
154
- - Task breakdowns MUST map to requirements
155
-
156
- ### Rationale
157
-
158
- - Ensures nothing is missed
159
- - Validates completeness
160
- - Enables impact analysis
161
- - Facilitates audits and compliance
162
-
163
- ### Validation Checklist
164
-
165
- - [ ] Requirements have unique IDs (REQ-XXX-NNN)
166
- - [ ] Design documents include requirements matrix
167
- - [ ] Code comments reference requirement IDs
168
- - [ ] Tests reference requirement IDs in descriptions
169
- - [ ] `traceability-auditor` validation passes
170
-
171
- **Enforcement Agent**: Use `traceability-auditor` skill to validate coverage.
172
-
173
- ---
174
-
175
- ## Article VI: Project Memory (Steering System)
176
-
177
- **Statement**: All skills SHALL consult project memory (steering files) before making decisions.
178
-
179
- ### Requirements
180
-
181
- - `steering/structure.md` MUST define architecture patterns
182
- - `steering/tech.md` MUST define technology stack
183
- - `steering/product.md` MUST define business context
184
- - All skills MUST read steering files before executing
185
- - Steering files MUST be kept up-to-date
186
- - Changes to steering REQUIRE stakeholder approval
187
-
188
- ### Rationale
189
-
190
- - Ensures consistency across skills
191
- - Provides project context to AI agents
192
- - Prevents architectural drift
193
- - Enables autonomous decision-making
194
-
195
- ### Validation Checklist
196
-
197
- - [ ] Steering files exist and are current
198
- - [ ] Skill reads steering files before execution
199
- - [ ] Decisions align with steering context
200
- - [ ] Changes to steering are documented
201
- - [ ] Steering sync performed regularly
202
-
203
- **Management Agent**: Use `steering` skill to generate/update project memory.
204
-
205
- ---
206
-
207
- ## Article VII: Simplicity Gate (Phase -1 Gate)
208
-
209
- **Statement**: Projects SHALL start with maximum 3 sub-projects initially.
210
-
211
- ### Requirements
212
-
213
- - Initial architecture MUST NOT exceed 3 projects
214
- - Projects = independently deployable units
215
- - Additional projects require Phase -1 Gate approval
216
- - Complexity MUST be justified with:
217
- - Business requirements
218
- - Technical constraints
219
- - Team capacity analysis
220
-
221
- ### Rationale
222
-
223
- - Prevents premature complexity
224
- - Reduces coordination overhead
225
- - Enables faster iteration
226
- - Forces prioritization
227
-
228
- ### Validation Checklist
229
-
230
- - [ ] Project count ≤ 3 initially
231
- - [ ] Each project has clear purpose
232
- - [ ] Projects are independently deployable
233
- - [ ] Additional projects require approval gate
234
- - [ ] Complexity justified in design.md
235
-
236
- **Phase -1 Gate**: Requires `system-architect` + `project-manager` approval before exceeding 3 projects.
237
-
238
- ---
239
-
240
- ## Article VIII: Anti-Abstraction Gate (Phase -1 Gate)
241
-
242
- **Statement**: Framework features SHALL be used directly without custom abstraction layers.
243
-
244
- ### Requirements
245
-
246
- - MUST use framework APIs directly
247
- - MUST NOT create custom abstractions over frameworks
248
- - MUST NOT build "wrapper libraries" around frameworks
249
- - Abstractions require Phase -1 Gate approval with:
250
- - Multi-framework support justification
251
- - Team expertise analysis
252
- - Migration path documentation
253
-
254
- ### Rationale
255
-
256
- - Prevents over-engineering
257
- - Reduces maintenance burden
258
- - Leverages framework best practices
259
- - Enables framework updates
260
-
261
- ### Validation Checklist
262
-
263
- - [ ] Framework APIs used directly in application code
264
- - [ ] No custom wrapper libraries around frameworks
265
- - [ ] Framework-specific features leveraged
266
- - [ ] Abstractions justified with multi-framework need
267
- - [ ] Team has framework expertise
268
-
269
- **Phase -1 Gate**: Requires `system-architect` + `software-developer` approval for abstraction layers.
270
-
271
- **Example Violations**:
272
-
273
- - Creating `MyDatabase` wrapper around Prisma/TypeORM
274
- - Building custom `HttpClient` wrapper around axios/fetch
275
- - Implementing custom `Logger` abstraction over framework logging
276
-
277
- **Valid Abstractions**:
278
-
279
- - Multi-framework support (e.g., database library supporting Prisma AND TypeORM)
280
- - Domain-specific abstractions (e.g., `PaymentGateway` interface with multiple providers)
281
-
282
- ---
283
-
284
- ## Article IX: Integration-First Testing
285
-
286
- **Statement**: Integration tests SHALL use real services; mocks are discouraged.
287
-
288
- ### Requirements
289
-
290
- - Integration tests MUST use real databases, APIs, services
291
- - Test databases MUST be isolated (containers, test schemas)
292
- - External APIs MUST use sandbox/test environments
293
- - Mocks ALLOWED only when:
294
- - External service unavailable in test environment
295
- - External service has usage limits/costs
296
- - External service has no test environment
297
- - Mock usage REQUIRES justification in test documentation
298
-
299
- ### Rationale
300
-
301
- - Tests real system behavior
302
- - Catches integration issues early
303
- - Validates actual service interactions
304
- - Builds confidence in deployment
305
-
306
- ### Validation Checklist
307
-
308
- - [ ] Integration tests use real databases (Docker, test schema)
309
- - [ ] External APIs use test/sandbox environments
310
- - [ ] Mocks justified with unavailability/cost reasons
311
- - [ ] Test data cleanup automated
312
- - [ ] Tests pass against real services
313
-
314
- **Tools**: Docker Compose, Testcontainers, test database schemas
315
-
316
- ---
317
-
318
- ## Article X: Implementation Prerequisites (v3.0.9)
319
-
320
- **Statement**: Implementation SHALL NOT begin without approved requirements, design, and task breakdown documents.
321
-
322
- ### Requirements
323
-
324
- - **要件定義書 (Phase 1)** MUST exist and be approved before implementation
325
- - **設計書 (Phase 2)** MUST exist and be approved before implementation
326
- - **タスク分解 (Phase 3)** MUST exist and be approved before implementation
327
- - Direct transition from design to implementation is **ABSOLUTELY FORBIDDEN**
328
- - Each phase MUST have at least one artifact (document)
329
- - All previous phases MUST be in 'approved' status
330
-
331
- ### Critical Rule
332
-
333
- ```
334
- ⛔ FORBIDDEN: Phase 2 (設計) → Phase 4 (実装)
335
- ✅ REQUIRED: Phase 2 (設計) → Phase 3 (タスク分解) → Phase 4 (実装)
336
- ```
337
-
338
- ### Prerequisite Checks
339
-
340
- Before starting implementation, `workflow-engine` validates:
341
-
342
- 1. ✅ Phase 1 (requirements) is approved with artifacts
343
- 2. ✅ Phase 2 (design) is approved with artifacts
344
- 3. ✅ Phase 3 (task-breakdown) is approved with artifacts
345
-
346
- If ANY check fails, implementation is BLOCKED with detailed error message.
347
-
348
- ### Rationale
349
-
350
- - Prevents ad-hoc implementation without planning
351
- - Ensures traceability chain: REQ → DES → TSK → CODE
352
- - Reduces rework and technical debt
353
- - Enforces disciplined software development
354
- - Supports audit and compliance requirements
355
-
356
- ### Validation Checklist
357
-
358
- - [ ] Requirements document exists in storage/specs/
359
- - [ ] Design document exists in storage/design/
360
- - [ ] Task breakdown exists in storage/tasks/
361
- - [ ] All three phases show 'approved' status
362
- - [ ] Traceability links verified (REQ-* → DES-* → TSK-*)
363
-
364
- ### Enforcement
365
-
366
- ```typescript
367
- // workflow-engine/PhaseController.ts
368
- if (targetPhase === 'implementation') {
369
- const prereqCheck = checkImplementationPrerequisites(workflow);
370
- if (!prereqCheck.canProceed) {
371
- return {
372
- success: false,
373
- error: 'Prerequisites not met',
374
- message: prereqCheck.message,
375
- };
376
- }
377
- }
378
- ```
379
-
380
- ### Error Messages
381
-
382
- When prerequisites are not met:
383
-
384
- ```
385
- ⛔ 実装を開始できません。以下が不足しています:
386
- - 要件定義書 (Phase 1が未承認)
387
- - 設計書 (Phase 2が未承認)
388
- - タスク分解 (Phase 3が未承認)
389
- ```
390
-
391
- **Powered by**: `@nahisaho/musubix-workflow-engine` v3.0.9+
392
-
393
- ---
394
-
395
- ## Phase -1 Gates
396
-
397
- **Phase -1 Gates** are validation checkpoints that occur BEFORE implementation begins. They enforce constitutional compliance.
398
-
399
- ### Gate Triggers
400
-
401
- Gates are triggered when:
402
-
403
- - Project count exceeds 3 (Article VII)
404
- - Custom abstraction layers proposed (Article VIII)
405
- - EARS requirements incomplete (Article IV)
406
- - Traceability gaps detected (Article V)
407
-
408
- ### Gate Process
409
-
410
- 1. **Detection**: `constitution-enforcer` skill detects violation
411
- 2. **Documentation**: Proposer documents justification
412
- 3. **Review**: Required skills review proposal
413
- 4. **Approval**: Stakeholders approve/reject
414
- 5. **Proceed**: Implementation continues only after approval
415
-
416
- ### Required Reviewers
417
-
418
- | Gate | Required Skills | Stakeholders |
419
- | ------------------------------- | ---------------------------------------- | --------------------------- |
420
- | Simplicity (Article VII) | `system-architect`, `project-manager` | Tech lead, Product owner |
421
- | Anti-Abstraction (Article VIII) | `system-architect`, `software-developer` | Tech lead, Senior engineer |
422
- | EARS Compliance (Article IV) | `requirements-analyst` | Product owner, QA lead |
423
- | Traceability (Article V) | `traceability-auditor` | QA lead, Compliance officer |
424
-
425
- ---
426
-
427
- ## Enforcement
428
-
429
- ### Validation Agent
430
-
431
- The `constitution-enforcer` skill automatically validates compliance:
432
-
433
- ```bash
434
- # Validate before implementation
435
- @constitution-enforcer validate requirements.md
436
- @constitution-enforcer validate design.md
437
- ```
438
-
439
- ### Validation Stages
440
-
441
- | Stage | Articles Validated | Trigger |
442
- | -------------- | -------------------- | ----------------- |
443
- | Requirements | IV, V | Before design |
444
- | Design | I, II, VI, VII, VIII | Before tasks |
445
- | Implementation | III, V | Before commit |
446
- | Testing | III, V, IX | Before deployment |
447
-
448
- ### Violation Response
449
-
450
- 1. **Blocker**: Implementation MUST NOT proceed
451
- 2. **Documentation**: Violation documented in design.md
452
- 3. **Resolution**: Either fix violation OR trigger Phase -1 Gate
453
- 4. **Re-validation**: `constitution-enforcer` re-runs validation
454
-
455
- ---
456
-
457
- ## Amendment Process
458
-
459
- **Constitutional articles are IMMUTABLE**. Amendments require:
460
-
461
- 1. Unanimous stakeholder agreement
462
- 2. Documentation of rationale
463
- 3. Update to this file with version increment
464
- 4. Update to `constitution-enforcer` skill validation logic
465
- 5. Communication to all team members
466
-
467
- **Version History**:
468
-
469
- - v1.0 (Initial) - 9 Articles established
470
- - v1.1 (2026-01-12) - Article X: Implementation Prerequisites added
471
-
472
- ---
473
-
474
- ## Summary
475
-
476
- | Article | Principle | Enforced By |
477
- | ------- | ------------------- | ----------------------------------------------- |
478
- | I | Library-First | `constitution-enforcer` |
479
- | II | CLI Interface | `constitution-enforcer` |
480
- | III | Test-First | `constitution-enforcer`, `test-engineer` |
481
- | IV | EARS Format | `constitution-enforcer`, `requirements-analyst` |
482
- | V | Traceability | `traceability-auditor` |
483
- | VI | Project Memory | All skills (steering system) |
484
- | VII | Simplicity Gate | `constitution-enforcer` (Phase -1) |
485
- | VIII | Anti-Abstraction | `constitution-enforcer` (Phase -1) |
486
- | IX | Integration Testing | `test-engineer` |
487
- | **X** | **Implementation Prerequisites** | `workflow-engine`, `PhaseController` |
488
-
489
- ---
490
-
491
- **Powered by MUSUBI** - Constitutional governance for specification-driven development.