scene-capability-engine 3.6.65 → 3.6.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +17 -6
  3. package/README.zh.md +18 -6
  4. package/bin/scene-capability-engine.js +4 -0
  5. package/docs/README.md +2 -2
  6. package/docs/command-reference.md +382 -6
  7. package/docs/document-governance.md +3 -2
  8. package/docs/integration-modes.md +62 -478
  9. package/docs/integration-philosophy.md +56 -263
  10. package/docs/magicball-project-portfolio-contract.md +114 -2
  11. package/docs/project-management/README.md +14 -0
  12. package/docs/project-management/assurance/backup.md +3 -0
  13. package/docs/project-management/assurance/config.md +3 -0
  14. package/docs/project-management/assurance/evidence/README.md +3 -0
  15. package/docs/project-management/assurance/incidents/README.md +3 -0
  16. package/docs/project-management/assurance/logs.md +3 -0
  17. package/docs/project-management/assurance/overview.md +3 -0
  18. package/docs/project-management/assurance/recovery/README.md +3 -0
  19. package/docs/project-management/assurance/resource.md +3 -0
  20. package/docs/project-management/assurance/runbooks/README.md +3 -0
  21. package/docs/project-management/delivery/acceptance/README.md +3 -0
  22. package/docs/project-management/delivery/acceptance/evidence/README.md +3 -0
  23. package/docs/project-management/delivery/acceptance/exceptions/README.md +3 -0
  24. package/docs/project-management/delivery/acceptance/reports/README.md +3 -0
  25. package/docs/project-management/delivery/documents/changes.md +3 -0
  26. package/docs/project-management/delivery/documents/issues.md +3 -0
  27. package/docs/project-management/delivery/documents/overview.md +3 -0
  28. package/docs/project-management/delivery/documents/planning.md +3 -0
  29. package/docs/project-management/delivery/documents/requirements.md +3 -0
  30. package/docs/project-management/delivery/documents/tracking.md +3 -0
  31. package/docs/project-management/delivery/handoffs/README.md +3 -0
  32. package/docs/project-management/delivery/handoffs/evidence/README.md +3 -0
  33. package/docs/project-management/delivery/handoffs/records/README.md +3 -0
  34. package/docs/project-management/delivery/overview.md +10 -0
  35. package/docs/project-management/delivery/releases/README.md +3 -0
  36. package/docs/project-management/delivery/releases/baselines/README.md +3 -0
  37. package/docs/project-management/delivery/releases/evidence/README.md +3 -0
  38. package/docs/project-management/delivery/tables/changes.md +3 -0
  39. package/docs/project-management/delivery/tables/issues.md +3 -0
  40. package/docs/project-management/delivery/tables/planning.md +3 -0
  41. package/docs/project-management/delivery/tables/requirements.md +3 -0
  42. package/docs/project-management/delivery/tables/tracking.md +3 -0
  43. package/docs/project-management/environment/agent-discovery.md +3 -0
  44. package/docs/project-management/environment/development.md +3 -0
  45. package/docs/project-management/environment/overview.md +10 -0
  46. package/docs/project-management/environment/testing.md +3 -0
  47. package/docs/project-management/environment/version-alignment.md +3 -0
  48. package/docs/quick-start-with-ai-tools.md +68 -308
  49. package/docs/releases/README.md +2 -0
  50. package/docs/releases/v3.6.66.md +23 -0
  51. package/docs/releases/v3.6.67.md +23 -0
  52. package/docs/steering-governance.md +64 -2
  53. package/docs/zh/README.md +2 -2
  54. package/docs/zh/releases/README.md +2 -0
  55. package/docs/zh/releases/v3.6.66.md +23 -0
  56. package/docs/zh/releases/v3.6.67.md +23 -0
  57. package/lib/commands/adopt.js +24 -0
  58. package/lib/commands/native.js +158 -0
  59. package/lib/commands/project.js +95 -0
  60. package/lib/commands/semantic.js +1459 -0
  61. package/lib/commands/session.js +74 -3
  62. package/lib/commands/spec-bootstrap.js +10 -1
  63. package/lib/commands/spec-gate.js +10 -1
  64. package/lib/commands/spec-pipeline.js +10 -1
  65. package/lib/commands/studio.js +405 -30
  66. package/lib/commands/task.js +141 -7
  67. package/lib/governance/supreme-principles.js +530 -0
  68. package/lib/problem/problem-evaluator.js +4 -0
  69. package/lib/project/candidate-inspection-service.js +24 -1
  70. package/lib/project/portfolio-projection-service.js +315 -5
  71. package/lib/project/project-channel-output.js +94 -0
  72. package/lib/project/project-channel-projection.js +181 -0
  73. package/lib/project/root-onboarding-service.js +60 -8
  74. package/lib/project/semantic-shared-source-projection.js +150 -0
  75. package/lib/project/supervision-action-model.js +277 -0
  76. package/lib/project/supervision-projection-service.js +305 -5
  77. package/lib/project/target-resolution-service.js +70 -5
  78. package/lib/project/visibility-policy.js +93 -0
  79. package/lib/runtime/multi-spec-scene-session.js +8 -1
  80. package/lib/runtime/project-channel-context-store.js +387 -0
  81. package/lib/runtime/project-channel-context.js +406 -0
  82. package/lib/runtime/scene-session-binding.js +46 -0
  83. package/lib/runtime/session-store.js +186 -0
  84. package/lib/runtime/steering-contract.js +7 -1
  85. package/lib/semantic/archive-report.js +283 -0
  86. package/lib/semantic/archive-routing.js +67 -0
  87. package/lib/semantic/backflow-report.js +245 -0
  88. package/lib/semantic/capability-contract.js +30 -0
  89. package/lib/semantic/delta-export.js +145 -0
  90. package/lib/semantic/interaction-observer.js +254 -0
  91. package/lib/semantic/kernel-loader.js +881 -0
  92. package/lib/semantic/native-runtime.js +359 -0
  93. package/lib/semantic/progress-ledger.js +433 -0
  94. package/lib/semantic/replay-evaluator.js +382 -0
  95. package/lib/semantic/shared-publication.js +592 -0
  96. package/lib/semantic/shared-source-config.js +183 -0
  97. package/lib/semantic/shared-source-connect.js +139 -0
  98. package/lib/semantic/shared-source-discovery.js +98 -0
  99. package/lib/semantic/shared-sync-export.js +413 -0
  100. package/lib/semantic/shared-sync-intake.js +592 -0
  101. package/lib/semantic/shared-sync-merge.js +547 -0
  102. package/lib/semantic/shared-sync-release.js +463 -0
  103. package/lib/semantic/supreme-intent-report.js +300 -0
  104. package/lib/state/sce-state-store.js +1360 -0
  105. package/lib/steering/context-sync-manager.js +276 -25
  106. package/lib/studio/spec-intake-governor.js +39 -3
  107. package/lib/studio/task-envelope.js +35 -2
  108. package/lib/workspace/takeover-baseline.js +342 -83
  109. package/package.json +7 -2
  110. package/scripts/agent-governance-baseline-audit.js +395 -0
  111. package/scripts/clarification-first-audit.js +9 -9
  112. package/scripts/deprecated-entry-audit.js +240 -0
  113. package/scripts/release-posture-report.js +262 -0
  114. package/template/.sce/README.md +62 -228
  115. package/template/.sce/config/semantic-shared-sources.json +5 -0
  116. package/template/.sce/config/supreme-principles-policy.json +105 -0
  117. package/template/.sce/config/takeover-baseline.json +7 -0
  118. package/template/.sce/steering/CORE_PRINCIPLES.md +23 -63
  119. package/template/.sce/steering/CURRENT_CONTEXT.md +4 -0
  120. package/template/.sce/steering/RULES_GUIDE.md +17 -9
  121. package/template/README.md +32 -96
