Repository navigation
v0.4.0 — hardening + the core delight
Turn any contract into a local SQL database. 0.4.0 hardens the whole stack and ships the core-user delight.
The core delight
nuthatch sql "<query>"— terminal-native SQL over the live tip ∪ sealed history (aligned table,--json), redb-lock-aware with an HTTP fallback. The down-payment on the RFC-0015 "delightful core" direction.
Hardening (audit-driven)
- Security: fixed blob-mount path traversal (RCE),
/sqlarbitrary local file read, and made the admin token actually enforced per request. - Data correctness: atomic seal→prune (no post-crash double-count) + structural hot∪cold SQL disjointness;
union_by_nameso schema drift can't drop a table's view; strict block-timestamps (no sealing timestamp=0); consistent column typing across the seal boundary. - Throughput: the tip loop now commits one redb transaction per window instead of per row.
- Tests: first end-to-end harness — a scripted-chain
TapeSourceclosing the reorg-detection gap, plus the roost-vs-solo byte-identical parity proof. 151 tests total. - Defensive fixes (checked decode, nest-name validation, manifest fsync, error sanitisation).
Docs
- README rewritten to lead with the one thing nuthatch is best at.
- RFC-0015 records the 0.5 north star;
docs/backlog.mdrecords deferred items.
Full detail in docs/progress-log.md.