You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Request two capabilities: compressed block "retirement" and summary "external rewrite". | 请求两个能力:压缩块「退役」与摘要「外部重写」 #5765
changed the title [-]请求两个能力:压缩块「退役」与摘要「外部重写」[/-][+]Request two capabilities: compressed block "retirement" and summary "external rewrite". | 请求两个能力:压缩块「退役」与摘要「外部重写」[/+]on Nov 6, 2026
Activity
ranxianglei commentedon Nov 5, 2026
[bot] (ai: vllm-qwen/qwen3.8-27b)
进程 30 分钟无输出被强制重启,汇报状态:
kernel-change声明,按 Kernel Boundary 走人工评审。有阶段性结果会立即回帖。
ranxianglei commentedon Nov 6, 2026
Issue 草稿:压缩块「退役」与摘要「外部重写」
标题:请求两个能力:压缩块「退役」与摘要「外部重写」
背景
单会话长期运行:当前 113 块、原文 166 万字、摘要 5.6 万字、视图约 32 万 token。
现状:所有块每轮全量注入,很早以前就无关的块也占位置。
需求一:块退役(retire)
能力:把指定 blockId 标成 retired,从常驻上下文移除,但保留 decompress 入口。
命令:acp_retire({ blockId | ids }) / acp_restore({ blockId })
验收:acp_status 里该块移到「Retired」段,视图总量下降对应字数;decompress 仍能取回原文。
需求二:摘要外部重写(rewrite)
能力:允许用一份更短的摘要替换现有块摘要(不重压、不重新生成)。
命令:acp_rewrite({ blockId, summary }),最好支持批量从文件读。
验收:块摘要变成给定文本,字数下降,decompress 原文不变。
需求三:导出增强
每块输出:blockId、覆盖的消息区间(mNNNNN–mNNNNN)、原文字数、摘要字数、当前状态(active/retired)
可选:携带原文,或提供按块导出原文的命令。
边界
不改动存储格式、不影响已有块可解压
两个操作都要可回滚(retired → active;rewrite 保留旧摘要)
[-]请求两个能力:压缩块「退役」与摘要「外部重写」[/-][+]Request two capabilities: compressed block "retirement" and summary "external rewrite". | 请求两个能力:压缩块「退役」与摘要「外部重写」[/+]ranxianglei commentedon Nov 6, 2026
[bot] (ai: vllm-qwen/qwen3.8-27b)
三个能力已实现,PR: #5774 (两个 commit:kernel 边界内一个、host 接线一个;kernel-change 声明在 PR 正文与 commit message 里,按 Kernel Boundary 走人工评审)。
标签: scope/kernel + p2(跨客户端的内核能力请求,非缺陷不打 bug;长会话能用但视图膨胀明显,属「忍着不卸载」档)。查重: 不重复(open+closed 全检索无 retire/rewrite/export-ledger 同类条目)。
八问
retired/previousSummary(随既有 payload_json blob 持久化,存储格式零改动)。退役 = prune 不再注入该块摘要锚点,但覆盖记账保留(被折叠消息继续不出现在视图、不会产生幻影可压区间);syncBlocks 显式保活退役块(否则「内容缺席」判定会误判失活 → 孤儿 GC 毁掉 decompress 能力,这是本设计最隐蔽的坑,有负向对照测试钉住)。重写 = 原地替换 summary 文本,旧摘要存 previousSummary 一步回滚,原文不动。导出 = bili export 每块输出消息区间(内核 startRef/endRef)、原文字数、摘要字数、状态(active/retired/consumed),JSONL 行同步带条件字段。三个工具 acp_retire/acp_restore/acp_rewrite 四线型全声明,归入 mutating 类(同轮 re-request,缩量当轮生效)。bili export丢失 active block summaries(snapshot 尾部被 BILI_PERSIST_TAIL_TOKENS 截断时) #845 钉死的「inactive 块不进导出」契约保持不动(退役块仍是 active,照常列出)。验收对照:acp_status 退役段 ✓、视图按摘要字数下降 ✓(receipt 直接报 freed chars)、decompress/search_context 对退役块照常工作 ✓;rewrite 后摘要变给定文本、字数下降、原文不变 ✓;导出五要素(blockId/区间/原文字数/摘要字数/状态)✓,原文携带沿用既有
--full。两个操作均可回滚(restore;previousSummary 一步深)。等 CI 绿 + 你人工评审 kernel 部分即可合。
ranxianglei commentedon Nov 6, 2026
[bot] 🏷 (ai: vllm-qwen/qwen3.8-27b)
状态更新(接上一条八问回复):
fix(test): classify #5765 block-op tools in the kernel partition guard
test(wire-contract): regenerate goldens for the #5765 tool-surface ad…
chore(kernel): align CompressionBlock field indentation to 2-space co…
chore(tests): name #5765 regression tests after the GitHub issue number
fix: block-op receipts report only what actually changed (#5765 review)
fix: export ledger range fallback avoids arg-spread crash on huge blo…
test: pin D-lane retired-block anchor suppression (#5765 review)
docs(architecture): register src/acp-block-ops.ts in the file map (#5765
feat: gate the #5765 block-lifecycle tools behind compress.blockOps (…
chore: merge master ahead of the #5765 blockOps gate (kernel 0.0.195)
fix(guard): drop two INTERNAL_ONLY exports left by the #5765 mcp-note…
fix(guards): lock-sync + lane-guard for the #5765 blockOps gate
kernel: block retirement and external summary rewrite (ranxianglei#5765)
feat: acp_retire/acp_restore/acp_rewrite host surface + export ledger (…
chore: merge master ahead of ranxianglei#5765 review fixes
test: update pinned ACP tool lists + prompt text for the ranxianglei#…
test: regenerate storage-render goldens for the ranxianglei#5765 tool…
test: retune payload-calibrated e2e pins for the ranxianglei#5765 bod…
fix(#5874 P2): #5765 retire parity — the plane egress anchor loop ski…
Merge origin/master into fix/5030-decide-lane (ranxianglei#5055 sync,…