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/blob/main/scripts/allen/README.md # 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 / README.md` 559 lines ยท 36348 bytes Raw Blame History Rendered 1 # allen-chat: the public Allen gateway 2 3 `https://www.aienos.com/allen/` lets anyone talk to Allen, my AI, run small programs in their own 4 browser, find what I have built, propose an issue or a project, and introduce 5 themselves with consent. No model answers there right now: the Qwen3.6-35B-A3B 6 FP8 this gateway was written for (on `:18091`) was retired on 2026-11-06, and 7 my own model, the Omega LLM, is not deployed yet. `MODEL` in `allen_chat.py` 8 is empty, so the gateway names no model; fill it with the served id when a model 9 is deployed. 10 This directory is the server half: one Python process 11 on the Spark (`allen_chat.py` plus `allen_spool.py`), its systemd unit, the hub 12 nginx route and the tests. The page half is `om/allen-page/` (Omega-generated 13 markup and JS). 14 15 ``` 16 browser --TLS--> hub :443 SNI router --PROXY protocol--> hub nginx www.aienos.com (127.0.0.1:4446) 17 /allen/api/... --tailnet--> 100.64.0.2:18110 allen-chat (system unit, User=drakestapleton) 18 chat --> 127.0.0.1:18091 (shared model server, streamed, keep-alive) 19 omega --> bwrap { pinned omc (native check, then IR) -> pinned irwasm } -> .wasm to the browser 20 submit --> spool/in/.json (omega-projects-pusher files it; see below) 21 projects/save|publish --> spool/in/.json (the build loop; see "Build loop") 22 introduce --> contacts-drop/.json (allen-contacts-ingest stores it; see below) 23 ``` 24 25 ## What public Allen cannot do 26 27 Public Allen cannot deploy anything: not to this site, not to any repository, 28 not to the hub and not to the Spark. This is enforced by structure, not by the 29 prompt, and each point is tested with a negative control (results in the PR): 30 31 1. **Compute only, never deployment.** Native function calls are admitted only 32 for `math_compute`, `omega_compile`, `web_app`, `paper`, `research`, and 33 `plot`, with strict schemas, bounded arguments and at most three tool rounds. 34 The gateway forwards them only to a separate `allen-science` process on 35 loopback. Its inherited listener is its only network access: the science 36 process has an empty network namespace, no credentials, a read-only install, 37 private temporary storage, and bounded compiler/math subprocess sandboxes. 38 Neither process has shell, git, gh, ssh, deployment or arbitrary URL tools. 39 Unknown tool names and malformed calls are refused, never executed as text. 40 Math comes from the pinned pure-Omega aien-math engine, not model arithmetic; 41 unsupported expressions remain unsupported. Engine output is experimental, 42 not proof of correctness. Panes retain its exact expression, result and pin. 43 Research has no live web search. Papers and research are unverified drafts; 44 plots show input data. Browser apps and WASM require explicit visitor Run. 45 Projects stay in browser IndexedDB; optional memory sync sends only a short 46 summary after a separate visitor action, never an anonymous server write. 47 There is no Wolfram integration, account, key or public-use dependency. 48 `pane-contract.om` versions the SSE pane contract; `science_protocol.py` 49 validates it on the host. These Python HTTP/JSON adapters are recorded 50 migration dependencies, not represented as Omega implementation. 51 2. **Sandboxed process.** `allen-chat.service` is a system unit running as 52 drakestapleton (the user manager on this Spark silently skips mount 53 namespacing, so a --user unit would not enforce these): 54 `NoNewPrivileges`, empty `CapabilityBoundingSet`, `PrivateUsers`, 55 `ProtectProc=invisible`, `ProtectSystem=strict`, `ProtectHome=tmpfs` with 56 read-only binds of only its code dir and the pusher's status dir and 57 read-write binds of only the two drop directories, `PrivateTmp`, 58 `PrivateDevices`, `RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX 59 AF_NETLINK` (netlink only so bwrap can bring up the sandbox's own 60 loopback), `IPAddressDeny=any` with `IPAddressAllow=127.0.0.1 100.64.0.1 61 100.64.0.2 100.64.0.3 100.64.0.4` (.1 and .4 are my devices, for the console), `LockPersonality`, `MemoryDenyWriteExecute`, 62 `SystemCallFilter=@system-service @mount unshare setns`. Measured: it cannot 63 read `~/.ssh`, `~/.config/gh`, `~/.omp`, the vault, the contact store or the 64 gb10 lock (also not through `/proc//root`), cannot `sudo`, and cannot 65 connect to github.com, the internet or the LAN. The Spark firewall admits 66 port 18110 only from the hub's tailnet address. 67 3. **Compiling is not running.** The Omega path runs only the pinned compiler 68 and translator, inside bwrap with no network, a read-only root containing 69 only the tool, an 8 MiB tmpfs, no `/proc`, cleared environment, no 70 capabilities, its own pid namespace, RLIMIT_CPU 4 s, RLIMIT_AS 512 MiB, 71 RLIMIT_FSIZE 4 MiB and a 5 s wall clock. Nothing the compiler produces is ever 72 executed on the server; the `.wasm` runs only in the visitor's browser, 73 without imports. If bwrap is missing or cannot build a sandbox the gateway 74 refuses to start (no bare omc). Nothing is persisted. 75 4. **Web apps** run only in the visitor's `