scene-capability-engine 3.3.5 → 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 (241) hide show
  1. package/CHANGELOG.md +130 -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 +4 -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/architecture.md +13 -13
  13. package/docs/articles/ai-driven-development-philosophy-and-practice.en.md +3 -3
  14. package/docs/articles/ai-driven-development-philosophy-and-practice.md +3 -3
  15. package/docs/autonomous-control-guide.md +35 -35
  16. package/docs/command-reference.md +192 -153
  17. package/docs/cross-tool-guide.md +7 -7
  18. package/docs/developer-guide.md +8 -8
  19. package/docs/document-governance.md +15 -15
  20. package/docs/environment-management-guide.md +6 -6
  21. package/docs/examples/add-export-command/design.md +1 -1
  22. package/docs/faq.md +13 -13
  23. package/docs/handoff-profile-integration-guide.md +3 -3
  24. package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.json +7 -7
  25. package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.md +1 -1
  26. package/docs/integration-modes.md +12 -12
  27. package/docs/integration-philosophy.md +11 -11
  28. package/docs/interactive-customization/331-poc-sce-integration-checklist.md +24 -24
  29. package/docs/interactive-customization/README.md +43 -43
  30. package/docs/interactive-customization/business-mode-policy-baseline.json +33 -0
  31. package/docs/interactive-customization/dual-ui-mode-integration-guide.md +1 -1
  32. package/docs/interactive-customization/moqui-adapter-interface.md +2 -2
  33. package/docs/interactive-customization/moqui-copilot-integration-guide.md +1 -1
  34. package/docs/interactive-customization/moqui-interactive-template-playbook.md +4 -4
  35. package/docs/interactive-customization/phase-acceptance-evidence.md +2 -2
  36. package/docs/knowledge-management-guide.md +6 -6
  37. package/docs/manual-workflows-guide.md +4 -4
  38. package/docs/moqui-capability-matrix.md +3 -3
  39. package/docs/moqui-standard-rebuild-guide.md +8 -8
  40. package/docs/moqui-template-core-library-playbook.md +27 -27
  41. package/docs/multi-agent-coordination-guide.md +19 -19
  42. package/docs/multi-repo-management-guide.md +17 -17
  43. package/docs/quick-start-with-ai-tools.md +7 -7
  44. package/docs/quick-start.md +2 -2
  45. package/docs/release-checklist.md +4 -4
  46. package/docs/sce-business-mode-map.md +103 -0
  47. package/docs/security-governance-default-baseline.md +12 -12
  48. package/docs/spec-collaboration-guide.md +3 -3
  49. package/docs/spec-locking-guide.md +2 -2
  50. package/docs/spec-workflow.md +3 -3
  51. package/docs/starter-kit/README.md +4 -4
  52. package/docs/starter-kit/handoff-manifest.starter.json +2 -2
  53. package/docs/starter-kit/release.workflow.sample.yml +1 -1
  54. package/docs/steering-strategy-guide.md +15 -15
  55. package/docs/team-collaboration-guide.md +69 -69
  56. package/docs/testing-strategy.md +2 -2
  57. package/docs/tools/claude-guide.md +14 -4
  58. package/docs/tools/cursor-guide.md +14 -14
  59. package/docs/tools/generic-guide.md +9 -9
  60. package/docs/tools/kiro-guide.md +4 -4
  61. package/docs/tools/vscode-guide.md +13 -13
  62. package/docs/tools/windsurf-guide.md +6 -6
  63. package/docs/troubleshooting.md +22 -22
  64. package/docs/upgrade-guide.md +8 -8
  65. package/docs/value-observability-guide.md +3 -3
  66. package/docs/zh/README.md +6 -0
  67. package/docs/zh/quick-start.md +15 -15
  68. package/docs/zh/release-checklist.md +3 -3
  69. package/docs/zh/tools/claude-guide.md +16 -6
  70. package/docs/zh/tools/cursor-guide.md +11 -11
  71. package/docs/zh/tools/generic-guide.md +13 -13
  72. package/docs/zh/tools/kiro-guide.md +2 -2
  73. package/docs/zh/tools/vscode-guide.md +11 -11
  74. package/docs/zh/tools/windsurf-guide.md +11 -11
  75. package/docs/zh/value-observability-guide.md +3 -3
  76. package/lib/adoption/adoption-logger.js +1 -1
  77. package/lib/adoption/adoption-strategy.js +28 -28
  78. package/lib/adoption/backup-manager.js +3 -3
  79. package/lib/adoption/conflict-resolver.js +2 -2
  80. package/lib/adoption/detection-engine.js +8 -8
  81. package/lib/adoption/error-formatter.js +4 -4
  82. package/lib/adoption/file-classifier.js +6 -6
  83. package/lib/adoption/progress-reporter.js +1 -1
  84. package/lib/adoption/smart-orchestrator.js +10 -10
  85. package/lib/adoption/strategy-selector.js +6 -6
  86. package/lib/adoption/summary-generator.js +1 -1
  87. package/lib/adoption/template-sync.js +8 -8
  88. package/lib/auto/autonomous-engine.js +7 -7
  89. package/lib/auto/checkpoint-manager.js +1 -1
  90. package/lib/auto/close-loop-runner.js +12 -12
  91. package/lib/auto/error-recovery-manager.js +1 -1
  92. package/lib/auto/goal-decomposer.js +1 -1
  93. package/lib/auto/moqui-recovery-sequence.js +2 -2
  94. package/lib/auto/progress-tracker.js +1 -1
  95. package/lib/auto/state-manager.js +1 -1
  96. package/lib/backup/backup-system.js +10 -10
  97. package/lib/backup/selective-backup.js +4 -4
  98. package/lib/collab/agent-registry.js +2 -2
  99. package/lib/collab/contract-manager.js +1 -1
  100. package/lib/collab/coordinator.js +2 -2
  101. package/lib/collab/dependency-manager.js +1 -1
  102. package/lib/collab/integration-manager.js +1 -1
  103. package/lib/collab/metadata-manager.js +1 -1
  104. package/lib/collab/multi-agent-config.js +2 -2
  105. package/lib/collab/spec-lifecycle-manager.js +2 -2
  106. package/lib/collab/visualizer.js +1 -1
  107. package/lib/commands/adopt.js +6 -6
  108. package/lib/commands/auto.js +56 -56
  109. package/lib/commands/collab.js +2 -2
  110. package/lib/commands/docs.js +3 -3
  111. package/lib/commands/doctor.js +1 -1
  112. package/lib/commands/knowledge.js +2 -2
  113. package/lib/commands/lock.js +1 -1
  114. package/lib/commands/ops.js +1 -1
  115. package/lib/commands/orchestrate.js +3 -3
  116. package/lib/commands/rollback.js +1 -1
  117. package/lib/commands/scene.js +135 -93
  118. package/lib/commands/session.js +139 -0
  119. package/lib/commands/spec-bootstrap.js +1 -1
  120. package/lib/commands/spec-gate.js +2 -2
  121. package/lib/commands/spec-pipeline.js +1 -1
  122. package/lib/commands/status.js +4 -4
  123. package/lib/commands/steering.js +119 -0
  124. package/lib/commands/value.js +1 -1
  125. package/lib/commands/watch.js +9 -9
  126. package/lib/commands/workspace-multi.js +1 -1
  127. package/lib/context/context-exporter.js +5 -7
  128. package/lib/context/prompt-generator.js +2 -2
  129. package/lib/environment/backup-system.js +1 -1
  130. package/lib/environment/environment-manager.js +2 -2
  131. package/lib/gitignore/gitignore-backup.js +3 -3
  132. package/lib/gitignore/gitignore-detector.js +13 -13
  133. package/lib/gitignore/gitignore-integration.js +3 -3
  134. package/lib/gitignore/gitignore-transformer.js +4 -4
  135. package/lib/gitignore/layered-rules-template.js +16 -16
  136. package/lib/governance/config-manager.js +1 -1
  137. package/lib/governance/doc-reference-checker.js +4 -4
  138. package/lib/governance/execution-logger.js +1 -1
  139. package/lib/governance/file-scanner.js +3 -3
  140. package/lib/interactive-customization/moqui-interactive-adapter.js +2 -2
  141. package/lib/knowledge/knowledge-manager.js +1 -1
  142. package/lib/lock/lock-manager.js +2 -2
  143. package/lib/lock/steering-file-lock.js +5 -5
  144. package/lib/lock/task-lock-manager.js +3 -3
  145. package/lib/operations/audit-logger.js +1 -1
  146. package/lib/operations/feedback-manager.js +1 -1
  147. package/lib/operations/operations-manager.js +3 -3
  148. package/lib/operations/permission-manager.js +2 -2
  149. package/lib/operations/template-loader.js +1 -1
  150. package/lib/orchestrator/agent-spawner.js +27 -2
  151. package/lib/orchestrator/bootstrap-prompt-builder.js +6 -6
  152. package/lib/orchestrator/orchestration-engine.js +1 -1
  153. package/lib/orchestrator/orchestrator-config.js +2 -2
  154. package/lib/repo/config-manager.js +3 -3
  155. package/lib/repo/handlers/init-handler.js +1 -1
  156. package/lib/repo/repo-manager.js +2 -2
  157. package/lib/runtime/business-mode-resolver.js +240 -0
  158. package/lib/runtime/session-store.js +207 -0
  159. package/lib/runtime/steering-contract.js +338 -0
  160. package/lib/scene-runtime/audit-emitter.js +1 -1
  161. package/lib/scene-runtime/binding-plugin-loader.js +3 -3
  162. package/lib/scene-runtime/eval-bridge.js +1 -1
  163. package/lib/scene-runtime/index.js +1 -1
  164. package/lib/scene-runtime/moqui-extractor.js +1 -1
  165. package/lib/scene-runtime/plan-compiler.js +1 -1
  166. package/lib/scene-runtime/policy-gate.js +1 -1
  167. package/lib/scene-runtime/runtime-executor.js +1 -1
  168. package/lib/scene-runtime/scene-loader.js +1 -1
  169. package/lib/spec/bootstrap/context-collector.js +1 -1
  170. package/lib/spec/pipeline/stage-adapters.js +3 -3
  171. package/lib/spec/pipeline/state-store.js +1 -1
  172. package/lib/spec-gate/policy/policy-loader.js +1 -1
  173. package/lib/spec-gate/rules/default-rules.js +6 -6
  174. package/lib/steering/adoption-config.js +1 -1
  175. package/lib/steering/compliance-error-reporter.js +3 -3
  176. package/lib/steering/context-sync-manager.js +2 -2
  177. package/lib/steering/index.js +1 -1
  178. package/lib/steering/spec-steering.js +2 -2
  179. package/lib/steering/steering-compliance-checker.js +1 -1
  180. package/lib/steering/steering-loader.js +4 -5
  181. package/lib/steering/steering-manager.js +4 -4
  182. package/lib/task/task-claimer.js +5 -5
  183. package/lib/task/task-status-store.js +2 -2
  184. package/lib/templates/content-generalizer.js +1 -1
  185. package/lib/templates/spec-reader.js +2 -2
  186. package/lib/templates/template-creator.js +1 -1
  187. package/lib/templates/template-exporter.js +3 -3
  188. package/lib/templates/template-manager.js +1 -1
  189. package/lib/upgrade/migration-engine.js +3 -3
  190. package/lib/upgrade/migrations/1.0.0-to-1.1.0.js +1 -1
  191. package/lib/utils/file-diff.js +6 -6
  192. package/lib/utils/tool-detector.js +10 -10
  193. package/lib/utils/validation.js +5 -5
  194. package/lib/value/metric-contract-loader.js +1 -1
  195. package/lib/version/version-manager.js +1 -1
  196. package/lib/watch/execution-logger.js +1 -1
  197. package/lib/watch/presets.js +8 -8
  198. package/lib/watch/watch-manager.js +2 -2
  199. package/lib/workspace/legacy-kiro-migrator.js +275 -0
  200. package/lib/workspace/multi/workspace-context-resolver.js +2 -2
  201. package/lib/workspace/multi/workspace-registry.js +2 -2
  202. package/lib/workspace/multi/workspace-state-manager.js +3 -3
  203. package/lib/workspace/workspace-manager.js +1 -1
  204. package/lib/workspace/workspace-sync.js +2 -2
  205. package/locales/en.json +4 -4
  206. package/locales/zh.json +4 -4
  207. package/package.json +9 -9
  208. package/template/{.kiro → .sce}/README.md +15 -15
  209. package/template/{.kiro → .sce}/hooks/check-spec-on-create.kiro.hook +2 -2
  210. package/template/{.kiro → .sce}/steering/CORE_PRINCIPLES.md +4 -4
  211. package/template/{.kiro → .sce}/steering/CURRENT_CONTEXT.md +1 -1
  212. package/template/{.kiro → .sce}/steering/ENVIRONMENT.md +3 -3
  213. package/template/{.kiro → .sce}/tools/backup_manager.py +3 -3
  214. package/template/{.kiro → .sce}/tools/configuration_manager.py +1 -1
  215. package/template/README.md +12 -12
  216. /package/template/{.kiro → .sce}/hooks/run-tests-on-save.kiro.hook +0 -0
  217. /package/template/{.kiro → .sce}/hooks/sync-tasks-on-edit.kiro.hook +0 -0
  218. /package/template/{.kiro → .sce}/specs/SPEC_WORKFLOW_GUIDE.md +0 -0
  219. /package/template/{.kiro → .sce}/steering/RULES_GUIDE.md +0 -0
  220. /package/template/{.kiro → .sce}/templates/operations/default/change-impact.md +0 -0
  221. /package/template/{.kiro → .sce}/templates/operations/default/deployment.md +0 -0
  222. /package/template/{.kiro → .sce}/templates/operations/default/feedback-response.md +0 -0
  223. /package/template/{.kiro → .sce}/templates/operations/default/migration-plan.md +0 -0
  224. /package/template/{.kiro → .sce}/templates/operations/default/monitoring.md +0 -0
  225. /package/template/{.kiro → .sce}/templates/operations/default/operations.md +0 -0
  226. /package/template/{.kiro → .sce}/templates/operations/default/rollback.md +0 -0
  227. /package/template/{.kiro → .sce}/templates/operations/default/tools.yaml +0 -0
  228. /package/template/{.kiro → .sce}/templates/operations/default/troubleshooting.md +0 -0
  229. /package/template/{.kiro → .sce}/tools/document_evaluator.py +0 -0
  230. /package/template/{.kiro → .sce}/tools/enhancement_logger.py +0 -0
  231. /package/template/{.kiro → .sce}/tools/error_handler.py +0 -0
  232. /package/template/{.kiro → .sce}/tools/improvement_identifier.py +0 -0
  233. /package/template/{.kiro → .sce}/tools/modification_applicator.py +0 -0
  234. /package/template/{.kiro → .sce}/tools/quality_gate_enforcer.py +0 -0
  235. /package/template/{.kiro → .sce}/tools/quality_scorer.py +0 -0
  236. /package/template/{.kiro → .sce}/tools/report_generator.py +0 -0
  237. /package/template/{.kiro → .sce}/tools/ultrawork_enhancer.py +0 -0
  238. /package/template/{.kiro → .sce}/tools/ultrawork_enhancer_refactored.py +0 -0
  239. /package/template/{.kiro → .sce}/tools/ultrawork_enhancer_v2.py +0 -0
  240. /package/template/{.kiro → .sce}/tools/ultrawork_enhancer_v3.py +0 -0
  241. /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
