Skip to content

[PR] feat: windowed render source (D5-5) + view-domain judge tailStart (#4241 teeth regression) - #4584

Merged
ranxianglei merged 1 commit into
2026-10-24_seq-ledger-pr3from
2026-10-24_render-window-judge-tailstart
Oct 24, 2026
Merged

ranxianglei merged 1 commit into
2026-10-24_seq-ledger-pr3from
2026-10-24_render-window-judge-tailstart

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

内容(用户批的三件套之 2,叠在 #4575 上)

D5-5 渲染源窗口化(storage-review 唯一性能硬卡)

  • buildView 原路每渲染请求全表加载正史行 + 每行媒体水合(数万行会话 = 每轮 O(全史) 读放大)。
  • 新两层查询:messageIdRows(seq+msg_id 列,无字节,全行 — 驱动块锚定+接缝链)+ uncoveredRows(intervals)(只取覆盖区间外的行字节;covered 字节永不读)。
  • 块锚定从字节匹配改 msg_id 列匹配(同值,零语义变化);两查询间隙新行 → 一次全量回退兜底。
  • 行为收益:covered 行腐败(字节坏)不再导致渲染降级 — 之前 row-unparsable 整轮回 legacy。

判官 tailStart 视图域修复(master 回归)

打桩

  • tests/d5-5-render-window.test.ts(先红后绿):T1 渲染轮 unifiedTailViewRows 零调用 / T2 covered 行腐败→渲染不降级(出站完整含锚+尾巴) / T3 renderTurns≥1。
  • issue4241 牙齿改尾巴行后 1/1(修复前 master 红,bisect+probe 三向取证)。

验证

d5-5 1/1 + issue4241 1/1 + snapshot-render 12 + snapshot-shadow 5 + storage-unified 14 + storage-corpus 9 + full-flip 10 + incremental-lane 24 + msgid-lane-flow 5 + seq-interval-lane 1 + plugin-fork 49 + issue3250 5 + media-cas 3 全绿;tsc 0;探针已清(master-check 同步清理)。

kernel-change: none(纯 host src/)

 regression)

- store: messageIdRows (seq+msg_id, no bytes) + uncoveredRows(intervals) —
  covered rows' bytes are never read, so covered-row corruption can no
  longer degrade a live render
- snapshot-render buildView: block anchoring switches to the msg_id column,
  two-phase load (light rows for anchoring/chain, bytes only for uncovered),
  full-load fallback on the race window
- judge: snapshotRenderTailStart now records the VIEW-domain tail start
  (view rows - tail count) — the judge indexes judgeBaseline (the rendered
  view) with it; the client-domain join could point past the view's end and
  the judge validated nothing (vacuous clean — blinded the #4241 teeth after
  the T1-consolidation train)
- tests: d5-5-render-window (zero full loads + covered corruption tolerated
  + outbound complete) + issue4241 teeth now drops the last client tail row
  (exitCores.length - 2, the trailing nudge occupies the final wire slot)
@ranxianglei ranxianglei changed the title feat: windowed render source (D5-5) + view-domain judge tailStart (#4241 teeth regression) [PR] feat: windowed render source (D5-5) + view-domain judge tailStart (#4241 teeth regression) Oct 24, 2026
@ranxianglei
ranxianglei merged commit b794119 into 2026-10-24_seq-ledger-pr3 Oct 24, 2026
17 checks passed
@ranxianglei

Copy link
Copy Markdown
Owner Author

此 PR 被合并进了旧 base(seq-ledger-pr3 分支),内容未进 master。同一 commit 已 cherry-pick 重开为 #4586(base=master),请以 #4586 为准。

ranxianglei added a commit that referenced this pull request Oct 24, 2026
…scue

[PR] feat: windowed render source (D5-5) + view-domain judge tailStart (#4241 teeth regression) [rescue of #4584]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant