musubi-sdd 3.9.0 → 3.10.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/README.ja.md CHANGED
@@ -71,7 +71,31 @@ musubi init --windsurf # Windsurf IDE
71
71
 
72
72
  ---
73
73
 
74
- ## 📊 v3.7.1 の新機能
74
+ ## 📊 v3.9.0 の新機能
75
+
76
+ - 🛡️ **Guardrailsシステム** - OpenAI Agents SDK inspired 入出力検証とセーフティチェック
77
+ - ✅ **InputGuardrail** - 入力検証、PII検出、インジェクション攻撃防止
78
+ - ✅ **OutputGuardrail** - 出力サニタイズ、機密データ墨消し、コンテンツポリシー適用
79
+ - ⚖️ **SafetyCheckGuardrail** - 憲法条項準拠、コンテンツ安全性分析
80
+ - 🔧 **GuardrailRules DSL** - RuleBuilderによる検証ルール構築のFluent API
81
+ - 🔗 **GuardrailChain** - 複数Guardrailの順次/並列実行
82
+ - 🖥️ **CLIコマンド** - `musubi-validate guardrails` と `guardrails-chain` コマンド
83
+
84
+ ```bash
85
+ # セキュリティプリセットで入力検証
86
+ npx musubi-validate guardrails "user input" --type input --preset security
87
+
88
+ # PII墨消しで出力検証
89
+ npx musubi-validate guardrails "output" --type output --redact
90
+
91
+ # 憲法準拠でセーフティチェック
92
+ npx musubi-validate guardrails "code" --type safety --constitutional --level high
93
+
94
+ # Guardrailチェーンを並列実行
95
+ npx musubi-validate guardrails-chain "content" --parallel
96
+ ```
97
+
98
+ ### 以前のバージョン (v3.7.1)
75
99
 
76
100
  - 🌐 **WebSocketリアルタイムGUI** - `musubi-browser`ダッシュボードでライブ更新
77
101
  - 📋 **GUIクイックアクション** - 新規要件モーダル、プロジェクト検証、レポートエクスポート
package/README.md CHANGED
@@ -71,7 +71,31 @@ musubi init --windsurf # Windsurf IDE
71
71
 
72
72
  ---
73
73
 
74
- ## 📊 What's New in v3.7.1
74
+ ## 📊 What's New in v3.9.0
75
+
76
+ - 🛡️ **Guardrails System** - OpenAI Agents SDK inspired input/output validation and safety checks
77
+ - ✅ **InputGuardrail** - Input validation, PII detection, injection attack prevention
78
+ - ✅ **OutputGuardrail** - Output sanitization, sensitive data redaction, content policy enforcement
79
+ - ⚖️ **SafetyCheckGuardrail** - Constitutional Articles compliance, content safety analysis
80
+ - 🔧 **GuardrailRules DSL** - Fluent API for building validation rules with RuleBuilder
81
+ - 🔗 **GuardrailChain** - Compose multiple guardrails with sequential/parallel execution
82
+ - 🖥️ **CLI Commands** - `musubi-validate guardrails` and `guardrails-chain` commands
83
+
84
+ ```bash
85
+ # Input validation with security preset
86
+ npx musubi-validate guardrails "user input" --type input --preset security
87
+
88
+ # Output validation with PII redaction
89
+ npx musubi-validate guardrails "output" --type output --redact
90
+
91
+ # Safety check with constitutional compliance
92
+ npx musubi-validate guardrails "code" --type safety --constitutional --level high
93
+
94
+ # Run guardrail chain in parallel
95
+ npx musubi-validate guardrails-chain "content" --parallel
96
+ ```
97
+
98
+ ### Previous (v3.7.1)
75
99
 
76
100
  - 🌐 **WebSocket Real-time GUI** - Live replanning updates with `musubi-browser` dashboard
77
101
  - 📋 **GUI Quick Actions** - Modal dialog for New Requirement, Validate Project, Export Report
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musubi-sdd",
3
- "version": "3.9.0",
3
+ "version": "3.10.0",
4
4
  "description": "Ultimate Specification Driven Development Tool with 27 Agents for 7 AI Coding Platforms + MCP Integration (Claude Code, GitHub Copilot, Cursor, Gemini CLI, Windsurf, Codex, Qwen Code)",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -278,6 +278,15 @@ npx musubi-sdd <command>
