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 / spec / state-projection.md

230 lines · 10474 bytes Raw Blame History Source

Cognitive state projection

Gate OMEGA_STATE_PROJECTION_PASS.

Rule

Cognition does not get "everything the system knows". A cognitive operation states what it needs (CognitiveNeed). Omega turns that need into the smallest state that is enough for the operation (StateProjection), using typed queries to Cortex. Cortex never hands over its history.

CognitiveNeed { goal, operation_class, required_fact_types[],
                required_temporal_scope, required_world_scope,
                uncertainty_requirement, evidence_requirement,
                memory_scope, resource_budget }
        ↓  pj_compile (typed Cortex queries)
StateProjection { canonical_world_refs[], cortex_refs[], derived_features[],
                  temporal_windows[], hypotheses[], uncertainty[],
                  evidence_refs[], excluded_state[], recoverability_manifest }

Nothing here is text or tokens. A projection holds object references, typed summaries and derived numbers. "Compile" means selecting and shaping state from a declared need. It generates no code. It is not an Omega compiler (see the M6 note in the project memory).

What runs

Code:

Test: tests/runtime/rx_state_projection.c with tests/runtime/rx_sp_workloads.{c,h}. Run it with make test-state-projection. The build compiles rx_cortex.o and rx_projection.o on their own. It fails if either one references the world, a faculty or Omega realization code.

Cortex

Every object is a fixed header plus a payload of 64-bit words:

It carries a SHA-256 digest of its canonical encoding. The store keeps a running hash chain over every digest. Two axes are kept apart:

The indexes are kept per subject and in time order. A query costs the objects in its range, not the size of the store.

Scope: one in-memory tier. The doctrine's L1/L2/L3 tiers (accelerator memory, host memory, NVMe) are not implemented.

Treatments

TreatmentMeaningForm
PINNEDalways present; never dropped for budgetfull
LIVEthe current value (with LATEST it is canonical world state)full
DERIVEDreplaced by one computed feature (count, sum, sum of squares, min, max); the sources can be recoveredfeature
RECALLABLEreference; the body can be recalled on demand, digest-checkedref
COMPRESSIBLElossy summary of a sample series; the source can be recoveredsummary
REFERENCE_ONLYidentity, header and digest onlyref
EPHEMERALvalid for this operation only; outside the recoverability contractfull
BRANCH_LOCALonly from the need's hypothetical branch; the main line never sees itfull
PROTECTED_EVIDENCEevidence and protected state; never summarizedfull, or ref with exact digest

Protected state

Five kinds of state are protected:

These carry protection bits in Cortex. A need that asks to summarize, derive or make ephemeral any protected object does not compile. The whole projection is refused (PJ_ERR_PROTECTED). Nothing is silently weakened. Protected state appears in full, or as a reference that keeps its exact digest.

A budget smaller than the pinned and protected state is also refused (PJ_ERR_BUDGET). The compiler never trims silently.

Excluded state and recovery

Excluded objects are not copied. The projection records three things:

pj_audit goes through Cortex object by object. It gives each excluded object exactly one reason (subject, type, time, branch, superseded, derived source). It checks that each one is still intact, and that the projection's counts agree.

pj_recover_all checks every entry against Cortex:

Gate

Consumer: an explicit, rule-based reasoner in the style of R11's statistical AIEN (part A), and the R11 AIEN faculty itself (part B). **Neither is a neural model.** The consumer reads a projection and the whole store with the same code, and filters for relevance itself. It therefore pays for every object it is handed.

Histories are generated with planted answers. The generator decides the cause, verdict or choice first, then writes a history in which it is true. Both runs are scored against the planted answer, not against each other.

Part A has five operations, each run on 24 histories of 64 subsystems (about 43,000 Cortex objects and 6.8 MB each):

OperationNeed (abridged)
explain a regressionwindow since the last verified realization; own telemetry COMPRESSIBLE; resource changes PINNED; realizations of self and dependencies; prior regressions REFERENCE_ONLY (all time); hypotheses RECALLABLE; evidence as references
verify a cost claimthe claim (focus, PINNED) with its receipt in full; telemetry since the claim COMPRESSIBLE
plan the next experimentlatest authority grant PINNED; every past plan REFERENCE_ONLY (episodic memory)
what-if on a branchbranch-local changes; recent telemetry COMPRESSIBLE; the goal LIVE
assess a goal with uncertaintywindow = current generation; telemetry DERIVED into one feature with second moments; goal LIVE

Measured in a development run, as medians over 24 tasks. The committed receipt is from candidate run 20260928T211355Z, which has the same deterministic columns. Correctness, bytes and items touched are deterministic for the fixed seeds. Latencies vary from run to run. The committed evidence receipt is the authority.

OperationCorrect (whole / projection)BytesItems the consumer touchedEnd-to-end
explain regression24/24, 24/246,816,128 → 18,69686,008 → 2761.90 ms → 35 µs
verify cost claim24/24, 24/246,818,688 → 20,82443,024 → 1541.95 ms → 18 µs
plan next experiment24/24, 24/246,820,928 → 1,02443,038 → 81.74 ms → 7 µs
branch what-if24/24, 24/246,818,992 → 1,87243,025 → 141.79 ms → 4 µs
assess goal24/24, 24/246,819,376 → 33686,052 → 31.84 ms → 19 µs

End-to-end for the projection includes the compile. For the whole store it includes building the whole-store view. The gate also requires the projection end-to-end to beat the whole-store reasoning alone, so the result does not rest on the cost of handing the store over.

Part B uses the real R11 faculty (rx_aien.o, native Aienux authority). Each of 8 histories covers one regime's lifetime (24 records under changing placements), interleaved with three other regimes. It ends in a failed prediction whose planted cause is a core-class change or drift. The history is fed to the faculty twice:

The projection is the last verified record, its receipt as a reference, the demand since the record, and the placement carried in from before the window. Both runs produce the planted hypothesis and the same plan in 8 of 8 cases.

Part C is scale. For "explain a regression" at 16, 64 and 256 subsystems, the whole store grows from 1.7 MB to 27 MB. The projection stays at about 18 KB. Cortex objects examined stay at about 2,780.

Definitions

Controls that must fail

Not claimed