feat(v2): --dag flag wires v2 DAG engine end-to-end, bump to 2.0.3#8
Open
Eth-Interchained wants to merge 1 commit into
Open
feat(v2): --dag flag wires v2 DAG engine end-to-end, bump to 2.0.3#8Eth-Interchained wants to merge 1 commit into
Eth-Interchained wants to merge 1 commit into
Conversation
- nedbd --dag (or NEDBD_DAG=1): exec into nedbd-v2 Rust binary, replacing
the v1 AOF process entirely — same port/data/token env vars, no Python overhead
- v2 Rust binary bundled into the Python wheel as nedbd-v2 (built by CI)
- Closed all TODO flags in rust/nedb-v2:
- Real tombstone deletes: Db::delete() writes tombstone node + removes id
from IdIndex so queries/list() never return deleted docs
- Real BLAKE2b Merkle head: db_seq_head() hashes all current id-index
hashes sorted chained with seq — tamper-evident changes on every write
- DEK passthrough to migrate_if_needed() so encrypted v1 AOFs convert
- Fix parking_lot dep (0.12 not non-existent 1.x)
- rust/nedb-v2 added to rust/ workspace members with Cargo.lock committed
- Bump all version strings to 2.0.3 across pyproject __init__ package.json
rust workspace Cargo.toml and rust/nedb-v2/Cargo.toml
- CI release.yml: build nedbd-v2 binary per platform stage into Python wheel
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nedbd --dag(orNEDBD_DAG=1): replaces the process with the v2 Rust DAG binary viaos.execv— same port/data/token env vars, zero Python overhead. v1 AOF engine untouched.python/nedb/nedbd-v2before maturin —pip install nedb-engineships both engines.rust/nedb-v2/:Db::delete()writes a tombstone node + removes the id fromIdIndexso queries/list never return deleted docsdb_seq_head()hashes all sorted id-index hashes chained with seq — tamper-evident, changes on every writemigrate_if_needed()so encrypted v1 AOFs convert correctlyparking_lotdep:0.12(correct) not1(non-existent on crates.io)rust/nedb-v2added to Rust workspace withCargo.lockcommitted for reproducible CI2.0.3: pyproject.toml, init.py, package.json, rust/Cargo.toml, rust/crates/nedb-py/pyproject.toml, rust/nedb-v2/Cargo.toml — all in sync, valid for both PyPI and npm (stable, no normalization needed)Usage after merge
Engine impact
Tests run
Follow-up
NEDBD_DAG=1 nedbd --data /fresh/data-dirafter upgrade