musubix 1.1.15 → 1.3.1

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/AGENTS.md CHANGED
@@ -8,15 +8,15 @@
8
8
 
9
9
  | 項目 | 詳細 |
10
10
  |------|------|
11
- | **バージョン** | 1.1.11 |
11
+ | **バージョン** | 1.3.0 |
12
12
  | **言語** | TypeScript |
13
13
  | **ランタイム** | Node.js >= 20.0.0 |
14
14
  | **パッケージマネージャ** | npm >= 10.0.0 |
15
15
  | **ビルドシステム** | モノレポ(npm workspaces) |
16
16
  | **テストフレームワーク** | Vitest |
17
- | **テスト数** | 459 (全合格) |
18
- | **コンポーネント数** | 224 (62ドメイン対応) |
19
- | **Agent Skills** | 9 (Claude Code対応) |
17
+ | **テスト数** | 752 (全合格) |
18
+ | **コンポーネント数** | 243 (62ドメイン対応) |
19
+ | **Agent Skills** | 12 (Claude Code対応) |
20
20
 
21
21
  ---
22
22
 
@@ -28,14 +28,22 @@
28
28
  packages/
29
29
  ├── core/ # @nahisaho/musubix-core
30
30
  ├── mcp-server/ # @nahisaho/musubix-mcp-server
31
- └── yata-client/ # @nahisaho/musubix-yata-client
31
+ ├── yata-client/ # @nahisaho/musubix-yata-client
32
+ ├── pattern-mcp/ # @nahisaho/musubix-pattern-mcp (NEW!)
33
+ ├── ontology-mcp/ # @nahisaho/musubix-ontology-mcp (NEW!)
34
+ ├── wake-sleep/ # @nahisaho/musubix-wake-sleep (NEW!)
35
+ └── sdd-ontology/ # @nahisaho/musubix-sdd-ontology (NEW!)
32
36
  ```
33
37
 
34
38
  | パッケージ | npm | 役割 |
35
39
  |-----------|-----|------|
36
40
  | `packages/core/` | `@nahisaho/musubix-core` | コアライブラリ - CLI、EARS検証、コード生成、設計パターン |
37
- | `packages/mcp-server/` | `@nahisaho/musubix-mcp-server` | MCPサーバー - 9ツール、3プロンプト |
41
+ | `packages/mcp-server/` | `@nahisaho/musubix-mcp-server` | MCPサーバー - 16ツール、3プロンプト |
38
42
  | `packages/yata-client/` | `@nahisaho/musubix-yata-client` | YATAクライアント - 知識グラフ連携 |
43
+ | `packages/pattern-mcp/` | `@nahisaho/musubix-pattern-mcp` | パターン学習 - 抽出・圧縮・ライブラリ |
44
+ | `packages/ontology-mcp/` | `@nahisaho/musubix-ontology-mcp` | オントロジー - N3Store・推論エンジン |
45
+ | `packages/wake-sleep/` | `@nahisaho/musubix-wake-sleep` | Wake-Sleep学習サイクル |
46
+ | `packages/sdd-ontology/` | `@nahisaho/musubix-sdd-ontology` | SDD方法論オントロジー |
39
47
 
40
48
  ### Core パッケージモジュール
41
49
 
@@ -47,8 +55,9 @@ packages/core/src/
47
55
  ├── design/ # 設計パターン・C4モデル
48
56
  ├── error/ # エラーハンドリング
49
57
  ├── explanation/ # 説明生成・可視化
50
- ├── learning/ # 自己学習システム(NEW!)
58
+ ├── learning/ # 自己学習システム
51
59
  ├── requirements/ # 要件分析・分解
60
+ ├── symbolic/ # シンボリック推論(v1.2.0 NEW!)
52
61
  ├── traceability/ # トレーサビリティ
53
62
  ├── types/ # 型定義
54
63
  ├── utils/ # ユーティリティ
@@ -121,7 +130,9 @@ npx @nahisaho/musubix-mcp-server
121
130
  npx musubix-mcp --transport stdio
122
131
  ```
123
132
 
124
- ### ツール一覧(9ツール)
133
+ ### ツール一覧(16ツール)
134
+
135
+ #### SDD基本ツール(9ツール)
125
136
 
126
137
  | ツール名 | 説明 |
127
138
  |---------|------|
@@ -135,6 +146,18 @@ npx musubix-mcp --transport stdio
135
146
  | `sdd_validate_constitution` | 9憲法条項への準拠検証 |