@@ -300,8 +332,8 @@ node scripts/failure-attribution-repair.js \
300
332
 
301
333
  # 4) Scene template + ontology capability mapping report
302
334
  node scripts/capability-mapping-report.js \
303
- --input-file .kiro/reports/capability-mapping-input.json \
304
- --out .kiro/reports/capability-mapping-report.json \
335
+ --input-file .sce/reports/capability-mapping-input.json \
336
+ --out .sce/reports/capability-mapping-report.json \
305
337
  --json
306
338
  ```
307
339
 
@@ -344,7 +376,7 @@ sce auto close-loop "build autonomous close-loop and master/sub orchestration" \
344
376
 
345
377
  # Write DoD evidence to custom report path
346
378
  sce auto close-loop "build autonomous close-loop and master/sub orchestration" \
347
- --dod-report ".kiro/reports/close-loop-dod.json"
379
+ --dod-report ".sce/reports/close-loop-dod.json"
348
380
 
349
381
  # Resume from the latest close-loop session snapshot
350
382
  sce auto close-loop --resume latest
@@ -374,8 +406,8 @@ sce auto close-loop "build autonomous close-loop and master/sub orchestration" \
374
406
  --replan-strategy adaptive
375
407
 
376
408
  # Run multiple goals in one autonomous batch (one master/sub portfolio per goal)
377
- sce auto close-loop-batch .kiro/goals.txt
378
- 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
379
411
 
380
412
  # Generate batch goals from one broad program goal (no goals file needed)
381
413
  sce auto close-loop-batch \
@@ -399,20 +431,20 @@ sce auto close-loop-program \
399
431
  --program-govern-until-stable \
400
432
  --program-govern-max-rounds 3 \
401
433
  --program-govern-use-action 1 \
402
- --program-kpi-out .kiro/reports/close-loop-program-kpi.json \
403
- --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 \
404
436
  --json
405
437
 
406
438
  # Controller command: drain queued broad goals with close-loop-program runtime
407
- sce auto close-loop-controller .kiro/auto/program-queue.lines \
439
+ sce auto close-loop-controller .sce/auto/program-queue.lines \
408
440
  --dequeue-limit 2 \
409
441
  --max-cycles 20 \
410
- --controller-done-file .kiro/auto/program-done.lines \
411
- --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 \
412
444
  --json
413
445
 
414
446
  # Persistent controller mode: keep polling queue and execute new goals automatically
415
- sce auto close-loop-controller .kiro/auto/program-queue.lines \
447
+ sce auto close-loop-controller .sce/auto/program-queue.lines \
416
448
  --wait-on-empty \
417
449
  --poll-seconds 30 \
418
450
  --max-cycles 1000 \
@@ -423,59 +455,59 @@ sce auto close-loop-controller --controller-resume latest --json
423
455
 
424
456
  # Recovery command: replay unresolved goals from summary using remediation action strategy
425
457
  sce auto close-loop-recover latest --json
426
- 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 \
427
459
  --use-action 2 \
428
460
  --recover-until-complete \
429
461
  --recover-max-rounds 3 \
430
462
  --recover-max-minutes 20 \
431
463
  --recovery-memory-ttl-days 30 \
432
464
  --recovery-memory-scope release-main \
433
- --program-audit-out .kiro/reports/close-loop-recover-audit.json \
465
+ --program-audit-out .sce/reports/close-loop-recover-audit.json \
434
466
  --dry-run --json
435
467
 
436
468
  # Default autonomous batch run (continue-on-error + adaptive scheduling + retry-until-complete)
437
- sce auto close-loop-batch .kiro/goals.json --json
469
+ sce auto close-loop-batch .sce/goals.json --json
438
470
 
439
471
  # Run batch goals with concurrent close-loop workers
440
- 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
441
473
 
442
474
  # Apply global agent budget across all concurrent goals
443
- sce auto close-loop-batch .kiro/goals.json \
475
+ sce auto close-loop-batch .sce/goals.json \
444
476
  --batch-parallel 3 \
445
477
  --batch-agent-budget 6 \
446
478
  --json
447
479
 
448
480
  # Prioritize complex goals first and enable anti-starvation aging
449
- sce auto close-loop-batch .kiro/goals.json \
481
+ sce auto close-loop-batch .sce/goals.json \
450
482
  --batch-priority critical-first \
451
483
  --batch-aging-factor 3 \
452
484
  --json
453
485
 
454
486
  # Automatically retry failed/stopped goals for one extra round
455
- sce auto close-loop-batch .kiro/goals.json \
487
+ sce auto close-loop-batch .sce/goals.json \
456
488
  --batch-retry-rounds 1 \
457
489
  --batch-retry-strategy adaptive \
458
490
  --json
459
491
 
460
492
  # Retry until all goals complete (bounded by max rounds)
461
- sce auto close-loop-batch .kiro/goals.json \
493
+ sce auto close-loop-batch .sce/goals.json \
462
494
  --batch-retry-until-complete \
463
495
  --batch-retry-max-rounds 10 \
464
496
  --json
465
497
 
466
498
  # Disable autonomous batch policy explicitly (only when you need legacy/manual tuning)
467
- sce auto close-loop-batch .kiro/goals.json \
499
+ sce auto close-loop-batch .sce/goals.json \
468
500
  --no-batch-autonomous \
469
501
  --json
470
502
 
471
503
  # Resume only pending goals from a previous batch summary
472
- 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
473
505
 
474
506
  # Resume pending goals from latest persisted batch session summary
475
507
  sce auto close-loop-batch --resume-from-summary latest --json
476
508
 
477
509
  # Resume only failed/error goals from summary (ignore unprocessed goals)
478
- 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 \
479
511
  --resume-strategy failed-only --json
480
512
 
481
513
  # List persisted close-loop sessions
@@ -555,7 +587,7 @@ sce auto kpi trend --weeks 8 --period day --mode program --csv --out ./auto-kpi-
555
587
 
556
588
  # Unified observability snapshot (sessions + governance + KPI trend)
557
589
  sce auto observability snapshot --days 14 --status completed,failed --json
558
- sce auto observability snapshot --out .kiro/reports/auto-observability.json --json
590
+ sce auto observability snapshot --out .sce/reports/auto-observability.json --json
559
591
 
560
592
  # Agent-facing spec interfaces
561
593
  sce auto spec status 121-00-master --json
@@ -569,21 +601,21 @@ sce auto schema migrate --only close-loop-session,batch-session --apply --json
569
601
 
570
602
  # Dual-track handoff integration (generic external project -> sce)
571
603
  sce auto handoff plan --manifest docs/handoffs/handoff-manifest.json --json
572
- sce auto handoff plan --manifest docs/handoffs/handoff-manifest.json --strict --out .kiro/reports/handoff-plan.json --json
573
- 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
574
606
  sce auto handoff template-diff --manifest docs/handoffs/handoff-manifest.json --json
575
607
  sce auto handoff capability-matrix --manifest docs/handoffs/handoff-manifest.json --json
576
608
  sce auto handoff capability-matrix --manifest docs/handoffs/handoff-manifest.json --profile moqui --json
577
- 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
578
610
  sce auto handoff run --manifest docs/handoffs/handoff-manifest.json --json
579
611
  sce auto handoff run --manifest docs/handoffs/handoff-manifest.json --profile enterprise --json
580
612
  sce auto handoff run --manifest docs/handoffs/handoff-manifest.json --min-spec-success-rate 95 --max-risk-level medium --json
581
613
  sce auto handoff run --manifest docs/handoffs/handoff-manifest.json --continue-from latest --continue-strategy auto --json
582
614
  sce auto handoff regression --session-id latest --json
583
615
  sce auto handoff regression --session-id latest --window 5 --json
584
- sce auto handoff regression --session-id latest --format markdown --out .kiro/reports/handoff-regression.md --json
585
- sce auto handoff regression --session-id latest --window 5 --out .kiro/reports/handoff-regression.json --json
586
- 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
587
619
  ```
