From 550a30d950ad5b4993d65515b7151048e3cb240a Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sun, 25 Oct 2026 23:44:16 -0500 Subject: [PATCH] docs: state the bounds honestly, and drop the pre-alpha label Three corrections to the front page, all to what the repository can show: - The "not ruled out" list mixed three different things. Split it: what the code now bounds and tests (checked charges under the 65536 record and 33554432 byte caps, with the capacity guard; descriptor-only path use with rename and short-write fault tests), what remains open (logic errors, timing side channels, unsigned wraparound outside the modules that use checked arithmetic), and what is reduced but not eliminated (service-level resource exhaustion). - The safety table predates OM-2. An unsized view/edit parameter is a pointer plus a count, and every index into it is checked at run time; the table said no pointer is exposed. It now points at the OM-2 guarantee matrix. - The build requirements said Python 3 was optional. Five suites drive their checks through python3 and two use Go as an oracle; both are now named as test-only needs. The Status section no longer calls the repository pre-alpha. Co-Authored-By: Claude Fable 5.1 Co-Authored-By: Drake Stapleton --- README.md | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1f976ba..f877c67 100644 --- a/README.md +++ b/README.md @@ -30,16 +30,31 @@ commit in [`omega.pin`](omega.pin). | 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](docs/one_layer/OM2-TUTORIAL.md) lives in the Omega repository, at the pinned +commit). A trap stops the program. That turns memory corruption into a crash, so a reachable trap is still a denial-of-service bug. -**Not ruled out by the language**, and therefore handled by review and by the design rules below: +**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. -- Unsigned arithmetic, which wraps by definition. Cryptography relies on that, and it can still hide - a length bug. -- Timing side channels. omnet code is **not** constant-time-audited. -- Races on file-system paths (time-of-check to time-of-use). +- 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 @@ -82,7 +97,7 @@ tools/test.sh # builds the pinned compiler on first use, then runs every un ## Status -Pre-alpha. The Omega daemon implements all eight TKA RPCs, node registry/map operations, durable +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.