scene-capability-engine 3.3.4 → 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 (252) hide show
  1. package/CHANGELOG.md +151 -78
  2. package/README.md +6 -6
  3. package/README.zh.md +6 -6
  4. package/bin/scene-capability-engine.js +129 -7
  5. package/docs/331-poc-adaptation-roadmap.md +3 -3
  6. package/docs/331-poc-dual-track-integration-guide.md +8 -8
  7. package/docs/331-poc-weekly-delivery-checklist.md +6 -6
  8. package/docs/README.md +6 -0
  9. package/docs/adopt-migration-guide.md +13 -13
  10. package/docs/adoption-guide.md +28 -28
  11. package/docs/agent-hooks-analysis.md +10 -10
  12. package/docs/agent-runtime/agent-result-summary-contract.schema.json +50 -0
  13. package/docs/agent-runtime/agent-result-summary.sample.json +11 -0
  14. package/docs/agent-runtime/capability-mapping-report.sample.json +42 -0
  15. package/docs/agent-runtime/capability-mapping-report.schema.json +136 -0
  16. package/docs/agent-runtime/failure-taxonomy-baseline.json +99 -0
  17. package/docs/agent-runtime/multi-agent-coordination-policy-baseline.json +38 -0
  18. package/docs/agent-runtime/strategy-routing-policy-baseline.json +24 -0
  19. package/docs/agent-runtime/symbol-evidence.sample.json +34 -0
  20. package/docs/agent-runtime/symbol-evidence.schema.json +128 -0
  21. package/docs/architecture.md +13 -13
  22. package/docs/articles/ai-driven-development-philosophy-and-practice.en.md +3 -3
  23. package/docs/articles/ai-driven-development-philosophy-and-practice.md +3 -3
  24. package/docs/autonomous-control-guide.md +35 -35
  25. package/docs/command-reference.md +254 -151
  26. package/docs/cross-tool-guide.md +7 -7
  27. package/docs/developer-guide.md +8 -8
  28. package/docs/document-governance.md +15 -15
  29. package/docs/environment-management-guide.md +6 -6
  30. package/docs/examples/add-export-command/design.md +1 -1
  31. package/docs/faq.md +13 -13
  32. package/docs/handoff-profile-integration-guide.md +3 -3
  33. package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.json +7 -7
  34. package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.md +1 -1
  35. package/docs/integration-modes.md +12 -12
  36. package/docs/integration-philosophy.md +11 -11
  37. package/docs/interactive-customization/331-poc-sce-integration-checklist.md +24 -24
  38. package/docs/interactive-customization/README.md +43 -43
  39. package/docs/interactive-customization/business-mode-policy-baseline.json +33 -0
  40. package/docs/interactive-customization/dual-ui-mode-integration-guide.md +1 -1
  41. package/docs/interactive-customization/moqui-adapter-interface.md +2 -2
  42. package/docs/interactive-customization/moqui-copilot-integration-guide.md +1 -1
  43. package/docs/interactive-customization/moqui-interactive-template-playbook.md +4 -4
  44. package/docs/interactive-customization/phase-acceptance-evidence.md +2 -2
  45. package/docs/knowledge-management-guide.md +6 -6
  46. package/docs/manual-workflows-guide.md +4 -4
  47. package/docs/moqui-capability-matrix.md +3 -3
  48. package/docs/moqui-standard-rebuild-guide.md +8 -8
  49. package/docs/moqui-template-core-library-playbook.md +27 -27
  50. package/docs/multi-agent-coordination-guide.md +19 -19
  51. package/docs/multi-repo-management-guide.md +17 -17
  52. package/docs/quick-start-with-ai-tools.md +7 -7
  53. package/docs/quick-start.md +2 -2
  54. package/docs/release-checklist.md +4 -4
  55. package/docs/sce-business-mode-map.md +103 -0
  56. package/docs/sce-capability-matrix-e2e-example.md +94 -0
  57. package/docs/sce-capability-matrix-roadmap.md +48 -0
  58. package/docs/security-governance-default-baseline.md +12 -12
  59. package/docs/spec-collaboration-guide.md +3 -3
  60. package/docs/spec-locking-guide.md +2 -2
  61. package/docs/spec-workflow.md +3 -3
  62. package/docs/starter-kit/README.md +4 -4
  63. package/docs/starter-kit/handoff-manifest.starter.json +2 -2
  64. package/docs/starter-kit/release.workflow.sample.yml +1 -1
  65. package/docs/steering-strategy-guide.md +15 -15
  66. package/docs/team-collaboration-guide.md +69 -69
  67. package/docs/testing-strategy.md +2 -2
  68. package/docs/tools/claude-guide.md +14 -4
  69. package/docs/tools/cursor-guide.md +14 -14
  70. package/docs/tools/generic-guide.md +9 -9
  71. package/docs/tools/kiro-guide.md +4 -4
  72. package/docs/tools/vscode-guide.md +13 -13
  73. package/docs/tools/windsurf-guide.md +6 -6
  74. package/docs/troubleshooting.md +22 -22
  75. package/docs/upgrade-guide.md +8 -8
  76. package/docs/value-observability-guide.md +3 -3
  77. package/docs/zh/README.md +15 -0
  78. package/docs/zh/quick-start.md +15 -15
  79. package/docs/zh/release-checklist.md +3 -3
  80. package/docs/zh/tools/claude-guide.md +16 -6
  81. package/docs/zh/tools/cursor-guide.md +11 -11
  82. package/docs/zh/tools/generic-guide.md +13 -13
  83. package/docs/zh/tools/kiro-guide.md +2 -2
  84. package/docs/zh/tools/vscode-guide.md +11 -11
  85. package/docs/zh/tools/windsurf-guide.md +11 -11
  86. package/docs/zh/value-observability-guide.md +3 -3
  87. package/lib/adoption/adoption-logger.js +1 -1
  88. package/lib/adoption/adoption-strategy.js +28 -28
  89. package/lib/adoption/backup-manager.js +3 -3
  90. package/lib/adoption/conflict-resolver.js +2 -2
  91. package/lib/adoption/detection-engine.js +8 -8
  92. package/lib/adoption/error-formatter.js +4 -4
  93. package/lib/adoption/file-classifier.js +6 -6
  94. package/lib/adoption/progress-reporter.js +1 -1
  95. package/lib/adoption/smart-orchestrator.js +10 -10
  96. package/lib/adoption/strategy-selector.js +6 -6
  97. package/lib/adoption/summary-generator.js +1 -1
  98. package/lib/adoption/template-sync.js +8 -8
  99. package/lib/auto/autonomous-engine.js +7 -7
  100. package/lib/auto/checkpoint-manager.js +1 -1
  101. package/lib/auto/close-loop-runner.js +12 -12
  102. package/lib/auto/error-recovery-manager.js +1 -1
  103. package/lib/auto/goal-decomposer.js +1 -1
  104. package/lib/auto/moqui-recovery-sequence.js +2 -2
  105. package/lib/auto/progress-tracker.js +1 -1
  106. package/lib/auto/state-manager.js +1 -1
  107. package/lib/backup/backup-system.js +10 -10
  108. package/lib/backup/selective-backup.js +4 -4
  109. package/lib/collab/agent-registry.js +2 -2
  110. package/lib/collab/contract-manager.js +1 -1
  111. package/lib/collab/coordinator.js +2 -2
  112. package/lib/collab/dependency-manager.js +1 -1
  113. package/lib/collab/integration-manager.js +1 -1
  114. package/lib/collab/metadata-manager.js +1 -1
  115. package/lib/collab/multi-agent-config.js +2 -2
  116. package/lib/collab/spec-lifecycle-manager.js +2 -2
  117. package/lib/collab/visualizer.js +1 -1
  118. package/lib/commands/adopt.js +6 -6
  119. package/lib/commands/auto.js +56 -56
  120. package/lib/commands/collab.js +2 -2
  121. package/lib/commands/docs.js +3 -3
  122. package/lib/commands/doctor.js +1 -1
  123. package/lib/commands/knowledge.js +2 -2
  124. package/lib/commands/lock.js +1 -1
  125. package/lib/commands/ops.js +1 -1
  126. package/lib/commands/orchestrate.js +3 -3
  127. package/lib/commands/rollback.js +1 -1
  128. package/lib/commands/scene.js +135 -93
  129. package/lib/commands/session.js +139 -0
  130. package/lib/commands/spec-bootstrap.js +1 -1
  131. package/lib/commands/spec-gate.js +2 -2
  132. package/lib/commands/spec-pipeline.js +1 -1
  133. package/lib/commands/status.js +4 -4
  134. package/lib/commands/steering.js +119 -0
  135. package/lib/commands/value.js +1 -1
  136. package/lib/commands/watch.js +9 -9
  137. package/lib/commands/workspace-multi.js +1 -1
  138. package/lib/context/context-exporter.js +5 -7
  139. package/lib/context/prompt-generator.js +2 -2
  140. package/lib/environment/backup-system.js +1 -1
  141. package/lib/environment/environment-manager.js +2 -2
  142. package/lib/gitignore/gitignore-backup.js +3 -3
  143. package/lib/gitignore/gitignore-detector.js +13 -13
  144. package/lib/gitignore/gitignore-integration.js +3 -3
  145. package/lib/gitignore/gitignore-transformer.js +4 -4
  146. package/lib/gitignore/layered-rules-template.js +16 -16
  147. package/lib/governance/config-manager.js +1 -1
  148. package/lib/governance/doc-reference-checker.js +4 -4
  149. package/lib/governance/execution-logger.js +1 -1
  150. package/lib/governance/file-scanner.js +3 -3
  151. package/lib/interactive-customization/moqui-interactive-adapter.js +2 -2
  152. package/lib/knowledge/knowledge-manager.js +1 -1
  153. package/lib/lock/lock-manager.js +2 -2
  154. package/lib/lock/steering-file-lock.js +5 -5
  155. package/lib/lock/task-lock-manager.js +3 -3
  156. package/lib/operations/audit-logger.js +1 -1
  157. package/lib/operations/feedback-manager.js +1 -1
  158. package/lib/operations/operations-manager.js +3 -3
  159. package/lib/operations/permission-manager.js +2 -2
  160. package/lib/operations/template-loader.js +1 -1
  161. package/lib/orchestrator/agent-spawner.js +180 -2
  162. package/lib/orchestrator/bootstrap-prompt-builder.js +9 -6
  163. package/lib/orchestrator/orchestration-engine.js +346 -2
  164. package/lib/orchestrator/orchestrator-config.js +2 -2
  165. package/lib/repo/config-manager.js +3 -3
  166. package/lib/repo/handlers/init-handler.js +1 -1
  167. package/lib/repo/repo-manager.js +2 -2
  168. package/lib/runtime/business-mode-resolver.js +240 -0
  169. package/lib/runtime/session-store.js +207 -0
  170. package/lib/runtime/steering-contract.js +338 -0
  171. package/lib/scene-runtime/audit-emitter.js +1 -1
  172. package/lib/scene-runtime/binding-plugin-loader.js +3 -3
  173. package/lib/scene-runtime/eval-bridge.js +1 -1
  174. package/lib/scene-runtime/index.js +1 -1
  175. package/lib/scene-runtime/moqui-extractor.js +1 -1
  176. package/lib/scene-runtime/plan-compiler.js +1 -1
  177. package/lib/scene-runtime/policy-gate.js +1 -1
  178. package/lib/scene-runtime/runtime-executor.js +1 -1
  179. package/lib/scene-runtime/scene-loader.js +1 -1
  180. package/lib/spec/bootstrap/context-collector.js +1 -1
  181. package/lib/spec/pipeline/stage-adapters.js +3 -3
  182. package/lib/spec/pipeline/state-store.js +1 -1
  183. package/lib/spec-gate/policy/policy-loader.js +1 -1
  184. package/lib/spec-gate/rules/default-rules.js +6 -6
  185. package/lib/steering/adoption-config.js +1 -1
  186. package/lib/steering/compliance-error-reporter.js +3 -3
  187. package/lib/steering/context-sync-manager.js +2 -2
  188. package/lib/steering/index.js +1 -1
  189. package/lib/steering/spec-steering.js +2 -2
  190. package/lib/steering/steering-compliance-checker.js +1 -1
  191. package/lib/steering/steering-loader.js +4 -5
  192. package/lib/steering/steering-manager.js +4 -4
  193. package/lib/task/task-claimer.js +5 -5
  194. package/lib/task/task-status-store.js +2 -2
  195. package/lib/templates/content-generalizer.js +1 -1
  196. package/lib/templates/spec-reader.js +2 -2
  197. package/lib/templates/template-creator.js +1 -1
  198. package/lib/templates/template-exporter.js +3 -3
  199. package/lib/templates/template-manager.js +1 -1
  200. package/lib/upgrade/migration-engine.js +3 -3
  201. package/lib/upgrade/migrations/1.0.0-to-1.1.0.js +1 -1
  202. package/lib/utils/file-diff.js +6 -6
  203. package/lib/utils/tool-detector.js +10 -10
  204. package/lib/utils/validation.js +5 -5
  205. package/lib/value/metric-contract-loader.js +1 -1
  206. package/lib/version/version-manager.js +1 -1
  207. package/lib/watch/execution-logger.js +1 -1
  208. package/lib/watch/presets.js +8 -8
  209. package/lib/watch/watch-manager.js +2 -2
  210. package/lib/workspace/legacy-kiro-migrator.js +275 -0
  211. package/lib/workspace/multi/workspace-context-resolver.js +2 -2
  212. package/lib/workspace/multi/workspace-registry.js +2 -2
  213. package/lib/workspace/multi/workspace-state-manager.js +3 -3
  214. package/lib/workspace/workspace-manager.js +1 -1
  215. package/lib/workspace/workspace-sync.js +2 -2
  216. package/locales/en.json +4 -4
  217. package/locales/zh.json +4 -4
  218. package/package.json +12 -9
  219. package/template/{.kiro → .sce}/README.md +15 -15
  220. package/template/{.kiro → .sce}/hooks/check-spec-on-create.kiro.hook +2 -2
  221. package/template/{.kiro → .sce}/steering/CORE_PRINCIPLES.md +4 -4
  222. package/template/{.kiro → .sce}/steering/CURRENT_CONTEXT.md +1 -1
  223. package/template/{.kiro → .sce}/steering/ENVIRONMENT.md +3 -3
  224. package/template/{.kiro → .sce}/tools/backup_manager.py +3 -3
  225. package/template/{.kiro → .sce}/tools/configuration_manager.py +1 -1
  226. package/template/README.md +12 -12
  227. /package/template/{.kiro → .sce}/hooks/run-tests-on-save.kiro.hook +0 -0
  228. /package/template/{.kiro → .sce}/hooks/sync-tasks-on-edit.kiro.hook +0 -0
  229. /package/template/{.kiro → .sce}/specs/SPEC_WORKFLOW_GUIDE.md +0 -0
  230. /package/template/{.kiro → .sce}/steering/RULES_GUIDE.md +0 -0
  231. /package/template/{.kiro → .sce}/templates/operations/default/change-impact.md +0 -0
  232. /package/template/{.kiro → .sce}/templates/operations/default/deployment.md +0 -0
  233. /package/template/{.kiro → .sce}/templates/operations/default/feedback-response.md +0 -0
  234. /package/template/{.kiro → .sce}/templates/operations/default/migration-plan.md +0 -0
  235. /package/template/{.kiro → .sce}/templates/operations/default/monitoring.md +0 -0
  236. /package/template/{.kiro → .sce}/templates/operations/default/operations.md +0 -0
  237. /package/template/{.kiro → .sce}/templates/operations/default/rollback.md +0 -0
  238. /package/template/{.kiro → .sce}/templates/operations/default/tools.yaml +0 -0
  239. /package/template/{.kiro → .sce}/templates/operations/default/troubleshooting.md +0 -0
  240. /package/template/{.kiro → .sce}/tools/document_evaluator.py +0 -0
  241. /package/template/{.kiro → .sce}/tools/enhancement_logger.py +0 -0
  242. /package/template/{.kiro → .sce}/tools/error_handler.py +0 -0
  243. /package/template/{.kiro → .sce}/tools/improvement_identifier.py +0 -0
  244. /package/template/{.kiro → .sce}/tools/modification_applicator.py +0 -0
  245. /package/template/{.kiro → .sce}/tools/quality_gate_enforcer.py +0 -0
  246. /package/template/{.kiro → .sce}/tools/quality_scorer.py +0 -0
  247. /package/template/{.kiro → .sce}/tools/report_generator.py +0 -0
  248. /package/template/{.kiro → .sce}/tools/ultrawork_enhancer.py +0 -0
  249. /package/template/{.kiro → .sce}/tools/ultrawork_enhancer_refactored.py +0 -0
  250. /package/template/{.kiro → .sce}/tools/ultrawork_enhancer_v2.py +0 -0
  251. /package/template/{.kiro → .sce}/tools/ultrawork_enhancer_v3.py +0 -0
  252. /package/template/{.kiro → .sce}/tools/workflow_quality_gate.py +0 -0