588
620
 
589
621
  DoD-related options:
@@ -636,11 +668,11 @@ Close-loop batch (`sce auto close-loop-batch <goals-file>`) options:
636
668
  - `--batch-session-id <id>`: set explicit persisted batch session id
637
669
  - `--batch-session-keep <n>`: keep newest `n` persisted batch summaries after each run (`0-1000`)
638
670
  - `--batch-session-older-than-days <n>`: when pruning persisted batch summaries, only delete sessions older than `n` days (`0-36500`)
639
- - `--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`)
640
672
  - `--spec-session-older-than-days <n>`: when pruning specs, only delete directories older than `n` days (`0-36500`)
641
673
  - `--no-spec-session-protect-active`: allow pruning active/recently referenced spec directories
642
674
  - `--spec-session-protect-window-days <n>`: protection window (days) for recent session references during spec pruning (`0-36500`, default `7`)
643
- - `--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`)
644
676
  - `--spec-session-max-created <n>`: spec growth guard for maximum estimated created directories per run (`0-500000`)
645
677
  - `--spec-session-max-created-per-goal <n>`: spec growth guard for estimated created directories per processed goal (`0-1000`)
646
678
  - `--spec-session-max-duplicate-goals <n>`: goal-input duplicate guard for batch runs (`0-500000`)
