Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/cortex-rs # cortex-rs Pure compiled native Rust memory engine with vector search and SQLite WAL Brought by drakestapleton Unfinished: not checked yet There is no published receipt of a rebuild from its source yet. What a receipt is Get this repository Git over HTTPS `git clone --no-checkout https://interplane.io/projects/cortex-rs/repo.git cortex-rs && git -C cortex-rs checkout --detach aba1b8757be74a064f8aa6c4d7e40e0e46019298` Source archive of `aba1b8757be74a064f8aa6c4d7e40e0e46019298` Download ZIP · tar.gz Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers README.md

AIEN Sovereign Intelligence

# cortex-rs CI License Security Standard Mission High-performance native Rust memory engine with SQLite FTS5 lexical recall, bi-encoder vector similarity, and hardware-secured loopback isolation. ## Overview `cortex-rs` is the canonical memory engine powering Atlas and the AIEN sovereign agent stack. Written entirely in native Rust (Axum), it replaces heavy interpreted memory servers with sub-millisecond lexical and semantic retrieval. It provides hybrid search combining BM25 full-text indexing with ONNX vector embeddings, enabling autonomous agents to recall procedures, lessons, and architectural discoveries across thousands of turns without context collapse. ## Features - Sub-Millisecond Retrieval: Pure compiled Rust using SQLite WAL mode and FTS5 inverted indexes with typical latency <1ms. - Hybrid Semantic Recall: Direct integration with local bi-encoder vector servers for cosine similarity and dense embedding scoring. - Hardware Vault Security: Zero plaintext secrets. All authentication uses bearer token validation bound to loopback interfaces (`127.0.0.1`). - Graph & Provenance Traversal: Bidirectional relationship edges (`cortex_claims`, `cortex_entities`) for deep contextual graph traversal. - Unslop Standard: Enforces clean technical facts without AI filler or hallucinated abstractions. ## Quick Start ### Build & Run ``` # Compile release binary cargo build --release # Run Cortex-RS on local loopback ./target/release/cortex-rs --port 18080 --db-path ~/.config/cortex/cortex.db ``` ### Health Check ``` curl http://127.0.0.1:18080/health # {"runtime":"native-arm64-rust","service":"cortex-rs","space":"atlas-memory","status":"ok","version":"0.1.0"} ``` ### Hybrid Query ``` curl -G http://127.0.0.1:18080/api/cortex/search \ --data-urlencode "q=tpm vault" \ -H "Authorization: Bearer " ``` ## For developers: proof and records The full record of this project. Words that are used only here are explained once: ID The project's permanent id on Interplane: the SHA-256 of its first signed record. This one is `git:60959db20f030130ea98eae0a39a3ee0abf46e10024b1837f7fc1fec2cb746ff`. Its old id, kept only so that old links still work: `z2VKEz9qeswAC7EGhPaTvDRirkXKf`. Owner The key that signs every record of the project. This forge lists the project under drakestapleton; its key is `SHA256:qg3vxoE9ul3Cgk5heosQvPmO9pqIJNsdcsGJ2cHghTs`. Refs and HEAD Refs are the names that point at versions: branches and tags. HEAD is the version a fresh copy starts from, the newest commit of the default branch. Patch A proposed change, reviewed before it is merged. This forge does not show proposed changes from its own store yet. The list is under Proposed changes . Receipt A public record that someone checked a claim, with the fingerprint of its evidence file. The state at the top of this page is read from the list at interplane.io/receipts . This project has no receipt in that list yet. Clones and fetches over HTTPS: 0 by visitors (git smart-HTTP `info/refs` requests answered 200 in the front-door download log; our own addresses and bots left out; since 2026-11-08) · not measured `git-upload-pack` requests from all clients (the source of this count is retired) Downloads: 0 by visitors (0 source archives, 0 release assets; forged access log; our own addresses left out; since 2026-11-07) commit `aba1b8757be74a064f8aa6c4d7e40e0e46019298` Branches Tags History `aba1b87` om: land pure-Omega Cortex server and SQLite importer superseding Rust src/ Drake Stapleton committed 2026-11-22 ``` .github/ assets/ om/ src/ .gitignore 136 AGENTS.md 3973 AGENT_CODE_OF_CONDUCT.md 3493 CONSTITUTION.md 8401 CONTRIBUTING.md 1513 Cargo.toml 957 LICENSE 17335 README.md 2545 SECURITY.md 1333 agent.json 601 llms.txt 1379 ``` Every record: History (commits) · Branches · Tags · Releases, with the SHA-256 of each download · Patches · Issues · This project as JSON