Jev Engine is a Rust command-line prototype that stores documents in SQLite and reuses a decision model’s answers when the same query, document, and predicate appear again. It can score every document in a scope or use SQLite FTS5 BM25 to select a bounded set of candidates first.
With Rust 1.91.1, a C compiler for bundled SQLite, and Cargo installed:
git clone https://github.com/scrungus/jev-engine.git
cd jev-engine
cargo build --release --locked
cargo test --release --locked
echo '{"op":"upsert","scope":"demo","id":"1","text":"The box contains a key."}' | ./target/release/jev-engine demo.sqlite
echo '{"op":"stats","scope":"demo"}' | ./target/release/jev-engine demo.sqliteThe second command returns {"documents":1,"relations":0}. These operations need no model. The CLI accepts one JSON request per invocation and reopens the database named on its command line.
Scoring requires a separately provisioned Ollaya service with the pinned Winnow E4B model listening on loopback port 11435. In the scorer environment, provide /usr/bin/python3 and mount engine_adapter.py and trial.py read-only at /code/engine_adapter.py and /code/trial.py. Verify the installed model against the manifest fingerprint in the adapter before use.
echo '{"op":"search","scope":"demo","query":"There is a key in the box.","predicate":"is supported by","top_k":1}' | ./target/release/jev-engine demo.sqliteRun it twice and inspect calls and hits. The cache key includes scope, ordered inputs, predicate, context, model fingerprint and output schema. Both yes and no decisions can be reused. A failed scorer request rolls back the transaction. For a lexical shortlist, add "mode":"bm25","candidate_budget":10; ranking then covers only those candidates. Retrieval quality and speed depend on the scorer and workload.
The fault-injection harness exercises the actual CLI with a deterministic adapter, including a scorer failure, malformed output, interrupted writes, and restart. Run it in a disposable Linux environment with a private writable /tmp, Python 3 at /usr/bin/python3, the compiled executable at /code/jev-engine, and fixture_adapter.py at /code/engine_adapter.py. Invoke python3 tests/packaged.py from the source root.
The engine source, lockfile, adapter, tests, and reference checksum were extracted from the original prototype commit. The checksum identifies the previously tested static Linux x86-64 binary built with the Rust image rust@sha256:45c1c35cd364b8055e9e86f8ecd3e8c874b2dcb658d8a4f94b5d111aa0d651a2. Other toolchains and build paths can produce different executable hashes.