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 / docs / train / M22_SUBSTRATE.md

98 lines · 5475 bytes Raw Blame History Source

M22 optimizer substrate and E5 training provenance (Lane 21)

Status: M22 NOT QUALIFIED. This is the transactional parameter-state substrate and an SGD path over plain byte buffers. There is no tensor or autodiff integration yet; that waits for M20 OMEGA_TENSOR and M21 OMEGA_AUTODIFF. Plan reference: aien-architecture CURRENT_EXECUTION_PLAN.md sections E4 (M22) and E5 (training provenance).

What exists

PieceFilePlan item
Generation store (shadow, validate, one atomic switch, recovery)src/train/tg_store.[ch]E4: shadow state, validation before one atomic switch, OLD or NEW
SGD updater (float32, optional heavy-ball momentum)src/train/tg_sgd.[ch]E4: SGD first
Two-tier provenancesrc/train/tg_store.[ch]E5
Exit tests, plain + ASan/UBSantests/train/test_train.c, make test-trainE4/E5 exit gate (substrate level)
Receipttests/train/train_receipt.sh, make train-receipt -> evidence/M22/receipts/

On-disk layout (one directory per store)

Commit protocol

  1. Refuse if the shadow is not open (double switch), its base is not the current generation (stale), or sizes differ. Run the validation callback; refuse on reject. Every refusal is appended to refusals.log.
  2. Append the shadow's dispatch records to dispatch.log, chained, fsync.
  3. Compute the full state digest (tier b; the only place the model is hashed).
  4. Write shadow-N.tmp, fsync, read it back and verify the digest.
  5. rename to gen-N.bin, fsync the directory.
  6. Write CURRENT.tmp, fsync, rename to CURRENT (the one atomic switch), fsync the directory.

Recovery (tg_open): verify the generation CURRENT names (size, digest, pointer digest), delete *.tmp and generation files newer than CURRENT, truncate dispatch.log to the committed length and verify its chain against the committed head. A generation that does not verify is refused, never silently rolled back.

Provenance tiers (E5)

What the tests prove (host, single core)

Not done / limits