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.
- package/CHANGELOG.md +130 -78
- package/README.md +6 -6
- package/README.zh.md +6 -6
- package/bin/scene-capability-engine.js +129 -7
- package/docs/331-poc-adaptation-roadmap.md +3 -3
- package/docs/331-poc-dual-track-integration-guide.md +8 -8
- package/docs/331-poc-weekly-delivery-checklist.md +6 -6
- package/docs/README.md +4 -0
- package/docs/adopt-migration-guide.md +13 -13
- package/docs/adoption-guide.md +28 -28
- package/docs/agent-hooks-analysis.md +10 -10
- package/docs/architecture.md +13 -13
- package/docs/articles/ai-driven-development-philosophy-and-practice.en.md +3 -3
- package/docs/articles/ai-driven-development-philosophy-and-practice.md +3 -3
- package/docs/autonomous-control-guide.md +35 -35
- package/docs/command-reference.md +192 -153
- package/docs/cross-tool-guide.md +7 -7
- package/docs/developer-guide.md +8 -8
- package/docs/document-governance.md +15 -15
- package/docs/environment-management-guide.md +6 -6
- package/docs/examples/add-export-command/design.md +1 -1
- package/docs/faq.md +13 -13
- package/docs/handoff-profile-integration-guide.md +3 -3
- package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.json +7 -7
- package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.md +1 -1
- package/docs/integration-modes.md +12 -12
- package/docs/integration-philosophy.md +11 -11
- package/docs/interactive-customization/331-poc-sce-integration-checklist.md +24 -24
- package/docs/interactive-customization/README.md +43 -43
- package/docs/interactive-customization/business-mode-policy-baseline.json +33 -0
- package/docs/interactive-customization/dual-ui-mode-integration-guide.md +1 -1
- package/docs/interactive-customization/moqui-adapter-interface.md +2 -2
- package/docs/interactive-customization/moqui-copilot-integration-guide.md +1 -1
- package/docs/interactive-customization/moqui-interactive-template-playbook.md +4 -4
- package/docs/interactive-customization/phase-acceptance-evidence.md +2 -2
- package/docs/knowledge-management-guide.md +6 -6
- package/docs/manual-workflows-guide.md +4 -4
- package/docs/moqui-capability-matrix.md +3 -3
- package/docs/moqui-standard-rebuild-guide.md +8 -8
- package/docs/moqui-template-core-library-playbook.md +27 -27
- package/docs/multi-agent-coordination-guide.md +19 -19
- package/docs/multi-repo-management-guide.md +17 -17
- package/docs/quick-start-with-ai-tools.md +7 -7
- package/docs/quick-start.md +2 -2
- package/docs/release-checklist.md +4 -4
- package/docs/sce-business-mode-map.md +103 -0
- package/docs/security-governance-default-baseline.md +12 -12
- package/docs/spec-collaboration-guide.md +3 -3
- package/docs/spec-locking-guide.md +2 -2
- package/docs/spec-workflow.md +3 -3
- package/docs/starter-kit/README.md +4 -4
- package/docs/starter-kit/handoff-manifest.starter.json +2 -2
- package/docs/starter-kit/release.workflow.sample.yml +1 -1
- package/docs/steering-strategy-guide.md +15 -15
- package/docs/team-collaboration-guide.md +69 -69
- package/docs/testing-strategy.md +2 -2
- package/docs/tools/claude-guide.md +14 -4
- package/docs/tools/cursor-guide.md +14 -14
- package/docs/tools/generic-guide.md +9 -9
- package/docs/tools/kiro-guide.md +4 -4
- package/docs/tools/vscode-guide.md +13 -13
- package/docs/tools/windsurf-guide.md +6 -6
- package/docs/troubleshooting.md +22 -22
- package/docs/upgrade-guide.md +8 -8
- package/docs/value-observability-guide.md +3 -3
- package/docs/zh/README.md +6 -0
- package/docs/zh/quick-start.md +15 -15
- package/docs/zh/release-checklist.md +3 -3
- package/docs/zh/tools/claude-guide.md +16 -6
- package/docs/zh/tools/cursor-guide.md +11 -11
- package/docs/zh/tools/generic-guide.md +13 -13
- package/docs/zh/tools/kiro-guide.md +2 -2
- package/docs/zh/tools/vscode-guide.md +11 -11
- package/docs/zh/tools/windsurf-guide.md +11 -11
- package/docs/zh/value-observability-guide.md +3 -3
- package/lib/adoption/adoption-logger.js +1 -1
- package/lib/adoption/adoption-strategy.js +28 -28
- package/lib/adoption/backup-manager.js +3 -3
- package/lib/adoption/conflict-resolver.js +2 -2
- package/lib/adoption/detection-engine.js +8 -8
- package/lib/adoption/error-formatter.js +4 -4
- package/lib/adoption/file-classifier.js +6 -6
- package/lib/adoption/progress-reporter.js +1 -1
- package/lib/adoption/smart-orchestrator.js +10 -10
- package/lib/adoption/strategy-selector.js +6 -6
- package/lib/adoption/summary-generator.js +1 -1
- package/lib/adoption/template-sync.js +8 -8
- package/lib/auto/autonomous-engine.js +7 -7
- package/lib/auto/checkpoint-manager.js +1 -1
- package/lib/auto/close-loop-runner.js +12 -12
- package/lib/auto/error-recovery-manager.js +1 -1
- package/lib/auto/goal-decomposer.js +1 -1
- package/lib/auto/moqui-recovery-sequence.js +2 -2
- package/lib/auto/progress-tracker.js +1 -1
- package/lib/auto/state-manager.js +1 -1
- package/lib/backup/backup-system.js +10 -10
- package/lib/backup/selective-backup.js +4 -4
- package/lib/collab/agent-registry.js +2 -2
- package/lib/collab/contract-manager.js +1 -1
- package/lib/collab/coordinator.js +2 -2
- package/lib/collab/dependency-manager.js +1 -1
- package/lib/collab/integration-manager.js +1 -1
- package/lib/collab/metadata-manager.js +1 -1
- package/lib/collab/multi-agent-config.js +2 -2
- package/lib/collab/spec-lifecycle-manager.js +2 -2
- package/lib/collab/visualizer.js +1 -1
- package/lib/commands/adopt.js +6 -6
- package/lib/commands/auto.js +56 -56
- package/lib/commands/collab.js +2 -2
- package/lib/commands/docs.js +3 -3
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/knowledge.js +2 -2
- package/lib/commands/lock.js +1 -1
- package/lib/commands/ops.js +1 -1
- package/lib/commands/orchestrate.js +3 -3
- package/lib/commands/rollback.js +1 -1
- package/lib/commands/scene.js +135 -93
- package/lib/commands/session.js +139 -0
- package/lib/commands/spec-bootstrap.js +1 -1
- package/lib/commands/spec-gate.js +2 -2
- package/lib/commands/spec-pipeline.js +1 -1
- package/lib/commands/status.js +4 -4
- package/lib/commands/steering.js +119 -0
- package/lib/commands/value.js +1 -1
- package/lib/commands/watch.js +9 -9
- package/lib/commands/workspace-multi.js +1 -1
- package/lib/context/context-exporter.js +5 -7
- package/lib/context/prompt-generator.js +2 -2
- package/lib/environment/backup-system.js +1 -1
- package/lib/environment/environment-manager.js +2 -2
- package/lib/gitignore/gitignore-backup.js +3 -3
- package/lib/gitignore/gitignore-detector.js +13 -13
- package/lib/gitignore/gitignore-integration.js +3 -3
- package/lib/gitignore/gitignore-transformer.js +4 -4
- package/lib/gitignore/layered-rules-template.js +16 -16
- package/lib/governance/config-manager.js +1 -1
- package/lib/governance/doc-reference-checker.js +4 -4
- package/lib/governance/execution-logger.js +1 -1
- package/lib/governance/file-scanner.js +3 -3
- package/lib/interactive-customization/moqui-interactive-adapter.js +2 -2
- package/lib/knowledge/knowledge-manager.js +1 -1
- package/lib/lock/lock-manager.js +2 -2
- package/lib/lock/steering-file-lock.js +5 -5
- package/lib/lock/task-lock-manager.js +3 -3
- package/lib/operations/audit-logger.js +1 -1
- package/lib/operations/feedback-manager.js +1 -1
- package/lib/operations/operations-manager.js +3 -3
- package/lib/operations/permission-manager.js +2 -2
- package/lib/operations/template-loader.js +1 -1
- package/lib/orchestrator/agent-spawner.js +27 -2
- package/lib/orchestrator/bootstrap-prompt-builder.js +6 -6
- package/lib/orchestrator/orchestration-engine.js +1 -1
- package/lib/orchestrator/orchestrator-config.js +2 -2
- package/lib/repo/config-manager.js +3 -3
- package/lib/repo/handlers/init-handler.js +1 -1
- package/lib/repo/repo-manager.js +2 -2
- package/lib/runtime/business-mode-resolver.js +240 -0
- package/lib/runtime/session-store.js +207 -0
- package/lib/runtime/steering-contract.js +338 -0
- package/lib/scene-runtime/audit-emitter.js +1 -1
- package/lib/scene-runtime/binding-plugin-loader.js +3 -3
- package/lib/scene-runtime/eval-bridge.js +1 -1
- package/lib/scene-runtime/index.js +1 -1
- package/lib/scene-runtime/moqui-extractor.js +1 -1
- package/lib/scene-runtime/plan-compiler.js +1 -1
- package/lib/scene-runtime/policy-gate.js +1 -1
- package/lib/scene-runtime/runtime-executor.js +1 -1
- package/lib/scene-runtime/scene-loader.js +1 -1
- package/lib/spec/bootstrap/context-collector.js +1 -1
- package/lib/spec/pipeline/stage-adapters.js +3 -3
- package/lib/spec/pipeline/state-store.js +1 -1
- package/lib/spec-gate/policy/policy-loader.js +1 -1
- package/lib/spec-gate/rules/default-rules.js +6 -6
- package/lib/steering/adoption-config.js +1 -1
- package/lib/steering/compliance-error-reporter.js +3 -3
- package/lib/steering/context-sync-manager.js +2 -2
- package/lib/steering/index.js +1 -1
- package/lib/steering/spec-steering.js +2 -2
- package/lib/steering/steering-compliance-checker.js +1 -1
- package/lib/steering/steering-loader.js +4 -5
- package/lib/steering/steering-manager.js +4 -4
- package/lib/task/task-claimer.js +5 -5
- package/lib/task/task-status-store.js +2 -2
- package/lib/templates/content-generalizer.js +1 -1
- package/lib/templates/spec-reader.js +2 -2
- package/lib/templates/template-creator.js +1 -1
- package/lib/templates/template-exporter.js +3 -3
- package/lib/templates/template-manager.js +1 -1
- package/lib/upgrade/migration-engine.js +3 -3
- package/lib/upgrade/migrations/1.0.0-to-1.1.0.js +1 -1
- package/lib/utils/file-diff.js +6 -6
- package/lib/utils/tool-detector.js +10 -10
- package/lib/utils/validation.js +5 -5
- package/lib/value/metric-contract-loader.js +1 -1
- package/lib/version/version-manager.js +1 -1
- package/lib/watch/execution-logger.js +1 -1
- package/lib/watch/presets.js +8 -8
- package/lib/watch/watch-manager.js +2 -2
- package/lib/workspace/legacy-kiro-migrator.js +275 -0
- package/lib/workspace/multi/workspace-context-resolver.js +2 -2
- package/lib/workspace/multi/workspace-registry.js +2 -2
- package/lib/workspace/multi/workspace-state-manager.js +3 -3
- package/lib/workspace/workspace-manager.js +1 -1
- package/lib/workspace/workspace-sync.js +2 -2
- package/locales/en.json +4 -4
- package/locales/zh.json +4 -4
- package/package.json +9 -9
- package/template/{.kiro → .sce}/README.md +15 -15
- package/template/{.kiro → .sce}/hooks/check-spec-on-create.kiro.hook +2 -2
- package/template/{.kiro → .sce}/steering/CORE_PRINCIPLES.md +4 -4
- package/template/{.kiro → .sce}/steering/CURRENT_CONTEXT.md +1 -1
- package/template/{.kiro → .sce}/steering/ENVIRONMENT.md +3 -3
- package/template/{.kiro → .sce}/tools/backup_manager.py +3 -3
- package/template/{.kiro → .sce}/tools/configuration_manager.py +1 -1
- package/template/README.md +12 -12
- /package/template/{.kiro → .sce}/hooks/run-tests-on-save.kiro.hook +0 -0
- /package/template/{.kiro → .sce}/hooks/sync-tasks-on-edit.kiro.hook +0 -0
- /package/template/{.kiro → .sce}/specs/SPEC_WORKFLOW_GUIDE.md +0 -0
- /package/template/{.kiro → .sce}/steering/RULES_GUIDE.md +0 -0
- /package/template/{.kiro → .sce}/templates/operations/default/change-impact.md +0 -0
- /package/template/{.kiro → .sce}/templates/operations/default/deployment.md +0 -0
- /package/template/{.kiro → .sce}/templates/operations/default/feedback-response.md +0 -0
- /package/template/{.kiro → .sce}/templates/operations/default/migration-plan.md +0 -0
- /package/template/{.kiro → .sce}/templates/operations/default/monitoring.md +0 -0
- /package/template/{.kiro → .sce}/templates/operations/default/operations.md +0 -0
- /package/template/{.kiro → .sce}/templates/operations/default/rollback.md +0 -0
- /package/template/{.kiro → .sce}/templates/operations/default/tools.yaml +0 -0
- /package/template/{.kiro → .sce}/templates/operations/default/troubleshooting.md +0 -0
- /package/template/{.kiro → .sce}/tools/document_evaluator.py +0 -0
- /package/template/{.kiro → .sce}/tools/enhancement_logger.py +0 -0
- /package/template/{.kiro → .sce}/tools/error_handler.py +0 -0
- /package/template/{.kiro → .sce}/tools/improvement_identifier.py +0 -0
- /package/template/{.kiro → .sce}/tools/modification_applicator.py +0 -0
- /package/template/{.kiro → .sce}/tools/quality_gate_enforcer.py +0 -0
- /package/template/{.kiro → .sce}/tools/quality_scorer.py +0 -0
- /package/template/{.kiro → .sce}/tools/report_generator.py +0 -0
- /package/template/{.kiro → .sce}/tools/ultrawork_enhancer.py +0 -0
- /package/template/{.kiro → .sce}/tools/ultrawork_enhancer_refactored.py +0 -0
- /package/template/{.kiro → .sce}/tools/ultrawork_enhancer_v2.py +0 -0
- /package/template/{.kiro → .sce}/tools/ultrawork_enhancer_v3.py +0 -0
- /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 .
|
|
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 .
|
|
90
|
-
--history-dir .
|
|
91
|
-
--out .
|
|
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 .
|
|
96
|
-
--history-dir .
|
|
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 .
|
|
104
|
-
--history-dir .
|
|
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 .
|
|
304
|
-
--out .
|
|
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 ".
|
|
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 .
|
|
378
|
-
sce auto close-loop-batch .
|
|
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 .
|
|
403
|
-
--program-audit-out .
|
|
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 .
|
|
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 .
|
|
411
|
-
--controller-failed-file .
|
|
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 .
|
|
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 .
|
|
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 .
|
|
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 .
|
|
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 .
|
|
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 .
|
|
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 .
|
|
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 .
|
|
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 .
|
|
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 .
|
|
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 .
|
|
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 .
|
|
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 .
|
|
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 .
|
|
573
|
-
sce auto handoff queue --manifest docs/handoffs/handoff-manifest.json --out .
|
|
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 .
|
|
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 .
|
|
585
|
-
sce auto handoff regression --session-id latest --window 5 --out .
|
|
586
|
-
sce auto close-loop-batch .
|
|
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 `.
|
|
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 `.
|
|
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 `.
|
|
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 `.
|
|
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 `.
|
|
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 `.
|
|
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 `.
|
|
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 `.
|
|
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 `.
|
|
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 `.
|
|
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 `.
|
|
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 `.
|
|
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 `.
|
|
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 `.
|
|
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
|
-
- `.
|
|
919
|
-
- `.
|
|
920
|
-
- `.
|
|
921
|
-
- `.
|
|
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
|
-
- `.
|
|
924
|
-
- `.
|
|
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 `.
|
|
933
|
-
- `RELEASE_GOVERNANCE_SNAPSHOT_MD` (default `.
|
|
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
|
-
- `.
|
|
940
|
-
- `.
|
|
941
|
-
- `.
|
|
942
|
-
- `.
|
|
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
|
-
- `.
|
|
945
|
-
- `.
|
|
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: `.
|
|
1002
|
+
- Default input: `.sce/reports/release-evidence/release-gate.json`
|
|
971
1003
|
- Default outputs:
|
|
972
|
-
- `.
|
|
973
|
-
- `.
|
|
974
|
-
- `.
|
|
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 `.
|
|
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: `.
|
|
1011
|
-
- Default output: `.
|
|
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: `.
|
|
1021
|
-
- Plan JSON: `.
|
|
1022
|
-
- Queue lines: `.
|
|
1023
|
-
- Plan Markdown: `.
|
|
1024
|
-
- Batch goals JSON: `.
|
|
1025
|
-
- Capability-cluster goals JSON: `.
|
|
1026
|
-
- Commands Markdown: `.
|
|
1027
|
-
- High queue lines: `.
|
|
1028
|
-
- Medium queue lines: `.
|
|
1029
|
-
- High goals JSON: `.
|
|
1030
|
-
- Medium goals 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: `.
|
|
1041
|
-
- Medium goals JSON: `.
|
|
1042
|
-
- High lines fallback: `.
|
|
1043
|
-
- Medium lines fallback: `.
|
|
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 .
|
|
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
|
-
- `.
|
|
1062
|
-
- `.
|
|
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
|
-
- `.
|
|
1071
|
-
- `.
|
|
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: `.
|
|
1079
|
-
- Default flow summary output: `.
|
|
1080
|
-
- Default dialogue report output: `.
|
|
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
|
-
- `.
|
|
1083
|
-
- `.
|
|
1084
|
-
- Default runtime report output: `.
|
|
1085
|
-
- Default authorization tier report output: `.
|
|
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
|
-
- `.
|
|
1088
|
-
- `.
|
|
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
|
-
- `.
|
|
1091
|
-
- `.
|
|
1092
|
-
- `.
|
|
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
|
-
- `.
|
|
1101
|
-
- `.
|
|
1102
|
-
- `.
|
|
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: `.
|
|
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
|
-
- `.
|
|
1121
|
-
- `.
|
|
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: `.
|
|
1128
|
-
- Default summary output: `.
|
|
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: `.
|
|
1135
|
-
- Default authorization tier report: `.
|
|
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: `.
|
|
1138
|
-
- Global: `.
|
|
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: `.
|
|
1141
|
-
- Global: `.
|
|
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
|
-
- `.
|
|
1144
|
-
- `.
|
|
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 (`.
|
|
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: `.
|
|
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: `.
|
|
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
|
-
- `.
|
|
1166
|
-
- `.
|
|
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: `.
|
|
1171
|
-
- Default audit file: `.
|
|
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`): `.
|
|
1179
|
-
- Default command output: `.
|
|
1180
|
-
- Default execution record (for `apply`/`rollback`): `.
|
|
1181
|
-
- Default append-only execution ledger: `.
|
|
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: `.
|
|
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: `.
|
|
1197
|
-
- Default matrix input: `.
|
|
1198
|
-
- Default dialogue authorization signal input: `.
|
|
1199
|
-
- Default runtime policy signal input: `.
|
|
1200
|
-
- Default authorization tier signal input: `.
|
|
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
|
-
- `.
|
|
1203
|
-
- `.
|
|
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 (`.
|
|
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 `.
|
|
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 .
|
|
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 .
|
|
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 .
|
|
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 .
|
|
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 .
|
|
1342
|
-
--markdown-out .
|
|
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 .
|
|
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 `.
|
|
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 `.
|
|
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 .
|
|
1679
|
+
Configuration saved to .sce/project-repos.json
|
|
1641
1680
|
```
|
|
1642
1681
|
|
|
1643
1682
|
---
|