Skip to content

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

Merged
ranxianglei merged 1 commit into
masterfrom
2026-10-24_render-window-rescue
Oct 24, 2026
Merged

ranxianglei merged 1 commit into
masterfrom
2026-10-24_render-window-rescue

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

这是 #4584 的救援重开

#4584 被合并时 base 还指着 `2026-10-24_seq-ledger-pr3`(已合并的旧基),内容落在那个分支上没进 master。本 PR = 同一 commit f034184 cherry-pick 到 master(8a1df61),内容逐字节相同。

内容

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

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

判官 tailStart 视图域修复(master 回归,T1 合车 #4525 后 #4241 牙齿红)

验证

d5-5 1/1 + issue4241 1/1(cherry-pick 后复跑)+ snapshot-render 12 + snapshot-shadow 5 + storage-unified 14 + 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。

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) [rescue of #4584] [PR] feat: windowed render source (D5-5) + view-domain judge tailStart (#4241 teeth regression) [rescue of #4584] Oct 24, 2026
@ranxianglei
ranxianglei merged commit cd92b0b into master Oct 24, 2026
19 of 23 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

📦 Merged Build Published

This merge to master was published as 0.0.825-master.cd92b0b (rolling master tag).

npm install -g billion-context@0.0.825-master.cd92b0b  # this exact build
npm install -g billion-context@master  # always the newest merged build

npm view billion-context@master prints the current version at any time.

@github-actions

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-10-24_render-window-rescue (8a1df61)

Latest build — install this exact version

npm install -g billion-context@0.0.5537-pr.4586.37f861f

This exact version is immutable and reproducible. The rolling pr tag tracks the newest test build across all PRs.

Recent builds (commit → version)

commit version build
8a1df61 billion-context@0.0.5537-pr.4586.37f861f build

Download artifact

  1. Download the artifact from the Actions run
  2. Extract the tarball and install:
tar xzf billion-context-pr4586.tgz
npm install -g package

Install instructions are refreshed on each push.

ranxianglei pushed a commit to z0d0dOr/billion-context that referenced this pull request Oct 24, 2026
…nxianglei#4316-ledger vs bounded-reads in backend/store; drop superseded ranxianglei#4241 relay hunk — master's D5-5 view-domain tailStart (ranxianglei#4586) is the root-cause fix)
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