Skip to content

You're reading this. The skill predicted it. A workflow that turns every post into a calibrated experiment—score, blind-predict, retro, evolve. The future doesn't reward effort, it rewards those who see the pattern first. 1M followers in a month — not luck, system.

Python

v2 prediction system: handle post-shoot script changes via append, not overwrite

jon880150d79171
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bfb34ba..e3fe90a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,27 @@ All notable changes to cheat-on-content will be documented here.
## [Unreleased]
+### Added — v2 预测重判系统(拍后改稿场景)
+
+- **append-only v2 prediction**:cheat-shoot 检测拍摄稿与 `scripts/<id>.md` 行级 diff ≥ 30%(`V2_TRIGGER_THRESHOLD`)→ 自动调用 `/cheat-predict — mode: v2 — prediction-file: <path>` → 在原 prediction 文件 `## 复盘` 之前 append `## 预测 v2 (replaces v1)` 段。**v1 段绝不修改**(hook 物理强制),v2 才进 cheat-retro 的偏差计算
+- **immutability hook awk 升级**:单个 `## 预测` 改为可识别多个 `## 预测 vN` 段(v1 / v2 / 任意 vN 一起锁),同时兼容 v0.1.0 的 legacy 裸 `## 预测` 写法。端到端 5 场景验证通过(编辑 v1 / 编辑 v2 / 编辑 legacy 都 BLOCK;append 新段、改 ## 复盘 都 ALLOW)
+- **cheat-predict 加 Phase 0.7 模式判定**:检测目标 prediction 文件已含 `## 预测...` 段 → 自动切 v2 模式(Edit 在 `## 复盘` 边界 append,不 Write 覆盖)
+- **cheat-retro 升级**:识别多个 `## 预测 vN`,取最后一段作校准依据;预测段哈希校验扩展为"全部 v? 段合并哈希",任一被改即报错回滚
+- **prediction header 新字段 `Prediction Basis`**:`pre_shoot`(v1 默认)/ `post_shoot_pre_publish`(v2)。score-curve 与 cheat-bump 据此区分两条数据线避免混样
+- **shoots[] 项 schema 扩展**:新增 `scripts_path` / `script_consistency` / `script_diff_pct` / `v2_prediction_written` / `script_hash_at_shoot`(详见 [migrations/1.1-to-1.2.md](migrations/1.1-to-1.2.md))
+
+### Changed — schema 1.1 → 1.2(MINOR)
+
+- 升级 [migrations/registry.md](migrations/registry.md) `LATEST_SCHEMA` 标记 + 版本链表
+- cheat-init 新建 state 写 `"schema_version": "1.2"`
+- SessionStart hook `LATEST_SCHEMA="1.2"` —— 老用户 git pull + 跑会话 → hook 提示 schema mismatch → 用户跑 `/cheat-migrate` 5 秒升上来。MINOR 兼容,不强制(skills 用 `state.get(field, default)` 兜底)
+
+### Why now
+
+用户实际工作流:写完草稿 → **常常拍摄时即兴改文案** → 草稿和实际播出版本脱节。原"拍前预测,拍后只登记"的严格盲预测让"预测对的稿子"与"实际播出的稿子"不是同一份——校准失真。
+
+v2 系统让"拍后改稿"成为一等公民:v1 留作档案,v2 基于实际拍摄稿重判,diff(v1, v2) 本身成为 rubric 升级的强证据(用户改稿改高了 ER → 工具学到这个用户的 ER 阈值跟当前公式不一致)。盲预测原则保留:v2 仍在发布前完成,没有播放数据可"作弊"。
+
### Added — Migration 系统(让长期迭代不打断老用户)
- **`/cheat-migrate` skill**:把老用户 `.cheat-state.json` 从旧 `schema_version` 升级到当前 `LATEST_SCHEMA`。幂等、不跳版、失败停在断点
diff --git a/hooks/prediction-immutability.sh b/hooks/prediction-immutability.sh
index 1243575..66681b4 100755
--- a/hooks/prediction-immutability.sh
+++ b/hooks/prediction-immutability.sh
@@ -81,11 +81,19 @@ if [[ "$tool_name" == "Edit" ]]; then
exit 0
fi
- # Find prediction section bounds. Match either '## 预测' or '## Prediction'.
- # Pattern: line starting with '## 预测' or '## Prediction'; section ends at next '## ' or EOF.
+ # Find prediction section bounds. Match '## 预测' / '## Prediction' / '## 预测 v1'
+ # / '## 预测 v2' / etc. — all version-suffixed prediction headings count as prediction
+ # sections and are locked together.
+ #
+ # Section ends at the first NON-prediction '## ' heading (typically '## 复盘').
prediction_section=$(awk '
- /^## (预测|Prediction)([^a-zA-Z]|$)/ { in_pred=1; print; next }
- /^## / && in_pred { exit }
+ /^## / {
+ if ($0 ~ /^## (预测|Prediction)([^a-zA-Z]|$)/) {
+ in_pred=1; print; next
+ } else if (in_pred) {
+ exit
+ }
+ }
in_pred { print }
' "$file_path" 2>/dev/null || echo "")
diff --git a/hooks/session-start.sh b/hooks/session-start.sh
index 6922bec..d706ff0 100755
--- a/hooks/session-start.sh
+++ b/hooks/session-start.sh
@@ -54,7 +54,7 @@ form_severe_mismatch=$(echo "$state" | jq -r '.rubric_form_severe_mismatch // fa
# --- Detect schema mismatch (read LATEST_SCHEMA from migrations/registry.md if reachable) ---
# Strategy: hardcode current LATEST_SCHEMA here (bumped by maintainer alongside cheat-init).
# If state.schema_version != LATEST_SCHEMA → suggest migrate (non-blocking).
-LATEST_SCHEMA="1.1"
+LATEST_SCHEMA="1.2"
schema_mismatch=""
if [[ "$schema_version" != "$LATEST_SCHEMA" && "$schema_version" != "unknown" ]]; then
schema_mismatch="⚠️ schema 版本不一致:state=${schema_version}, skill 期望=${LATEST_SCHEMA}。建议跑 /cheat-migrate(非阻塞,部分新功能可能在迁移前异常)。"
diff --git a/migrations/1.1-to-1.2.md b/migrations/1.1-to-1.2.md
new file mode 100644
index 0000000..9400baf
--- /dev/null
+++ b/migrations/1.1-to-1.2.md
@@ -0,0 +1,66 @@
+# Migration: schema_version 1.1 → 1.2
+
+> **Type**: MINOR(兼容;老 state 用 `state.get(field, default)` 兜底不会崩,跑迁移让 shoots[] 字段对齐 schema 文档)
+
+---
+
+## WHAT changed
+
+### `shoots[]` 项新增 5 个字段
+
+| 字段 | 类型 | 默认 | 含义 |
+|---|---|---|---|
+| `scripts_path` | string | 从 `prediction_file` 路径派生 | pre-shoot 草稿路径 |
+| `script_consistency` | enum | `"consistent"` | `"consistent"` / `"modified"` / `"lost"` — 拍时是否改稿 |
+| `script_diff_pct` | int / null | `null` | 改动行占比 0-100;老 shoot 没算过则 null |
+| `v2_prediction_written` | bool | `false` | prediction 文件是否已含 `## 预测 v2` 段 |
+| `script_hash_at_shoot` | string / null | `null` | `videos/<id>/script.md` 的 sha256 前 12 位 |
+
+### 新概念(不在 state 文件,在 prediction 文件 header)
+
+`Prediction Basis` 字段:`pre_shoot`(v1 默认)/ `post_shoot_pre_publish`(v2)
+
+---
+
+## WHY
+
+v1.2 引入"拍后改稿触发 v2 预测重判"——cheat-shoot 检测稿子 diff ≥30% 时调用 `/cheat-predict — mode: v2`,在原 prediction 文件 append `## 预测 v2` 段。
+
+为了让 cheat-retro 知道"哪条预测进校准计算",shoots[] 项必须记录是否有 v2,以及 diff 强度(用于 rubric 升级时分析"用户改稿模式")。
+
+---
+
+## HOW (Claude steps for /cheat-migrate)
+
+按顺序:
+
+1. 读 `.cheat-state.json` → 解析 JSON
+2. 校验 `schema_version == "1.1"`,否则报错"当前 state 不是 1.1,无需此迁移"
+3. 对 `state["shoots"]` 列表里的每一项:
+ - 若 `scripts_path` 缺失 → 从 `prediction_file` 派生(把 `predictions/` 替换为 `scripts/`)
+ - 若 `script_consistency` 缺失 → 默认 `"consistent"`
+ - 若 `script_diff_pct` 缺失 → 默认 `null`
+ - 若 `v2_prediction_written` 缺失 → **扫对应 prediction 文件**:
+ - `grep -q '^## 预测 v2' <prediction_file>` → true 则写 `true`,否则 `false`
+ - 若 `script_hash_at_shoot` 缺失 → 默认 `null`
+4. 设 `schema_version = "1.2"`
+5. **原子写**:写到 `.cheat-state.json.tmp` → rename
+6. 报告:"✅ 迁移到 1.2 完成。处理了 N 个 shoots[] 项。"
+
+---
+
+## Manual fallback
+
+不想跑 `/cheat-migrate` 的用户可以**完全不动 state**——所有 skills 都用 `state.get(field, default)` 兜底,新字段会自动用默认值。但 `schema_version` 字段会一直显示 `"1.1"`,SessionStart hook 会持续提示 mismatch warning。
+
+如果想消除 warning 又不想跑 skill,手改:
+
+```diff
+ {
+- "schema_version": "1.1",
++ "schema_version": "1.2",
+ ...
+ }
+```
+
+shoots[] 里的字段会在下次 cheat-shoot / cheat-publish 触发时按需补全。
diff --git a/migrations/registry.md b/migrations/registry.md
index e14f15a..b02b52b 100644
--- a/migrations/registry.md
+++ b/migrations/registry.md
@@ -6,12 +6,12 @@ cheat-on-content 的 schema 版本演进单一来源。`/cheat-migrate` 读这
## 当前 schema_version
-**`1.1`** —— 由 `cheat-init` Phase 3 写入新 state 文件。
+**`1.2`** —— 由 `cheat-init` Phase 3 写入新 state 文件。
下方 `LATEST_SCHEMA` 标记位被 `cheat-migrate` skill 和 SessionStart hook 引用:
```
-LATEST_SCHEMA = "1.1"
+LATEST_SCHEMA = "1.2"
```
> 维护者注意:bump 这个值的同时**必须**新增对应迁移文件 + 在下方"版本链"追加一行。
@@ -26,6 +26,7 @@ LATEST_SCHEMA = "1.1"
|---|---|---|---|---|
| (none) | 1.0 | — | (内置) | v1 首版 schema |
| 1.0 | 1.1 | NO | [1.0-to-1.1.md](1.0-to-1.1.md) | 删 `mode` / `prediction_complexity` / `bucket_scheme` 三个枚举字段;新增 `target_publish_cadence_days` / `baseline_plays` / `benchmark_*` / `shoots` 等 |
+| 1.1 | 1.2 | NO | [1.1-to-1.2.md](1.1-to-1.2.md) | `shoots[]` 项扩展 5 字段(`scripts_path` / `script_consistency` / `script_diff_pct` / `v2_prediction_written` / `script_hash_at_shoot`)— 配合"拍后改稿触发 v2 预测重判"工作流 |
---
diff --git a/shared-references/prediction-anatomy.md b/shared-references/prediction-anatomy.md
index d22b6df..f1d0581 100644
--- a/shared-references/prediction-anatomy.md
+++ b/shared-references/prediction-anatomy.md
@@ -236,13 +236,13 @@
```
file: predictions/YYYY-MM-DD_<id>_<short>.md
-# 标题 — 预测日志 ← 组件 1: header(含 confidence + script_hash)
+# 标题 — 预测日志 ← 组件 1: header(含 confidence + script_hash + Prediction Basis)
(metadata block)
## 输入快照 ← 组件 2
(scores + 用户改写要点 vs Claude 草稿)
-## 预测 ← 组件 3 ⭐ IMMUTABLE 起点
+## 预测 v1 ← 组件 3 ⭐ IMMUTABLE 起点(基于 pre-shoot 草稿)
(bucket + 概率 + 中枢 + 一句话 reason)
## 推理因素 ← 组件 4
@@ -256,10 +256,30 @@ file: predictions/YYYY-MM-DD_<id>_<short>.md
## 关键校准假设 ← 组件 7
(这次预测作为实验的明确赌注)
+## 预测 v2 (replaces v1) ← (可选) 拍后改稿 ≥30% 时由 cheat-shoot 触发,append 不覆盖
+(同 7 组件结构 + 头部含 Diff vs v1 摘要)
+
## 复盘 ← 仅追加,IMMUTABLE 边界
(实绩 + top 评论 + 验证/推翻 + 新观察)
```
+### v1 / v2 段约定
+
+- **新建文件**:cheat-predict 写 `## 预测 v1`(不再裸 `## 预测`——为 v2 留 schema 一致性)
+- **legacy 兼容**:v0.1.0 时期写的 `## 预测` 文件不动;hook 与 cheat-retro 都识别
+- **v2 触发条件**:cheat-shoot 检测拍摄稿与 `scripts/<id>.md` 的 line-diff ≥ 30%([V2_TRIGGER_THRESHOLD](../skills/cheat-shoot/SKILL.md)),调用 `/cheat-predict — mode: v2 — prediction-file: <path>`
+- **append 而非覆盖**:v2 段插在 `## 复盘` 之前。v1 段**绝不**修改(hook 物理强制)
+- **校准用谁**:cheat-retro 读最后一个 `## 预测 vN` 算偏差;v1 留作历史档案
+- **diff 学习**:v1 vs v2 的字段差异(如 ER 4→5)就是用户改稿带来的判分变化,是 rubric 升级证据
+
+### Prediction Basis 字段
+
+prediction header 必含 `Prediction Basis`:
+- `pre_shoot`(v1 默认,标准盲预测)
+- `post_shoot_pre_publish`(v2,软盲预测——拍后改稿但发布前重判)
+
+cheat-retro 用此字段在 score-curve / bump 校准时区分两条数据线,避免混样。
+
---
## 子 skill 验收标准
diff --git a/shared-references/state-management.md b/shared-references/state-management.md
index 5218f09..b195163 100644
--- a/shared-references/state-management.md
+++ b/shared-references/state-management.md
@@ -18,7 +18,7 @@
```json
{
- "schema_version": "1.1",
+ "schema_version": "1.2",
"skill_version": "1.0.0",
"rubric_version": "v0",
@@ -60,6 +60,13 @@
}
```
+### 关键变更(v1.2)
+
+相比 v1.1(MINOR,兼容):
+
+- **`shoots[]` 项 schema 扩展**——新增 `scripts_path`、`script_consistency`、`script_diff_pct`、`v2_prediction_written`、`script_hash_at_shoot` 字段。语义见 cheat-shoot Phase 4。这些字段记录"拍后改稿是否触发 v2 预测重判",cheat-retro 据此决定读 `## 预测 v1` 还是 `## 预测 v2`
+- 老 state 缺这些字段 → skills 用 `state.get(field, default)` 兜底(`script_consistency` 默认 `"consistent"`,`v2_prediction_written` 默认 `false`,`script_diff_pct` 默认 `null`)。**不强制跑 migrate**——但跑了让 state 字段对齐 schema 文档
+
### 关键变更(v1.1)
相比 v1.0:
diff --git a/skills/cheat-init/SKILL.md b/skills/cheat-init/SKILL.md
index 1e0b70d..ab8b8ce 100644
--- a/skills/cheat-init/SKILL.md
+++ b/skills/cheat-init/SKILL.md
@@ -269,7 +269,7 @@ c) 不找 → state 标 `benchmark_status: none`,用通用 v0 起步
写入(**所有 `<...>` 占位必须查上面 Q 的映射表换成具体 enum 值,绝不直接存字母**):
```json
{
- "schema_version": "1.1",
+ "schema_version": "1.2",
"skill_version": "1.0.0",
"rubric_version": "v0",
"content_form": "<查 Q1 映射表,写 enum 字符串如 \"opinion-video\">",
diff --git a/skills/cheat-predict/SKILL.md b/skills/cheat-predict/SKILL.md
index 5f0850e..f1ed0d6 100644
--- a/skills/cheat-predict/SKILL.md
+++ b/skills/cheat-predict/SKILL.md
@@ -1,8 +1,8 @@
---
name: cheat-predict
-description: 给最终稿写一份 immutable 盲预测日志。这是 cheat-on-content 整个校准循环的核心动作——预测段一旦写完不可改,由 hook 强制。触发词:"启动预测"/"start prediction"/"给这稿子打分并预测"/"预测刚拍的视频"/"写预测日志"。
-argument-hint: <video-folder-path-or-script-path>
-allowed-tools: Bash(*), Read, Write, Glob
+description: 给最终稿写一份 immutable 盲预测日志。这是 cheat-on-content 整个校准循环的核心动作——预测段一旦写完不可改,由 hook 强制。**自动检测**:如目标文件已有 `## 预测` / `## 预测 v1` 段(被 cheat-shoot 调用走 v2 模式),改成 append `## 预测 v2` 而非覆盖。触发词:"启动预测"/"start prediction"/"给这稿子打分并预测"/"写预测日志"。
+argument-hint: <script-path> [— mode: v1|v2] [— prediction-file: <path>]
+allowed-tools: Bash(*), Read, Write, Edit, Glob
---
# /cheat-predict — AI 主导的盲预测 + 用户 review
@@ -26,6 +26,8 @@ Confidence 派生表见 [shared-references/state-management.md](../../shared-ref
↓
[Phase 0: blind check 自检] ← 触犯就拒绝
↓
+[Phase 0.7: 模式判定 — v1 (新建) 还是 v2 (append)]
+ ↓
[Phase 1: 读 script + rubric + state + 派生 confidence]
↓
[Phase 2: **Claude 自己**打 7 维分 + 算 composite]
@@ -41,7 +43,7 @@ Confidence 派生表见 [shared-references/state-management.md](../../shared-ref
├─ "ok" → Phase 6 落盘
└─ "X 维度应该 Y 不是 Z" → Claude 改 → 再 review → 循环
↓
-[Phase 6: 落盘到 predictions/<id>.md(与 scripts/ 同 id)]
+[Phase 6: 落盘 — v1 写新文件 / v2 append 到现有文件 ## 复盘 之前]
↓
[Phase 7: 更新 state.in_progress_session]
```
@@ -95,7 +97,26 @@ Confidence 派生表见 [shared-references/state-management.md](../../shared-ref
3. `BLIND_CHECK=lenient` 模式:仅警告 + 强制在文件头标注 `**Reconstructed retrospective — NOT a blind prediction**`,但仍允许继续
-通过 → 进入 Phase 1。
+通过 → 进入 Phase 0.7。
+
+### Phase 0.7: 模式判定(v1 vs v2)
+
+判定本次是新建预测(v1)还是对既有预测的 v2 追加(拍后改稿场景)。
+
+**显式参数优先**:用户/调用方传 `— mode: v2` + `— prediction-file: <path>` → 直接 v2 模式。
+
+**自动检测**(无显式参数):
+1. 推断目标 prediction 路径:`predictions/<同 scripts/<id> 命名>.md`
+2. 读该路径:
+ - 不存在 → **v1 模式**,进入 Phase 1
+ - 存在但只有空 `## 复盘`(无任何 `## 预测...` 段)→ **v1 模式**(异常状态,覆盖警告 + 进 Phase 1)
+ - 存在且含 `## 预测` 或 `## 预测 v1` 段 → **v2 模式**
+
+**v2 模式额外动作**:
+- 比较输入 script(最终拍摄稿)与 `## 预测` 段引用的原 `Script Hash`
+- 如完全一致(hash 同)→ 警告"稿子没改,是否真要写 v2?"——用户确认才继续;不确认则退出
+- 如不同 → 算 diff 概要(行数 / 字数 / 结构变化)→ Phase 5.5 review 时展示给用户
+- 标记 `prediction_basis = "post_shoot_pre_publish"`(v1 默认 `pre_shoot`)
### Phase 1: 读最终稿 + rubric + state + 派生 confidence
@@ -215,6 +236,8 @@ Phase 2-5 全部在内存里做完后,**一次性展示完整草拟版**给用
### Phase 6: 落盘
+#### Phase 6a: v1 模式(新建预测文件)
+
文件名约定([blind-prediction-protocol.md](../../shared-references/blind-prediction-protocol.md) 的"文件名约定"段):
```
predictions/YYYY-MM-DD_<id>_<short-title>.md
@@ -222,22 +245,17 @@ predictions/YYYY-MM-DD_<id>_<short-title>.md
- `YYYY-MM-DD`:今天日期(预测写下的日期)
- `<id>`:12 位 hash,对稿子全文做 sha256 取前 12 位(稳定 ID,重写不变)
- `<short-title>`:3-8 字,去标点
-- **如果对应 video folder 是 `videos/<这三字段>/`**(cheat-seed 创建的标准结构)→ id 与 video folder 保持一致;prediction header 写入 `video_folder` 字段指向该目录
-如果用户给的是裸 .md 文件(不在 video folder 里)→ prediction header `video_folder: null`,并提示用户下次建议把稿子放进 video folder 管理。
-
-**所有阶段都用统一完整版格式**(参考 [prediction-anatomy.md](../../shared-references/prediction-anatomy.md) "完整结构总览")。confidence 低不缩格式,只让 header 标 confidence 等级 + 锚点对比段写"N/A 解释" + 概率分布更平。
-
-预测落盘到 `predictions/<同 scripts/ id>.md`——用同一组 `<date>_<id>_<short>` 命名(见 [blind-prediction-protocol.md](../../shared-references/blind-prediction-protocol.md) 的"文件名约定"段)。
+**第一段标题写 `## 预测 v1`**(不再写裸 `## 预测`——为将来可能的 v2 留 schema 一致性。老用户的 legacy `## 预测` 文件不动,hook 都识别)。
**header 必填字段**:
- `Article ID`(与 scripts/<id>.md 同 id)
- `Script Path`(指向 scripts/<id>.md)
- `Script Hash`(Phase 1 算出的)
- `Calibration Samples` + `Confidence`(从 state 派生)
-- **`Scored By`**:`claude` / `claude+user_override`
-- **`User Override`**(如有覆盖):列出哪些字段被用户改了
- - 例:`AB: claude=4 → user=3 (用户认为'一人公司题没那么普适')` `中枢: claude=60w → user=40w`
+- `Prediction Basis`:`pre_shoot`(v1 默认)
+- `Scored By`:`claude` / `claude+user_override`
+- `User Override`(如有覆盖):列出哪些字段被用户改了
- 其他见 [prediction-anatomy.md](../../shared-references/prediction-anatomy.md) 组件 1
留一个空的 `## 复盘` 段:
@@ -247,6 +265,35 @@ predictions/YYYY-MM-DD_<id>_<short-title>.md
(待填——T+RETRO_WINDOW_DAYS 天后跑 /cheat-retro <对应 video folder>)
```
+#### Phase 6b: v2 模式(append 到既有文件)
+
+**绝不**用 Write 覆盖文件——会被 immutability hook 拦。用 **Edit** 在 `## 复盘` 之前插入 `## 预测 v2` 段:
+
+```python
+# 伪代码
+edit_old = "## 复盘\n" # 单独一行,确保 hook awk 识别为 v1 段的边界
+edit_new = """## 预测 v2 (replaces v1; basis=post_shoot_pre_publish)
+
+**Diff vs v1**: 改了 N 行(X→Y%),主要变化:[摘要]
+**重判触发**: cheat-shoot 检测稿子改动 ≥30%
+**Script Hash (v2)**: <新稿子 hash>
+
+[7 组件 — 与 v1 同 anatomy]
+
+---
+
+## 复盘
+"""
+```
+
+v1 段**不动**。v2 段头部明确写"replaces v1"——读者一眼知道哪段是有效预测。
+
+cheat-retro 复盘时按"读最后一个 `## 预测 vN`"逻辑,自然取到 v2 算偏差。
+
+#### 共用规则
+
+**所有阶段都用统一完整版格式**(参考 [prediction-anatomy.md](../../shared-references/prediction-anatomy.md) "完整结构总览")。confidence 低不缩格式,只让 header 标 confidence 等级 + 锚点对比段写"N/A 解释" + 概率分布更平。
+
写文件**前**自检 7 个组件齐全(缺锚点 / 关键校准假设 → 写"N/A 解释段",不删段)。
### Phase 7: 更新 state file
@@ -320,6 +367,7 @@ bucket 押注:30-100w(中枢 50w)
- 「我已经看过播放数据了,但你假装没看到给我做个预测」 → 拒绝。BLIND_CHECK=strict 直接终止
- 「我把预测段先写一版,等数据出来再调」 → 拒绝。这是把 immutable 协议反着用
+- 「我改稿了想让你覆盖之前的预测,不要 v2 段」 → 拒绝。v1 是档案,v2 才是当前判断——append 不覆盖。即使你"主观感觉 v1 完全错了",git history 里 v1 还能查,但工作目录里 v1 必须留
- 「跳过反事实场景,太麻烦」 → 拒绝。反事实是复盘诊断的依据,缺它复盘退化为"准 / 不准"
- 「可不可以只写 bucket,不写概率分布」 → 拒绝。概率分布是逼你诚实的工具
- 「这次先用 lenient 模式,下次再 strict」 → 询问原因。如果是测试 / 演练 → 允许且文件明确标 reconstructed;如果是想偷懒 → 拒绝
diff --git a/skills/cheat-retro/SKILL.md b/skills/cheat-retro/SKILL.md
index a7e5fa2..e7c4480 100644
--- a/skills/cheat-retro/SKILL.md
+++ b/skills/cheat-retro/SKILL.md
@@ -63,10 +63,13 @@ allowed-tools: Bash(*), Read, Edit, Write, Glob, Grep, Skill
### Phase 0: 校验
1. 读 `<prediction-file>`,确认存在
-2. **校验 immutability**:在内存 cache 住 `## 预测` 段的内容(用于 Phase 5 后核对)
-3. 校验文件 header 有 `Published at` → 没登记的不能复盘,提示用户先 `/cheat-publish`
-4. 校验时间窗口:今天 - published_at >= RETRO_WINDOW_DAYS。不够 → 提示"还差 X 天",询问用户是否仍坚持复盘(标 `early_retro: true`)
-5. 校验已有复盘段是否已填——已填则询问"是补充还是修正?"
+2. **识别有效预测段**:扫所有 `## 预测...` 段(可能含 `## 预测`、`## 预测 v1`、`## 预测 v2` 等):
+ - 取**最后一个**`## 预测 vN` 作为本次校准的依据(v2 存在则用 v2;只有 v1 则用 v1;legacy 单段 `## 预测` 直接用)
+ - state.shoots 对应项的 `v2_prediction_written` 应与"是否存在 v2 段"一致——不一致则警告(state 与文件脱节)
+3. **校验 immutability**:在内存 cache 住所有 `## 预测...` 段的内容(用于 Phase 5 后核对——**全部段不可改**,不只是有效段)
+4. 校验文件 header 有 `Published at` → 没登记的不能复盘,提示用户先 `/cheat-publish`
+5. 校验时间窗口:今天 - published_at >= RETRO_WINDOW_DAYS。不够 → 提示"还差 X 天",询问用户是否仍坚持复盘(标 `early_retro: true`)
+6. 校验已有复盘段是否已填——已填则询问"是补充还是修正?"
- 补充 → 在已有复盘段下追加新子段,标日期
- 修正预测段(用户错觉)→ 拒绝
@@ -228,7 +231,7 @@ Diff `scripts/<id>.md`(pre-shoot 草稿,可能是 cheat-seed 写或用户写
[Phase 4 内容]
```
-**写完后再次校验**:读取保存后的文件,对比 `## 预测` 段哈希应等于 Phase 0 cache 的哈希。**不等 → 报错并回滚**。
+**写完后再次校验**:读取保存后的文件,对比**所有** `## 预测...` 段(v1 / v2 / legacy)的合并哈希应等于 Phase 0 cache 的合并哈希。**任一段被改 → 报错并回滚**。
### Phase 6: 写入 rubric_notes.md + script_patterns.md
diff --git a/skills/cheat-shoot/SKILL.md b/skills/cheat-shoot/SKILL.md
index 5107f34..f0373c5 100644
--- a/skills/cheat-shoot/SKILL.md
+++ b/skills/cheat-shoot/SKILL.md
@@ -5,18 +5,20 @@ argument-hint: <scripts-path-or-id>
allowed-tools: Bash(*), Read, Write, Edit, Glob
---
-# /cheat-shoot — 登记拍摄完成 + 建 video folder
+# /cheat-shoot — 登记拍摄完成 + 建 video folder + (改稿则) 触发 v2 预测
把视频从"已写预测、未拍摄"状态推进到"已拍摄、未发布"状态。这一步:
1. **建 `videos/<同 id>/`** 目录(之前没有的话)
-2. **询问用户**:"实际拍摄时用的稿子和 `scripts/<id>.md` 一致吗?"——根据答案决定 `videos/<id>/script.md` 的内容
-3. 把 video folder 加进 state.shoots 队列,buffer +1
+2. **询问用户**:"实际拍摄时用的稿子和 `scripts/<id>.md` 一致吗?"
+3. 算 diff——超过 V2_TRIGGER_THRESHOLD (默认 30%) → **delegate 到 `/cheat-predict — mode: v2`** 在原 prediction 文件 append `## 预测 v2` 段
+4. 把 video folder 加进 state.shoots 队列,buffer +1
-不写 prediction(预测早在 cheat-predict 时锁了),不发布(发布是 cheat-publish)。
+cheat-shoot 自己**不**写预测内容——所有预测落盘逻辑在 cheat-predict。cheat-shoot 只负责检测改稿 + 派发。
为什么单独一个 skill:
- buffer 警戒系统需要明确区分"拍了" vs "发了"。视频可以批量拍(一天拍 5 条),分散发(每天发 1 条)
-- "实际拍摄稿"可能与"pre-shoot 草稿"不同(用户改了 / 即兴 / 大改)——cheat-shoot 是把这个差异显式化的入口
+- "实际拍摄稿" ≠ "pre-shoot 草稿"是常态。这一步是把 diff 显式化、触发 v2 重判、采集"用户改稿 pattern"信号的入口
+- v2 预测 vs v1 预测的差异本身就是 rubric 升级证据——比如 v1 给 ER=4,v2 给 ER=5(用户改稿改高了 hook 强度),就告诉 rubric "这个用户的 ER 阈值跟我现在公式不一致"
## Overview
@@ -38,7 +40,9 @@ allowed-tools: Bash(*), Read, Write, Edit, Glob
## Constants
-- **REQUIRE_PREDICTION = true** — 拍前必须先有 prediction 文件(否则违反盲预测——拍完才写预测会被诱导事后修改)
+- **REQUIRE_PREDICTION = true** — 拍前必须先有 v1 prediction 文件
+- **V2_TRIGGER_THRESHOLD = 0.30** — 稿子 diff 超过 30%(行级 unified diff 行数 / 原稿子行数)→ 默认建议 v2 重判;低于 30% 询问用户是否仍要 v2
+- **DIFF_METRIC = lines** — 用 `diff -u | grep '^[+-]' | wc -l` 算改动行数 / 原文件行数
## Inputs
@@ -76,34 +80,38 @@ allowed-tools: Bash(*), Read, Write, Edit, Glob
```
拍 「<title>」 的时候,你实际用的稿子和 scripts/<id>.md 一致吗?
-a) 一致——直接用 scripts/<id>.md 内容存为 videos/<id>/script.md
-b) 不太一致——我改了一些
- ↓ 接着问:"你能提供拍摄时实际用的稿子吗?"
- - 是 → 用户提供(粘贴或路径),存为 videos/<id>/script.md
- - 否(即兴 / 没保留)→ 标 script_lost:videos/<id>/script.md 留空,
- 只在头部加注释说明
-c) 大改了——拍出来其实是另一条
- ↓ 提示用户:建议走 _redo 流程——
- scripts/<id>_redo.md → 重新 cheat-predict → 再 cheat-shoot
- 原 prediction 仍保留,但和实际拍摄脱钩
+a) 一致——按草稿拍的
+b) 改了一些——你能给我看下实际拍摄稿吗?我重新打分一次(v2 预测)
+c) 大改了,基本是另一条 → 走 _redo 流程:
+ scripts/<id>_redo.md → 重新 cheat-predict → 再 cheat-shoot(原 prediction 留档脱钩)
```
-### Phase 3:写 videos/<id>/script.md
-
-按 Phase 2 答案:
-- 答 a → cp scripts/<id>.md → videos/<id>/script.md
-- 答 b 提供新稿 → 写入用户提供的内容
-- 答 b 没保留 → 写一个占位文件:
- ```markdown
- # <title> — 实际拍摄稿(已遗失)
-
- > 用户在 cheat-shoot 时未保留实际拍摄稿(标记 script_lost)。
- > 复盘时无法 diff `scripts/<id>.md` vs 实际拍摄版本——
- > script_patterns 学习能力受限。
- >
- > 下次建议保留拍摄草稿(哪怕只是 voice memo 转录)。
- ```
-- 答 c → 不写 videos/<id>/script.md(走 _redo 流程后再来)
+### Phase 3:写 videos/<id>/script.md + (b 路径) 触发 v2 预测
+
+**a 路径(一致)**:
+- `cp scripts/<id>.md → videos/<id>/script.md`
+- `script_consistency = consistent`
+- 不重判,进 Phase 4
+
+**b 路径(改了)**:
+1. 询问用户实际拍摄稿——粘贴文本 / 文件路径 / 转录文件
+2. 若用户提供 → 写入 `videos/<id>/script.md`
+3. 若用户没保留(即兴)→ 标 `script_lost`,写占位文件 + 警告"v2 重判跳过——下次建议留稿(哪怕 voice memo 转录)",进 Phase 4
+4. 提供了的话:算 diff
+ ```bash
+ added=$(diff -u scripts/<id>.md videos/<id>/script.md | grep -c '^+')
+ removed=$(diff -u scripts/<id>.md videos/<id>/script.md | grep -c '^-')
+ total_orig=$(wc -l < scripts/<id>.md)
+ diff_pct=$(( (added + removed) * 100 / total_orig ))
+ ```
+5. **判定 v2 触发**:
+ - `diff_pct >= 30` → 默认建议 v2 重判,**主动调用** `/cheat-predict — mode: v2 — prediction-file: predictions/<id>.md` 传 `videos/<id>/script.md` 作 input。cheat-predict 走 v2 模式 append `## 预测 v2`
+ - `diff_pct < 30` → 询问用户:"只改了 N% 的内容,要重判吗?默认不(v1 预测仍有效)"。用户说要 → 同上调用;用户说不 → 跳过 v2,继续 Phase 4
+6. cheat-predict 完成 v2 落盘后,控制权回到 cheat-shoot 进 Phase 4
+
+**c 路径(大改)**:
+- 不写 `videos/<id>/script.md`,提示走 `_redo` 流程
+- 退出 cheat-shoot(不进 Phase 4)
### Phase 4:state 更新
@@ -117,13 +125,15 @@ c) 大改了——拍出来其实是另一条
"scripts_path": "scripts/2026-05-04_abc123_停止期待.md",
"shot_at": "<ISO timestamp>",
"script_consistency": "consistent" | "modified" | "lost",
+ "script_diff_pct": <0-100 int 或 null>,
+ "v2_prediction_written": <true/false>,
"script_hash_at_shoot": "<sha256:12 of videos/<id>/script.md>"
}
]
}
```
-如 `script_consistency = modified` → diff `scripts/<id>.md` 和 `videos/<id>/script.md` 的 hash → 若不同,将 diff 信息标到 prediction 文件**复盘段**(不是预测段)作为日后 retro 的种子。
+`v2_prediction_written: true` 表示 prediction 文件里现在有 `## 预测 v2` 段,cheat-retro 应读 v2 算偏差;`false` 表示沿用 v1。
### Phase 5:输出 buffer 状态
@@ -156,9 +166,9 @@ c) 大改了——拍出来其实是另一条
## Refusals
-- 「拍了 X,顺便给我写个预测」 → 拒绝。预测必须**拍前**写(盲预测)。请先 /cheat-predict 再来 /cheat-shoot
-- 「我没有 video folder,我直接拍的」 → 询问用户 → 帮他建一个 video folder + 提示下次走完整流程;登记时标 `ad_hoc: true` 提醒下次走标准流程
-- 「拍了 X 但还没改完 script」 → 拒绝。如果 script 还在改,预测段已经过期——请改完后重新跑 /cheat-predict 再 /cheat-shoot
+- 「拍了 X,但我从来没跑过 cheat-predict」 → 拒绝。v1 预测**必须拍前写**——拍完才写预测会被画面诱导事后修改。请先 /cheat-predict 写 v1 再来 /cheat-shoot。(v2 重判是另一回事——v1 已存在 + 拍后改稿才允许)
+- 「我没有 video folder,我直接拍的」 → 询问用户 → 帮他建 video folder + 提示下次走完整流程;登记时标 `ad_hoc: true`
+- 「我改稿了但你直接覆盖 v1 吧,别留 v2 段」 → 拒绝。v1 是档案,v2 才是当前判断——append 不覆盖。两段一起留是 rubric 学习的关键证据
## Integration
diff --git a/templates/workflow.template.md b/templates/workflow.template.md
index 806345b..91ec3c1 100644
--- a/templates/workflow.template.md
+++ b/templates/workflow.template.md
@@ -19,13 +19,16 @@ cheat-seed 写 5 个草稿到 → scripts/<日期>_<id>_<short>.md
↓
/cheat-score scripts/<日期>_<id>_<short>.md → 看 rubric 评分(探索)
↓
-/cheat-predict scripts/<日期>_<id>_<short>.md → 写 immutable 预测到 predictions/
+/cheat-predict scripts/<日期>_<id>_<short>.md → 写 immutable 预测 v1 到 predictions/
↓
拍摄完 → /cheat-shoot scripts/<日期>_<id>_<short>.md
├─ 建 videos/<日期>_<id>_<short>/ 目录
├─ 询问用户:"拍时实际用的稿子和 scripts/<id>.md 一致吗?"
- │ ├─ 一致 → cp scripts/<id>.md → videos/<id>/script.md
- │ └─ 不一致 → 用户提供最终拍摄稿,存为 videos/<id>/script.md
+ │ ├─ 一致 → cp → videos/<id>/script.md,沿用 v1 预测
+ │ ├─ 改了 → 要最终稿 → 算 diff
+ │ │ ├─ diff ≥30% → 自动 /cheat-predict — mode: v2 → predictions/<id>.md append `## 预测 v2` 段
+ │ │ └─ diff <30% → 询问是否 v2,默认沿用 v1
+ │ └─ 大改 → 走 _redo 流程(新 scripts/<id>_redo.md + 重 cheat-predict)
└─ buffer +1
↓
发布 → /cheat-publish + URL → buffer -1
@@ -62,7 +65,9 @@ T+3 天 → /cheat-retro videos/<日期>_<id>_<short>/
> **score 与 predict 的核心区别**:
> - score 是探索,无副作用,可反复跑
-> - predict 是承诺,写完文件 `## 预测` 段被 hook 锁死
+> - predict 是承诺,写完文件 `## 预测 v1`(或 `## 预测 v2`)段被 hook 锁死
+
+> **v2 重判触发**:cheat-shoot 检测拍摄稿与原 scripts 的 line-diff ≥30% 时自动调用 cheat-predict 写 `## 预测 v2` 段(append,不覆盖 v1)。详见 [shared-references/prediction-anatomy.md](../shared-references/prediction-anatomy.md) 的 v1/v2 段约定。
### ③ 发布登记