Sébastien Rigaux

TanStack DB 1.0 RC1: using test oracles to harden agent-written code

View resource

tanstack.com

TanStack DB reaches 1.0 RC1 after extensive stabilization work. Kyle Mathews explains how test oracles—independent models that calculate expected behavior—and property-based testing uncovered bugs in collection updates and the change messages sent to subscribers.

These executable references also give coding agents precise rules to preserve when changing the implementation. The trade-off is clear: writing and refining models takes work, but their simplicity makes complex algorithms easier to verify. The RC also supports incremental adoption, from existing REST APIs to local persistence, offline mutations, and real-time sync.

Illustrated map of mountains, valleys, and dotted paths connecting different points.