136
147
  | `sdd_validate_traceability` | 要件↔設計↔タスクのトレーサビリティ検証 |
137
148
 
149
+ #### パターン統合ツール(7ツール)- v1.3.0 NEW!
150
+
151
+ | ツール名 | 説明 |
152
+ |---------|------|
153
+ | `pattern_extract` | コードからパターンを抽出 |
154
+ | `pattern_compress` | パターンの抽象化・圧縮 |
155
+ | `pattern_store` | パターンライブラリへの保存 |
156
+ | `pattern_query` | パターンの検索・取得 |
157
+ | `pattern_consolidate` | 類似パターンの統合 |
158
+ | `ontology_query` | オントロジーグラフへのクエリ |
159
+ | `ontology_infer` | オントロジーによる推論実行 |
160
+
138
161
  ### プロンプト一覧(3プロンプト)
139
162
 
140
163
  | プロンプト名 | 説明 |
@@ -275,9 +298,29 @@ npx musubix codegen generate <design.md> --output src/
275
298
  フィードバック → パターン候補 → 閾値超過 → パターン登録 → 推論に適用
276
299
  ```
277
300
 
301
+ ### 6. Wake-Sleep学習サイクル(v1.3.0 NEW!)
302
+
303
+ Wake-Sleepアルゴリズムに基づいた継続的学習システム:
304
+
305
+ | フェーズ | 処理内容 |
306
+ |---------|----------|
307
+ | **Wake** | コード観察 → パターン抽出 → 知識グラフ更新 |
308
+ | **Sleep** | パターン統合 → 類似パターン圧縮 → メモリ最適化 |
309
+
310
+ ```
311
+ Wake Phase: observe() → extractPatterns() → updateKnowledge()
312
+ Sleep Phase: consolidate() → compress() → optimize()
313
+ ```
314
+
315
+ **主要コンポーネント**:
316
+ - `WakeSleepCycle`: 学習サイクル全体の制御
317
+ - `PatternLibrary`: 学習済みパターンの永続化管理
318
+ - `PatternOntologyBridge`: パターン↔オントロジー相互変換
319
+ - `N3Store`: RDF/OWLベースの知識グラフストレージ
320
+
278
321
  ---
279
322
 
280
- ## 学習済みベストプラクティス(v1.1.10 Updated!)
323
+ ## 📚 学習済みベストプラクティス(v1.1.10 Updated!)
281
324
 
282
325
  Project-07〜14の実装から学習したパターンです。
283
326
 
@@ -424,6 +467,6 @@ npx musubix learn best-practices --format markdown
424
467
  ---
425
468
 
426
469
  **Agent**: GitHub Copilot / Claude
427
- **Last Updated**: 2026-01-04
428
- **Version**: 1.1.10
470
+ **Last Updated**: 2025-01-10
471
+ **Version**: 1.3.0
429
472
  **Repository**: https://github.com/nahisaho/MUSUBIX
package/README.ja.md CHANGED
@@ -6,11 +6,11 @@
6
6
  [![Node.js Version](https://img.shields.io/badge/node-%3E%3D20.0.0-brightgreen)](https://nodejs.org/)
7
7
  [![License](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
8
8
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.3-blue)](https://www.typescriptlang.org/)
9
- [![Tests](https://img.shields.io/badge/tests-439%20passing-brightgreen)](https://github.com/nahisaho/MUSUBIX)
9
+ [![Tests](https://img.shields.io/badge/tests-752%20passing-brightgreen)](https://github.com/nahisaho/MUSUBIX)
10
10
 
11
11
  > MUSUBI × YATA 統合による次世代AIコーディングシステム
12
12
  >
13
- > **v1.1.9** - EARSパーサーMarkdown対応、ベストプラクティスCLI強化
13
+ > **v1.3.0** - Wake-Sleep学習サイクル統合完了(S1-S3スプリント)
14
14
 
15
15
  ## 概要
16
16
 
@@ -19,15 +19,17 @@ MUSUBIXは、**ニューラル(LLM)** と **シンボリック(知識グ
19
19
  ### 特徴
20
20
 
21
21
  - 🧠 **ニューロシンボリック統合** - LLMの創造性とYATA知識グラフの厳密性を融合
22
- - 📋 **EARS形式要件分析** - 自然言語から正式な要件への変換・検証
22
+ - **シンボリック推論** - 形式検証、幻覚検出、憲法強制
23
+ - 📝 **EARS形式要件分析** - 自然言語から正式な要件への変換・検証
23
24
  - 🎨 **設計パターン推奨** - コンテキストに基づくC4モデル・ADR生成
24
25
  - ✅ **テスト駆動開発** - Test-First原則による品質保証
25
26
  - 🔗 **完全なトレーサビリティ** - 要件からコードまでの追跡可能性
26
27
  - 💬 **一問一答形式ヒアリング** - 対話的な要件定義サポート
27
28
  - 🌐 **多言語対応(i18n)** - 日本語・英語対応
28
- - 🔒 **セキュリティスキャン** - 脆弱性検出・認証管理
29
+ - 🔒 **セキュリティスキャン** - 脆弱性検出、シークレットスキャン、OWASPパターン
29
30
  - 📚 **自己学習システム** - フィードバック収集とパターン抽出による適応的改善
30
31
  - 🏗️ **C4コード生成** - C4設計ドキュメントからTypeScriptスケルトン生成
32
+ - ⚙️ **品質ゲート** - フェーズ移行前の自動品質検証
31
33
 
32
34
  ## アーキテクチャ
33
35
 
@@ -57,7 +59,7 @@ flowchart TB
57
59
 
58
60
  | パス | 説明 |
59
61
  |------|------|
60
- | `packages/core/` | コアライブラリ(56モジュール) |
62
+ | `packages/core/` | コアライブラリ(224モジュール) |
61
63
  | `packages/core/auth/` | 認証・認可 |
62
64
  | `packages/core/cli/` | CLIインターフェース |
63
65
  | `packages/core/codegen/` | コード生成・解析 |
@@ -66,12 +68,17 @@ flowchart TB
66
68
  | `packages/core/explanation/` | 説明生成・可視化 |
67
69
  | `packages/core/learning/` | 自己学習・パターン抽出 |
68
70
  | `packages/core/requirements/` | 要件分析・分解 |
71
+ | `packages/core/symbolic/` | シンボリック推論 |
69
72
  | `packages/core/traceability/` | トレーサビリティ |
70
73
  | `packages/core/types/` | 型定義 |
71
74
  | `packages/core/utils/` | ユーティリティ |
72
75
  | `packages/core/validators/` | EARS検証 |
73
- | `packages/mcp-server/` | MCPサーバー(34 tools, 3 prompts) |
76
+ | `packages/mcp-server/` | MCPサーバー(16 tools, 3 prompts) |
74
77
  | `packages/yata-client/` | YATA クライアント |
78
+ | `packages/pattern-mcp/` | **パターン学習(NEW!)** |
79
+ | `packages/ontology-mcp/` | **オントロジーエンジン(NEW!)** |
80
+ | `packages/wake-sleep/` | **Wake-Sleep学習(NEW!)** |
81
+ | `packages/sdd-ontology/` | **SDDオントロジー(NEW!)** |
75
82
  | `steering/` | プロジェクトメモリ |
76
83
  | `storage/` | 仕様書・成果物 |
77
84
  | `templates/` | テンプレート |
@@ -159,12 +166,12 @@ npm run type-check
159
166
 
160
167
  ### MCPサーバー
161
168
 
162
- 34個のツールと3つのプロンプトを提供:
169
+ 16個のツール(SDD 9個 + パターン 7個)と3つのプロンプトを提供:
163
170
 
164
- \`\`\`bash
171
+ ```bash
165
172
  # MCPサーバー起動
166
173
  npx @nahisaho/musubix-mcp-server
167
- \`\`\`
174
+ ```
168
175
 
169
176
  ## ドキュメント
170
177
 
@@ -174,6 +181,57 @@ npx @nahisaho/musubix-mcp-server
174
181
  | [設計書](storage/specs/DES-MUSUBIX-001.md) | C4モデル・ADRベースの設計 |
175
182
  | [タスク定義書](storage/specs/TSK-MUSUBIX-001.md) | 56タスクのスプリント計画 |
176
183
  | [APIリファレンス](docs/API-REFERENCE.md) | 公開API仕様 |
184
+ | [シンボリック統合](storage/specs/REQ-SYMB-001.md) | Neuro-Symbolic要件(27要件) |
185
+
186
+ ## シンボリック推論モジュール(v1.2.0)
187
+
188
+ 新しいシンボリック推論モジュール:
189
+
190
+ ### Phase 1: 基盤
191
+ - **SemanticCodeFilterPipeline** - LLM出力のセマンティック検証
192
+ - **HallucinationDetector** - 未定義シンボル・無効インポートの検出
193
+ - **ConstitutionRuleRegistry** - 9憲法条項の強制
194
+ - **ConfidenceEstimator** - AST複雑度、要件カバレッジのスコアリング
195
+ - **ConfidenceBasedRouter** - 信頼度ベースのルーティング決定
196
+ - **ErrorHandler** - グレースフルデグラデーション
197
+
198
+ ### Phase 2: 形式検証
199
+ - **EarsToFormalSpecConverter** - EARS → SMT-LIB変換
200
+ - **VerificationConditionGenerator** - 検証条件(VC)生成
201
+ - **Z3Adapter** - Z3 SMTソルバー統合
202
+ - **SecurityScanner** - OWASPパターン、シークレット検出
203
+
204
+ ### Phase 3: 高度機能
205
+ - **CandidateRanker** - 複数基準による候補スコアリング
206
+ - **ResultBlender** - Neural/Symbolic結果統合(3戦略)
207
+ - **ExtensibleRuleConfig** - YAML/JSONルール設定
208
+ - **AuditLogger** - SHA-256ハッシュチェーン改ざん検出
209
+ - **PerformanceBudget** - 段階別予算、SLOメトリクス
210
+ - **QualityGateValidator** - 自動品質ゲート検証
211
+
212
+ ## Wake-Sleep学習サイクル(v1.3.0)
213
+
214
+ Wake-Sleepアルゴリズムに基づく継続的学習システム:
215
+
216
+ | フェーズ | 処理内容 |
217
+ |---------|----------|
218
+ | **Wake** | コード観察 → パターン抽出 → 知識グラフ更新 |
219
+ | **Sleep** | パターン統合 → 類似パターン圧縮 → メモリ最適化 |
220
+
221
+ ### 主要コンポーネント
222
+ - **WakeSleepCycle** - 学習サイクルのオーケストレーション
223
+ - **PatternLibrary** - 学習済みパターンの永続化管理
224
+ - **PatternOntologyBridge** - パターン↔オントロジー相互変換
225
+ - **N3Store** - RDF/OWLベースの知識グラフストレージ
226
+
227
+ ### 新MCPツール(7ツール)
228
+ - `pattern_extract` - コードからパターンを抽出
229
+ - `pattern_compress` - パターンの抽象化・圧縮
230
+ - `pattern_store` - パターンライブラリへの保存
231
+ - `pattern_query` - パターンの検索・取得
232
+ - `pattern_consolidate` - 類似パターンの統合
233
+ - `ontology_query` - オントロジーグラフへのクエリ
234
+ - `ontology_infer` - オントロジーによる推論実行
177
235
 
