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 / seed / omc / DIAGNOSTICS.md

36 lines · 2257 bytes Raw Blame History Rendered
1# Source-bound compiler diagnostics
2
3Set `OMC_DIAGNOSTICS=2` to keep the existing numeric error prefix and add a human
4reason, an emitting-site identifier, and one `omc-diag 2` record on standard
5error. Without this exact value all existing diagnostics remain unchanged.
6The record names code, site, source line/column/span, mode, target, the input
7digest and byte count, and the normalized compiler-source digest.
8
9`input_complete=1` means EOF was observed. Otherwise the digest covers only the
10reported prefix read before refusal. An invalid environment can therefore
11report the empty prefix. The source identity is explicitly not an executable
12identity: qualification records the executable SHA-256 separately and binds it
13to the seed rebuild.
14
15Site identifiers are carried at the emitting call, rather than inferred from
16the numeric code. Forwarding helpers retain their caller's site. New emitting
17calls must have new identifiers; do not renumber existing ones. The gate rejects
18missing and duplicate sites and reports unexercised identifiers separately.
19A registered site is not automatically a tested site.
20The checked KFD request, header-size and span-alias refusals also carry sites.
21The KFD CPU suite matches mutation seams across diagnostic annotations while
22still requiring exactly one semantic match and exercising every mutant.
23
24`diaggen.om` regenerates strings and the source identity from the registry,
25inline site notes, SHA core and diagnostic runtime. It hashes the complete
26result with the sole 64-byte `d2pin` value zeroed. The seed build uses its newborn
27compiler to rebuild this generator and rejects stale generated source before
28publishing the compiler. To refresh after an intentional source edit, run the
29generated `build/seed/birth/diaggen` with the four inputs shown in
30`seed/omega-from-seed.sh`, inspect its output, and replace the source with that
31output. Run the seed build again. No identity is typed by hand.
32
33`diagnostics-v2.py` independently checks hashes, refusal/success parity across
34profiles, chunk boundaries and existing site fixtures, plus a compiler mutant
35which omits hashing. Its machine-readable coverage inventory is written to
36`build/seed/diagnostics-v2.json`; unexercised sites remain explicit obligations.