@shgroup/dsh-serenity-hooks 1.88.0 → 1.90.0

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/dsh.plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "dsh-serenity-hooks",
3
- "version": "1.88.0",
3
+ "version": "1.90.0",
4
4
  "main": "lib/index.js",
5
5
  "description": "宁静号 ACC harness(Native Cordis 插件):给 DSH 装一个「AI 工作区」——14 个工具(container_fs/cognitive_trajectory/dashboard/container_git/msm/praxis/ontology/serenity-skill-creator/cheap-worker/localstore/container_admin;另三个 im-bridge/acc-diag/diagram 按配置条件出现)+ 机械约束(安全模式/工作区围墙/密钥守卫)+ 认知轨迹日志与原地重建 + 网页登录入口/IM 桥/认知轨迹唤醒注册表。轨迹声明 = 轨迹目录下的 trajectory.json(约束面 + 旧标识 uid + CRO 机器绑定 cro.host;旧名 trajectory-constraint.json / skiff.json 仍在读取族里);轨迹提示词 = 轨迹目录下的 PROMPT.md(一条轨迹「是谁、按什么章程工作」,所有轨迹通用,追加在容器层与质量层之后,不替换它们)。适配 DSH 0.1.7-rc.1 / 0.2.0-rc.1 / 0.2.1-rc.1(三档,deepseek-ai/deepseek-harness)。",
6
6
  "engines": {
package/lib/cro/log.d.ts CHANGED
@@ -104,6 +104,20 @@ export interface CroWakeLogEntry {
104
104
  * ⛔ 不要把它折回 `ok:true`(那是假成功),也不要折成 `fail`(那是假失败,见 `:171` 语义)。
105
105
  */
106
106
  notReady?: true;
107
+ /**
108
+ * 🔴 **"我判了,但决定不叫"**(`ok=false` 时才有意义)—— 2026-10-23 A102。
109
+ *
110
+ * 现状(修前):`no-wake` 只累加调度器的一个计数,**一个字都不落本档**
111
+ * ⇒ 该轨迹的流水**永久停在上一次真唤起处**。
112
+ * ⇒ 于是 **「我判了、只是不叫」与「我根本没被评估」在读数上完全一样** ——
113
+ * 实测:某轨迹的流水停在 `01:40`,owner 据此认为"守卫从那以后就没工作过",
114
+ * 而真相是它**此后每个 tick 都在被评估**,只是判定为"不打扰"。
115
+ *
116
+ * 🔴 **这是 D209 的同族第三条**,判据同源:**可以不出声地判"不打扰",但"判过"本身要留痕**。
117
+ * 四态因此显式分开:`ok` / `fail` / `not-ready` / `no-wake`。
118
+ * ⛔ 不要把它折进 `ok`(那会让人以为"叫过了"),也不要折进 `fail`(它不是失败)。
119
+ */
120
+ noWake?: true;
107
121
  /** 投递方式(`已投递(live)` / `已投递(冷载入)`)或失败原因 */
108
122
  detail: string;
109
123
  /** 调度器 tick 计数(便于与 `acc-diag` ①b 对齐) */
@@ -126,6 +140,8 @@ export interface CroWakeLogInput {
126
140
  ok: boolean;
127
141
  /** 🔴 `true` ⇒ 记作 `not-ready`(没送成,但**不算失败**)。见 {@link CroWakeLogEntry.notReady} */
128
142
  notReady?: boolean;
143
+ /** 🔴 `true` ⇒ 记作 `no-wake`(**判了、但不叫**,不是失败)。见 {@link CroWakeLogEntry.noWake} */
144
+ noWake?: boolean;
129
145
  detail: string;
130
146
  tick: number;
131
147
  reason: string | null;