Repository navigation
[PR] Wrapping up the egress series: default remains 0 (GA proposal rejected) + documentation finalization — dedicated egress- | egress 系列收尾:默认保持 0(GA 提议被否)+ 文档收口——专属 egress-plane 文档与图、退役登记表、storage/identity 架构页刷新、KDD #24 - #7659
Conversation
📦 Built Package ArtifactBranch: Latest build — install this exact versionnpm install -g billion-context@0.0.11812-pr.7659.e8d94d8This exact version is immutable and reproducible. The rolling Recent builds (commit → version)
Download artifact
tar xzf billion-context-pr7659.tgz
npm install -g packageInstall instructions are refreshed on each push. |
|
Commit 86aaa4a — 按 owner 的两条补充意见完成文档收尾("文档太简单了" + "该退役的直接退役或重写")。 1. 专属文档重写 + 三张图(en/zh-CN,svg+png)
2. 逐条对照代码核过事实,修掉一处硬伤
3. 退役处理:全部"注记退役",没有删任何文档(l1/D-lane 仍服务非 egress 路径,整体删除不成立)
验证:architecture-docs CI 脚本全绿(map/ledger/diagram 三项),tsc 干净。CI 跑 86aaa4a 后此 PR 即为文档面收尾形态。 |
[bot] 🏷 查重: 不重复——这是 egress 平面 GA(#7439 系列)的唯一收尾 PR,无平行 PR。 标签: enhancement + p2 + scope/storage + scope/docs(GA 放量 + 文档收口;owner 裁定、带完整回滚路径,非 p1;egress 平面属存储/身份架构,文档收口是本 PR 主体)。 CI 分诊 + 修复(本 PR 的红是 docs-sync 漂移,已修并推送):
你的
8 问 review:
判定: 可合——docs-sync 修复推送后,唯一红已解;CI 会在新 head 重跑全量 test 矩阵(此前被级联跳过)。文档收口完成,egress 平面有单一入口文档。 |
…s docs, storage page refresh, KDD #24 - rollout: egressPlane percent 0 -> 100 (GA; opt-out kept per #5469 precedent) - tests: 5 sites relying on 'unset = off' now set '0' explicitly; egress-record direction test rewritten to 'GA default ON, explicit 0 closes' - docs/egress-plane.{md,zh-CN.md}: one-stop egress doc (lineage #7439->#7581->#7617, dual clocks, identity consolidation, flag dependency, on/off resolution order, runbook, timeline) - docs/deprecations.{md,zh-CN.md}: retirement register (l1 placeholder, conversations, D-lane triggers, msgid switch removals, DROP batch) - docs/architecture/storage{,.zh-CN}.md refresh; AGENTS.md + design-decisions.md KDD #24; docs index x2 - CHANGELOG + generated config docs
…ane doc with diagrams, retirement register, storage/identity figure refresh, doc fact fixes
Owner: '现在的文档太简单了 和预期差太远了' + '很多文档应该会因此退役 需要直接退役或者重写'.
- egress-plane.{md,zh-CN.md}: rewritten as the real one-stop doc — inbound vs
outbound, design-decision table (incl. dual-clock rejection reason), all
four tables with PKs/retention, 7-step turn lifecycle, before/after
performance table (KDD #23 numbers), fork & rollback semantics, switch
family + arm rule, operator runbook, PR timeline. Fact-checked against
code; fixed egress_state PK misstatement ((session_id, log_seq) ->
(session_id, op_seq)) in en+zh.
- 3 new diagram pairs (egress-turns / egress-tables / egress-fork, en+zh-CN,
svg+png): the turn lifecycle, the table map with the flow_op_seq pointer,
and fork/rollback with the retention floor.
- deprecations.{md,zh-CN.md}: retirement register (l1 placeholder,
conversations, D-lane trigger conditions, msgid switch removals, retired
rollout keys) — retire-by-note, nothing deleted (l1/D-lane still serve
non-egress paths).
- architecture/storage.{md,zh-CN,ja}: egress section completed in zh+ja
(was en-only), l1_world marked degraded, index links.
- assets/identity.{en,zh-CN}.svg(+png): new egress-plane box (pin resolves
flow I rows, stateless stage-0, latch in sessions), P8 note updated to
'l1_world was the planned home, now degraded'.
- assets/storage.{en,zh-CN}.svg(+png): egress table chips (4 + l1 placeholder)
in the DB band, egress-on note.
- pr-6785 doc (en+zh): retirement note at top (l1/conversations/fold_journal
status, pointer to current table list).
- AGENTS.md: standing egress pointer in the orientation line.
- src: two stale comments fixed (egress-lane-io 'default 0', schema.ts
block-DDL 'shared clock' — the pre-dual-clock wording).
The GA commit hand-edited the generated docs/configuration*.md blocks
but left website/config-reference/rollout.yaml at the pre-GA seed
(default "0 (off)" + old desc), so the docs-sync gate's
regeneration reverted those lines and failed on the PR head.
The seed now carries the GA default ("100 (on, GA)" / "100(开,已 GA)",
matching the sibling GA keys pluginLaneServerHistory /
pluginMsgIdIncremental) and the GA desc wording. The generator feeds
BOTH the features table and the env table from the single e.default
string, so the two hand-edited variants ("100 (on)" vs
"100 (on, GA 2026-11-24)") collapse to the convention string — the
GA date + owner ruling stay in the desc text.
…ult flip The egressPlane GA (default 100) makes egress-on the default, so these 6 suites — which verify the watermark/msgid-pin/render/incremental-lane behavior by reading the unified messages table — now run egress-on by accident. For egress-on sessions the messages table is a lazy projection (no per-turn ingest), so the unified tail view / ledger reads return empty and the assertions fail (0 rows). Force BILI_ROLLOUT_EGRESS_PLANE=0 in each harness/setup, consistent with the 5 egress test files the GA commit already scoped to off. The egress-on path itself is covered by the 12 egress core suites.
… default flip The egressPlane GA (default 100) switches the persistence path to egress-on (lazy projection: no per-turn ingest into the unified messages table). These 3 suites exercise the store-level fork primitive (forkEgressSnapshot, egress-on by metadata.egressAuthority) and the seq-interval / splice lanes through the unified index, so the GA flip makes loadAsync / the debounced settle see an empty unified table and the assertions fail. Force BILI_ROLLOUT_EGRESS_PLANE=0 in each, consistent with the 5 egress test files the GA commit already scoped to off and the 6 legacy-path suites scoped in the prior commit. The egress-on path itself is covered by the 12 egress core suites.
…nly now Owner: '我们没有说要改成100 现在还是需要0'. The default-100 GA flip was proposed in this series (per the #5469 precedent) and declined. - src/rollout.ts: reverted to percent 0 (+ original comment). - tests: the 'unset means off' semantics are restored; three tests that now force the off direction use env "0" (wins over both the default and any local config file), incl. a hermeticity fix in issue7574-egress-seam (delete-env only meant 'off' on machines whose config does not force the plane on). - egress-record direction test rewritten back to 'default 0 — unset env/ config resolves OFF; explicit 1 opens the gate'. - docs (en/zh/ja + KDD #24 + CHANGELOG + config docs): every 'GA/default 100' statement rewritten to 'stays 0, opt-in; a default-100 flip was proposed and declined'; the deprecations register's GA gates now read 'the default-100 flip, pending owner decision'; the flip is listed as the first tracked follow-up.
…s declined (owner ruling 2026-11-24)
…ff; master's newer entries included)
e74df4e to
5911beb
Compare
…2806) The generator emitted plain <line> elements with no <marker> definition, so every arrow in egress-turns/tables/fork (en+zh) rendered as a bare line. Added the marker def (userSpaceOnUse, matching the original storage/identity figures' approach) + marker-end on all 11 arrows; re-rendered the 6 PNGs and pixel-verified the arrowhead zones.
|
Commit d4ff7ee — 修图(review 意见:新图箭头没连上)。 三张新图(egress-turns / egress-tables / egress-fork,en+zh 共 6 个 svg)的 11 条箭头是裸 |
[bot] 🏷 (ai: vllm-qwen/qwen3.8-27b) 收到 owner 裁定:egressPlane 默认回 0(GA 翻转被否决),PR 改为纯文档。 当前状态(head
关于保留的测试 fix:egressPlane 默认回 0 后,这 9 个文件里的 CI:force-push 后旧 run 全部 cancelled,新 run 尚未开始(刚 push)。等 CI 跑完确认绿。 |
…rowheads - egress-tables: the flow_op_seq pointer ran from egress_block_flow's top-right corner back into its OWN top-left corner (both endpoints on the same box, riding its border) — it was meant to point at egress_flow. Rerouted as a polyline: up from the block table's top, across the gap, down into egress_flow's top edge; labels moved above the line. - turns/fork/tables: the generator had already drawn hand-made polygon arrowheads; the previous marker fix added marker-end on top of them, so every arrow wore two heads. Polygons removed — the shared <marker> is now the only arrowhead source (matching the original storage/identity figures). - re-rendered all 6 PNGs, visually re-checked.
|
Commit 3aee42c — 图再修(review:tables 图箭头自指 + 双箭头头)。
|
📦 Merged Build PublishedThis merge to master was published as npm install -g billion-context@0.0.1321-master.256df56 # this exact build
npm install -g billion-context@master # always the newest merged build
|
…ranxianglei#7678 wal-reclaim-passive (walJournalSizeLimitBytes default 0, ranxianglei#7674) + ranxianglei#7617 identity-tables-consolidate + ranxianglei#7581 egress block-flow checkpoint retire + ranxianglei#7659 eg-GA docs wrapup + ranxianglei#7671 degenerate-retry + ranxianglei#7676 megaturn-bridge + ranxianglei#7677 doom-prompt-mass + ranxianglei#7632 pure-echo latch + dsh batch (ranxianglei#7161/ranxianglei#7159/ranxianglei#7158/ranxianglei#7129/ranxianglei#7127) Only manual conflict: docs/configuration{,.zh-CN}.md env table — union of intent, original line order: master's walJournalSizeLimitBytes row (default 0, ranxianglei#7674) + PR's archiveAfterDays row (with the bili storage migrate ranxianglei#5599 clause). All code (src/persist.ts, src/storage/shadow.ts, src/storage/store.ts, tests/storage-unified.test.ts) auto-merged; local typecheck clean and the targeted storage suites (storage-unified/-ccr/-state-fields/ -batched-verification) pass 38/38 on the merged tree. (ranxianglei#6773)
egress 系列收尾:默认值保持 0(owner 裁定)+ 文档收口(专属文档、图、退役登记表、架构页刷新)
一、专属文档(新增,唯一入口)
docs/egress-plane.{md,zh-CN.md}:入站 vs 出站、设计决策表(含双时钟被否决的原因)、四表结构与保留规则、一轮 7 步生命周期、性能前后对照(KDD fix: logger rotation, SSE drain on shutdown, host docs #23 实测数字)、fork 与回退语义、开关家族 + arm 规则 + on/off 解析序(env → 配置文件~/.config/billion-context/billion-context.json→ 代码默认)、运维 runbook、PR 时间线。egress-turns(一轮生命周期)、egress-tables(表关系 + flow_op_seq 指针)、egress-fork(fork/回退 + 保留底线)。箭头已按 review 修复(d4ff7ee)。二、退役登记表(新增)
docs/deprecations.{md,zh-CN.md}——每个退役面一行:现状 / 替代 / 物理移除的触发条件 / 出处:l1_world 占位行、conversations 表、D-lane snapshotRender、msgid 三开关删除、物理 DROP 批次。GA 闸门统一写为「默认翻 100(待 owner 决定)+ 稳定版本」——翻 100 与删除都是后续独立步骤,随时可执行。三、既有文档刷新(注记退役,没有删任何文档)
docs/architecture/storage.{md,zh-CN,ja}:l1_world 定位改「退化占位」、egress 段三语补齐、索引互链。assets/identity.{en,zh-CN}.svg(+png):新增 egress 平面盒(pin 解析 flow I 行、stage-0 无状态、latch 落 sessions.r3_latched_at)。assets/storage.{en,zh-CN}.svg(+png):数据库带加 4 个 egress 表 chip + l1 占位 chip + egress-on 注。docs/pr-6785-*.md:顶部退役注(l1/conversations/fold_journal 现状 + 指路当前表清单)。AGENTS.md:概览行常驻指引 + KDD release v0.1.9 #24(design-decisions.md 全文:默认值裁定 + 文档清单 + 为什么现在做)。四、测试面
"0"(env 同时压过默认与本地配置文件,环境无关)。验证
本地:rollout/egress-record/7574-seam/2x2-p3/identity 两套/fork-e2e/consolidate-e2e/incremental-lane/openai-msgid-pin 全绿;tsc 干净;architecture-docs CI 脚本全绿(map/ledger/diagram 三项)。
后续(不在本 PR)
egressPlane翻 100——等 owner 点头,单独一个 PR(一行代码 + 同批测试调整)。