cortex
aien-dev/cortex
Brought by drakestapleton
cortex / DEPENDENCIES.md
| 1 | # Dependencies |
| 2 | |
| 3 | Versions are the ones the committed evidence was produced with (Ubuntu 24.04, Linux aarch64). |
| 4 | |
| 5 | ## Runtime: none |
| 6 | |
| 7 | `build/cortex` and `build/cortex-import` are statically linked aarch64 ELF files produced by the |
| 8 | Omega compiler. They use Linux system calls only: no libc, no SQLite, no TLS library, no runtime. |
| 9 | All server and importer logic (HTTP/1.1, JSON and float text, FTS5 tokenizer and bm25, LIKE, the |
| 10 | append-only log, the SQLite reader) is first-party Omega in `om/`. |
| 11 | |
| 12 | ## Build path (host programs that remain) |
| 13 | |
| 14 | | program | version | what it does here | Omega successor | |
| 15 | |---|---|---|---| |
| 16 | | omc | omega-mv rad:z6do9WDBhuSnvopDkgFdFr1yWA62 `seed/out/omc` at the revision and sha256 written in `PIN` (until 2026-11-11: aien-dev/omega-mv 91b3c932, sha256 189ada82…3b54) | the compiler (itself Omega) for the server, the importer, every test unit, `tools/pageunit` and `tools/pincheck.om`; one pin, read from `PIN` by `tools/omc.sh` | none (the toolchain) | |
| 17 | | POSIX sh (dash) | 0.5.12 (Ubuntu dash, `/bin/sh`) | `build.sh` concatenates the modules into one unit, calls omc, writes SHA256SUMS | an Omega build driver (unit assembly and hashing in `.om`); not written yet | |
| 18 | | coreutils (`cat`, `sha256sum`, `chmod`, `mv`) | 9.4 | used by `build.sh` | same Omega build driver | |
| 19 | | git | 2.43.0 | `tools/omc.sh` reads the pinned omc out of an omega-mv clone or Radicle storage; `build.sh` lists the tracked files for `tools/pincheck.om` | none needed: verification oracle tier (pin check against a hash) | |
| 20 | |
| 21 | ## Migration path (one-time, at cutover) |
| 22 | |
| 23 | | program | version | what it does here | Omega successor | |
| 24 | |---|---|---|---| |
| 25 | | sqlite3 CLI | 3.45.1 | `.backup` takes a consistent read-only snapshot of a live cortex-rs database before `cortex-import` reads it | `cortex-import` reading the live file under SQLite's WAL read-lock protocol; until then the snapshot step stays a host step | |
| 26 | |
| 27 | ## Verification only (oracles and harness glue; never in the build or production path) |
| 28 | |
| 29 | | program | version | used by | |
| 30 | |---|---|---| |
| 31 | | cortex-rs | 0.1.0, live binary sha256 91ccba94…98afe (a copy is kept on the build host; the live service there moved to a newer build with a different database schema, so the gates use the 0.1.0 copy through `CORTEX_ORACLE`) | parity gate and load test (the oracle) | |
| 32 | | sqlite3 CLI | 3.45.1 | parity/load copies (`.backup`), corpus extraction (`tests/parity/gen.sh`), importer oracle (`tests/import/oracle.sh`) | |
| 33 | | curl | 8.5.0 | readiness probes in the parity, load and brain scripts | |
| 34 | | awk (GNU Awk) | 5.2.1 | corpus slicing, report counting in the scripts | |
| 35 | | sed, find, sort, xargs, sha256sum | coreutils 9.4, findutils 4.9.0, GNU sed 4.9 | `tests/brain/run.sh`: the two hand corrections of exported files and the export tree hash | |
| 36 | | bash | 5.2.21 | `tests/json/run.sh` | |
| 37 | | gcc + SQLite amalgamation | gcc 13.3.0; sqlite3.c of libsqlite3-sys 0.28.0 (SQLite 3.45.0) | FTS5/bm25/LIKE differential oracle (`tests/fts/oracle.c`) | |
| 38 | | glibc libm | Ubuntu 2.39 | `log` oracle in the FTS differentials | |
| 39 | | python3 | 3.12.3 | independent WAL/record parsers and CRC-32C reference (`tests/import`), corpus and table generators (`tests/json`, `tests/fts`) | |
| 40 | | rustc / cargo | 1.98.1 (`--offline`); serde_json 1.0.151, serde_path_to_error 0.1.20, ryu 1.0.23, zmij 1.0.23, chrono 0.4.45, uuid 1.26.1 | JSON and float-text differential oracle (`tests/json/oracle/`) | |
| 41 | | Wolfram Language evaluator | — | latency statistics in `evidence/load/stats.txt` and `evidence/brain/stats.txt`, day counts of the alert boundary cases (queries quoted there) | |
| 42 | |
| 43 | The parity comparator and request driver (`tests/parity/pcmp.om`, `pdrive.om`), the corpus |
| 44 | expander (`gen.om`) and the Brain import-request generator (`tests/brain/mkimp.om`) are Omega. |