178
236
  ## 憲法(9条)
179
237
 
@@ -204,5 +262,5 @@ nahisaho
204
262
  ---
205
263
 
206
264
  **文書ID**: README
207
- **バージョン**: 1.0.20
265
+ **バージョン**: 1.3.0
208
266
  **最終更新**: 2026-01-05
package/README.md CHANGED
@@ -7,11 +7,11 @@
7
7
  [![Node.js Version](https://img.shields.io/badge/node-%3E%3D20.0.0-brightgreen)](https://nodejs.org/)
8
8
  [![License](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
9
9
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.3-blue)](https://www.typescriptlang.org/)
10
- [![Tests](https://img.shields.io/badge/tests-459%20passing-brightgreen)](https://github.com/nahisaho/MUSUBIX)
10
+ [![Tests](https://img.shields.io/badge/tests-752%20passing-brightgreen)](https://github.com/nahisaho/MUSUBIX)
11
11
 
12
12
  > Next-generation AI Coding System powered by MUSUBI × YATA Integration
13
13
  >
14
- > **v1.1.10** - New Best Practices from Project-13/14, Enhanced Code Generator
14
+ > **v1.3.0** - Wake-Sleep Learning Cycle Integration Complete (S1-S3 Sprint)
15
15
 
16
16
  **[日本語版 README](README.ja.md)**
17
17
 
@@ -22,15 +22,17 @@ MUSUBIX is an innovative AI coding system that integrates **Neural (LLM)** and *
22
22
  ### Features
23
23
 
24
24
  - 🧠 **Neuro-Symbolic Integration** - Fusion of LLM creativity and YATA knowledge graph precision
25
- - 📋 **EARS Requirements Analysis** - Conversion and validation from natural language to formal requirements
25
+ - **Symbolic Reasoning** - Formal verification, hallucination detection, constitution enforcement
26
+ - 📝 **EARS Requirements Analysis** - Conversion and validation from natural language to formal requirements
26
27
  - 🎨 **Design Pattern Recommendations** - Context-based C4 model and ADR generation
27
28
  - ✅ **Test-Driven Development** - Quality assurance through Test-First principles
28
29
  - 🔗 **Complete Traceability** - Tracking from requirements to code
29
30
  - 💬 **Interactive Q&A Hearing** - Dialogue-based requirements gathering support
30
31
  - 🌐 **Internationalization (i18n)** - Japanese and English support
31
- - 🔒 **Security Scanning** - Vulnerability detection and authentication management
32
+ - 🔒 **Security Scanning** - Vulnerability detection, secret scanning, OWASP patterns
32
33
  - 📚 **Self-Learning System** - Adaptive improvement through feedback collection and pattern extraction
33
34
  - 🏗️ **C4 Code Generation** - Generate TypeScript skeleton from C4 design documents
35
+ - ⚙️ **Quality Gates** - Automated quality validation before phase transitions
34
36
 
35
37
  ## Architecture
36
38
 
@@ -60,7 +62,7 @@ flowchart TB
60
62
 
61
63
  | Path | Description |
62
64
  |------|-------------|
63
- | `packages/core/` | Core library (56 modules) |
65
+ | `packages/core/` | Core library (224 modules) |
64
66
  | `packages/core/auth/` | Authentication & Authorization |
65
67
  | `packages/core/cli/` | CLI Interface |
66
68
  | `packages/core/codegen/` | Code Generation & Analysis |
@@ -69,12 +71,17 @@ flowchart TB
69
71
  | `packages/core/explanation/` | Explanation Generation & Visualization |
70
72
  | `packages/core/learning/` | Self-Learning & Pattern Extraction |
71
73
  | `packages/core/requirements/` | Requirements Analysis & Decomposition |
74
+ | `packages/core/symbolic/` | Symbolic Reasoning |
72
75
  | `packages/core/traceability/` | Traceability |
73
76
  | `packages/core/types/` | Type Definitions |
74
77
  | `packages/core/utils/` | Utilities |
75
78
  | `packages/core/validators/` | EARS Validation |
76
- | `packages/mcp-server/` | MCP Server (34 tools, 3 prompts) |
79
+ | `packages/mcp-server/` | MCP Server (16 tools, 3 prompts) |
77
80
  | `packages/yata-client/` | YATA Client |
81
+ | `packages/pattern-mcp/` | **Pattern Learning (NEW!)** |
82
+ | `packages/ontology-mcp/` | **Ontology Engine (NEW!)** |
83
+ | `packages/wake-sleep/` | **Wake-Sleep Learning (NEW!)** |
84
+ | `packages/sdd-ontology/` | **SDD Ontology (NEW!)** |
78
85
  | `steering/` | Project Memory |
79
86
  | `storage/` | Specifications & Artifacts |
80
87
  | `templates/` | Templates |
@@ -162,7 +169,7 @@ npm run type-check
162
169
 
163
170
  ### MCP Server
164
171
 
165
- Provides 34 tools and 3 prompts:
172
+ Provides 16 tools (9 SDD + 7 Pattern) and 3 prompts:
166
173
 
167
174
  ```bash
168
175
  # Start MCP Server
@@ -177,6 +184,57 @@ npx @nahisaho/musubix-mcp-server
177
184
  | [Design Document](storage/specs/DES-MUSUBIX-001.md) | C4 model and ADR-based design |
178
185
  | [Task Definition](storage/specs/TSK-MUSUBIX-001.md) | 56 tasks sprint plan |
179
186
  | [API Reference](docs/API-REFERENCE.md) | Public API specification |
187
+ | [Symbolic Integration](storage/specs/REQ-SYMB-001.md) | Neuro-Symbolic requirements (27 requirements) |
188
+
189
+ ## Symbolic Reasoning Module (v1.2.0)
190
+
191
+ The new symbolic reasoning module provides:
192
+
193
+ ### Phase 1: Foundation
194
+ - **SemanticCodeFilterPipeline** - LLM output semantic validation
195
+ - **HallucinationDetector** - Undefined symbol/invalid import detection
196
+ - **ConstitutionRuleRegistry** - 9 Constitution articles enforcement
197
+ - **ConfidenceEstimator** - AST complexity, requirement coverage scoring
198
+ - **ConfidenceBasedRouter** - Confidence-based routing decisions
199
+ - **ErrorHandler** - Graceful degradation
200
+
201
+ ### Phase 2: Formal Verification
202
+ - **EarsToFormalSpecConverter** - EARS → SMT-LIB conversion
203
+ - **VerificationConditionGenerator** - Verification condition (VC) generation
204
+ - **Z3Adapter** - Z3 SMT solver integration
205
+ - **SecurityScanner** - OWASP patterns, secret detection
206
+
207
+ ### Phase 3: Advanced Features
208
+ - **CandidateRanker** - Multi-criteria candidate scoring
209
+ - **ResultBlender** - Neural/Symbolic result integration (3 strategies)
210
+ - **ExtensibleRuleConfig** - YAML/JSON rule configuration
211
+ - **AuditLogger** - SHA-256 hash-chain tamper detection
212
+ - **PerformanceBudget** - Step-level budgets, SLO metrics
213
+ - **QualityGateValidator** - Automated quality gate validation
214
+
215
+ ## Wake-Sleep Learning Cycle (v1.3.0)
216
+
217
+ Continuous learning system based on the Wake-Sleep algorithm:
218
+
219
+ | Phase | Processing |
220
+ |-------|------------|
221
+ | **Wake** | Code observation → Pattern extraction → Knowledge graph update |
222
+ | **Sleep** | Pattern consolidation → Similar pattern compression → Memory optimization |
223
+
224
+ ### Key Components
225
+ - **WakeSleepCycle** - Learning cycle orchestration
226
+ - **PatternLibrary** - Persistent pattern storage management
227
+ - **PatternOntologyBridge** - Pattern ↔ Ontology bidirectional conversion
228
+ - **N3Store** - RDF/OWL-based knowledge graph storage
229
+
230
+ ### New MCP Tools (7 tools)
231
+ - `pattern_extract` - Extract patterns from code
232
+ - `pattern_compress` - Abstraction and compression of patterns
233
+ - `pattern_store` - Save to pattern library
234
+ - `pattern_query` - Search and retrieve patterns
235
+ - `pattern_consolidate` - Consolidate similar patterns
236
+ - `ontology_query` - Query ontology graph
237
+ - `ontology_infer` - Execute ontology-based inference
180
238
 
181
239
  ## Constitutional Articles (9 Articles)
182
240
 
@@ -207,5 +265,5 @@ See [CHANGELOG.md](CHANGELOG.md)
207
265
  ---
208
266
 
209
267
  **Document ID**: README
210
- **Version**: 1.0.21
211
- **Last Updated**: 2026-01-04
268
+ **Version**: 1.3.0
269
+ **Last Updated**: 2026-01-05
@@ -11,6 +11,7 @@
11
11
  - [Requirements](#requirements)
12
12
  - [Design](#design)
13
13
  - [Codegen](#codegen)
14
+ - [Symbolic](#symbolic)
14
15
  - [Validation](#validation)
15
16
  - [Utils](#utils)
16
17
  - [MCP Server](#mcp-server)
@@ -331,6 +332,131 @@ const result = validator.validate(artifact);
331
332
 
332
333
  ---
333
334
 
335
+ ### Symbolic (v1.2.0)
336
+
337
+ The symbolic reasoning module provides formal verification and quality assurance capabilities.
338
+
339
+ #### SemanticCodeFilterPipeline
340
+
341
+ Filters and validates LLM-generated code semantically.
342
+
343
+ ```typescript
344
+ import { createSemanticCodeFilterPipeline } from '@nahisaho/musubix-core';
345
+
346
+ const filter = createSemanticCodeFilterPipeline({
347
+ hallucinationDetector: new HallucinationDetector(),
348
+ constitutionRegistry: new ConstitutionRuleRegistry(),
349
+ });
350
+
351
+ const result = await filter.filter({
352
+ candidates: [{ code: 'function example() {}', language: 'typescript' }],
353
+ projectContext: { projectRoot: '/path/to/project' },
354
+ });
355
+ ```
356
+
357
+ **Methods:**
358
+
359
+ | Method | Parameters | Returns | Description |
360
+ |--------|------------|---------|-------------|
361
+ | `filter(input)` | `input: FilterInput` | `Promise<FilterOutput>` | Filters code candidates |
362
+
363
+ ---
364
+
365
+ #### HallucinationDetector
366
+
367
+ Detects hallucinations (undefined symbols, invalid imports) in generated code.
368
+
369
+ ```typescript
370
+ import { createHallucinationDetector } from '@nahisaho/musubix-core';
371
+
372
+ const detector = createHallucinationDetector();
373
+ const result = detector.detect(code, projectContext);
374
+ ```
375
+
376
+ **Methods:**
377
+
378
+ | Method | Parameters | Returns | Description |
379
+ |--------|------------|---------|-------------|
380
+ | `detect(code, context)` | `code: string, context: ProjectContext` | `HallucinationResult` | Detects hallucinations |
381
+
382
+ ---
383
+
384
+ #### EarsToFormalSpecConverter
385
+
386
+ Converts EARS requirements to SMT-LIB format.
387
+
388
+ ```typescript
389
+ import { createEarsToFormalSpecConverter, parseEarsRequirement } from '@nahisaho/musubix-core';
390
+
391
+ const converter = createEarsToFormalSpecConverter();
392
+ const ast = parseEarsRequirement('THE system SHALL validate input');
393
+ const smtLib = converter.convert([ast]);
394
+ ```
395
+
396
+ **Methods:**
397
+
398
+ | Method | Parameters | Returns | Description |
399
+ |--------|------------|---------|-------------|
400
+ | `convert(requirements)` | `requirements: EarsAstNode[]` | `SmtLibOutput` | Converts EARS to SMT-LIB |
401
+
402
+ ---
403
+
404
+ #### Z3Adapter
405
+
406
+ Integrates with Z3 SMT solver for formal verification.
407
+
408
+ ```typescript
409
+ import { createZ3Adapter } from '@nahisaho/musubix-core';
410
+
411
+ const z3 = createZ3Adapter({ timeoutMs: 5000 });
412
+ const result = await z3.verify(verificationConditions, smtLib);
413
+ ```
414
+
415
+ **Methods:**
416
+
417
+ | Method | Parameters | Returns | Description |
418
+ |--------|------------|---------|-------------|
419
+ | `verify(vcs, smtLib)` | `vcs: VerificationCondition[], smtLib: string` | `Promise<FormalVerificationResult>` | Verifies conditions |
420
+ | `isAvailable()` | - | `Promise<boolean>` | Checks if Z3 is installed |
421
+
422
+ ---
423
+
424
+ #### QualityGateValidator
425
+
426
+ Validates quality gates before phase transitions.
427
+
428
+ ```typescript
429
+ import { QualityGateValidator, createComponentValidation } from '@nahisaho/musubix-core';
430
+
431
+ const validator = new QualityGateValidator();
432
+ const components = createComponentValidation({
433
+ performanceBudgetDefined: true,
434
+ auditLoggingDefined: true,
435
+ traceabilityCompliant: true,
436
+ });
437
+
438
+ const result = validator.validate(traceabilityData, components);
439
+ const report = validator.generateApprovalReport(result);
440
+ ```
441
+
442
+ **Methods:**
443
+
444
+ | Method | Parameters | Returns | Description |
445
+ |--------|------------|---------|-------------|
446
+ | `validate(traceability, components)` | `traceability: TraceabilityCoverage[], components: ComponentValidation` | `QualityGateResult` | Validates quality gate |
447
+ | `generateApprovalReport(result)` | `result: QualityGateResult` | `string` | Generates Markdown report |
448
+
449
+ **Quality Gate Checks:**
450
+
451
+ | Category | Checks |
452
+ |----------|--------|
453
+ | Traceability | Design coverage, Task decomposition, Coverage gaps |
454
+ | Non-Functional | Performance budget, Extensibility, Explainability |
455
+ | Security | Sensitive data masking, Audit logging |
456
+ | Constitution | All 9 articles compliance |
457
+
458
+ ---
459
+
334
460
  ### Utils
335
461
 
336
462
  #### I18nManager
@@ -628,6 +754,6 @@ MIT License - see [LICENSE](./LICENSE) for details.
628
754
 
629
755
  ---
630
756
 
631
- **Version:** 1.0.12
632
- **Generated:** 2026-01-03
757
+ **Version:** 1.3.0
758
+ **Generated:** 2026-01-05
633
759
  **MUSUBIX Core Package**
@@ -1,8 +1,8 @@
1
1
  # MUSUBIX インストールガイド
2
2
 
3
3
  **文書ID**: INSTALL-GUIDE
4
- **バージョン**: 1.0.0
5
- **最終更新**: 2026-01-02
4
+ **バージョン**: 1.3.0
5
+ **最終更新**: 2026-01-05
6
6
 
7
7
  ---
8
8
 
@@ -48,7 +48,8 @@ flowchart LR
48
48
  | パターン | インストール対象 | 利用可能機能 |
49
49
  |---------|-----------------|-------------|
50
50
  | **基本** | MUSUBIXのみ | EARS要件分析、C4設計生成、コード生成 |
51
- | **フル** | MUSUBIX + YATA | 上記 + 知識グラフ連携、形式的検証、説明生成 |
51
+ | **シンボリック** | MUSUBIXのみ | 上記 + シンボリック推論、形式検証、品質ゲート |
52
+ | **フル** | MUSUBIX + YATA | 上記 + 知識グラフ連携、外部検証、説明生成 |
52
53
 
53
54
  ---
54
55
 
@@ -105,12 +106,28 @@ npx musubix-mcp --transport stdio
105
106
  # 統合パッケージ(推奨)
106
107
  npm install musubix
107
108
 
109
+ # インストールバナーを表示(npm v11+)
110
+ npm install musubix --foreground-scripts
111
+
108
112
  # または個別パッケージのインストール
109
113
  npm install @nahisaho/musubix-core
110
114
  npm install @nahisaho/musubix-mcp-server
111
115
  npm install @nahisaho/musubix-yata-client # YATA連携用
112
116
  ```
113
117
 
118
+ #### 自動生成されるファイル
119
+
120
+ `npm install musubix` 実行時に以下のファイルが自動生成されます:
121
+
122
+ | ファイル/ディレクトリ | 用途 | 対象エージェント |
123
+ |----------------------|------|----------------|
124
+ | `AGENTS.md` | AIエージェントガイドライン | GitHub Copilot |
125
+ | `CLAUDE.md` | AIエージェントガイドライン(コピー) | Claude Code |
126
+ | `.github/skills/` | 9つのAgent Skills | GitHub Copilot |
127
+ | `.github/prompts/` | 9つのSDDプロンプト | GitHub Copilot |
128
+ | `.claude/skills/` | 9つのAgent Skills(コピー) | Claude Code |
129
+ | `.claude/prompts/` | 9つのSDDプロンプト(コピー) | Claude Code |
130
+
114
131
  #### パッケージ比較
115
132
 
116
133
  | パッケージ | 説明 | 用途 |
@@ -1,8 +1,8 @@
1
1
  # MUSUBIX Installation Guide
2
2
 
3
3
  **Document ID**: INSTALL-GUIDE
4
- **Version**: 1.0.0
5
- **Last Updated**: 2026-01-02
4
+ **Version**: 1.3.0
5
+ **Last Updated**: 2026-01-05
6
6
 
7
7
  ---
8
8
 
@@ -48,7 +48,8 @@ flowchart LR
48
48
  | Pattern | Installation | Available Features |
49
49
  |---------|--------------|-------------------|
50
50
  | **Basic** | MUSUBIX only | EARS requirements, C4 design, code generation |
51
- | **Full** | MUSUBIX + YATA | Above + knowledge graph, formal verification, explanations |
51
+ | **Symbolic** | MUSUBIX only | Above + symbolic reasoning, formal verification, quality gates |
52
+ | **Full** | MUSUBIX + YATA | Above + knowledge graph, external verification, explanations |
52
53
 
53
54
  ---
54
55
 
@@ -105,12 +106,28 @@ npx musubix-mcp --transport stdio
105
106
  # All-in-one package (recommended)
106
107
  npm install musubix
107
108
 
109
+ # Show installation banner (npm v11+)
110
+ npm install musubix --foreground-scripts
111
+
108
112
  # Or install individual packages
109
113
  npm install @nahisaho/musubix-core
110
114
  npm install @nahisaho/musubix-mcp-server
111
115
  npm install @nahisaho/musubix-yata-client # For YATA integration
112
116
  ```
113
117
 
118
+ #### Auto-Generated Files
119
+
120
+ When you run `npm install musubix`, the following files are automatically created:
121
+
122
+ | File/Directory | Purpose | Target Agent |
123
+ |----------------|---------|-------------|
124
+ | `AGENTS.md` | AI Agent guidelines | GitHub Copilot |
125
+ | `CLAUDE.md` | AI Agent guidelines (copy) | Claude Code |
126
+ | `.github/skills/` | 9 Agent Skills | GitHub Copilot |
127
+ | `.github/prompts/` | 9 SDD prompts | GitHub Copilot |
128
+ | `.claude/skills/` | 9 Agent Skills (copy) | Claude Code |
129
+ | `.claude/prompts/` | 9 SDD prompts (copy) | Claude Code |
130
+
114
131
  #### Package Comparison
115
132
 
116
133
  | Package | Description | Use Case |