josh
|
445a46139f
|
test(01-03): add failing tests for save core (checksum, envelope, migrations) [RED]
- checksum.test.ts: 6 tests covering crc32hex determinism + 8-char-hex format
+ canonicalJSON recursive key sort + array-order preservation (Pitfall 3)
- envelope.test.ts: 9 tests covering wrap/unwrap round-trip + tamper detection
+ Zod schema validation (incl synthetic v0 schemaVersion 0)
- migrations.test.ts: 6 tests covering CURRENT_SCHEMA_VERSION = 1 + the
load-bearing synthetic v0 -> v1 shape per CONTEXT D-04 + future/negative
version throws + spy-confirmed registry invocation (RESEARCH Pitfall 7)
RED phase per TDD plan-level gate. Tests fail because impl files do not
exist yet.
|
2026-05-08 23:27:34 -04:00 |
|