musubix 3.3.4 → 3.3.6

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/.github/AGENTS.md +949 -0
  2. package/.github/prompts/sdd-change-apply.prompt.md +283 -0
  3. package/.github/prompts/sdd-change-archive.prompt.md +241 -0
  4. package/.github/prompts/sdd-change-init.prompt.md +269 -0
  5. package/.github/prompts/sdd-design.prompt.md +250 -0
  6. package/.github/prompts/sdd-implement.prompt.md +387 -0
  7. package/.github/prompts/sdd-requirements.prompt.md +193 -0
  8. package/.github/prompts/sdd-review.prompt.md +155 -0
  9. package/.github/prompts/sdd-security.prompt.md +228 -0
  10. package/.github/prompts/sdd-steering.prompt.md +269 -0
  11. package/.github/prompts/sdd-tasks.prompt.md +255 -0
  12. package/.github/prompts/sdd-test.prompt.md +230 -0
  13. package/.github/prompts/sdd-validate.prompt.md +304 -0
  14. package/.github/skills/musubix-adr-generation/SKILL.md +209 -0
  15. package/.github/skills/musubix-best-practices/SKILL.md +315 -0
  16. package/.github/skills/musubix-c4-design/SKILL.md +162 -0
  17. package/.github/skills/musubix-code-generation/SKILL.md +237 -0
  18. package/.github/skills/musubix-domain-inference/SKILL.md +196 -0
  19. package/.github/skills/musubix-ears-validation/SKILL.md +161 -0
  20. package/.github/skills/musubix-sdd-workflow/SKILL.md +217 -0
  21. package/.github/skills/musubix-technical-writing/SKILL.md +444 -0
  22. package/.github/skills/musubix-test-generation/SKILL.md +212 -0
  23. package/.github/skills/musubix-traceability/SKILL.md +141 -0
  24. package/AGENTS.md +1065 -0
  25. package/LICENSE +21 -0
  26. package/README.ja.md +296 -0
  27. package/README.md +305 -50
  28. package/bin/musubix-mcp.js +15 -0
  29. package/bin/musubix.js +9 -1
  30. package/docs/API-REFERENCE.md +1425 -0
  31. package/docs/GITHUB-ACTIONS-NPM-SETUP.md +132 -0
  32. package/docs/INSTALL-GUIDE.ja.md +459 -0
  33. package/docs/INSTALL-GUIDE.md +459 -0
  34. package/docs/MIGRATION-v3.0.md +324 -0
  35. package/docs/MUSUBI-enhancement_roadmap_20260105.md +651 -0
  36. package/docs/MUSUBIX-v3.0-User-Guide.md +1357 -0
  37. package/docs/MUSUBIXv2.2.0-Manual-outline.md +136 -0
  38. package/docs/MUSUBIXv2.2.0-Manual.md +3123 -0
  39. package/docs/MUSUBIXv2.3.5-Refactering.md +1310 -0
  40. package/docs/MUSUBIv1.6.1-enhancement_roadmap_20260105.md +291 -0
  41. package/docs/MUSUBIv2.2.0-USERGUIDE.md +2079 -0
  42. package/docs/ROADMAP-v1.5.md +116 -0
  43. package/docs/SwarmCoding.md +1284 -0
  44. package/docs/Test-prompt.md +105 -0
  45. package/docs/USER-GUIDE-v1.8.0.md +2371 -0
  46. package/docs/USER-GUIDE.ja.md +2147 -0
  47. package/docs/USER-GUIDE.md +3022 -0
  48. package/docs/YATA-GLOBAL-GUIDE.ja.md +750 -0
  49. package/docs/YATA-GLOBAL-GUIDE.md +595 -0
  50. package/docs/YATA-LOCAL-GUIDE.ja.md +989 -0
  51. package/docs/YATA-LOCAL-GUIDE.md +730 -0
  52. package/docs/adr/0001-real-time-pattern-learning-architecture-for-v1-5-0.md +75 -0
  53. package/docs/adr/0002-pattern-sharing-protocol-for-cross-team-collaborat.md +79 -0
  54. package/docs/adr/0003-owl-2-rl-implementation-strategy-for-advanced-infe.md +90 -0
  55. package/docs/enterprise-knowledge-management.md +1737 -0
  56. package/docs/evolution-from-musubi-to-musubix.md +2170 -0
  57. package/docs/getting-started-with-sdd.md +1602 -0
  58. package/docs/moodle-refactering-codegraph-musubix.md +391 -0
  59. package/docs/moodle-refactering-codegraph.md +278 -0
  60. package/docs/overview/MUSUBIX-CodeGraph.md +322 -0
  61. package/docs/overview/MUSUBIX-Core.md +671 -0
  62. package/docs/overview/MUSUBIX-Decisions.md +494 -0
  63. package/docs/overview/MUSUBIX-FormalVerify.md +566 -0
  64. package/docs/overview/MUSUBIX-Knowledge.md +1231 -0
  65. package/docs/overview/MUSUBIX-Learning.md +837 -0
  66. package/docs/overview/MUSUBIX-MCP-Server.md +535 -0
  67. package/docs/overview/MUSUBIX-Overview.md +264 -0
  68. package/docs/overview/MUSUBIX-Phase1-Complete.md +271 -0
  69. package/docs/overview/MUSUBIX-Phase2-Complete.md +310 -0
  70. package/docs/overview/MUSUBIX-Policy.md +477 -0
  71. package/docs/overview/MUSUBIX-Roadmap-v2.md +399 -0
  72. package/docs/overview/MUSUBIX-Security-Plan.md +939 -0
  73. package/docs/overview/MUSUBIX-Security-v2.1.md +668 -0
  74. package/docs/overview/MUSUBIX-Security.md +891 -0
  75. package/docs/overview/MUSUBIX-YATA.md +666 -0
  76. package/docs/overview/MUSUBIX-v2.2.0-Advanced-Learning.md +513 -0
  77. package/docs/overview/Neuro-SymbolicAI.md +159 -0
  78. package/docs/packages/knowledge.md +594 -0
  79. package/docs/qiita-linux-kernel-knowledge-graph.md +596 -0
  80. package/package.json +55 -51
  81. package/scripts/generate-quality-gate-report.ts +106 -0
  82. package/scripts/postinstall.js +94 -0
  83. package/steering/.musubi-version +1 -0
  84. package/steering/product.ja.md +572 -0
  85. package/steering/project.yml +66 -0
  86. package/steering/rules/constitution.md +491 -0
  87. package/steering/structure.ja.md +503 -0
  88. package/steering/tech.ja.md +208 -0
  89. package/dist/index.d.ts +0 -25
  90. package/dist/index.d.ts.map +0 -1
  91. package/dist/index.js +0 -74
  92. package/dist/index.js.map +0 -1
