Omegese profile OM-3: additions after the OM-2 freeze
Status: PROPOSED (draft omega-mv#1008, 2026-10-31). Not frozen, not reviewed by the #599
language-evolution coordinator. spec/omegese-om2.md is frozen and says "A change after freeze needs
omegese-om3.md"; this file is where such changes are written. It is additive to
spec/omegese-om2.md, its errata and docs/one_layer/OMEGESE.md, which stay normative for everything
not stated here.
0. Opt-in and compatibility
- Each addition below names the units it applies to. Section 1 applies to units whose first line that
is not a
noteisom2; this draft adds noom3line. Whether later additions need their own opt-in line is open. - C1 and C2 of OM-2 still hold. Every OM-1 unit keeps its meaning, error code and line, and the frozen C2 manifest compiles byte-identically. An addition may only turn an OM-2 refusal into an accepted unit; it never changes the output of a unit that compiles today.
- C3 still holds. The compiler source stays inside om4's language and om4's function limit.
1. Host words in function mode (#1008)
- An OM-2 function unit (first line
om2, nofn main) may use the host wordsfopen,fclose,fstat,stat,lstat,getuid,geteuid,getgidandgetegid(OMEGESE.md section 10) on AArch64, with their program-mode meaning and machine code. - The same units may use the clocks
monons,realnsandsleepnsand the device wordsdevctl,mapnew,mapdrop,mapread,mapwrite,devcall,uvmctl,mapaddr,mapget,mapset,mapholdandmapbind(seed/host/MAPPING.md). Function-mode entry31 is a data pointer to a32-byte capacity/generation header followed by1..4098 32-byte owned slots; handles have13 low slot bits. The bridge supplies an explicit context with disjoint generation ranges and serializes its calls. Fixed bind can replace only the whole owned PROT_NONE reservation; failure unmaps/retires the token if cleanup succeeds. Cleanup failure traps3 with a quarantined owner: bind/read/write refuse; mapaddr/drop remain available, and destroy stays busy until drop succeeds. Neither outcome promises to preserve a reservation. An absent table pointer may fault, not status34. - Context ABI revision is DRAFT and requires Drake approval before merge. It supersedes the unmerged#1040 raw128-slot function-mode format, not an accepted frozen OM-2 feature. The bridge must reject incompatible mapping compiler/runtime fingerprints. Program-mode raw128 slots/eight slot bits, frozen C2 manifest, pure and file/identity units stay unchanged.
- Every other host word in function mode, any host word in an OM-1 function unit, and any host word for another target is error 9.
- These words do not form a sandbox: a caller that embeds such a unit grants it the file and identity view (and, for the device words, the ioctl and mapping view) of its own process, so the omega-bridge refuses a unit that names one unless the caller opts in.
- Gate:
seed/omc/om2/fnhost/fnhost.caseswith the mutants inseed/omc/om2/fnhost/mutants.cases, run byseed/host/check.sh.