Repository navigation
Releases
RiffDB v0.2.5
RiffDB v0.2.5
Deferred-Pipeline Idempotency Disjointness, Commit-Check Diagnostics, and 7-Surface Remote Conformance (0.2.5)
v0.2.5 is a patch release in the 0.2.x series (durable epoch 1, writer 5)
that hardens deferred-pipeline idempotency footprint disjointness, commit-check
invariant error classification, multi-database HostedHttp routing, MCP
JSON-escaped page-budget accounting, and CLI bootstrap/lock/dev safety:
- Deferred-pipeline idempotency footprint disjointness (
ADR-0349,WP-928):
BatchCollisionTrackerrecords each admitted command's(OrgScope, IdempotencyKey)in its batch footprint so concurrent same-key commands never
share a deferred pipeline batch; deferred pipeline execution also treats
IdempotencyDecision::ReplayandIdempotencyDecision::Mismatcharriving at
a non-leading position as per-command non-committing outcomes rather than
withdrawing the database. - Typed commit-check invariant diagnostics (
RDB-INPUT-0101): Commit-time
check invariant rejections (CommitCheckRejected) map to public validation
errors (RDB-INPUT-0101) with structured invariant diagnostic details instead
of falling through todeadline_exceeded, and roll back cleanly without
poisoning the idempotency key. - Multi-database HostedHttp routing and MCP cursor page-budget accounting
(ADR-0350,WP-929–WP-934):riffdbdroutes/mcpand HTTP requests
across all configured databases in multi-database deployments; MCP cursor
pagination accounts for worst-case JSON string escaping (6xper UTF-8 byte)
across sibling scalar, list, and nested aggregate bindings so responses never
overflowMAX_MCP_PAGE_BYTES; andriffdb-driverdpreserves underlying loop
and session error diagnostics across all 7 remote surfaces. - CLI bootstrap, lock resolution, standalone
dev, and stdout I/O hardening:
riffdb capability bootstrap --forcecleans up newly replaced--bearer-output
files if connection or authentication fails;--lockresolves caller-relative
paths deterministically and refuses symlinks (RDB-FS004) before
canonicalization; standaloneriffdb devresolves relativeRIFFDB_SERVER_BIN
paths before changing working directories; and CLI output surfaces propagate
non-BrokenPipewrite failures (such asENOSPCon/dev/full) with a
non-zero exit code.
In addition, v0.2.5 retains all v0.2.4, v0.2.3, v0.2.2, and v0.2.1 capabilities:
-
Compile/lock-time role scan-budget verification (
RDB-APP-0205):
riffdb application checkandriffdb application lockstatically verify that
every query permitted by a declared role fits within that role'smax_scan_rows
andmax_scan_bytesceiling—including primary-keyin $setpoint-set row
multiplicities—refusing under-budgeted roles at lock time before deployment. -
Coarse-grained
RDB-AUTH-0214authorization diagnostics
(authorization_diagnostics): When enabled (defaulttrueoutsideprod/
production, defaultfalseinprod/production),RDB-AUTH-0214
responses carry an optional closed 9-variantauthorization_diagnostic
classification (role_not_granted,command_not_allowed,query_not_allowed,
entity_not_allowed,index_not_allowed,column_not_allowed,
scan_budget_exceeded,scope_mismatch,missing_permission) across gRPC,
riffdb-driverd, CLI JSON, MCP, and Rust, Go, TypeScript, and Python SDKs
without alteringsymbol_pathsemantics. -
riffdb-driverdpeer UID allowlist (driver.allowed_peer_uids) and
diagnostic logging:driverd.tomlsupportsallowed_peer_uids(up to 16
explicit non-zero UIDs alongside the process owner UID) for rootless/distroless
container topologies, preservesallowed_peer_uidsacross
riffdb application deploy --driver-config-outputredeployments, and logs
structuredWARNrefusal events on peer-credential or session rejection. -
SDK and CLI error diagnostics: Go, TypeScript, and Python driver clients
surface underlying error codes, messages, andauthorization_diagnostic
classifications instead of collapsing session failures;riffdb application deploycreates missing--deployment-dirparent directories and emits
formatted errors on stderr when invoked in human mode. -
Runtime byte-budgeted cursor pagination: Cursor-paginated
many ... after $cursorqueries projecting widestringorbytescolumns (>= 4,096
bytes, up to1,048,576bytes) are statically sized for a single row plus the
full worst-case static bytes of any sibling returned bindings (<= 4 MiB), and
dynamically terminate pages before exceeding the step's remaining response
byte budget while emitting a resume cursor. -
Composable EAV candidate search & joined sorting:
candidatessources
supportwhen $param { ... }presence guards (including compound guard
bodies),in $setk-way merge sources, operational comparisons/prefixes, and
post-hydrationwherefilters; omitted optional clauses evaluate to the
intersection identity with fallback to a declared base source, non-contiguous
index prefixes fail closed, andorder by binding.field asc|desc nulls last
enforces complete helper populations without contaminating root continuations. -
First-party Rust Python Unix driver socket (
connect_driver_socket,
connect_uri("unix://..."),connect_from_env):DriverSocketStatein
crates/riffdb-client-python-nativeimplementsriffdb-driverdUnix socket
framing (MAX_DRIVER_FRAME_BYTES= 8 MiB), strict handshake andrequest_id
correlation across both success andDriverResponse::Errorframes,
OutcomeUnknownclassification on any post-send transport/frame failure
during command execution, and explicitUnsupportedTransportOperationrefusal
on reactive methods before sending bytes. -
CLI bootstrap
--forcesafety, recovery retention, and--environmentrole
selection:riffdb capability bootstrapvalidates request semantics and
server connectivity before overwriting any--forceoutput, retains automatic
recovery documents (RDB-CAP001) onOutcomeUnknown, emits structured
json-v2and human diagnostics for local deployment/retention refusals, and
selects locked manifest roles viaapplication deploy --environment <ENV>. -
Primary-key membership without requiring a secondary index: RiffQL
many
queries whose complete primary key is constrained (==on partition/prefix
key fields andin $idson a primary-key field with ascendingorder by)
now compile to boundedQueryAccessKind::Pointplans within a single snapshot
when no declared secondary index matches, while continuing to prefer declared
covering indexes when present. -
Explicit
Set<T, MAX>bounds (1..=65,535) and<query>Allchunking
guarantees: Generated<query>All/<query>_all/<Query>AllSDK
helpers across TypeScript, Python, and Go enforce upfront total item bounds
(items.length <= maxPages * MAX_ITEMS) before issuing any RPC and
canonically deduplicate and sort input sets in the query'sorder by
direction (asc/descand canonical vsbinary_utf8_v1string collation). -
Minimal-identity
riffdb-driverdhandshakes, automatic reconnect, and
unified SDK ergonomics:riffdb-driverdresolves single-application and
single-role defaults from its configuration when optional identity hashes are
omitted (RIFFDB_DRIVER_SOCKET+RIFFDB_CREDENTIAL_FILE); TypeScript and Go
driver runtimes automatically reconnect on socket EOF/reset after a
riffdb-driverdrestart; Python addsconnect_from_env(); and TypeScript
generated clients accept both transport classes and factories while unifying
DriverApplicationTransportandDriverGeneratedApplicationTransport. -
CPython 3.11+ (
cp311-abi3) wheels: Prebuilt Python wheels now target the
stablecp311-abi3ABI (requires-python = ">=3.11"), supporting CPython
3.11, 3.12, 3.13, and 3.14 acrossx86_64andaarch64Linux (manylinux)
andarm64macOS. -
Contract bulk loop field access & operator CLI defaults: Contract
for item in input.itemsloops support direct field projection (item.field)
inside command expressions;riffdb tls issueadds--san-dnsand
--san-ip;riffdb capability bootstrap --operatorautomatically includes
configured server gRPC/MCP audiences;riffdb application deploydefaults
role credential lifetime to 30 days;durable_localoutbox defaults its
directory to<data_dir>/outboxwithRDB-LOG-0305diagnostics; and
multi-databaseriffdbdservers wait for every configured database to
complete recovery before serving readiness. -
Pre-decode transport admission and authentication: Both HTTP (
/mcp,
health/metrics) and gRPC (including 8 MiB command and 32 MiB administration
migration services) enforce TLS handshake concurrency limits, authenticate
bearer credentials, and bound concurrent inbound work before allocating or
decoding request bodies. -
Storage-verified saga step delegation and backup integrity: Multi-step
saga execution verifies retained step authority against authoritative storage
records (SagaStepAuthority) and re-validates policy on every step; backup
artifact validation always computes a full SHA-256 content digest rather than
consulting a sampled-edge cache. -
Bounded operator sockets, webhook deadlines, and protected CLI writes:
OperatorDriverSocketserves connections in bounded concurrent tasks that
propagate shutdown; outbox HTTP/HTTPS webhook delivery enforces a single
overall deadline across DNS resolution, TCP connect, TLS handshake, request
write, and response reading; and CLI capability inventory persistence refuses
symlinks and writes through mode-0600temporary files. -
Watch, search, and columnar performance: Idle watch stream reuse across
Rust, Python, and TypeScript clients; inc...
RiffDB v0.2.4
RiffDB v0.2.4
Role Scan-Budget Verification, Application Authorization Diagnostics, and Driver Socket Peer Allowlists (0.2.4)
v0.2.4 is a patch release in the 0.2.x series (durable epoch 1, writer 5)
that adds compile/lock-time role scan-budget verification (RDB-APP-0205),
coarse-grained RDB-AUTH-0214 application authorization diagnostics, explicit
riffdb-driverd peer UID allowlists, and clearer driver/CLI error diagnostics:
- Compile/lock-time role scan-budget verification (
RDB-APP-0205):
riffdb application checkandriffdb application lockstatically verify that
every query permitted by a declared role fits within that role'smax_scan_rows
andmax_scan_bytesceiling—including primary-keyin $setpoint-set row
multiplicities—refusing under-budgeted roles at lock time before deployment. - Coarse-grained
RDB-AUTH-0214authorization diagnostics
(authorization_diagnostics): When enabled (defaulttrueoutsideprod/
production, defaultfalseinprod/production),RDB-AUTH-0214
responses carry an optional closed 9-variantauthorization_diagnostic
classification (role_not_granted,command_not_allowed,query_not_allowed,
entity_not_allowed,index_not_allowed,column_not_allowed,
scan_budget_exceeded,scope_mismatch,missing_permission) across gRPC,
riffdb-driverd, CLI JSON, MCP, and Rust, Go, TypeScript, and Python SDKs
without alteringsymbol_pathsemantics. riffdb-driverdpeer UID allowlist (driver.allowed_peer_uids) and
diagnostic logging:driverd.tomlsupportsallowed_peer_uids(up to 16
explicit non-zero UIDs alongside the process owner UID) for rootless/distroless
container topologies, preservesallowed_peer_uidsacross
riffdb application deploy --driver-config-outputredeployments, and logs
structuredWARNrefusal events on peer-credential or session rejection.- SDK and CLI error diagnostics: Go, TypeScript, and Python driver clients
surface underlying error codes, messages, andauthorization_diagnostic
classifications instead of collapsing session failures;riffdb application deploycreates missing--deployment-dirparent directories and emits
formatted errors on stderr when invoked in human mode.
In addition, v0.2.4 retains all v0.2.3, v0.2.2, and v0.2.1 capabilities:
-
Runtime byte-budgeted cursor pagination: Cursor-paginated
many ... after $cursorqueries projecting widestringorbytescolumns (>= 4,096
bytes, up to1,048,576bytes) are statically sized for a single row plus the
full worst-case static bytes of any sibling returned bindings (<= 4 MiB), and
dynamically terminate pages before exceeding the step's remaining response
byte budget while emitting a resume cursor. -
Composable EAV candidate search & joined sorting:
candidatessources
supportwhen $param { ... }presence guards (including compound guard
bodies),in $setk-way merge sources, operational comparisons/prefixes, and
post-hydrationwherefilters; omitted optional clauses evaluate to the
intersection identity with fallback to a declared base source, non-contiguous
index prefixes fail closed, andorder by binding.field asc|desc nulls last
enforces complete helper populations without contaminating root continuations. -
First-party Rust Python Unix driver socket (
connect_driver_socket,
connect_uri("unix://..."),connect_from_env):DriverSocketStatein
crates/riffdb-client-python-nativeimplementsriffdb-driverdUnix socket
framing (MAX_DRIVER_FRAME_BYTES= 8 MiB), strict handshake andrequest_id
correlation across both success andDriverResponse::Errorframes,
OutcomeUnknownclassification on any post-send transport/frame failure
during command execution, and explicitUnsupportedTransportOperationrefusal
on reactive methods before sending bytes. -
CLI bootstrap
--forcesafety, recovery retention, and--environmentrole
selection:riffdb capability bootstrapvalidates request semantics and
server connectivity before overwriting any--forceoutput, retains automatic
recovery documents (RDB-CAP001) onOutcomeUnknown, emits structured
json-v2and human diagnostics for local deployment/retention refusals, and
selects locked manifest roles viaapplication deploy --environment <ENV>. -
Primary-key membership without requiring a secondary index: RiffQL
many
queries whose complete primary key is constrained (==on partition/prefix
key fields andin $idson a primary-key field with ascendingorder by)
now compile to boundedQueryAccessKind::Pointplans within a single snapshot
when no declared secondary index matches, while continuing to prefer declared
covering indexes when present. -
Explicit
Set<T, MAX>bounds (1..=65,535) and<query>Allchunking
guarantees: Generated<query>All/<query>_all/<Query>AllSDK
helpers across TypeScript, Python, and Go enforce upfront total item bounds
(items.length <= maxPages * MAX_ITEMS) before issuing any RPC and
canonically deduplicate and sort input sets in the query'sorder by
direction (asc/descand canonical vsbinary_utf8_v1string collation). -
Minimal-identity
riffdb-driverdhandshakes, automatic reconnect, and
unified SDK ergonomics:riffdb-driverdresolves single-application and
single-role defaults from its configuration when optional identity hashes are
omitted (RIFFDB_DRIVER_SOCKET+RIFFDB_CREDENTIAL_FILE); TypeScript and Go
driver runtimes automatically reconnect on socket EOF/reset after a
riffdb-driverdrestart; Python addsconnect_from_env(); and TypeScript
generated clients accept both transport classes and factories while unifying
DriverApplicationTransportandDriverGeneratedApplicationTransport. -
CPython 3.11+ (
cp311-abi3) wheels: Prebuilt Python wheels now target the
stablecp311-abi3ABI (requires-python = ">=3.11"), supporting CPython
3.11, 3.12, 3.13, and 3.14 acrossx86_64andaarch64Linux (manylinux)
andarm64macOS. -
Contract bulk loop field access & operator CLI defaults: Contract
for item in input.itemsloops support direct field projection (item.field)
inside command expressions;riffdb tls issueadds--san-dnsand
--san-ip;riffdb capability bootstrap --operatorautomatically includes
configured server gRPC/MCP audiences;riffdb application deploydefaults
role credential lifetime to 30 days;durable_localoutbox defaults its
directory to<data_dir>/outboxwithRDB-LOG-0305diagnostics; and
multi-databaseriffdbdservers wait for every configured database to
complete recovery before serving readiness. -
Pre-decode transport admission and authentication: Both HTTP (
/mcp,
health/metrics) and gRPC (including 8 MiB command and 32 MiB administration
migration services) enforce TLS handshake concurrency limits, authenticate
bearer credentials, and bound concurrent inbound work before allocating or
decoding request bodies. -
Storage-verified saga step delegation and backup integrity: Multi-step
saga execution verifies retained step authority against authoritative storage
records (SagaStepAuthority) and re-validates policy on every step; backup
artifact validation always computes a full SHA-256 content digest rather than
consulting a sampled-edge cache. -
Bounded operator sockets, webhook deadlines, and protected CLI writes:
OperatorDriverSocketserves connections in bounded concurrent tasks that
propagate shutdown; outbox HTTP/HTTPS webhook delivery enforces a single
overall deadline across DNS resolution, TCP connect, TLS handshake, request
write, and response reading; and CLI capability inventory persistence refuses
symlinks and writes through mode-0600temporary files. -
Watch, search, and columnar performance: Idle watch stream reuse across
Rust, Python, and TypeScript clients; incremental tokenized-text index
checkpoint byte accounting; zero-copy ANN cache lookups;$O(N + k \log k)$
exact nearest-neighbor selection;$O(N \log N)$ live-query key validation;
chunked TypeScript frame buffering; and bounded columnar partition merges.
External ecosystem qualification covers one server/four databases with Better Auth,
OpenFGA, MLflow, and the synthetic todo application, including retained-state
restart and representative failure injection. Adapter candidate profile
migrations are explicit. The main repository runs product/SDK conformance and
contains no direct adapter-package imports or framework rehearsal dependency.
This is the v0.2.4 release of RiffDB. It
provides contract-first command execution, shared public transports, durable
outcomes, provenance, outbox intent, projection frontiers, native MCP, offline
maintenance, replicated availability, and crash recovery backed by the passing
18-phase release gate receipt at
release/evidence/deployable-application-alpha-v1.json.
Product Binaries
riffdbdriffdbriffdb-driverdriffdb-mcp
Comparison, fixture, conformance, and safety runners are not shipped products.
Compatibility
Public protocol, durable records, storage, contract IR, generated schema, MCP,
CLI output, backup manifest, and maintenance receipt formats are versioned.
This artifact carries release/durable-format-manifest-v1.json plus the exact
compatibility fixture inventory and release-pair table used to generate it.
The current identity is durable epoch 1, writer 5 (0.2.4). Downgrade is unsupported. See
docs/compatibility.md.
The manifest distinguishes the redb layout and each maintenance, migration,
and format-upgrade receipt family rather than treating coincident numeric
versions as interchangeable. Every supported edge names both source and target
release labels.
Daemon startup now compares the retained format marker before redb op...
RiffDB v0.2.3
RiffDB v0.2.3
Runtime Byte-Budgeted Pagination, Composable EAV Search, Rust Python Driver Socket, and CLI Bootstrap Safety (0.2.3)
v0.2.3 is a patch release in the 0.2.x series (durable epoch 1, writer 5)
that introduces runtime byte-budgeted cursor pagination, composable optional
EAV candidate search with joined sorting, a first-party Rust Unix driver socket
transport for the Python SDK, and CLI deployment/bootstrap hardening:
- Runtime byte-budgeted cursor pagination: Cursor-paginated
many ... after $cursorqueries projecting widestringorbytescolumns (>= 4,096
bytes, up to1,048,576bytes) are statically sized for a single row plus the
full worst-case static bytes of any sibling returned bindings (<= 4 MiB), and
dynamically terminate pages before exceeding the step's remaining response
byte budget while emitting a resume cursor. - Composable EAV candidate search & joined sorting:
candidatessources
supportwhen $param { ... }presence guards (including compound guard
bodies),in $setk-way merge sources, operational comparisons/prefixes, and
post-hydrationwherefilters; omitted optional clauses evaluate to the
intersection identity with fallback to a declared base source, non-contiguous
index prefixes fail closed, andorder by binding.field asc|desc nulls last
enforces complete helper populations without contaminating root continuations. - First-party Rust Python Unix driver socket (
connect_driver_socket,
connect_uri("unix://..."),connect_from_env):DriverSocketStatein
crates/riffdb-client-python-nativeimplementsriffdb-driverdUnix socket
framing (MAX_DRIVER_FRAME_BYTES= 8 MiB), strict handshake andrequest_id
correlation across both success andDriverResponse::Errorframes,
OutcomeUnknownclassification on any post-send transport/frame failure
during command execution, and explicitUnsupportedTransportOperationrefusal
on reactive methods before sending bytes. - CLI bootstrap
--forcesafety, recovery retention, and--environmentrole
selection:riffdb capability bootstrapvalidates request semantics and
server connectivity before overwriting any--forceoutput, retains automatic
recovery documents (RDB-CAP001) onOutcomeUnknown, emits structured
json-v2and human diagnostics for local deployment/retention refusals, and
selects locked manifest roles viaapplication deploy --environment <ENV>.
In addition, v0.2.3 retains all v0.2.2 and v0.2.1 capabilities:
-
Primary-key membership without requiring a secondary index: RiffQL
many
queries whose complete primary key is constrained (==on partition/prefix
key fields andin $idson a primary-key field with ascendingorder by)
now compile to boundedQueryAccessKind::Pointplans within a single snapshot
when no declared secondary index matches, while continuing to prefer declared
covering indexes when present. -
Explicit
Set<T, MAX>bounds (1..=65,535) and<query>Allchunking
guarantees: Generated<query>All/<query>_all/<Query>AllSDK
helpers across TypeScript, Python, and Go enforce upfront total item bounds
(items.length <= maxPages * MAX_ITEMS) before issuing any RPC and
canonically deduplicate and sort input sets in the query'sorder by
direction (asc/descand canonical vsbinary_utf8_v1string collation). -
Minimal-identity
riffdb-driverdhandshakes, automatic reconnect, and
unified SDK ergonomics:riffdb-driverdresolves single-application and
single-role defaults from its configuration when optional identity hashes are
omitted (RIFFDB_DRIVER_SOCKET+RIFFDB_CREDENTIAL_FILE); TypeScript and Go
driver runtimes automatically reconnect on socket EOF/reset after a
riffdb-driverdrestart; Python addsconnect_from_env(); and TypeScript
generated clients accept both transport classes and factories while unifying
DriverApplicationTransportandDriverGeneratedApplicationTransport. -
CPython 3.11+ (
cp311-abi3) wheels: Prebuilt Python wheels now target the
stablecp311-abi3ABI (requires-python = ">=3.11"), supporting CPython
3.11, 3.12, 3.13, and 3.14 acrossx86_64andaarch64Linux (manylinux)
andarm64macOS. -
Contract bulk loop field access & operator CLI defaults: Contract
for item in input.itemsloops support direct field projection (item.field)
inside command expressions;riffdb tls issueadds--san-dnsand
--san-ip;riffdb capability bootstrap --operatorautomatically includes
configured server gRPC/MCP audiences;riffdb application deploydefaults
role credential lifetime to 30 days;durable_localoutbox defaults its
directory to<data_dir>/outboxwithRDB-LOG-0305diagnostics; and
multi-databaseriffdbdservers wait for every configured database to
complete recovery before serving readiness. -
Pre-decode transport admission and authentication: Both HTTP (
/mcp,
health/metrics) and gRPC (including 8 MiB command and 32 MiB administration
migration services) enforce TLS handshake concurrency limits, authenticate
bearer credentials, and bound concurrent inbound work before allocating or
decoding request bodies. -
Storage-verified saga step delegation and backup integrity: Multi-step
saga execution verifies retained step authority against authoritative storage
records (SagaStepAuthority) and re-validates policy on every step; backup
artifact validation always computes a full SHA-256 content digest rather than
consulting a sampled-edge cache. -
Bounded operator sockets, webhook deadlines, and protected CLI writes:
OperatorDriverSocketserves connections in bounded concurrent tasks that
propagate shutdown; outbox HTTP/HTTPS webhook delivery enforces a single
overall deadline across DNS resolution, TCP connect, TLS handshake, request
write, and response reading; and CLI capability inventory persistence refuses
symlinks and writes through mode-0600temporary files. -
Watch, search, and columnar performance: Idle watch stream reuse across
Rust, Python, and TypeScript clients; incremental tokenized-text index
checkpoint byte accounting; zero-copy ANN cache lookups;$O(N + k \log k)$
exact nearest-neighbor selection;$O(N \log N)$ live-query key validation;
chunked TypeScript frame buffering; and bounded columnar partition merges.
External ecosystem qualification covers one server/four databases with Better Auth,
OpenFGA, MLflow, and the synthetic todo application, including retained-state
restart and representative failure injection. Adapter candidate profile
migrations are explicit. The main repository runs product/SDK conformance and
contains no direct adapter-package imports or framework rehearsal dependency.
This is the v0.2.3 release of RiffDB. It
provides contract-first command execution, shared public transports, durable
outcomes, provenance, outbox intent, projection frontiers, native MCP, offline
maintenance, replicated availability, and crash recovery backed by the passing
18-phase release gate receipt at
release/evidence/deployable-application-alpha-v1.json.
Product Binaries
riffdbdriffdbriffdb-driverdriffdb-mcp
Comparison, fixture, conformance, and safety runners are not shipped products.
Compatibility
Public protocol, durable records, storage, contract IR, generated schema, MCP,
CLI output, backup manifest, and maintenance receipt formats are versioned.
This artifact carries release/durable-format-manifest-v1.json plus the exact
compatibility fixture inventory and release-pair table used to generate it.
The current identity is durable epoch 1, writer 5 (0.2.3). Downgrade is unsupported. See
docs/compatibility.md.
The manifest distinguishes the redb layout and each maintenance, migration,
and format-upgrade receipt family rather than treating coincident numeric
versions as interchangeable. Every supported edge names both source and target
release labels.
Daemon startup now compares the retained format marker before redb open and
prints RDB-FORMAT-0101 with the sole safe action on mismatch. Operators can
run the same source-free check with riffdb storage preflight. The declared
same-epoch writer transitions to writer 5 are available only through the offline,
verified-backup-bound, restartable riffdb storage upgrade command. New
physical backups carry the exact format marker and compatible restore range;
legacy range-less backups require their source release.
Capability persistence preserves the original migration-only V2 schema and
uses V3+ for installation and operational authority. The reader contains one narrow recovery
case for the historical build that emitted the additive installation
field under V2's compact identity; new writes never reproduce that collision.
Offline Contract Migration
Offline migration supports exact direct-parent migration through additive, structural,
and key/ownership gates. The operator workflow is available only through the
shared gRPC administration service, Rust SDK, and CLI with dedicated
MigrateContract authority. It retains an immutable pre-migration backup,
publishes a fully validated same-filesystem stage atomically, fences predecessor
writes, and recovers or rolls back before readiness. MCP and application
drivers intentionally expose no migration operation.
Reactive Applications
RiffDB supports compiler-proved partitioned domain-event streams, bounded durable
consumers, live named queries, and contextual agent subscriptions. The
TicketDesk Application Source V4 example provides queue and detail watches
through an application-owned authenticated SSE relay and crash-safe generated
reaction helpers across Rust, TypeScript, Python, and MCP. Reactive delivery is
at least once and partition ordered; it is not raw CDC or exactly-once external
effect delivery.
Replicated Availability and Arc...
RiffDB v0.2.2
RiffDB v0.2.2
Developer Experience, Driver Reconnection, Python 3.11+ Wheels, and RiffQL Primary-Key Set Plans (0.2.2)
v0.2.2 is a patch release in the 0.2.x series (durable epoch 1, writer 5)
that improves developer onboarding, transport resilience, Python compatibility,
and RiffQL query planning and set chunking:
- Primary-key membership without requiring a secondary index: RiffQL
many
queries whose complete primary key is constrained (==on partition/prefix
key fields andin $idson a primary-key field with ascendingorder by)
now compile to boundedQueryAccessKind::Pointplans within a single snapshot
when no declared secondary index matches, while continuing to prefer declared
covering indexes when present. - Explicit
Set<T, MAX>bounds (1..=65,535) and<query>Allchunking
guarantees: Generated<query>All/<query>_all/<Query>AllSDK
helpers across TypeScript, Python, and Go enforce upfront total item bounds
(items.length <= maxPages * MAX_ITEMS) before issuing any RPC and
canonically deduplicate and sort input sets in the query'sorder by
direction (asc/descand canonical vsbinary_utf8_v1string collation). - Minimal-identity
riffdb-driverdhandshakes, automatic reconnect, and
unified SDK ergonomics:riffdb-driverdresolves single-application and
single-role defaults from its configuration when optional identity hashes are
omitted (RIFFDB_DRIVER_SOCKET+RIFFDB_CREDENTIAL_FILE); TypeScript and Go
driver runtimes automatically reconnect on socket EOF/reset after a
riffdb-driverdrestart; Python addsconnect_from_env(); and TypeScript
generated clients accept both transport classes and factories while unifying
DriverApplicationTransportandDriverGeneratedApplicationTransport. - CPython 3.11+ (
cp311-abi3) wheels: Prebuilt Python wheels now target the
stablecp311-abi3ABI (requires-python = ">=3.11"), supporting CPython
3.11, 3.12, 3.13, and 3.14 acrossx86_64andaarch64Linux (manylinux)
andarm64macOS. - Contract bulk loop field access & operator CLI defaults: Contract
for item in input.itemsloops support direct field projection (item.field)
inside command expressions;riffdb tls issueadds--san-dnsand
--san-ip;riffdb capability bootstrap --operatorautomatically includes
configured server gRPC/MCP audiences;riffdb application deploydefaults
role credential lifetime to 30 days;durable_localoutbox defaults its
directory to<data_dir>/outboxwithRDB-LOG-0305diagnostics; and
multi-databaseriffdbdservers wait for every configured database to
complete recovery before serving readiness.
In addition, v0.2.2 retains all v0.2.1 operational hardening, announcement
readiness, and performance capabilities:
-
Pre-decode transport admission and authentication: Both HTTP (
/mcp,
health/metrics) and gRPC (including 8 MiB command and 32 MiB administration
migration services) enforce TLS handshake concurrency limits, authenticate
bearer credentials, and bound concurrent inbound work before allocating or
decoding request bodies. -
Storage-verified saga step delegation and backup integrity: Multi-step
saga execution verifies retained step authority against authoritative storage
records (SagaStepAuthority) and re-validates policy on every step; backup
artifact validation always computes a full SHA-256 content digest rather than
consulting a sampled-edge cache. -
Bounded operator sockets, webhook deadlines, and protected CLI writes:
OperatorDriverSocketserves connections in bounded concurrent tasks that
propagate shutdown; outbox HTTP/HTTPS webhook delivery enforces a single
overall deadline across DNS resolution, TCP connect, TLS handshake, request
write, and response reading; and CLI capability inventory persistence refuses
symlinks and writes through mode-0600temporary files. -
Watch, search, and columnar performance: Idle watch stream reuse across
Rust, Python, and TypeScript clients; incremental tokenized-text index
checkpoint byte accounting; zero-copy ANN cache lookups;$O(N + k \log k)$
exact nearest-neighbor selection;$O(N \log N)$ live-query key validation;
chunked TypeScript frame buffering; and bounded columnar partition merges.
External ecosystem qualification covers one server/four databases with Better Auth,
OpenFGA, MLflow, and the synthetic todo application, including retained-state
restart and representative failure injection. Adapter candidate profile
migrations are explicit. The main repository runs product/SDK conformance and
contains no direct adapter-package imports or framework rehearsal dependency.
This is the v0.2.2 release of RiffDB. It
provides contract-first command execution, shared public transports, durable
outcomes, provenance, outbox intent, projection frontiers, native MCP, offline
maintenance, replicated availability, and crash recovery backed by the passing
18-phase release gate receipt at
release/evidence/deployable-application-alpha-v1.json.
Product Binaries
riffdbdriffdbriffdb-driverdriffdb-mcp
Comparison, fixture, conformance, and safety runners are not shipped products.
Compatibility
Public protocol, durable records, storage, contract IR, generated schema, MCP,
CLI output, backup manifest, and maintenance receipt formats are versioned.
This artifact carries release/durable-format-manifest-v1.json plus the exact
compatibility fixture inventory and release-pair table used to generate it.
The current identity is durable epoch 1, writer 5 (0.2.2). Downgrade is unsupported. See
docs/compatibility.md.
The manifest distinguishes the redb layout and each maintenance, migration,
and format-upgrade receipt family rather than treating coincident numeric
versions as interchangeable. Every supported edge names both source and target
release labels.
Daemon startup now compares the retained format marker before redb open and
prints RDB-FORMAT-0101 with the sole safe action on mismatch. Operators can
run the same source-free check with riffdb storage preflight. The declared
same-epoch writer transitions to writer 5 are available only through the offline,
verified-backup-bound, restartable riffdb storage upgrade command. New
physical backups carry the exact format marker and compatible restore range;
legacy range-less backups require their source release.
Capability persistence preserves the original migration-only V2 schema and
uses V3+ for installation and operational authority. The reader contains one narrow recovery
case for the historical build that emitted the additive installation
field under V2's compact identity; new writes never reproduce that collision.
Offline Contract Migration
Offline migration supports exact direct-parent migration through additive, structural,
and key/ownership gates. The operator workflow is available only through the
shared gRPC administration service, Rust SDK, and CLI with dedicated
MigrateContract authority. It retains an immutable pre-migration backup,
publishes a fully validated same-filesystem stage atomically, fences predecessor
writes, and recovers or rolls back before readiness. MCP and application
drivers intentionally expose no migration operation.
Reactive Applications
RiffDB supports compiler-proved partitioned domain-event streams, bounded durable
consumers, live named queries, and contextual agent subscriptions. The
TicketDesk Application Source V4 example provides queue and detail watches
through an application-owned authenticated SSE relay and crash-safe generated
reaction helpers across Rust, TypeScript, Python, and MCP. Reactive delivery is
at least once and partition ordered; it is not raw CDC or exactly-once external
effect delivery.
Replicated Availability and Archive Backup
riffdbd --mode follower provides authoritative-changelog shipping
(riffdb.changelog-frame/v3), gap-free resume, follower reads under the
existing Causal, Bounded, and Available freshness vocabulary, audited
follower registration and retirement with sequence hold budgets, quorum commit
durability and automatic failover (ADR-0337), explicit incarnation-fenced
primary promotion (riffdb follower fence-primary and riffdb follower promote),
and changelog-derived incremental archive backup and sequence-targeted restore
(riffdb storage restore-archive). Cascading followers and multi-primary writes
remain outside the 0.2.x scope.
Operational Search and Multi-Step Sagas
RiffQL named queries support typo-tolerant fuzzy BM25 (bm25_fuzzy), bounded
highlighted snippet extraction (snippet), English Porter stemming, and
reciprocal rank fusion (hybrid_rrf) across generated Rust, Go, TypeScript,
Python, and MCP surfaces (ADR-0338). Multi-step durable saga coordination
persists atomically through authoritative tables and V3 changelog records so
online backups and replicated followers retain complete saga state.
License
RiffDB is offered under either the MIT License or the Apache License, Version
2.0, at your option. The release bundle includes COPYRIGHT, LICENSE-MIT,
and LICENSE-APACHE.
Copyright © 2026 Kevin O'Shea and O'Shea & Sons, LLC.
Destructive Restore Warning
Restore preserves DatabaseId, advances the durable history_incarnation, and
may rewind both authoritative sequence spaces to the backup frontier. Clients
that send their observed incarnation receive a typed mismatch instead of
silently binding a destroyed-suffix observation to new history. Clients that
do not participate remain unvalidated; discard every post-frontier locator,
cursor, session, sequence expectation, authorization observation, and
idempotency assumption after destructive restore.
Evidence Qualification
- The product server uses redb. The isolated Fjall comparison fails the
unchanged semantic conformance profile, so its report contains ...
RiffDB v0.2.1
RiffDB v0.2.1
Operational Hardening, Announcement Readiness, and Performance (0.2.1)
v0.2.1 is a patch release in the 0.2.x series (durable epoch 1, writer 5)
that adds operational bootstrap presets, external deployment state, live driver
credential reload, multi-application riffdb-driverd multiplexing, one-line
SDK connection helpers, contract partial-update coalesce (coalesce), bulk
command revision fence inference, SDK query chunking, MCP object-root query
schemas, verified-TLS riffdb-mcp stdio bridging, cause-preserving
configuration and readiness diagnostics, opt-in CLI JSON v2, source-mapped
compiler diagnostics, offline version flags, structured asynchronous logging,
correlated OTLP request traces, and independent bounded logs/traces/metrics
delivery. JSON v1 and existing metrics contracts remain compatible. The product
archive includes riffdb-driverd; regenerate previously emitted driver
environments to obtain the correct symbolic role-definition hash.
In addition, v0.2.1 hardens transport admission, authentication, storage
backup verification, and query/watch execution:
-
Pre-decode transport admission and authentication: Both HTTP (
/mcp,
health/metrics) and gRPC (including 8 MiB command and 32 MiB administration
migration services) enforce TLS handshake concurrency limits, authenticate
bearer credentials, and bound concurrent inbound work before allocating or
decoding request bodies. -
Storage-verified saga step delegation and backup integrity: Multi-step
saga execution verifies retained step authority against authoritative storage
records (SagaStepAuthority) and re-validates policy on every step; backup
artifact validation always computes a full SHA-256 content digest rather than
consulting a sampled-edge cache. -
Bounded operator sockets, webhook deadlines, and protected CLI writes:
OperatorDriverSocketserves connections in bounded concurrent tasks that
propagate shutdown; outbox HTTP/HTTPS webhook delivery enforces a single
overall deadline across DNS resolution, TCP connect, TLS handshake, request
write, and response reading; and CLI capability inventory persistence refuses
symlinks and writes through mode-0600temporary files. -
Watch, search, and columnar performance: Idle watch stream reuse across
Rust, Python, and TypeScript clients; incremental tokenized-text index
checkpoint byte accounting; zero-copy ANN cache lookups;$O(N + k \log k)$
exact nearest-neighbor selection;$O(N \log N)$ live-query key validation;
chunked TypeScript frame buffering; and bounded columnar partition merges.
External ecosystem qualification covers one server/four databases with Better Auth,
OpenFGA, MLflow, and the synthetic todo application, including retained-state
restart and representative failure injection. Adapter candidate profile
migrations are explicit. The main repository runs product/SDK conformance and
contains no direct adapter-package imports or framework rehearsal dependency.
This is the v0.2.1 release of RiffDB. It
provides contract-first command execution, shared public transports, durable
outcomes, provenance, outbox intent, projection frontiers, native MCP, offline
maintenance, replicated availability, and crash recovery backed by the passing
18-phase release gate receipt at
release/evidence/deployable-application-alpha-v1.json.
Product Binaries
riffdbdriffdbriffdb-driverdriffdb-mcp
Comparison, fixture, conformance, and safety runners are not shipped products.
Compatibility
Public protocol, durable records, storage, contract IR, generated schema, MCP,
CLI output, backup manifest, and maintenance receipt formats are versioned.
This artifact carries release/durable-format-manifest-v1.json plus the exact
compatibility fixture inventory and release-pair table used to generate it.
The current identity is durable epoch 1, writer 5 (0.2.1). Downgrade is unsupported. See
docs/compatibility.md.
The manifest distinguishes the redb layout and each maintenance, migration,
and format-upgrade receipt family rather than treating coincident numeric
versions as interchangeable. Every supported edge names both source and target
release labels.
Daemon startup now compares the retained format marker before redb open and
prints RDB-FORMAT-0101 with the sole safe action on mismatch. Operators can
run the same source-free check with riffdb storage preflight. The declared
same-epoch writer transitions to writer 5 are available only through the offline,
verified-backup-bound, restartable riffdb storage upgrade command. New
physical backups carry the exact format marker and compatible restore range;
legacy range-less backups require their source release.
Capability persistence preserves the original migration-only V2 schema and
uses V3+ for installation and operational authority. The reader contains one narrow recovery
case for the historical build that emitted the additive installation
field under V2's compact identity; new writes never reproduce that collision.
Offline Contract Migration
Offline migration supports exact direct-parent migration through additive, structural,
and key/ownership gates. The operator workflow is available only through the
shared gRPC administration service, Rust SDK, and CLI with dedicated
MigrateContract authority. It retains an immutable pre-migration backup,
publishes a fully validated same-filesystem stage atomically, fences predecessor
writes, and recovers or rolls back before readiness. MCP and application
drivers intentionally expose no migration operation.
Reactive Applications
RiffDB supports compiler-proved partitioned domain-event streams, bounded durable
consumers, live named queries, and contextual agent subscriptions. The
TicketDesk Application Source V4 example provides queue and detail watches
through an application-owned authenticated SSE relay and crash-safe generated
reaction helpers across Rust, TypeScript, Python, and MCP. Reactive delivery is
at least once and partition ordered; it is not raw CDC or exactly-once external
effect delivery.
Replicated Availability and Archive Backup
riffdbd --mode follower provides authoritative-changelog shipping
(riffdb.changelog-frame/v3), gap-free resume, follower reads under the
existing Causal, Bounded, and Available freshness vocabulary, audited
follower registration and retirement with sequence hold budgets, quorum commit
durability and automatic failover (ADR-0337), explicit incarnation-fenced
primary promotion (riffdb follower fence-primary and riffdb follower promote),
and changelog-derived incremental archive backup and sequence-targeted restore
(riffdb storage restore-archive). Cascading followers and multi-primary writes
remain outside the 0.2.x scope.
Operational Search and Multi-Step Sagas
RiffQL named queries support typo-tolerant fuzzy BM25 (bm25_fuzzy), bounded
highlighted snippet extraction (snippet), English Porter stemming, and
reciprocal rank fusion (hybrid_rrf) across generated Rust, Go, TypeScript,
Python, and MCP surfaces (ADR-0338). Multi-step durable saga coordination
persists atomically through authoritative tables and V3 changelog records so
online backups and replicated followers retain complete saga state.
License
RiffDB is offered under either the MIT License or the Apache License, Version
2.0, at your option. The release bundle includes COPYRIGHT, LICENSE-MIT,
and LICENSE-APACHE.
Copyright © 2026 Kevin O'Shea and O'Shea & Sons, LLC.
Destructive Restore Warning
Restore preserves DatabaseId, advances the durable history_incarnation, and
may rewind both authoritative sequence spaces to the backup frontier. Clients
that send their observed incarnation receive a typed mismatch instead of
silently binding a destroyed-suffix observation to new history. Clients that
do not participate remain unvalidated; discard every post-frontier locator,
cursor, session, sequence expectation, authorization observation, and
idempotency assumption after destructive restore.
Evidence Qualification
- The product server uses redb. The isolated Fjall comparison fails the
unchanged semantic conformance profile, so its report contains no eligible
performance samples and this release makes no redb-versus-Fjall speed claim. - Published redb, canonical PostgreSQL-versus-public-RiffDB, and semantic
workload results are revision-specific. They carry their methodology, raw
samples, storage medium, durability mode, and checked report hashes. - Deliberately unsafe PostgreSQL counterexamples are correctness evidence only
and are excluded from every performance result. - Crash verification inventories 38 crash boundaries, executes the 18 required
process-matrix cases, consumes named owner-package evidence for the
remainder, and records zero production synchronization gaps. - Replication verification records the receipted six-criterion replication and
archive-restore acceptance campaign under
release/evidence/replication/replication-acceptance-v1.jsonand the
PERF-008emitter stability disclosure under
release/evidence/replication/perf-008-emitter-disclosure.md. - The bundle includes an installed-binary demo. It is distinct from the full
source-checkout acceptance run and uses no Cargo or test harness. - Release sign-off remains unsigned until the acceptance commands pass at the
release revision and a maintainer records the architecture-review decision.
See docs/architecture/DESIGN-DECISIONS.md and release/evidence/.
RiffDB v0.2.0
RiffDB v0.2.0
This is the v0.2.0 release of RiffDB. It
provides contract-first command execution, shared public transports, durable
outcomes, provenance, outbox intent, projection frontiers, native MCP, offline
maintenance, replicated availability, and crash recovery backed by the passing
18-phase release gate receipt at
release/evidence/deployable-application-alpha-v1.json.
Product Binaries
riffdbdriffdbriffdb-mcp
Comparison, fixture, conformance, and safety runners are not shipped products.
Compatibility
Public protocol, durable records, storage, contract IR, generated schema, MCP,
CLI output, backup manifest, and maintenance receipt formats are versioned.
This artifact carries release/durable-format-manifest-v1.json plus the exact
compatibility fixture inventory and release-pair table used to generate it.
The current identity is durable epoch 1, writer 5 (0.2.0). Downgrade is unsupported. See
docs/compatibility.md.
The manifest distinguishes the redb layout and each maintenance, migration,
and format-upgrade receipt family rather than treating coincident numeric
versions as interchangeable. Every supported edge names both source and target
release labels.
Daemon startup now compares the retained format marker before redb open and
prints RDB-FORMAT-0101 with the sole safe action on mismatch. Operators can
run the same source-free check with riffdb storage preflight. The declared
same-epoch writer transitions to writer 5 are available only through the offline,
verified-backup-bound, restartable riffdb storage upgrade command. New
physical backups carry the exact format marker and compatible restore range;
legacy range-less backups require their source release.
Capability persistence preserves the original migration-only V2 schema and
uses V3+ for installation and operational authority. The reader contains one narrow recovery
case for the historical build that emitted the additive installation
field under V2's compact identity; new writes never reproduce that collision.
Offline Contract Migration
Offline migration supports exact direct-parent migration through additive, structural,
and key/ownership gates. The operator workflow is available only through the
shared gRPC administration service, Rust SDK, and CLI with dedicated
MigrateContract authority. It retains an immutable pre-migration backup,
publishes a fully validated same-filesystem stage atomically, fences predecessor
writes, and recovers or rolls back before readiness. MCP and application
drivers intentionally expose no migration operation.
Reactive Applications
RiffDB supports compiler-proved partitioned domain-event streams, bounded durable
consumers, live named queries, and contextual agent subscriptions. The
TicketDesk Application Source V4 example provides queue and detail watches
through an application-owned authenticated SSE relay and crash-safe generated
reaction helpers across Rust, TypeScript, Python, and MCP. Reactive delivery is
at least once and partition ordered; it is not raw CDC or exactly-once external
effect delivery.
Replicated Availability and Archive Backup
riffdbd --mode follower provides authoritative-changelog shipping
(riffdb.changelog-frame/v3), gap-free resume, follower reads under the
existing Causal, Bounded, and Available freshness vocabulary, audited
follower registration and retirement with sequence hold budgets, quorum commit
durability and automatic failover (ADR-0337), explicit incarnation-fenced
primary promotion (riffdb follower fence-primary and riffdb follower promote),
and changelog-derived incremental archive backup and sequence-targeted restore
(riffdb storage restore-archive). Cascading followers and multi-primary writes
remain outside the 0.2.x scope.
Operational Search and Multi-Step Sagas
RiffQL named queries support typo-tolerant fuzzy BM25 (bm25_fuzzy), bounded
highlighted snippet extraction (snippet), English Porter stemming, and
reciprocal rank fusion (hybrid_rrf) across generated Rust, Go, TypeScript,
Python, and MCP surfaces (ADR-0338). Multi-step durable saga coordination
persists atomically through authoritative tables and V3 changelog records so
online backups and replicated followers retain complete saga state.
License
RiffDB is offered under either the MIT License or the Apache License, Version
2.0, at your option. The release bundle includes COPYRIGHT, LICENSE-MIT,
and LICENSE-APACHE.
Copyright © 2026 Kevin O'Shea and O'Shea & Sons, LLC.
Destructive Restore Warning
Restore preserves DatabaseId, advances the durable history_incarnation, and
may rewind both authoritative sequence spaces to the backup frontier. Clients
that send their observed incarnation receive a typed mismatch instead of
silently binding a destroyed-suffix observation to new history. Clients that
do not participate remain unvalidated; discard every post-frontier locator,
cursor, session, sequence expectation, authorization observation, and
idempotency assumption after destructive restore.
Evidence Qualification
- The product server uses redb. The isolated Fjall comparison fails the
unchanged semantic conformance profile, so its report contains no eligible
performance samples and this release makes no redb-versus-Fjall speed claim. - Published redb, canonical PostgreSQL-versus-public-RiffDB, and semantic
workload results are revision-specific. They carry their methodology, raw
samples, storage medium, durability mode, and checked report hashes. - Deliberately unsafe PostgreSQL counterexamples are correctness evidence only
and are excluded from every performance result. - Crash verification inventories 38 crash boundaries, executes the 18 required
process-matrix cases, consumes named owner-package evidence for the
remainder, and records zero production synchronization gaps. - Replication verification records the receipted six-criterion replication and
archive-restore acceptance campaign under
release/evidence/replication/replication-acceptance-v1.jsonand the
PERF-008emitter stability disclosure under
release/evidence/replication/perf-008-emitter-disclosure.md. - The bundle includes an installed-binary demo. It is distinct from the full
source-checkout acceptance run and uses no Cargo or test harness. - Release sign-off remains unsigned until the acceptance commands pass at the
release revision and a maintainer records the architecture-review decision.
See docs/architecture/DESIGN-DECISIONS.md and release/evidence/.
RiffDB v0.1.0
RiffDB v0.1.0
This is the v0.1.0 release of RiffDB. It
provides contract-first command execution, shared public transports, durable
outcomes, provenance, outbox intent, projection frontiers, native MCP, offline
maintenance, replicated availability, and crash recovery backed by the passing
18-phase release gate receipt at
release/evidence/deployable-application-alpha-v1.json.
Product Binaries
riffdbdriffdbriffdb-mcp
Comparison, fixture, conformance, and safety runners are not shipped products.
Compatibility
Public protocol, durable records, storage, contract IR, generated schema, MCP,
CLI output, backup manifest, and maintenance receipt formats are versioned.
This artifact carries release/durable-format-manifest-v1.json plus the exact
compatibility fixture inventory and release-pair table used to generate it.
The current identity is durable epoch 1, writer 4 (0.1.0). Downgrade is unsupported. See
docs/compatibility.md.
The manifest distinguishes the redb layout and each maintenance, migration,
and format-upgrade receipt family rather than treating coincident numeric
versions as interchangeable. Every supported edge names both source and target
release labels.
Daemon startup now compares the retained format marker before redb open and
prints RDB-FORMAT-0101 with the sole safe action on mismatch. Operators can
run the same source-free check with riffdb storage preflight. The declared
same-epoch writer transitions to writer 4 are available only through the offline,
verified-backup-bound, restartable riffdb storage upgrade command. New
physical backups carry the exact format marker and compatible restore range;
legacy range-less backups require their source release.
Capability persistence preserves the original migration-only V2 schema and
uses V3+ for installation and operational authority. The reader contains one narrow recovery
case for the historical build that emitted the additive installation
field under V2's compact identity; new writes never reproduce that collision.
Offline Contract Migration
Offline migration supports exact direct-parent migration through additive, structural,
and key/ownership gates. The operator workflow is available only through the
shared gRPC administration service, Rust SDK, and CLI with dedicated
MigrateContract authority. It retains an immutable pre-migration backup,
publishes a fully validated same-filesystem stage atomically, fences predecessor
writes, and recovers or rolls back before readiness. MCP and application
drivers intentionally expose no migration operation.
Reactive Applications
RiffDB supports compiler-proved partitioned domain-event streams, bounded durable
consumers, live named queries, and contextual agent subscriptions. The
TicketDesk Application Source V4 example provides queue and detail watches
through an application-owned authenticated SSE relay and crash-safe generated
reaction helpers across Rust, TypeScript, Python, and MCP. Reactive delivery is
at least once and partition ordered; it is not raw CDC or exactly-once external
effect delivery.
Replicated Availability and Archive Backup
riffdbd --mode follower provides asynchronous authoritative-changelog
shipping (riffdb.changelog-frame/v3), gap-free resume, follower reads under
the existing Causal, Bounded, and Available freshness vocabulary,
audited follower registration and retirement with sequence hold budgets,
explicit incarnation-fenced primary promotion (riffdb follower fence-primary
and riffdb follower promote), and changelog-derived incremental archive
backup and sequence-targeted restore (riffdb storage restore-archive).
Single-node-only availability is retired; quorum durability, automatic
failover, cascading followers, and multi-primary writes are outside the
0.1.x scope.
License
RiffDB is offered under either the MIT License or the Apache License, Version
2.0, at your option. The release bundle includes COPYRIGHT, LICENSE-MIT,
and LICENSE-APACHE.
Copyright © 2026 Kevin O'Shea and O'Shea & Sons, LLC.
Destructive Restore Warning
Restore preserves DatabaseId, advances the durable history_incarnation, and
may rewind both authoritative sequence spaces to the backup frontier. Clients
that send their observed incarnation receive a typed mismatch instead of
silently binding a destroyed-suffix observation to new history. Clients that
do not participate remain unvalidated; discard every post-frontier locator,
cursor, session, sequence expectation, authorization observation, and
idempotency assumption after destructive restore.
Evidence Qualification
- The product server uses redb. The isolated Fjall comparison fails the
unchanged semantic conformance profile, so its report contains no eligible
performance samples and this release makes no redb-versus-Fjall speed claim. - Published redb, canonical PostgreSQL-versus-public-RiffDB, and semantic
workload results are revision-specific. They carry their methodology, raw
samples, storage medium, durability mode, and checked report hashes. - Deliberately unsafe PostgreSQL counterexamples are correctness evidence only
and are excluded from every performance result. - Crash verification inventories 38 crash boundaries, executes the 18 required
process-matrix cases, consumes named owner-package evidence for the
remainder, and records zero production synchronization gaps. - Replication verification records the receipted six-criterion replication and
archive-restore acceptance campaign under
release/evidence/replication/replication-acceptance-v1.jsonand the
PERF-008emitter stability disclosure under
release/evidence/replication/perf-008-emitter-disclosure.md. - The bundle includes an installed-binary demo. It is distinct from the full
source-checkout acceptance run and uses no Cargo or test harness. - Release sign-off remains unsigned until the acceptance commands pass at the
release revision and a maintainer records the architecture-review decision.
See docs/known-limitations.md and release/evidence/.