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/omnet
# omnet
aien-dev/omnet
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/omnet/repo.git omnet && git -C omnet checkout --detach b8128f2dfff6b128f6d5d4c65dbc466073490eaa`
Source archive of `b8128f2dfff6b128f6d5d4c65dbc466073490eaa`
Download ZIP · tar.gz
Sign in to star 0 stars 0 watching
About Files History Releases Proposed changes Issues For developers
README.md
# omnet
Security-critical network code, rewritten in Omega .
Most serious vulnerabilities in network software over the last several decades come from a short list of bug classes: out-of-bounds reads and writes, integer overflow, unbounded reads and loops, use-after-free, and check-then-use races. omnet rewrites security-critical parts of network infrastructure in a language where the first group cannot happen silently. Its design rules target the rest.
The first project is Tailnet Lock for self-hosted Tailscale (Headscale) control servers. Tailnet Lock (TKA) lets the devices of a tailnet, not the control server, decide which devices may join. The stock Tailscale client already implements the device side. The open-source control server headscale does not implement the server side (headscale#1307 ). omnet builds that server-side logic in Omega.
## Install
`docs/install.md` builds and runs it on a Headscale server, and shows the stock `tailscale lock` command working against your own server. `docs/runbook.md` turns the lock on over a tailnet already in use, step by step, with a rollback; `integration/e2e/run.sh --scenario runbook` rehearses every step on a private tailnet.
## What the language rules out, and what it does not
Facts below are from the Omega language reference, `docs/one_layer/OMEGESE.md` §9, at the pinned commit in `omega.pin` .
Bug class Omega behaviour
Out-of-bounds array access Every index that is not a constant is checked when it runs: trap 3. Constant indices outside the array are refused at compile time. Kernel I/O checks its buffer range before the call.
Signed integer overflow Signed `add sub mul neg div shl` trap 1 when the exact result does not fit.
Lossy conversion A conversion to a type that cannot hold the value traps 5. There are no implicit conversions.
Bad shifts, division by zero A shift outside `0 .. width-1` traps 7; division by zero traps 2.
Unbounded loops Every loop has a bound (default 1,000,000 passes); passing it traps 4.
Heap corruption, use-after-free There is no heap allocator and no exposed pointer. Arrays have a fixed length that travels with the name. Local arrays are freed under compile-time ownership checks.
Stack exhaustion A call or local array that would overrun the fixed 8 MiB stack traps 6 before writing.
An unsized `view T *` / `edit T *` parameter is a pointer plus a count. Every index into it is checked at run time and the count travels with it, so the bounds rule above holds for slices as well (OM-2 guarantee matrix lives in the Omega repository; it was added in omega-mv `2d6ea129`, after the commit in `omega.pin`). A trap stops the program. That turns memory corruption into a crash, so a reachable trap is still a denial-of-service bug.
Bounded by the code, with a test that shows it:
- Store record sizes and running totals are charged with checked arithmetic and held under a 65536 record cap and a `33554432` byte cap; an over-capacity write is refused and the registry stays readable (registry capacity guard test).
- A file path is used to open a descriptor, and the work then continues on the descriptor, never on a path checked earlier (design rule 2). Rename, short-write and crash paths are exercised by fault tests.
Still open, and handled by review:
- Logic and protocol errors, including wrong authorization decisions.
- Timing side channels. omnet code is not constant-time-audited; the secret comparison bounds how many bytes are read, not how long it takes.
- Unsigned arithmetic wraps by definition. Checked arithmetic applies only where a module uses it.
Reduced but not eliminated:
- Resource exhaustion at the service level: too many clients or too much stored state.
## Design rules for omnet code
- Bounded input. Every read has an explicit capacity, and every message has a maximum size that is checked before it is parsed.
- No check-then-use on names. Act on an opened descriptor, never on a path checked earlier.
- Fail closed. Parse errors and signature failures reject. Compatibility behavior must match the pinned protocol: unknown signed AUM kinds advance the hash chain as no-ops, as Tailscale specifies; they never bypass authorization.
- Least privilege. A component that parses untrusted input runs without the privileges of the component that acts on the result.
- Two referees. Each algorithm is checked against published test vectors and against an independent implementation used only as a test oracle (never shipped). Every test harness has a mutant check that proves it can fail.
## Layout
Path Content
`om//.om` Omega library: functions only, no globals, no `main`
`om//test/` Program-mode test driver, vectors, `run.sh`
`cmd/tkad/` Native Omega local daemon, RPC handlers, recovery and real-socket tests
`tools/build-tkad.sh` Builds the daemon with the pinned compiler
`integration/headscale/` Pinned Headscale v0.29.6 adapter patch, build script and trust contract
`integration/e2e/` Unmodified Tailscale v1.102.0 client builds and isolated lifecycle harness
`docs/design/` Design documents
`tools/omc.sh` Builds the pinned seed-born Omega compiler and verifies its digest
`tools/test.sh` Runs library and daemon suites
## Build and test
Requirements: Linux on ARM64 (the Omega compiler emits AArch64 Linux programs), `git`, POSIX `sh`, Python 3, and Go >=1.26.5 for the TKA differential oracle. Omega holds all TKA logic; the optional Headscale adapter is Go glue and uses Go1.27.3.
```
tools/test.sh # builds the pinned compiler on first use, then runs every unit's tests
```
`.github/workflows/test.yml` runs `tools/test.sh` on every pull request and push to `main`, on a GitHub-hosted Ubuntu 24.04 arm64 runner with Go 1.26.8.
## Status
The Omega daemon implements all eight TKA RPCs, node registry/map operations, durable snapshots, and validated restart recovery over a private Unix socket. Its local adapter is trusted and must run as the same UID; the daemon does not authenticate remote Tailscale clients.
The current profile supports one tailnet, 64 nodes, 128 authority updates and 64-KiB JSON messages. The Headscale adapter and stock-client control-plane lifecycle have passed isolated end-to-end verification, including unsigned-peer filtering, authenticated rotation, authority-key removal, persistence, owner authorization, outage rejection and disablement. This is not deployed tailnet protection, data-plane qualification or a production security audit. Build with `tools/build-tkad.sh`; see `cmd/tkad/README.md` and `integration/headscale/README.md` before running.
See `docs/design/tailnet-lock.md` for the implementation limits, verification plan, and remaining stages.
## License
Apache-2.0. See LICENSE .
## Human-Directed Agentic Engineering
Development follows Human-Directed Agentic Engineering (HDAE): humans define goals, architecture, constraints, acceptance criteria, and stopping points; agents implement, execute checks, diagnose failures, and revise within those boundaries. Human review retains responsibility for claims, acceptance, and release decisions.
For the documented method and a systems-software case study, see Gregory M. Kurtzer, *Ginux: Building an Independent Kernel That Runs Linux Userspace through Human-Directed Agentic Engineering* (2026), https://doi.org/10.5281/zenodo.`23682548` .
## 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:3071f8ad6d414a02e6f2d68f4efabef765810ed03694dd04b0002a02a493da9f`. Its old id, kept only so that old links still work: `z2Q1eD3rqPUGnsxnhd4dDzFDMQqu`.
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 `b8128f2dfff6b128f6d5d4c65dbc466073490eaa` Branches Tags History
`b8128f2` omnet docs: tkad --init keeps running as the daemon; mark the backup-restore observation as seen once; drop dead code Drake Stapleton committed 2026-11-15
```
.github/
cmd/
docs/
integration/
om/
qualification/
tools/
.gitignore 34
AGENTS.md 2861
AUDIT_SCOPE.md 10400
LICENSE 11357
README.md 7932
SECURITY.md 3458
omega.pin 126
```
Every record: History (commits) · Branches · Tags · Releases, with the SHA-256 of each download · Patches · Issues · This project as JSON