@@ -705,7 +737,7 @@ Close-loop program (`sce auto close-loop-program "<goal>"`) options:
705
737
  - Program summary includes `program_coordination` (master/sub topology, unresolved goal indexes, scheduler snapshot) and `auto_recovery` metadata.
706
738
 
707
739
  Close-loop controller (`sce auto close-loop-controller [queue-file]`) options:
708
- - `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`)
709
741
  - `--controller-resume <session-or-file>`: resume from persisted controller session (`latest`, session id, or file path)
710
742
  - `--queue-format <auto|json|lines>`: queue parser mode (default `auto`)
711
743
  - `--no-controller-dedupe`: disable duplicate broad-goal deduplication (default dedupe enabled)
@@ -754,7 +786,7 @@ Close-loop session maintenance:
754
786
  - Stats JSON output includes `criteria`, completion/failure rates, `sub_spec_count_sum`, `master_spec_counts`, and `latest_sessions`.
755
787
 
756
788
  Spec directory maintenance:
757
- - `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`
758
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)
759
791
  - Protection sources include collaboration state, close-loop sessions, batch summaries, and controller sessions (via nested batch summary references).
760
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`.
@@ -795,7 +827,7 @@ Cross-archive autonomous governance maintenance:
795
827
  - JSON output includes `assessment` (pre-maintenance governance snapshot), `plan`, `executed_actions`, `summary`, and `after_assessment` (only when `--apply` without `--dry-run`).
796
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).
797
829
  - `--plan-only` runs a single non-mutating planning round.
798
- - 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.
799
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.
800
832
  - `--governance-session-keep` (with optional `--governance-session-older-than-days`) enables post-run governance session retention pruning while protecting the current session snapshot.
801
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.
@@ -848,7 +880,7 @@ Autonomous archive schema compatibility:
848
880
 
849
881
  Dual-track handoff integration:
850
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.
851
- - `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`).
852
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`.
853
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.
854
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`).
@@ -856,16 +888,16 @@ Dual-track handoff integration:
856
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.
857
889
  - `--require-pass` exits non-zero when status is not `pass` (recommended for CI/release hard gates).
858
890
  - Default policy follows profile defaults and enforces release-gate preflight hard requirement (`default`/`moqui`/`enterprise` all require preflight by default).
859
- - `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`.
860
892
  - Default mode is dependency-aware: spec integration goals are grouped into dependency batches and executed in topological order.
861
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.
862
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).
863
- - 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.
864
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`).
865
- - 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`.
866
898
  - `moqui_baseline.summary` now includes `scope_breakdown`, `coverage_matrix`, and `gap_frequency` for ER/BR/decision closure tracking.
867
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).
868
- - 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`.
869
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.
870
902
  - Run output includes `release_gate_preflight` (latest release gate history signal snapshot + blocked reasons) and carries this context into `warnings`.