@@ -1,529 +1,113 @@
1
- # Integration Modes Guide
1
+ # Integration Modes
2
2
 
3
- > Three ways to integrate sce with your AI coding tools
3
+ > Choose the mode based on how much direct control your AI runtime has inside the repository.
4
4
 
5
5
  ---
6
6
 
7
- **Version**: 1.42.0
8
- **Last Updated**: 2026-02-11
9
- **Audience**: Intermediate
10
- **Estimated Time**: 8 minutes
7
+ ## Mode 1: Takeover Mode
11
8
 
12
- ---
13
-
14
- ## Overview
15
-
16
- sce supports three integration modes to work with different AI coding tools. Each mode offers different levels of automation and suits different workflows.
17
-
18
- ```mermaid
19
- graph TD
20
- A[sce Integration] --> B[Native Integration]
21
- A --> C[Manual Export]
22
- A --> D[Watch Mode]
23
- B --> E[AI IDE]
24
- C --> F[Cursor/Claude/VS Code]
25
- D --> G[All Tools]
26
- ```
27
-
28
- ---
29
-
30
- ## Mode 1: Native Integration ⭐
31
-
32
- **Best for:** AI IDE users
33
- **Automation Level:** Fully Automatic
34
- **Setup Complexity:** None (built-in)
35
-
36
- ### How It Works
37
-
38
- With native integration, the AI tool directly accesses sce without any manual steps. The AI can read Specs, export context, and update tasks automatically.
39
-
40
- ```mermaid
41
- sequenceDiagram
42
- participant User
43
- participant AI Tool
44
- participant sce
45
-
46
- User->>AI Tool: "Implement user login"
47
- AI Tool->>sce: Read Spec files directly
48
- sce->>AI Tool: Spec content
49
- AI Tool->>AI Tool: Generate code
50
- AI Tool->>sce: Update task status
51
- AI Tool->>User: Code generated
52
- ```
53
-
54
- ### Supported Tools
55
-
56
- - **AI IDE** - Full native support
57
-
58
- ### Workflow Example
59
-
60
- ```
61
- You: "Implement the user login feature"
62
-
63
- SCE AI:
64
- [Automatically reads .sce/specs/01-00-user-login/]
65
- [Understands requirements and design]
66
- [Generates code]
67
- [Updates tasks.md automatically]
68
-
69
- ✓ Implemented AuthController
70
- ✓ Implemented AuthService
71
- ✓ Updated task 1.1 to complete
72
- ```
73
-
74
- ### Advantages
75
-
76
- - ✅ **Zero manual steps** - AI handles everything
77
- - ✅ **Always up-to-date** - AI reads latest Spec files
78
- - ✅ **Automatic task tracking** - AI updates task status
79
- - ✅ **Seamless workflow** - No context switching
80
-
81
- ### Limitations
82
-
83
- - ❌ **Tool-specific** - Only works with AI IDE currently
84
- - ❌ **Requires compatible AI** - AI must support file system access
85
-
86
- ---
87
-
88
- ## Mode 2: Manual Export
89
-
90
- **Best for:** Claude Code, ChatGPT, Cursor, VS Code + Copilot
91
- **Automation Level:** AI-Driven (for tools with command execution) or Semi-Manual (for web tools)
92
- **Setup Complexity:** Low
93
-
94
- ### How It Works
95
-
96
- The AI tool can directly call sce commands during your conversation. You stay in your familiar AI tool interface - the AI handles sce interaction automatically.
9
+ This is the preferred mode.
97
10
 
