Skip to content

Commit cb1bd40

Browse files
committed
fix(runtime): read the record number as a string in the autonumber parity probe (#15267)
`SqlDriver.create()` declares the contract's `Record<string, unknown>` now, so the cross-side parity probe's `rec_no` read is `unknown` where it was reached through an `any`. It converts to the string the probe compares. Caught by this package's `check:test-typecheck` gate, not by `tsc --noEmit` — the file is in the checked test zone and the ledger does not cover it. Claude-Session: https://claude.ai/code/session_01XTBcV7zZHmokdyQgXjbyEU Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1568c3b commit cb1bd40

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/runtime/src/autonumber-seed-cross-side-parity.integration.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ async function sqlDriverIssues(format: string | undefined, stored: string[]): Pr
144144

145145
const created = await driver.create('rec', { title: 'next' });
146146
await driver.disconnect();
147-
return created.rec_no;
147+
// [#15267] `SqlDriver.create()` declares the contract's
148+
// `Record<string, unknown>` now, so the record number is read as the string
149+
// this parity probe compares — it was reached through an `any` before.
150+
return String(created.rec_no);
148151
}
149152

150153
interface Fixture {

0 commit comments

Comments
 (0)