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