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/omega-mv/issues/fb0ed3ca90bafe70 # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers # [OM-AUTHOR A1] Checked hex literals and canonical, unambiguous source tooling Closed · #745 · open 2026-10-25 15:35 UTC · closed 2026-11-05 01:48 UTC (reason completed) Imported from GitHub aien-dev/omega-mv#745, by drakestapleton drakestapleton wrote on 2026-10-25 15:35 UTC ## Scope Extend the existing lexer/parser and #621 source provenance; diagnostics use #655 and semantics use #625. tok_num currently parses decimal. Do not create a new parser or change old program meaning silently. - Add versioned hex integer syntax with explicit width/range/conversion rules; test zero/max/min, oversized and malformed literals, signedness, truncation refusal and decimal/hex equality. No numeric conversion by an LLM in fixture preparation. - Decide and freeze expression-boundary rules with missing/extra operand tests. Balanced parentheses alone are not proof; optional grouping must not silently alter existing prefix parsing. - Canonical formatter preserves comments/source mappings, is idempotent, and roundtrips to equivalent typed representation. Include malformed/incomplete input behavior and source-digest distinction. - Golden parser/formatter/diagnostic fixtures and independently checked SHA constants. Keep human-readable output as well as machine diagnostics. ## Delivery contract Approved bounded language evolution under #599, not a replacement master plan. Baseline inspected: omega main `acb3f15cdc691b1b046b48b0dad0f9255a12ba4b`, seed/omc/omc.om and om/sha256/sha256.om. Reconcile latest source, issue comments, active branches/PRs and file owners before editing. Read plan authority/current execution plan, doctrine, applicable ADRs, AGENTS.md and .crumb. Existing compiler/IR/checker/ABI owners retain authority; one writer per shared file. Final first-party logic/tests/automation use seeded handwritten .om, no parallel compiler or retained legacy fallback. Qualify then cut over consumers and delete retired active implementations, preserving history. Pin compiler/source/target/config/fixtures and raw evidence; independent review and negative controls required. Host/simulator/device results remain distinct; unrun is NOT_RUN. Preserve live 27B/35B service and reserved hardware coordination; no deployment or driver changes authorized by this issue. drakestapleton wrote on 2026-10-30 11:39 UTC Parked: waiting on #858 and #848. Both already change `seed/omc/omc.om`, `docs/one_layer/OMEGESE.md` and the `.crumb` files, which is where the hex-literal, expression-boundary and formatter work would go. Implementation starts after those land, to avoid conflicting work. — Grokbot did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:16 UTC Recovered GitHub comment by @aien-spark on 2026-10-25T22:16:19Z. Original comment `6404126509` ## #745 implemented and qualified on a draft branch (L834/L835) `om2/compiler-s1` @ `874fec3b`, PR #750, omc `ce4facbe…f019`. Not on `main`. - Hex literals. `0x` plus 1..16 digits `0-9a-f`; takes the type the place needs under the decimal range rule. Observed with the pinned compiler: `uint 0x100000000` → exit 8; `uint 0X10` → exit 6; a prefixed `-`, `_`, or an uppercase digit is error 6 too. - `om2 fmt`. Canonical text: blanks between words collapsed to one space except next to `(` or `)`, no trailing blanks, one final LF. Idempotent and `compile(fmt(x))` byte-identical to `compile(x)` — both observed. Only when `om2 fmt` is the first line at byte 0 (else error 16). - `om2 diag`. Machine records after the unchanged human line: `omc-diag 1 code=E sev=S line=N col=C span=A-B expect=K found=H obligation=O profile=OM-2`, plus `omc-site 1 line=N iter=k` per run-time trap site and `omc-check 1 kept|erased line=N rule=dup32|-` per `seal`. Observed on `examples/om2-tour.om` (the tutorial's example, #777): 15 `omc-site` records and one `omc-check 1 erased line=11 rule=dup32`. `found` is the offending bytes as hex, `-` when empty; parse by key, never by position. - Expression boundaries. Prefix arity is unchanged, so "expression boundaries" is decided by the word's arity; the new words follow it: `part A o k` (3), `put c F i v` (4), `rotr x n` (2), and a missing index/value is error 4 reported on the next line (E15 item 7). Qualified by L836 on the S4 head: C2 5,876/5,876, §0–§2 161 PASS / 0 FAIL / 2 NOT_RUN, 10/10 S1 mutants, plus the hosted `om-units` job green at the S1 head. Evidence: #752 `candidates/*/RESULTS.txt`. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:17 UTC Recovered GitHub comment. Original comment `6525652852` Hex literals are already on main via #750 (merge `9e5039294`). Draft #951 adds the standing gate: 51 cases in seed/omc/om2/hex (Wolfram-derived values, decimal twins byte-identical, refusals on the decimal codes, OM-1/IR refusal) plus 3 killed tok_hex mutants, required by seed/host/check.sh. Green at `62d1d0d6`: 51/51 PASS. Red under the pre-#750 compiler: 47 FAIL. The 'parked on #858/#848' note is stale; neither PR is needed for this. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:17 UTC Recovered GitHub comment. Original comment `6525778904` Update on draft #951: checkbox 2 now has a standing gate in seed/omc/om2/bnd. It holds the 47 s2bnd rows (missing/extra operand, grouping) and runs green at 47/47. Two operand mutants are caught (8 of 8 kill rows fail). seed/host/check.sh requires it. Separate doc commit: the OMEGESE.md line 90 'new len 1..64' was the OSC IR limit; omc allows 1..`16777216` within a 4 MiB local budget, checked by a runtime probe. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:41 UTC Recovered GitHub comment. Original issue #745 · posting receipt `f190fdb5f642dafb37f90cc35d5ff9887f18abd6ccf43aa4bbf5c21db2611d31` Verified at main `d3d1b1bc7e3b970016a2176435f78c8f0251bad1` (omc `b4f45121`). Hex literals (#750) and standing gates (#951, train r3 `4376c211`). `nice -n 19 taskset -c 0-9,15-19 sh seed/host/check.sh` rc 0: `PASS hex literals (51 cases) and 3 tok_hex mutants killed`, `PASS expression boundaries (47 cases) and 2 operand mutants killed`. Formatter exercised directly: `om2 fmt` over a unit with a multi-blank note line and a hex literal kept the note bytes exactly, collapsed other blanks, was idempotent (cmp f1 f2 equal), compile(fmt(x)) byte-identical to compile(x), binary exit 42; a CR input is refused with error 6. Golden fixtures in seed/omc/om2/s1 and hex/bnd cases. Closed by sweep lane I2 (P-DRA-9). Sign in to comment