@@ -78,7 +78,7 @@ sce value metrics sample --out ./kpi-input.json --period 2026-W10 --json
78
78
 
79
79
  # Generate weekly KPI snapshot + gate summary
80
80
  sce value metrics snapshot \
81
- --input .kiro/specs/112-00-spec-value-realization-program/custom/weekly-metrics/2026-W09.sample.json \
81
+ --input .sce/specs/112-00-spec-value-realization-program/custom/weekly-metrics/2026-W09.sample.json \
82
82
  --period 2026-W09 \
83
83
  --checkpoint day-60 \
84
84
  --json
@@ -86,22 +86,22 @@ sce value metrics snapshot \
86
86
  # Use custom metric contract and output paths
87
87
  sce value metrics snapshot \
88
88
  --input ./metrics-input.json \
89
- --definitions .kiro/specs/112-00-spec-value-realization-program/custom/metric-definition.yaml \
90
- --history-dir .kiro/specs/114-00-kpi-automation-and-observability/custom/weekly-metrics \
91
- --out .kiro/specs/114-00-kpi-automation-and-observability/custom/weekly-metrics/2026-W10.json
89
+ --definitions .sce/specs/112-00-spec-value-realization-program/custom/metric-definition.yaml \
90
+ --history-dir .sce/specs/114-00-kpi-automation-and-observability/custom/weekly-metrics \
91
+ --out .sce/specs/114-00-kpi-automation-and-observability/custom/weekly-metrics/2026-W10.json
92
92
 
93
93
  # Generate baseline from earliest 3 history snapshots
94
94
  sce value metrics baseline \
95
- --definitions .kiro/specs/112-00-spec-value-realization-program/custom/metric-definition.yaml \
96
- --history-dir .kiro/specs/114-00-kpi-automation-and-observability/custom/weekly-metrics \
95
+ --definitions .sce/specs/112-00-spec-value-realization-program/custom/metric-definition.yaml \
96
+ --history-dir .sce/specs/114-00-kpi-automation-and-observability/custom/weekly-metrics \
97
97
  --from-history 3 \
98
98
  --period 2026-W10 \
99
99
  --json
100
100
 
101
101
  # Generate trend report from latest 6 snapshots
102
102
  sce value metrics trend \
103
- --definitions .kiro/specs/112-00-spec-value-realization-program/custom/metric-definition.yaml \
104
- --history-dir .kiro/specs/114-00-kpi-automation-and-observability/custom/weekly-metrics \
103
+ --definitions .sce/specs/112-00-spec-value-realization-program/custom/metric-definition.yaml \
104
+ --history-dir .sce/specs/114-00-kpi-automation-and-observability/custom/weekly-metrics \
105
105
  --window 6 \
106
106
  --json
107
107
  ```
@@ -135,6 +135,23 @@ sce prompt generate <spec-name> <task-id>
135
135
  sce prompt generate <spec-name> <task-id> --tool=claude-code
136
136
  ```
137
137
 
138
+ ### Universal Steering & Session
139
+
140
+ ```bash
141
+ # Initialize universal steering contract (.sce/steering)
142
+ sce steering init
143
+
144
+ # Compile steering package for a specific agent tool
145
+ sce steering compile --tool codex --agent-version 1.2.3 --format json --json
146
+ sce steering compile --tool claude --agent-version 0.9.0
147
+
148
+ # Start/resume/snapshot cross-agent runtime sessions
149
+ sce session start "ship order workflow hardening" --tool codex --agent-version 1.2.3 --id release-20260224
150
+ sce session resume release-20260224 --status active
151
+ sce session snapshot release-20260224 --summary "post-gate checkpoint" --payload '{"tests_passed":42}' --json
152
+ sce session show release-20260224 --json
153
+ ```
154
+
138
155
  ### Watch Mode
139
156
 
140
157
  ```bash
@@ -203,6 +220,21 @@ sce workspace info [name]
203
220
  # Remove a workspace
204
221
  sce workspace remove <name> [--force]
205
222
 
223
+ # Scan for legacy .kiro directories in the workspace tree
224
+ sce workspace legacy-scan
225
+ sce workspace legacy-scan --max-depth 8 --json
226
+
227
+ # Migrate legacy .kiro directories to .sce (safe merge when .sce already exists)
228
+ sce workspace legacy-migrate
229
+ sce workspace legacy-migrate --dry-run --json
230
+ # Recommended: always run dry-run first, then execute manual migration
231
+ # sce workspace legacy-migrate --dry-run
232
+ # sce workspace legacy-migrate
233
+
234
+ # Safety guardrail (default):
235
+ # If legacy .kiro directories exist, sce blocks non-migration commands
236
+ # until manual migration is completed.
237
+
206
238
  # Legacy commands (still supported)
207
239
  sce workspace sync
208
240
  sce workspace team
@@ -267,6 +299,56 @@ sce orchestrate stop
267
299
 
268
300
  When you pass `--specs` to `sce spec bootstrap|pipeline run|gate run`, sce now defaults to this orchestrate mode automatically.
269
301
 
302
+ ### Capability Matrix Utilities
303
+
304
+ ```bash
305
+ # 1) Strategy routing: decide answer_only | code_change | code_fix | rollback
306
+ node scripts/auto-strategy-router.js \
307
+ --input '{"goal_type":"bugfix","requires_write":true,"test_failures":2,"changed_files":1}' \
308
+ --policy-file docs/agent-runtime/strategy-routing-policy-baseline.json \
309
+ --json
310
+
311
+ # 2) Symbol evidence localization: query -> ranked file/line/symbol hits
312
+ node scripts/symbol-evidence-locate.js \
313
+ --workspace . \
314
+ --query "approve order" \
315
+ --min-reliable-score 0.60 \
316
+ --json
317
+
318
+ # Strict evidence gate: exit code 2 when no reliable hit is found
319
+ node scripts/symbol-evidence-locate.js \
320
+ --workspace . \
321
+ --query "reconcile invoice accrual" \
322
+ --strict \
323
+ --json
324
+
325
+ # 3) Failure attribution + bounded self-repair plan (single repair pass max by default)
326
+ node scripts/failure-attribution-repair.js \
327
+ --error "Cannot find module @acme/order-core" \
328
+ --attempted-passes 0 \
329
+ --max-repair-passes 1 \
330
+ --tests "npm run test -- order-service" \
331
+ --json
332
+
333
+ # 4) Scene template + ontology capability mapping report
334
+ node scripts/capability-mapping-report.js \
335
+ --input-file .sce/reports/capability-mapping-input.json \
336
+ --out .sce/reports/capability-mapping-report.json \
337
+ --json
338
+ ```
339
+
340
+ Contract/baseline files:
341
+ - `docs/agent-runtime/symbol-evidence.schema.json`
342
+ - `docs/agent-runtime/failure-taxonomy-baseline.json`
343
+ - `docs/agent-runtime/capability-mapping-report.schema.json`
344
+ - `docs/agent-runtime/agent-result-summary-contract.schema.json`
345
+ - `docs/agent-runtime/multi-agent-coordination-policy-baseline.json`
346
+
347
+ Multi-agent merge governance default:
348
+ - `sce orchestrate run` loads `docs/agent-runtime/multi-agent-coordination-policy-baseline.json`.
349
+ - When `coordination_rules.require_result_summary=true`, each sub-agent must produce `spec_id/changed_files/tests_run/tests_passed/risk_level/open_issues`.
350
+ - Merge is blocked when summary contract is invalid, when `tests_passed < tests_run` (if enabled), or when unresolved conflict issues are present (if enabled).
351
+
270
352
  ### Autonomous Close-Loop Program
271
353
 
272
354
  ```bash
@@ -294,7 +376,7 @@ sce auto close-loop "build autonomous close-loop and master/sub orchestration" \
294
376
 
295
377
  # Write DoD evidence to custom report path
296
378
  sce auto close-loop "build autonomous close-loop and master/sub orchestration" \
297
- --dod-report ".kiro/reports/close-loop-dod.json"
379
+ --dod-report ".sce/reports/close-loop-dod.json"
298
380
 
299
381
  # Resume from the latest close-loop session snapshot
300
382
  sce auto close-loop --resume latest
@@ -324,8 +406,8 @@ sce auto close-loop "build autonomous close-loop and master/sub orchestration" \
324
406
  --replan-strategy adaptive
325
407
 
326
408
  # Run multiple goals in one autonomous batch (one master/sub portfolio per goal)