package/README.md CHANGED
@@ -1,71 +1,326 @@
1
- # musubix
1
+ # MUSUBIX - Neuro-Symbolic AI Integration System
2
2
 
3
- MUSUBIX - Neuro-Symbolic AI Integration System for Software Development
3
+ [![CI](https://github.com/nahisaho/MUSUBIX/actions/workflows/ci.yml/badge.svg)](https://github.com/nahisaho/MUSUBIX/actions/workflows/ci.yml)
4
+ [![npm version](https://img.shields.io/npm/v/musubix.svg)](https://www.npmjs.com/package/musubix)
5
+ [![npm core](https://img.shields.io/npm/v/@nahisaho/musubix-core.svg?label=@nahisaho/musubix-core)](https://www.npmjs.com/package/@nahisaho/musubix-core)
6
+ [![npm mcp](https://img.shields.io/npm/v/@nahisaho/musubix-mcp-server.svg?label=@nahisaho/musubix-mcp-server)](https://www.npmjs.com/package/@nahisaho/musubix-mcp-server)
7
+ [![Node.js Version](https://img.shields.io/badge/node-%3E%3D20.0.0-brightgreen)](https://nodejs.org/)
8
+ [![License](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
9
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5.3-blue)](https://www.typescriptlang.org/)
10
+ [![Tests](https://img.shields.io/badge/tests-1600%2B%20passing-brightgreen)](https://github.com/nahisaho/MUSUBIX)
11
+ [![npm security](https://img.shields.io/npm/v/@nahisaho/musubix-security.svg?label=@nahisaho/musubix-security)](https://www.npmjs.com/package/@nahisaho/musubix-security)
12
+ [![npm dfg](https://img.shields.io/npm/v/@nahisaho/musubix-dfg.svg?label=@nahisaho/musubix-dfg)](https://www.npmjs.com/package/@nahisaho/musubix-dfg)
13
+ [![npm lean](https://img.shields.io/npm/v/@nahisaho/musubix-lean.svg?label=@nahisaho/musubix-lean)](https://www.npmjs.com/package/@nahisaho/musubix-lean)
14
+ [![npm synthesis](https://img.shields.io/npm/v/@nahisaho/musubix-synthesis.svg?label=@nahisaho/musubix-synthesis)](https://www.npmjs.com/package/@nahisaho/musubix-synthesis)
15
+ [![npm library-learner](https://img.shields.io/npm/v/@nahisaho/musubix-library-learner.svg?label=@nahisaho/musubix-library-learner)](https://www.npmjs.com/package/@nahisaho/musubix-library-learner)
16
+ [![npm neural-search](https://img.shields.io/npm/v/@nahisaho/musubix-neural-search.svg?label=@nahisaho/musubix-neural-search)](https://www.npmjs.com/package/@nahisaho/musubix-neural-search)
17
+
18
+ > Next-generation AI Coding System powered by Git-Native Knowledge Integration
19
+ >
20
+ > **v3.0.0** - Git-Native Knowledge System
21
+
22
+ **[日本語版 README](README.ja.md)**
23
+
24
+ ## Overview
25
+
26
+ MUSUBIX is an innovative AI coding system that integrates **Neural (LLM)** and **Symbolic (Knowledge Graph)** reasoning. It combines MUSUBI SDD methodology with Git-native knowledge management to support high-quality software development.
27
+
28
+ ### 🎉 v3.0.0 Highlights
29
+
30
+ - **Git-Native Knowledge** - File-based knowledge graph in `.knowledge/`
31
+ - **Policy Engine** - Executable TypeScript policies in `.policies/`
32
+ - **Decision Records** - ADR management in `docs/decisions/`
33
+ - **2100+ tests** passing across 17 packages
34
+
35
+ ### Features
36
+
37
+ - 🧠 **Neuro-Symbolic Integration** - Fusion of LLM creativity and knowledge graph precision
38
+ - 📂 **Git-Native Knowledge** - File-based knowledge graph management *(v3.0.0)*
39
+ - 📊 **DFG/CFG Analysis** - Data flow and control flow graph extraction for TypeScript/JavaScript
40
+ - 🧮 **Lean 4 Integration** - Formal theorem proving with EARS-to-Lean conversion
41
+ - 📚 **Library Learning** - DreamCoder-style hierarchical abstraction and pattern compression
42
+ - 🔍 **Neural Search** - Neural-guided program synthesis with beam search
43
+ - ⚗️ **Program Synthesis** - DSL-based PBE synthesis with witness functions
44
+ - 🔒 **Symbolic Reasoning** - Formal verification, hallucination detection, constitution enforcement
45
+ - 📝 **EARS Requirements Analysis** - Conversion and validation from natural language to formal requirements
46
+ - 🎨 **Design Pattern Recommendations** - Context-based C4 model and ADR generation
47
+ - ✅ **Test-Driven Development** - Quality assurance through Test-First principles
48
+ - 🔗 **Complete Traceability** - Tracking from requirements to code
49
+ - 🛡️ **Security Analysis** - Vulnerability scanning, secret detection, taint analysis *(v1.8.0)*
50
+ - 🔬 **Formal Verification** - Z3 SMT solver integration, Hoare triple verification *(v1.7.5)*
51
+ - 🖥️ **Interactive REPL** - Command completion, history, session variables *(v1.6.0)*
52
+ - 🔮 **Advanced Inference** - OWL 2 RL reasoning and Datalog evaluation *(v1.4.5)*
53
+
54
+ ## Architecture
55
+
56
+ ```mermaid
57
+ flowchart TB
58
+ subgraph MUSUBIX["MUSUBIX System v3.0"]
59
+ subgraph Packages["Packages"]
60
+ Core["@nahisaho/musubix-core"]
61
+ MCP["@nahisaho/musubix-mcp-server"]
62
+ Security["@nahisaho/musubix-security"]
63
+ end
64
+
65
+ Core <--> MCP
66
+ MCP <--> Security
67
+
68
+ subgraph Integration["Neuro-Symbolic Integration"]
69
+ NSI["LLM Creativity + Git-Native Knowledge"]
70
+ end
71
+
72
+ Core --> Integration
73
+ MCP --> Integration
74
+ end
75
+ ```
76
+
77
+ ## Project Structure
78
+
79
+ | Path | Description |
80
+ |------|-------------|
81
+ | `packages/core/` | Core library (249 modules) |
82
+ | `packages/core/auth/` | Authentication & Authorization |
83
+ | `packages/core/cli/` | CLI Interface |
84
+ | `packages/core/codegen/` | Code Generation & Analysis |
85
+ | `packages/core/design/` | Design Patterns & C4 Models |
86
+ | `packages/core/error/` | Error Handling |
87
+ | `packages/core/explanation/` | Explanation Generation & Visualization |
88
+ | `packages/core/learning/` | Self-Learning & Pattern Extraction |
89
+ | `packages/core/requirements/` | Requirements Analysis & Decomposition |
90
+ | `packages/core/symbolic/` | Symbolic Reasoning |
91
+ | `packages/core/traceability/` | Traceability |
92
+ | `packages/core/types/` | Type Definitions |
93
+ | `packages/core/utils/` | Utilities |
94
+ | `packages/core/validators/` | EARS Validation |
95
+ | `packages/mcp-server/` | MCP Server (35 tools, 5 prompts) |
96
+ | `packages/pattern-mcp/` | Pattern Learning |
97
+ | `packages/ontology-mcp/` | Ontology Engine |
98
+ | `packages/wake-sleep/` | Wake-Sleep Learning |
99
+ | `packages/sdd-ontology/` | SDD Ontology |
100
+ | `packages/security/` | Security Analysis |
101
+ | `packages/formal-verify/` | Formal Verification |
102
+ | `packages/dfg/` | DFG/CFG Extraction - Data Flow Analysis |
103
+ | `packages/lean/` | Lean 4 Integration - Theorem Proving |
104
+ | `packages/library-learner/` | Library Learning - DreamCoder-style |
105
+ | `packages/neural-search/` | Neural Search - Guided Synthesis |
106
+ | `packages/synthesis/` | Program Synthesis - DSL/PBE |
107
+ | `steering/` | Project Memory |
108
+ | `storage/` | Specifications & Artifacts |
109
+ | `templates/` | Templates |
110
+ | `docs/` | Documentation |
111
+
112
+ ## Requirements
113
+
114
+ - Node.js >= 20.0.0
115
+ - npm >= 10.0.0
116
+ - TypeScript >= 5.3
4
117
 
5
118
  ## Installation
6
119
 
120
+ ### npm/npx (Recommended)
121
+
7
122
  ```bash
8
- npm install musubix
123
+ # Global installation
124
+ npm install -g musubix
125
+
126
+ # Run directly with npx
127
+ npx musubix init
128
+ npx musubix --help
129
+
130
+ # Start MCP Server
131
+ npx @nahisaho/musubix-mcp-server
132
+ npx musubix-mcp --transport stdio
9
133
  ```
10
134
 
11
- This will install all MUSUBIX packages:
12
-
13
- - `@nahisaho/musubix-core` - Core library (CLI, EARS validation, code generation)
14
- - `@nahisaho/musubix-mcp-server` - MCP Server (19 tools, 3 prompts)
15
- - `@nahisaho/musubix-security` - Security analysis
16
- - `@nahisaho/musubix-formal-verify` - Formal verification with Z3
17
- - `@nahisaho/musubix-yata-client` - YATA knowledge graph client
18
- - `@nahisaho/yata-local` - Local SQLite-based knowledge graph
19
- - `@nahisaho/yata-global` - Distributed knowledge graph platform
20
- - `@nahisaho/yata-scale` - Distributed sharding and caching
21
- - `@nahisaho/musubix-pattern-mcp` - Pattern learning MCP
22
- - `@nahisaho/musubix-ontology-mcp` - Ontology reasoning MCP
23
- - `@nahisaho/musubix-wake-sleep` - Wake-Sleep learning cycle
24
- - `@nahisaho/musubix-sdd-ontology` - SDD methodology ontology
25
- - `@nahisaho/musubix-dfg` - Data Flow Graph extraction
26
- - `@nahisaho/musubix-lean` - Lean 4 theorem prover integration
27
- - `@nahisaho/musubix-library-learner` - API pattern learning
28
- - `@nahisaho/musubix-neural-search` - Semantic code search
29
- - `@nahisaho/musubix-synthesis` - Program synthesis
30
-
31
- ## Usage
32
-
33
- ### CLI
135
+ ### Scoped Packages
34
136
 
35
137
  ```bash
36
- npx musubix --help
37
- npx musubix init
38
- npx musubix requirements analyze <file>
39
- npx musubix design generate <file>
40
- npx musubix design traceability # REQ↔DES traceability validation (v3.1.0)
41
- npx musubix codegen generate <file>
42
- npx musubix codegen status <spec> # Status transition code generation (v3.1.0)
43
- npx musubix scaffold domain-model <name> # DDD project scaffolding
44
- npx musubix scaffold domain-model <name> -v "Price,Email" # With Value Objects (v3.1.0)
45
- npx musubix scaffold domain-model <name> -s "Order,Task" # With status machines (v3.1.0)
138
+ # Install individual packages
139
+ npm install @nahisaho/musubix-core
140
+ npm install @nahisaho/musubix-mcp-server
141
+ npm install @nahisaho/musubix-yata-client
142
+ npm install @nahisaho/musubix-security
143
+ npm install @nahisaho/musubix-formal-verify
144
+
145
+ # Phase 1: Deep Symbolic Integration
146
+ npm install @nahisaho/musubix-dfg
147
+ npm install @nahisaho/musubix-lean
148
+ npm install @nahisaho/yata-scale
149
+
150
+ # Phase 2: Advanced Learning
151
+ npm install @nahisaho/musubix-library-learner
152
+ npm install @nahisaho/musubix-neural-search
153
+ npm install @nahisaho/musubix-synthesis
154
+ ```
155
+
156
+ ### Build from Source
157
+
158
+ ```bash
159
+ git clone https://github.com/nahisaho/MUSUBIX.git
160
+ cd MUSUBIX
161
+ npm install
162
+ npm run build
163
+ ```
164
+
165
+ ## Development
166
+
167
+ ```bash
168
+ # Build
169
+ npm run build
170
+
171
+ # Run tests
172
+ npm test
173
+
174
+ # Lint
175
+ npm run lint
176
+
177
+ # Type check
178
+ npm run type-check
46
179
  ```
47
180
 
48
- ### Library
181
+ ## Key Features
182
+
183
+ ### Requirements Definition (Article II Compliant)
184
+
185
+ - **EARS Validation**: Easy Approach to Requirements Syntax pattern validation
186
+ - **Interactive Q&A Hearing**: Dialogue-based requirements gathering
187
+ - **Requirements Decomposition**: Breaking down large requirements into implementation units
188
+ - **Related Requirements Search**: Automatic detection of similar and dependent requirements
189
+
190
+ ### Design Generation (Article III Compliant)
49
191
 
50
- ```typescript
51
- import { EarsValidator, CodeGenerator } from 'musubix';
52
- import { security, synthesis, neuralSearch } from 'musubix';
192
+ - **C4 Model Generation**: Context/Container/Component/Code diagrams
193
+ - **ADR Generation**: Architecture Decision Records
194
+ - **Pattern Detection**: Automatic detection and recommendation of design patterns
195
+ - **SOLID Validation**: SOLID principle compliance checking
53
196
 
54
- // Core features
55
- const validator = new EarsValidator();
56
- const result = validator.validate(requirement);
197
+ ### Code Generation & Verification
57
198
 
58
- // Advanced features
59
- const synthesizer = synthesis.createEnhancedPBESynthesizer();
60
- const searcher = neuralSearch.createHybridRanker();
199
+ - **Static Analysis**: Quality metrics and complexity calculation
200
+ - **Security Scanning**: Vulnerability detection
201
+ - **Test Generation**: Unit and integration test generation
202
+ - **Coverage Reporting**: Test coverage measurement
203
+
204
+ ### MCP Server
205
+
206
+ Provides 24 tools (9 SDD + 7 Pattern + 3 Ontology + 5 KGPR) and 3 prompts:
207
+
208
+ ```bash
209
+ # Start MCP Server
210
+ npx @nahisaho/musubix-mcp-server
61
211
  ```
62
212
 
63
213
  ## Documentation
64
214
 
65
- - [User Guide](https://github.com/nahisaho/MUSUBIX/blob/main/docs/USER-GUIDE.md)
66
- - [API Reference](https://github.com/nahisaho/MUSUBIX/blob/main/docs/API-REFERENCE.md)
67
- - [AGENTS.md](https://github.com/nahisaho/MUSUBIX/blob/main/AGENTS.md) - For AI coding agents
215
+ | Document | Description |
216
+ |----------|-------------|
217
+ | [Requirements Specification](storage/specs/REQ-MUSUBIX-001.md) | EARS format functional/non-functional requirements |
218
+ | [Design Document](storage/specs/DES-MUSUBIX-001.md) | C4 model and ADR-based design |
219
+ | [Task Definition](storage/specs/TSK-MUSUBIX-001.md) | 56 tasks sprint plan |
220
+ | [API Reference](docs/API-REFERENCE.md) | Public API specification |
221
+ | [Symbolic Integration](storage/specs/REQ-SYMB-001.md) | Neuro-Symbolic requirements (27 requirements) |
222
+
223
+ ## Symbolic Reasoning Module (v1.2.0)
224
+
225
+ The new symbolic reasoning module provides:
226
+
227
+ ### Phase 1: Foundation
228
+ - **SemanticCodeFilterPipeline** - LLM output semantic validation
229
+ - **HallucinationDetector** - Undefined symbol/invalid import detection
230
+ - **ConstitutionRuleRegistry** - 9 Constitution articles enforcement
231
+ - **ConfidenceEstimator** - AST complexity, requirement coverage scoring
232
+ - **ConfidenceBasedRouter** - Confidence-based routing decisions
233
+ - **ErrorHandler** - Graceful degradation
234
+
235
+ ### Phase 2: Formal Verification
236
+ - **EarsToFormalSpecConverter** - EARS → SMT-LIB conversion
237
+ - **VerificationConditionGenerator** - Verification condition (VC) generation
238
+ - **Z3Adapter** - Z3 SMT solver integration
239
+ - **SecurityScanner** - OWASP patterns, secret detection
240
+
241
+ ### Phase 3: Advanced Features
242
+ - **CandidateRanker** - Multi-criteria candidate scoring
243
+ - **ResultBlender** - Neural/Symbolic result integration (3 strategies)
244
+ - **ExtensibleRuleConfig** - YAML/JSON rule configuration
245
+ - **AuditLogger** - SHA-256 hash-chain tamper detection
246
+ - **PerformanceBudget** - Step-level budgets, SLO metrics
247
+ - **QualityGateValidator** - Automated quality gate validation
248
+
249
+ ## Wake-Sleep Learning Cycle (v1.3.0)
250
+
251
+ Continuous learning system based on the Wake-Sleep algorithm:
252
+
253
+ | Phase | Processing |
254
+ |-------|------------|
255
+ | **Wake** | Code observation → Pattern extraction → Knowledge graph update |
256
+ | **Sleep** | Pattern consolidation → Similar pattern compression → Memory optimization |
257
+
258
+ ### Key Components
259
+ - **WakeSleepCycle** - Learning cycle orchestration
260
+ - **PatternLibrary** - Persistent pattern storage management
261
+ - **PatternOntologyBridge** - Pattern ↔ Ontology bidirectional conversion
262
+ - **N3Store** - RDF/OWL-based knowledge graph storage
263
+
264
+ ### New MCP Tools (7 tools)
265
+ - `pattern_extract` - Extract patterns from code
266
+ - `pattern_compress` - Abstraction and compression of patterns
267
+ - `pattern_store` - Save to pattern library
268
+ - `pattern_query` - Search and retrieve patterns
269
+ - `pattern_consolidate` - Consolidate similar patterns
270
+ - `ontology_query` - Query ontology graph
271
+ - `ontology_infer` - Execute ontology-based inference
272
+
273
+ ## Advanced Inference (v1.4.5)
274
+
275
+ OWL 2 RL profile reasoning and Datalog evaluation engine:
276
+
277
+ ### Inference Components
278
+ - **OWL2RLReasoner** - OWL 2 RL profile compliant inference (20+ built-in rules)
279
+ - **DatalogEngine** - Stratified Datalog evaluation with negation support
280
+ - **InferenceExplainer** - Human-readable inference explanation generator
281
+ - **ProgressReporter** - Real-time progress feedback (500ms interval)
282
+
283
+ ### OWL 2 RL Built-in Rules
284
+ | Category | Rules | Description |
285
+ |----------|-------|-------------|
286
+ | Class Axioms | cax-sco, cax-eqc | Subclass, Equivalent class inference |
287
+ | Property | prp-dom, prp-rng | Domain, Range inference |
288
+ | Property Characteristics | prp-symp, prp-trp, prp-inv | Symmetric, Transitive, Inverse |
289
+ | Equality | eq-ref, eq-sym, eq-trans | sameAs inference |
290
+
291
+ ### Explanation Formats
292
+ - `text` - Plain text explanation
293
+ - `markdown` - Markdown format
294
+ - `html` - HTML format with escaping
295
+
296
+ ## Constitutional Articles (9 Articles)
297
+
298
+ MUSUBIX adheres to the following 9 constitutional articles:
299
+
300
+ 1. **Specification First** - Requirements before implementation
301
+ 2. **Design Before Code** - Design before coding
302
+ 3. **Single Source of Truth** - Project memory is authoritative
303
+ 4. **Traceability** - Tracking from requirements to code
304
+ 5. **Incremental Progress** - Small, frequent deliveries
305
+ 6. **Decision Documentation** - Decisions recorded as ADRs
306
+ 7. **Quality Gates** - Phase validation required
307
+ 8. **User-Centric** - Document user value
308
+ 9. **Continuous Learning** - Retrospectives and improvements
68
309
 
69
310
  ## License
70
311
 
71
- MIT
312
+ MIT License - See [LICENSE](LICENSE) for details
313
+
314
+ ## Author
315
+
316
+ nahisaho
317
+
318
+ ## Changelog
319
+
320
+ See [CHANGELOG.md](CHANGELOG.md)
321
+
322
+ ---
323
+
324
+ **Document ID**: README
325
+ **Version**: 1.8.0
326
+ **Last Updated**: 2026-01-06
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * MUSUBIX MCP Server Entry Point (Root Package)
4
+ *
5
+ * This file delegates to the @nahisaho/musubix-mcp-server package.
6
+ *
7
+ * @see REQ-ARC-003 - MCP Server
8
+ *
9
+ * Usage:
10
+ * npx musubix-mcp
11
+ * musubix-mcp --transport stdio
12
+ */
13
+
14
+ // Forward to the mcp-server package's CLI
15
+ import '@nahisaho/musubix-mcp-server/bin/musubix-mcp.js';
package/bin/musubix.js CHANGED
@@ -1,7 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * MUSUBIX CLI - Delegates to @nahisaho/musubix-core
3
+ * MUSUBIX CLI Entry Point (Root Package)
4
+ *
5
+ * This file re-exports the CLI from @nahisaho/musubix-core package.
4
6
  *
5
7
  * @see REQ-ARC-002 - CLI Interface
8
+ *
9
+ * Usage:
10
+ * npx musubix
11
+ * musubix <command> [options]
6
12
  */
13
+
14
+ // Forward to the core package's CLI
7
15
  import '@nahisaho/musubix-core/bin/musubix.js';