98
- ```mermaid
99
- sequenceDiagram
100
- participant User
101
- participant AI Tool
102
- participant sce
103
-
104
- User->>AI Tool: "Implement user login feature"
105
- AI Tool->>sce: sce context export user-login
106
- sce->>AI Tool: context-export.md content
107
- AI Tool->>AI Tool: Generate code based on Spec
108
- AI Tool->>User: Here's the implementation
109
- AI Tool->>sce: Update tasks.md
110
- ```
111
-
112
- **Note:** For AI tools without command execution (like ChatGPT web), you can manually export and paste as a fallback.
113
-
114
- ### Supported Tools
115
-
116
- - **Claude Code** - Large context window, excellent understanding
117
- - **ChatGPT** - Good for conversational development
118
- - **Cursor** - IDE integration with AI pair programming
119
- - **VS Code + Copilot** - Inline suggestions with context
120
- - **Any AI tool** - Works with any tool that accepts text input
11
+ Use it when the AI runtime can read files, execute commands, and write changes in the repo.
121
12
 
122
- ### Workflow Example
13
+ ### Characteristics
123
14
 
124
- **With AI tools that can execute commands (Cursor, Windsurf, Claude Desktop):**
15
+ - SCE takes over the project with `sce adopt`
16
+ - AI reads `.sce/README.md`, steering, and active Spec files
17
+ - work is staged through `studio`, `spec`, `task`, `project`, and `semantic` commands
18
+ - artifacts are written under governed Spec directories
125
19
 
