Skip to content
Discussion options

You must be logged in to vote

PerryLink 的修复脚本我拉下来核对了(dsh-permission-rules@0.6.1 的 scripts/repair-session-logs.mjs, 332 行, frame-preserving zstd 逐帧重写 + 备份):这个工具修的是未知事件类型这一族(#4811/#5059 线——permissionRules/decisionautoReview/* 等 out-of-repo 审计行在 ignorable 标记出现前被无标记追加, 新 build 读取端 SessionFormatUnsupportedError 拒载; 修复 = 给目标行加 ignorable: true, 其余字节不动, 逐帧解压→过滤→重压, 帧边界存活)。scan/repair 的实现与读取端拒绝链对得上(KNOWN_SESSION_EVENT_TYPES + envelope 的 ignorable 判别)。

需要澄清的一点:它不修本线程的 seq 回退形态。0.6.1 发布版里没有 strip 命令, 也没有任何 seq/truncate/rollback 逻辑。本线程的损坏是「已提交 turn/end 之后出现更小 seq 的 assistant/chunk」(中间帧回退, committed-region gap)——不涉及未知类型行, 加 ignorable: true 救不了它, 因为读取端按 event.seq !== events.length 判 corrupt(format.ts:386-417), 与行是否 ignorable 无关。这是…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by goatliamia
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants