repair Hermes ledger migration fidelity

This commit is contained in:
Aditya Vikram Singh 2026-09-02 14:38:00 +05:30
parent 38e6e19f29
commit 4bebc37f2c
4 changed files with 14 additions and 9 deletions

View file

@ -245,9 +245,9 @@ describe('hermes session ledger unit', () => {
expect(isHermesLedgerPublicationError(caught)).toBe(true)
})
it('does not adopt a v1 ledger after the cost-provenance contract changes', async () => {
await writeFile(join(cacheDir, 'hermes-session-ledger.v1.json'), JSON.stringify({
version: 1,
it('does not adopt a v2 ledger whose migration could re-date historical observations', async () => {
await writeFile(join(cacheDir, 'hermes-session-ledger.v2.json'), JSON.stringify({
version: 2,
cursors: {
default: {
corrupt: {