mirror of
https://github.com/ranxianglei/billion-context.git
synced 2026-12-02 19:26:20 +08:00
refactor(egress): one switch, one path — collapse egressOpLog/egressServeLog into egressPlane (#7439 ruling)
The egress plane gets a SINGLE rollout key: egressPlane (default 0). ON = the complete new path in every lane — sparse-op recording, serve-from-log (byte-identical swap), and server authority for pinned plugin lanes (rulings 7439-3/5). OFF = legacy chain, zero rows, byte-identical to pre-feature. Both predecessor keys never shipped (default 0, born in rollback state) — no migration. Owner ruling 2026-11-21: '删掉以前的开关 只留下一个开关'. Verification: typecheck 0; 13-file storage/egress/fastpath battery 112/112; e2e codex 4-phase pass (rollout off = legacy path).
This commit is contained in:
@@ -105,8 +105,7 @@
|
||||
| `rollout.features.identityChannelHarvest` | boolean \| number | 0 (off) | BILI_ROLLOUT_IDENTITY_CHANNEL_HARVEST | IDチャネル収穫コホートゲート (#5825):インストールごとの環境スイッチなしで、ループバック専用のトランスクリプト/sqlite収穫(`src/identity-harvest.ts`: claude-code / codebuddy / mcode / goose / qwen レーン)を許可する。インストールごとのスイッチ(`BILI_IDENTITY_HARVEST`)もこのキーも設定されていない場合、クライアントストレージは一切読み取られない。オーナー裁定 2026-11-07:このコホートキーは `rollout.features.pluginLaneServerHistory`(承認済みIDの行固定を管理)とは意図的に分離されている — いずれかのイネーブラーが収穫を有効化できる。デフォルト 0%;小規模コホートでの degrade warn-once レートの観察後に引き上げる。`identity-channels.md` を参照。 |
|
||||
| `rollout.features.pluginLaneServerHistory` | boolean \| number | 100 (on, GA) | BILI_ROLLOUT_PLUGIN_LANE_SERVER_HISTORY | プラグインレーンのサーバー所有履歴 (#4491):有効化されたインストールにおいて、(a) プラグインレーンのリクエストは `messages` と並行して内部 `biliMsgIds` 配列を持ち、メッセージIDをクライアント提供のIDに固定できる(上流転送前に常に除去;不正な配列は警告付きで無視、ID汚染形状は増分レーンでハードフェイル);(b) ループバック専用の `POST /__bili/plugin/render` エンドポイントは、統合トランスクリプトからレンダリングされた送信プレフィックスを提供する(折り畳み領域はサマリアンカーに縮小;デシンクは非2xxにデグレードし、シムはローカル履歴にフォールバック);(c) 増分レーンのプローブは `serverHistory` をアドバタイズする。デフォルト 100%(GA、オーナー裁定 2026-11-13);0 に設定するとインストールは GA 前の状態に戻る。 |
|
||||
| `rollout.features.pluginMsgIdIncremental` | boolean \| number | 100 (on, GA) | BILI_ROLLOUT_PLUGIN_MSG_ID_INCREMENTAL | 増分 msgid pin チャネル(#7064 §8、オーナー裁定 2026-11-18/19):定常プラグインターンはメッセージ ID を**テール形態**で申告する — 有界な `x-bili-pf-tail-ids` ヘッダー(アンカー+新規 ID、≤ 2048 個、`?` プレースホルダ)または短い body ID 配列 — 全リストを置き換える。サーバーは自前の台帳 live 行からプレフィックス ID を再スタンプする(ingest は INSERT OR IGNORE on (session_id,seq) — 位置の msg_id は一度だけ書き込まれ、決して上書きされない)。受理規則(2026-11-19 定石):申告されたテール [T-L, T-1] と台帳の重複区間が逐行一致すること(1行でもずれれば `full` にデグレード、400 はしない);超長セッション(> 2048)も切り詰められたテールで同じく pin できる — 重複区間が長いほど証拠は強い。スナップショットラウンド(台帳空/折り畳み後の再アンカー)のみ全形態を送る;両方到着時は全形態が優先。レスポンスは `x-bili-msgid-mode: incremental\|full` を載せる(4xx でクリア、x-bili-pf-seq と同じ学習ポイント)。不一致は 1 ラウンドで自己修復。デフォルト 100%;0 で全リスト pin にロールバック(機能前とバイト一致)。pluginLaneServerHistory が必要。session-identity-resolution.md 参照。 |
|
||||
| `rollout.features.egressOpLog` | boolean \| number | 0 (off) | BILI_ROLLOUT_EGRESS_OP_LOG | Egress op-log シャドー記録(#7398 セグメント3):各ターンで送信会話ビューを前ターンと diff し、スパース op バッチ(I/D/U)を egress_state/egress_flow デュアルテーブルに追記する。**記録のみ** — 送信バイトはログから読み書きしない(セグメント4、独立キー)。デフォルト 0 = 0行・0コスト。discussions/7398 参照。 |
|
||||
| `rollout.features.egressServeLog` | boolean \| number | 0 (off) | BILI_ROLLOUT_EGRESS_SERVE_LOG | egress op ログからの送信会話サービング(#7398 セグメント4b):オンで、OpenAI レーンの各ターンが送信ビューをスパース op で自己記録する(egressOpLog 不要)、op ログ + 統一コンテンツ CAS から送信コアメッセージ部分を再構築し、再構築要素を送信 body に**実際に swap** する — 構造によりバイト一致(CAS バイトはパイプライン自身の最終 core JSON)。再構築不能行(casRef 欠落 / CAS body 欠落 / 未知 role)やログ破損があると**そのターン全体**がレガシーチェーンにデグレード — 部分的な swap は絶対にしない;フォールバックターンはセグメント4a シャドー比較(ログのみ)も実行し一致率を継続測定。system ブロックは両経路でライブ構築のまま(プレフィックスキャッシュアンカー規律)。SQLite レーンのみ;タイトル生成リクエストは除外。デフォルト 0 = オフ(機能前とバイト一致)。discussions/7398 参照。 |
|
||||
| `rollout.features.egressPlane` | boolean \| number | 0 (off) | BILI_ROLLOUT_EGRESS_PLANE | egress プレーン — 新しい経路全体の**単一スイッチ**(#7398/#7439;退役した egressOpLog/egressServeLog の二キーを置き換え)。ON:全 wire レーン(OpenAI/Anthropic/Responses/Google)が毎ターン送信会話ビューをスパース op(I/D/U)として egress_state/egress_flow デュアルテーブルに記録 — 行は**自己完結**(メッセージバイトが同行する;コンテンツ CAS を経由しない、裁定 7439-1)— 送信コアメッセージ部分を op ログから復元し再構築、構造によりバイト一致(行内バイトはパイプライン自身の最終 core JSON);ピン留め済みプラグインレーンは加えてサーバー権威を取得 — カーネル入力をフローからリプレイ(裁定 7439-3/5)。有界の遡行ラダーで最新の健全ログ点に回復;再構築不能行(バイト欠落/空、未知 role)、ログ破損、プローブ失敗のいずれかで**そのターン全体**をレガシーチェーンにデグレード — 部分的な swap は絶対にしない、クライアントを権威にしない。system ブロックは両経路でライブ構築のまま(プレフィックスキャッシュアンカー規律)。SQLite レーンのみ;タイトル生成/圧縮のサイドリクエストは除外。デフォルト 0 = オフ:レガシー経路、0 行、機能前とバイト一致。 |
|
||||
| `rollout.features.pluginDeltaResend` | boolean \| number | 0 (off) | BILI_ROLLOUT_PLUGIN_DELTA_RESEND | Delta 再送 — フルリセンドウォーターマークレーンのテールスライス形態:定常プラグインレーンのターンは `x-bili-pf-delta: 1` + body.messages = 新要素のみ(L = T − stampT、プレフィックスなし)を送る;サーバーはスタッシュ済みプレフィックスコアとパース済みテールからビューを再構築する(フルレーンと同一のヒット由来)。満たせない主張(count/body/tail-ids 幅の不一致、既知リスト後のアンカーチェーン破断、ロールアウトオフ)は 400 `pf_delta_reanchor` + `x-bili-msgid-mode: full` を返し、クライアントはそのターンをフルフォームで再送する — 1ラウンドで収束、静かな誤パースは絶対にしない。デフォルトオフ:delta body はこのアームを持たないサーバーでは処理できないため、クライアント送信側が実装されるまでキーは 0 のまま。`technical-notes.md` の「Delta resend」を参照。 |
|
||||
| `rollout.features.pluginFullResendWatermark` | boolean \| number | 5 (experimental grey) | BILI_ROLLOUT_PLUGIN_FULL_RESEND_WATERMARK | フルリセンドウォーターマークファストパス (#5403/#5418):前回のレスポンスに `x-bili-pf-seq` ス tamp を持っていたプラグインレーンのチャットコンプリートターンでは、エコーされたカウントにより再送信プレフィックスをアサートする(構造スキャン、フルパースなし);ヒット時にパイプラインはスタッシュされた正規プレフィックスコアと新しいテールウィンドウのみを消費する(バイト同一の送信プロベナンス;疑義がある場合はターンごとに未変更のフルパースパスにフォールバックし再スタンプ、5回のクレジットミスでレーンを1時間保持)。クライアントがスタンプを `x-bili-pf-count` としてエコーバックすることを要求(dsh/pi/opencode/omp は対応;未適応レーンはヒットしない)。実験的グレースケールロールアウト — インストールの約5%でデフォルトON(オーナー裁定 2026-11-02:GA前に小規模コホート;Web UIで全インストールに一度限りの導入通知、クイック設定に3状態スイッチ)。`true` で強制、`false`(またはパーセンテージ)/ 環境変数 = 0 でオフ。`technical-notes.md` の「Full-resend watermark fastpath」を参照。 |
|
||||
| `maskHosts` | boolean | true | BILI_LOG_MASK_HOSTS | ログ内の非公開ターゲットホストを <private-host> としてマスクする。認証情報ヘッダーは常にマスクされる。 |
|
||||
@@ -2014,8 +2013,7 @@ ACP ネイティブエージェント(現在は `pi` 拡張機能)は、プ
|
||||
| `BILI_RESIGN_PASSTHROUGH` | `resign` | {} (armed; built-in scheme sdk-hmac-sha256) |
|
||||
| `BILI_RESUME_INHERITANCE` | `resumeInheritance` | true |
|
||||
| `BILI_ROLLOUT_<FEATURE>` | `rollout.features.enabled` | unset (bucket math decides) |
|
||||
| `BILI_ROLLOUT_EGRESS_OP_LOG` | `rollout.features.egressOpLog` | 0 (off) |
|
||||
| `BILI_ROLLOUT_EGRESS_SERVE_LOG` | `rollout.features.egressServeLog` | 0 (off) |
|
||||
| `BILI_ROLLOUT_EGRESS_PLANE` | `rollout.features.egressPlane` | 0 (off) |
|
||||
| `BILI_ROLLOUT_IDENTITY_CHANNEL_HARVEST` | `rollout.features.identityChannelHarvest` | 0 (off) |
|
||||
| `BILI_ROLLOUT_PLUGIN_DELTA_RESEND` | `rollout.features.pluginDeltaResend` | 0 (off) |
|
||||
| `BILI_ROLLOUT_PLUGIN_FULL_RESEND_WATERMARK` | `rollout.features.pluginFullResendWatermark` | 5 (experimental grey) |
|
||||
|
||||
@@ -108,8 +108,7 @@ This index is generated from `website/config-reference/*.yaml` — edit the seed
|
||||
| `rollout.features.identityChannelHarvest` | boolean \| number | 0 (off) | BILI_ROLLOUT_IDENTITY_CHANNEL_HARVEST | Identity-channel harvest cohort gate (#5825): allows the loopback-only transcript/sqlite harvest (src/identity-harvest.ts: claude-code / codebuddy / mcode / goose / qwen lanes) without any per-install env switch, when neither the per-install switch (BILI_IDENTITY_HARVEST) nor this key is set nothing ever reads client storage. Owner ruling 2026-11-07: this cohort key is deliberately separate from rollout.features.pluginLaneServerHistory (which governs row PINNING of admitted ids) — either enabler may activate harvesting. Default 0%; raise after small-cohort observation of the degrade warn-once rate. See identity-channels.md. |
|
||||
| `rollout.features.pluginLaneServerHistory` | boolean \| number | 100 (on, GA) | BILI_ROLLOUT_PLUGIN_LANE_SERVER_HISTORY | Plugin-lane server-owned history (#4491): for enabled installs, (a) plugin-lane requests may carry an internal `biliMsgIds` array parallel to `messages` that pins message identity to client-supplied ids (always stripped before upstream forwarding; malformed arrays are ignored with a warning, id-poisoning shapes hard-fail on the incremental lane); (b) the loopback-only `POST /__bili/plugin/render` endpoint serves the outbound prefix rendered from the unified transcript (folded regions collapse to summary anchors; any desync degrades to a non-2xx so the shim falls back to its local history); (c) the incremental-lane probe advertises `serverHistory`. Default 100% (GA, owner ruling 2026-11-13); set 0 to roll an install back to the pre-GA state. |
|
||||
| `rollout.features.pluginMsgIdIncremental` | boolean \| number | 100 (on, GA) | BILI_ROLLOUT_PLUGIN_MSG_ID_INCREMENTAL | Incremental msgid pin channel (#7064 §8, owner rulings 2026-11-18/19): steady plugin-lane turns declare their message ids in TAIL FORM — the bounded `x-bili-pf-tail-ids` header (anchor + new ids, ≤ 2048 ids, `?` placeholder slots) or a short body id array — instead of the FULL list; the server re-stamps the prefix ids from its own ledger live rows (ingest is INSERT OR IGNORE on (session_id,seq) — a position's msg_id is written once, never overwritten). Acceptance (2026-11-19 form): the declared tail [T-L, T-1] must match the ledger overlap segment row-by-row (any drift degrades to `full`, never 400); ultra-long sessions (> 2048 ids) pin a truncated tail the same way — the longer overlap proves MORE. Only snapshot rounds (empty ledger / post-fold re-anchor) send the full form; full form always wins when both arrive. The response carries `x-bili-msgid-mode: incremental\|full` (cleared on any 4xx; one learning point next to x-bili-pf-seq). Any mismatch self-heals within one round. Default 100%; set 0 to roll back to full-list pinning (byte-identical to pre-feature). Requires pluginLaneServerHistory. See docs/session-identity-resolution.md. |
|
||||
| `rollout.features.egressOpLog` | boolean \| number | 0 (off) | BILI_ROLLOUT_EGRESS_OP_LOG | Egress op-log shadow recording (#7398 seg 3): each turn diffs the outbound conversation view against the previous turn's and appends the sparse op batch (I/D/U) to the egress_state/egress_flow dual tables. RECORDING ONLY — outbound bytes are not read from or written through the log (that is seg 4, its own key). Default 0 = zero rows, zero cost. See discussions/7398. |
|
||||
| `rollout.features.egressServeLog` | boolean \| number | 0 (off) | BILI_ROLLOUT_EGRESS_SERVE_LOG | Serve the outbound conversation FROM the egress op log (#7398 seg 4b): when on, each OpenAI-lane turn records the outbound view as sparse ops (self-recording; egressOpLog not required) and rebuilds the outbound core-message portion from the op log + unified content CAS, then SWAPS the rebuilt elements into the outbound body — byte-identical by construction (the CAS bytes are the pipeline's own final core JSON). ANY unrebuildable row (missing casRef / missing CAS body / unknown role) or a corrupt log degrades the WHOLE turn to the legacy chain — never a partial swap; fallback turns additionally run the seg 4a shadow byte-comparison (log-only) to keep measuring identity. The system block stays live-built in both paths (prefix-cache anchor discipline). SQLite lane only; title-gen requests excluded. Default 0 = off (byte-identical to pre-feature). See discussions/7398. |
|
||||
| `rollout.features.egressPlane` | boolean \| number | 0 (off) | BILI_ROLLOUT_EGRESS_PLANE | The egress plane — ONE switch for the whole new path (#7398/#7439; replaces the retired egressOpLog/egressServeLog pair). ON: every wire lane (OpenAI/Anthropic/Responses/Google) records its outbound conversation view as sparse ops (I/D/U) into the egress_state/egress_flow dual tables — rows are SELF-CONTAINED (message bytes ride the row; no content CAS, ruling 7439-1) — and serves the outbound core-message portion back from the op log, byte-identical by construction (the row bytes are the pipeline's own final core JSON); pinned plugin lanes additionally take server authority — the kernel input is replayed from the flow (rulings 7439-3/5). A bounded backward ladder recovers to the newest healthy log point; ANY unrebuildable row (missing/empty bytes, unknown role), corrupt log, or probe failure degrades that turn to the legacy chain — never a partial swap, never client-as-authority. The system block stays live-built in both paths (prefix-cache anchor discipline). SQLite lane only; title-gen/compaction side requests excluded. Default 0 = off: legacy chain, zero rows, byte-identical to pre-feature. |
|
||||
| `rollout.features.pluginDeltaResend` | boolean \| number | 0 (off) | BILI_ROLLOUT_PLUGIN_DELTA_RESEND | Delta resend — the tail-slice form of the full-resend watermark lane: steady plugin-lane turns send x-bili-pf-delta: 1 + body.messages = ONLY the new elements (L = T − stampT, no prefix); the server rebuilds the view from the stashed prefix cores plus the parsed tail (same hit provenance as the full lane). ANY unsatisfiable claim (count/body/tail-ids width mismatch, anchor-chain break after a known list, rollout off) returns 400 pf_delta_reanchor + x-bili-msgid-mode: full and the client resends that turn in full form — one-round convergence, never a silent misparse. OFF by default: delta bodies are unprocessable by servers that do not ship this arm, so the key stays 0 until client send-sides exist. See technical-notes.md “Delta resend”. |
|
||||
| `rollout.features.pluginFullResendWatermark` | boolean \| number | 5 (experimental grey) | BILI_ROLLOUT_PLUGIN_FULL_RESEND_WATERMARK | Full-resend watermark fastpath (#5403/#5418): plugin-lane chat-completions turns whose previous response carried an x-bili-pf-seq stamp assert the resent prefix via the echoed count (structural scan, no full parse); on a hit the pipeline consumes stashed canonical prefix cores plus only the new tail window (byte-identical outbound provenance; ANY doubt falls back to the untouched full-parse path per turn and re-stamps, five credited misses hold the lane for one hour). Requires the client to echo the stamp back as x-bili-pf-count (dsh/pi/opencode/omp do; unadapted lanes never hit). EXPERIMENTAL grey rollout — ON by default for roughly 5% of installs (owner ruling 2026-11-02: small cohort before GA; one-time intro notice in the web UI for every install, tri-state switch in quick config). Force it with `true`, turn off with `false` (or a percent) / env = 0. See technical-notes.md “Full-resend watermark fastpath”. |
|
||||
| `maskHosts` | boolean | true | BILI_LOG_MASK_HOSTS | Mask non-public target hosts in logs as <private-host>; credential headers are always masked regardless. |
|
||||
@@ -2028,8 +2027,7 @@ File keys resolve only when the matching env var is unset. Defaults in parenthes
|
||||
| `BILI_RESIGN_PASSTHROUGH` | `resign` | {} (armed; built-in scheme sdk-hmac-sha256) |
|
||||
| `BILI_RESUME_INHERITANCE` | `resumeInheritance` | true |
|
||||
| `BILI_ROLLOUT_<FEATURE>` | `rollout.features.enabled` | unset (bucket math decides) |
|
||||
| `BILI_ROLLOUT_EGRESS_OP_LOG` | `rollout.features.egressOpLog` | 0 (off) |
|
||||
| `BILI_ROLLOUT_EGRESS_SERVE_LOG` | `rollout.features.egressServeLog` | 0 (off) |
|
||||
| `BILI_ROLLOUT_EGRESS_PLANE` | `rollout.features.egressPlane` | 0 (off) |
|
||||
| `BILI_ROLLOUT_IDENTITY_CHANNEL_HARVEST` | `rollout.features.identityChannelHarvest` | 0 (off) |
|
||||
| `BILI_ROLLOUT_PLUGIN_DELTA_RESEND` | `rollout.features.pluginDeltaResend` | 0 (off) |
|
||||
| `BILI_ROLLOUT_PLUGIN_FULL_RESEND_WATERMARK` | `rollout.features.pluginFullResendWatermark` | 5 (experimental grey) |
|
||||
|
||||
@@ -108,8 +108,7 @@
|
||||
| `rollout.features.identityChannelHarvest` | boolean \| number | 0(关) | BILI_ROLLOUT_IDENTITY_CHANNEL_HARVEST | 身份信道采集的灰度门(#5825):当安装级开关(BILI_IDENTITY_HARVEST)未设置时,允许仅由本灰度键激活回环专属的转录/SQLite 采集(claude-code / codebuddy / mcode / goose / qwen 车道);两者都不设则永不读客户端存储。owner 裁定 2026-11-07:本灰度键与 rollout.features.pluginLaneServerHistory(它管已接纳 id 的行钉住)刻意分离——任一使能方可激活采集。默认 0%,小流量观察退化率后再抬。见 identity-channels.zh-CN.md。 |
|
||||
| `rollout.features.pluginLaneServerHistory` | boolean \| number | 100(开,已 GA) | BILI_ROLLOUT_PLUGIN_LANE_SERVER_HISTORY | 插件车道服务端正史(#4491):对已放量的安装,(a) 插件车道请求可携带与 `messages` 平行的内部字段 `biliMsgIds`,把消息身份钉在客户端提供的 id 上(转发上游前一律剥掉;格式错误的数组告警后忽略,身份投毒形态在增量车道直接硬失败);(b) 仅回环可达的 `POST /__bili/plugin/render` 端点从统一存储渲染出站前缀(折叠区收敛为摘要锚点;任何失步都返回非 2xx,shim 退回本地历史);(c) 增量车道探测响应通告 `serverHistory`。默认 100%(GA,owner 裁定 2026-11-13);设 0 可把安装回滚到 GA 前状态。 |
|
||||
| `rollout.features.pluginMsgIdIncremental` | boolean \| number | 100(开,已 GA) | BILI_ROLLOUT_PLUGIN_MSG_ID_INCREMENTAL | 增量 msgid pin 通道(#7064 §8,owner 裁定 2026-11-18/19):稳态插件轮用**尾形态**申报消息 id——有界的 `x-bili-pf-tail-ids` 头(锚点+新增,≤ 2048 个,`?` 占位槽)或短 body id 数组——替代全量清单;服务端从自己账本的 live 行重盖前缀 id(ingest 是 INSERT OR IGNORE on (session_id,seq)——位置上的 msg_id 只写一次,永不改写)。接受规则(2026-11-19 定型):声明的尾段 [T-L, T-1] 与账本重叠段逐行相等(任一行漂移⇒降级 full,永不 400);超长会话(>2048)截断的尾清单同样可 pin——重叠段更长、证明更强。只有快照轮(账本空/折叠后重锚)发全量形态;全量优先于尾形态同时到达。响应携带 `x-bili-msgid-mode: incremental\|full`(4xx 即清,与 x-bili-pf-seq 同一学习点)。任何失配一轮内自愈。默认 100%;设 0 回滚到全量清单 pin(与特性前字节一致)。需先开 pluginLaneServerHistory。见 session-identity-resolution.zh-CN.md。 |
|
||||
| `rollout.features.egressOpLog` | boolean \| number | 0(关) | BILI_ROLLOUT_EGRESS_OP_LOG | 出站 op 日志影子记账(#7398 第三段):每轮把出站会话视图与上一轮做 diff,把稀疏 op 批(I/D/U)追加到 egress_state/egress_flow 双表。**只记账**——不读不写出站字节(那是第四段,独立灰度键)。默认 0 = 零行零开销。见 discussions/7398。 |
|
||||
| `rollout.features.egressServeLog` | boolean \| number | 0(关) | BILI_ROLLOUT_EGRESS_SERVE_LOG | 从出站 op 日志服务出站会话(#7398 第四段 4b):开启后,每个 OpenAI 车道轮自记账出站视图稀疏 op(不依赖 egressOpLog),并从 op 日志 + 统一内容 CAS 重建出站核心消息段后**真实 swap** 进出站 body——按构造字节一致(CAS 字节就是管线自己的最终 core JSON)。任何不可重建行(缺 casRef / 缺 CAS body / 未知 role)或日志损坏,整轮降级 legacy 链路——绝不部分替换;降级轮另跑 4a 影子对拍(只打日志)持续度量一致性。system 块两条路径都保持 live 构建(前缀缓存锚点纪律)。仅 SQLite 车道;标题生成请求排除。默认 0 = 关(与特性前字节一致)。见 discussions/7398。 |
|
||||
| `rollout.features.egressPlane` | boolean \| number | 0(关) | BILI_ROLLOUT_EGRESS_PLANE | egress 平面——整条新链路的**唯一开关**(#7398/#7439;取代已退役的 egressOpLog/egressServeLog 双键)。开:四条 wire 车道(OpenAI/Anthropic/Responses/Google)每轮把出站会话视图记为稀疏 op(I/D/U)写入 egress_state/egress_flow 双表——行**自包含**(消息字节随行走,不经内容 CAS,裁定 7439-1)——并从 op 日志回放重建出站核心消息段,按构造字节一致(行内字节就是管线自己的最终 core JSON);pinned 插件车道另获服务端权威——内核输入从流水回放(裁定 7439-3/5)。有界回溯阶梯恢复到最近健康日志点;任何不可重建行(缺/空字节、未知 role)、日志损坏或探针失败,整轮降级 legacy 链路——绝不部分替换、绝不客户端为准。system 块两条路径都保持 live 构建(前缀缓存锚点纪律)。仅 SQLite 车道;标题生成/压缩侧路请求排除。默认 0 = 关:legacy 链路,零行,与特性前字节一致。 |
|
||||
| `rollout.features.pluginDeltaResend` | boolean \| number | 0(关) | BILI_ROLLOUT_PLUGIN_DELTA_RESEND | Delta 重发——全量重发水位快路径的尾切片形态:稳态轮发 x-bili-pf-delta: 1 + body.messages = **只有**新元素(L = T − stampT,无前置);服务端用钉存前缀核 + 解析出的尾部重建视图(与全量车道同源的命中可证)。任何不成立的声明(count/body/tail-ids 宽度不符、已知清单后锚链断裂、灰度关)返回 400 pf_delta_reanchor + x-bili-msgid-mode: full,客户端当轮改发全量形态——一轮收敛,绝不静默错解。默认**关**:delta body 对未上车的服务端不可处理,故保持 0 直到客户端发送端就位。见 technical-notes.zh-CN.md「Delta 重发」。 |
|
||||
| `rollout.features.pluginFullResendWatermark` | boolean \| number | 5(实验性灰度) | BILI_ROLLOUT_PLUGIN_FULL_RESEND_WATERMARK | 全量重发水位快路径(#5403/#5418):插件车道 chat-completions 回合若上一轮响应盖有 x-bili-pf-seq,则用回声计数声明重发前缀(结构扫描,不做全量解析);命中时管线只消费钉存的前缀核 + 新增尾巴窗口(出站字节同源可证;任何疑点当轮回退未动过的全量解析路径并重新盖戳,连续五次计名失配将车道按住一小时)。需客户端把戳回声为 x-bili-pf-count(适配的车道回带;其余车道不会命中)。**实验性灰度**——默认仅约 5% 的安装开启(owner 裁定 2026-11-02:先小流量再 GA;web 面板对全部安装显示一次性公告、快速配置提供三态开关);`true` 强制开、`false`(或百分比)/ env = 0 关。见 technical-notes.zh-CN.md「全量重发水位快路径」。 |
|
||||
| `maskHosts` | boolean | true | BILI_LOG_MASK_HOSTS | 日志中把非公开目标主机遮成 <private-host>;凭据头无论此开关如何总是遮盖。 |
|
||||
@@ -2005,8 +2004,7 @@ ACP 原生 agent(当前为 `pi` 扩展)会在每个进程内向代理上报
|
||||
| `BILI_RESIGN_PASSTHROUGH` | `resign` | {} (armed; built-in scheme sdk-hmac-sha256) |
|
||||
| `BILI_RESUME_INHERITANCE` | `resumeInheritance` | true |
|
||||
| `BILI_ROLLOUT_<FEATURE>` | `rollout.features.enabled` | unset (bucket math decides) |
|
||||
| `BILI_ROLLOUT_EGRESS_OP_LOG` | `rollout.features.egressOpLog` | 0 (off) |
|
||||
| `BILI_ROLLOUT_EGRESS_SERVE_LOG` | `rollout.features.egressServeLog` | 0 (off) |
|
||||
| `BILI_ROLLOUT_EGRESS_PLANE` | `rollout.features.egressPlane` | 0 (off) |
|
||||
| `BILI_ROLLOUT_IDENTITY_CHANNEL_HARVEST` | `rollout.features.identityChannelHarvest` | 0 (off) |
|
||||
| `BILI_ROLLOUT_PLUGIN_DELTA_RESEND` | `rollout.features.pluginDeltaResend` | 0 (off) |
|
||||
| `BILI_ROLLOUT_PLUGIN_FULL_RESEND_WATERMARK` | `rollout.features.pluginFullResendWatermark` | 5 (experimental grey) |
|
||||
|
||||
@@ -12,7 +12,7 @@ It turns the two O(full) paths — "recompute the outbound view from scratch eve
|
||||
| Block | Proposal / origin | Switch (default) |
|
||||
|---|---|---|
|
||||
| ① Snapshot base v2 (stage-0 identity ledger + fold journal + outbound prefix cache) | #5874 v2 / #7064 slimming | `storage.snapBase.enabled` (off by default, config-only) |
|
||||
| ② Outbound op-log (egress_state/egress_flow + rebuild-serve) | Discussion #7398 | `egressOpLog` (0) / `egressServeLog` (0) |
|
||||
| ② Outbound op-log (egress_state/egress_flow + rebuild-serve + server authority) | Discussion #7398/#7439 | `egressPlane` (0) — ONE switch for the whole new path |
|
||||
| ③ Full-resend watermark + delta tail slice | #5403/#5418 + this PR | `pluginFullResendWatermark` (5) / `pluginDeltaResend` (0) |
|
||||
| ④ Incremental msgid pin (tail-ids tail form) | #7064 §8 | `pluginMsgIdIncremental` (**100**, on by default from this PR) |
|
||||
| ⑤ Server-side canonical history GA | #4491 | `pluginLaneServerHistory` (**100**, flipped 0→100 by this PR) |
|
||||
@@ -219,7 +219,7 @@ Client POST /bili/http://<upstream>/chat/completions
|
||||
→ [handle] readBody (155MB-class) → pf protocol scan (fastpath-scan, zero parse)
|
||||
→ [fastpath] HIT (stamp advanced + anchor chain intact): skip whole-body parse/convert/pin-stash
|
||||
→ [prepare-openai] rebuild view = pinned prefix cores + tail-window parse (delta arm)
|
||||
├─ egressServeLog ON: recordEgressTurn (sparse I ops, a few KB)
|
||||
├─ egressPlane ON: recordEgressTurn (sparse I ops, a few KB)
|
||||
│ → rebuildOutboundFromLog (op log + CAS) → swap into outbound bytes
|
||||
└─ OFF: legacy kernel view → coreToOpenai chain
|
||||
→ [ingest] shadow.ingestDelta: watermark + boundary + head probe → planIngestDelta
|
||||
@@ -274,8 +274,7 @@ Fold tx: blocks insert/update + covered rows retired (same tx) + one fold_journa
|
||||
| `pluginMsgIdIncremental` | **100** | new, on | ④ tail-form id declaration, ledger re-stamps prefix | env=0 |
|
||||
| `pluginFullResendWatermark` | 5 | (existing 5% rollout) | ③ watermark fast path | env=0 |
|
||||
| `pluginDeltaResend` | 0 | new, off | ③ delta tail-slice arm; 0 = 400 on delta requests, client converges to full in one round | born in rollback state |
|
||||
| `egressOpLog` | 0 | new, off | ② seg3 shadow recording (bookkeeping only) | born in rollback state |
|
||||
| `egressServeLog` | 0 | new, off | ② seg4b real serve+swap (self-recording, does NOT depend on egressOpLog) | born in rollback state |
|
||||
| `egressPlane` | 0 | new, off | ② the WHOLE new path under one switch: sparse-op recording (all four lanes) + serve-from-log (byte-identical swap) + server authority for pinned plugin lanes (rulings #7439 3/5); off = legacy chain, zero rows, byte-identical to pre-feature. Replaces the retired `egressOpLog`/`egressServeLog` pair | born in rollback state |
|
||||
|
||||
**No new static env vars, no new CLI flags** (rollout env names are derived dynamically from key names; the docs-coverage CI exempts dynamic names in both directions — which is also why `pluginMsgIdIncremental` went undocumented until now; the yaml entry was added this round).
|
||||
|
||||
@@ -298,7 +297,7 @@ Fold tx: blocks insert/update + covered rows retired (same tx) + one fold_journa
|
||||
|
||||
### 5.1 Bench method (perf/, 2026-11-21)
|
||||
|
||||
Construction = the user scenario's plugin shape: client history grows from 1 message (pure append-only); the fake ideal model injects a compress tool call every ~300 refs of growth (≈50k tokens), folding the oldest span and keeping 1800 refs (≈300k-token live tail) — **the client applies folds host-side** (plugin semantics: the model initiates, the client executes), so the wire stays at the live view (1800–2100 messages, 0.7–0.8MB request body, outbound 200–253k tokens) while `cum` counts cumulative created messages (to 100k). Arms: master (`b10c1a0d4`, no pf) / PR full arm / PR delta arm. All arms share fake calibration and driver (node:http `connection: close` — bili closes the connection after each turn by design, #1982). **Note: every run in this batch was with egressOpLog/egressServeLog OFF** (the #7398 arm is untested, see §5.4); the 155MB raw-wire shape (a host that never folds) is not covered by this batch.
|
||||
Construction = the user scenario's plugin shape: client history grows from 1 message (pure append-only); the fake ideal model injects a compress tool call every ~300 refs of growth (≈50k tokens), folding the oldest span and keeping 1800 refs (≈300k-token live tail) — **the client applies folds host-side** (plugin semantics: the model initiates, the client executes), so the wire stays at the live view (1800–2100 messages, 0.7–0.8MB request body, outbound 200–253k tokens) while `cum` counts cumulative created messages (to 100k). Arms: master (`b10c1a0d4`, no pf) / PR full arm / PR delta arm. All arms share fake calibration and driver (node:http `connection: close` — bili closes the connection after each turn by design, #1982). **Note: every run in this batch was with the egress plane OFF** (the #7398 arm is untested, see §5.4); the 155MB raw-wire shape (a host that never folds) is not covered by this batch.
|
||||
|
||||
### 5.2 Measured (RUN1 batch=500 all three arms 210 turns; RUN2 batch=100 only the PR full arm reached g943≈94k — the master arm was aborted by a mis-killed proxy, the delta arm never launched)
|
||||
|
||||
@@ -330,10 +329,11 @@ Construction = the user scenario's plugin shape: client history grows from 1 mes
|
||||
4. **[docs] `docs/storage-relations.{en,zh}.svg`** was missing 5 new tables, the fold_journal card still listed the dropped covered_ids, the egress_snapshot card still listed ids_json, and the ⑦ cascade card was inaccurate ⇒ **removed**, superseded by this report.
|
||||
5. **[docs] rollout.yaml three stale entries**: pluginLaneServerHistory default "0 (off)" (code is 100), egressServeLog described as "seg 4a LOG ONLY never swaps" (4b really swaps), missing pluginMsgIdIncremental entry ⇒ all corrected/completed, docs regenerated.
|
||||
6. **[comment] rollout.ts egressServeLog comment** — "(AND egressOpLog is on)" and "tool rows in v1" both stale ⇒ corrected.
|
||||
7. **[switch] the egress keys collapsed to ONE** (owner ruling 2026-11-21): the `egressOpLog` + `egressServeLog` pair was retired and replaced by a single `egressPlane` rollout key — on = the complete new path (record + serve + server authority, all four lanes), off = legacy chain byte-identical to pre-feature. Both old keys never shipped (default 0, born in rollback state), so there is no migration.
|
||||
|
||||
### 5.4 Left for follow-up (out of scope for this PR)
|
||||
|
||||
- **Minimal validation with the egress keys ON** (pending): 155MB raw wire (host never folds) + egressServeLog real serve ⇒ the full scenario with 300k-token outbound, checking the "few-KB new storage per turn" red line per turn (WAL diff) — this is the #7398 acceptance line; this batch did not cover it.
|
||||
- **Minimal validation with the egress keys ON** (pending): 155MB raw wire (host never folds) + egressPlane real serve ⇒ the full scenario with 300k-token outbound, checking the "few-KB new storage per turn" red line per turn (WAL diff) — this is the #7398 acceptance line; this batch did not cover it.
|
||||
- Profiling the accumulated-ledger cost of 1.1–1.8s per turn at 50k+ cumulative scale (the slow-ingest #5744 domain; includes the fold-turn retire+re-anchor, the fold-crossing gate over 309 fold_journal rows, kernel scans).
|
||||
- A valid delta-arm rerun in the growing scenario (with `pluginDeltaResend:true`).
|
||||
- The compact B row ≈8MB @ 100k rows vs the "few-KB per turn" red line: a design-declared exception (#7398 §5); to hold the red line strictly, the B row could become a "range reference + anti-forgery fingerprint" (the #7064 l1_world demotion idea), at the cost of losing the state table's self-contained replay closure — needs an owner ruling.
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
| 块 | 提案/来源 | 开关(默认) |
|
||||
|---|---|---|
|
||||
| ① 快照底座 v2(stage-0 身份账本 + fold 日志 + 出站前缀缓存) | #5874 v2 / #7064 瘦身 | `storage.snapBase.enabled`(默认关,纯配置) |
|
||||
| ② 出站 op-log(egress_state/egress_flow + 重建 serve) | 讨论区 7398 | `egressOpLog`(0)/ `egressServeLog`(0) |
|
||||
| ② 出站 op-log(egress_state/egress_flow + 重建 serve + 服务端权威) | 讨论区 7398/7439 | `egressPlane`(0)——整条新链路的**唯一开关** |
|
||||
| ③ 全量重发水位 + delta 尾切片 | #5403/#5418 + 本 PR | `pluginFullResendWatermark`(5)/ `pluginDeltaResend`(0) |
|
||||
| ④ 增量 msgid pin(tail-ids 尾形态) | #7064 §8 | `pluginMsgIdIncremental`(**100**,本 PR 起默认开) |
|
||||
| ⑤ 服务端正史 GA | #4491 | `pluginLaneServerHistory`(**100**,本 PR 从 0 翻到 100) |
|
||||
@@ -219,7 +219,7 @@ PRIMARY KEY (session_id, log_seq)
|
||||
→ [handle] readBody(155MB 级)→ pf 协议扫描(fastpath-scan,零 parse)
|
||||
→ [fastpath] HIT(戳前进+锚链对):跳整包 parse/转换/钉存
|
||||
→ [prepare-openai] 重建视图 = 钉存前缀核 + 尾窗解析(delta 臂)
|
||||
├─ egressServeLog 开:recordEgressTurn(稀疏 I op,几 KB)
|
||||
├─ egressPlane 开:recordEgressTurn(稀疏 I op,几 KB)
|
||||
│ → rebuildOutboundFromLog(op log + CAS)→ swap 进出站字节
|
||||
└─ 关:legacy 内核视图 → coreToOpenai 链
|
||||
→ [ingest] shadow.ingestDelta:watermark+边界+头探针 → planIngestDelta
|
||||
@@ -274,8 +274,7 @@ fold tx:blocks 插/更 + 覆盖行 retire(同事务)+ fold_journal 一行
|
||||
| `pluginMsgIdIncremental` | **100** | 新增即开 | ④ 尾形态 id 申报,账本重盖前缀 | env=0 |
|
||||
| `pluginFullResendWatermark` | 5 | (既有 5% 灰度) | ③ 水位快路径 | env=0 |
|
||||
| `pluginDeltaResend` | 0 | 新增,关 | ③ delta 尾切片臂;0 = 对 delta 请求 400,客户端一轮收敛回全量 | 天生回滚态 |
|
||||
| `egressOpLog` | 0 | 新增,关 | ② seg3 影子录制(只记账) | 天生回滚态 |
|
||||
| `egressServeLog` | 0 | 新增,关 | ② seg4b 真 serve+swap(自录制,不依赖 egressOpLog) | 天生回滚态 |
|
||||
| `egressPlane` | 0 | 新增,关 | ② 整条新链路一个开关:稀疏 op 记账(四车道)+ 日志回放 serve(字节一致 swap)+ pinned 插件车道服务端权威(裁定 7439-3/5);关 = legacy 链路零行、与特性前字节一致。取代已退役的 `egressOpLog`/`egressServeLog` 双键 | 天生回滚态 |
|
||||
|
||||
**无新增静态 env 变量、无新增 CLI flag**(rollout env 由键名动态派生,docs-coverage CI 对动态名双向豁免——这也是 `pluginMsgIdIncremental` 此前漏文档的根因,本轮已补 yaml 条目)。
|
||||
|
||||
@@ -298,7 +297,7 @@ fold tx:blocks 插/更 + 覆盖行 retire(同事务)+ fold_journal 一行
|
||||
|
||||
### 5.1 压测方法(perf/,2026-11-21)
|
||||
|
||||
构造 = 用户场景的 plugin 形态:客户端历史从 1 条增长(纯 append-only),fake 理想模型每 ~300 refs(≈5w token 增长)注入一次 compress 工具调用(折最旧段、保 1800 refs≈30w token 存活尾)——**客户端在宿主侧应用折叠**(plugin 语义:模型发起、客户端执行),因此线上 wire 恒定 = 存活视图(1800–2100 条,0.7–0.8MB 请求体,出站 200–253k token),`cum` 计累计产生量(到 10w)。臂:master(`b10c1a0d4`,无 pf)/ PR 全量臂 / PR delta 臂。三臂同 fake 校准、同 driver(node:http `connection: close`——bili 按 #1982 设计每轮后关连)。**注意:本批所有跑都是 egressOpLog/egressServeLog 关闭态**(7398 臂未测,见 §5.4);155MB 原始 wire 形态(宿主不折叠的客户端)不在本批覆盖内。
|
||||
构造 = 用户场景的 plugin 形态:客户端历史从 1 条增长(纯 append-only),fake 理想模型每 ~300 refs(≈5w token 增长)注入一次 compress 工具调用(折最旧段、保 1800 refs≈30w token 存活尾)——**客户端在宿主侧应用折叠**(plugin 语义:模型发起、客户端执行),因此线上 wire 恒定 = 存活视图(1800–2100 条,0.7–0.8MB 请求体,出站 200–253k token),`cum` 计累计产生量(到 10w)。臂:master(`b10c1a0d4`,无 pf)/ PR 全量臂 / PR delta 臂。三臂同 fake 校准、同 driver(node:http `connection: close`——bili 按 #1982 设计每轮后关连)。**注意:本批所有跑都是 egress 平面关闭态**(7398 臂未测,见 §5.4);155MB 原始 wire 形态(宿主不折叠的客户端)不在本批覆盖内。
|
||||
|
||||
### 5.2 实测(RUN1 batch=500 三臂跑满 210 轮;RUN2 batch=100 仅 PR 全量臂跑到 g943≈9.4w,master 臂因代理误杀中止,delta 臂未启动)
|
||||
|
||||
@@ -330,6 +329,7 @@ fold tx:blocks 插/更 + 覆盖行 retire(同事务)+ fold_journal 一行
|
||||
4. **[文档] `docs/storage-relations.{en,zh}.svg`** 缺 5 张新表、fold_journal 卡片还写已删的 covered_ids、egress_snapshot 卡片还写 ids_json、⑦级联卡片不准确 ⇒ **移除**,由本报告接替。
|
||||
5. **[文档] rollout.yaml 三处过时**:pluginLaneServerHistory 默认值 "0 (off)"(代码 100)、egressServeLog 描述 "seg 4a LOG ONLY never swaps"(4b 已真 swap)、缺 pluginMsgIdIncremental 条目 ⇒ 全部更正/补齐,重新生成 docs。
|
||||
6. **[注释] rollout.ts egressServeLog 注释** "(AND egressOpLog is on)"+"tool rows in v1" 两处过时 ⇒ 更正。
|
||||
7. **[开关] egress 双键合并为一个**(owner 裁定 2026-11-21):`egressOpLog` + `egressServeLog` 退役,由单一 `egressPlane` 灰度键取代——开 = 完整新链路(记账 + serve + 服务端权威,四车道),关 = legacy 链路与特性前字节一致。两个旧键从未发布(默认 0、天生回滚态),无需迁移。
|
||||
|
||||
### 5.4 留给后续(不在本 PR 范围)
|
||||
|
||||
|
||||
@@ -158,8 +158,8 @@ billion-context/
|
||||
│ │ ├── engine-bootstrap.ts # Self-downloads pinned better-sqlite3 prebuilt when no engine exists
|
||||
│ │ ├── identity.ts # messages-table identity hash: strips position metadata (#4390)
|
||||
│ │ ├── egress-state.ts # Egress op-log outbound view: dual-table state+flow, replay, compaction, any-seq rollback (#7398)
|
||||
│ │ ├── egress-record.ts # Egress op-log RECORDING: build the outbound view rows, diff vs prev, append sparse ops, fold-triggered compaction (#7398 seg 3, rollout egressOpLog)
|
||||
│ │ ├── egress-serve.ts # Egress op-log SERVE: rebuild the outbound elements from the CAS-backed view (byte-identity chain, whole-turn degrade) + shadow byte comparison (#7398 seg 4a, rollout egressServeLog)
|
||||
│ │ ├── egress-record.ts # Egress op-log RECORDING: build the outbound view rows, diff vs prev, append sparse ops, fold-triggered compaction (#7398, rollout egressPlane)
|
||||
│ │ ├── egress-serve.ts # Egress op-log SERVE: rebuild the outbound elements from the self-contained op-log rows (byte-identity chain, ladder recovery, whole-turn degrade) + shadow byte comparison (#7398, rollout egressPlane)
|
||||
│ │ ├── ingest.ts # Legacy → unified row mapping + legacy view rebuild (#2671)
|
||||
│ │ ├── integrity-check.ts # Cached + background quick_check off the boot critical path (#4609)
|
||||
│ │ ├── mysql.ts # MySQL 8.0 backend implementing the storage contract (#3388)
|
||||
|
||||
+15
-18
@@ -129,24 +129,21 @@ export const ROLLOUT_FEATURES: Record<string, RolloutPlan> = {
|
||||
// Force with `rollout.features.pluginDeltaResend: true` or
|
||||
// `BILI_ROLLOUT_PLUGIN_DELTA_RESEND=1`.
|
||||
pluginDeltaResend: { percent: 0 },
|
||||
// #7398 seg 3: shadow-record each turn's outbound conversation view as
|
||||
// sparse ops into the egress dual tables (egress_state/egress_flow).
|
||||
// RECORDING ONLY — outbound bytes are not read from or written through
|
||||
// the log (that is seg 4, own key). Default 0 = zero rows, zero cost.
|
||||
// Force with `rollout.features.egressOpLog: true` or
|
||||
// `BILI_ROLLOUT_EGRESS_OP_LOG=1`.
|
||||
egressOpLog: { percent: 0 },
|
||||
// #7398 seg 4b: serve-from-log — when on, each OpenAI-lane turn
|
||||
// self-records its outbound view as sparse ops (egressOpLog NOT required),
|
||||
// rebuilds the outbound conversation elements from the op log (rows are
|
||||
// SELF-CONTAINED — the message bytes ride the row, no content CAS, #7439
|
||||
// ruling 1; same legacy chain, bytes identical by construction) and swaps
|
||||
// them into the outbound body; any unrebuildable row (missing/empty bytes
|
||||
// — pre-#7439 rows, unknown role) or a corrupt log degrades the WHOLE turn
|
||||
// to the legacy path (never a partial swap). seg 4a's shadow
|
||||
// byte-comparison keeps running on the fallback turns. Force with
|
||||
// `rollout.features.egressServeLog: true` or BILI_ROLLOUT_EGRESS_SERVE_LOG=1.
|
||||
egressServeLog: { percent: 0 },
|
||||
// #7398/#7439: the egress plane — ONE switch for the whole new path.
|
||||
// ON: every lane (OpenAI/Anthropic/Responses/Google) records its
|
||||
// outbound conversation view as sparse ops (I/D/U) into the
|
||||
// egress_state/egress_flow dual tables (rows SELF-CONTAINED — message
|
||||
// bytes ride the row, no content CAS, ruling 7439-1), serves the
|
||||
// outbound core portion back from the op log (byte-identical by
|
||||
// construction), and pinned plugin lanes take server authority — the
|
||||
// kernel input is replayed from the flow (rulings 7439-3/5); a bounded
|
||||
// backward ladder recovers to the newest healthy log point, and ANY
|
||||
// unrebuildable/corrupt state degrades the turn to legacy (never a
|
||||
// partial swap, never client-as-authority). OFF = legacy chain, zero
|
||||
// rows, byte-identical to pre-feature.
|
||||
// Force with `rollout.features.egressPlane: true` or
|
||||
// `BILI_ROLLOUT_EGRESS_PLANE=1`.
|
||||
egressPlane: { percent: 0 },
|
||||
// #5825 identity-channel harvest seam (registry in identity-harvest.ts):
|
||||
// loopback clients without an explicit body channel get stable session+
|
||||
// message identity aligned from their OWN local transcript/sqlite
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// The system row lives INSIDE the recorded view (type "system") but is
|
||||
// excluded from the served core — each lane builds its own system block live
|
||||
// (prefix-cache anchor), exactly like the OpenAI lane.
|
||||
// Rollout gates (egressServeLog / egressOpLog, default 0) are owned by the
|
||||
// Rollout gates (egressPlane, default 0) are owned by the
|
||||
// caller. Any corrupt/unreadable log point degrades that one turn to the
|
||||
// lane's legacy core — never a crash, never partial, never client-as-authority.
|
||||
|
||||
|
||||
@@ -565,14 +565,14 @@ export async function prepareAnthropic(
|
||||
// #7398 all-lanes (ruling 7439-4): serve this turn's outbound core from
|
||||
// the egress op-log (no title-gen side requests ride this lane, so no
|
||||
// extra gate). The lane's own conversion chain turns it into wire below.
|
||||
if (featureEnabled("egressServeLog")) {
|
||||
if (featureEnabled("egressPlane")) {
|
||||
const st = getStore().egressOpLogStore();
|
||||
const served = st ? serveLaneCore(st, sessionId, log) : null;
|
||||
if (served !== null) egressMessages = served;
|
||||
}
|
||||
rebuiltMessages = coreToAnthropic(egressMessages, anthropicCacheMarks ?? clientCacheControls);
|
||||
// #7398 all-lanes: record this turn's outbound core view (rollout-gated).
|
||||
if (featureEnabled("egressOpLog")) {
|
||||
if (featureEnabled("egressPlane")) {
|
||||
const st = getStore().egressOpLogStore();
|
||||
if (st) recordLaneTurn(st, sessionId, egressMessages, extractSystem(systemOut) ?? "", log);
|
||||
}
|
||||
|
||||
@@ -349,7 +349,7 @@ export async function prepareGoogle(
|
||||
// #7398 all-lanes (ruling 7439-4): serve this turn's outbound core from
|
||||
// the egress op-log — the recorded bytes are this session's server
|
||||
// truth; the lane's own conversion chain turns it into wire below.
|
||||
if (!isTitleGen && featureEnabled("egressServeLog")) {
|
||||
if (!isTitleGen && featureEnabled("egressPlane")) {
|
||||
const st = getStore().egressOpLogStore();
|
||||
const served = st ? serveLaneCore(st, sessionId, log) : null;
|
||||
if (served !== null) egressMessages = served;
|
||||
@@ -386,7 +386,7 @@ export async function prepareGoogle(
|
||||
const extraSystemParts = sysParts.slice(googleClientSystem ? 1 : 0);
|
||||
systemInstruction = extraSystemParts.length > 0 ? { parts: sysParts.map((text) => ({ text })) } : parsed.systemInstruction;
|
||||
// #7398 all-lanes: record this turn's outbound core view (rollout-gated).
|
||||
if (!isTitleGen && featureEnabled("egressOpLog")) {
|
||||
if (!isTitleGen && featureEnabled("egressPlane")) {
|
||||
const st = getStore().egressOpLogStore();
|
||||
if (st) recordLaneTurn(st, sessionId, egressMessages, googleOutboundSystem ?? googleClientSystem, log);
|
||||
}
|
||||
|
||||
@@ -379,7 +379,7 @@ export async function prepareOpenai(
|
||||
// Degrade (never guess, never client-as-authority): store missing,
|
||||
// empty/unreadable flow, unrebuildable view, or a failed probe → this
|
||||
// turn runs the legacy client-byte path and re-attempts next turn.
|
||||
egressArmed = featureEnabled("egressServeLog") && pluginMode && !isTitleGen && s0.pinned !== null;
|
||||
egressArmed = featureEnabled("egressPlane") && pluginMode && !isTitleGen && s0.pinned !== null;
|
||||
if (egressArmed) {
|
||||
const st = getStore().egressOpLogStore();
|
||||
if (st) {
|
||||
@@ -712,7 +712,7 @@ export async function prepareOpenai(
|
||||
if (absorbActive) sysParts.push(buildAbsorbSystemPrompt(absorbToolName(loopConfig)));
|
||||
if (blockOpsActive) sysParts.push(buildBlockOpsSystemPrompt("function"));
|
||||
openaiOutboundSystem = sysParts.join("\n\n");
|
||||
if (!isTitleGen && featureEnabled("egressServeLog") && !(egressArmed && !egressSwapApplied)) {
|
||||
if (!isTitleGen && featureEnabled("egressPlane") && !(egressArmed && !egressSwapApplied)) {
|
||||
const st = getStore().egressOpLogStore();
|
||||
if (st) {
|
||||
try {
|
||||
@@ -961,7 +961,7 @@ export async function prepareOpenai(
|
||||
// the serve path already ran or when the authority seam ran but did not
|
||||
// swap (ruling 7439-5: never advance the flow with untrusted client
|
||||
// bytes); a corrupt log skips this turn and self-heals next.
|
||||
if (!isTitleGen && featureEnabled("egressOpLog") && !egressServedFromLog && !(egressArmed && !egressSwapApplied)) {
|
||||
if (!isTitleGen && featureEnabled("egressPlane") && !egressServedFromLog && !(egressArmed && !egressSwapApplied)) {
|
||||
try {
|
||||
const st = getStore().egressOpLogStore();
|
||||
if (st) {
|
||||
@@ -981,9 +981,9 @@ export async function prepareOpenai(
|
||||
// #7398 seg 4a: SHADOW comparison — rebuild the outbound core portion
|
||||
// from the log and byte-compare against the legacy elements. NO
|
||||
// swap: the pipeline always sends the legacy bytes; this measures the
|
||||
// identity rate the swap will rely on (rollout egressServeLog, default 0;
|
||||
// identity rate the swap will rely on (rollout egressPlane, default 0;
|
||||
// reads the hydrated flow view).
|
||||
if (!isTitleGen && featureEnabled("egressServeLog") && !egressServedFromLog) {
|
||||
if (!isTitleGen && featureEnabled("egressPlane") && !egressServedFromLog) {
|
||||
try {
|
||||
const st = getStore().egressOpLogStore();
|
||||
const view = egressBaseRows ?? (st ? st.egressStateView(sessionId) : undefined);
|
||||
|
||||
@@ -540,7 +540,7 @@ reconcileFoldCoverage(session, msgs, { mode: foldMode, sessionId, log, markerStr
|
||||
// (trigger/prompt form) are transient, like title-gen, and are not
|
||||
// recorded nor served.
|
||||
let laneCore = processedMessages;
|
||||
if (!isCompactionTrigger && featureEnabled("egressServeLog")) {
|
||||
if (!isCompactionTrigger && featureEnabled("egressPlane")) {
|
||||
const st = getStore().egressOpLogStore();
|
||||
const served = st ? serveLaneCore(st, sessionId, log) : null;
|
||||
if (served !== null) laneCore = served;
|
||||
@@ -593,7 +593,7 @@ reconcileFoldCoverage(session, msgs, { mode: foldMode, sessionId, log, markerStr
|
||||
rebuiltInput = injectResponsesDeveloperMessage(rebuiltInput, devContent, projection.headRole ?? "developer");
|
||||
}
|
||||
// #7398 all-lanes: record this turn's outbound core view (rollout-gated).
|
||||
if (!isCompactionTrigger && featureEnabled("egressOpLog")) {
|
||||
if (!isCompactionTrigger && featureEnabled("egressPlane")) {
|
||||
const st = getStore().egressOpLogStore();
|
||||
if (st) recordLaneTurn(st, sessionId, laneCore, responsesDevContent ?? projection.systemParts.join("\n\n"), log);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* ruling 1, #6785 perf work). Each turn diffs the outbound conversation view
|
||||
* against the previous turn's and appends the sparse op batch to the dual
|
||||
* tables. Outbound bytes are served from the log only behind the serve key
|
||||
* (segment 4b). Gated by rollout key `egressOpLog` (default 0 = no recording
|
||||
* (segment 4b). Gated by rollout key `egressPlane` (default 0 = no recording
|
||||
* at all).
|
||||
*
|
||||
* SELF-CONTAINED BYTES (ruling 7439-1): each view row carries the message's
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* rebuildCoreFromLog is LANE-NEUTRAL (owner ruling 7439-4): it returns the
|
||||
* core BiliMessage[] and each lane feeds its own conversion chain
|
||||
* (prepare-openai uses the openai wrapper below; anthropic/responses/google
|
||||
* join in the same way). prepare-openai (rollout `egressServeLog`, default
|
||||
* join in the same way). prepare-openai (rollout `egressPlane`, default
|
||||
* 0) SERVES these elements as the outbound conversation when the rebuild
|
||||
* succeeds, and falls back to the legacy path — with the 4a shadow
|
||||
* byte-comparison still running on fallback turns — when it cannot (degrade,
|
||||
|
||||
@@ -169,9 +169,9 @@ test("recording: nudge-shaped churn is EXCLUDED (ephemeral rows never recorded)"
|
||||
});
|
||||
|
||||
test("#3617 negative direction: rollout key OFF by default → gate never opens", () => {
|
||||
delete process.env.BILI_ROLLOUT_EGRESS_OP_LOG;
|
||||
assert.equal(featureEnabled("egressOpLog"), false, "egressOpLog defaults to 0 — the prepare-openai gate (featureEnabled) sees nothing and records zero rows");
|
||||
process.env.BILI_ROLLOUT_EGRESS_OP_LOG = "1";
|
||||
assert.equal(featureEnabled("egressOpLog"), true);
|
||||
delete process.env.BILI_ROLLOUT_EGRESS_OP_LOG;
|
||||
delete process.env.BILI_ROLLOUT_EGRESS_PLANE;
|
||||
assert.equal(featureEnabled("egressPlane"), false, "egressPlane defaults to 0 — the prepare-openai gate (featureEnabled) sees nothing and records zero rows");
|
||||
process.env.BILI_ROLLOUT_EGRESS_PLANE = "1";
|
||||
assert.equal(featureEnabled("egressPlane"), true);
|
||||
delete process.env.BILI_ROLLOUT_EGRESS_PLANE;
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// #7398 seg 4b: egress serve-from-log — when rollout egressServeLog is on the
|
||||
// #7398 seg 4b: egress serve-from-log — when rollout egressPlane is on the
|
||||
// outbound conversation elements come from the op-log (rebuildOutboundFromLog,
|
||||
// self-contained bytes per #7439 ruling 1) instead of the legacy re-conversion,
|
||||
// and are byte-identical to the legacy bytes by construction. Direction asserts
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
// Method: one server, two sessions with IDENTICAL message sequences. Session A
|
||||
// runs with the rollouts off (control = legacy). Session B runs with
|
||||
// egressOpLog+egressServeLog on (served). The fake upstream captures every
|
||||
// egressPlane on (served). The fake upstream captures every
|
||||
// request body; A[n] and B[n] must be byte-identical, and B's log must show
|
||||
// "egress-serve: served" lines scoped to the served sessions (both scenarios
|
||||
// serve now — tool rows ride the row bytes); the -A controls never do.
|
||||
@@ -72,9 +72,9 @@ test("egress serve-from-log: served bytes == legacy bytes, text and tool alike (
|
||||
test.after(() => rmSync(dir, { recursive: true, force: true }));
|
||||
for (const key of ["XDG_STATE_HOME", "XDG_DATA_HOME", "XDG_CACHE_HOME", "XDG_CONFIG_HOME"]) process.env[key] = dir;
|
||||
process.env.BILI_STORAGE_UNIFIED = "full";
|
||||
process.env.BILI_ROLLOUT_EGRESS_OP_LOG = "1";
|
||||
const savedServe = process.env.BILI_ROLLOUT_EGRESS_SERVE_LOG;
|
||||
delete process.env.BILI_ROLLOUT_EGRESS_SERVE_LOG;
|
||||
process.env.BILI_ROLLOUT_EGRESS_PLANE = "1";
|
||||
const savedPlane = process.env.BILI_ROLLOUT_EGRESS_PLANE;
|
||||
delete process.env.BILI_ROLLOUT_EGRESS_PLANE;
|
||||
const logs: string[] = [];
|
||||
setLogCapture((_lvl, m) => { logs.push(m); });
|
||||
try {
|
||||
@@ -136,7 +136,7 @@ test("egress serve-from-log: served bytes == legacy bytes, text and tool alike (
|
||||
await runSession(base, "serve-e2e-tool-A", toolScript, ctrlAT);
|
||||
|
||||
// Session B: serve on — same sequences must produce identical upstream bytes.
|
||||
process.env.BILI_ROLLOUT_EGRESS_SERVE_LOG = "1";
|
||||
process.env.BILI_ROLLOUT_EGRESS_PLANE = "1";
|
||||
const serveB: string[] = [];
|
||||
await runSession(base, "serve-e2e-text-B", textScript, serveB);
|
||||
const servedT: string[] = [];
|
||||
@@ -166,8 +166,8 @@ test("egress serve-from-log: served bytes == legacy bytes, text and tool alike (
|
||||
await new Promise((r) => upstream.close(() => r(undefined)));
|
||||
store.closeQuietly();
|
||||
} finally {
|
||||
if (savedServe === undefined) delete process.env.BILI_ROLLOUT_EGRESS_SERVE_LOG;
|
||||
else process.env.BILI_ROLLOUT_EGRESS_SERVE_LOG = savedServe;
|
||||
if (savedPlane === undefined) delete process.env.BILI_ROLLOUT_EGRESS_PLANE;
|
||||
else process.env.BILI_ROLLOUT_EGRESS_PLANE = savedPlane;
|
||||
setLogCapture(null);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -83,24 +83,15 @@ entries:
|
||||
desc_en: "Incremental msgid pin channel (#7064 §8, owner rulings 2026-11-18/19): steady plugin-lane turns declare their message ids in TAIL FORM — the bounded `x-bili-pf-tail-ids` header (anchor + new ids, ≤ 2048 ids, `?` placeholder slots) or a short body id array — instead of the FULL list; the server re-stamps the prefix ids from its own ledger live rows (ingest is INSERT OR IGNORE on (session_id,seq) — a position's msg_id is written once, never overwritten). Acceptance (2026-11-19 form): the declared tail [T-L, T-1] must match the ledger overlap segment row-by-row (any drift degrades to `full`, never 400); ultra-long sessions (> 2048 ids) pin a truncated tail the same way — the longer overlap proves MORE. Only snapshot rounds (empty ledger / post-fold re-anchor) send the full form; full form always wins when both arrive. The response carries `x-bili-msgid-mode: incremental|full` (cleared on any 4xx; one learning point next to x-bili-pf-seq). Any mismatch self-heals within one round. Default 100%; set 0 to roll back to full-list pinning (byte-identical to pre-feature). Requires pluginLaneServerHistory. See docs/session-identity-resolution.md."
|
||||
desc_zh: "增量 msgid pin 通道(#7064 §8,owner 裁定 2026-11-18/19):稳态插件轮用**尾形态**申报消息 id——有界的 `x-bili-pf-tail-ids` 头(锚点+新增,≤ 2048 个,`?` 占位槽)或短 body id 数组——替代全量清单;服务端从自己账本的 live 行重盖前缀 id(ingest 是 INSERT OR IGNORE on (session_id,seq)——位置上的 msg_id 只写一次,永不改写)。接受规则(2026-11-19 定型):声明的尾段 [T-L, T-1] 与账本重叠段逐行相等(任一行漂移⇒降级 full,永不 400);超长会话(>2048)截断的尾清单同样可 pin——重叠段更长、证明更强。只有快照轮(账本空/折叠后重锚)发全量形态;全量优先于尾形态同时到达。响应携带 `x-bili-msgid-mode: incremental|full`(4xx 即清,与 x-bili-pf-seq 同一学习点)。任何失配一轮内自愈。默认 100%;设 0 回滚到全量清单 pin(与特性前字节一致)。需先开 pluginLaneServerHistory。见 session-identity-resolution.zh-CN.md。"
|
||||
desc_ja: "増分 msgid pin チャネル(#7064 §8、オーナー裁定 2026-11-18/19):定常プラグインターンはメッセージ ID を**テール形態**で申告する — 有界な `x-bili-pf-tail-ids` ヘッダー(アンカー+新規 ID、≤ 2048 個、`?` プレースホルダ)または短い body ID 配列 — 全リストを置き換える。サーバーは自前の台帳 live 行からプレフィックス ID を再スタンプする(ingest は INSERT OR IGNORE on (session_id,seq) — 位置の msg_id は一度だけ書き込まれ、決して上書きされない)。受理規則(2026-11-19 定石):申告されたテール [T-L, T-1] と台帳の重複区間が逐行一致すること(1行でもずれれば `full` にデグレード、400 はしない);超長セッション(> 2048)も切り詰められたテールで同じく pin できる — 重複区間が長いほど証拠は強い。スナップショットラウンド(台帳空/折り畳み後の再アンカー)のみ全形態を送る;両方到着時は全形態が優先。レスポンスは `x-bili-msgid-mode: incremental|full` を載せる(4xx でクリア、x-bili-pf-seq と同じ学習ポイント)。不一致は 1 ラウンドで自己修復。デフォルト 100%;0 で全リスト pin にロールバック(機能前とバイト一致)。pluginLaneServerHistory が必要。session-identity-resolution.md 参照。"
|
||||
- key: rollout.features.egressOpLog
|
||||
- key: rollout.features.egressPlane
|
||||
type: "boolean | number"
|
||||
default: "0 (off)"
|
||||
default_zh: "0(关)"
|
||||
env: BILI_ROLLOUT_EGRESS_OP_LOG
|
||||
env: BILI_ROLLOUT_EGRESS_PLANE
|
||||
group: behavior
|
||||
desc_en: "Egress op-log shadow recording (#7398 seg 3): each turn diffs the outbound conversation view against the previous turn's and appends the sparse op batch (I/D/U) to the egress_state/egress_flow dual tables. RECORDING ONLY — outbound bytes are not read from or written through the log (that is seg 4, its own key). Default 0 = zero rows, zero cost. See discussions/7398."
|
||||
desc_zh: "出站 op 日志影子记账(#7398 第三段):每轮把出站会话视图与上一轮做 diff,把稀疏 op 批(I/D/U)追加到 egress_state/egress_flow 双表。**只记账**——不读不写出站字节(那是第四段,独立灰度键)。默认 0 = 零行零开销。见 discussions/7398。"
|
||||
desc_ja: "Egress op-log シャドー記録(#7398 セグメント3):各ターンで送信会話ビューを前ターンと diff し、スパース op バッチ(I/D/U)を egress_state/egress_flow デュアルテーブルに追記する。**記録のみ** — 送信バイトはログから読み書きしない(セグメント4、独立キー)。デフォルト 0 = 0行・0コスト。discussions/7398 参照。"
|
||||
- key: rollout.features.egressServeLog
|
||||
type: "boolean | number"
|
||||
default: "0 (off)"
|
||||
default_zh: "0(关)"
|
||||
env: BILI_ROLLOUT_EGRESS_SERVE_LOG
|
||||
group: behavior
|
||||
desc_en: "Serve the outbound conversation FROM the egress op log (#7398 seg 4b): when on, each OpenAI-lane turn records the outbound view as sparse ops (self-recording; egressOpLog not required) and rebuilds the outbound core-message portion from the op log + unified content CAS, then SWAPS the rebuilt elements into the outbound body — byte-identical by construction (the CAS bytes are the pipeline's own final core JSON). ANY unrebuildable row (missing casRef / missing CAS body / unknown role) or a corrupt log degrades the WHOLE turn to the legacy chain — never a partial swap; fallback turns additionally run the seg 4a shadow byte-comparison (log-only) to keep measuring identity. The system block stays live-built in both paths (prefix-cache anchor discipline). SQLite lane only; title-gen requests excluded. Default 0 = off (byte-identical to pre-feature). See discussions/7398."
|
||||
desc_zh: "从出站 op 日志服务出站会话(#7398 第四段 4b):开启后,每个 OpenAI 车道轮自记账出站视图稀疏 op(不依赖 egressOpLog),并从 op 日志 + 统一内容 CAS 重建出站核心消息段后**真实 swap** 进出站 body——按构造字节一致(CAS 字节就是管线自己的最终 core JSON)。任何不可重建行(缺 casRef / 缺 CAS body / 未知 role)或日志损坏,整轮降级 legacy 链路——绝不部分替换;降级轮另跑 4a 影子对拍(只打日志)持续度量一致性。system 块两条路径都保持 live 构建(前缀缓存锚点纪律)。仅 SQLite 车道;标题生成请求排除。默认 0 = 关(与特性前字节一致)。见 discussions/7398。"
|
||||
desc_ja: "egress op ログからの送信会話サービング(#7398 セグメント4b):オンで、OpenAI レーンの各ターンが送信ビューをスパース op で自己記録する(egressOpLog 不要)、op ログ + 統一コンテンツ CAS から送信コアメッセージ部分を再構築し、再構築要素を送信 body に**実際に swap** する — 構造によりバイト一致(CAS バイトはパイプライン自身の最終 core JSON)。再構築不能行(casRef 欠落 / CAS body 欠落 / 未知 role)やログ破損があると**そのターン全体**がレガシーチェーンにデグレード — 部分的な swap は絶対にしない;フォールバックターンはセグメント4a シャドー比較(ログのみ)も実行し一致率を継続測定。system ブロックは両経路でライブ構築のまま(プレフィックスキャッシュアンカー規律)。SQLite レーンのみ;タイトル生成リクエストは除外。デフォルト 0 = オフ(機能前とバイト一致)。discussions/7398 参照。"
|
||||
desc_en: "The egress plane — ONE switch for the whole new path (#7398/#7439; replaces the retired egressOpLog/egressServeLog pair). ON: every wire lane (OpenAI/Anthropic/Responses/Google) records its outbound conversation view as sparse ops (I/D/U) into the egress_state/egress_flow dual tables — rows are SELF-CONTAINED (message bytes ride the row; no content CAS, ruling 7439-1) — and serves the outbound core-message portion back from the op log, byte-identical by construction (the row bytes are the pipeline's own final core JSON); pinned plugin lanes additionally take server authority — the kernel input is replayed from the flow (rulings 7439-3/5). A bounded backward ladder recovers to the newest healthy log point; ANY unrebuildable row (missing/empty bytes, unknown role), corrupt log, or probe failure degrades that turn to the legacy chain — never a partial swap, never client-as-authority. The system block stays live-built in both paths (prefix-cache anchor discipline). SQLite lane only; title-gen/compaction side requests excluded. Default 0 = off: legacy chain, zero rows, byte-identical to pre-feature."
|
||||
desc_zh: "egress 平面——整条新链路的**唯一开关**(#7398/#7439;取代已退役的 egressOpLog/egressServeLog 双键)。开:四条 wire 车道(OpenAI/Anthropic/Responses/Google)每轮把出站会话视图记为稀疏 op(I/D/U)写入 egress_state/egress_flow 双表——行**自包含**(消息字节随行走,不经内容 CAS,裁定 7439-1)——并从 op 日志回放重建出站核心消息段,按构造字节一致(行内字节就是管线自己的最终 core JSON);pinned 插件车道另获服务端权威——内核输入从流水回放(裁定 7439-3/5)。有界回溯阶梯恢复到最近健康日志点;任何不可重建行(缺/空字节、未知 role)、日志损坏或探针失败,整轮降级 legacy 链路——绝不部分替换、绝不客户端为准。system 块两条路径都保持 live 构建(前缀缓存锚点纪律)。仅 SQLite 车道;标题生成/压缩侧路请求排除。默认 0 = 关:legacy 链路,零行,与特性前字节一致。"
|
||||
desc_ja: "egress プレーン — 新しい経路全体の**単一スイッチ**(#7398/#7439;退役した egressOpLog/egressServeLog の二キーを置き換え)。ON:全 wire レーン(OpenAI/Anthropic/Responses/Google)が毎ターン送信会話ビューをスパース op(I/D/U)として egress_state/egress_flow デュアルテーブルに記録 — 行は**自己完結**(メッセージバイトが同行する;コンテンツ CAS を経由しない、裁定 7439-1)— 送信コアメッセージ部分を op ログから復元し再構築、構造によりバイト一致(行内バイトはパイプライン自身の最終 core JSON);ピン留め済みプラグインレーンは加えてサーバー権威を取得 — カーネル入力をフローからリプレイ(裁定 7439-3/5)。有界の遡行ラダーで最新の健全ログ点に回復;再構築不能行(バイト欠落/空、未知 role)、ログ破損、プローブ失敗のいずれかで**そのターン全体**をレガシーチェーンにデグレード — 部分的な swap は絶対にしない、クライアントを権威にしない。system ブロックは両経路でライブ構築のまま(プレフィックスキャッシュアンカー規律)。SQLite レーンのみ;タイトル生成/圧縮のサイドリクエストは除外。デフォルト 0 = オフ:レガシー経路、0 行、機能前とバイト一致。"
|
||||
- key: rollout.features.pluginDeltaResend
|
||||
type: "boolean | number"
|
||||
default: "0 (off)"
|
||||
|
||||
Reference in New Issue
Block a user