@shgroup/dsh-serenity-hooks 1.123.0 → 1.124.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.123.0",
3
+ "version": "1.124.0",
4
4
  "main": "lib/index.js",
5
5
  "description": "宁静号 ACC harness(Native Cordis 插件):给 DSH 装一个「AI 工作区」——13 个工具(container_fs/cognitive_trajectory/dashboard/container_git/msm/praxis/ontology/serenity-skill-creator/localstore/container_admin;另三个 im-bridge/diagram/reconstruct 按条件出现)+ 机械约束(安全模式/工作区围墙/密钥守卫)+ 认知轨迹日志与原地重建 + 网页登录入口/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/index.js CHANGED
@@ -6,7 +6,7 @@ import { n as checkLocalstoreGitCompliance, o as readStore, s as runLocalStore,
6
6
  import { d as findPackageRoot, i as constraintSystemPromptSource, l as resolveConstraintSystemPrompt, r as constraintCognitiveTrajectory, t as TRAJECTORY_CONSTRAINT_HINT, u as ACC_VERSION } from "./rules-BYeykzys.js";
7
7
  import { C as runMsmAsync, S as runMsm, T as setWeixinSendEndpoint, _ as ACC_CATALOG, a as loadOpencodeSkill, b as findEntry, c as summarizeHostContract, f as forgetNonCccToolVisibility, g as forgetToolVisibility, h as syncToolVisibility, i as listOpencodeSkillDirs, m as registerGuards, n as readDshVersion, o as compareSemver, r as setSafeMode, s as hostContractReport, t as getStatus, v as CCC_CONFIG_REFERENCE, w as docsPointer, x as loadMsmEntries } from "./status-O7MPoKFy.js";
8
8
  import { c as replacesDefaultIdentity, i as listTrajectoryConstraints, l as trajectoryCodeForSession, n as findDirNameByCode, o as readTrajectoryConstraintAt, r as isTrajectoryConstrained, s as readTrajectoryConstraintByCode, t as TRAJECTORY_CONSTRAINT_FILENAME } from "./profile-DpxC9HtB.js";
9
- import { A as TRAJECTORY_PROMPT_FILENAME, C as recordToolUsage, D as buildResourceNameSuffix, E as buildResourceIndex, O as isSafeSkillName, S as verifyTotpCode, T as SKILL_ONTOLOGY_FILE, _ as projectKnownWorkspaces, a as trajectoryConstraintFor, b as FACE_PORTS, c as trajectoryWorkspaceMdPath, d as splitModel, f as registerCognitiveTrajectorySkillSection, g as migrateLegacyLocalstore, h as applyWirePatch, i as getTrajectoryAgent, j as hasTrajectoryPrompt, k as truncateContent, l as unregisterTrajectorySession, m as registerEntrySkillSectionGlobal, n as deliverToTrajectory, o as trajectoryConstraintMsmGate, p as registerEntrySkillSection, r as ensureWorkspacePromptSection, s as trajectoryConstraintParticipates, t as createTrajectoryAgent, u as workspaceCognitiveTrajectoryLine, v as readAdvancedSettings, w as REFERENCE_DIR, x as MECHANISM_PORTS, y as toWire } from "./session-B1a9L747.js";
9
+ import { A as TRAJECTORY_PROMPT_FILENAME, C as recordToolUsage, D as buildResourceNameSuffix, E as buildResourceIndex, O as isSafeSkillName, S as verifyTotpCode, T as SKILL_ONTOLOGY_FILE, _ as projectKnownWorkspaces, a as trajectoryConstraintFor, b as FACE_PORTS, c as trajectoryWorkspaceMdPath, d as splitModel, f as registerCognitiveTrajectorySkillSection, g as migrateLegacyLocalstore, h as applyWirePatch, i as getTrajectoryAgent, j as hasTrajectoryPrompt, k as truncateContent, l as unregisterTrajectorySession, m as registerEntrySkillSectionGlobal, n as deliverToTrajectory, o as trajectoryConstraintMsmGate, p as registerEntrySkillSection, r as ensureWorkspacePromptSection, s as trajectoryConstraintParticipates, t as createTrajectoryAgent, u as workspaceCognitiveTrajectoryLine, v as readAdvancedSettings, w as REFERENCE_DIR, x as MECHANISM_PORTS, y as toWire } from "./session-B5CKVEIF.js";
10
10
  import { a as ACC_MESSAGE_KIND, d as readLastBound, f as resolveSessionCognitiveTrajectoryLabel, i as toMessage, l as findTrajectoryOfSession, n as deliver, o as PLUGIN_SOURCE, r as makeInjection, s as appendBound, u as listBoundSessionIds } from "./injection-CKx49Mlf.js";
11
11
  import { _ as WAKE_CATCH_UP_MS, c as formatPendingTools, d as listRunningSessionIds, f as registerCroTurnTracking, g as CARRIER_OPENING_MARK, i as sendToCognitiveTrajectory, l as projectDirNameForCwd, m as buildCroSnapshot, n as registerWakeScheduler, o as DEFAULT_LOOKBACK_MS, p as registerDisposer, s as createResumeOne, t as createAndBindTarget, u as scanInterruptedSessions, v as addWake } from "./scheduler-CgjLs5_S.js";
12
12
  import { i as sessionsRootDir } from "./cleanup-CPl1SSaK.js";
@@ -8,13 +8,14 @@
8
8
  *
9
9
  * **完全对齐 opencode-serenity-plugin 的 system.transform 注入内容**(compacting.ts):
10
10
  * 结构(v1.19.8 精简,S142 重建视角 R↓):
11
- * 1. `=== Serenity ACC ===` — 身份(ACC/CCC 模型 + 工具清单)
11
+ * 1. `=== Serenity ACC ===` — 身份(ACC/CCC 模型 + 路径约定;**v1.124.0 起不含工具清单**)
12
12
  * 2. `=== Serenity Metaphor ===` — 世界模型(三层隐喻域:船/航行/船员)
13
13
  * 3. `=== Serenity Principles ===` — 信念/边界(认知容器本体论 + 操作边界,v1.19.8 合并原 Constraints)
14
14
  * 4. `=== Serenity CCE ===` — 时间约束(5 行为约束 + H_op,逐字对齐 osp)
15
15
  * 5. `=== Serenity EAP ===` — 质量(E↑ R↓ S↑ 自检)
16
16
  * 6. 状态块(条件) — Safe Mode / Localstore
17
17
  * 7. SKILL.md 全文 — 该 CCC 顶层入口 skill 全量原文(不截断)
18
+ * 7b. `=== Serenity Tools ===` — **只剩 MSM 调用示例**(v1.124.0:工具清单已删,见 toolsBlock 注释)
18
19
  * 8. `=== Serenity Session ===` — 活跃会话(id + dirName + mdPath + todowrite 首位约定)
19
20
  *
20
21
  * 注册:**全局** ctx `systemPrompt.section`(对齐 plan-mode 官方惯例),text 回调按
@@ -25,14 +26,42 @@
25
26
  */
26
27
  import type { Agent } from '@deepseek-ai/dsh-agent';
27
28
  import type { Context } from 'cordis';
28
- /** 1) 身份块:ACC 身份 + CCC 名 + 平台工具说明(需求③ S142:工具清单移出为独立 toolsBlock 放装配末尾——身份先行、工具参考殿后) */
29
+ /**
30
+ * 1) 身份块:ACC 身份 + CCC 名(需求③ S142:工具清单移出为独立 toolsBlock 放装配末尾——身份先行、工具参考殿后)
31
+ *
32
+ * 🔴 **v1.124.0(owner 2026-11-09 令)��「删掉与宿主重复的工具面叙述」** —— 两处删除,判据同一条:
33
+ * **工具面在宿主 schema 与 `REGISTERED_TOOLS` 里各有一份权威,提示词里再抄一份 → 工具退役时会静默撒谎**(D151 同族)。
34
+ * - 删 `The DSH platform tools remain available too (read/write/…/goal and more) — …` 整句:
35
+ * 宿主自己注入这些工具的 schema,点名它们**零新增信息**;且这份名单**没人会在工具增减时同步**。
36
+ * - 删 `The complete built-in tool list is at the end of this prompt under the "Serenity Tools" heading — read it before using any ACC tool.`
37
+ * 指向的那块清单已同批删除 ⇒ 留着就是**指向空处的指针**(比没有更坏:模型会去找)。
38
+ * ⛔ **保留**:ACC/CCC 两行(身份)、CCC 名与路径约定行、`Additional MSMs registered by this CCC …` 一行
39
+ * (MSM 是 CCC 注册的**另一层**,宿主 schema 里没有它,故它不重复)。
40
+ */
29
41
  export declare function identityBlock(root: string): string;
30
42
  /**
31
- * 工具清单块(需求③ S142 用户拍板:工具列表移装配末尾 + MSM 调用示例):
43
+ * 工具块(需求③ S142 用户拍板:工具列表移装配末尾 + MSM 调用示例):
32
44
  * 原 accBlock 内嵌 13 行工具清单 → 独立成块放装配末尾(SKILL 后、Session 前)。
33
- * 身份先行(认知轨迹开头不被 13 行清单干扰)、工具参考殿后(需要时再看)。
34
- * 附带 MSM 调用示例(用户拍板:顶层提示词加调用方式说明,避免偶发调用错误——
35
- * 模型对 msm 参数面/协议 flag 理解不稳)。
45
+ * 身份先行(认知轨迹开头不被清单干扰)、工具参考殿后(需要时再看)。
46
+ *
47
+ * 🔴🔴 **v1.124.0(owner 2026-11-09 令「dsh 自身的提示词能不能不要注入了,省点空间」):
48
+ * 10 行工具清单整块删除,只留 MSM 调用示例。** 判据三条,都是可复算的:
49
+ * 1. **它是第二真相源**:工具面已有两份权威 —— 宿主注入的工具 schema、`kernel/invariant.ts`
50
+ * 的 `REGISTERED_TOOLS`。清单是第三份抄本 ⇒ 工具改名/退役时**没人会记得改这里**,
51
+ * 于是它对模型**静默撒谎**(D151 同族:错的指引比没有指引更坏)。
52
+ * 2. **它提供不了 schema 提供不了的信息**:`msm`、`container_fs` 等每一行的内容
53
+ * (子命令、flag、返回形态)都在 schema 与 `--help` 里,且那里才是可执行的真身。
54
+ * 3. **实测体量**:本块 3,451 chars(2026-11-09 本机称重,含 10 行清单)。
55
+ * 📌 **如实登记代价(D255:条件与保证同句说)**:删掉清单后,模型失去"一眼看到全部 ACC 工具名"的入口。
56
+ * 但那个入口**本来就不可靠**(清单长期滞后:`ontology` / `serenity-skill-creator` / `reconstruct`
57
+ * 三者的增减史里,本块都曾落后于 `REGISTERED_TOOLS`)。可靠的替代路径 = 宿主工具 schema(每轮都在),
58
+ * 且 `msm()` 无参仍给出 CCC 层目录。
59
+ *
60
+ * ⚠️ **标题从 `=== Serenity Tools ===` 改为 `=== Serenity MSM ===`**:块里已经没有工具清单了,
61
+ * 仍叫 "Tools" 会让模型按"工具总表"来读这段(E↑:标题是这段文字的唯一预告)。
62
+ * 牵连的读数器(`tests/system-prompt.test.ts` / `tests/osp-alignment.test.ts` /
63
+ * `tests/trajectory-prompt-injection.test.ts` / `bench/trajectory-prompt-probe.mjs`)**同批改** ——
64
+ * 漏改一个就会得到一个**永远找不到该标题**的探针(`indexOf === -1`)。
36
65
  */
37
66
  export declare function toolsBlock(): string;
38
67
  /** 2) CCE 块:逐字对齐 osp(CCE 5 行为约束 + H_op 操作熵) */
@@ -103,7 +132,9 @@ export declare function sessionBlock(root: string, scope?: string): string;
103
132
  * 认知展开顺序:我是谁 → 我所在的世界 → 为什么 → 如何一致 → 产物标准 → 当前状态 → 上下文 → 工具参考 → 会话。
104
133
  *
105
134
  * 需求③(S142 用户拍板):工具清单从 accBlock 移出为独立 toolsBlock,
106
- * 放 SKILL 后 Session 前(工具参考殿后,身份先行不被 13 行清单干扰)。
135
+ * 放 SKILL 后 Session 前(工具参考殿后,身份先行不被清单干扰)。
136
+ * 🔴 **v1.124.0**:那块清单**已被 owner 令删掉**(判据见 `toolsBlock` 头部),
137
+ * 现在该位置只剩 MSM 调用示例(标题也改成 `=== Serenity MSM ===`)。
107
138
  *
108
139
  * v1.23.1 persona(彩蛋):persona.mode 配置 → EAP 块替换为 Persona 块(输出约束),
109
140
  * Principles 剥离 MSM 原则段(指令遵循约束)——用户文本承接两处风格;本体论/关系段/
@@ -40,6 +40,20 @@
40
40
  * ### ③ 不改任何既有块的语义
41
41
  * 它自成一块(`=== Serenity Work Register ===`),不替换 EAP / Principles / CCE,
42
42
  * 也不与它们冲突:EAP 管**质量**,本块管**开场与声明**。
43
+ *
44
+ * ## 🔴 第 7 条(v1.124.0,owner 2026-11-09 令)
45
+ *
46
+ * > 「约束里面调整下,避免一次向用户确认超过 5 个问题」
47
+ *
48
+ * **这条约束的实际形态必须写清,否则下一个人会去找一个不存在的工具参数**:
49
+ * `ask_user_question` 已被 `seams/guards.ts` 的 `ALWAYS_DENY_TOOLS` **恒隐**
50
+ * ⇒ 模型手上**没有**那个工具,也就不存在"调用时参数 ≤ 5"这回事。
51
+ * ⇒ 本条约束的是**正文里一次提出多少个待裁决问题**("你要选哪个?"这类写在回答里的话),
52
+ * ⛔ 不是任何工具的入参上限。
53
+ * ⇒ 为什么需要它:`SESSION.md` 的 `## 待 owner 裁决` 段曾一次堆十几条;而一次问 >5 个
54
+ * 实际是把**决策负担**整体推回给用户(与第 4 条"不要重复要许可"同一根:都在减少他付的成本)。
55
+ * ⇒ 为什么给"默认值"而不是只给上限:只说"少问"会变成"该问的也不敢问";要求每条附默认值,
56
+ * 等于让"不问"成为一个**可执行选项**(缺省走哪个已经是明说的)。
43
57
  */
44
58
  /**
45
59
  * 本块正文。
@@ -1483,6 +1483,20 @@ function humorBlock(seed, bits, enabled) {
1483
1483
  * ### ③ 不改任何既有块的语义
1484
1484
  * 它自成一块(`=== Serenity Work Register ===`),不替换 EAP / Principles / CCE,
1485
1485
  * 也不与它们冲突:EAP 管**质量**,本块管**开场与声明**。
1486
+ *
1487
+ * ## 🔴 第 7 条(v1.124.0,owner 2026-11-09 令)
1488
+ *
1489
+ * > 「约束里面调整下,避免一次向用户确认超过 5 个问题」
1490
+ *
1491
+ * **这条约束的实际形态必须写清,否则下一个人会去找一个不存在的工具参数**:
1492
+ * `ask_user_question` 已被 `seams/guards.ts` 的 `ALWAYS_DENY_TOOLS` **恒隐**
1493
+ * ⇒ 模型手上**没有**那个工具,也就不存在"调用时参数 ≤ 5"这回事。
1494
+ * ⇒ 本条约束的是**正文里一次提出多少个待裁决问题**("你要选哪个?"这类写在回答里的话),
1495
+ * ⛔ 不是任何工具的入参上限。
1496
+ * ⇒ 为什么需要它:`SESSION.md` 的 `## 待 owner 裁决` 段曾一次堆十几条;而一次问 >5 个
1497
+ * 实际是把**决策负担**整体推回给用户(与第 4 条"不要重复要许可"同一根:都在减少他付的成本)。
1498
+ * ⇒ 为什么给"默认值"而不是只给上限:只说"少问"会变成"该问的也不敢问";要求每条附默认值,
1499
+ * 等于让"不问"成为一个**可执行选项**(缺省走哪个已经是明说的)。
1486
1500
  */
1487
1501
  /**
1488
1502
  * 本块正文。
@@ -1512,6 +1526,9 @@ function workRegisterText() {
1512
1526
  " Take another path and report what changed.",
1513
1527
  "6. When a detail is missing and a reasonable default exists, proceed with the",
1514
1528
  " default and mark it. Ask only when the answer actually changes the outcome.",
1529
+ "7. Ask at most five questions in one turn, numbered, each with the default you",
1530
+ " would otherwise take. More than five at once is a questionnaire, not a",
1531
+ " decision — split it or take the defaults and say which ones you took.",
1515
1532
  ""
1516
1533
  ].join("\n");
1517
1534
  }
@@ -1676,7 +1693,18 @@ const HIDDEN_LINES = /安全模式|safe-mode|\.serenity-safe-on/;
1676
1693
  function sanitizeSkillContent(content) {
1677
1694
  return content.split("\n").filter((line) => !HIDDEN_LINES.test(line)).join("\n");
1678
1695
  }
1679
- /** 1) 身份块:ACC 身份 + CCC 名 + 平台工具说明(需求③ S142:工具清单移出为独立 toolsBlock 放装配末尾——身份先行、工具参考殿后) */
1696
+ /**
1697
+ * 1) 身份块:ACC 身份 + CCC 名(需求③ S142:工具清单移出为独立 toolsBlock 放装配末尾——身份先行、工具参考殿后)
1698
+ *
1699
+ * 🔴 **v1.124.0(owner 2026-11-09 令)��「删掉与宿主重复的工具面叙述」** —— 两处删除,判据同一条:
1700
+ * **工具面在宿主 schema 与 `REGISTERED_TOOLS` 里各有一份权威,提示词里再抄一份 → 工具退役时会静默撒谎**(D151 同族)。
1701
+ * - 删 `The DSH platform tools remain available too (read/write/…/goal and more) — …` 整句:
1702
+ * 宿主自己注入这些工具的 schema,点名它们**零新增信息**;且这份名单**没人会在工具增减时同步**。
1703
+ * - 删 `The complete built-in tool list is at the end of this prompt under the "Serenity Tools" heading — read it before using any ACC tool.`
1704
+ * 指向的那块清单已同批删除 ⇒ 留着就是**指向空处的指针**(比没有更坏:模型会去找)。
1705
+ * ⛔ **保留**:ACC/CCC 两行(身份)、CCC 名与路径约定行、`Additional MSMs registered by this CCC …` 一行
1706
+ * (MSM 是 CCC 注册的**另一层**,宿主 schema 里没有它,故它不重复)。
1707
+ */
1680
1708
  function identityBlock(root) {
1681
1709
  const cccName = basename(root);
1682
1710
  return [
@@ -1689,42 +1717,42 @@ function identityBlock(root) {
1689
1717
  "the runtime instance of an Abstract Cognitive Container (ACC).",
1690
1718
  "The ACC (this plugin) is a cognitive container harness: it provides",
1691
1719
  "deterministic tools, mechanical constraints, and session continuity.",
1692
- "The complete built-in tool list is at the end of this prompt under the",
1693
- "\"Serenity Tools\" heading — read it before using any ACC tool.",
1694
1720
  "",
1695
1721
  " ℹ️ Use relative paths from the CCC root for CCC-internal file operations (read/write/edit/glob/grep etc.), e.g. AGENT_SESSIONS/2026-08-14--S134--x/SESSION.md; Root / absolute SESSION.md paths are identifiers only, not tool arguments",
1696
1722
  "",
1697
- "The DSH platform tools remain available too (read/write/edit/glob/grep/web_search/ask_user_question/subagent/workflow/goal and more) — the ACC tools are the serenity-native layer, not the only tools.",
1698
- "",
1699
1723
  "Additional MSMs registered by this CCC are available — call msm() with no arguments to list them, or msm(\"<name>\") to execute one.",
1700
1724
  ""
1701
1725
  ].join("\n");
1702
1726
  }
1703
1727
  /**
1704
- * 工具清单块(需求③ S142 用户拍板:工具列表移装配末尾 + MSM 调用示例):
1728
+ * 工具块(需求③ S142 用户拍板:工具列表移装配末尾 + MSM 调用示例):
1705
1729
  * 原 accBlock 内嵌 13 行工具清单 → 独立成块放装配末尾(SKILL 后、Session 前)。
1706
- * 身份先行(认知轨迹开头不被 13 行清单干扰)、工具参考殿后(需要时再看)。
1707
- * 附带 MSM 调用示例(用户拍板:顶层提示词加调用方式说明,避免偶发调用错误——
1708
- * 模型对 msm 参数面/协议 flag 理解不稳)。
1730
+ * 身份先行(认知轨迹开头不被清单干扰)、工具参考殿后(需要时再看)。
1731
+ *
1732
+ * 🔴🔴 **v1.124.0(owner 2026-11-09 令「dsh 自身的提示词能不能不要注入了,省点空间」):
1733
+ * 10 行工具清单整块删除,只留 MSM 调用示例。** 判据三条,都是可复算的:
1734
+ * 1. **它是第二真相源**:工具面已有两份权威 —— 宿主注入的工具 schema、`kernel/invariant.ts`
1735
+ * 的 `REGISTERED_TOOLS`。清单是第三份抄本 ⇒ 工具改名/退役时**没人会记得改这里**,
1736
+ * 于是它对模型**静默撒谎**(D151 同族:错的指引比没有指引更坏)。
1737
+ * 2. **它提供不了 schema 提供不了的信息**:`msm`、`container_fs` 等每一行的内容
1738
+ * (子命令、flag、返回形态)都在 schema 与 `--help` 里,且那里才是可执行的真身。
1739
+ * 3. **实测体量**:本块 3,451 chars(2026-11-09 本机称重,含 10 行清单)。
1740
+ * 📌 **如实登记代价(D255:条件与保证同句说)**:删掉清单后,模型失去"一眼看到全部 ACC 工具名"的入口。
1741
+ * 但那个入口**本来就不可靠**(清单长期滞后:`ontology` / `serenity-skill-creator` / `reconstruct`
1742
+ * 三者的增减史里,本块都曾落后于 `REGISTERED_TOOLS`)。可靠的替代路径 = 宿主工具 schema(每轮都在),
1743
+ * 且 `msm()` 无参仍给出 CCC 层目录。
1744
+ *
1745
+ * ⚠️ **标题从 `=== Serenity Tools ===` 改为 `=== Serenity MSM ===`**:块里已经没有工具清单了,
1746
+ * 仍叫 "Tools" 会让模型按"工具总表"来读这段(E↑:标题是这段文字的唯一预告)。
1747
+ * 牵连的读数器(`tests/system-prompt.test.ts` / `tests/osp-alignment.test.ts` /
1748
+ * `tests/trajectory-prompt-injection.test.ts` / `bench/trajectory-prompt-probe.mjs`)**同批改** ——
1749
+ * 漏改一个就会得到一个**永远找不到该标题**的探针(`indexOf === -1`)。
1709
1750
  */
1710
1751
  function toolsBlock() {
1711
1752
  return [
1712
1753
  "",
1713
- "=== Serenity Tools ===",
1714
- "The ACC (this plugin) provides the following built-in tools:",
1715
- "",
1716
- " container_fs — container filesystem operations (14 subcommands: root/resolve/exists/list/tree/relative/mkdir/rm/mv/cp/touch/reveal/info/find)",
1717
- " cognitive_trajectory — one cognitive trajectory: its persistent body (SESSION.md) + its timeline. Lifecycle: list (inventory + stats) / show / create / use (activate; inline integrity check — silent when fine) / rebuild (clear-and-rebuild this conversation in place, Ship of Theseus); delivery: send-now (deliver one message RIGHT NOW; live target injected immediately, non-live cold-resumed like a direct wake — returns a synchronous receipt) / send-later (one future instant + one message to any cognitive trajectory; fire-and-forget — no receipt, no recall) / cro-guide (the CRO programming guide: how to give THIS cognitive trajectory its own program that decides when it should be woken)",
1718
- " dashboard — always-on container instruments: health (CCC three-principle check + registry integrity) / time (now) / diag (runtime diagnosis)",
1719
- " container_git— git operations (status/commit/push/log/pull/diff)",
1720
- " msm — execute a registered CCC MSM: msm(name, args); partial name returns candidates; inspect=true shows usage",
1721
- " praxis — actionable theory injection: praxis (index) / praxis eap / praxis neat / praxis cce / praxis ontology",
1722
- " ontology — ontology engineering ENGINE (executable): init (write template) / check (M1-M10 structural; level=strict adds L1-L5 hints) / explain (summary) / verify (V1-V4 runtime compliance) / review (semantic-review prompt) / compliance (axiom-vs-skill checklist). Sibling of `praxis ontology` — that one is the METHOD TEXT, this one RUNS it. path must stay inside the container; the receipt carries the engine exit code (0/1/2/4) and the engine text verbatim, so read it rather than assuming success",
1723
- " serenity-skill-creator — creator for serenity-skills (this container's enhanced skill standard): guide (authoring/optimization method — read first) / create <name> (scaffold SKILL.md + skill.ttl + references/, base-chain import path computed) / check <name> (A1 structural + A2 base-chain; three states: modeled-ok / plain-skill / modeled-but-check-could-not-run) / review <name> (C tier: axiom-vs-text compliance question list, half-mechanical) / index <name> (preview the second-layer resource list the model will see) / status (which skills are modeled). A skill is \"modeled\" iff it has a file named exactly skill.ttl next to SKILL.md; a plain skill is NOT an anomaly. Only `create` writes, and it refuses an existing directory",
1724
- " localstore — ACC local credential/config storage (CCC-root localstore.json; git policy localstore.gitTrack default deny)",
1725
- " container_admin — container administration (the maintenance bay): role (轨迹约束 roles: guide/validate/apply/list) / msm (register/deregister/check/guide/catalog/ccc-config) / config (view)",
1726
- "",
1727
- "MSM call (registered CCC MSMs, deterministic Mech & Semi-Mech):",
1754
+ "=== Serenity MSM ===",
1755
+ "MSM call (registered CCC MSMs — a layer of their own, not covered by the platform tool schema):",
1728
1756
  " Execute: msm(\"<name>\", [\"<arg1>\", \"<arg2>\"]) — run a registered MSM directly (partial name returns matching candidates)",
1729
1757
  " Inspect: msm(\"<name>\", [], inspect=true) — view that MSM's usage/flags without running",
1730
1758
  " Index: msm() — summary of registered MSMs by skill",
@@ -2071,7 +2099,9 @@ function sessionBlock(root, scope = DEFAULT_SESSION_SCOPE) {
2071
2099
  * 认知展开顺序:我是谁 → 我所在的世界 → 为什么 → 如何一致 → 产物标准 → 当前状态 → 上下文 → 工具参考 → 会话。
2072
2100
  *
2073
2101
  * 需求③(S142 用户拍板):工具清单从 accBlock 移出为独立 toolsBlock,
2074
- * 放 SKILL 后 Session 前(工具参考殿后,身份先行不被 13 行清单干扰)。
2102
+ * 放 SKILL 后 Session 前(工具参考殿后,身份先行不被清单干扰)。
2103
+ * 🔴 **v1.124.0**:那块清单**已被 owner 令删掉**(判据见 `toolsBlock` 头部),
2104
+ * 现在该位置只剩 MSM 调用示例(标题也改成 `=== Serenity MSM ===`)。
2075
2105
  *
2076
2106
  * v1.23.1 persona(彩蛋):persona.mode 配置 → EAP 块替换为 Persona 块(输出约束),
2077
2107
  * Principles 剥离 MSM 原则段(指令遵循约束)——用户文本承接两处风格;本体论/关系段/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shgroup/dsh-serenity-hooks",
3
- "version": "1.123.0",
3
+ "version": "1.124.0",
4
4
  "description": "宁静号 ACC harness(Native Cordis 插件)——给 DeepSeek Harness 装一个「AI 工作区」:13 个工具(container_fs/cognitive_trajectory/dashboard/container_git/msm/praxis/ontology/serenity-skill-creator/localstore/container_admin;另三个 im-bridge/diagram/reconstruct 按条件出现)+ 机械约束(安全模式/工作区围墙/密钥守卫/对外输出守卫)+ 认知轨迹日志与原地重建 + 网页登录入口/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(三档)。",
5
5
  "license": "MIT",
6
6
  "repository": {