scene-capability-engine 3.3.26 → 3.4.5
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 +62 -0
- package/README.md +81 -719
- package/README.zh.md +85 -586
- package/bin/scene-capability-engine.js +103 -0
- package/docs/README.md +47 -249
- package/docs/command-reference.md +49 -4
- package/docs/spec-workflow.md +35 -4
- package/docs/zh/README.md +44 -331
- package/lib/adoption/adoption-strategy.js +4 -0
- package/lib/adoption/detection-engine.js +4 -0
- package/lib/adoption/file-classifier.js +5 -1
- package/lib/adoption/smart-orchestrator.js +4 -0
- package/lib/commands/adopt.js +32 -0
- package/lib/commands/errorbook.js +409 -2
- package/lib/commands/spec-domain.js +78 -2
- package/lib/commands/studio.js +251 -3
- package/lib/commands/upgrade.js +16 -0
- package/lib/problem/problem-evaluator.js +620 -0
- package/lib/spec/domain-modeling.js +217 -1
- package/lib/workspace/takeover-baseline.js +446 -0
- package/package.json +1 -1
- package/template/.sce/config/problem-eval-policy.json +36 -0
- package/template/.sce/config/session-governance.json +8 -0
- package/template/.sce/config/spec-domain-policy.json +6 -0
- package/template/.sce/config/takeover-baseline.json +33 -0
package/README.md
CHANGED
|
@@ -3,787 +3,149 @@
|
|
|
3
3
|
[](https://badge.fury.io/js/scene-capability-engine)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
**SCE (Scene Capability Engine) is an ontology-aware scene orchestration engine for AI agents** across plan, generate, patch, verify, and release workflows.
|
|
10
|
-
|
|
11
|
-
**🚀 NEW: Autonomous Control** - Let AI independently manage entire development workflows from requirements to delivery.
|
|
6
|
+
**SCE is a scene capability orchestration engine for AI-native software delivery.**
|
|
7
|
+
It provides a deterministic path from `goal -> scene -> spec -> patch -> verify -> release`.
|
|
12
8
|
|
|
13
9
|
English | [简体中文](README.zh.md)
|
|
14
10
|
|
|
15
11
|
---
|
|
16
12
|
|
|
17
|
-
##
|
|
18
|
-
|
|
19
|
-
**SCE (Scene Capability Engine) is an ontology-aware scene orchestration engine for AI-assisted development.** It organizes project information into structured "Specs" (Requirements → Design → Tasks) and routes execution through plan → generate → patch → verify → release workflows.
|
|
20
|
-
|
|
21
|
-
Think of sce as a **librarian for your AI assistant** - it organizes and presents project context so your AI tool knows exactly what you're building, why, and how.
|
|
22
|
-
|
|
23
|
-
### How it Works
|
|
24
|
-
|
|
25
|
-
```mermaid
|
|
26
|
-
graph LR
|
|
27
|
-
A[You create Specs] --> B[sce organizes context]
|
|
28
|
-
B --> C[AI tool reads context]
|
|
29
|
-
C --> D[AI generates better code]
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
1. **You create Specs** - Write requirements, design, and tasks in structured markdown files
|
|
33
|
-
2. **sce organizes context** - Exports formatted context optimized for AI tools
|
|
34
|
-
3. **AI tool reads context** - Your AI assistant understands your project structure
|
|
35
|
-
4. **AI generates better code** - Code that matches your design and requirements
|
|
36
|
-
|
|
37
|
-
### What sce is NOT
|
|
38
|
-
|
|
39
|
-
- ❌ **Not a code generator** - sce doesn't write code; your AI tool does
|
|
40
|
-
- ❌ **Not an IDE** - sce works alongside your existing development tools
|
|
41
|
-
- ❌ **Not AI-specific** - Works with Claude, Cursor, Windsurf, Copilot, and any AI tool
|
|
42
|
-
- ❌ **Not a replacement for documentation** - It's a structured way to organize project context
|
|
43
|
-
|
|
44
|
-
### Who Should Use sce?
|
|
45
|
-
|
|
46
|
-
- ✅ Developers using AI coding assistants (Claude, Cursor, Copilot, etc.)
|
|
47
|
-
- ✅ Teams wanting structured project documentation
|
|
48
|
-
- ✅ Anyone building features that need clear requirements and design
|
|
49
|
-
- ✅ Projects that benefit from spec-driven development
|
|
50
|
-
|
|
51
|
-
## Why sce Wins in AI Delivery
|
|
52
|
-
|
|
53
|
-
| Advantage | sce Capability | Practical Impact |
|
|
54
|
-
| --- | --- | --- |
|
|
55
|
-
| Structure-first execution | Requirements → Design → Tasks + gate checks | Lower rework and fewer requirement drifts |
|
|
56
|
-
| Autonomous close-loop delivery | One-command close loop (`auto close-loop`) | No step-by-step confirmation waits |
|
|
57
|
-
| Multi-agent scale-out | DAG orchestration (`orchestrate run/status/stop`) | Parallel delivery without manual terminal juggling |
|
|
58
|
-
| Auto portfolio decomposition | Master/Sub spec split + dependency wiring | Complex goals become executable parallel plans automatically |
|
|
59
|
-
| Program self-healing closure | `auto close-loop-program` auto recovery + learned remediation memory | Failed/partial runs continue autonomously until bounded convergence |
|
|
60
|
-
| Queue-driven autonomous runtime | `auto close-loop-controller` persistent queue drain | Program-scale backlogs continue without manual re-triggering |
|
|
61
|
-
| Autonomous convergence governance | Program gate (`min-success-rate` + `max-risk-level`) + audit JSON output | Program completion is policy-verified and traceable |
|
|
62
|
-
| Measurable outcomes | KPI automation (`value metrics snapshot/baseline/trend`) | Delivery quality can be tracked week-over-week |
|
|
63
|
-
| Tool-agnostic adoption | Works across Claude/Cursor/Windsurf/Copilot | No lock-in to a single AI IDE |
|
|
64
|
-
| Built-in governance | Docs governance, lock management, audit, env/workspace controls | Team collaboration stays auditable and stable |
|
|
65
|
-
|
|
66
|
-
### 90-Second Value Proof
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
# 1) Adopt sce in current repo
|
|
70
|
-
sce adopt
|
|
71
|
-
|
|
72
|
-
# 2) Open primary scene session
|
|
73
|
-
sce studio plan --scene scene.demo --from-chat session-demo --goal "demo workflow bootstrap" --json
|
|
74
|
-
|
|
75
|
-
# 3) Generate Spec workflow draft
|
|
76
|
-
sce spec bootstrap --name 01-00-demo-feature --scene scene.demo --non-interactive
|
|
13
|
+
## Why SCE
|
|
77
14
|
|
|
78
|
-
|
|
79
|
-
sce value metrics sample --out ./kpi-input.json --json
|
|
15
|
+
SCE is designed for teams that want AI agents to deliver software end-to-end without losing control.
|
|
80
16
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
17
|
+
- Keep delivery aligned to requirements through Spec-first workflows.
|
|
18
|
+
- Scale from single-task execution to multi-agent program orchestration.
|
|
19
|
+
- Prevent silent drift with mandatory gates, ontology checks, and release evidence.
|
|
20
|
+
- Preserve local work history with timeline snapshots, not just Git pushes.
|
|
84
21
|
|
|
85
22
|
---
|
|
86
23
|
|
|
87
|
-
##
|
|
88
|
-
|
|
89
|
-
### The Simplest Way (30 seconds) ⚡
|
|
90
|
-
|
|
91
|
-
**Just tell your AI:**
|
|
92
|
-
|
|
93
|
-
```
|
|
94
|
-
Install sce and use it to manage this project with Spec-driven development.
|
|
95
|
-
```
|
|
24
|
+
## Core Capabilities
|
|
96
25
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
26
|
+
| Capability | What SCE Provides | Outcome |
|
|
27
|
+
| --- | --- | --- |
|
|
28
|
+
| Scene + Spec model | Scene-governed sessions and Spec lifecycle (`requirements/design/tasks`) | Stable context across long AI runs |
|
|
29
|
+
| Studio workflow | `studio plan -> generate -> apply -> verify -> release` | Structured chat-to-release execution |
|
|
30
|
+
| Autonomous delivery | `auto close-loop`, `close-loop-program`, `close-loop-controller` | Unattended bounded convergence |
|
|
31
|
+
| Multi-agent orchestration | DAG scheduling, retries, 429 adaptive parallel control | Reliable parallel execution at scale |
|
|
32
|
+
| Domain/ontology governance | problem-domain chain + scene template + gate validation | Fewer semantic regressions |
|
|
33
|
+
| Problem evaluation routing | Stage-level risk/evidence/readiness scoring with mandatory policy | Adaptive execution strategy with guarded apply/release |
|
|
34
|
+
| Local timeline safety | `timeline save/auto/list/show/restore/push` + key-event auto checkpoints | Recoverable local history |
|
|
35
|
+
| Errorbook-driven repair | Local + registry-backed error patterns and release gates | Faster diagnosis and safer fixes |
|
|
36
|
+
| Release governance | Git-managed gate, errorbook gate, handoff preflight, tag pipeline | Auditable, reproducible releases |
|
|
104
37
|
|
|
105
38
|
---
|
|
106
39
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
<details>
|
|
110
|
-
<summary><b>Click to expand detailed steps</b></summary>
|
|
111
|
-
|
|
112
|
-
#### Step 1: Install sce (30 seconds)
|
|
40
|
+
## 3-Minute Quick Start
|
|
113
41
|
|
|
114
42
|
```bash
|
|
43
|
+
# 1) Install
|
|
115
44
|
npm install -g scene-capability-engine
|
|
116
|
-
```
|
|
117
45
|
|
|
118
|
-
|
|
119
|
-
```bash
|
|
120
|
-
sce --version
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
#### Step 2: Adopt sce in Your Project (30 seconds)
|
|
124
|
-
|
|
125
|
-
Navigate to your project directory and run:
|
|
126
|
-
|
|
127
|
-
```bash
|
|
128
|
-
cd your-project
|
|
46
|
+
# 2) Adopt in your project
|
|
129
47
|
sce adopt
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
This creates a `.sce/` directory with:
|
|
133
|
-
- `README.md` - Project development guide for AI
|
|
134
|
-
- `specs/` - Where your Specs live
|
|
135
|
-
- `steering/` - Development rules (optional)
|
|
136
|
-
|
|
137
|
-
#### Step 3: Tell Your AI About the Methodology (30 seconds)
|
|
138
48
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
```
|
|
142
|
-
Please read .sce/README.md to understand how this project works.
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
**Your AI will learn:**
|
|
146
|
-
- This project follows Spec-driven development
|
|
147
|
-
- Every feature starts with a Spec (requirements + design + tasks)
|
|
148
|
-
- How to work with this methodology
|
|
149
|
-
- When to use sce commands
|
|
150
|
-
|
|
151
|
-
#### Step 4: Start Building Features
|
|
152
|
-
|
|
153
|
-
**Just ask your AI to implement features naturally:**
|
|
49
|
+
# 3) Open a primary scene session
|
|
50
|
+
sce studio plan --scene scene.demo --from-chat session-demo --goal "bootstrap first feature" --json
|
|
154
51
|
|
|
52
|
+
# 4) Bootstrap and run one Spec
|
|
53
|
+
sce spec bootstrap --name 01-00-first-feature --scene scene.demo --non-interactive
|
|
54
|
+
sce spec pipeline run --spec 01-00-first-feature --scene scene.demo
|
|
155
55
|
```
|
|
156
|
-
I need a user login feature with email and password.
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
**Your AI will automatically:**
|
|
160
|
-
1. Create a Spec with requirements, design, and tasks
|
|
161
|
-
2. Implement according to the Spec
|
|
162
|
-
3. Update task status as work progresses
|
|
163
|
-
4. Use sce commands internally (you don't need to run them)
|
|
164
|
-
|
|
165
|
-
**Example conversation:**
|
|
166
|
-
- **You**: "I need user login with email and password"
|
|
167
|
-
- **AI**: "I'll create a Spec for this. Let me define the requirements..."
|
|
168
|
-
- **AI**: "Here's the design... Now I'll implement task 1.1..."
|
|
169
|
-
- **AI**: "Task 1.1 complete. Moving to task 1.2..."
|
|
170
|
-
|
|
171
|
-
</details>
|
|
172
|
-
|
|
173
|
-
---
|
|
174
|
-
|
|
175
|
-
**Key insight:** You don't "use sce" - your project "follows Spec-driven methodology" and sce helps enforce it. The AI handles all the sce commands for you.
|
|
176
|
-
|
|
177
|
-
### Step 5: Next Steps (30 seconds)
|
|
178
|
-
|
|
179
|
-
- 📖 Read the [Quick Start Guide](docs/quick-start.md) for detailed examples
|
|
180
|
-
- 🔧 Check your tool's integration guide: [Cursor](docs/tools/cursor-guide.md) | [Claude](docs/tools/claude-guide.md) | [Windsurf](docs/tools/windsurf-guide.md)
|
|
181
|
-
- 💡 Learn about [Integration Modes](docs/integration-modes.md)
|
|
182
|
-
|
|
183
|
-
---
|
|
184
|
-
|
|
185
|
-
## Core Concepts
|
|
186
|
-
|
|
187
|
-
### Specs
|
|
188
|
-
|
|
189
|
-
A **Spec** is a structured description of a feature or project component. Each Spec contains:
|
|
190
|
-
|
|
191
|
-
- **Requirements** (`requirements.md`) - What you're building and why
|
|
192
|
-
- **Design** (`design.md`) - How you'll build it (architecture, APIs, components)
|
|
193
|
-
- **Tasks** (`tasks.md`) - Step-by-step implementation checklist
|
|
194
|
-
|
|
195
|
-
### Context Export
|
|
196
56
|
|
|
197
|
-
|
|
198
|
-
- All requirements, design decisions, and tasks
|
|
199
|
-
- Project structure and conventions
|
|
200
|
-
- Steering rules (optional) for AI behavior
|
|
57
|
+
For autonomous execution:
|
|
201
58
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
sce supports three ways to work with AI tools:
|
|
205
|
-
|
|
206
|
-
1. **Direct Workspace Integration** - AI tool directly accesses sce in your workspace
|
|
207
|
-
2. **Manual Export** - You export and paste context (Claude, ChatGPT, Cursor)
|
|
208
|
-
3. **Watch Mode** - Automatic context updates on file changes (all tools)
|
|
209
|
-
|
|
210
|
-
Learn more: [Integration Modes Guide](docs/integration-modes.md)
|
|
211
|
-
|
|
212
|
-
---
|
|
213
|
-
|
|
214
|
-
## Integration with Your AI Tool
|
|
215
|
-
|
|
216
|
-
sce works with any AI coding assistant. Choose your tool for specific guidance:
|
|
217
|
-
|
|
218
|
-
### Popular AI Tools
|
|
219
|
-
|
|
220
|
-
- **[Cursor](docs/tools/cursor-guide.md)** - IDE with AI pair programming
|
|
221
|
-
- **[Claude Code](docs/tools/claude-guide.md)** - Anthropic's coding assistant
|
|
222
|
-
- **[Windsurf](docs/tools/windsurf-guide.md)** - AI agent with command execution
|
|
223
|
-
- **[VS Code + Copilot](docs/tools/vscode-guide.md)** - GitHub Copilot integration
|
|
224
|
-
- **[Generic AI Tools](docs/tools/generic-guide.md)** - Works with any AI assistant
|
|
225
|
-
|
|
226
|
-
### Integration Workflow
|
|
227
|
-
|
|
228
|
-
```mermaid
|
|
229
|
-
sequenceDiagram
|
|
230
|
-
participant You
|
|
231
|
-
participant AI Tool
|
|
232
|
-
participant sce
|
|
233
|
-
You->>AI Tool: "I have a Spec for user-login, implement task 1.1"
|
|
234
|
-
AI Tool->>sce: sce context export user-login
|
|
235
|
-
sce->>AI Tool: Spec content (requirements, design, tasks)
|
|
236
|
-
AI Tool->>AI Tool: Generate code following Spec
|
|
237
|
-
AI Tool->>You: Here's the implementation
|
|
238
|
-
AI Tool->>sce: Update tasks.md (mark task complete)
|
|
59
|
+
```bash
|
|
60
|
+
sce auto close-loop "deliver customer + order + inventory baseline"
|
|
239
61
|
```
|
|
240
62
|
|
|
241
|
-
**Key insight:** You stay in your AI tool. The AI reads the Spec and generates code that matches your design.
|
|
242
|
-
|
|
243
63
|
---
|
|
244
64
|
|
|
245
|
-
##
|
|
246
|
-
|
|
247
|
-
### Getting Started
|
|
248
|
-
- 📖 **[Quick Start Guide](docs/quick-start.md)** - Detailed 5-minute tutorial
|
|
249
|
-
- 🤔 **[FAQ](docs/faq.md)** - Frequently asked questions
|
|
250
|
-
- 🔧 **[Troubleshooting](docs/troubleshooting.md)** - Common issues and solutions
|
|
251
|
-
|
|
252
|
-
### Core Guides
|
|
253
|
-
- 📋 **[Spec Workflow](docs/spec-workflow.md)** - Understanding Specs in depth
|
|
254
|
-
- 🔢 **[Spec Numbering Strategy](docs/spec-numbering-guide.md)** - How to number your Specs
|
|
255
|
-
- 📄 **[Document Governance](docs/document-governance.md)** - Automated document management
|
|
256
|
-
- 🌍 **[Environment Management](docs/environment-management-guide.md)** - Multi-environment configuration
|
|
257
|
-
- 📦 **[Multi-Repository Management](docs/multi-repo-management-guide.md)** - Manage multiple Git repositories
|
|
258
|
-
- 🎭 **[Scene Runtime](docs/scene-runtime-guide.md)** - Template engine, quality pipeline, ontology, Moqui ERP
|
|
259
|
-
- ♻️ **[Moqui Standard Rebuild](docs/moqui-standard-rebuild-guide.md)** - Rebuild bootstrap bundle + page-copilot contract from metadata
|
|
260
|
-
- 🤖 **[Multi-Agent Coordination](docs/multi-agent-coordination-guide.md)** - Parallel agent coordination
|
|
261
|
-
- 📈 **[Value Observability](docs/value-observability-guide.md)** - KPI snapshot, baseline, trend, gate-ready evidence
|
|
262
|
-
- 🔌 **[Integration Modes](docs/integration-modes.md)** - Three ways to integrate sce
|
|
263
|
-
- 📝 **[Command Reference](docs/command-reference.md)** - All sce commands
|
|
264
|
-
|
|
265
|
-
### Tool-Specific Guides
|
|
266
|
-
- [Cursor Integration](docs/tools/cursor-guide.md)
|
|
267
|
-
- [Claude Code Integration](docs/tools/claude-guide.md)
|
|
268
|
-
- [Windsurf Integration](docs/tools/windsurf-guide.md)
|
|
269
|
-
- [VS Code + Copilot Integration](docs/tools/vscode-guide.md)
|
|
270
|
-
- [Generic AI Tools](docs/tools/generic-guide.md)
|
|
271
|
-
|
|
272
|
-
### Examples
|
|
273
|
-
- [API Feature Example](docs/examples/add-rest-api/) - RESTful API Spec
|
|
274
|
-
- [UI Feature Example](docs/examples/add-user-dashboard/) - React dashboard Spec
|
|
275
|
-
- [CLI Feature Example](docs/examples/add-export-command/) - CLI command Spec
|
|
276
|
-
|
|
277
|
-
### Advanced Topics
|
|
278
|
-
- [Adoption Guide](docs/adoption-guide.md) - Adopting sce in existing projects
|
|
279
|
-
- [Upgrade Guide](docs/upgrade-guide.md) - Version upgrade instructions
|
|
280
|
-
- [Release Archive](docs/releases/README.md) - Versioned release notes and validation report index
|
|
281
|
-
- [GitHub Releases](https://github.com/heguangyong/scene-capability-engine/releases) - Latest published versions and release assets
|
|
282
|
-
- [Release Checklist](docs/release-checklist.md) - Repeatable pre-release verification flow
|
|
283
|
-
- [Manual Workflows](docs/manual-workflows-guide.md) - Step-by-step workflows
|
|
284
|
-
- [Developer Guide](docs/developer-guide.md) - Contributing and extending sce
|
|
285
|
-
|
|
286
|
-
### Complete Documentation
|
|
287
|
-
- 📚 **[Documentation Index](docs/README.md)** - All documentation in one place
|
|
288
|
-
|
|
289
|
-
---
|
|
65
|
+
## Recommended Workflows
|
|
290
66
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
### Current Baseline
|
|
294
|
-
- **Default hard gate for handoff preflight**: Release flow enforces `sce auto handoff preflight-check --require-pass --json` and blocks publish on failures.
|
|
295
|
-
- **Takeover-first execution**: Once sce is adopted, autonomous and orchestrated flows are designed to run end-to-end without per-step confirmation loops.
|
|
296
|
-
- **Tag-driven release**: Pushing `v*` tags to GitHub triggers automated test, release evidence gates, and npm publish workflow.
|
|
297
|
-
|
|
298
|
-
### Autonomous Control 🚀
|
|
299
|
-
- **Fully Autonomous Execution**: AI independently manages entire development workflows from requirements to delivery
|
|
300
|
-
- **Closed-Loop Program Execution**: `sce auto close-loop "<goal>"` runs from goal decomposition to terminal orchestration state without manual confirmation gates
|
|
301
|
-
- **Automatic Master/Sub Portfolio Split**: Large goals are auto-split into dependency-wired sub-specs and coordinated by a master spec
|
|
302
|
-
- **Semantic Decomposition + Live Stream**: Clause/category-aware goal parsing plus live orchestration status stream (disable via `--no-stream`)
|
|
303
|
-
- **Session Resume + Retention Hygiene**: Resume interrupted runs with `--resume interrupted` (or `--resume latest`) and maintain archives via `sce auto session list/prune`, `sce auto batch-session list/prune`, and `sce auto controller-session list/prune`
|
|
304
|
-
- **Intelligent Error Recovery**: Automatically diagnose and fix errors with 3 retry attempts and learning system
|
|
305
|
-
- **Strategic Checkpoints**: Pause only at meaningful milestones (phase boundaries, fatal errors, external resources)
|
|
306
|
-
- **Continuous Task Execution**: Execute multiple tasks without interruption between individual tasks
|
|
307
|
-
- **Learning System**: Improve over time by learning from successful and failed recovery strategies
|
|
308
|
-
- **Safety Boundaries**: Respect workspace boundaries, require confirmation for production/external operations
|
|
309
|
-
- **Three Execution Modes**: Conservative (safe), Balanced (default), Aggressive (fast)
|
|
310
|
-
- **Progress Tracking**: Real-time status, estimated completion time, detailed execution reports
|
|
311
|
-
- **Rollback Support**: Create checkpoints and rollback to previous states if needed
|
|
312
|
-
- **CORE_PRINCIPLES Compliance**: Follows Spec-driven development, file management, and quality standards
|
|
313
|
-
|
|
314
|
-
**Quick Start**:
|
|
67
|
+
### 1) Feature Delivery (default)
|
|
315
68
|
```bash
|
|
316
|
-
|
|
317
|
-
sce
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
sce auto create "user authentication with JWT tokens"
|
|
321
|
-
|
|
322
|
-
# Run existing Spec autonomously
|
|
323
|
-
sce auto run 33-00-ai-autonomous-control
|
|
324
|
-
|
|
325
|
-
# Check status
|
|
326
|
-
sce auto status
|
|
327
|
-
|
|
328
|
-
# Resume after pause
|
|
329
|
-
sce auto resume
|
|
69
|
+
sce studio plan --scene scene.customer-order --from-chat session-20260302 --goal "optimize checkout"
|
|
70
|
+
sce spec bootstrap --name 02-00-checkout-optimization --scene scene.customer-order --non-interactive
|
|
71
|
+
sce spec domain coverage --spec 02-00-checkout-optimization --json
|
|
72
|
+
sce spec gate run --spec 02-00-checkout-optimization --scene scene.customer-order --json
|
|
330
73
|
```
|
|
331
74
|
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
### Spec-Driven Development
|
|
335
|
-
Structure your work with Requirements → Design → Tasks workflow
|
|
336
|
-
|
|
337
|
-
### KPI Automation & Observability 🚀
|
|
338
|
-
- **Unified Metric Contract**: Load and validate KPI definitions from `metric-definition.yaml`
|
|
339
|
-
- **Weekly Snapshot Pipeline**: Generate machine-readable snapshots with risk level and audit reasons
|
|
340
|
-
- **Baseline and Trend Analysis**: Build baseline from historical data and detect worsening trends automatically
|
|
341
|
-
- **Gate-Ready Summary**: Emit Day30/Day60-consumable summary payloads with evidence paths
|
|
342
|
-
- **CLI Commands**: `value metrics sample`, `value metrics snapshot`, `value metrics baseline`, `value metrics trend` with `--json` support
|
|
343
|
-
|
|
344
|
-
### Multi-Workspace Management 🚀
|
|
345
|
-
- **Workspace Registry**: Manage multiple sce projects from a single location
|
|
346
|
-
- **Quick Switching**: Switch between projects without directory navigation
|
|
347
|
-
- **Data Atomicity**: Single source of truth (`~/.sce/workspace-state.json`)
|
|
348
|
-
- **Cross-Platform**: Consistent path handling across Windows/Linux/macOS
|
|
349
|
-
- **Auto Migration**: Seamless upgrade from legacy workspace format
|
|
350
|
-
|
|
351
|
-
### Environment Configuration Management 🚀
|
|
352
|
-
- **Environment Registry**: Manage multiple environment configurations (dev, test, staging, prod)
|
|
353
|
-
- **Quick Switching**: Switch between environments with automatic backup
|
|
354
|
-
- **Automatic Backup**: Create timestamped backups before each switch
|
|
355
|
-
- **Rollback Support**: Restore previous environment configuration instantly
|
|
356
|
-
- **Verification**: Validate environment configuration after switching
|
|
357
|
-
- **Command Execution**: Run commands in specific environment context
|
|
358
|
-
- **Cross-Platform**: Works seamlessly on Windows, Linux, and macOS
|
|
359
|
-
|
|
360
|
-
### Multi-Repository Management 🚀
|
|
361
|
-
- **Unified Interface**: Manage multiple Git subrepositories from a single command
|
|
362
|
-
- **Auto-Discovery**: Automatically scan and configure all Git repositories in your project
|
|
363
|
-
- **Nested Repository Support**: Discover and manage Git repositories nested inside other repositories
|
|
364
|
-
- **Parent-Child Tracking**: Track relationships between parent and nested repositories
|
|
365
|
-
- **Batch Operations**: Execute Git commands across all repositories simultaneously
|
|
366
|
-
- **Status Overview**: View status of all repositories in a single table with parent relationships
|
|
367
|
-
- **Health Checks**: Verify repository configuration and connectivity
|
|
368
|
-
- **Cross-Platform**: Consistent path handling across Windows/Linux/macOS
|
|
369
|
-
- **Smart Exclusions**: Automatically skip common non-repository directories (node_modules, build, etc.)
|
|
370
|
-
|
|
371
|
-
### Moqui ERP Integration 🚀
|
|
372
|
-
- **Moqui ERP Adapter**: Connect sce scene runtime to live Moqui ERP instances
|
|
373
|
-
- `MoquiClient` — HTTP client with JWT auth lifecycle (login, refresh, re-login, logout) and retry logic
|
|
374
|
-
- `MoquiAdapter` — Binding handler for `spec.erp.*` and `moqui.*` refs, entity CRUD, service invocation, screen discovery
|
|
375
|
-
- **Scene Template Extractor** (v1.40.0): Analyze Moqui resources, identify business patterns, generate reusable scene templates
|
|
376
|
-
- Entity grouping by Header/Item suffix patterns (e.g., OrderHeader + OrderItem → composite)
|
|
377
|
-
- Pattern-based manifest generation with governance contracts
|
|
378
|
-
- **CLI Commands**: `scene connect`, `scene discover`, `scene extract` with `--json` support
|
|
379
|
-
|
|
380
|
-
### Multi-Agent Parallel Coordination 🚀
|
|
381
|
-
- **Agent Registry**: MachineIdentifier-based agent lifecycle with heartbeat monitoring and inactive cleanup
|
|
382
|
-
- **Task Lock Manager**: File-based task locking with atomic operations, single-agent backward compatibility
|
|
383
|
-
- **Task Status Store**: Concurrent-safe task status updates with exponential backoff retry
|
|
384
|
-
- **Steering File Lock**: Write serialization with pending-file degradation fallback
|
|
385
|
-
- **Merge Coordinator**: Git branch isolation per agent (`agent/{agentId}/{specName}`), conflict detection, auto-merge
|
|
386
|
-
- **Central Coordinator**: Dependency-driven ready task computation, task assignment, progress tracking
|
|
387
|
-
- **Zero Overhead**: All components are no-ops in single-agent mode (full backward compatibility)
|
|
388
|
-
|
|
389
|
-
[Learn more about Multi-Agent Coordination →](docs/multi-agent-coordination-guide.md)
|
|
390
|
-
|
|
391
|
-
### Agent Orchestrator 🚀
|
|
392
|
-
- **Automated Multi-Agent Spec Execution**: Replace manual multi-terminal workflows with a single command
|
|
393
|
-
- **DAG-Based Scheduling**: Analyze Spec dependencies, compute execution batches via topological sort
|
|
394
|
-
- **Parallel Execution**: Run up to N Specs simultaneously via Codex CLI sub-agents (`--max-parallel`)
|
|
395
|
-
- **Failure Propagation**: Failed Spec's dependents automatically marked as skipped
|
|
396
|
-
- **Retry Mechanism**: Configurable automatic retry for failed Specs
|
|
397
|
-
- **Real-Time Monitoring**: Track per-Spec status and overall orchestration progress
|
|
398
|
-
- **Graceful Termination**: Stop all sub-agents cleanly (SIGTERM → SIGKILL)
|
|
399
|
-
- **Configurable**: Codex command, args, parallelism, timeout, retries via `.sce/config/orchestrator.json`
|
|
400
|
-
|
|
401
|
-
**Quick Start**:
|
|
75
|
+
### 2) Program-Scale Autonomous Delivery
|
|
402
76
|
```bash
|
|
403
|
-
|
|
404
|
-
sce orchestrate run --specs "spec-a,spec-b,spec-c" --max-parallel 3
|
|
405
|
-
|
|
406
|
-
# Check orchestration progress
|
|
407
|
-
sce orchestrate status
|
|
408
|
-
|
|
409
|
-
# Stop all sub-agents
|
|
410
|
-
sce orchestrate stop
|
|
411
|
-
```
|
|
412
|
-
|
|
413
|
-
Tip: `sce spec bootstrap|pipeline run|gate run --specs ...` now defaults to this orchestrate mode automatically.
|
|
414
|
-
|
|
415
|
-
**Recommended Codex-Orchestrator config (`.sce/config/orchestrator.json`)**:
|
|
416
|
-
```json
|
|
417
|
-
{
|
|
418
|
-
"agentBackend": "codex",
|
|
419
|
-
"maxParallel": 3,
|
|
420
|
-
"timeoutSeconds": 900,
|
|
421
|
-
"maxRetries": 2,
|
|
422
|
-
"rateLimitMaxRetries": 8,
|
|
423
|
-
"rateLimitBackoffBaseMs": 1500,
|
|
424
|
-
"rateLimitBackoffMaxMs": 60000,
|
|
425
|
-
"rateLimitAdaptiveParallel": true,
|
|
426
|
-
"rateLimitParallelFloor": 1,
|
|
427
|
-
"rateLimitCooldownMs": 45000,
|
|
428
|
-
"rateLimitLaunchBudgetPerMinute": 8,
|
|
429
|
-
"rateLimitLaunchBudgetWindowMs": 60000,
|
|
430
|
-
"apiKeyEnvVar": "CODEX_API_KEY",
|
|
431
|
-
"codexArgs": ["--skip-git-repo-check"],
|
|
432
|
-
"codexCommand": "npx @openai/codex"
|
|
433
|
-
}
|
|
77
|
+
sce auto close-loop-program "stabilize order lifecycle and release governance" --program-govern-until-stable --json
|
|
434
78
|
```
|
|
435
79
|
|
|
436
|
-
|
|
437
|
-
Use the `rateLimit*` settings to absorb transient 429/too-many-requests failures without stalling orchestration.
|
|
438
|
-
|
|
439
|
-
### Spec-Level Steering & Context Sync 🚀
|
|
440
|
-
- **Spec Steering (L4)**: Independent `steering.md` per Spec with constraints, notes, and decisions — zero cross-agent conflict
|
|
441
|
-
- **Steering Loader**: Unified L1-L4 four-layer steering loader with priority-based merging
|
|
442
|
-
- **Context Sync Manager**: Multi-agent friendly CURRENT_CONTEXT.md with structured Spec progress table, concurrent-safe updates
|
|
443
|
-
- **Spec Lifecycle Manager**: State machine (planned → assigned → in-progress → completed → released) with auto-completion detection
|
|
444
|
-
- **Sync Barrier**: Agent Spec-switch synchronization — uncommitted change check + steering reload
|
|
445
|
-
- **Coordinator Integration**: Auto Spec completion check on task complete, SyncBarrier on task assign
|
|
446
|
-
|
|
447
|
-
### Scene Ontology Enhancement 🚀
|
|
448
|
-
- **OntologyGraph**: Semantic relationship graph for binding refs (depends_on, composes, extends, produces)
|
|
449
|
-
- **Action Abstraction**: Intent, preconditions, postconditions per binding for AI agent understanding
|
|
450
|
-
- **Data Lineage**: Source → transform → sink tracking in governance_contract
|
|
451
|
-
- **Agent-Ready Metadata**: `agent_hints` field with summary, complexity, duration, permissions, sequence
|
|
452
|
-
- **Agent Readiness Score**: Bonus quality dimension (max +10 points)
|
|
453
|
-
- **CLI Commands**: `scene ontology show|deps|validate|actions|lineage|agent-info` with `--json` support
|
|
454
|
-
|
|
455
|
-
### Scene Template Quality Pipeline 🚀
|
|
456
|
-
- **Template Lint Engine**: 10-category quality checks for scene packages (manifest completeness, binding refs, governance, consistency, variables, documentation, action abstraction, data lineage, agent hints)
|
|
457
|
-
- **Quality Score Calculator**: 4-dimension scoring + agent_readiness bonus (contract validity, lint pass rate, documentation quality, governance completeness + agent readiness max +10) with 0-100+ scale
|
|
458
|
-
- **One-Stop Contribute Pipeline**: Validate → Lint → Score → Preview → Publish in a single command
|
|
459
|
-
- **CLI Commands**: `scene lint`, `scene score`, `scene contribute` with `--strict`, `--dry-run`, `--skip-lint`, `--json` support
|
|
460
|
-
|
|
461
|
-
### Scene Template Engine 🚀
|
|
462
|
-
- **Template Variable Schema**: Define typed variables (string, number, boolean, enum, array) with validation rules in scene-package.json
|
|
463
|
-
- **Multi-File Rendering**: Recursive template processing with `{{variable}}` substitution, `{{#if}}` conditionals, `{{#each}}` loops
|
|
464
|
-
- **Three-Layer Inheritance**: L1-Capability / L2-Domain / L3-Instance package hierarchy with schema and file merging
|
|
465
|
-
- **CLI Commands**: `scene template-validate`, `scene template-resolve`, `scene template-render` with `--json` support
|
|
466
|
-
|
|
467
|
-
### Spec-Level Collaboration 🚀
|
|
468
|
-
- **Parallel Development**: Enable multiple AI instances to work on different Specs simultaneously
|
|
469
|
-
- **Dependency Management**: Define and track dependencies between Specs with circular dependency detection
|
|
470
|
-
- **Interface Contracts**: Formal API definitions ensuring compatibility between independently developed Specs
|
|
471
|
-
- **Status Tracking**: Monitor progress and assignments across all Specs in real-time
|
|
472
|
-
- **Integration Testing**: Run cross-Spec integration tests to verify modules work together
|
|
473
|
-
- **Dependency Visualization**: View dependency graphs with critical path highlighting
|
|
474
|
-
- **Backward Compatible**: Opt-in system that doesn't affect existing single-Spec workflows
|
|
475
|
-
|
|
476
|
-
[Learn more about Spec-Level Collaboration →](docs/spec-collaboration-guide.md)
|
|
477
|
-
|
|
478
|
-
### Spec Locking Mechanism 🚀
|
|
479
|
-
- **Multi-User Coordination**: Prevent conflicts when multiple developers work on the same Spec
|
|
480
|
-
- **Machine Identification**: Unique machine IDs for accurate lock ownership tracking
|
|
481
|
-
- **Stale Lock Detection**: Automatic detection and cleanup of abandoned locks (default: 24h timeout)
|
|
482
|
-
- **Lock Status Integration**: View lock status in `sce status` output
|
|
483
|
-
- **Force Unlock**: Override locks when necessary with `--force` flag
|
|
484
|
-
- **Backward Compatible**: Locking is optional and doesn't affect existing workflows
|
|
485
|
-
|
|
486
|
-
**Quick Start**:
|
|
80
|
+
### 3) Local History Safety (timeline)
|
|
487
81
|
```bash
|
|
488
|
-
|
|
489
|
-
sce
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
sce lock status
|
|
493
|
-
|
|
494
|
-
# Release when done
|
|
495
|
-
sce unlock my-feature
|
|
496
|
-
|
|
497
|
-
# Clean up stale locks
|
|
498
|
-
sce lock cleanup
|
|
499
|
-
|
|
500
|
-
# View your machine ID
|
|
501
|
-
sce lock whoami
|
|
82
|
+
sce timeline save --summary "before risky refactor"
|
|
83
|
+
sce timeline list --limit 20
|
|
84
|
+
sce timeline restore <snapshot-id>
|
|
85
|
+
sce timeline push origin main
|
|
502
86
|
```
|
|
503
87
|
|
|
504
|
-
###
|
|
505
|
-
- **Operations Spec Management**: Standardized operations documentation (deployment, monitoring, troubleshooting, etc.)
|
|
506
|
-
- **Progressive AI Autonomy**: L1-L5 takeover levels for gradual AI operations control
|
|
507
|
-
- **Audit Logging**: Tamper-evident audit trail with SHA-256 integrity verification
|
|
508
|
-
- **Feedback Integration**: Automated user feedback processing and analytics
|
|
509
|
-
- **Permission Management**: Environment-based security controls (dev, test, pre-prod, prod)
|
|
510
|
-
- **Operations Validation**: Complete spec validation with clear error reporting
|
|
511
|
-
|
|
512
|
-
### Document Governance
|
|
513
|
-
- Automated document lifecycle management
|
|
514
|
-
- Clean project structure enforcement
|
|
515
|
-
- Temporary file cleanup
|
|
516
|
-
- Artifact organization
|
|
517
|
-
- Git hooks for compliance
|
|
518
|
-
|
|
519
|
-
### Multi-User Collaboration
|
|
520
|
-
- Personal workspaces for team members
|
|
521
|
-
- Task claiming and tracking
|
|
522
|
-
- Workspace synchronization
|
|
523
|
-
|
|
524
|
-
### Cross-Tool Compatibility
|
|
525
|
-
Export context for Claude Code, Cursor, Windsurf, Copilot, and more
|
|
526
|
-
|
|
527
|
-
### Watch Mode Automation
|
|
528
|
-
Automatic file monitoring and context updates
|
|
529
|
-
|
|
530
|
-
### Quality Enhancement
|
|
531
|
-
- Document quality scoring (0-10 scale)
|
|
532
|
-
- Intelligent improvement suggestions
|
|
533
|
-
- Professional standards enforcement
|
|
534
|
-
|
|
535
|
-
### Multi-Language Support
|
|
536
|
-
English and Chinese interfaces
|
|
537
|
-
|
|
538
|
-
---
|
|
539
|
-
|
|
540
|
-
## Command Overview
|
|
541
|
-
|
|
88
|
+
### 4) Release Baseline
|
|
542
89
|
```bash
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
# Autonomous close-loop program (one command, no confirmation loop)
|
|
548
|
-
sce auto close-loop "<goal>" # Auto split goal into master/sub specs and execute to closure
|
|
549
|
-
sce auto close-loop --resume interrupted # Resume from latest non-completed close-loop session
|
|
550
|
-
sce auto close-loop continue # Shorthand: continue latest interrupted close-loop session
|
|
551
|
-
sce auto continue # Shortcut command: continue latest interrupted close-loop session
|
|
552
|
-
sce auto close-loop "<goal>" --dry-run --json # Preview decomposition plan only
|
|
553
|
-
sce auto close-loop-program "<goal>" --program-govern-until-stable --program-govern-use-action 1 --json # Program-level recovery + governance with remediation action execution
|
|
554
|
-
sce auto close-loop-controller .sce/auto/program-queue.lines --wait-on-empty --dequeue-limit 2 --json # Queue-driven autonomous controller for broad-goal backlogs
|
|
555
|
-
sce auto close-loop-controller --controller-resume latest --json # Resume autonomous controller from latest persisted checkpoint
|
|
556
|
-
sce auto controller-session list --limit 50 --json # Inspect persisted close-loop-controller summary sessions
|
|
557
|
-
sce auto controller-session prune --keep 20 --older-than-days 14 --dry-run --json # Prune old controller summaries by retention policy
|
|
558
|
-
sce auto observability snapshot --days 14 --json # Unified autonomous observability snapshot (sessions + governance + trend)
|
|
559
|
-
sce auto spec status 121-00-master --json # Agent-facing structured spec status interface
|
|
560
|
-
sce auto spec instructions 121-02-sub-track --json # Agent-facing execution instructions for one spec
|
|
561
|
-
sce auto schema check --json # Check autonomous archive schema compatibility
|
|
562
|
-
sce auto schema migrate --apply --json # Backfill/migrate schema_version for autonomous archives
|
|
563
|
-
|
|
564
|
-
# Spec workflow (recommended)
|
|
565
|
-
sce spec bootstrap --name <spec> --scene <scene-id> --non-interactive # Generate draft and bind as scene child session
|
|
566
|
-
sce spec pipeline run --spec <spec> --scene <scene-id> # Run pipeline and auto-archive spec child session
|
|
567
|
-
sce spec gate run --spec <spec> --scene <scene-id> --json # Run gate and auto-archive spec child session
|
|
568
|
-
sce spec bootstrap --specs "<spec-a,spec-b>" --max-parallel <N> # Multi-Spec defaults to orchestrate
|
|
569
|
-
sce spec pipeline run --specs "<spec-a,spec-b>" --max-parallel <N> # Multi-Spec defaults to orchestrate
|
|
570
|
-
sce spec gate run --specs "<spec-a,spec-b>" --max-parallel <N> # Multi-Spec defaults to orchestrate
|
|
571
|
-
|
|
572
|
-
# Spec session governance default
|
|
573
|
-
# - spec bootstrap|pipeline run|gate run must bind to an active scene primary session.
|
|
574
|
-
# - Use --scene <scene-id> explicitly when multiple active scenes exist.
|
|
575
|
-
# - Multi-Spec orchestrate fallback (--specs ...) keeps the same scene binding and archives per-spec child sessions.
|
|
576
|
-
|
|
577
|
-
# Context management
|
|
578
|
-
sce context export <spec-name> # Export context for AI tools
|
|
579
|
-
sce prompt generate <spec> <task> # Generate task-specific prompt
|
|
580
|
-
|
|
581
|
-
# Template registry
|
|
582
|
-
sce templates list --type <spec-scaffold|capability-template|runtime-playbook> --compatible-with <semver> --risk <low|medium|high|critical>
|
|
583
|
-
sce templates search <keyword> --type <spec-scaffold|capability-template|runtime-playbook> --compatible-with <semver>
|
|
584
|
-
sce templates show <template-path> # Show template metadata and compatibility contract
|
|
585
|
-
sce templates update [--source <name>]
|
|
586
|
-
|
|
587
|
-
# KPI automation and observability
|
|
588
|
-
sce value metrics sample --out <path> --json # Generate sample KPI input JSON
|
|
589
|
-
sce value metrics snapshot --input <path> --json # Generate weekly KPI snapshot + gate summary
|
|
590
|
-
sce value metrics baseline --from-history <N> --json # Build baseline from earliest N snapshots
|
|
591
|
-
sce value metrics trend --window <N> --json # Analyze trend/risk from latest N snapshots
|
|
592
|
-
sce auto kpi trend --weeks 8 --period week --json # Aggregate autonomous delivery KPI trend (weekly/daily buckets + anomalies)
|
|
593
|
-
sce auto kpi trend --weeks 8 --period day --csv --out <path> # Export autonomous KPI trend as CSV
|
|
594
|
-
sce auto kpi trend --weeks 8 --mode controller --json # Filter trend to close-loop-controller sessions only
|
|
595
|
-
|
|
596
|
-
# Workspace management
|
|
597
|
-
sce workspace create <name> [path] # Register a new workspace
|
|
598
|
-
sce workspace list # List all workspaces
|
|
599
|
-
sce workspace switch <name> # Switch active workspace
|
|
600
|
-
sce workspace info [name] # Show workspace details
|
|
601
|
-
sce workspace remove <name> # Remove workspace
|
|
602
|
-
|
|
603
|
-
# Environment management
|
|
604
|
-
sce env list # List all environments
|
|
605
|
-
sce env switch <name> # Switch to environment (with backup)
|
|
606
|
-
sce env info # Show active environment details
|
|
607
|
-
sce env register <config-file> # Register new environment
|
|
608
|
-
sce env unregister <name> # Remove environment
|
|
609
|
-
sce env rollback # Rollback to previous environment
|
|
610
|
-
sce env verify # Verify current environment
|
|
611
|
-
sce env run "<command>" # Run command in environment context
|
|
612
|
-
|
|
613
|
-
# Multi-repository management
|
|
614
|
-
sce repo init [--nested] # Initialize repository configuration (nested scanning by default)
|
|
615
|
-
sce repo init --no-nested # Initialize without nested repository scanning
|
|
616
|
-
sce repo status [--verbose] # Show status of all repositories (including nested)
|
|
617
|
-
sce repo exec "<command>" # Execute command in all repositories
|
|
618
|
-
|
|
619
|
-
# Spec-level collaboration
|
|
620
|
-
sce collab init <master> [options] # Initialize Master Spec with Sub-Specs
|
|
621
|
-
sce collab status [spec] [--graph] # Display collaboration status
|
|
622
|
-
sce collab assign <spec> <assignee> # Assign Spec to an assignee
|
|
623
|
-
sce collab verify <spec> # Verify interface contracts
|
|
624
|
-
sce collab integrate <specs...> # Run integration tests
|
|
625
|
-
sce collab migrate <spec> # Convert standalone Spec to collaborative
|
|
626
|
-
sce repo health # Check repository health
|
|
627
|
-
|
|
628
|
-
# Scene template engine
|
|
629
|
-
sce scene template-validate --package <path> # Validate template variable schema
|
|
630
|
-
sce scene template-resolve --package <name> # Resolve inheritance chain and merged schema
|
|
631
|
-
sce scene template-render --package <name> --values <json> --out <dir> # Render template files
|
|
632
|
-
|
|
633
|
-
# Moqui ERP integration
|
|
634
|
-
sce scene connect --config <path> # Test connectivity to Moqui ERP instance
|
|
635
|
-
sce scene discover --config <path> # Discover entities, services, screens from Moqui
|
|
636
|
-
sce scene extract --config <path> --out <dir> # Extract scene templates from Moqui (v1.40.0)
|
|
637
|
-
|
|
638
|
-
# Scene template quality pipeline
|
|
639
|
-
sce scene lint --package <path> # Lint scene package for quality issues
|
|
640
|
-
sce scene score --package <path> # Calculate quality score (0-100)
|
|
641
|
-
sce scene contribute --package <path> # One-stop validate → lint → score → publish
|
|
642
|
-
|
|
643
|
-
# Scene ontology
|
|
644
|
-
sce scene ontology show --package <path> # Show ontology graph
|
|
645
|
-
sce scene ontology deps --ref <ref> # Query dependency chain
|
|
646
|
-
sce scene ontology impact --ref <ref> # Analyze reverse impact radius
|
|
647
|
-
sce scene ontology path --from <ref> --to <ref> # Query shortest ontology relation path
|
|
648
|
-
sce scene ontology validate --package <path> # Validate graph consistency
|
|
649
|
-
sce scene ontology actions --ref <ref> # Show action abstraction
|
|
650
|
-
sce scene ontology lineage --ref <ref> # Show data lineage
|
|
651
|
-
sce scene ontology agent-info --package <path> # Show agent hints
|
|
652
|
-
sce scene contribute --package <path> # One-stop validate → lint → score → publish
|
|
653
|
-
|
|
654
|
-
# Agent orchestration
|
|
655
|
-
sce orchestrate run --specs "<spec-list>" --max-parallel <N> # Start multi-agent orchestration
|
|
656
|
-
sce orchestrate status # View orchestration progress
|
|
657
|
-
sce orchestrate stop # Stop all sub-agents
|
|
658
|
-
|
|
659
|
-
# Release baseline (default in CI)
|
|
660
|
-
sce auto handoff preflight-check --require-pass --json # Hard gate: block release on preflight failures
|
|
661
|
-
git tag -a vX.Y.Z -m "vX.Y.Z" # Create release tag
|
|
662
|
-
git push origin vX.Y.Z # Push tag to trigger GitHub release + npm publish
|
|
663
|
-
|
|
664
|
-
# DevOps operations
|
|
665
|
-
sce ops init <project-name> # Initialize operations specs
|
|
666
|
-
sce ops validate [<project>] # Validate operations completeness
|
|
667
|
-
sce ops audit [options] # Query audit logs
|
|
668
|
-
sce ops takeover <action> # Manage AI takeover levels
|
|
669
|
-
sce ops feedback <action> # Manage user feedback
|
|
670
|
-
|
|
671
|
-
# Task management
|
|
672
|
-
sce task claim <spec> <task-id> # Claim a task
|
|
673
|
-
sce task list <spec> # List claimed tasks
|
|
674
|
-
|
|
675
|
-
# Spec locking (multi-user collaboration)
|
|
676
|
-
sce lock acquire <spec-name> # Acquire lock on a Spec
|
|
677
|
-
sce lock release <spec-name> # Release lock (or use: sce unlock)
|
|
678
|
-
sce lock status [spec-name] # Show lock status
|
|
679
|
-
sce lock cleanup # Remove stale locks
|
|
680
|
-
sce lock whoami # Show machine identifier
|
|
681
|
-
sce unlock <spec-name> [--force] # Release lock (alias)
|
|
682
|
-
|
|
683
|
-
# Document governance
|
|
684
|
-
sce docs diagnose # Check document compliance
|
|
685
|
-
sce docs cleanup # Remove temporary files
|
|
686
|
-
sce docs validate # Validate document structure
|
|
687
|
-
sce docs archive --spec <name> # Organize Spec artifacts
|
|
688
|
-
sce docs hooks install # Install Git pre-commit hooks
|
|
689
|
-
|
|
690
|
-
# Automation
|
|
691
|
-
sce watch start # Start watch mode
|
|
692
|
-
sce watch status # Check watch status
|
|
693
|
-
|
|
694
|
-
# Project info
|
|
695
|
-
sce status # Project status
|
|
696
|
-
sce workflows # List available workflows
|
|
90
|
+
sce auto handoff preflight-check --require-pass --json
|
|
91
|
+
git tag -a vX.Y.Z -m "vX.Y.Z"
|
|
92
|
+
git push origin vX.Y.Z
|
|
697
93
|
```
|
|
698
94
|
|
|
699
|
-
See [Command Reference](docs/command-reference.md) for complete documentation.
|
|
700
|
-
|
|
701
95
|
---
|
|
702
96
|
|
|
703
|
-
##
|
|
704
|
-
|
|
705
|
-
### Getting Help
|
|
706
|
-
|
|
707
|
-
- 📖 **Documentation**: Start with the [Quick Start Guide](docs/quick-start.md)
|
|
708
|
-
- 🐛 **Bug Reports**: [GitHub Issues](https://github.com/heguangyong/scene-capability-engine/issues)
|
|
709
|
-
- 💬 **Discussions**: [GitHub Discussions](https://github.com/heguangyong/scene-capability-engine/discussions)
|
|
97
|
+
## AI Agent Compatibility
|
|
710
98
|
|
|
711
|
-
|
|
99
|
+
SCE is tool-agnostic and works with Codex, Claude Code, Cursor, Windsurf, VS Code Copilot, and other CLI-capable agents.
|
|
712
100
|
|
|
713
|
-
|
|
714
|
-
-
|
|
715
|
-
-
|
|
716
|
-
-
|
|
717
|
-
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
git clone https://github.com/heguangyong/scene-capability-engine.git
|
|
723
|
-
cd scene-capability-engine
|
|
724
|
-
npm install
|
|
725
|
-
npm link # For local development
|
|
726
|
-
npm test # Run tests
|
|
727
|
-
```
|
|
101
|
+
- Runtime context is managed by `.sce/` (not IDE-specific hidden folders).
|
|
102
|
+
- Session governance is scene-first: `1 scene = 1 primary session`.
|
|
103
|
+
- Spec work is attached as child sessions and auto-archived.
|
|
104
|
+
- Startup now auto-detects adopted projects and aligns takeover baseline defaults automatically.
|
|
105
|
+
- Problem evaluation policy is enabled by default (`.sce/config/problem-eval-policy.json`) and evaluates every Studio stage.
|
|
106
|
+
- Error handling now follows a full incident loop by default: every record attempt is staged first and auto-closed on verified/promoted outcomes.
|
|
107
|
+
- You can inspect or force-align baseline explicitly:
|
|
108
|
+
- `sce workspace takeover-audit --json`
|
|
109
|
+
- `sce workspace takeover-apply --json`
|
|
728
110
|
|
|
729
111
|
---
|
|
730
112
|
|
|
731
|
-
##
|
|
113
|
+
## Documentation Map
|
|
732
114
|
|
|
733
|
-
|
|
115
|
+
Start here:
|
|
734
116
|
|
|
735
|
-
|
|
117
|
+
- [Quick Start](docs/quick-start.md)
|
|
118
|
+
- [Command Reference](docs/command-reference.md)
|
|
119
|
+
- [Autonomous Control Guide](docs/autonomous-control-guide.md)
|
|
120
|
+
- [Scene Runtime Guide](docs/scene-runtime-guide.md)
|
|
121
|
+
- [Value Observability Guide](docs/value-observability-guide.md)
|
|
122
|
+
- [Multi-Agent Coordination Guide](docs/multi-agent-coordination-guide.md)
|
|
123
|
+
- [Errorbook Registry Guide](docs/errorbook-registry.md)
|
|
124
|
+
- [Documentation Hub](docs/README.md)
|
|
736
125
|
|
|
737
|
-
|
|
126
|
+
Moqui-focused:
|
|
738
127
|
|
|
739
|
-
-
|
|
740
|
-
-
|
|
741
|
-
- Influenced by **oh-my-opencode** and the Ultrawork Manifesto
|
|
128
|
+
- [Moqui Template Core Library Playbook](docs/moqui-template-core-library-playbook.md)
|
|
129
|
+
- [Moqui Standard Rebuild Guide](docs/moqui-standard-rebuild-guide.md)
|
|
742
130
|
|
|
743
131
|
---
|
|
744
132
|
|
|
745
|
-
|
|
133
|
+
## Community
|
|
746
134
|
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
sce adopt
|
|
750
|
-
sce studio plan --scene scene.demo --from-chat session-demo --goal "bootstrap first feature" --json
|
|
751
|
-
sce spec bootstrap --name 01-00-my-first-feature --scene scene.demo --non-interactive
|
|
752
|
-
```
|
|
753
|
-
|
|
754
|
-
---
|
|
755
|
-
|
|
756
|
-
## 💬 Community & Discussion
|
|
757
|
-
|
|
758
|
-
Join our community to discuss AI-driven development, Spec workflows, and best practices.
|
|
759
|
-
|
|
760
|
-
### WeChat Group
|
|
135
|
+
- [GitHub Discussions](https://github.com/heguangyong/scene-capability-engine/discussions)
|
|
136
|
+
- [GitHub Issues](https://github.com/heguangyong/scene-capability-engine/issues)
|
|
761
137
|
|
|
762
138
|
<img src="docs/images/wechat-qr.png" width="200" alt="WeChat Group QR Code">
|
|
763
139
|
|
|
764
|
-
|
|
140
|
+
Scan the QR code and note `sce` to join the WeChat group.
|
|
765
141
|
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
- **GitHub Discussions**: [Join Discussion](https://github.com/heguangyong/scene-capability-engine/discussions)
|
|
769
|
-
- **Issues**: [Report Issues](https://github.com/heguangyong/scene-capability-engine/issues)
|
|
770
|
-
|
|
771
|
-
### Featured Article
|
|
772
|
-
|
|
773
|
-
📖 **[The Philosophy and Practice of AI-Driven Development](docs/articles/ai-driven-development-philosophy-and-practice.md)**
|
|
774
|
-
|
|
775
|
-
A deep conversation about AI development trends, Neo-Confucian philosophy, and software engineering practices. Based on 2000+ hours of AI-assisted programming experience.
|
|
142
|
+
---
|
|
776
143
|
|
|
777
|
-
|
|
144
|
+
## License
|
|
778
145
|
|
|
779
|
-
|
|
780
|
-
- [WeChat Official Account (微信公众号)](https://mp.weixin.qq.com/s/GRo0XQ6GvQ03T4_FTvAsKA)
|
|
781
|
-
- [Juejin (掘金)](https://juejin.cn/post/7598899986857377798)
|
|
782
|
-
- [Zhihu (知乎)](https://zhuanlan.zhihu.com/p/1999164891391624163)
|
|
783
|
-
- [X/Twitter](https://x.com/heguangyong/status/2015668235065229782)
|
|
146
|
+
MIT. See [LICENSE](LICENSE).
|
|
784
147
|
|
|
785
148
|
---
|
|
786
149
|
|
|
787
|
-
**Version**: 3.
|
|
788
|
-
**Last Updated**: 2026-02
|
|
789
|
-
|
|
150
|
+
**Version**: 3.4.5
|
|
151
|
+
**Last Updated**: 2026-03-02
|