278
278
  | `musubi-orchestrate path analyze` | Analyze execution path | `npx musubi-orchestrate path analyze <path-id>` |
279
279
  | `musubi-orchestrate path optimize` | Optimize execution path | `npx musubi-orchestrate path optimize <path-id>` |
280
280
 
281
+ ### Guardrails Commands (v3.9.0 NEW)
282
+
283
+ | Command | Purpose | Example |
284
+ |---------|---------|---------|
285
+ | `musubi-validate guardrails` | Input/Output guardrail validation | `npx musubi-validate guardrails --type input` |
286
+ | `musubi-validate guardrails --type output` | Output content validation | `echo "content" \| npx musubi-validate guardrails --type output` |
287
+ | `musubi-validate guardrails --type safety` | Safety check with constitutional | `npx musubi-validate guardrails --type safety --constitutional` |
288
+ | `musubi-validate guardrails-chain` | Chain multiple guardrails | `npx musubi-validate guardrails-chain --parallel` |
289
+
281
290
  ## Learn More
282
291
 
283
292
  - [MUSUBI Documentation](https://github.com/your-org/musubi)
@@ -571,6 +571,32 @@ Once all gates pass:
571
571
  - [ ] Proceed to implementation
572
572
  ```
573
573
 
574
+ ## Guardrails Commands (v3.9.0 NEW)
575
+
576
+ Use these commands to enforce constitutional compliance programmatically:
577
+
578
+ | Command | Purpose | Example |
579
+ |---------|---------|---------|
580
+ | `musubi-validate guardrails --type safety` | Validate content against safety rules | `npx musubi-validate guardrails "content" --type safety` |
581
+ | `musubi-validate guardrails --type safety --constitutional` | Full constitutional validation | `npx musubi-validate guardrails "code" --type safety --constitutional` |
582
+ | `musubi-validate guardrails --type input` | Validate input against injection attacks | `npx musubi-validate guardrails "input" --type input` |
583
+ | `musubi-validate guardrails-chain` | Run full guardrail chain | `npx musubi-validate guardrails-chain "content" --parallel` |
584
+
585
+ **Constitutional Safety Levels**:
586
+ - `--level low` - Permissive (development)
587
+ - `--level medium` - Balanced (default)
588
+ - `--level high` - Strict (production)
589
+ - `--level critical` - Maximum (security-critical)
590
+
591
+ **Use with Constitution Validation**:
592
+ ```bash
593
+ # Validate code against constitutional articles
594
+ npx musubi-validate guardrails "$(cat src/feature.js)" --type safety --constitutional --level high
595
+
596
+ # Check multiple files
597
+ npx musubi-validate guardrails --type safety --constitutional --file src/**/*.js
598
+ ```
599
+
574
600
  ## Project Memory Integration
575
601
 
576
602
  **ALWAYS check steering files before starting**:
@@ -114,6 +114,15 @@ The Orchestrator can leverage all MUSUBI CLI commands to execute tasks efficient
114
114
  | `musubi-orchestrate optimize` | Path optimization | `musubi-orchestrate optimize run <path-id>` |
115
115
  | `musubi-orchestrate path` | Path analysis | `musubi-orchestrate path analyze <path-id>` |
116
116
 
117
+ ### Guardrails Commands (v3.9.0 NEW)
118
+
119
+ | Command | Purpose | Example |
120
+ | ------------------------------------------ | ------------------------------ | ----------------------------------------------------- |
121
+ | `musubi-validate guardrails` | Input/Output validation | `musubi-validate guardrails --type input` |
122
+ | `musubi-validate guardrails --type output` | Output content validation | `echo "content" \| musubi-validate guardrails --type output` |
123
+ | `musubi-validate guardrails --type safety` | Safety check with constitutional| `musubi-validate guardrails --type safety --constitutional` |
124
+ | `musubi-validate guardrails-chain` | Chain multiple guardrails | `musubi-validate guardrails-chain --parallel` |
125
+
117
126
  ### Detailed Command Options
118
127
 
119
128
  **musubi-workflow** (v2.1.0 NEW):
@@ -1282,6 +1282,40 @@ security-audit/
1282
1282
 
1283
1283
  ---
1284
1284
 
1285
+ ## Guardrails Commands (v3.9.0 NEW)
1286
+
1287
+ Use MUSUBI Guardrails for automated security validation:
1288
+
1289
+ | Command | Purpose | Example |
1290
+ |---------|---------|---------|
1291
+ | `musubi-validate guardrails --type input` | Input validation (injection prevention) | `npx musubi-validate guardrails "user input" --type input` |
1292
+ | `musubi-validate guardrails --type output --redact` | Output sanitization with PII redaction | `npx musubi-validate guardrails "output" --type output --redact` |
1293
+ | `musubi-validate guardrails --type safety` | Safety check with threat detection | `npx musubi-validate guardrails "code" --type safety --level high` |
1294
+ | `musubi-validate guardrails-chain` | Run complete security guardrail chain | `npx musubi-validate guardrails-chain "content" --parallel` |
1295
+
1296
+ **Security Presets**:
1297
+ ```bash
1298
+ # Input validation with strict security
1299
+ npx musubi-validate guardrails --type input --preset strict
1300
+
1301
+ # Output validation with redaction
1302
+ npx musubi-validate guardrails --type output --preset redact
1303
+
1304
+ # Safety check with constitutional compliance
1305
+ npx musubi-validate guardrails --type safety --constitutional --level critical
1306
+ ```
1307
+
1308
+ **Batch Security Scan**:
1309
+ ```bash
1310
+ # Scan all source files
1311
+ npx musubi-validate guardrails --type safety --file "src/**/*.js" --level high
1312
+
1313
+ # Scan with parallel processing
1314
+ npx musubi-validate guardrails-chain --file "src/**/*.ts" --parallel
1315
+ ```
1316
+
1317
+ ---
1318
+
1285
1319
  ## 8. セッション開始メッセージ
1286
1320
 
1287
1321
  ```
@@ -190,6 +190,15 @@ npx musubi-sdd <command>
190
190
  | `musubi-orchestrate path analyze` | Analyze execution path | `npx musubi-orchestrate path analyze <path-id>` |
191
191
  | `musubi-orchestrate path optimize` | Optimize execution path | `npx musubi-orchestrate path optimize <path-id>` |
192
192
 
193
+ ### Guardrails Commands (v3.9.0 NEW)
194
+
195
+ | Command | Purpose | Example |
196
+ |---------|---------|--------|
197
+ | `musubi-validate guardrails` | Input/Output guardrail validation | `npx musubi-validate guardrails --type input` |
198
+ | `musubi-validate guardrails --type output` | Output content validation | `echo "content" \| npx musubi-validate guardrails --type output` |
199
+ | `musubi-validate guardrails --type safety` | Safety check with constitutional | `npx musubi-validate guardrails --type safety --constitutional` |
200
+ | `musubi-validate guardrails-chain` | Chain multiple guardrails | `npx musubi-validate guardrails-chain --parallel` |
201
+
193
202
  ## Learn More
194
203
 
195
204
  - [MUSUBI Documentation](https://github.com/nahisaho/musubi)
@@ -190,6 +190,15 @@ npx musubi-sdd <command>
190
190
  | `musubi-orchestrate path analyze` | Analyze execution path | `npx musubi-orchestrate path analyze <path-id>` |
191
191
  | `musubi-orchestrate path optimize` | Optimize execution path | `npx musubi-orchestrate path optimize <path-id>` |
192
192
 
193
+ ### Guardrails Commands (v3.9.0 NEW)
194
+
195
+ | Command | Purpose | Example |
196
+ |---------|---------|--------|
197
+ | `musubi-validate guardrails` | Input/Output guardrail validation | `npx musubi-validate guardrails --type input` |
198
+ | `musubi-validate guardrails --type output` | Output content validation | `echo "content" \| npx musubi-validate guardrails --type output` |
199
+ | `musubi-validate guardrails --type safety` | Safety check with constitutional | `npx musubi-validate guardrails --type safety --constitutional` |
200
+ | `musubi-validate guardrails-chain` | Chain multiple guardrails | `npx musubi-validate guardrails-chain --parallel` |
201
+
193
202
  ## Learn More
194
203
 
195
204
  - [MUSUBI Documentation](https://github.com/nahisaho/musubi)
@@ -179,6 +179,15 @@ npx musubi-sdd <command>
179
179
  | `musubi-orchestrate path analyze` | Analyze execution path | `npx musubi-orchestrate path analyze <path-id>` |
180
180
  | `musubi-orchestrate path optimize` | Optimize execution path | `npx musubi-orchestrate path optimize <path-id>` |
181
181
 
182
+ ### Guardrails Commands (v3.9.0 NEW)
183
+
184
+ | Command | Purpose | Example |
185
+ |---------|---------|--------|
186
+ | `musubi-validate guardrails` | Input/Output guardrail validation | `npx musubi-validate guardrails --type input` |
187
+ | `musubi-validate guardrails --type output` | Output content validation | `echo "content" \| npx musubi-validate guardrails --type output` |
188
+ | `musubi-validate guardrails --type safety` | Safety check with constitutional | `npx musubi-validate guardrails --type safety --constitutional` |
189
+ | `musubi-validate guardrails-chain` | Chain multiple guardrails | `npx musubi-validate guardrails-chain --parallel` |
190
+
182
191
  ## Learn More
183
192
 
184
193
  - [MUSUBI Documentation](https://github.com/nahisaho/musubi)
@@ -217,6 +217,15 @@ npx musubi-sdd <command>
217
217
  | `musubi-orchestrate path analyze` | Analyze execution path | `npx musubi-orchestrate path analyze <path-id>` |
218
218
  | `musubi-orchestrate path optimize` | Optimize execution path | `npx musubi-orchestrate path optimize <path-id>` |
219
219
 
220
+ ### Guardrails Commands (v3.9.0 NEW)
221
+
222
+ | Command | Purpose | Example |
223
+ |---------|---------|--------|
224
+ | `musubi-validate guardrails` | Input/Output guardrail validation | `npx musubi-validate guardrails --type input` |
225
+ | `musubi-validate guardrails --type output` | Output content validation | `echo "content" \| npx musubi-validate guardrails --type output` |
226
+ | `musubi-validate guardrails --type safety` | Safety check with constitutional | `npx musubi-validate guardrails --type safety --constitutional` |
227
+ | `musubi-validate guardrails-chain` | Chain multiple guardrails | `npx musubi-validate guardrails-chain --parallel` |
228
+
220
229
  ### CLI + Prompt Integration
221
230
 
222
231
  Combine CLI commands with GitHub Copilot prompts for maximum efficiency:
@@ -179,6 +179,15 @@ npx musubi-sdd <command>
179
179
  | `musubi-orchestrate path analyze` | Analyze execution path | `npx musubi-orchestrate path analyze <path-id>` |
180
180
  | `musubi-orchestrate path optimize` | Optimize execution path | `npx musubi-orchestrate path optimize <path-id>` |
181
181
 
182
+ ### Guardrails Commands (v3.9.0 NEW)
183
+
184
+ | Command | Purpose | Example |
185
+ |---------|---------|--------|
186
+ | `musubi-validate guardrails` | Input/Output guardrail validation | `npx musubi-validate guardrails --type input` |
187
+ | `musubi-validate guardrails --type output` | Output content validation | `echo "content" \| npx musubi-validate guardrails --type output` |
188
+ | `musubi-validate guardrails --type safety` | Safety check with constitutional | `npx musubi-validate guardrails --type safety --constitutional` |
189
+ | `musubi-validate guardrails-chain` | Chain multiple guardrails | `npx musubi-validate guardrails-chain --parallel` |
190
+
182
191
  ## Learn More
183
192
 
184
193
  - [MUSUBI Documentation](https://github.com/nahisaho/musubi)
@@ -190,6 +190,15 @@ npx musubi-sdd <command>
190
190
  | `musubi-orchestrate path analyze` | Analyze execution path | `npx musubi-orchestrate path analyze <path-id>` |
191
191
  | `musubi-orchestrate path optimize` | Optimize execution path | `npx musubi-orchestrate path optimize <path-id>` |
192
192
 
193
+ ### Guardrails Commands (v3.9.0 NEW)
194
+
195
+ | Command | Purpose | Example |
196
+ |---------|---------|--------|
197
+ | `musubi-validate guardrails` | Input/Output guardrail validation | `npx musubi-validate guardrails --type input` |
198
+ | `musubi-validate guardrails --type output` | Output content validation | `echo "content" \| npx musubi-validate guardrails --type output` |
199
+ | `musubi-validate guardrails --type safety` | Safety check with constitutional | `npx musubi-validate guardrails --type safety --constitutional` |
200
+ | `musubi-validate guardrails-chain` | Chain multiple guardrails | `npx musubi-validate guardrails-chain --parallel` |
201
+
193
202
  ## Learn More
194
203
 
195
204
  - [MUSUBI Documentation](https://github.com/nahisaho/musubi)