327
- sce auto close-loop-batch .kiro/goals.txt
328
- sce auto close-loop-batch .kiro/goals.json --dry-run --json
409
+ sce auto close-loop-batch .sce/goals.txt
410
+ sce auto close-loop-batch .sce/goals.json --dry-run --json
329
411
 
330
412
  # Generate batch goals from one broad program goal (no goals file needed)
331
413
  sce auto close-loop-batch \
@@ -349,20 +431,20 @@ sce auto close-loop-program \
349
431
  --program-govern-until-stable \
350
432
  --program-govern-max-rounds 3 \
351
433
  --program-govern-use-action 1 \
352
- --program-kpi-out .kiro/reports/close-loop-program-kpi.json \
353
- --program-audit-out .kiro/reports/close-loop-program-audit.json \
434
+ --program-kpi-out .sce/reports/close-loop-program-kpi.json \
435
+ --program-audit-out .sce/reports/close-loop-program-audit.json \
354
436
  --json
355
437
 
356
438
  # Controller command: drain queued broad goals with close-loop-program runtime
357
- sce auto close-loop-controller .kiro/auto/program-queue.lines \
439
+ sce auto close-loop-controller .sce/auto/program-queue.lines \
358
440
  --dequeue-limit 2 \
359
441
  --max-cycles 20 \
360
- --controller-done-file .kiro/auto/program-done.lines \
361
- --controller-failed-file .kiro/auto/program-failed.lines \
442
+ --controller-done-file .sce/auto/program-done.lines \
443
+ --controller-failed-file .sce/auto/program-failed.lines \
362
444
  --json
363
445
 
364
446
  # Persistent controller mode: keep polling queue and execute new goals automatically
365
- sce auto close-loop-controller .kiro/auto/program-queue.lines \
447
+ sce auto close-loop-controller .sce/auto/program-queue.lines \
366
448
  --wait-on-empty \
367
449
  --poll-seconds 30 \
368
450
  --max-cycles 1000 \
@@ -373,59 +455,59 @@ sce auto close-loop-controller --controller-resume latest --json
373
455
 
374
456
  # Recovery command: replay unresolved goals from summary using remediation action strategy
375
457
  sce auto close-loop-recover latest --json
376
- sce auto close-loop-recover .kiro/auto/close-loop-batch-summaries/batch-20260215090000.json \
458
+ sce auto close-loop-recover .sce/auto/close-loop-batch-summaries/batch-20260215090000.json \
377
459
  --use-action 2 \
378
460
  --recover-until-complete \
379
461
  --recover-max-rounds 3 \
380
462
  --recover-max-minutes 20 \
381
463
  --recovery-memory-ttl-days 30 \
382
464
  --recovery-memory-scope release-main \
383
- --program-audit-out .kiro/reports/close-loop-recover-audit.json \
465
+ --program-audit-out .sce/reports/close-loop-recover-audit.json \
384
466
  --dry-run --json
385
467
 
386
468
  # Default autonomous batch run (continue-on-error + adaptive scheduling + retry-until-complete)
387
- sce auto close-loop-batch .kiro/goals.json --json
469
+ sce auto close-loop-batch .sce/goals.json --json
388
470
 
389
471
  # Run batch goals with concurrent close-loop workers
390
- sce auto close-loop-batch .kiro/goals.json --batch-parallel 3 --json
472
+ sce auto close-loop-batch .sce/goals.json --batch-parallel 3 --json
391
473
 
392
474
  # Apply global agent budget across all concurrent goals
393
- sce auto close-loop-batch .kiro/goals.json \
475
+ sce auto close-loop-batch .sce/goals.json \
394
476
  --batch-parallel 3 \
395
477
  --batch-agent-budget 6 \
396
478
  --json
397
479
 
398
480
  # Prioritize complex goals first and enable anti-starvation aging
399
- sce auto close-loop-batch .kiro/goals.json \
481
+ sce auto close-loop-batch .sce/goals.json \
400
482
  --batch-priority critical-first \
401
483
  --batch-aging-factor 3 \
402
484
  --json
403
485
 
404
486
  # Automatically retry failed/stopped goals for one extra round
405
- sce auto close-loop-batch .kiro/goals.json \
487
+ sce auto close-loop-batch .sce/goals.json \
406
488
  --batch-retry-rounds 1 \
407
489
  --batch-retry-strategy adaptive \
408
490
  --json
409
491
 
410
492
  # Retry until all goals complete (bounded by max rounds)
411
- sce auto close-loop-batch .kiro/goals.json \
493
+ sce auto close-loop-batch .sce/goals.json \
412
494
  --batch-retry-until-complete \
413
495
  --batch-retry-max-rounds 10 \
414
496
  --json
415
497
 
416
498
  # Disable autonomous batch policy explicitly (only when you need legacy/manual tuning)
417
- sce auto close-loop-batch .kiro/goals.json \
499
+ sce auto close-loop-batch .sce/goals.json \
418
500
  --no-batch-autonomous \
419
501
  --json
420
502
 
421
503
  # Resume only pending goals from a previous batch summary
422
- sce auto close-loop-batch --resume-from-summary .kiro/reports/close-loop-batch.json --json
504
+ sce auto close-loop-batch --resume-from-summary .sce/reports/close-loop-batch.json --json
423
505
 
424
506
  # Resume pending goals from latest persisted batch session summary
425
507
  sce auto close-loop-batch --resume-from-summary latest --json
426
508
 
427
509
  # Resume only failed/error goals from summary (ignore unprocessed goals)
428
- sce auto close-loop-batch --resume-from-summary .kiro/reports/close-loop-batch.json \
510
+ sce auto close-loop-batch --resume-from-summary .sce/reports/close-loop-batch.json \
429
511
  --resume-strategy failed-only --json
430
512
 
431
513
  # List persisted close-loop sessions
@@ -505,7 +587,7 @@ sce auto kpi trend --weeks 8 --period day --mode program --csv --out ./auto-kpi-
505
587
 
506
588
  # Unified observability snapshot (sessions + governance + KPI trend)
507
589
  sce auto observability snapshot --days 14 --status completed,failed --json
508
- sce auto observability snapshot --out .kiro/reports/auto-observability.json --json
590
+ sce auto observability snapshot --out .sce/reports/auto-observability.json --json
509
591
 
510
592
  # Agent-facing spec interfaces
511
593
  sce auto spec status 121-00-master --json
@@ -519,21 +601,21 @@ sce auto schema migrate --only close-loop-session,batch-session --apply --json
519
601
 
520
602
  # Dual-track handoff integration (generic external project -> sce)
521
603
  sce auto handoff plan --manifest docs/handoffs/handoff-manifest.json --json
522
- sce auto handoff plan --manifest docs/handoffs/handoff-manifest.json --strict --out .kiro/reports/handoff-plan.json --json
523
- sce auto handoff queue --manifest docs/handoffs/handoff-manifest.json --out .kiro/auto/handoff-goals.lines --json
604
+ sce auto handoff plan --manifest docs/handoffs/handoff-manifest.json --strict --out .sce/reports/handoff-plan.json --json
605
+ sce auto handoff queue --manifest docs/handoffs/handoff-manifest.json --out .sce/auto/handoff-goals.lines --json
524
606
  sce auto handoff template-diff --manifest docs/handoffs/handoff-manifest.json --json
525
607
  sce auto handoff capability-matrix --manifest docs/handoffs/handoff-manifest.json --json
526
608
  sce auto handoff capability-matrix --manifest docs/handoffs/handoff-manifest.json --profile moqui --json
527
- sce auto handoff capability-matrix --manifest docs/handoffs/handoff-manifest.json --format markdown --out .kiro/reports/handoff-capability-matrix.md --fail-on-gap --json
609
+ sce auto handoff capability-matrix --manifest docs/handoffs/handoff-manifest.json --format markdown --out .sce/reports/handoff-capability-matrix.md --fail-on-gap --json
528
610
  sce auto handoff run --manifest docs/handoffs/handoff-manifest.json --json
529
611
  sce auto handoff run --manifest docs/handoffs/handoff-manifest.json --profile enterprise --json
530
612
  sce auto handoff run --manifest docs/handoffs/handoff-manifest.json --min-spec-success-rate 95 --max-risk-level medium --json
531
613
  sce auto handoff run --manifest docs/handoffs/handoff-manifest.json --continue-from latest --continue-strategy auto --json
532
614
  sce auto handoff regression --session-id latest --json
533
615
  sce auto handoff regression --session-id latest --window 5 --json