126
- ```
127
- You: "I have a Spec for user login at 01-00-user-login.
128
- Please implement task 1.1: Create AuthController"
129
-
130
- AI Tool:
131
- [Executes: sce context export 01-00-user-login]
132
- [Reads the exported context]
133
- [Generates AuthController code]
134
- [Updates tasks.md automatically]
135
-
136
- ✓ Created AuthController with login/logout methods
137
- ✓ Updated task 1.1 to complete
138
- ```
139
-
140
- **With web-based AI tools (ChatGPT, Claude web):**
20
+ ### Typical Commands
141
21
 
142
22
  ```bash
143
- # You run this once
144
- sce context export 01-00-user-login
145
- cat .sce/specs/01-00-user-login/context-export.md | pbcopy
146
-
147
- # Then paste into AI tool
148
- You: "Here's my Spec context: [paste]
149
- Please implement task 1.1: Create AuthController"
150
-
151
- AI: [Generates code based on your Spec]
152
-
153
- # You update tasks manually
154
- # Edit .sce/specs/01-00-user-login/tasks.md
23
+ sce status
24
+ sce studio plan --goal "continue current work" --json
25
+ sce spec bootstrap --name 01-00-example --scene scene.example --non-interactive
26
+ sce spec pipeline run --spec 01-00-example --scene scene.example
27
+ sce spec gate run --spec 01-00-example --scene scene.example --json
155
28
  ```
156
29
 
157
- ### Advantages
158
-
159
- - ✅ **Works with any AI tool** - Universal compatibility
160
- - ✅ **AI can call sce directly** - For tools with command execution
161
- - ✅ **Fallback to manual** - Copy-paste for web-based tools
162
- - ✅ **Simple setup** - No configuration needed
163
- - ✅ **Reliable** - No dependencies on special integrations
164
-
165
- ### Limitations
30
+ ### Use This For
166
31
 
167
- - **Varies by tool** - Command execution depends on AI tool capabilities
168
- - **Manual fallback** - Web-based tools require copy-paste
169
- - ❌ **Context refresh** - May need to re-export after Spec changes (unless using Watch Mode)
170
-
171
- ### Optimization Tips
172
-
173
- **Create shell aliases for faster export:**
174
-
175
- ```bash
176
- # Add to ~/.bashrc or ~/.zshrc
177
- alias sce-clip='sce context export $1 && cat .sce/specs/$1/context-export.md | pbcopy && echo "✅ Context copied to clipboard"'
178
-
179
- # Usage
180
- sce-clip 01-00-user-login
181
- # Now just paste into your AI tool
182
- ```
183
-
184
- **Generate task-specific prompts:**
185
- ```bash
186
- # Instead of exporting entire Spec
187
- sce prompt generate 01-00-user-login 1.1
188
-
189
- # Generates focused prompt for just task 1.1
190
- ```
32
+ - Codex CLI
33
+ - Claude Code
34
+ - Kiro
35
+ - shell-capable IDE assistants
191
36
 
192
37
  ---
193
38
 
194
- ## Mode 3: Watch Mode 🔄
195
-
196
- **Best for:** Frequent Spec changes, team collaboration
197
- **Automation Level:** Automatic (after setup)
198
- **Setup Complexity:** Medium
199
-
200
- ### How It Works
201
-
202
- sce monitors your Spec files for changes and automatically re-exports context. Your AI tool can always access the latest context without manual export.
203
-
204
- ```mermaid
205
- sequenceDiagram
206
- participant User
207
- participant sce Watch
208
- participant Spec Files
209
- participant AI Tool
210
-
211
- User->>Spec Files: Edit requirements.md
212
- Spec Files->>sce Watch: File changed event
213
- sce Watch->>sce Watch: Auto-export context
214
- sce Watch->>Spec Files: Update context-export.md
215
- User->>AI Tool: Use latest context
216
- AI Tool->>Spec Files: Read context-export.md
217
- ```
39
+ ## Mode 2: Compatibility Export Mode
218
40
 
