@@ -130,7 +130,7 @@ Sopify 的 durable core 是跨宿主 AI 工作流的 **证据与授权层**。
130130| ----| ------| ---------| ---------|
131131| ** Protocol** | ` .sopify-skills/ ` 目录约定、schema、SKILL.md 编排 | 纯文档 | 不可替代 |
132132| ** Validator** | ActionProposal 校验、状态迁移校验、archive check/apply | ~ 2K 行 | 独立交付 |
133- | ** Runtime** | gate / router / engine / handoff 状态机 | 当前 ~ 26K 行;减重目标独立里程碑 | 可选增强 / 参考实现 |
133+ | ** Runtime** | gate / router / engine / handoff 状态机 | 当前 ~ 26K 行;减重目标 P4b | 可选增强 / 参考实现 |
134134
135135** Convention 模式 (下界)** : LLM 读 SKILL.md → 自行推进 → Validator 事后校验(protocol acceptance / receipt authority)。
136136** Runtime 模式 (上界)** : 完整 runtime 控制状态迁移,Validator 是 pre-write authorizer。
@@ -291,7 +291,7 @@ ActionProposal 的标量 `side_effect` 字段表达粗粒度权限层级(`none
291291| -----------| -------------------------------|
292292| ` plan ` | ` plan_only ` , ` workflow ` , ` light_iterate ` |
293293| ` develop ` | ` exec_plan ` , ` resume_active ` , ` quick_fix ` |
294- | ` consult ` | ` consult ` , ` replay ` |
294+ | ` consult ` | ` consult ` |
295295| ` archive ` | ` archive_lifecycle ` |
296296| ` clarification ` | ` clarification_pending ` , ` clarification_resume ` |
297297| ` decision ` | ` decision_pending ` , ` decision_resume ` |
@@ -329,6 +329,18 @@ ActionProposal 的标量 `side_effect` 字段表达粗粒度权限层级(`none
329329
330330** Ingress scope(不算 review state):** ` current_gate_receipt.json `
331331
332+ #### Persistence Surface 分层
333+
334+ | 层级 | 物理对应 | Git 状态 | 消费者 | 可删性 |
335+ | ------| ---------| ---------| --------| --------|
336+ | ** 长期知识** | blueprint/ plan/ history/ project.md | tracked | 人 + 宿主 + runtime | 不可删 |
337+ | ** 长期知识 / 偏好审计** | user/preferences.md · user/feedback.jsonl | tracked | 人 + runtime | 不可删 |
338+ | ** 主链机器真相** | state/current_run · current_plan · current_handoff · current_clarification · current_decision | gitignored | runtime gate/router + 宿主 handoff | 运行期不可删 |
339+ | ** 可审计凭证** | state/current_gate_receipt · current_archive_receipt | gitignored | 诊断 / 审计 | 运行期不可删,非主链依赖 |
340+ | ** 运行态附属 / 可删派生** | state/sessions/* · last_route | gitignored | runtime 内部 | 无活动 session / 超租约后可清理 |
341+
342+ > replay/ 已在 P3b 列为能力下线(tasks.md P3b),不再列入 persistence surface。
343+
332344### 削减预算表
333345
334346| 维度 | 当前 | Target | Hard Max | 计算口径 |
@@ -340,7 +352,7 @@ ActionProposal 的标量 `side_effect` 字段表达粗粒度权限层级(`none
340352
341353** Hard max 例外路径:** 只能通过 ADR 更新。必须说明替代了什么旧概念、为什么不能放到 artifacts/status/hint 里。
342354
343- > ** 削减前提** :削减执行以 protocol/validator 层契约已稳定为前提(见 ` tasks.md ` P3a/P3b )。先 formalize contract,再清 runtime 旧面。不以 runtime 内部治理为驱动独立清理。
355+ > ** 削减前提** :Runtime 减重目标 P4b,但 P4b 执行以 P4a 外部消费面 keep-list 冻结为硬前提。P4b 执行顺序固定为:release gate 收口 → runtime 旧面删除 → implementation-mirror tests 收口(详见 ` tasks.md ` P4b )。先 formalize contract,再清 runtime 旧面。不以 runtime 内部治理为驱动独立清理。
344356
345357## 轻量化产品指标
346358
@@ -466,4 +478,4 @@ knowledge_sync:
466478| `plan/YYYYMMDD_feature/` | L2 active | 每次正式方案流 | tracked |
467479| `history/YYYY-MM/...` | L3 archive | archive_plan apply 成功 | tracked |
468480| `state/*.json` | runtime | runtime 执行期间 | ignored |
469- | `replay/` | optional | 命中主动记录策略 | ignored |
481+ | `replay/` | ~~ optional~~ P3b 下线 | 命中主动记录策略(P3b 后移除) | ignored |
0 commit comments