From 2cb0347e4ee27348059301851ccb9f2ddc62b1ec Mon Sep 17 00:00:00 2001 From: ework-agent Date: Sat, 24 Oct 2026 00:39:25 +0800 Subject: [PATCH 1/2] fix: drop 3 file-internal type exports that redden the unused-exports gate (#4434 follow-up) --- src/served-markers.ts | 4 ++-- src/storage/runtime-status.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/served-markers.ts b/src/served-markers.ts index 97228c9979..6ae0aa8e25 100644 --- a/src/served-markers.ts +++ b/src/served-markers.ts @@ -39,7 +39,7 @@ interface WriterMarkerFile { /** A surfaced split-brain contest: which session (id + resolved title) and * who is on each side (#3923/#3959). */ -export interface SplitBrainContest { +interface SplitBrainContest { sessionId: string; title?: string; self: WriterIdentity; @@ -47,7 +47,7 @@ export interface SplitBrainContest { at: number; } -export interface ServedMarkerOptions { +interface ServedMarkerOptions { /** Cheapest accessor for the session's display title (in-memory peek — * never a disk read). */ resolveTitle?: (sessionId: string) => string | undefined; diff --git a/src/storage/runtime-status.ts b/src/storage/runtime-status.ts index b6a328f096..6a1253486c 100644 --- a/src/storage/runtime-status.ts +++ b/src/storage/runtime-status.ts @@ -95,7 +95,7 @@ export function recordSecondProcessOwner(pid: number, info?: { lane?: string; in state.secondProcess = { pid, at: Date.now(), benign: false, ...(info ?? {}) }; } -export interface SplitBrainIdentity { +interface SplitBrainIdentity { instanceId: string; pid: number; origin: string; From dc380bd153c82649a0767f940543a20e9e6964e2 Mon Sep 17 00:00:00 2001 From: ework-agent Date: Sat, 24 Oct 2026 00:51:48 +0800 Subject: [PATCH 2/2] fix(ci): register tests/issue-split-brain-surface.test.ts in LIVE_FILES (#4434 follow-up, #4440) --- scripts/live-files.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/live-files.mjs b/scripts/live-files.mjs index 6e67fffc9e..720e339d2b 100644 --- a/scripts/live-files.mjs +++ b/scripts/live-files.mjs @@ -54,6 +54,9 @@ export const LIVE_FILES = [ // corruption probes, #4216/#4249 follow-ups); append-only per the note above "tests/storage-engine-proofs.test.ts", "tests/web-storage-banner.test.ts", + // #4434 (split-brain surface): spawns bili CLI children against a throwaway + // origin; own probe server is listen(0) so only the zone band matters + "tests/issue-split-brain-surface.test.ts", ]; /** Band width per live file: the zone ladder drifts +1 per EADDRINUSE retry;