534
- sce auto handoff regression --session-id latest --format markdown --out .kiro/reports/handoff-regression.md --json
535
- sce auto handoff regression --session-id latest --window 5 --out .kiro/reports/handoff-regression.json --json
536
- sce auto close-loop-batch .kiro/auto/handoff-goals.lines --format lines --json
616
+ sce auto handoff regression --session-id latest --format markdown --out .sce/reports/handoff-regression.md --json
617
+ sce auto handoff regression --session-id latest --window 5 --out .sce/reports/handoff-regression.json --json
618
+ sce auto close-loop-batch .sce/auto/handoff-goals.lines --format lines --json
537
619
  ```
538
620
 
539
621
  DoD-related options:
@@ -586,11 +668,11 @@ Close-loop batch (`sce auto close-loop-batch <goals-file>`) options:
586
668
  - `--batch-session-id <id>`: set explicit persisted batch session id
587
669
  - `--batch-session-keep <n>`: keep newest `n` persisted batch summaries after each run (`0-1000`)
588
670
  - `--batch-session-older-than-days <n>`: when pruning persisted batch summaries, only delete sessions older than `n` days (`0-36500`)
589
- - `--spec-session-keep <n>`: keep newest `n` spec directories under `.kiro/specs` after run (`0-5000`)
671
+ - `--spec-session-keep <n>`: keep newest `n` spec directories under `.sce/specs` after run (`0-5000`)
590
672
  - `--spec-session-older-than-days <n>`: when pruning specs, only delete directories older than `n` days (`0-36500`)
591
673
  - `--no-spec-session-protect-active`: allow pruning active/recently referenced spec directories
592
674
  - `--spec-session-protect-window-days <n>`: protection window (days) for recent session references during spec pruning (`0-36500`, default `7`)
593
- - `--spec-session-max-total <n>`: spec directory budget ceiling under `.kiro/specs` (`1-500000`)
675
+ - `--spec-session-max-total <n>`: spec directory budget ceiling under `.sce/specs` (`1-500000`)
594
676
  - `--spec-session-max-created <n>`: spec growth guard for maximum estimated created directories per run (`0-500000`)
595
677
  - `--spec-session-max-created-per-goal <n>`: spec growth guard for estimated created directories per processed goal (`0-1000`)
596
678
  - `--spec-session-max-duplicate-goals <n>`: goal-input duplicate guard for batch runs (`0-500000`)
@@ -655,7 +737,7 @@ Close-loop program (`sce auto close-loop-program "<goal>"`) options:
655
737
  - Program summary includes `program_coordination` (master/sub topology, unresolved goal indexes, scheduler snapshot) and `auto_recovery` metadata.
656
738
 
657
739
  Close-loop controller (`sce auto close-loop-controller [queue-file]`) options:
658
- - `queue-file`: optional queue file path (default `.kiro/auto/close-loop-controller-goals.lines`)
740
+ - `queue-file`: optional queue file path (default `.sce/auto/close-loop-controller-goals.lines`)
659
741
  - `--controller-resume <session-or-file>`: resume from persisted controller session (`latest`, session id, or file path)
660
742
  - `--queue-format <auto|json|lines>`: queue parser mode (default `auto`)
661
743
  - `--no-controller-dedupe`: disable duplicate broad-goal deduplication (default dedupe enabled)
@@ -704,7 +786,7 @@ Close-loop session maintenance:
704
786
  - Stats JSON output includes `criteria`, completion/failure rates, `sub_spec_count_sum`, `master_spec_counts`, and `latest_sessions`.
705
787
 
706
788
  Spec directory maintenance:
707
- - `sce auto spec-session list [--limit <n>] [--json]`: list persisted spec directories under `.kiro/specs`
789
+ - `sce auto spec-session list [--limit <n>] [--json]`: list persisted spec directories under `.sce/specs`
708
790
  - `sce auto spec-session prune [--keep <n>] [--older-than-days <n>] [--no-protect-active] [--protect-window-days <n>] [--show-protection-reasons] [--dry-run] [--json]`: prune old spec directories by retention policy (default protects active/recent specs)
709
791
  - Protection sources include collaboration state, close-loop sessions, batch summaries, and controller sessions (via nested batch summary references).
710
792
  - JSON output always includes `protection_ranking_top` (top protected specs by reason count); `--show-protection-reasons` additionally includes per-spec `reasons` and full `protection_ranking`.
@@ -745,7 +827,7 @@ Cross-archive autonomous governance maintenance:
745
827
  - JSON output includes `assessment` (pre-maintenance governance snapshot), `plan`, `executed_actions`, `summary`, and `after_assessment` (only when `--apply` without `--dry-run`).
746
828
  - `sce auto governance close-loop [--days <n>] [--status <csv>] [--session-keep <n>] [--batch-session-keep <n>] [--controller-session-keep <n>] [--recovery-memory-older-than-days <n>] [--max-rounds <n>] [--target-risk <low|medium|high>] [--governance-resume <session|latest|file>] [--governance-resume-allow-drift] [--governance-session-id <id>] [--no-governance-session] [--governance-session-keep <n>] [--governance-session-older-than-days <n>] [--execute-advisory] [--advisory-recover-max-rounds <n>] [--advisory-controller-max-cycles <n>] [--plan-only] [--dry-run] [--json]`: run governance rounds until stop condition (target risk reached, release gate blocked, no actionable maintenance/advisory, non-mutating mode, maintenance/advisory failures, or max rounds).
747
829
  - `--plan-only` runs a single non-mutating planning round.
748
- - Governance close-loop sessions are persisted by default at `.kiro/auto/governance-close-loop-sessions/*.json`; use `--governance-resume` to continue interrupted governance loops.
830
+ - Governance close-loop sessions are persisted by default at `.sce/auto/governance-close-loop-sessions/*.json`; use `--governance-resume` to continue interrupted governance loops.
749
831
  - On resume, sce reuses persisted policy defaults (`target_risk`, `execute_advisory`, `advisory_policy`) unless explicitly overridden. Explicit policy drift is blocked by default; add `--governance-resume-allow-drift` to force override.
750
832
  - `--governance-session-keep` (with optional `--governance-session-older-than-days`) enables post-run governance session retention pruning while protecting the current session snapshot.
751
833
  - `--execute-advisory` enables automatic advisory action execution (`recover-latest`, `controller-resume-latest`) when governance assessment detects failed sessions or controller pending goals; sce auto-selects the latest actionable advisory source and reports `skipped` (not `failed`) when no actionable source exists.
@@ -798,7 +880,7 @@ Autonomous archive schema compatibility:
798
880
 
799
881
  Dual-track handoff integration:
800
882
  - `sce auto handoff plan --manifest <path> [--out <path>] [--strict] [--strict-warnings] [--json]`: parse handoff manifest (source project, specs, templates, known gaps) and generate an executable sce integration phase plan.
801
- - `sce auto handoff queue --manifest <path> [--out <path>] [--append] [--no-include-known-gaps] [--dry-run] [--json]`: generate close-loop batch goal queue from handoff manifest and optionally persist line-based queue file (default `.kiro/auto/handoff-goals.lines`).
883
+ - `sce auto handoff queue --manifest <path> [--out <path>] [--append] [--no-include-known-gaps] [--dry-run] [--json]`: generate close-loop batch goal queue from handoff manifest and optionally persist line-based queue file (default `.sce/auto/handoff-goals.lines`).
802
884
  - `sce auto handoff template-diff --manifest <path> [--json]`: compare manifest templates against local template exports/registry and report `missing_in_local` and `extra_in_local`.
803
885
  - `sce auto handoff capability-matrix --manifest <path> [--profile <default|moqui|enterprise>] [--strict] [--strict-warnings] [--min-capability-coverage <n>] [--min-capability-semantic <n>] [--no-require-capability-semantic] [--format <json|markdown>] [--out <path>] [--remediation-queue-out <path>] [--fail-on-gap] [--json]`: generate a fast Moqui capability matrix (`template-diff + baseline + capability coverage + semantic completeness`) and optionally fail fast on gaps.
804
886
  - When matrix regressions are detected in baseline compare, recommendations prioritize capability-cluster phased execution first (`npm run run:matrix-remediation-clusters-phased -- --json`), then baseline phased one-shot (`node scripts/moqui-matrix-remediation-phased-runner.js --baseline ... --json`).
@@ -806,16 +888,16 @@ Dual-track handoff integration:
806
888
  - `sce auto handoff preflight-check [--profile <default|moqui|enterprise>] [--history-file <path>] [--require-release-gate-preflight|--no-require-release-gate-preflight] [--release-evidence-window <n>] [--require-pass] [--json]`: inspect release-gate history preflight readiness and return machine-readable `pass|warning|blocked` status with reasons, runtime weekly-ops pressure signals, and executable remediation commands.
807
889
  - `--require-pass` exits non-zero when status is not `pass` (recommended for CI/release hard gates).
808
890
  - Default policy follows profile defaults and enforces release-gate preflight hard requirement (`default`/`moqui`/`enterprise` all require preflight by default).
809
- - `sce auto handoff run --manifest <path> [--profile <default|moqui|enterprise>] [--out <path>] [--queue-out <path>] [--append] [--no-include-known-gaps] [--continue-from <session|latest|file>] [--continue-strategy <auto|pending|failed-only>] [--dry-run] [--strict] [--strict-warnings] [--no-dependency-batching] [--min-spec-success-rate <n>] [--max-risk-level <level>] [--max-moqui-matrix-regressions <n>] [--no-require-ontology-validation] [--no-require-moqui-baseline] [--min-capability-coverage <n>] [--no-require-capability-coverage] [--require-release-gate-preflight] [--release-evidence-window <n>] [--json]`: execute handoff end-to-end (`plan -> queue -> close-loop-batch -> observability`) with automatic report archive to `.kiro/reports/handoff-runs/<session>.json`.
891
+ - `sce auto handoff run --manifest <path> [--profile <default|moqui|enterprise>] [--out <path>] [--queue-out <path>] [--append] [--no-include-known-gaps] [--continue-from <session|latest|file>] [--continue-strategy <auto|pending|failed-only>] [--dry-run] [--strict] [--strict-warnings] [--no-dependency-batching] [--min-spec-success-rate <n>] [--max-risk-level <level>] [--max-moqui-matrix-regressions <n>] [--no-require-ontology-validation] [--no-require-moqui-baseline] [--min-capability-coverage <n>] [--no-require-capability-coverage] [--require-release-gate-preflight] [--release-evidence-window <n>] [--json]`: execute handoff end-to-end (`plan -> queue -> close-loop-batch -> observability`) with automatic report archive to `.sce/reports/handoff-runs/<session>.json`.
810
892
  - Default mode is dependency-aware: spec integration goals are grouped into dependency batches and executed in topological order.
811
893
  - `--continue-from` resumes pending goals from an existing handoff run report (`latest`, session id, or JSON file path). For safety, sce enforces manifest-path consistency between the previous report and current run.
812
894
  - `--continue-strategy auto|pending|failed-only` controls resumed scope. `auto` (default) derives the best strategy from prior run state (`pending` when unprocessed/planned goals exist, otherwise `failed-only` for pure failure replay).
813
- - Non-dry runs auto-merge release evidence into `.kiro/reports/release-evidence/handoff-runs.json` with session-level gate/ontology/regression/moqui-baseline/capability-coverage snapshots. Merge failures are recorded as warnings without aborting the run.
895
+ - Non-dry runs auto-merge release evidence into `.sce/reports/release-evidence/handoff-runs.json` with session-level gate/ontology/regression/moqui-baseline/capability-coverage snapshots. Merge failures are recorded as warnings without aborting the run.
814
896
  - `--release-evidence-window` controls trend snapshot window size (2-50, default `5`) used in merged release evidence (`latest_trend_window` and per-session `trend_window`).
815
- - Run output includes `moqui_baseline` snapshot by default, with artifacts at `.kiro/reports/release-evidence/moqui-template-baseline.json` and `.kiro/reports/release-evidence/moqui-template-baseline.md`.
897
+ - Run output includes `moqui_baseline` snapshot by default, with artifacts at `.sce/reports/release-evidence/moqui-template-baseline.json` and `.sce/reports/release-evidence/moqui-template-baseline.md`.
816
898
  - `moqui_baseline.summary` now includes `scope_breakdown`, `coverage_matrix`, and `gap_frequency` for ER/BR/decision closure tracking.
817
899
  - `moqui_baseline.compare` now includes `coverage_matrix_deltas` and `coverage_matrix_regressions` for trend-level entity/relation/rule/decision closure movement and negative-delta alerts (used by matrix-regression hard gate).
818
- - Run output includes `moqui_capability_coverage` snapshot by default (when manifest `capabilities` is declared), with artifacts at `.kiro/reports/release-evidence/moqui-capability-coverage.json` and `.kiro/reports/release-evidence/moqui-capability-coverage.md`.
900
+ - Run output includes `moqui_capability_coverage` snapshot by default (when manifest `capabilities` is declared), with artifacts at `.sce/reports/release-evidence/moqui-capability-coverage.json` and `.sce/reports/release-evidence/moqui-capability-coverage.md`.
819
901
  - When `manifest.capabilities` is not declared, sce attempts lexicon-based capability inference from `manifest.templates` first; only fully non-mappable manifests keep capability coverage in skipped mode.
820
902
  - Run output includes `release_gate_preflight` (latest release gate history signal snapshot + blocked reasons) and carries this context into `warnings`.
821
903
  - `release_gate_preflight` now also carries runtime weekly-ops pressure metrics (`latest_weekly_ops_runtime_block_rate_percent`, `latest_weekly_ops_runtime_ui_mode_violation_total`, `latest_weekly_ops_runtime_ui_mode_violation_rate_percent`) for UI-mode policy diagnostics.
@@ -825,7 +907,7 @@ Dual-track handoff integration:
825
907
  - `default`: default takeover policy (release-gate preflight hard requirement enabled).
826
908
  - `moqui`: explicit Moqui-intake baseline (same hard-gate defaults as `default`).
827
909
  - `enterprise`: stricter release control baseline (`max-risk-level=medium`, `release-evidence-window=10`, preflight hard requirement enabled).
828
- - When Moqui baseline/capability gates fail, sce auto-generates remediation queue lines at `.kiro/auto/moqui-remediation.lines`.
910
+ - When Moqui baseline/capability gates fail, sce auto-generates remediation queue lines at `.sce/auto/moqui-remediation.lines`.
829
911
  - Run result includes `failure_summary` (failed phase/gate/release-gate preflight highlights) and `recommendations` with executable follow-up commands (for example, auto-generated `--continue-from <session>` on failed/incomplete batches).
830
912
  - When matrix regressions are detected, recommendations now prioritize capability-cluster phased execution (`npm run run:matrix-remediation-clusters-phased -- --json`) and include capability-cluster batch fallback plus baseline phased one-shot remediation (`node scripts/moqui-matrix-remediation-phased-runner.js --baseline ... --json`).
831
913
  - Moqui regression recovery recommendations now include an explicit labeled sequence block: `Step 1 (Cluster phased)` then `Step 2 (Baseline phased)`.
@@ -839,16 +921,16 @@ Dual-track handoff integration:
839
921
  - `--out` writes the generated regression report using the selected format.
840
922
  - Output includes `recommendations` to guide next action when trend degrades or risk escalates, including phased anti-429 baseline one-shot remediation when Moqui matrix regressions are detected.
841
923
  - `sce auto handoff evidence [--file <path>] [--session-id <id|latest>] [--window <n>] [--format <json|markdown>] [--out <path>] [--json]`: quick-review merged release evidence and render current-batch gate/ontology/regression/moqui-baseline/capability-coverage/risk-layer overview.
842
- - Default evidence file is `.kiro/reports/release-evidence/handoff-runs.json`.
924
+ - Default evidence file is `.sce/reports/release-evidence/handoff-runs.json`.
843
925
  - `--window` (1-50, default `5`) controls how many recent sessions are aggregated in review.
844
926
  - JSON output includes `current_overview` (with `release_gate_preflight`, `failure_summary`, and preflight policy flags), `aggregates.status_counts`, `aggregates.gate_pass_rate_percent`, and `risk_layers`.
845
927
  - Markdown output includes `Current Gate`, `Current Release Gate Preflight`, `Current Failure Summary`, `Current Ontology`, `Current Regression`, `Current Moqui Baseline`, `Current Capability Coverage`, `Trend Series`, and `Risk Layer View`.
846
928
  - `Current Release Gate Preflight` includes runtime pressure lines (runtime block-rate and ui-mode violation totals/rates) when signals exist in release-gate history.
847
929
  - Add `--release-draft <path>` to auto-generate a release notes draft and evidence review markdown in one run.
848
930
  - `--release-version` sets draft version tag (defaults to `v<package.json version>`), and `--release-date` accepts `YYYY-MM-DD` (default: current UTC date).
849
- - Use `--review-out <path>` to override the generated evidence review markdown path (default `.kiro/reports/release-evidence/handoff-evidence-review.md`).
931
+ - Use `--review-out <path>` to override the generated evidence review markdown path (default `.sce/reports/release-evidence/handoff-evidence-review.md`).
850
932
  - `sce auto handoff gate-index [--dir <path>] [--history-file <path>] [--keep <n>] [--out <path>] [--json]`: aggregate `release-gate-*.json` audits into a cross-version history index.
851
- - Default scan dir is `.kiro/reports/release-evidence`, default output file is `.kiro/reports/release-evidence/release-gate-history.json`.
933
+ - Default scan dir is `.sce/reports/release-evidence`, default output file is `.sce/reports/release-evidence/release-gate-history.json`.
852
934
  - `--history-file` merges an existing index (for example, previous release asset) before dedup/refresh.
853
935
  - `--keep` retains latest N entries (`1-5000`, default `200`).
854
936
  - Aggregates include scene package batch, capability unknown trend, drift, weekly ops pressure (including runtime ui-mode/runtime block-rate telemetry), config warning pressure, and release-preflight/hard-gate signals (`scene_package_batch_*`, `capability_expected_unknown_*`, `capability_provided_unknown_*`, `drift_alert_*`, `drift_block_*`, `weekly_ops_*`, `config_warnings_total`, `release_gate_preflight_*`) when present in gate reports.
@@ -865,13 +947,13 @@ Moqui release summary helper (script-level consolidated gate view):
865
947
  - When matrix regressions exist and remediation plan is available, recommendations include concrete template/capability priority order from `template_priority_matrix` and `capability_clusters`.
866
948
  - Matrix-regression recovery recommendations now use explicit labeled sequence steps: `Step 1 (Cluster phased)` then `Step 2 (Baseline phased)`.
867
949
  - Default inputs:
868
- - `.kiro/reports/release-evidence/handoff-runs.json`
869
- - `.kiro/reports/release-evidence/moqui-template-baseline.json`
870
- - `.kiro/reports/release-evidence/moqui-lexicon-audit.json`
871
- - `.kiro/reports/handoff-capability-matrix.json`
950
+ - `.sce/reports/release-evidence/handoff-runs.json`
951
+ - `.sce/reports/release-evidence/moqui-template-baseline.json`
952
+ - `.sce/reports/release-evidence/moqui-lexicon-audit.json`
953
+ - `.sce/reports/handoff-capability-matrix.json`
872
954
  - Default outputs:
873
- - `.kiro/reports/release-evidence/moqui-release-summary.json`
874
- - `.kiro/reports/release-evidence/moqui-release-summary.md`
955
+ - `.sce/reports/release-evidence/moqui-release-summary.json`
956
+ - `.sce/reports/release-evidence/moqui-release-summary.md`
875
957
  - `--fail-on-gate-fail` exits with code `2` when summary gate is `failed`.
876
958
 
877
959
  Release governance snapshot export helper (release-asset extraction):
@@ -879,20 +961,20 @@ Release governance snapshot export helper (release-asset extraction):
879
961
  - reads release evidence summary from `RELEASE_EVIDENCE_SUMMARY_FILE`
880
962
  - extracts `governance_snapshot` into independent audit assets
881
963
  - writes:
882
- - `RELEASE_GOVERNANCE_SNAPSHOT_JSON` (default `.kiro/reports/release-evidence/governance-snapshot.json`)
883
- - `RELEASE_GOVERNANCE_SNAPSHOT_MD` (default `.kiro/reports/release-evidence/governance-snapshot.md`)
964
+ - `RELEASE_GOVERNANCE_SNAPSHOT_JSON` (default `.sce/reports/release-evidence/governance-snapshot.json`)
965
+ - `RELEASE_GOVERNANCE_SNAPSHOT_MD` (default `.sce/reports/release-evidence/governance-snapshot.md`)
884
966
  - never hard-fails release flow when summary is missing; writes unavailable placeholder with warning instead.
885
967
 
886
968
  Release weekly ops summary helper (ops closed-loop evidence):
887
969
  - `node scripts/release-ops-weekly-summary.js [--evidence <path>] [--gate-history <path>] [--interactive-governance <path>] [--matrix-signals <path>] [--from <iso>] [--to <iso>] [--window-days <n>] [--out <path>] [--markdown-out <path>] [--json]`: aggregate weekly handoff/gate/governance/matrix telemetry into one operational risk card.
888
970
  - Default inputs:
889
- - `.kiro/reports/release-evidence/handoff-runs.json`
890
- - `.kiro/reports/release-evidence/release-gate-history.json`
891
- - `.kiro/reports/interactive-governance-report.json`
892
- - `.kiro/reports/interactive-matrix-signals.jsonl`
971
+ - `.sce/reports/release-evidence/handoff-runs.json`
972
+ - `.sce/reports/release-evidence/release-gate-history.json`
973
+ - `.sce/reports/interactive-governance-report.json`
974
+ - `.sce/reports/interactive-matrix-signals.jsonl`
893
975
  - Default outputs:
894
- - `.kiro/reports/release-evidence/weekly-ops-summary.json`
895
- - `.kiro/reports/release-evidence/weekly-ops-summary.md`
976
+ - `.sce/reports/release-evidence/weekly-ops-summary.json`
977
+ - `.sce/reports/release-evidence/weekly-ops-summary.md`
896
978
  - Missing inputs are reported as warnings and reflected in `health.risk`/recommendations.
897
979
  - npm alias: `npm run report:release-ops-weekly`
898
980
 
@@ -917,16 +999,16 @@ Release weekly ops gate helper (release hard-gate):
917
999
  Release risk remediation bundle helper (weekly + drift unified command pack):
918
1000
  - `node scripts/release-risk-remediation-bundle.js [--gate-report <path>] [--out <path>] [--markdown-out <path>] [--lines-out <path>] [--json]`: derive deduplicated remediation commands from `release-gate` report signals (`weekly_ops`, `drift`) and export JSON/Markdown/lines artifacts.
919
1001
  - when weekly gate includes `dialogue-authorization`/`authorization-tier` block-rate pressure, plan includes policy-specific diagnostics (`interactive-dialogue-governance`, `interactive-authorization-tier-evaluate`).
920
- - Default input: `.kiro/reports/release-evidence/release-gate.json`
1002
+ - Default input: `.sce/reports/release-evidence/release-gate.json`
921
1003
  - Default outputs:
922
- - `.kiro/reports/release-evidence/release-risk-remediation-bundle.json`
923
- - `.kiro/reports/release-evidence/release-risk-remediation-bundle.md`
924
- - `.kiro/reports/release-evidence/release-risk-remediation.commands.lines`
1004
+ - `.sce/reports/release-evidence/release-risk-remediation-bundle.json`
1005
+ - `.sce/reports/release-evidence/release-risk-remediation-bundle.md`
1006
+ - `.sce/reports/release-evidence/release-risk-remediation.commands.lines`
925
1007
  - npm alias: `npm run report:release-risk-remediation`
926
1008
 
927
1009
  Release asset integrity check helper (release artifact completeness gate):
928
1010
  - `node scripts/release-asset-integrity-check.js`:
929
- - validates required release evidence assets in `RELEASE_ASSET_INTEGRITY_DIR` (default `.kiro/reports/release-evidence`).
1011
+ - validates required release evidence assets in `RELEASE_ASSET_INTEGRITY_DIR` (default `.sce/reports/release-evidence`).
930
1012
  - default required files:
931
1013
  - `release-gate-{tag}.json`
932
1014
  - `release-gate-history-{tag}.json|.md`
@@ -941,10 +1023,24 @@ Release asset integrity check helper (release artifact completeness gate):
941
1023
  - merges result into `RELEASE_GATE_REPORT_FILE` when provided.
942
1024
  - npm alias: `npm run gate:release-asset-integrity`
943
1025
 
1026
+ Release optional-asset nonempty normalize helper (pre-upload 0-byte guard):
1027
+ - `node scripts/release-asset-nonempty-normalize.js --file <path> [--file <path> ...] [--kind auto|json|jsonl|lines|text] [--note <text>] [--event <event>] [--dry-run] [--json]`:
1028
+ - creates placeholder content when file is missing.
1029
+ - fills placeholder content when file exists but is empty.
1030
+ - keeps file untouched when it already has content.
1031
+ - intended for optional release assets (`.jsonl`, `.lines`) before GitHub Release upload.
1032
+
1033
+ Autonomous strategy router helper (answer/code/fix/rollback policy):
1034
+ - `node scripts/auto-strategy-router.js --input-file <path> [--policy-file <path>] --json`
1035
+ - `node scripts/auto-strategy-router.js --input '{"goal_type":"bugfix","requires_write":true}' --json`
1036
+ - returns decision: `answer_only|code_change|code_fix|rollback`.
1037
+ - returns `reasons[]` and `next_actions[]` for auditable routing.
1038
+ - default policy baseline: `docs/agent-runtime/strategy-routing-policy-baseline.json`.
1039
+
944
1040
  Matrix regression gate helper (script-level configurable hard gate):
945
1041
  - `node scripts/matrix-regression-gate.js [--baseline <path>] [--max-regressions <n>] [--enforce] [--out <path>] [--json]`: evaluate matrix regression count from baseline compare payload (`coverage_matrix_regressions` preferred, fallback `regressions`) and enforce hard gate when enabled.
946
- - Default baseline input: `.kiro/reports/release-evidence/moqui-template-baseline.json`
947
- - Default output: `.kiro/reports/release-evidence/matrix-regression-gate.json`
1042
+ - Default baseline input: `.sce/reports/release-evidence/moqui-template-baseline.json`
1043
+ - Default output: `.sce/reports/release-evidence/matrix-regression-gate.json`
948
1044
  - `--enforce` exits with code `2` when regressions exceed `--max-regressions`.
949
1045
  - npm alias: `npm run gate:matrix-regression`
950
1046
 
@@ -953,17 +1049,17 @@ Moqui matrix remediation queue helper (script-level automatic queue export):
953
1049
  - JSON output includes `template_priority_matrix` (cross-regression template priority ranking) and `capability_clusters` (capability-level remediation clusters with suggested templates).
954
1050
  - JSON output includes `capability_cluster_goal_count` and writes `mode=moqui-matrix-capability-cluster-goals` payload with cluster-level `goals` for direct batch execution.
955
1051
  - Default inputs/outputs:
956
- - Baseline: `.kiro/reports/release-evidence/moqui-template-baseline.json`
957
- - Plan JSON: `.kiro/reports/release-evidence/matrix-remediation-plan.json`
958
- - Queue lines: `.kiro/auto/matrix-remediation.lines`
959
- - Plan Markdown: `.kiro/reports/release-evidence/matrix-remediation-plan.md`
960
- - Batch goals JSON: `.kiro/auto/matrix-remediation.goals.json`
961
- - Capability-cluster goals JSON: `.kiro/auto/matrix-remediation.capability-clusters.json`
962
- - Commands Markdown: `.kiro/reports/release-evidence/matrix-remediation-commands.md`
963
- - High queue lines: `.kiro/auto/matrix-remediation.high.lines`
964
- - Medium queue lines: `.kiro/auto/matrix-remediation.medium.lines`
965
- - High goals JSON: `.kiro/auto/matrix-remediation.goals.high.json`
966
- - Medium goals JSON: `.kiro/auto/matrix-remediation.goals.medium.json`
1052
+ - Baseline: `.sce/reports/release-evidence/moqui-template-baseline.json`
1053
+ - Plan JSON: `.sce/reports/release-evidence/matrix-remediation-plan.json`
1054
+ - Queue lines: `.sce/auto/matrix-remediation.lines`
1055
+ - Plan Markdown: `.sce/reports/release-evidence/matrix-remediation-plan.md`
1056
+ - Batch goals JSON: `.sce/auto/matrix-remediation.goals.json`
1057
+ - Capability-cluster goals JSON: `.sce/auto/matrix-remediation.capability-clusters.json`
1058
+ - Commands Markdown: `.sce/reports/release-evidence/matrix-remediation-commands.md`
1059
+ - High queue lines: `.sce/auto/matrix-remediation.high.lines`
1060
+ - Medium queue lines: `.sce/auto/matrix-remediation.medium.lines`
1061
+ - High goals JSON: `.sce/auto/matrix-remediation.goals.high.json`
1062
+ - Medium goals JSON: `.sce/auto/matrix-remediation.goals.medium.json`
967
1063
  - Default phased execution policy:
968
1064
  - High phase: `--batch-parallel 1 --batch-agent-budget 2`
969
1065
  - Medium phase: `--batch-parallel 1 --batch-agent-budget 2`
@@ -973,17 +1069,17 @@ Moqui matrix remediation queue helper (script-level automatic queue export):
973
1069
  Moqui matrix remediation phased runner helper (script-level one-shot execution):
974
1070
  - `node scripts/moqui-matrix-remediation-phased-runner.js [--baseline <path>] [--queue-out <path>] [--queue-lines-out <path>] [--queue-markdown-out <path>] [--queue-batch-json-out <path>] [--queue-commands-out <path>] [--cluster-goals <path>] [--cluster-high-goals-out <path>] [--cluster-medium-goals-out <path>] [--min-delta-abs <n>] [--top-templates <n>] [--high-goals <path>] [--medium-goals <path>] [--high-lines <path>] [--medium-lines <path>] [--phase-high-parallel <n>] [--phase-high-agent-budget <n>] [--phase-medium-parallel <n>] [--phase-medium-agent-budget <n>] [--phase-cooldown-seconds <n>] [--high-retry-max-rounds <n>] [--medium-retry-max-rounds <n>] [--phase-recovery-attempts <n>] [--phase-recovery-cooldown-seconds <n>] [--no-fallback-lines] [--continue-on-error] [--dry-run] [--json]`: execute matrix remediation in anti-429 phased order (`high -> cooldown -> medium`) using `sce auto close-loop-batch`; when `--baseline` is provided, it auto-generates the queue package first (`prepare + run` in one command), and when `--cluster-goals` is provided it derives phase goals from capability clusters before execution.
975
1071
  - Default inputs:
976
- - High goals JSON: `.kiro/auto/matrix-remediation.goals.high.json`
977
- - Medium goals JSON: `.kiro/auto/matrix-remediation.goals.medium.json`
978
- - High lines fallback: `.kiro/auto/matrix-remediation.high.lines`
979
- - Medium lines fallback: `.kiro/auto/matrix-remediation.medium.lines`
1072
+ - High goals JSON: `.sce/auto/matrix-remediation.goals.high.json`
1073
+ - Medium goals JSON: `.sce/auto/matrix-remediation.goals.medium.json`
1074
+ - High lines fallback: `.sce/auto/matrix-remediation.high.lines`
1075
+ - Medium lines fallback: `.sce/auto/matrix-remediation.medium.lines`
980
1076
  - Default execution policy:
981
1077
  - High: `--batch-parallel 1 --batch-agent-budget 2 --batch-retry-max-rounds 3`
982
1078
  - Medium: `--batch-parallel 1 --batch-agent-budget 2 --batch-retry-max-rounds 2`
983
1079
  - Cooldown: `30` seconds
984
1080
  - Phase process recovery: `--phase-recovery-attempts 2` with `--phase-recovery-cooldown-seconds 30`; on retry, phase parallel/agent-budget are halved (floor, min=1)
985
1081
  - Zero-prep mode:
986
- - `node scripts/moqui-matrix-remediation-phased-runner.js --baseline .kiro/reports/release-evidence/moqui-template-baseline.json --json`
1082
+ - `node scripts/moqui-matrix-remediation-phased-runner.js --baseline .sce/reports/release-evidence/moqui-template-baseline.json --json`
987
1083
  - npm alias: `npm run run:matrix-remediation-phased`
988
1084
  - npm alias (baseline zero-prep): `npm run run:matrix-remediation-from-baseline -- --json`
989
1085
  - npm alias (capability clusters): `npm run run:matrix-remediation-clusters`
@@ -994,8 +1090,8 @@ Interactive customization plan gate helper (script-level secure-by-default check
994
1090
  - Default policy: `docs/interactive-customization/guardrail-policy-baseline.json`
995
1091
  - Default catalog: `docs/interactive-customization/high-risk-action-catalog.json` (or `policy.catalog_policy.catalog_file`)
996
1092
  - Default outputs:
997
- - `.kiro/reports/interactive-change-plan-gate.json`
998
- - `.kiro/reports/interactive-change-plan-gate.md`
1093
+ - `.sce/reports/interactive-change-plan-gate.json`
1094
+ - `.sce/reports/interactive-change-plan-gate.md`
999
1095
  - `--fail-on-block` exits with code `2` on `deny`
1000
1096
  - `--fail-on-non-allow` exits with code `2` on `deny` or `review-required`
1001
1097
 
@@ -1003,29 +1099,29 @@ Interactive context bridge helper (script-level provider normalization):
1003
1099
  - `node scripts/interactive-context-bridge.js --input <path> [--provider <moqui|generic>] [--out-context <path>] [--out-report <path>] [--context-contract <path>] [--no-strict-contract] [--json]`: normalize raw UI/provider payload into standard interactive `page-context` and validate against context contract before intent generation.
1004
1100
  - Default input sample: `docs/interactive-customization/moqui-context-provider.sample.json`
1005
1101
  - Default outputs:
1006
- - `.kiro/reports/interactive-page-context.normalized.json`
1007
- - `.kiro/reports/interactive-context-bridge.json`
1102
+ - `.sce/reports/interactive-page-context.normalized.json`
1103
+ - `.sce/reports/interactive-context-bridge.json`
1008
1104
  - Strict contract validation is enabled by default; `--no-strict-contract` keeps report generation for diagnostics.
1009
1105
  - CLI equivalent: `sce scene context-bridge --input <path> --json`
1010
1106
  - npm alias: `npm run report:interactive-context-bridge`
1011
1107
 
1012
1108
  Interactive full flow helper (script-level one-command entry):
1013
- - `node scripts/interactive-flow.js --input <path> (--goal <text> | --goal-file <path>) [--provider <moqui|generic>] [--execution-mode <suggestion|apply>] [--runtime-mode <user-assist|ops-fix|feature-dev>] [--runtime-environment <dev|staging|prod>] [--runtime-policy <path>] [--authorization-tier-policy <path>] [--authorization-tier-out <path>] [--policy <path>] [--catalog <path>] [--dialogue-policy <path>] [--dialogue-profile <business-user|system-maintainer>] [--ui-mode <user-app|ops-console>] [--context-contract <path>] [--approval-role-policy <path>] [--approval-actor-role <name>] [--approver-actor-role <name>] [--auto-execute-low-risk] [--auth-password-hash <sha256>] [--auth-password <text>] [--feedback-score <0..5>] [--work-order-out <path>] [--work-order-markdown-out <path>] [--fail-on-runtime-non-allow] [--no-matrix] [--matrix-min-score <0..100>] [--matrix-min-valid-rate <0..100>] [--matrix-compare-with <path>] [--matrix-signals <path>] [--matrix-fail-on-portfolio-fail] [--matrix-fail-on-regression] [--json]`: run `context-bridge -> interactive-loop -> matrix-baseline-snapshot` in one command for Moqui workbench integration.
1014
- - Default flow artifact root: `.kiro/reports/interactive-flow/<session-id>/`
1015
- - Default flow summary output: `.kiro/reports/interactive-flow/<session-id>/interactive-flow.summary.json`
1016
- - Default dialogue report output: `.kiro/reports/interactive-flow/<session-id>/interactive-dialogue-governance.json`
1109
+ - `node scripts/interactive-flow.js --input <path> (--goal <text> | --goal-file <path>) [--provider <moqui|generic>] [--execution-mode <suggestion|apply>] [--business-mode <user-mode|ops-mode|dev-mode>] [--business-mode-policy <path>] [--allow-mode-override] [--runtime-mode <user-assist|ops-fix|feature-dev>] [--runtime-environment <dev|staging|prod>] [--runtime-policy <path>] [--authorization-tier-policy <path>] [--authorization-tier-out <path>] [--policy <path>] [--catalog <path>] [--dialogue-policy <path>] [--dialogue-profile <business-user|system-maintainer>] [--ui-mode <user-app|ops-console>] [--context-contract <path>] [--approval-role-policy <path>] [--approval-actor-role <name>] [--approver-actor-role <name>] [--auto-execute-low-risk] [--auth-password-hash <sha256>] [--auth-password <text>] [--feedback-score <0..5>] [--work-order-out <path>] [--work-order-markdown-out <path>] [--fail-on-runtime-non-allow] [--no-matrix] [--matrix-min-score <0..100>] [--matrix-min-valid-rate <0..100>] [--matrix-compare-with <path>] [--matrix-signals <path>] [--matrix-fail-on-portfolio-fail] [--matrix-fail-on-regression] [--json]`: run `context-bridge -> interactive-loop -> matrix-baseline-snapshot` in one command for Moqui workbench integration.
1110
+ - Default flow artifact root: `.sce/reports/interactive-flow/<session-id>/`
1111
+ - Default flow summary output: `.sce/reports/interactive-flow/<session-id>/interactive-flow.summary.json`
1112
+ - Default dialogue report output: `.sce/reports/interactive-flow/<session-id>/interactive-dialogue-governance.json`
1017
1113
  - Default dialogue-authorization signal stream:
1018
- - `.kiro/reports/interactive-flow/<session-id>/interactive-dialogue-authorization-signals.jsonl` (session)
1019
- - `.kiro/reports/interactive-dialogue-authorization-signals.jsonl` (global append-only stream)
1020
- - Default runtime report output: `.kiro/reports/interactive-flow/<session-id>/interactive-runtime-policy.json`
1021
- - Default authorization tier report output: `.kiro/reports/interactive-flow/<session-id>/interactive-authorization-tier.json`
1114
+ - `.sce/reports/interactive-flow/<session-id>/interactive-dialogue-authorization-signals.jsonl` (session)
1115
+ - `.sce/reports/interactive-dialogue-authorization-signals.jsonl` (global append-only stream)
1116
+ - Default runtime report output: `.sce/reports/interactive-flow/<session-id>/interactive-runtime-policy.json`
1117
+ - Default authorization tier report output: `.sce/reports/interactive-flow/<session-id>/interactive-authorization-tier.json`
1022
1118
  - Default work-order outputs:
1023
- - `.kiro/reports/interactive-flow/<session-id>/interactive-work-order.json`
1024
- - `.kiro/reports/interactive-flow/<session-id>/interactive-work-order.md`
1119
+ - `.sce/reports/interactive-flow/<session-id>/interactive-work-order.json`
1120
+ - `.sce/reports/interactive-flow/<session-id>/interactive-work-order.md`
1025
1121
  - Default matrix outputs:
1026
- - `.kiro/reports/interactive-flow/<session-id>/moqui-template-baseline.json`
1027
- - `.kiro/reports/interactive-flow/<session-id>/moqui-template-baseline.md`
1028
- - `.kiro/reports/interactive-matrix-signals.jsonl` (append-only signal stream)
1122
+ - `.sce/reports/interactive-flow/<session-id>/moqui-template-baseline.json`
1123
+ - `.sce/reports/interactive-flow/<session-id>/moqui-template-baseline.md`
1124
+ - `.sce/reports/interactive-matrix-signals.jsonl` (append-only signal stream)
1029
1125
  - Matrix stage is enabled by default; use `--no-matrix` only for diagnostics.
1030
1126
  - CLI equivalent: `sce scene interactive-flow --input <path> --goal "<goal>" --json`
1031
1127
  - npm alias: `npm run run:interactive-flow -- --input docs/interactive-customization/moqui-context-provider.sample.json --goal "Adjust order screen field layout for clearer input flow" --json`
@@ -1033,9 +1129,9 @@ Interactive full flow helper (script-level one-command entry):
1033
1129
  Interactive read-only intent helper (script-level stage-A copilot bridge):
1034
1130
  - `node scripts/interactive-intent-build.js --context <path> (--goal <text> | --goal-file <path>) [--user-id <id>] [--session-id <id>] [--out-intent <path>] [--out-explain <path>] [--audit-file <path>] [--context-contract <path>] [--no-strict-contract] [--mask-keys <csv>] [--json]`: build a read-only `Change_Intent` from page context + business goal, emit masked context preview, append audit event JSONL, and generate explain markdown.
1035
1131
  - Default outputs:
1036
- - `.kiro/reports/interactive-change-intent.json`
1037
- - `.kiro/reports/interactive-page-explain.md`
1038
- - `.kiro/reports/interactive-copilot-audit.jsonl`
1132
+ - `.sce/reports/interactive-change-intent.json`
1133
+ - `.sce/reports/interactive-page-explain.md`
1134
+ - `.sce/reports/interactive-copilot-audit.jsonl`
1039
1135
  - Default context contract: `docs/interactive-customization/moqui-copilot-context-contract.json` (fallback built-in baseline when file is absent)
1040
1136
  - Contract validation is strict by default (required fields, payload size, forbidden keys).
1041
1137
  - This helper never executes write actions; it only produces suggestion-stage artifacts.
@@ -1044,7 +1140,7 @@ Interactive dialogue governance helper (script-level communication-rule gate):
1044
1140
  - `node scripts/interactive-dialogue-governance.js (--goal <text> | --goal-file <path>) [--context <path>] [--policy <path>] [--profile <business-user|system-maintainer>] [--ui-mode <user-app|ops-console>] [--execution-mode <suggestion|apply>] [--runtime-environment <dev|staging|prod>] [--authorization-dialogue-policy <path>] [--out <path>] [--fail-on-deny] [--json]`: evaluate user request text against embedded-assistant communication policy, output `allow|clarify|deny`, and produce machine-readable authorization dialogue requirements (`authorization_dialogue`) for non-technical users.
1045
1141
  - Embedded assistant authorization dialogue baseline: `docs/interactive-customization/embedded-assistant-authorization-dialogue-rules.md`
1046
1142
  - Dual-surface integration guide: `docs/interactive-customization/dual-ui-mode-integration-guide.md`
1047
- - Default output: `.kiro/reports/interactive-dialogue-governance.json`
1143
+ - Default output: `.sce/reports/interactive-dialogue-governance.json`
1048
1144
  - Default policy: `docs/interactive-customization/dialogue-governance-policy-baseline.json` (fallback builtin policy when missing)
1049
1145
  - Default authorization dialogue policy: `docs/interactive-customization/authorization-dialogue-policy-baseline.json`
1050
1146
  - Default profile: `business-user` (use `system-maintainer` for maintenance/operator conversations)
@@ -1053,75 +1149,76 @@ Interactive dialogue governance helper (script-level communication-rule gate):
1053
1149
  Interactive change-plan generator helper (script-level stage-B planning bridge):
1054
1150
  - `node scripts/interactive-plan-build.js --intent <path> [--context <path>] [--execution-mode <suggestion|apply>] [--out-plan <path>] [--out-markdown <path>] [--json]`: generate structured `Change_Plan` from `Change_Intent`, including action candidates, risk level, verification checks, rollback plan, approval status, and gate hint command.
1055
1151
  - Default outputs:
1056
- - `.kiro/reports/interactive-change-plan.generated.json`
1057
- - `.kiro/reports/interactive-change-plan.generated.md`
1152
+ - `.sce/reports/interactive-change-plan.generated.json`
1153
+ - `.sce/reports/interactive-change-plan.generated.md`
1058
1154
  - Generated plans can be evaluated directly by `interactive-change-plan-gate`.
1059
1155
 
1060
1156
  Interactive one-click loop helper (script-level orchestration entry):
1061
- - `node scripts/interactive-customization-loop.js --context <path> (--goal <text> | --goal-file <path>) [--execution-mode <suggestion|apply>] [--runtime-mode <user-assist|ops-fix|feature-dev>] [--runtime-environment <dev|staging|prod>] [--runtime-policy <path>] [--authorization-tier-policy <path>] [--authorization-tier-out <path>] [--policy <path>] [--catalog <path>] [--dialogue-policy <path>] [--dialogue-profile <business-user|system-maintainer>] [--ui-mode <user-app|ops-console>] [--context-contract <path>] [--approval-role-policy <path>] [--approval-actor-role <name>] [--approver-actor-role <name>] [--no-strict-contract] [--auto-approve-low-risk] [--auto-execute-low-risk] [--auth-password-hash <sha256>] [--auth-password <text>] [--feedback-score <0..5>] [--feedback-comment <text>] [--feedback-tags <csv>] [--allow-suggestion-apply] [--work-order-out <path>] [--work-order-markdown-out <path>] [--fail-on-dialogue-deny] [--fail-on-gate-non-allow] [--fail-on-runtime-non-allow] [--json]`: run dialogue->intent->plan->gate->runtime->authorization-tier->approval pipeline in one command and optionally trigger low-risk one-click apply via Moqui adapter.
1157
+ - `node scripts/interactive-customization-loop.js --context <path> (--goal <text> | --goal-file <path>) [--execution-mode <suggestion|apply>] [--business-mode <user-mode|ops-mode|dev-mode>] [--business-mode-policy <path>] [--allow-mode-override] [--runtime-mode <user-assist|ops-fix|feature-dev>] [--runtime-environment <dev|staging|prod>] [--runtime-policy <path>] [--authorization-tier-policy <path>] [--authorization-tier-out <path>] [--policy <path>] [--catalog <path>] [--dialogue-policy <path>] [--dialogue-profile <business-user|system-maintainer>] [--ui-mode <user-app|ops-console>] [--context-contract <path>] [--approval-role-policy <path>] [--approval-actor-role <name>] [--approver-actor-role <name>] [--no-strict-contract] [--auto-approve-low-risk] [--auto-execute-low-risk] [--auth-password-hash <sha256>] [--auth-password <text>] [--feedback-score <0..5>] [--feedback-comment <text>] [--feedback-tags <csv>] [--allow-suggestion-apply] [--work-order-out <path>] [--work-order-markdown-out <path>] [--fail-on-dialogue-deny] [--fail-on-gate-non-allow] [--fail-on-runtime-non-allow] [--json]`: run dialogue->intent->plan->gate->runtime->authorization-tier->approval pipeline in one command and optionally trigger low-risk one-click apply via Moqui adapter.
1062
1158
  - CLI equivalent: `sce scene interactive-loop --context <path> --goal "<goal>" --context-contract docs/interactive-customization/moqui-copilot-context-contract.json --execution-mode apply --auto-execute-low-risk --auth-password "<password>" --feedback-score 5 --json`
1063
- - Default loop artifact root: `.kiro/reports/interactive-loop/<session-id>/`
1064
- - Default summary output: `.kiro/reports/interactive-loop/<session-id>/interactive-customization-loop.summary.json`
1159
+ - Default loop artifact root: `.sce/reports/interactive-loop/<session-id>/`
1160
+ - Default summary output: `.sce/reports/interactive-loop/<session-id>/interactive-customization-loop.summary.json`
1065
1161
  - `--auto-execute-low-risk` executes `interactive-moqui-adapter --action low-risk-apply` only when `risk_level=low`, dialogue decision != `deny`, and gate decision=`allow`.
1066
1162
  - `--runtime-mode` and `--runtime-environment` default to `ops-fix@staging`; runtime decision must be `allow` before low-risk auto execute.
1163
+ - `--business-mode` preset map: `user-mode -> suggestion + business-user + user-app + user-assist`, `ops-mode -> apply + system-maintainer + ops-console + ops-fix`, `dev-mode -> apply + system-maintainer + ops-console + feature-dev`.
1067
1164
  - Authorization tier defaults:
1068
1165
  - `business-user` profile is suggestion-only (`apply` denied by default)
1069
1166
  - `system-maintainer` profile can apply, but environment step-up requirements still apply (password/role separation/manual review)
1070
- - Default runtime report: `.kiro/reports/interactive-loop/<session-id>/interactive-runtime-policy.json`
1071
- - Default authorization tier report: `.kiro/reports/interactive-loop/<session-id>/interactive-authorization-tier.json`
1167
+ - Default runtime report: `.sce/reports/interactive-loop/<session-id>/interactive-runtime-policy.json`
1168
+ - Default authorization tier report: `.sce/reports/interactive-loop/<session-id>/interactive-authorization-tier.json`
1072
1169
  - Default authorization tier signal stream:
1073
- - Session: `.kiro/reports/interactive-loop/<session-id>/interactive-authorization-tier-signals.jsonl`
1074
- - Global: `.kiro/reports/interactive-authorization-tier-signals.jsonl`
1170
+ - Session: `.sce/reports/interactive-loop/<session-id>/interactive-authorization-tier-signals.jsonl`
1171
+ - Global: `.sce/reports/interactive-authorization-tier-signals.jsonl`
1075
1172
  - Default dialogue-authorization signal stream:
1076
- - Session: `.kiro/reports/interactive-loop/<session-id>/interactive-dialogue-authorization-signals.jsonl`
1077
- - Global: `.kiro/reports/interactive-dialogue-authorization-signals.jsonl`
1173
+ - Session: `.sce/reports/interactive-loop/<session-id>/interactive-dialogue-authorization-signals.jsonl`
1174
+ - Global: `.sce/reports/interactive-dialogue-authorization-signals.jsonl`
1078
1175
  - Default work-order outputs:
1079
- - `.kiro/reports/interactive-loop/<session-id>/interactive-work-order.json`
1080
- - `.kiro/reports/interactive-loop/<session-id>/interactive-work-order.md`
1176
+ - `.sce/reports/interactive-loop/<session-id>/interactive-work-order.json`
1177
+ - `.sce/reports/interactive-loop/<session-id>/interactive-work-order.md`
1081
1178
  - Apply-mode mutating plans require password authorization by default (`plan.authorization.password_required=true`).
1082
- - `--feedback-score` logs feedback to both session artifact and global governance file (`.kiro/reports/interactive-user-feedback.jsonl`).
1179
+ - `--feedback-score` logs feedback to both session artifact and global governance file (`.sce/reports/interactive-user-feedback.jsonl`).
1083
1180
  - npm alias: `npm run run:interactive-loop -- --context docs/interactive-customization/page-context.sample.json --goal "Improve order entry clarity" --json`
1084
1181
 
1085
1182
  Interactive runtime policy helper (script-level mode/environment gate):
1086
1183
  - `node scripts/interactive-runtime-policy-evaluate.js --plan <path> [--ui-mode <user-app|ops-console>] [--runtime-mode <user-assist|ops-fix|feature-dev>] [--runtime-environment <dev|staging|prod>] [--policy <path>] [--fail-on-non-allow] [--json]`: evaluate plan execution safety by runtime role, UI surface, and environment constraints.
1087
1184
  - Default policy: `docs/interactive-customization/runtime-mode-policy-baseline.json`
1088
1185
  - `policy.ui_modes` (when configured) enforces UI-surface contract, such as `user-app` suggestion-only and apply routed to `ops-console`.
1089
- - Default output: `.kiro/reports/interactive-runtime-policy.json`
1186
+ - Default output: `.sce/reports/interactive-runtime-policy.json`
1090
1187
  - `--fail-on-non-allow` exits with code `2` on `deny` or `review-required`.
1091
1188
 
1092
1189
  Interactive authorization-tier helper (script-level profile/environment step-up gate):
1093
1190
  - `node scripts/interactive-authorization-tier-evaluate.js [--execution-mode <suggestion|apply>] [--dialogue-profile <business-user|system-maintainer>] [--runtime-mode <name>] [--runtime-environment <dev|staging|prod>] [--auto-execute-low-risk] [--live-apply] [--policy <path>] [--out <path>] [--fail-on-non-allow] [--json]`: evaluate whether execution intent is permitted under dialogue profile and runtime environment authorization tier.
1094
1191
  - Default policy: `docs/interactive-customization/authorization-tier-policy-baseline.json`
1095
- - Default output: `.kiro/reports/interactive-authorization-tier.json`
1192
+ - Default output: `.sce/reports/interactive-authorization-tier.json`
1096
1193
  - `--fail-on-non-allow` exits with code `2` on `deny` or `review-required`.
1097
1194
 
1098
1195
  Interactive work-order helper (script-level usage/maintenance/dev closure):
1099
1196
  - `node scripts/interactive-work-order-build.js --plan <path> [--dialogue <path>] [--intent <path>] [--gate <path>] [--runtime <path>] [--authorization-tier <path>] [--approval-state <path>] [--execution-attempted] [--execution-result <value>] [--execution-id <id>] [--out <path>] [--markdown-out <path>] [--json]`: build auditable work-order record from dialogue/plan/gate/runtime/authorization-tier/approval/execution signals.
1100
1197
  - Default outputs:
1101
- - `.kiro/reports/interactive-work-order.json`
1102
- - `.kiro/reports/interactive-work-order.md`
1198
+ - `.sce/reports/interactive-work-order.json`
1199
+ - `.sce/reports/interactive-work-order.md`
1103
1200
 
1104
1201
  Interactive approval workflow helper (script-level stage-B approval state machine):
1105
1202
  - `node scripts/interactive-approval-workflow.js --action <init|submit|approve|reject|execute|verify|archive|status> [--plan <path>] [--state-file <path>] [--audit-file <path>] [--actor <id>] [--actor-role <name>] [--role-policy <path>] [--comment <text>] [--password <text>] [--password-hash <sha256>] [--password-hash-env <name>] [--password-required] [--password-scope <csv>] [--json]`: maintain approval lifecycle state for interactive change plans and append approval events to JSONL audit logs.
1106
- - Default state file: `.kiro/reports/interactive-approval-state.json`
1107
- - Default audit file: `.kiro/reports/interactive-approval-events.jsonl`
1203
+ - Default state file: `.sce/reports/interactive-approval-state.json`
1204
+ - Default audit file: `.sce/reports/interactive-approval-events.jsonl`
1108
1205
  - `init` requires `--plan`; high-risk plans are marked as `approval_required=true`.
1109
1206
  - Password authorization can be required per plan (`plan.authorization.password_required=true`) or overridden in `init`.
1110
1207
  - `execute` is blocked (exit code `2`) when approval is required but current status is not `approved`.
1111
1208
 
1112
1209
  Interactive Moqui adapter helper (script-level stage-C controlled execution contract):
1113
1210
  - `node scripts/interactive-moqui-adapter.js --action <capabilities|plan|validate|apply|low-risk-apply|rollback> [--intent <path>] [--context <path>] [--plan <path>] [--execution-id <id>] [--execution-mode <suggestion|apply>] [--policy <path>] [--catalog <path>] [--moqui-config <path>] [--live-apply] [--no-dry-run] [--allow-suggestion-apply] [--json]`: run unified Moqui adapter interface (`capabilities/plan/validate/apply/low-risk-apply/rollback`) for interactive customization stage-C.
1114
- - Default plan output (`--action plan`): `.kiro/reports/interactive-change-plan.adapter.json`
1115
- - Default command output: `.kiro/reports/interactive-moqui-adapter.json`
1116
- - Default execution record (for `apply`/`rollback`): `.kiro/reports/interactive-execution-record.latest.json`
1117
- - Default append-only execution ledger: `.kiro/reports/interactive-execution-ledger.jsonl`
1211
+ - Default plan output (`--action plan`): `.sce/reports/interactive-change-plan.adapter.json`
1212
+ - Default command output: `.sce/reports/interactive-moqui-adapter.json`
1213
+ - Default execution record (for `apply`/`rollback`): `.sce/reports/interactive-execution-record.latest.json`
1214
+ - Default append-only execution ledger: `.sce/reports/interactive-execution-ledger.jsonl`
1118
1215
  - `low-risk-apply` is one-click mode: only `risk_level=low` and gate decision `allow` can execute.
1119
1216
  - `apply` exits with code `2` when result is non-success (`failed` or `skipped`), ensuring CI-safe gating.
1120
1217
  - npm alias: `npm run report:interactive-adapter-capabilities`
1121
1218
 
1122
1219
  Interactive user feedback helper (script-level stage-D feedback ingestion):
1123
1220
  - `node scripts/interactive-feedback-log.js --score <0..5> [--comment <text>] [--user-id <id>] [--session-id <id>] [--intent-id <id>] [--plan-id <id>] [--execution-id <id>] [--channel <ui|cli|api|other>] [--tags <csv>] [--product <name>] [--module <name>] [--page <name>] [--scene-id <name>] [--feedback-file <path>] [--json]`: append structured business-user feedback records into the interactive feedback JSONL stream for governance metrics.
1124
- - Default feedback file: `.kiro/reports/interactive-user-feedback.jsonl`
1221
+ - Default feedback file: `.sce/reports/interactive-user-feedback.jsonl`
1125
1222
  - Score range: `0..5`
1126
1223
  - npm alias: `npm run log:interactive-feedback -- --score 5 --comment "clear and safe"`
1127
1224
 
@@ -1129,14 +1226,14 @@ Interactive governance report helper (script-level stage-D/6 observability + ale
1129
1226
  - `node scripts/interactive-governance-report.js [--intent-audit <path>] [--approval-audit <path>] [--execution-ledger <path>] [--feedback-file <path>] [--matrix-signals <path>] [--dialogue-authorization-signals <path>] [--runtime-signals <path>] [--authorization-tier-signals <path>] [--thresholds <path>] [--period <weekly|monthly|all|custom>] [--from <iso>] [--to <iso>] [--out <path>] [--markdown-out <path>] [--fail-on-alert] [--json]`: compute interactive governance KPIs (adoption/success/rollback/security-intercept/satisfaction + matrix pass/regression/stage-error + dialogue/runtime/authorization-tier pressure), evaluate threshold breaches, and emit machine/human-readable governance report.
1130
1227
  - Default thresholds: `docs/interactive-customization/governance-threshold-baseline.json`
1131
1228
  - Default minimum intent sample threshold: `min_intent_samples=5` (below this becomes warning, not breach)
1132
- - Default feedback input: `.kiro/reports/interactive-user-feedback.jsonl`
1133
- - Default matrix input: `.kiro/reports/interactive-matrix-signals.jsonl`
1134
- - Default dialogue authorization signal input: `.kiro/reports/interactive-dialogue-authorization-signals.jsonl`
1135
- - Default runtime policy signal input: `.kiro/reports/interactive-runtime-signals.jsonl`
1136
- - Default authorization tier signal input: `.kiro/reports/interactive-authorization-tier-signals.jsonl`
1229
+ - Default feedback input: `.sce/reports/interactive-user-feedback.jsonl`
1230
+ - Default matrix input: `.sce/reports/interactive-matrix-signals.jsonl`
1231
+ - Default dialogue authorization signal input: `.sce/reports/interactive-dialogue-authorization-signals.jsonl`
1232
+ - Default runtime policy signal input: `.sce/reports/interactive-runtime-signals.jsonl`
1233
+ - Default authorization tier signal input: `.sce/reports/interactive-authorization-tier-signals.jsonl`
1137
1234
  - Default outputs:
1138
- - `.kiro/reports/interactive-governance-report.json`
1139
- - `.kiro/reports/interactive-governance-report.md`
1235
+ - `.sce/reports/interactive-governance-report.json`
1236
+ - `.sce/reports/interactive-governance-report.md`
1140
1237
  - `--fail-on-alert` exits with code `2` when medium/high breaches exist.
1141
1238
  - npm alias: `npm run report:interactive-governance`
1142
1239
 
@@ -1153,11 +1250,11 @@ Moqui rebuild gate helper (CI/pre-release readiness gate):
1153
1250
  - npm alias: `npm run gate:moqui-rebuild`
1154
1251
 
1155
1252
  Moqui metadata extractor helper (script-level catalog bootstrap):
1156
- - `node scripts/moqui-metadata-extract.js [--project-dir <path>] [--out <path>] [--markdown-out <path>] [--json]`: build a normalized metadata catalog from multiple sources for rebuild automation. Default sources include Moqui XML resources (`entity/service/screen/form/rule/decision`), scene package contracts (`.kiro/specs/**/docs/scene-package.json`), handoff manifest/capability matrix, and handoff evidence JSON.
1253
+ - `node scripts/moqui-metadata-extract.js [--project-dir <path>] [--out <path>] [--markdown-out <path>] [--json]`: build a normalized metadata catalog from multiple sources for rebuild automation. Default sources include Moqui XML resources (`entity/service/screen/form/rule/decision`), scene package contracts (`.sce/specs/**/docs/scene-package.json`), handoff manifest/capability matrix, and handoff evidence JSON.
1157
1254
  - Recommended first step before `moqui-standard-rebuild`.
1158
1255
  - Keep extraction source read-only and run rebuild generation against SCE output directories.
1159
1256
 
1160
- Recommended `.kiro/config/orchestrator.json`:
1257
+ Recommended `.sce/config/orchestrator.json`:
1161
1258
 
1162
1259
  ```json