871
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.
@@ -875,7 +907,7 @@ Dual-track handoff integration:
875
907
  - `default`: default takeover policy (release-gate preflight hard requirement enabled).
876
908
  - `moqui`: explicit Moqui-intake baseline (same hard-gate defaults as `default`).
877
909
  - `enterprise`: stricter release control baseline (`max-risk-level=medium`, `release-evidence-window=10`, preflight hard requirement enabled).
878
- - 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`.
879
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).
880
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`).
881
913
  - Moqui regression recovery recommendations now include an explicit labeled sequence block: `Step 1 (Cluster phased)` then `Step 2 (Baseline phased)`.
@@ -889,16 +921,16 @@ Dual-track handoff integration:
889
921
  - `--out` writes the generated regression report using the selected format.
890
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.
891
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.
892
- - Default evidence file is `.kiro/reports/release-evidence/handoff-runs.json`.
924
+ - Default evidence file is `.sce/reports/release-evidence/handoff-runs.json`.
893
925
  - `--window` (1-50, default `5`) controls how many recent sessions are aggregated in review.
894
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`.
895
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`.
896
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.
897
929
  - Add `--release-draft <path>` to auto-generate a release notes draft and evidence review markdown in one run.
898
930
  - `--release-version` sets draft version tag (defaults to `v<package.json version>`), and `--release-date` accepts `YYYY-MM-DD` (default: current UTC date).
899
- - 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`).
900
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.
901
- - 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`.
902
934
  - `--history-file` merges an existing index (for example, previous release asset) before dedup/refresh.
903
935
  - `--keep` retains latest N entries (`1-5000`, default `200`).
904
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.
@@ -915,13 +947,13 @@ Moqui release summary helper (script-level consolidated gate view):
915
947
  - When matrix regressions exist and remediation plan is available, recommendations include concrete template/capability priority order from `template_priority_matrix` and `capability_clusters`.
916
948
  - Matrix-regression recovery recommendations now use explicit labeled sequence steps: `Step 1 (Cluster phased)` then `Step 2 (Baseline phased)`.
917
949
  - Default inputs:
918
- - `.kiro/reports/release-evidence/handoff-runs.json`
919
- - `.kiro/reports/release-evidence/moqui-template-baseline.json`
920
- - `.kiro/reports/release-evidence/moqui-lexicon-audit.json`
921
- - `.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`
922
954
  - Default outputs:
923
- - `.kiro/reports/release-evidence/moqui-release-summary.json`
924
- - `.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`
925
957
  - `--fail-on-gate-fail` exits with code `2` when summary gate is `failed`.
926
958
 
927
959
  Release governance snapshot export helper (release-asset extraction):
@@ -929,20 +961,20 @@ Release governance snapshot export helper (release-asset extraction):
929
961
  - reads release evidence summary from `RELEASE_EVIDENCE_SUMMARY_FILE`
930
962
  - extracts `governance_snapshot` into independent audit assets
931
963
  - writes:
932
- - `RELEASE_GOVERNANCE_SNAPSHOT_JSON` (default `.kiro/reports/release-evidence/governance-snapshot.json`)
933
- - `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`)
934
966
  - never hard-fails release flow when summary is missing; writes unavailable placeholder with warning instead.
935
967
 
936
968
  Release weekly ops summary helper (ops closed-loop evidence):
937
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.
938
970
  - Default inputs:
939
- - `.kiro/reports/release-evidence/handoff-runs.json`
940
- - `.kiro/reports/release-evidence/release-gate-history.json`
941
- - `.kiro/reports/interactive-governance-report.json`
942
- - `.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`
943
975
  - Default outputs:
944
- - `.kiro/reports/release-evidence/weekly-ops-summary.json`
945
- - `.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`
946
978
  - Missing inputs are reported as warnings and reflected in `health.risk`/recommendations.
947
979
  - npm alias: `npm run report:release-ops-weekly`
948
980
 
@@ -967,16 +999,16 @@ Release weekly ops gate helper (release hard-gate):
967
999
  Release risk remediation bundle helper (weekly + drift unified command pack):
968
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.
969
1001
  - when weekly gate includes `dialogue-authorization`/`authorization-tier` block-rate pressure, plan includes policy-specific diagnostics (`interactive-dialogue-governance`, `interactive-authorization-tier-evaluate`).
970
- - Default input: `.kiro/reports/release-evidence/release-gate.json`
1002
+ - Default input: `.sce/reports/release-evidence/release-gate.json`
971
1003
  - Default outputs:
972
- - `.kiro/reports/release-evidence/release-risk-remediation-bundle.json`
973
- - `.kiro/reports/release-evidence/release-risk-remediation-bundle.md`
974
- - `.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`
975
1007
  - npm alias: `npm run report:release-risk-remediation`
