scene-capability-engine 3.3.21 → 3.3.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scene-capability-engine",
3
- "version": "3.3.21",
3
+ "version": "3.3.23",
4
4
  "description": "SCE (Scene Capability Engine) - A CLI tool and npm package for spec-driven development with AI coding assistants.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -0,0 +1,13 @@
1
+ {
2
+ "enabled": true,
3
+ "search_mode": "remote",
4
+ "cache_file": ".sce/errorbook/registry-cache.json",
5
+ "sources": [
6
+ {
7
+ "name": "central",
8
+ "enabled": true,
9
+ "url": "https://raw.githubusercontent.com/heguangyong/sce-errorbook-registry/main/registry/errorbook-registry.json",
10
+ "index_url": "https://raw.githubusercontent.com/heguangyong/sce-errorbook-registry/main/registry/errorbook-registry.index.json"
11
+ }
12
+ ]
13
+ }
@@ -147,6 +147,15 @@
147
147
 
148
148
  **硬规则**: ❌ 禁止通过关闭校验、跳过测试、降级关键路径、屏蔽异常等方式“假修复”
149
149
 
150
+ **失败显式原则**: 核心路径禁止吞错继续。无法确认安全修复时,必须 `fail-fast + 明确告警`,不得用静默回退伪装成功
151
+
152
+ **兜底治理原则**: 允许临时兜底仅用于止血,不得替代根因修复;临时兜底必须结构化记录:
153
+ 1) 退出条件(exit criteria)
154
+ 2) 清理任务(cleanup task/spec)
155
+ 3) 截止时间(deadline)
156
+
157
+ **发布门禁**: 若存在临时兜底但缺少上述治理信息,或已超过截止时间未清理,默认阻断发布(`errorbook release-gate`)
158
+
150
159
  **复杂问题定位方法**: 优先使用 debug 日志与可观测信号定位(输入、输出、关键分支、异常栈、上下文参数),先还原执行路径再下结论
151
160
 
152
161
  **修复后清理要求**: 问题修复并验证通过后,必须清理临时 debug 日志、临时埋点、一次性脚本和调试开关;需要长期保留的日志必须转为可配置观测项且默认关闭
@@ -182,4 +191,4 @@
182
191
 
183
192
  ---
184
193
 
185
- v17.0 | 2026-02-26 | 新增 Scene 主会话强制治理原则
194
+ v18.0 | 2026-02-27 | 强化根因修复与临时兜底发布门禁原则