refactor: add canonical transcript assembly seam

This commit is contained in:
tommy0103
2026-07-21 00:58:34 +08:00
parent 3ee44de4e5
commit f79f1b3e3b
39 changed files with 1741 additions and 670 deletions
+2 -2
View File
@@ -3,10 +3,10 @@ import assert from 'node:assert/strict';
import { createHash } from 'node:crypto';
import { readFileSync } from 'node:fs';
test('provider adapters do not change the frozen SQLite schema', () => {
test('canonical transcript persistence schema changes only by explicit decision', () => {
const schema = readFileSync(new URL('../packages/core/src/schema.sql', import.meta.url));
assert.equal(
createHash('sha256').update(schema).digest('hex'),
'3e0615ed2db0d7338561df4d51c4240395714c191aa69567ffcdb70efec49826',
'ef5d0eea6f91c50e78ca5e28ecdc7b3ed5db83db59200642cc25866158f9d307',
);
});