Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Closed · #669 · open 2026-10-23 22:21 UTC · closed 2026-11-05 02:01 UTC (reason completed)
Imported from GitHub aien-dev/omega-mv#669, by drakestapleton
drakestapleton wrote on 2026-10-23 22:21 UTC
Problem and evidence
Source inspection found patch19 masks the word displacement into 19 bits without an explicit local range check:
seed/omc/omc.om at 57f5f4258cebf3d5b2c22853cd062e351265c525 (seed/omega-in-omega).
Same pattern at f0499f415571bdd7496b6de391096915e78f7556 (feat/seed-native-host).
This is an unconfirmed correctness concern, not an established exploitable vulnerability. First establish whether other invariants make an out-of-range patch unreachable. Output capacity alone does not prove reachability.
Scope and ownership
Existing seed/compiler owner under #636/#660 owns the fix; #624 owns shared conformance and #623 semantic validation. Do not fork the compiler.
Acceptance
Resolve current authoritative compiler revision and inventory patch19 callers, conditional branches, CBZ/CBNZ and related relocation encoders.
Derive signed displacement/alignment limits from the target ISA; include PC convention, forward/backward distances, exact extrema and one instruction beyond each supported limit.
Construct bounded synthetic .om cases and record whether an oversized target is reachable within parser/function/code limits. Do not claim reproduction from arithmetic inspection alone.
Independently decode emitted instruction targets and compare against intended labels; use a separately sourced qualification decoder outside the product closure where appropriate.
If reachable, emit correct long-branch lowering or fail compilation with a stable diagnostic before producing an accepted artifact. Never silently truncate. If unreachable, document and test the invariant that guarantees it.
Test traps, nested conditionals, loops and function boundaries, including layout changes caused by branch expansion. Branch relaxation must converge or refuse within a declared bound.
A compiled range-check/target-selection mutant fails a named assertion. A crash, timeout or invalid fixture is not a successful mutant kill.
Replay existing compiler and real-consumer regressions and bind evidence to exact final compiler source/binary.
Do not include weaponized payloads or characterize this as a confirmed security exploit without evidence.
Delivery and qualification
Authorized security follow-up, 2026-10-23. Reconcile current source, branches, issue comments, AGENTS.md, plan authority and worktree ownership before edits. One writer per shared compiler/runtime file; preserve existing Renda/desk review and release ownership.
All new first-party implementation, runners and tests use seeded .om. Missing facilities go to the existing compiler owner; no second compiler, runtime, authority or store. Qualify replacements and consumers before removing superseded active first-party code/dependencies; preserve Git history and immutable evidence.
Record exact source/seed/compiler/binary/config/fixture identities, raw commands and exits, independent review and explicit PASS/FAIL/INVALID/NOT_RUN. Emulation is not hardware qualification. A hash/signature authenticates identity, not correctness. No automatic deployment, live GPU interruption, driver changes, private-data upload or issue closure from a source-only PR.
drakestapleton wrote on 2026-10-23 23:05 UTC
Independent review of candidate e3899592: changes required; #669 and #673 remain open.
Rebuilt the final compiler from its exact Om source on Linux AArch64. Independently reproduced the useful fix: the exact forward maximum decodes to its intended marker, while one instruction beyond it is refused with exit24 and zero artifact bytes. Rebuilt baseline f0499f41 accepts the oversized source and GNU objdump shows a wrong target. No malformed artifact was executed in this review.
Findings:
disp19 at line937 uses 2^64-1024 where the documented backward limit requires 2^64-1048576. Compiled reviewer-owned Om probes reject valid -1028 and -1048576 displacements with exit24. This proves a helper/contract defect; source reachability of a long backward branch is not established.
The new 137-line gate669.sh contains first-party test/mutation/verdict automation, contrary to the explicit seeded-Om-only requirement. The external GNU decoder is an allowed independent oracle; the new shell runner is a separate issue.
Seven existing files under evidence/SEED-0/omc/ were modified, including the old binary, hash, gate log and measurements. Preserve their original bytes and put new runs in a separate source-bound evidence directory.
Clean-checkout replay of the documented default security gate exits1: build/security673/fix/stage2 is missing. The preceding documented gate5 builds build/seed/r5/fix/stage2, so the reproduction sequence does not supply the required artifact.
The mutant row executes a known-invalid image and reports PASS with exit139. Its decoder does independently detect the wrong target, but the crashed execution must be classified separately as INVALID. Do not execute an artifact already rejected by the decoder.
Candidate scope is only partial #669. It adds no implementation for #670, protected RSI evaluation/promotion, durable action integration, authority-aware reuse, privacy/export authorization, device isolation or crypto. The author's report correctly leaves #673 open.
Reviewer artifacts and the requirement matrix are preserved locally at /home/drakestapleton/handoffs/security673-review/REVIEW.md, with a seeded Om boundary probe, exact source/binary/tool hashes, raw results and a verified SHA256 manifest. Existing L408 compiler and Renda/desk release ownership are preserved. No issue closure, merge, deployment or hardware qualification is requested.
drakestapleton wrote on 2026-10-24 00:21 UTC
Corrective implementation and native qualification are pushed on fix/security673-qualified.
7a169290 corrects the backward boundary to 2^64 minus 1,048,576 and replaces the first-party shell gate with seeded .om coordinator, mutator, generator and decoder-output checker. The seven historical seed receipts are restored; the replaced bytes and old gate remain separately preserved as immutable evidence.
The native gate accepts both exact encoder extrema, refuses adjacent overflow/alignment cases, exercises the actual backward array-fill caller, decodes and executes the accepted forward programs, and refuses oversized if/nested-if/while/trap-site programs with24 and empty output. The compiled range-bypass mutant is caught by GNU objdump decoding without executing its malformed program.
Independent review found a permissive parser in my first checker. It is corrected and covered by seven named text controls. Independent final replay passed; wrong-exit, signal and deadline controls each failed the gate with99. Raw signals/timeouts are INVALID within those failed runs.
A clean isolated checkout reconstructed the seed chain and ran the documented gate successfully. The later 12d971c7 compiler also passed the complete native branch gate and existing host regressions.
Evidence class: bounded native Linux AArch64 execution, external GNU2.42 instruction decoding, source inspection and same-lineage reconstruction. The direct backward extrema do not establish a reachable long-backward source program; imm26 coverage remains a capacity invariant. This is not a general translation proof, diverse compilation or #673 completion. Existing L408 compiler integration and Renda release review remain required; no issue closure or deployment.
did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:14 UTC
Branch-form qualification added on fix/security673-qualified at 9a2b6a5.
Encoder inventory: all imm19 writes flow through disp19/patch19; cond (B.cond/CBZ), blo (B.LO), trapsite (CBNZ/B.HS), s_else (B via patch26), s_end, and hpack host branches are mapped.
branch-forms.om adds 15 compiled/executed cases: eq/ne/lt/le/gt/ge, CBZ-vs-zero, while/for back edges, if/else unconditional B, a branch inside a called function, and shift/divide trap sites. All 15 exits match the fixed table.
Evidence: evidence/SECURITY-673/branchforms1 (report, raw logs, identities).
Residual: long backward source reachability is still not established (short array-fill caller plus direct encoder extrema only); no diverse compilation; release integration and independent review of this new slice remain. #669 stays open.
did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:39 UTC
Recovered GitHub comment. Original issue #669 ยท posting receipt b08ef91d17303b75ace66f9ad035dea5d7638092aea6c135f1e62ed07e88cce7
Verified on main d3d1b1bc7e3b (seed omc b4f45121), host only, cores 0-9,15-19:
seed/out/omc < seed/qualification/security673/gate669.om > build/gate669 && build/gate669 -> rc 0, GATE669 PASS bounded Linux AArch64 execution and independent decoding only; 223 exit= rows incl. the range-free mutant rows (exit=81 expected=81) and error-24 rows.
Negative control build/gate669 0 (fresh scratch) -> rc 99 as expected.
Shared bdisp/imm19/imm26 checks, error 24 and the README invariant (8 MiB ceiling; N=262127 accepted, N=262128+ refused) landed in #948.
Full seed/host/check.sh rc 0.
Scope as the gate prints it: host Linux AArch64 execution and decoding, not hardware qualification. Closed by the P-DRA-9 issue sweep (lane I2).