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 / tools / codebook / README.md

42 lines · 3158 bytes Raw Blame History Source

tools/codebook: signed layered digit codebook (T-002 items 7-10)

Native OM-2 (codebook.om), built on the seeded SHA-256 core by build.sh, proved in Lean 4 (proof/CodebookProof.lean), tested by test.sh, mutation-checked by mutate.sh.

sh tools/codebook/build.sh                      # build/codebook/codebook
printf '901.12 345\n' | build/codebook/codebook enc      # 901012345
printf '901012345\n' | build/codebook/codebook dec       # 901.12 345
build/codebook/codebook sha tools/codebook/codebook.tsv
printf 'n|2026-11-15T12:00|omega-lead|a|task|do x|-|7|300\n' | build/codebook/codebook sign tools/codebook/codebook.tsv KEYFILE
build/codebook/codebook verify tools/codebook/codebook.tsv KEYFILE STATEDIR < inbox-lines
sh tools/codebook/test.sh ; sh tools/codebook/mutate.sh ; lean tools/codebook/proof/CodebookProof.lean

Round 4 (combined with tools/trit): codebook.om is the shared core and main.om the command line; tools/trit/build.sh compiles the same codebook.om into trit. codebook ext OLD NEW exits 0 with ok <newsha> when NEW is a valid codebook that starts with every byte of OLD, else ERR notprefix (exit 6) or exit 4 when either file is invalid. verify holds flock(LOCK_EX) on STATE/ctr.lock for the whole verify-and-advance pass and fsyncs STATE after each counter rename.

Mutation acceptance runs a passing unmutated baseline first. Compile failures, unapplied mutations and test-runner errors never count as kills; a kill needs exit 1 plus the runner's completed failing-assertion summary. Full logs and raw runner exits are retained. A supplied existing mutation work directory is refused without deleting it. sh tools/codebook/test-mutate.sh checks these driver refusals with external test-runner stand-ins.