mirror of
https://github.com/allankoechke/turso.git
synced 2026-11-30 11:12:58 +00:00
State the parity requirement in the serverless differential conformance spec — each serverless driver exposes the same public API as its language's embedded driver, and non-JavaScript serverless drivers track the JavaScript driver's capabilities — and reference it from the AGENTS.md core principles. Add the param_batch operation to the shared vocabulary (spec/ops.json, documented in operations.md) and implement it in the JavaScript, Python, and Rust harnesses: 1-4 statements through the batch() API — parameterized INSERTs drawing from the adversarial value pool, SELECTs, and statements from error_sqls — optionally atomic via a mode of deferred or immediate. The embedded and serverless drivers must agree on every statement's result; on failure they must agree on the failing statement's index and on the per-statement results carried by the error, entry by entry. An agreed batch failure leaves well-defined state, so the harnesses keep comparing later operations — that is what catches an atomic batch that reports the right index but fails to roll back. The server-side execution statistics are excluded from the comparison: the serverless driver reports them and the embedded driver does not, by design. The embedded drivers execute a batch as a sequential loop that stops at the first error, so the comparison is the oracle for the serverless batch: one pipeline request must behave exactly like sequential execution that stops at the first failure. The Rust generator fails the suite deterministically, with an actionable message, when ops.json contains an operation it does not implement, instead of panicking mid-case on an unknown id. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>