219
- ### Supported Tools
41
+ Use this only when the AI runtime cannot reliably execute SCE inside the repo.
220
42
 
221
- - **All tools** - Works with any AI tool
222
- - **Best with:** Windsurf, Cline (can execute commands)
223
- - **Good with:** Cursor, Claude (manual context refresh)
43
+ ### Characteristics
224
44
 
225
- ### Setup
45
+ - operator exports governed context manually
46
+ - AI works from exported context blocks
47
+ - final repo state still returns to SCE governance
226
48
 
227
- **1. Initialize watch mode:**
228
- ```bash
229
- sce watch init
230
- ```
49
+ ### Typical Commands
231
50
 
232
- **2. Install auto-export preset:**
233
51
  ```bash
234
- sce watch install context-export
52
+ sce context export 01-00-example
53
+ sce prompt generate 01-00-example 1.1
235
54
  ```
236
55
 
237
- **3. Start watching:**
238
- ```bash
239
- sce watch start
240
- ```
56
+ ### Use This For
241
57
 
242
- **4. Verify it's running:**
243
- ```bash
244
- sce watch status
245
- ```
246
-
247
- Expected output:
248
- ```
249
- Watch Mode: Active
250
- Watching: .sce/specs/**/*.md
251
- Actions: context-export
252
- Last execution: 2 minutes ago
253
- ```
254
-
255
- ### Workflow Example
256
-
257
- **With watch mode running:**
258
-
259
- 1. **Edit your Spec** (e.g., add a new requirement)
260
- ```bash
261
- # Edit .sce/specs/01-00-user-login/requirements.md
262
- ```
263
-
264
- 2. **sce automatically detects the change**
265
- ```
266
- [Watch Mode] Detected change: requirements.md
267
- [Watch Mode] Exporting context for 01-00-user-login...
268
- [Watch Mode] ✓ Context exported
269
- ```
270
-
271
- 3. **Use updated context immediately**
272
- ```bash
273
- # Context is already up-to-date
274
- cat .sce/specs/01-00-user-login/context-export.md | pbcopy
275
- ```
276
-
277
- ### Advantages
278
-
279
- - ✅ **Always up-to-date** - Context auto-updates on Spec changes
280
- - ✅ **No manual export** - Set it and forget it
281
- - ✅ **Great for iteration** - Refine Specs without re-exporting
282
- - ✅ **Team-friendly** - Everyone gets latest context
283
-
284
- ### Limitations
285
-
286
- - ❌ **Requires setup** - Initial configuration needed
287
- - ❌ **Background process** - Must keep watch mode running
288
- - ❌ **Resource usage** - Monitors file system continuously
289
-
290
- ### Advanced Configuration
291
-
292
- **Custom watch patterns:**
293
- ```json
294
- {
295
- "patterns": [
296
- ".sce/specs/**/requirements.md",
297
- ".sce/specs/**/design.md",
298
- ".sce/specs/**/tasks.md"
299
- ],
300
- "actions": [
301
- {
302
- "name": "auto-export",
303
- "command": "sce context export ${spec-name}"
304
- }
305
- ]
306
- }
307
- ```
308
-
309
- **Multiple actions:**
310
- ```bash
311
- # Install multiple presets
312
- sce watch install context-export
313
- sce watch install prompt-regen
314
- sce watch install auto-sync
315
- ```
58
+ - read-only chat tools
59
+ - restricted enterprise assistants
60
+ - temporary fallback during tool onboarding
316
61
 
317
62
  ---
318
63
 
319
- ## Choosing the Right Mode
64
+ ## Mode 3: Native Runtime Mode
320
65
 
321
- ### Decision Matrix
66
+ This is the long-term direction SCE is actively building toward.
322
67
 
323
- | Factor | Native | Manual Export | Watch Mode |
324
- |--------|--------|---------------|------------|
325
- | **Setup Time** | None | None | 5 minutes |
326
- | **Automation** | Full | None | Partial |
327
- | **Tool Support** | SCE only | All tools | All tools |
328
- | **Context Freshness** | Always fresh | Manual refresh | Auto-refresh |
329
- | **Task Tracking** | Automatic | Manual | Manual |
330
- | **Best For** | SCE users | Quick start | Active development |
68
+ ### Characteristics
331
69
 
