Skip to content

v0.4.0 — hardening + the core delight

Choose a tag to compare

@cargopete cargopete released this 18 Jul 19:38
· 4948 commits to main since this release
1cbcbe5

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), /sql arbitrary 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_name so 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 TapeSource closing 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.md records deferred items.

Full detail in docs/progress-log.md.