scene-capability-engine 3.0.1 → 3.0.2
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 +233 -233
- package/LICENSE +2 -2
- package/README.md +8 -11
- package/README.zh.md +7 -10
- package/bin/kse.js +1 -1
- package/bin/sce.js +1 -1
- package/bin/sco.js +1 -1
- package/docs/331-poc-adaptation-roadmap.md +25 -25
- package/docs/331-poc-dual-track-integration-guide.md +26 -26
- package/docs/331-poc-weekly-delivery-checklist.md +8 -8
- package/docs/OFFLINE_INSTALL.md +10 -10
- package/docs/README.md +24 -24
- package/docs/adopt-migration-guide.md +51 -51
- package/docs/adoption-guide.md +56 -56
- package/docs/agent-hooks-analysis.md +52 -52
- package/docs/architecture.md +6 -6
- package/docs/articles/ai-driven-development-philosophy-and-practice-review.md +4 -4
- package/docs/articles/ai-driven-development-philosophy-and-practice.en.md +9 -9
- package/docs/articles/ai-driven-development-philosophy-and-practice.md +10 -10
- package/docs/autonomous-control-guide.md +89 -89
- package/docs/command-reference.md +11 -11
- package/docs/community.md +4 -4
- package/docs/cross-tool-guide.md +47 -47
- package/docs/developer-guide.md +5 -5
- package/docs/document-governance.md +91 -91
- package/docs/environment-management-guide.md +53 -53
- package/docs/examples/add-export-command/design.md +2 -2
- package/docs/examples/add-export-command/requirements.md +5 -5
- package/docs/examples/add-export-command/tasks.md +2 -2
- package/docs/faq.md +69 -69
- package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.json +9 -9
- package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.md +3 -3
- package/docs/integration-modes.md +60 -60
- package/docs/integration-philosophy.md +48 -48
- package/docs/knowledge-management-guide.md +21 -21
- package/docs/manual-workflows-guide.md +20 -20
- package/docs/moqui-capability-matrix.md +22 -22
- package/docs/moqui-template-core-library-playbook.md +20 -20
- package/docs/multi-agent-coordination-guide.md +19 -19
- package/docs/multi-repo-management-guide.md +93 -93
- package/docs/quick-start-with-ai-tools.md +36 -36
- package/docs/quick-start.md +16 -16
- package/docs/release-checklist.md +7 -7
- package/docs/releases/v1.46.2-validation.md +1 -1
- package/docs/releases/v1.46.2.md +10 -10
- package/docs/scene-runtime-guide.md +42 -42
- package/docs/spec-collaboration-guide.md +43 -43
- package/docs/spec-locking-guide.md +26 -26
- package/docs/spec-numbering-guide.md +6 -6
- package/docs/spec-workflow.md +25 -25
- package/docs/steering-strategy-guide.md +36 -36
- package/docs/team-collaboration-guide.md +23 -23
- package/docs/testing-strategy.md +2 -2
- package/docs/tools/claude-guide.md +26 -26
- package/docs/tools/cursor-guide.md +31 -31
- package/docs/tools/generic-guide.md +22 -22
- package/docs/tools/kiro-guide.md +43 -43
- package/docs/tools/vscode-guide.md +18 -18
- package/docs/tools/windsurf-guide.md +50 -50
- package/docs/troubleshooting.md +116 -116
- package/docs/upgrade-guide.md +49 -49
- package/docs/value-observability-guide.md +6 -6
- package/docs/zh/README.md +22 -22
- package/docs/zh/quick-start.md +34 -34
- package/docs/zh/release-checklist.md +6 -6
- package/docs/zh/releases/v1.46.2-validation.md +1 -1
- package/docs/zh/releases/v1.46.2.md +9 -9
- package/docs/zh/spec-numbering-guide.md +6 -6
- package/docs/zh/tools/claude-guide.md +14 -14
- package/docs/zh/tools/cursor-guide.md +18 -18
- package/docs/zh/tools/generic-guide.md +40 -40
- package/docs/zh/tools/kiro-guide.md +50 -50
- package/docs/zh/tools/vscode-guide.md +20 -20
- package/docs/zh/tools/windsurf-guide.md +49 -49
- package/docs/zh/value-observability-guide.md +6 -6
- package/docs//344/272/244/344/273/230/346/270/205/345/215/225.md +4 -4
- package/lib/adoption/adoption-logger.js +1 -1
- package/lib/adoption/adoption-strategy.js +3 -3
- package/lib/adoption/detection-engine.js +1 -1
- package/lib/adoption/error-formatter.js +17 -17
- package/lib/adoption/progress-reporter.js +2 -2
- package/lib/adoption/smart-orchestrator.js +2 -2
- package/lib/adoption/strategy-selector.js +2 -2
- package/lib/adoption/summary-generator.js +3 -3
- package/lib/auto/autonomous-engine.js +2 -2
- package/lib/auto/close-loop-runner.js +9 -9
- package/lib/backup/backup-system.js +2 -2
- package/lib/collab/collab-manager.js +2 -2
- package/lib/commands/adopt.js +16 -16
- package/lib/commands/auto.js +93 -93
- package/lib/commands/collab.js +8 -8
- package/lib/commands/docs.js +26 -26
- package/lib/commands/doctor.js +2 -2
- package/lib/commands/env.js +14 -14
- package/lib/commands/knowledge.js +13 -13
- package/lib/commands/lock.js +6 -6
- package/lib/commands/ops.js +19 -19
- package/lib/commands/orchestrate.js +5 -5
- package/lib/commands/prompt.js +3 -3
- package/lib/commands/rollback.js +4 -4
- package/lib/commands/scene.js +29 -29
- package/lib/commands/spec-bootstrap.js +1 -1
- package/lib/commands/spec-gate.js +1 -1
- package/lib/commands/spec-pipeline.js +1 -1
- package/lib/commands/task.js +1 -1
- package/lib/commands/templates.js +27 -27
- package/lib/commands/upgrade.js +8 -8
- package/lib/commands/value.js +4 -4
- package/lib/commands/watch.js +9 -9
- package/lib/commands/workflows.js +5 -5
- package/lib/commands/workspace-multi.js +17 -17
- package/lib/commands/workspace.js +5 -5
- package/lib/context/context-exporter.js +1 -1
- package/lib/context/prompt-generator.js +1 -1
- package/lib/data/moqui-capability-lexicon.json +1 -1
- package/lib/environment/environment-manager.js +1 -1
- package/lib/gitignore/gitignore-detector.js +4 -4
- package/lib/gitignore/gitignore-integration.js +2 -2
- package/lib/gitignore/gitignore-transformer.js +3 -3
- package/lib/gitignore/layered-rules-template.js +2 -2
- package/lib/governance/diagnostic-engine.js +4 -4
- package/lib/governance/doc-reference-checker.js +1 -1
- package/lib/governance/hooks-manager.js +5 -5
- package/lib/governance/reporter.js +1 -1
- package/lib/knowledge/knowledge-manager.js +6 -6
- package/lib/orchestrator/agent-spawner.js +1 -1
- package/lib/orchestrator/bootstrap-prompt-builder.js +2 -2
- package/lib/repo/config-manager.js +2 -2
- package/lib/repo/handlers/init-handler.js +3 -3
- package/lib/scene-runtime/audit-emitter.js +2 -2
- package/lib/scene-runtime/binding-plugin-loader.js +1 -1
- package/lib/scene-runtime/moqui-adapter.js +2 -2
- package/lib/scene-runtime/moqui-extractor.js +3 -3
- package/lib/scene-runtime/scene-loader.js +3 -3
- package/lib/scene-runtime/scene-template-linter.js +1 -1
- package/lib/scene-runtime/templates/scene-template-erp-query-v0.1.yaml +1 -1
- package/lib/scene-runtime/templates/scene-template-hybrid-shadow-v0.1.yaml +1 -1
- package/lib/spec/multi-spec-orchestrate.js +1 -1
- package/lib/spec-gate/rules/default-rules.js +1 -1
- package/lib/steering/adoption-config.js +1 -1
- package/lib/steering/compliance-auto-fixer.js +1 -1
- package/lib/steering/compliance-cache.js +3 -3
- package/lib/steering/compliance-error-reporter.js +1 -1
- package/lib/steering/index.js +1 -1
- package/lib/steering/steering-manager.js +7 -7
- package/lib/task/task-claimer.js +2 -1
- package/lib/templates/metadata-collector.js +6 -6
- package/lib/templates/template-creator.js +2 -2
- package/lib/templates/template-exporter.js +12 -12
- package/lib/upgrade/migration-engine.js +4 -4
- package/lib/utils/tool-detector.js +25 -25
- package/lib/utils/validation.js +3 -3
- package/lib/version/version-checker.js +13 -13
- package/lib/version/version-manager.js +7 -7
- package/lib/watch/presets.js +4 -4
- package/lib/workspace/multi/path-utils.js +1 -1
- package/lib/workspace/multi/workspace-context-resolver.js +9 -9
- package/lib/workspace/multi/workspace-registry.js +2 -2
- package/lib/workspace/multi/workspace-state-manager.js +1 -1
- package/lib/workspace/multi/workspace.js +1 -1
- package/lib/workspace/workspace-sync.js +1 -1
- package/locales/en.json +1 -1
- package/locales/zh.json +1 -1
- package/package.json +3 -5
- package/template/.kiro/README.md +40 -40
- package/template/.kiro/specs/SPEC_WORKFLOW_GUIDE.md +3 -3
- package/template/.kiro/steering/CORE_PRINCIPLES.md +3 -3
- package/template/.kiro/steering/ENVIRONMENT.md +2 -2
- package/template/README.md +3 -3
- /package/bin/{kiro-spec-engine.js → scene-capability-engine.js} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Overview
|
|
4
4
|
|
|
5
|
-
The Autonomous Control feature transforms
|
|
5
|
+
The Autonomous Control feature transforms sce from an interactive assistant into an autonomous development partner. AI can independently manage entire development workflows - from understanding user goals to delivering production-ready features.
|
|
6
6
|
|
|
7
7
|
**Key Capabilities**:
|
|
8
8
|
- **Autonomous Spec Creation**: Generate requirements, design, and tasks without step-by-step confirmation
|
|
@@ -25,43 +25,43 @@ The Autonomous Control feature transforms kse from an interactive assistant into
|
|
|
25
25
|
# 1) auto decompose goal into master/sub specs
|
|
26
26
|
# 2) initialize collaboration metadata and assignments
|
|
27
27
|
# 3) run orchestration to terminal state
|
|
28
|
-
|
|
28
|
+
sce auto close-loop "build autonomous close-loop and master/sub multi-spec execution for sce"
|
|
29
29
|
|
|
30
30
|
# Disable live status stream output when running in quiet terminals
|
|
31
|
-
|
|
31
|
+
sce auto close-loop "build autonomous close-loop and master/sub multi-spec execution for sce" --no-stream
|
|
32
32
|
|
|
33
33
|
# Add final Definition-of-Done (DoD) test gate
|
|
34
|
-
|
|
34
|
+
sce auto close-loop "build autonomous close-loop and master/sub multi-spec execution for sce" \
|
|
35
35
|
--dod-tests "npm run test:smoke"
|
|
36
36
|
|
|
37
37
|
# Strict DoD: require all tasks checklists are closed
|
|
38
|
-
|
|
38
|
+
sce auto close-loop "build autonomous close-loop and master/sub multi-spec execution for sce" \
|
|
39
39
|
--dod-tasks-closed
|
|
40
40
|
|
|
41
41
|
# Persist DoD evidence into a custom report file
|
|
42
|
-
|
|
42
|
+
sce auto close-loop "build autonomous close-loop and master/sub multi-spec execution for sce" \
|
|
43
43
|
--dod-report ".kiro/reports/close-loop-dod.json"
|
|
44
44
|
|
|
45
45
|
# Resume interrupted close-loop from latest session
|
|
46
|
-
|
|
46
|
+
sce auto close-loop --resume latest
|
|
47
47
|
|
|
48
48
|
# Resume interrupted close-loop from a specific session id
|
|
49
|
-
|
|
49
|
+
sce auto close-loop --resume 117-20260214230000
|
|
50
50
|
|
|
51
51
|
# Increase automatic replan budget after orchestration failures
|
|
52
|
-
|
|
52
|
+
sce auto close-loop "build autonomous close-loop and master/sub multi-spec execution for sce" \
|
|
53
53
|
--replan-attempts 2
|
|
54
54
|
|
|
55
55
|
# Use fixed replan budget strategy (adaptive is default)
|
|
56
|
-
|
|
56
|
+
sce auto close-loop "build autonomous close-loop and master/sub multi-spec execution for sce" \
|
|
57
57
|
--replan-attempts 2 \
|
|
58
58
|
--replan-strategy fixed
|
|
59
59
|
|
|
60
60
|
# Batch mode: run multiple goals autonomously (each goal gets its own master/sub portfolio)
|
|
61
|
-
|
|
61
|
+
sce auto close-loop-batch .kiro/goals.json --json
|
|
62
62
|
|
|
63
63
|
# Program mode: decompose one broad goal into multiple batch goals automatically
|
|
64
|
-
|
|
64
|
+
sce auto close-loop-batch \
|
|
65
65
|
--decompose-goal "build autonomous close-loop, master/sub decomposition, orchestration and quality rollout" \
|
|
66
66
|
--program-goals 4 \
|
|
67
67
|
--program-min-quality-score 85 \
|
|
@@ -69,7 +69,7 @@ kse auto close-loop-batch \
|
|
|
69
69
|
--json
|
|
70
70
|
|
|
71
71
|
# Program command: broad goal -> semantic decomposition -> autonomous batch closed-loop
|
|
72
|
-
|
|
72
|
+
sce auto close-loop-program \
|
|
73
73
|
"build autonomous close-loop, master/sub decomposition, orchestration and quality rollout" \
|
|
74
74
|
--program-goals 4 \
|
|
75
75
|
--program-quality-gate \
|
|
@@ -88,7 +88,7 @@ kse auto close-loop-program \
|
|
|
88
88
|
--json
|
|
89
89
|
|
|
90
90
|
# Controller command: drain queue goals with autonomous close-loop-program runtime
|
|
91
|
-
|
|
91
|
+
sce auto close-loop-controller .kiro/auto/program-queue.lines \
|
|
92
92
|
--dequeue-limit 2 \
|
|
93
93
|
--max-cycles 20 \
|
|
94
94
|
--controller-done-file .kiro/auto/program-done.lines \
|
|
@@ -96,18 +96,18 @@ kse auto close-loop-controller .kiro/auto/program-queue.lines \
|
|
|
96
96
|
--json
|
|
97
97
|
|
|
98
98
|
# Persistent controller mode: keep polling queue and execute new goals automatically
|
|
99
|
-
|
|
99
|
+
sce auto close-loop-controller .kiro/auto/program-queue.lines \
|
|
100
100
|
--wait-on-empty \
|
|
101
101
|
--poll-seconds 30 \
|
|
102
102
|
--max-cycles 1000 \
|
|
103
103
|
--max-minutes 240
|
|
104
104
|
|
|
105
105
|
# Resume from latest persisted controller session
|
|
106
|
-
|
|
106
|
+
sce auto close-loop-controller --controller-resume latest --json
|
|
107
107
|
|
|
108
108
|
# Recovery command: consume diagnostics and auto-recover unresolved goals
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
sce auto close-loop-recover latest --json
|
|
110
|
+
sce auto close-loop-recover .kiro/auto/close-loop-batch-summaries/batch-20260215090000.json \
|
|
111
111
|
--use-action 2 \
|
|
112
112
|
--recover-until-complete \
|
|
113
113
|
--recover-max-rounds 3 \
|
|
@@ -118,52 +118,52 @@ kse auto close-loop-recover .kiro/auto/close-loop-batch-summaries/batch-20260215
|
|
|
118
118
|
--dry-run --json
|
|
119
119
|
|
|
120
120
|
# Default autonomous batch run (continue-on-error + adaptive scheduling + retry-until-complete)
|
|
121
|
-
|
|
121
|
+
sce auto close-loop-batch .kiro/goals.json --json
|
|
122
122
|
|
|
123
123
|
# Batch parallel mode: run multiple goals concurrently
|
|
124
|
-
|
|
124
|
+
sce auto close-loop-batch .kiro/goals.json --batch-parallel 3 --json
|
|
125
125
|
|
|
126
126
|
# Batch with global agent budget (automatic per-goal maxParallel throttling)
|
|
127
|
-
|
|
127
|
+
sce auto close-loop-batch .kiro/goals.json \
|
|
128
128
|
--batch-parallel 3 \
|
|
129
129
|
--batch-agent-budget 6 \
|
|
130
130
|
--json
|
|
131
131
|
|
|
132
132
|
# Batch priority scheduling with aging (favor complex goals, prevent starvation)
|
|
133
|
-
|
|
133
|
+
sce auto close-loop-batch .kiro/goals.json \
|
|
134
134
|
--batch-priority critical-first \
|
|
135
135
|
--batch-aging-factor 3 \
|
|
136
136
|
--json
|
|
137
137
|
|
|
138
138
|
# Auto-retry failed/stopped goals in the same batch run
|
|
139
|
-
|
|
139
|
+
sce auto close-loop-batch .kiro/goals.json \
|
|
140
140
|
--batch-retry-rounds 1 \
|
|
141
141
|
--batch-retry-strategy adaptive \
|
|
142
142
|
--json
|
|
143
143
|
|
|
144
144
|
# Keep retrying until all goals complete (bounded)
|
|
145
|
-
|
|
145
|
+
sce auto close-loop-batch .kiro/goals.json \
|
|
146
146
|
--batch-retry-until-complete \
|
|
147
147
|
--batch-retry-max-rounds 10 \
|
|
148
148
|
--json
|
|
149
149
|
|
|
150
150
|
# Disable autonomous closed-loop batch policy (only when you need legacy/manual tuning)
|
|
151
|
-
|
|
151
|
+
sce auto close-loop-batch .kiro/goals.json \
|
|
152
152
|
--no-batch-autonomous \
|
|
153
153
|
--json
|
|
154
154
|
|
|
155
155
|
# Resume a stopped/failed batch from previous summary output
|
|
156
|
-
|
|
156
|
+
sce auto close-loop-batch --resume-from-summary .kiro/reports/close-loop-batch.json --json
|
|
157
157
|
|
|
158
158
|
# Resume from latest persisted batch summary session
|
|
159
|
-
|
|
159
|
+
sce auto close-loop-batch --resume-from-summary latest --json
|
|
160
160
|
|
|
161
161
|
# Resume only failed/error goals from summary
|
|
162
|
-
|
|
162
|
+
sce auto close-loop-batch --resume-from-summary .kiro/reports/close-loop-batch.json \
|
|
163
163
|
--resume-strategy failed-only --json
|
|
164
164
|
|
|
165
165
|
# Batch dry-run for portfolio planning only
|
|
166
|
-
|
|
166
|
+
sce auto close-loop-batch .kiro/goals.txt --format lines --dry-run --json
|
|
167
167
|
```
|
|
168
168
|
|
|
169
169
|
Default DoD gates:
|
|
@@ -188,15 +188,15 @@ Session persistence and resume:
|
|
|
188
188
|
- `--no-session`: disable session snapshot persistence
|
|
189
189
|
- `--session-keep <n>`: automatically prune old snapshots and keep newest `n` after each close-loop run
|
|
190
190
|
- `--session-older-than-days <n>`: when pruning, only delete snapshots older than `n` days
|
|
191
|
-
- `
|
|
192
|
-
- `
|
|
193
|
-
- `
|
|
191
|
+
- `sce auto session list [--limit <n>] [--status <csv>]`: inspect persisted sessions (`--status` supports comma-separated, case-insensitive filters)
|
|
192
|
+
- `sce auto session stats [--days <n>] [--status <csv>] [--json]`: aggregate session status/topology telemetry in an optional recent-day window
|
|
193
|
+
- `sce auto session prune --keep <n> [--older-than-days <n>]`: enforce retention policy
|
|
194
194
|
- List JSON output includes `status_filter` and `status_counts` for filtered session distributions.
|
|
195
195
|
- Stats JSON output includes `criteria`, completion/failure rates, `sub_spec_count_sum`, `master_spec_counts`, and `latest_sessions`.
|
|
196
196
|
|
|
197
197
|
Spec directory maintenance:
|
|
198
|
-
- `
|
|
199
|
-
- `
|
|
198
|
+
- `sce auto spec-session list [--limit <n>] [--json]`: inspect spec directory inventory under `.kiro/specs`
|
|
199
|
+
- `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)
|
|
200
200
|
- Protection sources include collaboration state, close-loop sessions, batch summaries, and controller sessions (via nested batch summary references).
|
|
201
201
|
- JSON output always includes `protection_ranking_top`; enable `--show-protection-reasons` for full `protection_ranking` and per-spec reason payload.
|
|
202
202
|
|
|
@@ -206,9 +206,9 @@ Batch summary session persistence and maintenance:
|
|
|
206
206
|
- `--batch-session-keep <n>`: auto-prune archive and keep newest `n` summaries after each batch run
|
|
207
207
|
- `--batch-session-older-than-days <n>`: when pruning, only delete summaries older than `n` days
|
|
208
208
|
- `--no-batch-session`: disable batch summary archive for the current run
|
|
209
|
-
- `
|
|
210
|
-
- `
|
|
211
|
-
- `
|
|
209
|
+
- `sce auto batch-session list [--limit <n>] [--status <csv>]`: inspect persisted batch summary sessions (`--status` supports comma-separated, case-insensitive filters)
|
|
210
|
+
- `sce auto batch-session stats [--days <n>] [--status <csv>] [--json]`: aggregate batch session status/goal-volume telemetry in an optional recent-day window
|
|
211
|
+
- `sce auto batch-session prune --keep <n> [--older-than-days <n>]`: enforce batch summary retention policy
|
|
212
212
|
- List JSON output includes `status_filter` and `status_counts` for filtered status composition.
|
|
213
213
|
- Stats JSON output includes `criteria`, completion/failure rates, goal-volume sums, processed ratio, and `latest_sessions`.
|
|
214
214
|
|
|
@@ -218,36 +218,36 @@ Controller summary session persistence and maintenance:
|
|
|
218
218
|
- `--controller-session-keep <n>`: auto-prune archive and keep newest `n` summaries after each controller run
|
|
219
219
|
- `--controller-session-older-than-days <n>`: when pruning, only delete summaries older than `n` days
|
|
220
220
|
- `--no-controller-session`: disable controller summary archive for the current run
|
|
221
|
-
- `
|
|
222
|
-
- `
|
|
223
|
-
- `
|
|
221
|
+
- `sce auto controller-session list [--limit <n>] [--status <csv>]`: inspect persisted controller summary sessions (`--status` supports comma-separated, case-insensitive filters)
|
|
222
|
+
- `sce auto controller-session stats [--days <n>] [--status <csv>] [--json]`: aggregate controller session status/throughput telemetry in an optional recent-day window
|
|
223
|
+
- `sce auto controller-session prune --keep <n> [--older-than-days <n>]`: enforce controller summary retention policy
|
|
224
224
|
- List JSON output includes `status_filter` and `status_counts` for filtered status composition.
|
|
225
225
|
- Stats JSON output includes `criteria`, `status_counts`, `queue_format_counts`, completion/failure rates, goal-volume sums, and `latest_sessions`.
|
|
226
226
|
|
|
227
227
|
Cross-archive governance snapshot:
|
|
228
|
-
- `
|
|
228
|
+
- `sce auto governance stats [--days <n>] [--status <csv>] [--json]`: aggregate a unified governance cockpit over session/batch/controller archives plus recovery memory state.
|
|
229
229
|
- JSON output includes `totals`, `throughput`, `top_master_specs`, per-archive `archives.*` stats payloads, and `health` diagnostics (`risk_level`, `concerns`, `recommendations`) for one-command close-loop governance checks.
|
|
230
|
-
- `
|
|
230
|
+
- `sce auto governance maintain [--days <n>] [--status <csv>] [--session-keep <n>] [--batch-session-keep <n>] [--controller-session-keep <n>] [--recovery-memory-older-than-days <n>] [--apply] [--dry-run] [--json]`: close-loop governance maintenance entrypoint.
|
|
231
231
|
- Default is plan-only (`assessment` + `plan`).
|
|
232
232
|
- `--apply` executes maintenance actions for archive hygiene (session/batch/controller pruning + recovery-memory stale-entry pruning).
|
|
233
233
|
- `--dry-run` can be combined with `--apply` to validate maintenance impact before deletion.
|
|
234
|
-
- `
|
|
234
|
+
- `sce auto governance close-loop [--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]`: governance round-loop runner.
|
|
235
235
|
- Orchestrates repeated `governance maintain` rounds until target risk or stop condition is reached.
|
|
236
236
|
- Governance close-loop sessions persist by default at `.kiro/auto/governance-close-loop-sessions`; use `--governance-resume` to continue interrupted governance loops.
|
|
237
237
|
- Resume defaults inherit persisted governance policy (`target_risk`, `execute_advisory`, `advisory_policy`) to avoid accidental configuration drift; explicit drift is blocked unless `--governance-resume-allow-drift` is set.
|
|
238
238
|
- `--governance-session-keep` enables automatic post-run governance session pruning (optional age window via `--governance-session-older-than-days`) while preserving the current run session file.
|
|
239
239
|
- `--execute-advisory` enables automatic advisory action execution when detected (`recover-latest`, `controller-resume-latest`), with autonomous source selection (latest recoverable summary / latest pending controller session) and `skipped` telemetry when no actionable source exists.
|
|
240
240
|
- Emits round history (`risk_before`/`risk_after`, planned/applicable/applied/failed actions), advisory telemetry (`advisory_*` fields), plus initial/final assessments for auditable autonomous governance convergence.
|
|
241
|
-
- `
|
|
242
|
-
- `
|
|
243
|
-
- `
|
|
241
|
+
- `sce auto governance session list [--limit <n>] [--status <csv>] [--resume-only] [--json]`: inspect persisted governance close-loop session archive (optional resumed-chain filter).
|
|
242
|
+
- `sce auto governance session stats [--days <n>] [--status <csv>] [--resume-only] [--json]`: aggregate governance session completion/failure/convergence/risk telemetry with resumed-session ratio/source breakdown.
|
|
243
|
+
- `sce auto governance session prune [--keep <n>] [--older-than-days <n>] [--dry-run] [--json]`: enforce governance session retention policy.
|
|
244
244
|
|
|
245
245
|
Recovery memory maintenance:
|
|
246
246
|
- Default recovery memory file: `.kiro/auto/close-loop-recovery-memory.json`
|
|
247
|
-
- `
|
|
248
|
-
- `
|
|
249
|
-
- `
|
|
250
|
-
- `
|
|
247
|
+
- `sce auto recovery-memory show [--scope <scope>] [--json]`: inspect learned failure signatures and action stats (optionally by scope)
|
|
248
|
+
- `sce auto recovery-memory scopes [--json]`: inspect aggregated recovery-memory metrics grouped by scope
|
|
249
|
+
- `sce auto recovery-memory prune [--older-than-days <n>] [--scope <scope>] [--dry-run] [--json]`: prune stale memory entries (optionally by scope)
|
|
250
|
+
- `sce auto recovery-memory clear [--json]`: clear learned recovery memory
|
|
251
251
|
|
|
252
252
|
Automatic decomposition scale:
|
|
253
253
|
- Default sub-spec count is inferred from goal complexity (typically `3-5`)
|
|
@@ -262,7 +262,7 @@ Automatic failure replanning:
|
|
|
262
262
|
- Repeated failed-spec signatures auto-stop replanning to prevent infinite low-value retry loops
|
|
263
263
|
|
|
264
264
|
Batch multi-goal autonomous execution:
|
|
265
|
-
- Command: `
|
|
265
|
+
- Command: `sce auto close-loop-batch <goals-file>`
|
|
266
266
|
- Goals file formats: JSON array / JSON `{ "goals": [] }` / line-based text
|
|
267
267
|
- `--format <auto|json|lines>`: force parser mode when needed
|
|
268
268
|
- `--decompose-goal <goal>`: generate batch goals from one broad goal using semantic decomposition
|
|
@@ -306,14 +306,14 @@ Batch multi-goal autonomous execution:
|
|
|
306
306
|
- Each goal still keeps independent session snapshots and governance artifacts
|
|
307
307
|
|
|
308
308
|
Close-loop program command:
|
|
309
|
-
- Command: `
|
|
309
|
+
- Command: `sce auto close-loop-program "<goal>"`
|
|
310
310
|
- Built for broad, multi-track goals and defaults to autonomous batch closed-loop policy.
|
|
311
311
|
- Automatically performs semantic decomposition into multiple goals and executes them as one program.
|
|
312
312
|
- `--program-goals <n>` tunes decomposition width (`2-12`, default adaptive).
|
|
313
313
|
- Reuses batch execution controls and summary/session persistence controls.
|
|
314
314
|
- Program command now includes built-in auto recovery loop by default; it does not require a second manual command.
|
|
315
315
|
- `--no-program-auto-recover` disables built-in recovery loop.
|
|
316
|
-
- `--program-recover-use-action <n>` pins remediation action for built-in recovery; if omitted,
|
|
316
|
+
- `--program-recover-use-action <n>` pins remediation action for built-in recovery; if omitted, sce picks from recovery memory or falls back to action `1`.
|
|
317
317
|
- `--program-recover-resume-strategy <pending|failed-only>` controls recovery scope.
|
|
318
318
|
- `--program-recover-max-rounds <n>` sets bounded built-in recovery rounds (`1-20`, default `5`).
|
|
319
319
|
- `--program-recover-max-minutes <n>` sets elapsed-time budget for built-in recovery loop (minutes, default unlimited).
|
|
@@ -339,7 +339,7 @@ Close-loop program command:
|
|
|
339
339
|
- Summary includes `program_coordination` (master/sub topology, unresolved goal indexes, scheduler telemetry) and `auto_recovery` metadata.
|
|
340
340
|
|
|
341
341
|
Close-loop controller command:
|
|
342
|
-
- Command: `
|
|
342
|
+
- Command: `sce auto close-loop-controller [queue-file]`
|
|
343
343
|
- Runs a queue-driven autonomous loop: dequeue broad goals, execute each by `close-loop-program`, persist remaining queue, and continue until stop condition.
|
|
344
344
|
- Queue file defaults to `.kiro/auto/close-loop-controller-goals.lines`; supports `auto|json|lines` parsing via `--queue-format`.
|
|
345
345
|
- `--controller-resume <session-or-file>` resumes queue/controller context from persisted controller session (`latest`, session id, or file path).
|
|
@@ -356,7 +356,7 @@ Close-loop controller command:
|
|
|
356
356
|
- Output summary includes `history`, `results`, final `pending_goals`, `stop_reason`, `exhausted`, dedupe/lock/session, and resume-source telemetry.
|
|
357
357
|
|
|
358
358
|
Close-loop recovery command:
|
|
359
|
-
- Command: `
|
|
359
|
+
- Command: `sce auto close-loop-recover [summary]` (defaults to `latest` if summary is omitted).
|
|
360
360
|
- Loads unresolved goals from a prior summary and applies selected remediation strategy patch automatically.
|
|
361
361
|
- `--use-action <n>` chooses which remediation action to execute.
|
|
362
362
|
- `--recover-until-complete` + `--recover-max-rounds` enables self-healing multi-round recovery until convergence.
|
|
@@ -369,7 +369,7 @@ Close-loop recovery command:
|
|
|
369
369
|
- `--spec-session-max-total <n>` + `--spec-session-budget-hard-fail` add optional spec-count budget governance for autonomous recovery loops.
|
|
370
370
|
- `--program-gate-profile <profile>` + `--program-gate-fallback-*` + `--program-min-success-rate` + `--program-max-risk-level` + `--program-max-*` make recovery use the same convergence/budget gate strategy as program mode.
|
|
371
371
|
- `--no-program-gate-auto-remediate` disables automatic remediation patch/prune hints after recovery gate failure.
|
|
372
|
-
- When `--use-action` is omitted,
|
|
372
|
+
- When `--use-action` is omitted, sce can auto-select action from learned recovery memory.
|
|
373
373
|
- `--program-audit-out <path>` exports full recovery/program audit JSON.
|
|
374
374
|
- Output includes `recovered_from_summary`, `recovery_plan` (including `selection_explain`), `recovery_cycle` (with elapsed/budget metadata), and `recovery_memory` (including scope + selection explanation) for full auditability of applied strategy changes.
|
|
375
375
|
|
|
@@ -383,7 +383,7 @@ Program governance loop (for `close-loop-program`):
|
|
|
383
383
|
- Output includes `program_governance`, `program_kpi_trend`, and `program_kpi_anomalies` for traceable autonomous stabilization history.
|
|
384
384
|
|
|
385
385
|
KPI trend command:
|
|
386
|
-
- `
|
|
386
|
+
- `sce auto kpi trend --weeks <n> --mode <all|batch|program|recover|controller> --period <week|day> --json` aggregates periodic success/completion, failure, sub-spec, and spec-growth telemetry from persisted autonomous session summaries.
|
|
387
387
|
- Add `--csv` to print/export trend buckets as CSV (`--out` writes CSV when `--csv` is enabled).
|
|
388
388
|
- JSON output now includes `mode_breakdown` (batch/program/recover/controller/other distribution), `anomaly_detection`, and `anomalies` for latest-period regression signals (success-rate drop, failed-goal spike, spec-growth spike).
|
|
389
389
|
|
|
@@ -391,7 +391,7 @@ KPI trend command:
|
|
|
391
391
|
|
|
392
392
|
```bash
|
|
393
393
|
# Create a new Spec and execute it autonomously
|
|
394
|
-
|
|
394
|
+
sce auto create "user authentication with JWT tokens"
|
|
395
395
|
```
|
|
396
396
|
|
|
397
397
|
This single command will:
|
|
@@ -407,28 +407,28 @@ This single command will:
|
|
|
407
407
|
|
|
408
408
|
```bash
|
|
409
409
|
# Run an existing Spec autonomously
|
|
410
|
-
|
|
410
|
+
sce auto run 33-00-ai-autonomous-control
|
|
411
411
|
```
|
|
412
412
|
|
|
413
413
|
### Check Status
|
|
414
414
|
|
|
415
415
|
```bash
|
|
416
416
|
# View current execution status
|
|
417
|
-
|
|
417
|
+
sce auto status
|
|
418
418
|
```
|
|
419
419
|
|
|
420
420
|
### Resume After Pause
|
|
421
421
|
|
|
422
422
|
```bash
|
|
423
423
|
# Resume from last checkpoint
|
|
424
|
-
|
|
424
|
+
sce auto resume
|
|
425
425
|
```
|
|
426
426
|
|
|
427
427
|
### Stop Execution
|
|
428
428
|
|
|
429
429
|
```bash
|
|
430
430
|
# Gracefully stop and save state
|
|
431
|
-
|
|
431
|
+
sce auto stop
|
|
432
432
|
```
|
|
433
433
|
|
|
434
434
|
## Execution Modes
|
|
@@ -551,16 +551,16 @@ Per-spec configuration overrides global settings.
|
|
|
551
551
|
|
|
552
552
|
```bash
|
|
553
553
|
# View current configuration
|
|
554
|
-
|
|
554
|
+
sce auto config
|
|
555
555
|
|
|
556
556
|
# Set mode
|
|
557
|
-
|
|
557
|
+
sce auto config --mode aggressive
|
|
558
558
|
|
|
559
559
|
# Enable/disable checkpoints
|
|
560
|
-
|
|
560
|
+
sce auto config --checkpoint phaseCompletion=false
|
|
561
561
|
|
|
562
562
|
# Set error recovery attempts
|
|
563
|
-
|
|
563
|
+
sce auto config --error-recovery maxAttempts=5
|
|
564
564
|
```
|
|
565
565
|
|
|
566
566
|
## Error Recovery
|
|
@@ -606,13 +606,13 @@ The error recovery system learns from experience:
|
|
|
606
606
|
|
|
607
607
|
```bash
|
|
608
608
|
# List available checkpoints
|
|
609
|
-
|
|
609
|
+
sce auto checkpoints
|
|
610
610
|
|
|
611
611
|
# Rollback to specific checkpoint
|
|
612
|
-
|
|
612
|
+
sce auto rollback <checkpoint-id>
|
|
613
613
|
|
|
614
614
|
# Rollback to last checkpoint
|
|
615
|
-
|
|
615
|
+
sce auto rollback --last
|
|
616
616
|
```
|
|
617
617
|
|
|
618
618
|
**What Gets Rolled Back**:
|
|
@@ -634,10 +634,10 @@ kse auto rollback --last
|
|
|
634
634
|
|
|
635
635
|
```bash
|
|
636
636
|
# Allow specific operation
|
|
637
|
-
|
|
637
|
+
sce auto config --safety allowedOperations=api-call,network-request
|
|
638
638
|
|
|
639
639
|
# Block specific operation
|
|
640
|
-
|
|
640
|
+
sce auto config --safety blockedOperations=delete-file,drop-database
|
|
641
641
|
```
|
|
642
642
|
|
|
643
643
|
## Progress Tracking
|
|
@@ -645,7 +645,7 @@ kse auto config --safety blockedOperations=delete-file,drop-database
|
|
|
645
645
|
### Real-Time Status
|
|
646
646
|
|
|
647
647
|
```bash
|
|
648
|
-
|
|
648
|
+
sce auto status
|
|
649
649
|
```
|
|
650
650
|
|
|
651
651
|
**Output**:
|
|
@@ -679,8 +679,8 @@ Recent Actions:
|
|
|
679
679
|
|
|
680
680
|
```bash
|
|
681
681
|
# Generate detailed report
|
|
682
|
-
|
|
683
|
-
|
|
682
|
+
sce auto report --format markdown --output report.md
|
|
683
|
+
sce auto report --format json --output report.json
|
|
684
684
|
```
|
|
685
685
|
|
|
686
686
|
## Best Practices
|
|
@@ -713,7 +713,7 @@ kse auto report --format json --output report.json
|
|
|
713
713
|
**Graceful Stop**:
|
|
714
714
|
```bash
|
|
715
715
|
# Stop and save state
|
|
716
|
-
|
|
716
|
+
sce auto stop
|
|
717
717
|
```
|
|
718
718
|
|
|
719
719
|
**Emergency Stop** (Ctrl+C):
|
|
@@ -724,7 +724,7 @@ kse auto stop
|
|
|
724
724
|
**Resume**:
|
|
725
725
|
```bash
|
|
726
726
|
# Resume from where you left off
|
|
727
|
-
|
|
727
|
+
sce auto resume
|
|
728
728
|
```
|
|
729
729
|
|
|
730
730
|
## Troubleshooting
|
|
@@ -734,10 +734,10 @@ kse auto resume
|
|
|
734
734
|
**Symptom**: Progress not advancing
|
|
735
735
|
|
|
736
736
|
**Solutions**:
|
|
737
|
-
1. Check status: `
|
|
737
|
+
1. Check status: `sce auto status`
|
|
738
738
|
2. Review recent actions for errors
|
|
739
739
|
3. Check if waiting for user input
|
|
740
|
-
4. Stop and resume: `
|
|
740
|
+
4. Stop and resume: `sce auto stop && sce auto resume`
|
|
741
741
|
|
|
742
742
|
### Repeated Errors
|
|
743
743
|
|
|
@@ -755,7 +755,7 @@ kse auto resume
|
|
|
755
755
|
|
|
756
756
|
**Solutions**:
|
|
757
757
|
1. Check mode configuration
|
|
758
|
-
2. Verify checkpoint settings: `
|
|
758
|
+
2. Verify checkpoint settings: `sce auto config`
|
|
759
759
|
3. Ensure phase actually completed
|
|
760
760
|
|
|
761
761
|
### Rollback Failed
|
|
@@ -763,7 +763,7 @@ kse auto resume
|
|
|
763
763
|
**Symptom**: Cannot rollback to checkpoint
|
|
764
764
|
|
|
765
765
|
**Solutions**:
|
|
766
|
-
1. Check if checkpoint exists: `
|
|
766
|
+
1. Check if checkpoint exists: `sce auto checkpoints`
|
|
767
767
|
2. Verify no external file modifications
|
|
768
768
|
3. Try earlier checkpoint
|
|
769
769
|
4. Manual recovery if needed
|
|
@@ -802,10 +802,10 @@ jobs:
|
|
|
802
802
|
runs-on: ubuntu-latest
|
|
803
803
|
steps:
|
|
804
804
|
- uses: actions/checkout@v2
|
|
805
|
-
- name: Install
|
|
806
|
-
run: npm install -g
|
|
805
|
+
- name: Install sce
|
|
806
|
+
run: npm install -g scene-capability-engine
|
|
807
807
|
- name: Create feature autonomously
|
|
808
|
-
run:
|
|
808
|
+
run: sce auto create "${{ github.event.issue.title }}"
|
|
809
809
|
- name: Create pull request
|
|
810
810
|
uses: peter-evans/create-pull-request@v4
|
|
811
811
|
```
|
|
@@ -814,10 +814,10 @@ jobs:
|
|
|
814
814
|
|
|
815
815
|
```bash
|
|
816
816
|
# Enable notifications
|
|
817
|
-
|
|
817
|
+
sce auto config --notifications enabled=true onError=true onCompletion=true
|
|
818
818
|
|
|
819
819
|
# Export logs for monitoring
|
|
820
|
-
|
|
820
|
+
sce auto report --format json | jq '.errors'
|
|
821
821
|
```
|
|
822
822
|
|
|
823
823
|
## FAQ
|
|
@@ -826,10 +826,10 @@ kse auto report --format json | jq '.errors'
|
|
|
826
826
|
A: Depends on feature complexity. Simple features: 5-15 minutes. Complex features: 30-60 minutes. The system provides real-time estimates.
|
|
827
827
|
|
|
828
828
|
**Q: Can I interrupt autonomous execution?**
|
|
829
|
-
A: Yes, use `
|
|
829
|
+
A: Yes, use `sce auto stop` or Ctrl+C. State is saved and you can resume later.
|
|
830
830
|
|
|
831
831
|
**Q: What happens if my computer crashes during execution?**
|
|
832
|
-
A: State is saved periodically. Resume from last checkpoint with `
|
|
832
|
+
A: State is saved periodically. Resume from last checkpoint with `sce auto resume`.
|
|
833
833
|
|
|
834
834
|
**Q: How accurate is error recovery?**
|
|
835
835
|
A: Improves over time. Initial success rate ~60-70%, improves to ~85-90% with learning.
|
|
@@ -838,10 +838,10 @@ A: Improves over time. Initial success rate ~60-70%, improves to ~85-90% with le
|
|
|
838
838
|
A: Yes, use conservative mode with checkpoint reviews enabled.
|
|
839
839
|
|
|
840
840
|
**Q: Does autonomous mode work with existing Specs?**
|
|
841
|
-
A: Yes, use `
|
|
841
|
+
A: Yes, use `sce auto run <spec-name>` to execute existing Specs autonomously.
|
|
842
842
|
|
|
843
843
|
**Q: How do I disable autonomous mode?**
|
|
844
|
-
A: Simply don't use `
|
|
844
|
+
A: Simply don't use `sce auto` commands. Use regular `sce` commands for interactive mode.
|
|
845
845
|
|
|
846
846
|
## See Also
|
|
847
847
|
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|
The CLI provides three command aliases:
|
|
13
13
|
- `sce` - **Recommended primary command** (use this in all documentation)
|
|
14
|
-
- `
|
|
15
|
-
- `
|
|
14
|
+
- `sce` - Legacy short alias (compatible)
|
|
15
|
+
- `scene-capability-engine` - Legacy full alias (compatible)
|
|
16
16
|
|
|
17
17
|
**Always use `sce` in new examples and documentation.**
|
|
18
18
|
|
|
@@ -24,7 +24,7 @@ The CLI provides three command aliases:
|
|
|
24
24
|
npm install -g scene-capability-engine
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
This creates the `sce` command globally. Legacy aliases `
|
|
27
|
+
This creates the `sce` command globally. Legacy aliases `sce` and `scene-capability-engine` are still available.
|
|
28
28
|
|
|
29
29
|
---
|
|
30
30
|
|
|
@@ -615,7 +615,7 @@ Close-loop program (`sce auto close-loop-program "<goal>"`) options:
|
|
|
615
615
|
- Includes `--spec-session-protect-window-days` to tune recent-reference protection window.
|
|
616
616
|
- Includes `--spec-session-max-total` and optional `--spec-session-budget-hard-fail` for spec-count budget governance.
|
|
617
617
|
- `--no-program-auto-recover`: disable built-in recovery loop after non-completed program runs
|
|
618
|
-
- `--program-recover-use-action <n>`: pin remediation action for auto recovery (otherwise
|
|
618
|
+
- `--program-recover-use-action <n>`: pin remediation action for auto recovery (otherwise sce uses learned memory or default action `1`)
|
|
619
619
|
- `--program-recover-resume-strategy <pending|failed-only>`: resume scope for built-in program recovery (default `pending`)
|
|
620
620
|
- `--program-recover-max-rounds <n>`: bounded recovery rounds for built-in program recovery (`1-20`, default `5`)
|
|
621
621
|
- `--program-recover-max-minutes <n>`: elapsed-time budget for built-in program recovery loop (minutes, default unlimited)
|
|
@@ -691,7 +691,7 @@ Close-loop recovery (`sce auto close-loop-recover [summary]`) options:
|
|
|
691
691
|
- Supports program gate controls (`--program-gate-profile`, `--program-gate-fallback-*`, `--program-min-success-rate`, `--program-max-risk-level`, `--program-max-elapsed-minutes`, `--program-max-agent-budget`, `--program-max-total-sub-specs`)
|
|
692
692
|
- Includes `--no-program-gate-auto-remediate` to disable automatic remediation hints/prune attempts.
|
|
693
693
|
- Supports quality/session controls (`--dod*`, `--replan*`, `--batch-session*`, `--program-kpi-out`, `--program-audit-out`, `--out`, `--dry-run`, `--json`)
|
|
694
|
-
- If `--use-action` is omitted,
|
|
694
|
+
- If `--use-action` is omitted, sce automatically selects remediation action from learned recovery memory when available.
|
|
695
695
|
- Output includes `recovered_from_summary`, `recovery_plan` (`applied_patch`, available remediation actions, `selection_source`, `selection_explain`), `recovery_cycle` (round history, convergence/exhausted state, elapsed/budget metadata), and `recovery_memory` (signature, scope, action stats, selection explanation).
|
|
696
696
|
|
|
697
697
|
Close-loop session maintenance:
|
|
@@ -732,9 +732,9 @@ Cross-archive autonomous governance maintenance:
|
|
|
732
732
|
- `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).
|
|
733
733
|
- `--plan-only` runs a single non-mutating planning round.
|
|
734
734
|
- Governance close-loop sessions are persisted by default at `.kiro/auto/governance-close-loop-sessions/*.json`; use `--governance-resume` to continue interrupted governance loops.
|
|
735
|
-
- On resume,
|
|
735
|
+
- 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.
|
|
736
736
|
- `--governance-session-keep` (with optional `--governance-session-older-than-days`) enables post-run governance session retention pruning while protecting the current session snapshot.
|
|
737
|
-
- `--execute-advisory` enables automatic advisory action execution (`recover-latest`, `controller-resume-latest`) when governance assessment detects failed sessions or controller pending goals;
|
|
737
|
+
- `--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.
|
|
738
738
|
- JSON output includes round-by-round risk/action telemetry (`rounds`, with `risk_before/risk_after` and `release_gate_before/release_gate_after`), advisory telemetry (`execute_advisory`, `advisory_policy`, `advisory_summary`, `rounds[*].advisory_actions`), `stop_detail` + `recommendations` for explicit blocking reasons, plus `initial_assessment`, `final_assessment`, and convergence metadata.
|
|
739
739
|
- `sce auto governance session list [--limit <n>] [--status <csv>] [--resume-only] [--json]`: list persisted governance close-loop sessions (`--resume-only` filters to resumed-chain sessions only).
|
|
740
740
|
- `sce auto governance session stats [--days <n>] [--status <csv>] [--resume-only] [--json]`: aggregate governance close-loop session telemetry (completion/failure/convergence, rounds, risk/stop composition, resumed-chain ratios/source counts, and aggregated `release_gate` round telemetry trends).
|
|
@@ -766,13 +766,13 @@ Autonomous archive schema compatibility:
|
|
|
766
766
|
- Default mode is dry-run; use `--apply` to persist changes.
|
|
767
767
|
|
|
768
768
|
Dual-track handoff integration:
|
|
769
|
-
- `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
|
|
769
|
+
- `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.
|
|
770
770
|
- `sce auto handoff queue --manifest <path> [--out <path>] [--append] [--no-include-known-gaps] [--dry-run] [--json]`: generate close-loop batch goal queue from handoff manifest and optionally persist line-based queue file (default `.kiro/auto/handoff-goals.lines`).
|
|
771
771
|
- `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`.
|
|
772
772
|
- `sce auto handoff capability-matrix --manifest <path> [--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.
|
|
773
773
|
- `sce auto handoff run --manifest <path> [--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>] [--no-require-ontology-validation] [--no-require-moqui-baseline] [--min-capability-coverage <n>] [--no-require-capability-coverage] [--require-release-gate-preflight] [--release-evidence-window <n>] [--json]`: execute handoff end-to-end (`plan -> queue -> close-loop-batch -> observability`) with automatic report archive to `.kiro/reports/handoff-runs/<session>.json`.
|
|
774
774
|
- Default mode is dependency-aware: spec integration goals are grouped into dependency batches and executed in topological order.
|
|
775
|
-
- `--continue-from` resumes pending goals from an existing handoff run report (`latest`, session id, or JSON file path). For safety,
|
|
775
|
+
- `--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.
|
|
776
776
|
- `--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).
|
|
777
777
|
- Non-dry runs auto-merge release evidence into `.kiro/reports/release-evidence/handoff-runs.json` with session-level gate/ontology/regression/moqui-baseline/capability-coverage snapshots. Merge failures are recorded as warnings without aborting the run.
|
|
778
778
|
- `--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`).
|
|
@@ -780,7 +780,7 @@ Dual-track handoff integration:
|
|
|
780
780
|
- Run output includes `moqui_capability_coverage` snapshot by default (when manifest `capabilities` is declared), with artifacts at `.kiro/reports/release-evidence/moqui-capability-coverage.json` and `.kiro/reports/release-evidence/moqui-capability-coverage.md`.
|
|
781
781
|
- Run output includes `release_gate_preflight` (latest release gate history signal snapshot + blocked reasons) and carries this context into `warnings`.
|
|
782
782
|
- `release_gate_preflight` is advisory by default; use `--require-release-gate-preflight` to hard-fail when preflight is unavailable/blocked.
|
|
783
|
-
- When Moqui baseline/capability gates fail,
|
|
783
|
+
- When Moqui baseline/capability gates fail, sce auto-generates remediation queue lines at `.kiro/auto/moqui-remediation.lines`.
|
|
784
784
|
- 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).
|
|
785
785
|
- Gate defaults: `--min-spec-success-rate` defaults to `100`, `--max-risk-level` defaults to `high`, ontology validation requirement is enabled by default, Moqui baseline requirement is enabled by default, and capability coverage minimum defaults to `100` when manifest `capabilities` is declared.
|
|
786
786
|
- Use `--no-require-ontology-validation`, `--no-require-moqui-baseline`, or `--no-require-capability-coverage` only for emergency bypass.
|
|
@@ -1145,7 +1145,7 @@ sce env rollback
|
|
|
1145
1145
|
|
|
1146
1146
|
## Tips
|
|
1147
1147
|
|
|
1148
|
-
1. **Use `sce` not compatibility aliases** (`sco` / `
|
|
1148
|
+
1. **Use `sce` not compatibility aliases** (`sco` / `sce` / `scene-capability-engine`) - Shorter and easier to type
|
|
1149
1149
|
2. **Add `--help` to any command** - Get detailed usage information
|
|
1150
1150
|
3. **Use tab completion** - Most shells support command completion
|
|
1151
1151
|
4. **Check `sce doctor`** - Diagnose issues quickly
|