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/aienos.com/tree/main/scripts/allen # aienos.com Source of www.aienos.com, served from my own hardware Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienos.com / scripts / allen` `8baeeee` docs: first person, Drake's own voice (L422) Drake Stapleton committed 2026-11-09 ``` .. answers/ catalog/ contacts/ memory/ pusher/ relay/ science/ DEPENDENCIES.md 17123 README.md 36348 a2a.py 17610 allen-chat.service 3497 allen_build.py 8886 allen_chat.py 134320 allen_infer.py 29480 allen_math.py 3503 allen_memory.py 9326 allen_projects.py 9673 allen_science.py 5671 allen_speed.py 23821 allen_spool.py 11421 allen_tools.py 4850 allen_transcribe.py 13481 allen_voice.py 5502 dev_proxy.py 4332 e2e_calculator.py 6297 gen_answers.py 6392 measure.py 1481 measure_prefix.py 5768 nginx-allen-location.conf 12993 nginx-allen-zones.conf 1934 probe.py 2892 system-prompt.txt 14463 test_a2a.py 18983 test_allen_voice.py 3107 test_build_loop.py 12073 test_gateway.py 113153 test_math.py 3617 test_memory_e2e.py 4895 test_reaching_drake_prod.py 10254 test_sandbox.py 7150 test_transcribe.py 13716 ``` README.md # allen-chat: the public Allen gateway `https://www.aienos.com/allen/` lets anyone talk to Allen, my AI, run small programs in their own browser, find what I have built, propose an issue or a project, and introduce themselves with consent. No model answers there right now: the Qwen3.6-35B-A3B FP8 this gateway was written for (on `:18091`) was retired on 2026-11-06, and my own model, the Omega LLM, is not deployed yet. `MODEL` in `allen_chat.py` is empty, so the gateway names no model; fill it with the served id when a model is deployed. This directory is the server half: one Python process on the Spark (`allen_chat.py` plus `allen_spool.py`), its systemd unit, the hub nginx route and the tests. The page half is `om/allen-page/` (Omega-generated markup and JS). ``` browser --TLS--> hub :443 SNI router --PROXY protocol--> hub nginx www.aienos.com (127.0.0.1:4446) /allen/api/... --tailnet--> 100.64.0.2:18110 allen-chat (system unit, User=drakestapleton) chat --> 127.0.0.1:18091 (shared model server, streamed, keep-alive) omega --> bwrap { pinned omc (native check, then IR) -> pinned irwasm } -> .wasm to the browser submit --> spool/in/.json (omega-projects-pusher files it; see below) projects/save|publish --> spool/in/.json (the build loop; see "Build loop") introduce --> contacts-drop/.json (allen-contacts-ingest stores it; see below) ``` ## What public Allen cannot do Public Allen cannot deploy anything: not to this site, not to any repository, not to the hub and not to the Spark. This is enforced by structure, not by the prompt, and each point is tested with a negative control (results in the PR): - Compute only, never deployment. Native function calls are admitted only for `math_compute`, `omega_compile`, `web_app`, `paper`, `research`, and `plot`, with strict schemas, bounded arguments and at most three tool rounds. The gateway forwards them only to a separate `allen-science` process on loopback. Its inherited listener is its only network access: the science process has an empty network namespace, no credentials, a read-only install, private temporary storage, and bounded compiler/math subprocess sandboxes. Neither process has shell, git, gh, ssh, deployment or arbitrary URL tools. Unknown tool names and malformed calls are refused, never executed as text. Math comes from the pinned pure-Omega aien-math engine, not model arithmetic; unsupported expressions remain unsupported. Engine output is experimental, not proof of correctness. Panes retain its exact expression, result and pin. Research has no live web search. Papers and research are unverified drafts; plots show input data. Browser apps and WASM require explicit visitor Run. Projects stay in browser IndexedDB; optional memory sync sends only a short summary after a separate visitor action, never an anonymous server write. There is no Wolfram integration, account, key or public-use dependency. `pane-contract.om` versions the SSE pane contract; `science_protocol.py` validates it on the host. These Python HTTP/JSON adapters are recorded migration dependencies, not represented as Omega implementation. - Sandboxed process. `allen-chat.service` is a system unit running as drakestapleton (the user manager on this Spark silently skips mount namespacing, so a --user unit would not enforce these): `NoNewPrivileges`, empty `CapabilityBoundingSet`, `PrivateUsers`, `ProtectProc=invisible`, `ProtectSystem=strict`, `ProtectHome=tmpfs` with read-only binds of only its code dir and the pusher's status dir and read-write binds of only the two drop directories, `PrivateTmp`, `PrivateDevices`, `RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK` (netlink only so bwrap can bring up the sandbox's own loopback), `IPAddressDeny=any` with `IPAddressAllow=127.0.0.1 100.64.0.1 100.64.0.2 100.64.0.3 100.64.0.4`(.1 and .4 are my devices, for the console),`LockPersonality`,` MemoryDenyWriteExecute`, `SystemCallFilter=@system-service @mount unshare setns`. Measured: it cannot read `~/.ssh`, `~/.config/gh`, `~/.omp`, the vault, the contact store or the gb10 lock (also not through `/proc//root`), cannot `sudo`, and cannot connect to github.com, the internet or the LAN. The Spark firewall admits port 18110 only from the hub's tailnet address. - Compiling is not running. The Omega path runs only the pinned compiler and translator, inside bwrap with no network, a read-only root containing only the tool, an 8 MiB tmpfs, no `/proc`, cleared environment, no capabilities, its own pid namespace, RLIMIT_CPU 4 s, RLIMIT_AS 512 MiB, RLIMIT_FSIZE 4 MiB and a 5 s wall clock. Nothing the compiler produces is ever executed on the server; the `.wasm` runs only in the visitor's browser, without imports. If bwrap is missing or cannot build a sandbox the gateway refuses to start (no bare omc). Nothing is persisted. - Web apps run only in the visitor's `