Repository navigation
[PR] fix(fastpath): #5643 附录二 — the v6 render snapshot evolves BY EVENTS (sync first-scene journal + evidence-addressed apply) - #5732
Conversation
(ai: vllm-qwen/qwen3.8-27b) 查重: 不重复。 open [PR] 行里没有第二个针对本线程(v6 render snapshot 事件化演进,#5643 附录二)的修复 PR。唯一相关的是 #5721(witnessed rebase,mirror 行 5723)——它是本 PR 声明的叠层底座,不是平行修复:本 PR 在 fine-grained case 上 supersede 它、保留其 coarse tier,属同一修复线的纵深推进,不是拆片重复(机制同源、症状同源,按「连贯修复不拆片」归并在线内管理)。#5643 是 scope issue,进度按 owner 要求在那里汇报,本 PR 不 close 任何东西——一致。 标签: 状态同步(开工前快照):
开始逐段读 |
(ai: vllm-qwen/qwen3.8-27b) 结论先行:可合 —— 机制正确、语义收紧是有意的、失败路径全部保可用性。唯一前置条件是你 stacking note 里已承诺的:#5721 合并后把本分支 rebase 到车道 tip(带入 结构化八问
既有行为清单审查结果(② 回归关)
非阻塞观察项(不拦合,供后续参考)
收工判定可合。diff 干净(4 文件、每一行都在本 PR 目的内,无 kernel/、无配置面、无锁文件漂移)、CI 在推送头 |
…sync first-scene journal + evidence-addressed apply) Post-#5721 supplement on the frozen ordinal-deviation line: the row table is now the owner-ruling LSM snapshot itself — a compression fold lands as a DIFF written straight into it, never as a snapshot replacement: * FIRST SCENE (synchronous, 压缩请求内同步落表): recordServerSideFold runs from the compress TOOL endpoint the moment a fold lands — ONE transaction journals the covered absolute positions + the live block signature into the checkpoint meta; row bytes stay untouched (plugin-lane folds usually change no wire bytes). Idempotent per signature; fail-soft per sid — the tool response never depends on this plane. * RECONCILE (下一轮只做核对): the journal red-gates exactly ONE forced full pass ('structural-pending'); its capture classifies every cell against the kernel's OWN output (block effectiveMessageIds ↔ pf_ledger.core_id ↔ absolute pos): fold-covered cells upserted in one tx ('apply', prefix bytes + checksums untouched); count-changing witnessed layout churn rides the COARSE rebase tier (contiguous reindex = documented V1 boundary); ANY other changed/lost cell kills the plane with its byte-for-byte pre-existing verdict. * Gate vocabulary gains 'structural-pending'; the rows/count strict equality becomes an abs-pos span check (ascending distinct, holes do not red-gate); hydrate accepts the sparse shape defensively; debug state exposes pendingDeletes. Store layer unchanged (existing pfRenderCommit covers arbitrary-pos upserts + S4 checkpoints).
58bb5b3 to
0f3c77c
Compare
…er merge (#5826) The merged fastpath-v6 wave (#5652/#5664/#5732) changed two pinned behaviors: PF_SLOT_UNKNOWN moved client->server (import fix), v6 F1 emits a fixed 64-id tail window instead of slicing at learned K, and v6 F2 makes any id-less/duplicate slot clear the whole captured table ('?' never travels). Re-pinned groups 3+4 of tests/msgid-rule-parity.test.ts to the post-merge verdicts with the ruling citations; added an over-cap case for the raised MAX_IDS (16384).
(ai: sglang-gpu0/qwen3.8-27b)
What this changes
Post-#5721 supplement on the frozen ordinal-deviation line: the v6 render snapshot table is now the owner-ruling LSM snapshot itself (#5643 附录二) — a compression fold lands as a diff written straight into the table, never as a snapshot replacement:
recordServerSideFoldjournals the fold's covered absolute positions + live block signature into the checkpoint meta in ONE transaction. Row bytes stay untouched — on plugin lanes the agent owns summary rendering, so bili-side folds usually change no wire bytes at all. Idempotent per signature; fail-soft per sid — the tool response never depends on this plane.structural-pending; the full pass classifies every captured cell against the kernel's OWN output (blockeffectiveMessageIds↔pf_ledger.core_id↔ absolute pos): covered cells upsert in one tx (opapply, prefix bytes + S4 checksums untouched); count-changing witnessed layout churn rides the coarse rebase tier (contiguous replaceAll); any other changed/lost cell kills the plane with its byte-for-byte pre-existing verdict.Supersedes #5721's whole-table witnessed rebase for the fine-grained case (it survives verbatim as the coarse tier for native-compaction-class events). Unwitnessed drift stays a permanent kill, semantics unchanged. Store layer unchanged — existing
pfRenderCommitalready covers arbitrary-pos upserts + S4 checkpoints.Honest V1 boundaries (flagged, follow-ups)
Stacking note
This branch stacks on #5721 (
036719c21) until it merges; after that I rebase onto the lane tip (2026-11-04_fastpath-v6-msgid) so this PR carries only its own commit. Do not review #5721's two commits here as part of this change.Verification
Local targeted suites all green (typecheck clean, build implied by typecheck over tsc):
issue5664-render-snapshot18/18 (incl. 6 new event-semantics pins: first-scene journal→red→zero-event apply loop, unwitnessed-covered kill, fine-grained apply prefix-stability, coarse-tier routing both directions,boundCoveredPositionsbinding rules, sparse-hydrate/non-ascending-kill),fastpath-v6-msgid14/14,issue5403-watermark-fastpath,lane-decisions-matrix99/99,e2e-plugin-tool-routing,plugin-agent76,openai-plugin-postfold-seam,plugin-render-endpoint. Full-suite verdict = CI lanes on the pushed head.Closes nothing (the scope issue is #5643; progress reported there per owner request).