976
1008
 
977
1009
  Release asset integrity check helper (release artifact completeness gate):
978
1010
  - `node scripts/release-asset-integrity-check.js`:
979
- - 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`).
980
1012
  - default required files:
981
1013
  - `release-gate-{tag}.json`
982
1014
  - `release-gate-history-{tag}.json|.md`
@@ -1007,8 +1039,8 @@ Autonomous strategy router helper (answer/code/fix/rollback policy):
1007
1039
 
1008
1040
  Matrix regression gate helper (script-level configurable hard gate):
1009
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.
1010
- - Default baseline input: `.kiro/reports/release-evidence/moqui-template-baseline.json`
1011
- - 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`
1012
1044
  - `--enforce` exits with code `2` when regressions exceed `--max-regressions`.
1013
1045
  - npm alias: `npm run gate:matrix-regression`
1014
1046
 
@@ -1017,17 +1049,17 @@ Moqui matrix remediation queue helper (script-level automatic queue export):
1017
1049
  - JSON output includes `template_priority_matrix` (cross-regression template priority ranking) and `capability_clusters` (capability-level remediation clusters with suggested templates).
1018
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.
1019
1051
  - Default inputs/outputs:
1020
- - Baseline: `.kiro/reports/release-evidence/moqui-template-baseline.json`
1021
- - Plan JSON: `.kiro/reports/release-evidence/matrix-remediation-plan.json`
1022
- - Queue lines: `.kiro/auto/matrix-remediation.lines`
1023
- - Plan Markdown: `.kiro/reports/release-evidence/matrix-remediation-plan.md`
1024
- - Batch goals JSON: `.kiro/auto/matrix-remediation.goals.json`
1025
- - Capability-cluster goals JSON: `.kiro/auto/matrix-remediation.capability-clusters.json`
1026
- - Commands Markdown: `.kiro/reports/release-evidence/matrix-remediation-commands.md`
1027
- - High queue lines: `.kiro/auto/matrix-remediation.high.lines`
1028
- - Medium queue lines: `.kiro/auto/matrix-remediation.medium.lines`
1029
- - High goals JSON: `.kiro/auto/matrix-remediation.goals.high.json`
1030
- - 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`
1031
1063
  - Default phased execution policy:
1032
1064
  - High phase: `--batch-parallel 1 --batch-agent-budget 2`
1033
1065
  - Medium phase: `--batch-parallel 1 --batch-agent-budget 2`
@@ -1037,17 +1069,17 @@ Moqui matrix remediation queue helper (script-level automatic queue export):
1037
1069
  Moqui matrix remediation phased runner helper (script-level one-shot execution):
1038
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.
1039
1071
  - Default inputs:
1040
- - High goals JSON: `.kiro/auto/matrix-remediation.goals.high.json`
1041
- - Medium goals JSON: `.kiro/auto/matrix-remediation.goals.medium.json`
1042
- - High lines fallback: `.kiro/auto/matrix-remediation.high.lines`
1043
- - 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`
1044
1076
  - Default execution policy:
1045
1077
  - High: `--batch-parallel 1 --batch-agent-budget 2 --batch-retry-max-rounds 3`
1046
1078
  - Medium: `--batch-parallel 1 --batch-agent-budget 2 --batch-retry-max-rounds 2`
1047
1079
  - Cooldown: `30` seconds
1048
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)
1049
1081
  - Zero-prep mode:
1050
- - `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`
1051
1083
  - npm alias: `npm run run:matrix-remediation-phased`
1052
1084
  - npm alias (baseline zero-prep): `npm run run:matrix-remediation-from-baseline -- --json`
1053
1085
  - npm alias (capability clusters): `npm run run:matrix-remediation-clusters`
@@ -1058,8 +1090,8 @@ Interactive customization plan gate helper (script-level secure-by-default check
1058
1090
  - Default policy: `docs/interactive-customization/guardrail-policy-baseline.json`
1059
1091
  - Default catalog: `docs/interactive-customization/high-risk-action-catalog.json` (or `policy.catalog_policy.catalog_file`)
1060
1092
  - Default outputs:
1061
- - `.kiro/reports/interactive-change-plan-gate.json`
1062
- - `.kiro/reports/interactive-change-plan-gate.md`
1093
+ - `.sce/reports/interactive-change-plan-gate.json`
1094
+ - `.sce/reports/interactive-change-plan-gate.md`
1063
1095
  - `--fail-on-block` exits with code `2` on `deny`
1064
1096
  - `--fail-on-non-allow` exits with code `2` on `deny` or `review-required`
1065
1097
 
@@ -1067,29 +1099,29 @@ Interactive context bridge helper (script-level provider normalization):
1067
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.
1068
1100
  - Default input sample: `docs/interactive-customization/moqui-context-provider.sample.json`
1069
1101
  - Default outputs:
1070
- - `.kiro/reports/interactive-page-context.normalized.json`
1071
- - `.kiro/reports/interactive-context-bridge.json`
1102
+ - `.sce/reports/interactive-page-context.normalized.json`
1103
+ - `.sce/reports/interactive-context-bridge.json`
1072
1104
  - Strict contract validation is enabled by default; `--no-strict-contract` keeps report generation for diagnostics.
1073
1105
  - CLI equivalent: `sce scene context-bridge --input <path> --json`
1074
1106
  - npm alias: `npm run report:interactive-context-bridge`
1075
1107
 
1076
1108
  Interactive full flow helper (script-level one-command entry):
1077
- - `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.
1078
- - Default flow artifact root: `.kiro/reports/interactive-flow/<session-id>/`
1079
- - Default flow summary output: `.kiro/reports/interactive-flow/<session-id>/interactive-flow.summary.json`
1080
- - 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`
1081
1113
  - Default dialogue-authorization signal stream:
1082
- - `.kiro/reports/interactive-flow/<session-id>/interactive-dialogue-authorization-signals.jsonl` (session)
1083
- - `.kiro/reports/interactive-dialogue-authorization-signals.jsonl` (global append-only stream)
1084
- - Default runtime report output: `.kiro/reports/interactive-flow/<session-id>/interactive-runtime-policy.json`
1085
- - 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`
1086
1118
  - Default work-order outputs:
1087
- - `.kiro/reports/interactive-flow/<session-id>/interactive-work-order.json`
1088
- - `.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`
1089
1121
  - Default matrix outputs:
1090
- - `.kiro/reports/interactive-flow/<session-id>/moqui-template-baseline.json`
1091
- - `.kiro/reports/interactive-flow/<session-id>/moqui-template-baseline.md`
1092
- - `.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)
1093
1125
  - Matrix stage is enabled by default; use `--no-matrix` only for diagnostics.
