principles-disciple 1.62.0 → 1.64.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.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: pd-pain-signal
3
- description: 手动注入痛苦信号到进化系统。TRIGGER CONDITIONS: (1) 用户报告 agent 卡住/循环/无响应 (2) 用户说"记录这个问题"、"强制反思"、"触发痛觉" (3) 工具失败后 agent 没有后续动作 (4) 用户提供人工干预反馈。
4
- disable-model-invocation: true
3
+ description: 手动注入痛苦信号到进化系统。触发条件:(1) 用户报告 agent 卡住/循环/无响应 (2) 用户说"记录这个问题"、"强制反思"、"触发痛觉"、"创建一个痛苦信号"、"创建 pain signal"、"人工注入 pain" (3) 工具失败后 agent 没有后续动作 (4) 用户提供人工干预反馈。强制执行:任何手动创建 pain flag 的场景都必须使用本技能,不允许绕过。
4
+ disable-model-invocation: false
5
5
  ---
6
6
 
7
7
  # Pain Signal (强制喊痛)
@@ -12,28 +12,20 @@ disable-model-invocation: true
12
12
  1. 将用户的反馈 `$ARGUMENTS` 作为一条**高优先级**的痛苦信号记录下来。
13
13
  2. 告知用户信号已注入,并建议其等待下一个 Hook 触发(如 Stop 或 PreCompact)或手动运行 `/reflection-log`。
14
14
 
15
- **⚠️ 写入规则(必须遵守)**
15
+ **强制执行约束**:
16
16
 
17
- **唯一正确的方式**: 使用 `write_pain_flag` 工具。
18
-
19
- ```
20
- write_pain_flag({
21
- reason: "用户反馈原文或错误描述",
22
- score: 80,
23
- source: "human_intervention",
24
- is_risky: false
25
- })
26
- ```
17
+ 当你需要创建、写入、手动创建 pain flag 时,**必须**使用本技能,通过 `write_pain_flag` 工具完成。任何绕过本技能直接操作文件的行为都违反了本技能的强制约束。
27
18
 
28
19
  **绝对禁止**:
29
20
  - ❌ 直接写 `.state/.pain_flag` 文件(任何方式都不行)
30
21
  - ❌ 使用 bash heredoc(`cat <<EOF > .pain_flag`)
31
22
  - ❌ 使用 `echo "..." > .pain_flag`
23
+ - ❌ 使用 `Set-Content` / `Out-File` 等 PowerShell 文件写入 cmdlets
32
24
  - ❌ 使用 `node -e` 调用 `writePainFlag` 或 `buildPainFlag`
33
25
  - ❌ 任何将 JavaScript 对象 `toString()` 写入文件的方式
26
+ - ❌ 通过 `exec` 工具调用 shell 命令写入 pain_flag 文件
34
27
 
35
- **为什么必须用工具?**
36
- `write_pain_flag` 工具封装了正确的序列化逻辑(KV 格式),确保 `.pain_flag` 文件不会被写坏。历史上多次因为直接写文件导致 `[object Object]` 损坏。
28
+ **原因**:`write_pain_flag` 工具封装了正确的 KV 格式序列化逻辑,确保 `.pain_flag` 文件不会被写坏。历史上多次因为直接写文件导致 `[object Object]` 损坏和字段丢失(painScore → score 映射失败)。使用工具是唯一安全路径。
37
29
 
38
30
  **参数说明**:
39
31
  - `reason` (必填): 痛苦的原因,描述具体发生了什么
@@ -50,3 +42,10 @@ write_pain_flag({
50
42
  is_risky: false
51
43
  })
52
44
  ```
45
+
46
+ **工作流**:
47
+ 1. 识别到触发条件后,读取本技能描述
48
+ 2. 调用 `write_pain_flag` 工具,传入 `reason` 等参数
49
+ 3. 确认工具执行成功(返回 ✅)
50
+ 4. 告知用户痛苦信号已注入,evolution 系统会在下次 heartbeat 时处理
51
+ 5. 不得再执行任何直接文件写入操作