Skip to content

Commit 0ab9b15

Browse files
fix(messaging): the one-time digest conversion rewrites only rows that held none before its claim (#36694)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBEaJzgBWzjWCNjBjkVoeRto)_ Fixes #36369 repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户无感的升级修补:升级当天那次「把旧的不汇总清成未设置」只改开始前已存在的那批记录,运行期间成员新选的「不汇总」原样保留。 - 属于「成员不汇总与免打扰优先于组织默认」那项修复的收尾,替运行期间改了设置的成员解决选择被清掉的问题。 - 出错时,升级运行那几秒里选了「不汇总」的成员会被改回跟随组织;可直接撤回本改动,回到原先的做法。 - 无。 ## What changes `packages/services/service-messaging/src/preference-digest-conversion.ts` (the one-time conversion of the legacy digest `none` to empty, ruling 7073270426 on #35123, item 4): - **Snapshot before the claim.** The pass reads the ids (and organization) of every row holding `digest = 'none'` first, in pages by id cursor (`id > last`, `orderBy id asc`, page size 10000), then claims its `sys_migration` row, then rewrites exactly that snapshot with the same compare-and-set as before (`where: { id, digest: 'none' }`, the row's own organization threaded). - **No re-read.** The loop that re-read `where: { digest: 'none' }` after each batch (and the `seen` set that ended it) is gone, and so is its "re-reading failed after the claim" branch: a failure on any page of the snapshot now happens before the claim and answers `read-failed`, so the next boot retries with nothing recorded. - An optional third parameter `{ pageSize }` (module-internal; the function is not exported from the package entry) lets the pin exercise more than one page. Ruling text relied on (item 4): > ⛔ The conversion must not run again after the fix is live: from then on `none` is a member's real choice. The deployment serves while the boot hook runs, so a `none` written during the pass is written under the fixed release. ### Read first (by risk) 1. `preference-digest-conversion.ts` — `readSnapshot` (cursor paging; the missing-table answer applies to the first page only) and the rewrite loop that now iterates the snapshot once. 2. `preference-digest-three-states.integration.test.ts` — `interceptOnce` and the "a none written during the pass" pin. 3. `.changeset/36369-digest-conversion-snapshot.md`. ## Tests New pins in `preference-digest-three-states.integration.test.ts` (real `ObjectQL` + `SqlDriver` better-sqlite3 file database that an earlier release created): - a `none` written during the pass (a new row with an explicit `none`, and a `daily` row switched to `none`) survives it; only the pre-claim row is rewritten (`converted: 1`); - the snapshot is read in pages by id: five legacy rows across two organizations with `pageSize: 2` are all converted; - a claim that fails after the read (ledger insert refused) answers `claim-failed`, logs one error, rewrites nothing and leaves no ledger row; - another node claiming between the read and the claim answers `already-run` and this pass rewrites nothing. All readings at head `6bd074ce`, after `pnpm --filter '@objectstack/service-messaging^...' build` (lock VERDICT command-exit 0). <details><summary>Package test and typecheck</summary> - `pnpm --filter @objectstack/service-messaging test`: Test Files 80 passed (80), Tests 1088 passed (1088). - `pnpm --filter @objectstack/service-messaging typecheck` (`tsc --noEmit && tsc --noEmit -p tsconfig.scripts.json`): exit 0. - Both under `os-verify-lock.sh`: VERDICT command-exit 0. - `test:repo` not run locally (diff does not touch that project); CI `Test Core` runs it. </details> <details><summary>Ablations (one-shot, through scripts/ablation-replace.mjs; the test imports the module from source, so no dist leg)</summary> 1. Re-read reintroduced: the snapshot loop replaced by a generator that re-reads `digest = 'none'` after the snapshot and yields ids not yet seen (the pre-fix shape). Mutation landed (anchor 1 to 0, blob 7ad5cf7 to cfc30aecaf87). Result: "a none written during the pass is not rewritten" FAILED, `converted` expected 1, received 3; Tests 1 failed, 8 passed. Restored: blob == HEAD, `git diff HEAD` empty. 2. One page only: the short-page test before `return snapshot;` deleted, so the read stops after the first page. Result: "reads the snapshot in pages by id" FAILED, `converted` expected 5, received 2; Tests 1 failed, 8 passed. Restored: blob == HEAD, `git diff HEAD` empty. </details> ## Acceptance notes - **Split off — seat decides:** the Notification Settings page has no "follow the organization again" action for digest or quiet hours (optional item 1 of the card). - **Split off — seat decides:** `QUIET_HOURS_OFF` is spelled in both `preference-resolver.ts` and the UI `myPreferences.ts` with no pin tying them together (optional item 2 of the card). - **What the snapshot does not close (by construction).** When the claim fails, nothing is rewritten and nothing can be recorded (the ledger is the thing that failed), so the next boot takes a new snapshot and a `none` written between those two boots is converted with the rest. The card reads the snapshot as covering this case; it covers the claim-fails-after-the-read case only within one boot (pinned above). The failure is logged at `error` naming the fix. A row that held the legacy `none` in the snapshot and is re-set to `none` by its member before its own rewrite is indistinguishable from the legacy value and is converted; that window is the time between the snapshot and that row's update. ## Verification Two-minute check: `pnpm --filter @objectstack/service-messaging exec vitest run src/preference-digest-three-states.integration.test.ts` — expect 9 passed, including "a none written during the pass is not rewritten: only the rows read before the claim are". <details><summary>Local gates (dispatch-gates --commands, derived at 6bd074c)</summary> - 67 derived commands: 63 exit 0; 4 exit 3 (PREREQUISITE NOT MET, read as NOT MEASURED, CI's `Lint & Repo Gates` runs them on a full build): - `node scripts/check-plugin-teardown-shape.mjs --self-test` (needs an unshallow clone); - `pnpm check:dual-build-cjs-loads` and `pnpm check:published-readme-exports` (need every package's dist); - `pnpm check:i18n` (needs the built CLI). - `dispatch-gates --ran` with exit codes recorded: "67 derived famil(ies) accounted for — 63 run, 4 NOT-MEASURED", exit 0. - Branch is 2 commits behind `origin/main`; neither touches `service-messaging` or `.changeset/36369*`, so no merge before opening. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01WGufzi4PechTRCTBrfxV8W)_ <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent b617675 commit 0ab9b15

3 files changed

Lines changed: 190 additions & 61 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/service-messaging': patch
3+
---
4+
5+
fix(messaging): the one-time digest conversion rewrites only the rows that held `none` when it started
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The one-time conversion of the old default digest `none` to empty now reads the ids of every row holding `none` first, in pages, then records itself in `sys_migration`, then rewrites exactly those rows. It no longer reads the rows again while it runs. The deployment is already serving during that boot pass, so a `none` someone picks during the pass (a new preference, a member switching to "No digest", a node still on the earlier release in a rolling upgrade) is that person's own choice and is kept. If the conversion cannot record itself in `sys_migration`, it rewrites nothing and runs again on the next start.

‎packages/services/service-messaging/src/preference-digest-conversion.ts‎

Lines changed: 85 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,23 @@
3636
* - No ledger on the kernel, or a ledger that cannot be read: the pass does
3737
* NOT run, because it could not be recorded and would repeat.
3838
*
39+
* ## Only the rows that held `none` before the claim
40+
*
41+
* The pass reads the ids of every row holding `none` FIRST, in pages by id,
42+
* then claims the ledger row, then rewrites exactly that snapshot — it never
43+
* reads the filter again. The deployment is serving while the boot hook
44+
* runs, so a `none` written during the pass (a member's own pick, a new row,
45+
* a node still on the earlier release in a rolling deploy) is a real choice
46+
* and is not part of the snapshot.
47+
*
3948
* Every organization's rows: the read is the platform's own, not a tenant's.
4049
* Each rewrite is addressed by id AND the stored `none`, under the row's own
4150
* organization, so a value written since the read is left alone.
51+
*
52+
* A claim that fails rewrites nothing, and the next boot takes a new
53+
* snapshot: a `none` written between those two boots is converted with the
54+
* rest. Nothing can record the earlier snapshot when the ledger itself cannot
55+
* be written, so that failure is logged as an error naming the fix.
4256
*/
4357

4458
import type { IDataEngine } from '@objectstack/spec/contracts';
@@ -58,8 +72,8 @@ const LEGACY_UNSET_DIGEST = 'none';
5872
/** The table this conversion rewrites; the type ties it to `PREFERENCE_OBJECT`. */
5973
const OBJECT: typeof PREFERENCE_OBJECT = 'sys_notification_preference';
6074

61-
/** How many rows one read takes — the same ceiling `PreferenceResolver.loadRows` reads with. */
62-
const PASS_LIMIT = 10000;
75+
/** How many rows one page of the snapshot read takes. */
76+
const PAGE_SIZE = 10000;
6377

6478
const SYSTEM_CONTEXT = { isSystem: true } as const;
6579

@@ -74,15 +88,28 @@ type ConversionEngine = Pick<IDataEngine, 'find' | 'findOne' | 'insert' | 'updat
7488
getObject?(name: string): unknown;
7589
};
7690