1094
1126
  - CLI equivalent: `sce scene interactive-flow --input <path> --goal "<goal>" --json`
1095
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`
@@ -1097,9 +1129,9 @@ Interactive full flow helper (script-level one-command entry):
1097
1129
  Interactive read-only intent helper (script-level stage-A copilot bridge):
1098
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.
1099
1131
  - Default outputs:
1100
- - `.kiro/reports/interactive-change-intent.json`
1101
- - `.kiro/reports/interactive-page-explain.md`
1102
- - `.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`
1103
1135
  - Default context contract: `docs/interactive-customization/moqui-copilot-context-contract.json` (fallback built-in baseline when file is absent)
1104
1136
  - Contract validation is strict by default (required fields, payload size, forbidden keys).
1105
1137
  - This helper never executes write actions; it only produces suggestion-stage artifacts.
@@ -1108,7 +1140,7 @@ Interactive dialogue governance helper (script-level communication-rule gate):
1108
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.
1109
1141
  - Embedded assistant authorization dialogue baseline: `docs/interactive-customization/embedded-assistant-authorization-dialogue-rules.md`
1110
1142
  - Dual-surface integration guide: `docs/interactive-customization/dual-ui-mode-integration-guide.md`
1111
- - Default output: `.kiro/reports/interactive-dialogue-governance.json`
1143
+ - Default output: `.sce/reports/interactive-dialogue-governance.json`
1112
1144
  - Default policy: `docs/interactive-customization/dialogue-governance-policy-baseline.json` (fallback builtin policy when missing)
1113
1145
  - Default authorization dialogue policy: `docs/interactive-customization/authorization-dialogue-policy-baseline.json`
1114
1146
  - Default profile: `business-user` (use `system-maintainer` for maintenance/operator conversations)
@@ -1117,75 +1149,76 @@ Interactive dialogue governance helper (script-level communication-rule gate):
1117
1149
  Interactive change-plan generator helper (script-level stage-B planning bridge):
1118
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.
1119
1151
  - Default outputs:
1120
- - `.kiro/reports/interactive-change-plan.generated.json`
1121
- - `.kiro/reports/interactive-change-plan.generated.md`
1152
+ - `.sce/reports/interactive-change-plan.generated.json`
1153
+ - `.sce/reports/interactive-change-plan.generated.md`
1122
1154
  - Generated plans can be evaluated directly by `interactive-change-plan-gate`.
1123
1155
 
1124
1156
  Interactive one-click loop helper (script-level orchestration entry):
1125
- - `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.
1126
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`
1127
- - Default loop artifact root: `.kiro/reports/interactive-loop/<session-id>/`
1128
- - 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`
1129
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`.
1130
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`.
1131
1164
  - Authorization tier defaults:
1132
1165
  - `business-user` profile is suggestion-only (`apply` denied by default)
1133
1166
  - `system-maintainer` profile can apply, but environment step-up requirements still apply (password/role separation/manual review)
1134
- - Default runtime report: `.kiro/reports/interactive-loop/<session-id>/interactive-runtime-policy.json`
1135
- - 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`
1136
1169
  - Default authorization tier signal stream:
1137
- - Session: `.kiro/reports/interactive-loop/<session-id>/interactive-authorization-tier-signals.jsonl`
1138
- - 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`
1139
1172
  - Default dialogue-authorization signal stream:
1140
- - Session: `.kiro/reports/interactive-loop/<session-id>/interactive-dialogue-authorization-signals.jsonl`
1141
- - 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`
1142
1175
  - Default work-order outputs:
1143
- - `.kiro/reports/interactive-loop/<session-id>/interactive-work-order.json`
1144
- - `.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`
1145
1178
  - Apply-mode mutating plans require password authorization by default (`plan.authorization.password_required=true`).
1146
- - `--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`).
1147
1180
  - npm alias: `npm run run:interactive-loop -- --context docs/interactive-customization/page-context.sample.json --goal "Improve order entry clarity" --json`
1148
1181
 
1149
1182
  Interactive runtime policy helper (script-level mode/environment gate):
1150
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.
1151
1184
  - Default policy: `docs/interactive-customization/runtime-mode-policy-baseline.json`
1152
1185
  - `policy.ui_modes` (when configured) enforces UI-surface contract, such as `user-app` suggestion-only and apply routed to `ops-console`.
1153
- - Default output: `.kiro/reports/interactive-runtime-policy.json`
1186
+ - Default output: `.sce/reports/interactive-runtime-policy.json`
1154
1187
  - `--fail-on-non-allow` exits with code `2` on `deny` or `review-required`.
1155
1188
 
1156
1189
  Interactive authorization-tier helper (script-level profile/environment step-up gate):
1157
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.
1158
1191
  - Default policy: `docs/interactive-customization/authorization-tier-policy-baseline.json`
1159
- - Default output: `.kiro/reports/interactive-authorization-tier.json`
1192
+ - Default output: `.sce/reports/interactive-authorization-tier.json`
1160
1193
  - `--fail-on-non-allow` exits with code `2` on `deny` or `review-required`.
1161
1194
 
1162
1195
  Interactive work-order helper (script-level usage/maintenance/dev closure):
1163
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.
1164
1197
  - Default outputs:
1165
- - `.kiro/reports/interactive-work-order.json`
1166
- - `.kiro/reports/interactive-work-order.md`
1198
+ - `.sce/reports/interactive-work-order.json`
1199
+ - `.sce/reports/interactive-work-order.md`
1167
1200
 
1168
1201
  Interactive approval workflow helper (script-level stage-B approval state machine):
1169
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.
1170
- - Default state file: `.kiro/reports/interactive-approval-state.json`
1171
- - 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`
1172
1205
  - `init` requires `--plan`; high-risk plans are marked as `approval_required=true`.
1173
1206
  - Password authorization can be required per plan (`plan.authorization.password_required=true`) or overridden in `init`.
1174
1207
  - `execute` is blocked (exit code `2`) when approval is required but current status is not `approved`.
1175
1208
 
1176
1209
  Interactive Moqui adapter helper (script-level stage-C controlled execution contract):