332
- ### Recommendations by Tool
70
+ - less dependency on host-tool-specific workflows
71
+ - SCE-native semantic observation, replay, evaluation, and backflow
72
+ - operator control plane and shared-source governance move into SCE-owned surfaces
333
73
 
334
- **AI IDE:**
335
- - ✅ Use **Native Integration** (built-in)
336
- - No setup needed, fully automatic
74
+ ### Use This For
337
75
 
338
- **Windsurf / Cline:**
339
- - Use **Manual Export** initially
340
- - ⭐ Upgrade to **Watch Mode** for active projects
341
- - These tools can execute sce commands directly
342
-
343
- **Claude Code / ChatGPT:**
344
- - ✅ Use **Manual Export**
345
- - Create shell aliases for faster workflow
346
- - Use task-specific prompts for large Specs
347
-
348
- **Cursor:**
349
- - ✅ Use **Manual Export** with prompt generation
350
- - ⭐ Consider **Watch Mode** for frequently changing Specs
351
- - Cursor can read updated context files automatically
352
-
353
- **VS Code + Copilot:**
354
- - ✅ Use **Manual Export**
355
- - Reference Spec files in code comments
356
- - Copilot reads project files automatically
357
-
358
- **Generic AI Tools:**
359
- - ✅ Use **Manual Export**
360
- - Universal compatibility
361
- - Simple copy-paste workflow
76
+ - projects investing in SCE as the long-term control plane
77
+ - scenarios where host tool behavior should become an interchangeable shell
362
78
 
363
79
  ---
364
80
 
365
- ## Hybrid Approaches
81
+ ## Mode Selection Rule
366
82
 
367
- ### Manual Export + Watch Mode
83
+ Choose the strongest mode your environment supports:
368
84
 
369
- Use watch mode to keep context fresh, but still manually provide context to AI:
85
+ 1. `Takeover Mode`
86
+ 2. `Compatibility Export Mode`
87
+ 3. `Native Runtime Mode` as features become available in your rollout path
370
88
 
371
- ```bash
372
- # Terminal 1: Keep watch mode running
373
- sce watch start
374
-
375
- # Terminal 2: Work normally
376
- # Edit Specs, context auto-updates
377
- # Copy latest context when needed
378
- cat .sce/specs/01-00-user-login/context-export.md | pbcopy
379
- ```
380
-
381
- **Benefits:**
382
- - Context always fresh
383
- - Full control over when to provide context to AI
384
- - Best of both worlds
385
-
386
- ### Native + Manual Export
387
-
388
- Use native integration primarily, but export for sharing:
389
-
390
- ```bash
391
- # Work with AI IDE (native integration)
392
- # When sharing with team member using different tool:
393
- sce context export 01-00-user-login
394
- # Send context-export.md to teammate
395
- ```
396
-
397
- **Benefits:**
398
- - Seamless personal workflow
399
- - Easy collaboration with non-SCE users
89
+ Do not default backward to compatibility mode when direct governed execution is available.
400
90
 
401
91
  ---
402
92
 
403
- ## Context Flow Visualization
404
-
405
- ### Complete Context Flow
406
-
407
- ```mermaid
408
- sequenceDiagram
409
- participant Dev as Developer
410
- participant sce as sce
411
- participant Spec as Spec Files
412
- participant AI as AI Tool
413
-
414
- Dev->>sce: Create Spec
415
- sce->>Spec: Generate requirements.md, design.md, tasks.md
416
- Dev->>Spec: Edit Spec files
417
-
418
- alt Native Integration
419
- AI->>Spec: Read files directly
420
- AI->>Dev: Generate code
421
- AI->>Spec: Update tasks.md
422
- else Manual Export
423
- Dev->>sce: sce context export
424
- sce->>Spec: Generate context-export.md
425
- Dev->>AI: Provide context
426
- AI->>Dev: Generate code
427
- Dev->>Spec: Update tasks.md
428
- else Watch Mode
429
- Spec->>sce: File change event
430
- sce->>Spec: Auto-generate context-export.md
431
- Dev->>AI: Provide context
432
- AI->>Dev: Generate code
433
- Dev->>Spec: Update tasks.md
434
- end
435
- ```
436
-
437
- ---
438
-
439
- ## Best Practices
440
-
441
- ### For All Modes
442
-
443
- 1. **Keep Specs updated** - Outdated Specs lead to incorrect code
444
- 2. **Use version control** - Commit Spec changes
445
- 3. **Review AI output** - AI follows Spec, but verify correctness
446
- 4. **Update tasks promptly** - Track progress accurately
447
-
448
- ### For Manual Export
93
+ ## Shared Rules Across All Modes
449
94
 
