Public Allen: host dependencies and their Omega successors
First-party code belongs in seeded Omega. Everything below that is not .om
is a recorded host dependency: what it does, why it is not .om yet, the .om
program that replaces it, and the Omega feature that blocks the replacement.
Native socket host words exist on omega-mv main; the bounded HTTP/JSON libraries on top of
them are owned by OmegaNet in aien-dev/omega-mv#788 (pending), which explicitly excludes TLS;
the TLS 1.3 client in seeded .om is owned by OmegaTLS; file and process host words already
exist (OMEGESE.md section 10, native host extension).
| Program | Language, version | What it does | Why not .om yet | .om successor | Blocking Omega feature |
|---|---|---|---|---|---|
allen_chat.py (gateway, /opt/allen-chat) | CPython 3.12.3, stdlib only | HTTP/1.1 server on the tailnet, SSE relay to 18091, rate limits, queue, launches the compile sandbox, writes spool and contact drops | Needs a listening socket, an HTTP client to 18091, threads or poll, JSON in and out | allen-gw.om: one-process poll loop, fixed-shape JSON for the six routes | Socket/accept/poll host words and HTTP framing (omega-mv#788); JSON parse/emit library |
allen_spool.py (shared validation) | CPython 3.12.3, stdlib (re, json, hashlib) | Validates confirmed issues/projects (slug, filenames, sizes, text-only, secret shapes, external loads), canonical id, atomic spool write, status read | Regular expressions and JSON; used by both Python programs | spool.om: byte-level validators (no regex needed for these fixed rules), sha256 in Omega (existing sha256 core), fixed-schema JSON | JSON library; Unicode code point walk over UTF-8 (byte loops exist) |
allen_build.py (shared build-loop rules) and allen_projects.py (gateway module) | CPython 3.12.3, stdlib (re, hmac, hashlib, json, html) | Handles (<name>-<HMAC tag> from the visitor key, anon-<HMAC tag> from a claim code), server-side ownership check on every save/publish, file allowlist and caps, meta.json, routes projects/{handle,me,save,publish} and gallery, Drake's console approve/decline list | Same process as the gateway (and imported by the pusher); regular expressions, HMAC and JSON | build.om inside allen-gw.om: byte-level validators, HMAC-SHA256 from the existing Omega sha256 core, fixed-schema JSON | JSON library and the gateway's socket words (omega-mv#788) |
.github/check_projects.py in aien-dev/omega-projects (CI, GitHub-hosted runner) | CPython 3 from the runner image, stdlib; plain git | Second, independent check of every pull request to main: path and file allowlist, caps, external loads, secret and personal-data scan, meta.json shape | Runs on GitHub's runner, which has no pinned omc; no actions are allowed in that repository | check-projects.om built by the pinned omc and run as a static binary on the runner | An arm64-or-x86_64 static omc artifact the runner can fetch without actions (release asset) |
catalog.py (/opt/allen-catalog, timer) | CPython 3.12.3, stdlib | Builds the public catalog from the unauthenticated GitHub API, raw READMEs, git ls-remote and seo.rs | HTTPS client and JSON | catalog.om | TLS 1.3 client in seeded .om (owner: OmegaTLS) + HTTP/JSON (omega-mv #788, OmegaNet) |
omega_projects_pusher.py (/opt/omega-projects-pusher) | CPython 3.12.3, stdlib | Re-validates spool items, scrubs emails/phones, files one issue, commits a save to u/<handle>, commits a publish to p/<handle>/<project> and opens or reuses its PR to main, closes a PR Drake declined, writes the open-request/gallery index; scoped fine-grained token, request guard pins every write to those refs and to projects/<handle>/<project>/ | HTTPS client to api.github.com and JSON | pusher.om | TLS 1.3 client in seeded .om (owner: OmegaTLS) + HTTP/JSON (omega-mv #788, OmegaNet) |
Console listener (inside allen_chat.py, 100.64.0.2:18112) | CPython 3.12.3, stdlib (http.server, html, hmac, hashlib) | Drake's tailnet-only console: token login (only sha256 held), HttpOnly SameSite=Strict 12 h cookie, CSRF on POSTs, relay items, live sessions with transcript, reply as event: human, join/hand back, availability in presence.json; serves /console.js (transcript poll) and /console.css | Same process as the gateway; needs a listening socket and HTML escaping | part of allen-gw.om: second listener, fixed-template HTML with a byte escaper, constant-time compare in Omega | Socket/accept/poll host words and HTTP framing (omega-mv#788); sha256 exists in Omega |
allen_relay_mailer.py (/opt/allen-relay, user allen-relay, started by /opt/allen-relay/start via setpriv, no systemd unit) | CPython 3.12.3, stdlib (smtplib, ssl, email) | Polls /var/lib/allen-chat/relay-drop every 2 s, re-validates with allen_spool.validate_relay_record, sends one mail per item from aien@aienos.com to drake@aienos.com only (hardcoded) over SMTPS to mail.gandi.net:465, global cap 30/day persisted, deletes after send, backoff retry; disabled Telegram hook (TELEGRAM_BOT_TOKEN, absent) | Written before the Omega TLS client existed; the Gandi password stays in memory (handed over on stdin from atlas-vault by the root starter) | relay-mailer.om: directory poll, fixed-schema JSON re-validation, RFC 5322 text composer, SMTP dialogue over om/tls (template: om/tls/test/tls/client.om mode smtp) | TLS no longer blocks: aien-dev/omega-mv #813 merged as 705c0f01 (port 465 dialogue byte-identical to Python ssl against mail.gandi.net). Still needed: JSON parse for the drop files (OmegaNet json.om), a directory-listing host word, base64 for SMTP AUTH |
allen_contacts_ingest.om (/opt/allen-contacts/allen-contacts-ingest) | seeded Omega, omc sha256 befb8199...8a1d (omega-mv 3364a1df) | Production contact ingest (introduce, forget, forget_visitor) | n/a: it is .om; byte-identical to the Python oracle on the shared fixtures (contacts/PARITY-RECEIPT.log) | done | flock host word in aien-dev/omega-mv#805 (queued with OmegaNext) (the ingest and CLI lock with an atomic makedir of .lock.d instead) |
allen_contacts_ingest.py | CPython 3.12.3 | Parity oracle and the CLI's library only | Verification oracle | n/a | n/a |
allen-contacts CLI (/usr/local/bin/allen-contacts) | seeded Omega (same shared lib as the ingest) | Drake's list/show/delete over the private store; re-execs through sudo -u allen-contacts | n/a: it is .om; 36/36 cases byte-identical to the Python CLI oracle (kept off PATH), 3/3 mutants caught (~/handoffs/allen-chat/contacts/) | done | flock host word: aien-dev/omega-mv#805 (keyword 197, OmegaNext's host batch); until it merges the lock is an atomic makedir |
cortex-visitors (/opt/cortex-visitors/cortex-rs, 127.0.0.1:18096) | Rust, cortex-rs 0.1.0 (Axum + SQLite FTS5), byte copy of ~/.local/bin/cortex-rs, sha256 91ccba9403601ed4d4b4c762dd489fd9b7de58d4b0017e44102005eb51398afe, BuildID 8daee336b6e69c90cd07f08ef80369669c3c89db (source: archived aien-dev/cortex-rs, canonical aien-sovereign-core crates/cortex-rs) | Separate Cortex instance holding only public visitors' memories (space v-<vid>), own bearer token, loopback only, no embedding encoder (URL points at closed 127.0.0.1:9), started by /opt/cortex-visitors/start as user cortex-visitors (no systemd unit) | Cortex is being rewritten in Omega (aien-dev/cortex, agent CortexOmega); cortex-rs 0.1.0 has one token per instance and no hard delete, so isolation is a second process and forget = overwrite + retract + VACUUM on start | aien-dev/cortex (Omega Cortex) in parity mode, with per-space tokens and delete/delete-space write kinds | Socket/HTTP host words (omega-mv#788), JSON, an Omega storage/index layer replacing SQLite FTS5 |
allen_memory.py (gateway module) | CPython 3.12.3, stdlib (urllib, json, difflib) | Visitor memory client: recall/remember (dedupe, cap 40)/forget against cortex-visitors | Imported by the Python gateway; HTTP client + JSON | part of allen-gw.om | TLS-less loopback HTTP client words and JSON (omega-mv#788) |
allen_speed.py (gateway module) and gen_answers.py (offline answer generator) | CPython 3.12.3, stdlib (json, re, hashlib, importlib) | Prompt layout (byte-stable system prefix, per-turn repo and lesson cards via the catalog's retrieve.py), answer cache (normalized/content-word match, sha256 keys over prompt+catalog and stable cards, regeneration), static greeting replies, token-sized streaming of cached text | Imported by the Python gateway; JSON and regular expressions over visitor text | part of allen-gw.om: fixed tables for the static forms, a byte-level normalizer and word-set compare (no regex needed), sha256 from the existing Omega core | JSON parse/emit library and the gateway's socket words (omega-mv#788) |
allen_infer.py (gateway module and the bench CLI behind "run it on your own GPU") | CPython 3.12.3, stdlib (http.client, json, hmac, threading, queue) | Speed test routes infer, infer-info, infer-verify: FIFO admission (4 test rows, 2 rows kept for chat, heavy tests alone and only while no chat runs), per-visitor limits, cold-prefill nonce, gateway-side timing, HMAC on shared results; the same presets and measure() as a CLI for any OpenAI-compatible server | Imported by the Python gateway; HTTP client streaming, JSON and threads | part of allen-gw.om: fixed preset table, byte-level SSE parse, HMAC-SHA256 from the Omega sha256 core; the CLI as bench.om on seed/net/http.om | JSON parse/emit library and the gateway's socket words (omega-mv#788) |
allen_math.py (gateway module) | CPython 3.12.3, stdlib (http.client, json) | Route math: validates one expression, forwards it as math_compute to the loopback allen-science service (the pure-Omega aien-math engine), checks the reply shape and returns its pane events | Imported by the Python gateway; loopback HTTP client and JSON | part of allen-gw.om: fixed request envelope and byte-level reply check on seed/net/http.om | JSON parse/emit library and the gateway's socket words (omega-mv#788) |
| sqlite3 CLI | 3.45.1 (Ubuntu) | PRAGMA wal_checkpoint(TRUNCATE); VACUUM; on every cortex-visitors start, so forgotten text leaves the DB file and WAL | cortex-rs has no compaction endpoint | dropped when Omega Cortex compacts on delete | none on my side; lands with aien-dev/cortex hard delete |
test_*.py, e2e_calculator.py, pusher/github_stub.py, probe.py, dev_proxy.py | CPython 3.12.3 | Verification and local preview only; never deployed in the request path | Verification oracles are exempt | n/a | n/a |
| bubblewrap | 0.9.0 (Ubuntu) | Namespace sandbox around omc and irwasm | Isolation tool around the compiler, not first-party logic | kept | n/a |
| nginx (hub) | 1.28.3 (Ubuntu) | TLS, PROXY protocol, rate limits, routing | Existing edge | kept for now | Omega TLS server words (omega-mv#788) |
science/allen_science.py, science/science_protocol.py, allen_science.py gateway adapter | CPython 3.12.3, standard library only | Bounded loopback HTTP/JSON framing, six strict tool schemas, native function-call results and pane v1 envelopes; no external HTTP client in the service, no project store | Temporary adapter to the existing Python gateway while the bounded HTTP/JSON libraries are delivered; native Omega sockets already exist, so this is NOT a missing-socket claim | allen-science.om and gateway's allen-gw.om, using seed/net/http.om and seed/json/json.om | OmegaNet's bounded HTTP/JSON library: successor libraries merged in aien-dev/omega-mv#814 (77ebd3fd, omc 189ada82); allen-science.om port not yet written, so the Python adapter remains in production path. |
science/science_sandbox.py, science/launch.py, science/install.sh, science/allen-science-fg, science/allen-science-math-fg | CPython 3.12.3 stdlib, POSIX install/launcher glue, bubblewrap 0.9.0 and util-linux 2.39.3 | Dedicated-user empty-network-namespace service, one inherited loopback listener, fixed pinned compute binaries, bounded resources/output and read-only mounts; the math-only instance (18114, --tools math_compute) is the only science port the public gateway may reach | Host isolation boundary around native Omega units, recorded explicitly, not represented as generated Omega | allen-science-launch.om using native process/file/socket words plus aien-supervise's merged sandbox contract | Supervisor policy integration and inherited-listener boundary; no additional compiler word is asserted missing |
science/math-admit.om and aien-math | Seeded Omega; admission compiler sha256 734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61; aien-math uses its own tools/omc.pin | Positive mathematical symbol/unit admission, then symbolic/numeric computation in a no-network sandbox | Native Omega, not a host-language dependency | Implemented; exact source/engine pins in engine.json and sandbox constants | No Wolfram runtime, account, key or external CAS |
allen_transcribe.py (gateway module, POST transcribe) | CPython 3.12.3, stdlib (struct, subprocess, resource) | Push-to-talk: content-type and magic-byte check, strict WAV header parse, duration and size caps, runs the decoder and the recogniser below in two bwrap sandboxes over pipes (no audio file anywhere), zeroes its buffers, returns the text | Same process as the gateway | part of allen-gw.om: byte-level RIFF parser, the same two sandboxed process calls with pipe I/O | Socket/HTTP host words (omega-mv#788); process and pipe words exist |
whisper-cli (/opt/allen-chat/whisper-cli) | whisper.cpp v1.9.5 (commit d1be6fde11ac6e0407606b4e42fe72d34add8037), C/C++, built here with gcc 13.3.0 / cmake 3.28.3: cmake -B build-static -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=OFF -DGGML_OPENMP=OFF -DBUILD_SHARED_LIBS=OFF -DWHISPER_BUILD_TESTS=OFF -DWHISPER_BUILD_SERVER=OFF -DWHISPER_SDL2=OFF -DGGML_NATIVE=ON -DCMAKE_EXE_LINKER_FLAGS=-static && cmake --build build-static -j2 --target whisper-cli (nice 19, CPU only), static, sha256 0b3d63f4a90d5df14031479ed039fe1f96ffc52fff8b193e85f71daa3762ed5a (pinned in allen_transcribe.py) | Speech to text on the CPU (greedy decode, English, 4 threads), stdin WAV to stdout text, inside bwrap with only itself and the model bound read-only | No speech recogniser exists in .om yet; this is a third-party model runtime | Successor path (same as the voice/TTS row below): open CPU STT on the Spark (this row: whisper.cpp, MIT, already open and local) -> a trained Aien STT model (fine-tuned on the Aien name and project vocabulary) -> Omega runtime allen-hear.om (log-mel front end and encoder/decoder over the trained weights, CPU) | Not yet written in .om: needs a float32 tensor library (matmul, conv1d, softmax, layer norm) at SIMD speed and a ggml weight reader; extension proposal, not filed |
Whisper model ggml-base.en.bin (/opt/allen-chat/ggml-base.en.bin) | OpenAI Whisper base.en (MIT), ggml conversion from huggingface.co/ggerganov/whisper.cpp revision 5359861c739e955e79d9a303bcbc70fb988958b1, LFS sha256 a03779c86df3323075f5e796cb2ce5029f00ec8869eee3fdfb897afe36c6d002 (147964211 bytes, verified against the HF listing; tiny.en 921e4cf8...920b1f also pinned as the low-CPU fallback) | Weights for the recogniser | Data, not code | Replaced by the trained Aien STT weights, then loaded by allen-hear.om (path in the row above) | n/a |
| ffmpeg | 6.1.1-3ubuntu5+esm13 (Ubuntu, /usr/bin/ffmpeg) | Decodes the visitor's WebM/Ogg Opus clip to 16 kHz mono PCM: forced demuxer (matroska/ogg), forced native opus decoder, pipe: protocol only, 1 thread, inside bwrap with /usr, /lib, /etc/ld.so.cache and /etc/alternatives read-only and nothing else | Opus/Matroska decoding is not written in .om | opus-decode.om (RFC 6716 SILK/CELT decoder + a minimal EBML/Ogg page reader) | Not yet written in .om; the page can also send 16-bit PCM WAV, which skips ffmpeg entirely |
| ElevenLabs text-to-speech (development tool only; Drake's dev key, never held, read or called by any Aien service, gateway, allen-* user or site runtime) | Hosted third-party service (closed source), INTERIM | Greeting/fixed-line clips may be generated BY HAND in development with Drake's approval and shipped as static files; no live TTS; no visitor text, audio or identifier is ever sent. Visitor-facing speech uses the browser's voice | No local TTS is set up yet | Successor path: open CPU TTS on the Spark (Piper/Kokoro-class, licence checked before adoption) -> a trained Aien voice -> Omega runtime for that voice | Not built (TTS explicitly not in scope here); the Omega runtime needs the same float32 tensor library as allen-hear.om |
The compiler omc (sha256 734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61)
and irwasm (sha256 2d235a70c39ac1461a09c41e10e058d962b767ae83893cdcfc693ef6c47182e6)
are seeded Omega. The page's JavaScript is generated by Omega (om/allen-page/).