2026-07-20 22:43:23 +08:00
|
|
|
import { test } from 'node:test';
|
|
|
|
|
import assert from 'node:assert/strict';
|
|
|
|
|
import { createHash } from 'node:crypto';
|
|
|
|
|
import { readFileSync } from 'node:fs';
|
|
|
|
|
|
2026-07-21 00:58:34 +08:00
|
|
|
test('canonical transcript persistence schema changes only by explicit decision', () => {
|
2026-07-20 22:43:23 +08:00
|
|
|
const schema = readFileSync(new URL('../packages/core/src/schema.sql', import.meta.url));
|
|
|
|
|
assert.equal(
|
|
|
|
|
createHash('sha256').update(schema).digest('hex'),
|
2026-07-21 00:58:34 +08:00
|
|
|
'ef5d0eea6f91c50e78ca5e28ecdc7b3ed5db83db59200642cc25866158f9d307',
|
2026-07-20 22:43:23 +08:00
|
|
|
);
|
|
|
|
|
});
|