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/patches/2b8a6660d431867e # omnet aien-dev/omnet Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers ## GitHub aien-dev/omnet#16 (code only) closed derived `2b8a6660d431867e` #16 Imported from GitHub aien-dev/omnet#16 (code only) GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed). Base `18abb3970699657cc4b24208a818ae403663a7f6` · Head `550a30d950ad5b4993d65515b7151048e3cb240a` ### Apply it ``` git checkout -b patch-2b8a6660d431867e 18abb3970699657cc4b24208a818ae403663a7f6 curl -fsSL https://interplane.io/drakestapleton/omnet/patches/2b8a6660d431867e.patch | git am ``` Raw patch (mbox) · Diff ### Provenance This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record: ``` github-import 1 aien-dev/omnet 16 550a30d950ad5b4993d65515b7151048e3cb240a ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"omnet","number":16,"url":"https://github.com/aien-dev/omnet/pull/16","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:40:42Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` 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. ```