1163
1260
  {
@@ -1181,6 +1278,11 @@ Recommended `.kiro/config/orchestrator.json`:
1181
1278
 
1182
1279
  `rateLimit*` settings provide dedicated retry/backoff and adaptive parallel throttling when providers return 429 / too-many-requests errors. Engine retry honors `Retry-After` / `try again in ...` hints from provider error messages and clamps final retry waits by `rateLimitBackoffMaxMs` to avoid unbounded pause windows. During active backoff windows, new pending spec launches are paused to reduce request bursts (launch hold remains active even if adaptive parallel throttling is disabled). `orchestrate stop` now interrupts pending retry waits immediately so long backoff does not look like a deadlock.
1183
1280
 
1281
+ Codex sub-agent permission defaults:
1282
+ - `--sandbox danger-full-access` is always injected by orchestrator runtime.
1283
+ - `--ask-for-approval never` is injected by default when `codexArgs` does not explicitly set approval mode.
1284
+ - Explicit `codexArgs` values still win, for example `--ask-for-approval on-request`.
1285
+
1184
1286
  ### Scene Template Engine
1185
1287
 
1186
1288
  ```bash
@@ -1223,7 +1325,7 @@ sce scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json -
1223
1325
  sce scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json --ontology-min-score 70 --json
1224
1326
 
1225
1327
  # Persist ontology/publish batch report for governance tracking
1226
- sce scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json --dry-run --ontology-report-out .kiro/reports/scene-package-ontology-batch.json --json
1328
+ sce scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json --dry-run --ontology-report-out .sce/reports/scene-package-ontology-batch.json --json
1227
1329
 
1228
1330
  # Enforce batch-level ontology portfolio gate (average score + valid-rate)
1229
1331
  sce scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json --dry-run --ontology-min-average-score 60 --ontology-min-valid-rate 90 --json
@@ -1232,10 +1334,10 @@ sce scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json -
1232
1334
  sce scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json --no-require-ontology-validation --json
1233
1335
 
1234
1336
  # Export ontology remediation task draft markdown
1235
- sce scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json --dry-run --ontology-task-out .kiro/reports/scene-package-ontology-task-draft.md --json
1337
+ sce scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json --dry-run --ontology-task-out .sce/reports/scene-package-ontology-task-draft.md --json
1236
1338
 
1237
1339
  # Export ontology remediation queue lines (directly consumable by close-loop-batch)
1238
- sce scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json --dry-run --ontology-task-queue-out .kiro/auto/ontology-remediation.lines --json
1340
+ sce scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json --dry-run --ontology-task-queue-out .sce/auto/ontology-remediation.lines --json
1239
1341
  ```
1240
1342
 
1241
1343
  ### Scene Package Ontology Backfill Batch
@@ -1251,7 +1353,7 @@ sce scene package-ontology-backfill-batch --from-331 --dry-run --json
1251
1353
  sce scene package-ontology-backfill-batch --from-331 --include 62-00-moqui-full-capability-closure-program,62-01-moqui-capability-itemized-parity-matrix --dry-run --json
1252
1354
 
1253
1355
  # Export detailed backfill report for governance review
1254
- sce scene package-ontology-backfill-batch --from-331 --dry-run --out-report .kiro/reports/scene-package-ontology-backfill-report.json --json
1356
+ sce scene package-ontology-backfill-batch --from-331 --dry-run --out-report .sce/reports/scene-package-ontology-backfill-report.json --json
1255
1357
  ```
1256
1358
 
1257
1359
  ### Moqui Template Baseline Scorecard
@@ -1274,13 +1376,13 @@ sce scene moqui-baseline --include-all --json
1274
1376
  sce scene moqui-baseline \
1275
1377
  --min-score 75 \
1276
1378
  --min-valid-rate 100 \
1277
- --out .kiro/reports/moqui-template-baseline.json \
1278
- --markdown-out .kiro/reports/moqui-template-baseline.md \
1379
+ --out .sce/reports/moqui-template-baseline.json \
1380
+ --markdown-out .sce/reports/moqui-template-baseline.md \
1279
1381
  --json
1280
1382
 
1281
1383
  # Compare with a previous baseline and fail CI on portfolio gate fail
1282
1384
  sce scene moqui-baseline \
1283
- --compare-with .kiro/reports/release-evidence/moqui-template-baseline-prev.json \
1385
+ --compare-with .sce/reports/release-evidence/moqui-template-baseline-prev.json \
1284
1386
  --fail-on-portfolio-fail \
1285
1387
  --json
1286
1388
  ```
@@ -1405,6 +1507,7 @@ sce <command> --help
1405
1507
 
1406
1508
  # Show version
1407
1509
  sce --version
1510
+
1408
1511
  ```
1409
1512
 
1410
1513
  ---
@@ -1547,11 +1650,11 @@ sce repo init [options]
1547
1650
 
1548
1651
  **Behavior:**
1549
1652
  - Scans project directory recursively for Git repositories
1550
- - Excludes `.kiro` directory from scanning
1653
+ - Excludes `.sce` directory from scanning
1551
1654
  - Extracts remote URL from `origin` remote (or first available remote)
1552
1655
  - Detects current branch for each repository
1553
1656
  - Prompts for confirmation if configuration already exists (unless `--force`)
1554
- - Creates `.kiro/project-repos.json` configuration file
1657
+ - Creates `.sce/project-repos.json` configuration file
1555
1658
 
1556
1659
  **Example:**
1557
1660
  ```bash
@@ -1573,7 +1676,7 @@ Found 3 repositories:
1573
1676
  ✓ backend (develop) - https://github.com/user/backend.git
1574
1677
  ✓ shared (main) - https://github.com/user/shared.git
1575
1678
 
1576
- Configuration saved to .kiro/project-repos.json
1679
+ Configuration saved to .sce/project-repos.json
1577
1680
  ```
1578
1681
 
1579
1682
  ---