1177
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.
1178
- - Default plan output (`--action plan`): `.kiro/reports/interactive-change-plan.adapter.json`
1179
- - Default command output: `.kiro/reports/interactive-moqui-adapter.json`
1180
- - Default execution record (for `apply`/`rollback`): `.kiro/reports/interactive-execution-record.latest.json`
1181
- - 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`
1182
1215
  - `low-risk-apply` is one-click mode: only `risk_level=low` and gate decision `allow` can execute.
1183
1216
  - `apply` exits with code `2` when result is non-success (`failed` or `skipped`), ensuring CI-safe gating.
1184
1217
  - npm alias: `npm run report:interactive-adapter-capabilities`
1185
1218
 
1186
1219
  Interactive user feedback helper (script-level stage-D feedback ingestion):
1187
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.
1188
- - Default feedback file: `.kiro/reports/interactive-user-feedback.jsonl`
1221
+ - Default feedback file: `.sce/reports/interactive-user-feedback.jsonl`
1189
1222
  - Score range: `0..5`
1190
1223
  - npm alias: `npm run log:interactive-feedback -- --score 5 --comment "clear and safe"`
1191
1224
 
@@ -1193,14 +1226,14 @@ Interactive governance report helper (script-level stage-D/6 observability + ale
1193
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.
1194
1227
  - Default thresholds: `docs/interactive-customization/governance-threshold-baseline.json`
1195
1228
  - Default minimum intent sample threshold: `min_intent_samples=5` (below this becomes warning, not breach)
1196
- - Default feedback input: `.kiro/reports/interactive-user-feedback.jsonl`
1197
- - Default matrix input: `.kiro/reports/interactive-matrix-signals.jsonl`
1198
- - Default dialogue authorization signal input: `.kiro/reports/interactive-dialogue-authorization-signals.jsonl`
1199
- - Default runtime policy signal input: `.kiro/reports/interactive-runtime-signals.jsonl`
1200
- - 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`
1201
1234
  - Default outputs:
1202
- - `.kiro/reports/interactive-governance-report.json`
1203
- - `.kiro/reports/interactive-governance-report.md`
1235
+ - `.sce/reports/interactive-governance-report.json`
1236
+ - `.sce/reports/interactive-governance-report.md`
1204
1237
  - `--fail-on-alert` exits with code `2` when medium/high breaches exist.
1205
1238
  - npm alias: `npm run report:interactive-governance`
1206
1239
 
@@ -1217,11 +1250,11 @@ Moqui rebuild gate helper (CI/pre-release readiness gate):
1217
1250
  - npm alias: `npm run gate:moqui-rebuild`
1218
1251
 
1219
1252
  Moqui metadata extractor helper (script-level catalog bootstrap):
1220
- - `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.
1221
1254
  - Recommended first step before `moqui-standard-rebuild`.
1222
1255
  - Keep extraction source read-only and run rebuild generation against SCE output directories.
1223
1256
 
1224
- Recommended `.kiro/config/orchestrator.json`:
1257
+ Recommended `.sce/config/orchestrator.json`:
1225
1258
 
1226
1259
  ```json
1227
1260
  {
@@ -1245,6 +1278,11 @@ Recommended `.kiro/config/orchestrator.json`:
1245
1278
 
1246
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.
1247
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
+
1248
1286
  ### Scene Template Engine
1249
1287
 
1250
1288
  ```bash
@@ -1287,7 +1325,7 @@ sce scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json -
1287
1325
  sce scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json --ontology-min-score 70 --json
1288
1326
 
1289
1327
  # Persist ontology/publish batch report for governance tracking
1290
- 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
1291
1329
 
1292
1330
  # Enforce batch-level ontology portfolio gate (average score + valid-rate)
1293
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
@@ -1296,10 +1334,10 @@ sce scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json -
1296
1334
  sce scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json --no-require-ontology-validation --json
1297
1335
 
1298
1336
  # Export ontology remediation task draft markdown
1299
- 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
1300
1338
 
1301
1339
  # Export ontology remediation queue lines (directly consumable by close-loop-batch)
1302
- 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
1303
1341
  ```
1304
1342
 
1305
1343
  ### Scene Package Ontology Backfill Batch
@@ -1315,7 +1353,7 @@ sce scene package-ontology-backfill-batch --from-331 --dry-run --json
1315
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
1316
1354
 
1317
1355
  # Export detailed backfill report for governance review
1318
- 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
1319
1357
  ```
1320
1358
 
1321
1359
  ### Moqui Template Baseline Scorecard
@@ -1338,13 +1376,13 @@ sce scene moqui-baseline --include-all --json
1338
1376
  sce scene moqui-baseline \
1339
1377
  --min-score 75 \
1340
1378
  --min-valid-rate 100 \
1341
- --out .kiro/reports/moqui-template-baseline.json \
1342
- --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 \
1343
1381
  --json
1344
1382
 
1345
1383
  # Compare with a previous baseline and fail CI on portfolio gate fail
1346
1384
  sce scene moqui-baseline \
1347
- --compare-with .kiro/reports/release-evidence/moqui-template-baseline-prev.json \
1385
+ --compare-with .sce/reports/release-evidence/moqui-template-baseline-prev.json \
1348
1386
  --fail-on-portfolio-fail \
1349
1387
  --json
1350
1388
  ```
@@ -1469,6 +1507,7 @@ sce <command> --help
1469
1507
 
1470
1508
  # Show version
1471
1509
  sce --version
1510
+
1472
1511
  ```
1473
1512
 
1474
1513
  ---
@@ -1611,11 +1650,11 @@ sce repo init [options]
1611
1650
 
1612
1651
  **Behavior:**
1613
1652
  - Scans project directory recursively for Git repositories
1614
- - Excludes `.kiro` directory from scanning
1653
+ - Excludes `.sce` directory from scanning
1615
1654
  - Extracts remote URL from `origin` remote (or first available remote)
1616
1655
  - Detects current branch for each repository
1617
1656
  - Prompts for confirmation if configuration already exists (unless `--force`)
1618
- - Creates `.kiro/project-repos.json` configuration file
1657
+ - Creates `.sce/project-repos.json` configuration file
1619
1658
 
1620
1659
  **Example:**
1621
1660
  ```bash
@@ -1637,7 +1676,7 @@ Found 3 repositories:
1637
1676
  ✓ backend (develop) - https://github.com/user/backend.git
1638
1677
  ✓ shared (main) - https://github.com/user/shared.git
1639
1678
 
1640
- Configuration saved to .kiro/project-repos.json
1679
+ Configuration saved to .sce/project-repos.json
1641
1680
  ```
1642
1681
 
1643
1682
  ---