450
- 1. **Create aliases** - Speed up export workflow
451
- 2. **Use task-specific prompts** - For large Specs
452
- 3. **Re-export after changes** - Keep context fresh
453
- 4. **Include steering rules** - For consistent AI behavior
454
-
455
- ### For Watch Mode
456
-
457
- 1. **Start watch at project start** - Make it part of your routine
458
- 2. **Check watch status** - Ensure it's running
459
- 3. **Monitor logs** - Catch any export errors
460
- 4. **Stop when not needed** - Save system resources
461
-
462
- ---
463
-
464
- ## Troubleshooting
465
-
466
- ### Native Integration Issues
467
-
468
- **Problem:** AI doesn't see Spec files
469
- **Solution:** Ensure `.sce/specs/` directory exists and has correct permissions
470
-
471
- ### Manual Export Issues
472
-
473
- **Problem:** Context file too large for AI tool
474
- **Solution:** Use task-specific prompts:
475
- ```bash
476
- sce prompt generate spec-name task-id
477
- ```
478
-
479
- **Problem:** AI doesn't follow Spec
480
- **Solution:** Be explicit in prompt: "Strictly follow the design document"
481
-
482
- ### Watch Mode Issues
483
-
484
- **Problem:** Watch mode not detecting changes
485
- **Solution:**
486
- ```bash
487
- sce watch stop
488
- sce watch start
489
- ```
490
-
491
- **Problem:** Context not updating
492
- **Solution:** Check watch logs:
493
- ```bash
494
- sce watch logs
495
- ```
496
-
497
- ---
498
-
499
- ## Related Documentation
500
-
501
- - **[Quick Start Guide](quick-start.md)** - Get started with sce
502
- - **[Tool-Specific Guides](tools/)** - Detailed guides for each AI tool
503
- - **[Spec Workflow](spec-workflow.md)** - Understanding Specs
504
- - **[Command Reference](command-reference.md)** - All sce commands
95
+ - `Four Teachings + Little Nine` remain the supreme execution baseline
96
+ - the project may host multiple collaboration channels in parallel
97
+ - `CURRENT_CONTEXT.md` is summary-only
98
+ - generated artifacts default to the active Spec subtree
99
+ - if no active Spec exists yet, create or route through a governed general Spec
100
+ - repeated failed localization attempts must move into errorbook + bisection-style debug convergence
505
101
 
506
102
  ---
507
103
 
508
- ## Summary
509
-
510
- **Three Integration Modes:**
511
-
512
- 1. **Native Integration** - Fully automatic (AI IDE)
513
- 2. **Manual Export** - Universal compatibility (all tools)
514
- 3. **Watch Mode** - Auto-refresh context (all tools)
104
+ ## Related Docs
515
105
 
516
- **Choose based on:**
517
- - Your AI tool's capabilities
518
- - Your workflow preferences
519
- - Project activity level
520
-
521
- **Start simple, upgrade as needed:**
522
- ```
523
- Manual Export → Watch Mode → Native Integration
524
- ```
106
+ - [Quick Start with AI Tools](./quick-start-with-ai-tools.md)
107
+ - [Integration Philosophy](./integration-philosophy.md)
108
+ - [Command Reference](./command-reference.md)
525
109
 
526
110
  ---
527
111
 
528
- **Version**: 1.42.0
529
- **Last Updated**: 2026-02-11
112
+ **Version**: 3.6.67
113
+ **Last Updated**: 2026-03-29