interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / spec / omegese-om2-errata.md

218 lines · 14464 bytes Raw Blame History Source

OM-2 errata (coordinator L835)

Clarifications to the frozen spec/omegese-om2.md (sha256 245bb74e…0881) that resolve conflicts inside it. No erratum changes the meaning of a construct that a lane has already built on. Each erratum names who raised it.

E1 (AbiLane L837, 2026-10-25): which units are v2, and where identities live

§6 "Symbol versioning" and "Module boundary" conflicted with C2-style byte identity for v1 bindings. Resolution:

E2 (QualPhaseB L836, 2026-10-25): sized arrays to unsized parameters

A sized array (length N) may be passed to an unsized view T * / edit T * parameter of a function in either mode; len is N inside the callee. Writability rules are unchanged (a view never reaches an edit). Unsized parameters are allowed on internal functions, not only on exported entries.

E3 (ShaLane L838, 2026-10-25): context copies and the C API names

E4 (QualPhaseB L836, 2026-10-25): diagnostic record fields and the fmt input

E5 (ShaLane L838, 2026-10-25): scalar layout fields; cutover build rules

E6 (QualPhaseB L836, 2026-10-25): reserved names, diag fields, formatter edge cases

E7 (QualPhaseB L836, 2026-10-25): unroll and inline limits, site records

E8 (QualPhaseB L836, 2026-10-25): codes and lines for §5/§6 refusals

E9 (QualPhaseB L836, 2026-10-25): rotate count of an abstract value; late layout line

E10 (QualPhaseB L836 D3, 2026-10-25): blank lines before om2

A unit is OM-2 iff its first line that is neither a note line nor blank (empty, or only spaces) is exactly om2 (or om2 diag). OM-1 refuses such a unit at the om2 line whether or not blank lines precede it, so C1 and C3 hold. The fmt mode rule (E6 Q4 f, the first line at byte 0) is unchanged.

E11 (QualPhaseB L836, 2026-10-25): leakage scan wording and public memory

E12 (advisor review, 2026-10-25): supersedes the first bullet of E11

A trap destination alone does not establish trace equivalence: a reachable trap whose condition depends on secret data changes the trace (fn f a view ulong 4 to uint / ret uint get a 0 / end exits 0 for input 0 and 105 for input 2^32). A data-dependent conditional branch counts as length-dependent only when its trap edge is shown unreachable by a stated static rule. In OM-2 that is only the known-bits rule: the operand of a conversion range check is the result of and x M, with M a constant that fits the target type. Every other data-dependent branch, trap stub or not, is reported MANUAL. A unit with any MANUAL item gets the verdict NOT_RUN for trace equivalence, never PASS. The counterexample above is a required negative control (expected: MANUAL / NOT_RUN). E11's public-memory declaration stands.

E13 (advisor review, 2026-10-25): a public-memory declaration needs public stores

A pub:SLOT:OFF:LEN declaration makes a load length-dependent only if every store the unit can make into that range stores a value that is itself length-dependent (derived from lengths, counts, the op code, constants or declared-public loads). A store into a declared-public range of a data-dependent or unclassified value makes every later load from that range data-dependent, or MANUAL when the scanner cannot order the store and the load. Required negative control: `fn f c edit uchar 104 a view uchar 1 to ulong / put c 32 get a 0 / if eq get c 32 0 / ret 0 / else / ret 1 / end / endwithpub:0:32:8`. Expected: MANUAL or data-dependent, NOT_RUN; natively, message bytes 0 and 1 give exits 0 and 1.

E14 (advisor review, 2026-10-25): expansion work fuel

The emitted-word cap alone does not bound compiler work. Nested unrolls of a body that emits nothing (for a ulong 64 unroll four deep around note empty) emit an identical 212-byte artifact at every depth, yet re-parse 64^4 bodies (1.58 s with omc c23b3376 against about 1 ms at depth 1). The §4 sentence "each bound limits compiler work and memory linearly in the output" is withdrawn and replaced by:

E15 (CompilerS3 L834, 2026-10-25): S3 points the contract did not settle (accepted)

  1. abstract and holds lines are accepted only before the first fn; after it they are error 9.
  2. holds X dup32 with X of base type uint is error 28 (dup32 needs ulong).
  3. A bad base type in abstract is error 7; an unknown word after ops is error 16.
  4. Layout fields accept every integer type; signed fields are sign-extended on read.
  5. A layout parameter is also a plain uchar array of SIZE bytes (get c i, len c) when the word after it is not one of its fields. A field name therefore shadows a local of the same name in that position.
  6. A note line inside a constructor body makes the body not exact, so the runtime check is kept.
  7. A missing index or value is error 4 reported on the next line (OM-1 behaviour). E8 fixes the lines only for errors 27, 28 and 29.

E16 (QualPhaseB L836, 2026-10-25): when fuel is charged

Fuel (E14) is charged in source/emission order. An unrolled loop is charged K units when it starts, at its own line, before any copy is expanded. An inline expansion is charged 1 when it starts, at the call line. Error 14 names the line of the construct whose charge exceeds the fuel.

E17 (CompilerS4 L834, 2026-10-25): S4 points the contract did not settle (accepted)

  1. export together with fn main is error 9.
  2. A 33rd export is error 14.
  3. export not followed by fn, or inside a function body, is error 16.
  4. An out T N parameter is an edit T N in every function, internal ones included. out T * and out … fresh are error 16.
  5. A part may be passed only to an unsized parameter; passing it to a sized one is error 7.
  6. The base of a part must be a name, so a part of a part is error 9.
  7. The six-slot limit (§4) also applies in program mode.
  8. Inline functions are also compiled standalone, in source order, each with its own fuel (E14/E16). The fuel error therefore reports the first function in source order that runs out.

E18 (advisor review, 2026-10-25): no gate widening at cutover (supersedes E3 item 3)

The compatibility wrappers sha256_* (status ≠ 0 → abort) are generated as out-of-line definitions in src/omega_om_units.c (bridge output apic). src/omega_api_decl.h (output apih) carries prototypes only. The freestanding rx_cortex.o therefore keeps exactly main's undefined symbols, and Makefile RX_CX_FS_ALLOWED is not changed. Adding abort or omega2_* to that list is refused, because it would weaken the freestanding gate.