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