91+
export interface PreferenceDigestConversionOptions {
92+
/** Rows per page of the snapshot read; defaults to 10000. */
93+
pageSize?: number;
94+
}
95+
96+
/** One row of the snapshot: what its rewrite is addressed by. */
97+
interface LegacyRow {
98+
id: string;
99+
organizationId: string | undefined;
100+
}
101+
77102
export interface PreferenceDigestConversionResult {
78103
/**
79-
* - `converted` — the ledger row was claimed and every legacy `none` found
80-
* was attempted (`failed` lists the ones left as stored);
104+
* - `converted` — the ledger row was claimed and every row of the snapshot
105+
* taken before the claim was attempted (`failed` lists the ones left as
106+
* stored);
81107
* - `already-run` — the ledger records an earlier pass; nothing was read;
82108
* - `ledger-unavailable` — no `sys_migration` on this kernel; nothing ran;
83109
* - `ledger-unreadable` — the ledger read failed; nothing ran;
84-
* - `read-failed` — the preference rows could not be read; nothing was
85-
* claimed or rewritten, and the next boot tries again;
110+
* - `read-failed` — the preference rows could not be read (any page of
111+
* the snapshot); nothing was claimed or rewritten, and the next boot
112+
* tries again;
86113
* - `claim-failed` — the ledger row could not be written; nothing was
87114
* rewritten;
88115
* - `no-engine` — no data engine that reads and writes rows.
@@ -114,13 +141,15 @@ export function buildDigestConversionRecord(details: Record<string, unknown>, no
114141
}
115142

116143
/**
117-
* Rewrite every legacy stored `digest = 'none'` to empty, across every
118-
* organization, unless this deployment's ledger already records the pass.
119-
* Never throws: it runs in a boot hook, which it must not break.
144+
* Rewrite every stored `digest = 'none'` that existed before the ledger claim
145+
* to empty, across every organization, unless this deployment's ledger
146+
* already records the pass. Never throws: it runs in a boot hook, which it
147+
* must not break.
120148
*/
121149
export async function convertLegacyNoneDigestsOnce(
122150
engine: IDataEngine | undefined,
123151
logger?: PreferenceDigestConversionLogger,
152+
options: PreferenceDigestConversionOptions = {},
124153
): Promise<PreferenceDigestConversionResult> {
125154
const result = (status: PreferenceDigestConversionResult['status'], converted = 0, failed: string[] = []): PreferenceDigestConversionResult =>
126155
({ status, converted, failed });
@@ -151,23 +180,39 @@ export async function convertLegacyNoneDigestsOnce(
151180
return result('ledger-unreadable');
152181
}
153182

154-
const readLegacy = async (): Promise<Array<Record<string, unknown>>> => {
155-
try {
156-
return ((await e.find(
157-
OBJECT,
158-
{ where: { digest: LEGACY_UNSET_DIGEST }, fields: ['id', 'organization_id'], limit: PASS_LIMIT },
159-
{ context: SYSTEM_CONTEXT },
160-
)) ?? []) as Array<Record<string, unknown>>;
161-
} catch (err) {
162-
// No table yet holds no legacy row: a fresh database.
163-
if (isMissingTableError(err, OBJECT)) return [];
164-
throw err;
183+
// The snapshot: every row holding `none` now, read in pages in id order
184+
// until a page comes back short. Taken before the claim, and the only
185+
// rows the pass rewrites.
186+
const size = Math.max(1, Math.floor(options.pageSize ?? PAGE_SIZE));
187+
const readSnapshot = async (): Promise<LegacyRow[]> => {
188+
const snapshot: LegacyRow[] = [];
189+
for (let after: string | undefined; ;) {
190+
let page: Array<Record<string, unknown>>;
191+
try {
192+
page = ((await e.find(
193+
OBJECT,
194+
{
195+
where: { digest: LEGACY_UNSET_DIGEST, ...(after === undefined ? {} : { id: { $gt: after } }) },
196+
fields: ['id', 'organization_id'],
197+
orderBy: [{ field: 'id', order: 'asc' }],
198+
limit: size,
199+
},
200+
{ context: SYSTEM_CONTEXT },
201+
)) ?? []) as Array<Record<string, unknown>>;
202+
} catch (err) {
203+
// No table yet holds no legacy row: a fresh database.
204+
if (after === undefined && isMissingTableError(err, OBJECT)) return [];
205+
throw err;
206+
}
207+
for (const row of page) snapshot.push({ id: String(row.id), organizationId: textOrUndefined(row.organization_id) });
208+
if (page.length < size) return snapshot;
209+
after = String(page[page.length - 1]!.id);
165210
}
166211
};
167212

168-
let rows: Array<Record<string, unknown>>;
213+
let rows: LegacyRow[];
169214
try {
170-
rows = await readLegacy();
215+
rows = await readSnapshot();
171216
} catch (err) {
172217
logger?.error(
173218
`[messaging] the one-time ${OBJECT} digest conversion could not read the rows it converts, so it did not ` +
@@ -207,49 +252,29 @@ export async function convertLegacyNoneDigestsOnce(
207252

208253
let converted = 0;
209254
const failed: string[] = [];
210-
const seen = new Set<string>();
211-
// Pass until a read returns no row this run has not already handled. A row
212-
// left as stored still matches the filter, so `seen` is what ends the loop.
213-
for (;;) {
214-
const fresh = rows.filter((row) => !seen.has(String(row.id)));
215-
if (fresh.length === 0) break;
216-
for (const row of fresh) {
217-
const id = String(row.id);
218-
seen.add(id);
219-
try {
220-
// A migration is an entry point, so it states the system
221-
// context itself, with the row's own organization threaded.
222-
// Compare-and-set: the predicate path honours both keys, so a
223-
// digest written since the read is left alone (0 matched).
224-
const matched = await e.update(
225-
OBJECT,
226-
{ digest: null },
227-
{ where: { id, digest: LEGACY_UNSET_DIGEST }, multi: true, context: { ...SYSTEM_CONTEXT, tenantId: textOrUndefined(row.organization_id) } },
228-
);
229-
if (matched !== 0) converted += 1;
230-
} catch (err) {
231-
failed.push(id);
232-
logger?.error(
233-
`[messaging] the one-time ${OBJECT} digest conversion could not rewrite row ${id} (${messageOf(err)}): ` +
234-
"it still holds the old default digest 'none', which now reads as that person's own choice of no " +
235-
"digest. Fix: open the row in Setup, Notification Preferences, and clear its Digest.",
236-
undefined,
237-
{ object: OBJECT, id },
238-
);
239-
}
240-
}
255+
// The snapshot only: a row that came to hold `none` after it was taken is
256+
// a choice made under this release, and is never read here.
257+
for (const { id, organizationId } of rows) {
241258
try {
242-
rows = await readLegacy();
259+
// A migration is an entry point, so it states the system
260+
// context itself, with the row's own organization threaded.
261+
// Compare-and-set: the predicate path honours both keys, so a
262+
// digest written since the read is left alone (0 matched).
263+
const matched = await e.update(
264+
OBJECT,
265+
{ digest: null },
266+
{ where: { id, digest: LEGACY_UNSET_DIGEST }, multi: true, context: { ...SYSTEM_CONTEXT, tenantId: organizationId } },
267+
);
268+
if (matched !== 0) converted += 1;
243269
} catch (err) {
270+
failed.push(id);
244271
logger?.error(
245-
`[messaging] the one-time ${OBJECT} digest conversion stopped after ${converted} row(s): re-reading the ` +
246-
`rows failed (${messageOf(err)}). It is recorded as run and will not run again, so any row still ` +
247-
"holding digest 'none' reads as that person's own choice of no digest. Fix: clear Digest on those " +
248-
'rows in Setup, Notification Preferences.',
272+
`[messaging] the one-time ${OBJECT} digest conversion could not rewrite row ${id} (${messageOf(err)}): ` +
273+
"it still holds the old default digest 'none', which now reads as that person's own choice of no " +
274+
"digest. Fix: open the row in Setup, Notification Preferences, and clear its Digest.",
249275
undefined,
250-
{ object: OBJECT, error: messageOf(err) },
276+
{ object: OBJECT, id },
251277
);
252-
break;
253278
}
254279
}
255280

‎packages/services/service-messaging/src/preference-digest-three-states.integration.test.ts‎

Lines changed: 95 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
* column still carries the old physical DEFAULT 'none' (the temporary
1010
* owner-side hook, `preference-digest-unset.ts`, until #36245);
1111
* - the legacy `none` nobody chose becomes empty ONCE, across every
12-
* organization, recorded in `sys_migration`; a `none` written after that
12+
* organization, recorded in `sys_migration`; only the rows read before the
13+
* claim are rewritten, so a `none` written during the pass, or after it,
1314
* survives every later boot (`preference-digest-conversion.ts`).
1415
*/
1516

@@ -91,6 +92,29 @@ async function insert(ql: ObjectQL, organization: string, row: Record<string, un
9192
return String((await ql.insert(PREF, row, sys(organization))).id);
9293
}
9394

95+
/**
96+
* The engine `ql` with one interception: the first `method` call on `object`
97+
* runs `before` first (whatever it throws is that call's failure), then the
98+
* call itself. Every other member is `ql`'s own.
99+
*/
100+
function interceptOnce(ql: ObjectQL, method: 'update' | 'insert', object: string, before: () => Promise<void>): never {
101+
let fired = false;
102+
return new Proxy(ql, {
103+
get(target, prop) {
104+
const value = Reflect.get(target, prop, target);
105+
if (typeof value !== 'function') return value;
106+
if (prop !== method) return value.bind(target);
107+
return async (name: string, ...rest: unknown[]) => {
108+
if (name === object && !fired) {
109+
fired = true;
110+
await before();
111+
}
112+
return (value as (...args: unknown[]) => unknown).call(target, name, ...rest);
113+
};
114+
},
115+
}) as never;
116+
}
117+
94118
describe('an upgraded database: the digest column still carries the physical DEFAULT none', () => {
95119
it('an insert that leaves the digest unset stores it empty, an explicit none stays none', async () => {
96120
const file = dbFile();
@@ -152,6 +176,76 @@ describe('the one-time conversion of the legacy none', () => {
152176
expect(await digestOf(second, 'org_a', fresh)).toBe('none');
153177
});
154178

179+
it('a none written during the pass is not rewritten: only the rows read before the claim are', async () => {
180+
const file = dbFile();
181+
const legacy = await boot(file, LEGACY_PREFERENCE, { seed: true });
182+
const old = await insert(legacy, 'org_a', { user_id: 'u1', topic: '*', channel: '*', enabled: true });
183+
const daily = await insert(legacy, 'org_a', { user_id: 'u2', topic: 'chosen', channel: '*', enabled: true, digest: 'daily' });
184+
await close(legacy);
185+
186+
const ql = await boot(file, NotificationPreference, { hook: true });
187+
let created: string | undefined;
188+
// While the pass is rewriting, the deployment is serving: a new row
189+
// with an explicit none, and a member switching daily to none.
190+
const engine = interceptOnce(ql, 'update', PREF, async () => {
191+
created = await insert(ql, 'org_b', { user_id: 'u2', topic: '*', channel: '*', enabled: true, digest: 'none' });
192+
await ql.update(PREF, { digest: 'none' }, { where: { id: daily }, ...sys('org_a') } as never);
193+
});
194+
expect(await convertLegacyNoneDigestsOnce(engine, silent)).toEqual({ status: 'converted', converted: 1, failed: [] });
195+
expect(created).toBeDefined();
196+
expect(await digestOf(ql, 'org_a', old)).toBeNull();
197+
expect(await digestOf(ql, 'org_b', created!)).toBe('none');
198+
expect(await digestOf(ql, 'org_a', daily)).toBe('none');
199+
});
200+
201+
it('reads the snapshot in pages by id, so every legacy none past the first page is converted', async () => {
202+
const file = dbFile();
203+
const legacy = await boot(file, LEGACY_PREFERENCE, { seed: true });
204+
const rows: Array<[string, string]> = [];
205+
for (const [organization, user, topic] of [['org_a', 'u1', '*'], ['org_a', 'u2', '*'], ['org_b', 'u1', '*'], ['org_b', 'u2', '*'], ['org_a', 'u1', 'other']]) {
206+
rows.push([organization, await insert(legacy, organization, { user_id: user, topic, channel: '*', enabled: true })]);
207+
}
208+
await close(legacy);
209+
210+
const ql = await boot(file, NotificationPreference, { hook: true });
211+
expect(await convertLegacyNoneDigestsOnce(ql as never, silent, { pageSize: 2 })).toEqual({ status: 'converted', converted: 5, failed: [] });
212+
for (const [organization, id] of rows) expect(await digestOf(ql, organization, id)).toBeNull();
213+
});
214+
215+
it('a claim that fails after the read rewrites nothing, and leaves no record', async () => {
216+
const file = dbFile();
217+
const legacy = await boot(file, LEGACY_PREFERENCE, { seed: true });
218+
const row = await insert(legacy, 'org_a', { user_id: 'u1', topic: '*', channel: '*', enabled: true });
219+
await close(legacy);
220+
221+
const ql = await boot(file, NotificationPreference, { hook: true });
222+
const errors: string[] = [];
223+
const engine = interceptOnce(ql, 'insert', 'sys_migration', async () => {
224+
throw new Error('ledger is read-only');
225+
});
226+
const out = await convertLegacyNoneDigestsOnce(engine, { ...silent, error: (m: string) => errors.push(m) });
227+
expect(out).toEqual({ status: 'claim-failed', converted: 0, failed: [] });
228+
expect(errors).toHaveLength(1);
229+
expect(await digestOf(ql, 'org_a', row)).toBe('none');
230+
expect(await ql.findOne('sys_migration', { where: { id: PREFERENCE_DIGEST_NONE_CONVERSION_ID } }, { context: { isSystem: true } as ExecutionContext })).toBeFalsy();
231+
});
232+
233+
it('another node claiming between the read and the claim counts as run, and this pass rewrites nothing', async () => {
234+
const file = dbFile();
235+
const legacy = await boot(file, LEGACY_PREFERENCE, { seed: true });
236+
const row = await insert(legacy, 'org_a', { user_id: 'u1', topic: '*', channel: '*', enabled: true });
237+
await close(legacy);
238+
239+
const ql = await boot(file, NotificationPreference, { hook: true });
240+
// The other node's claim lands first; this node's insert of the same
241+
// ledger id is then refused by the store.
242+
const engine = interceptOnce(ql, 'insert', 'sys_migration', async () => {
243+
await ql.insert('sys_migration', { id: PREFERENCE_DIGEST_NONE_CONVERSION_ID, last_run_at: new Date().toISOString(), blocking: 0 }, { context: { isSystem: true } as ExecutionContext });
244+
});
245+
expect(await convertLegacyNoneDigestsOnce(engine, silent)).toEqual({ status: 'already-run', converted: 0, failed: [] });
246+
expect(await digestOf(ql, 'org_a', row)).toBe('none');
247+
});
248+
155249
it('without a ledger on the kernel it does not run, so nothing it could not record is rewritten', async () => {
156250
const file = dbFile();
157251
const legacy = await boot(file, LEGACY_PREFERENCE, { seed: true, ledger: false });

0 commit comments

Comments
 (0)