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
omega-mv / spec / semantic-object.md
| 1 | # SPECIFICATION: The OMEGA Semantic Object Model |
| 2 | |
| 3 | ```text |
| 4 | Document ID: SPEC-OMEGA-OBJECT-M4 |
| 5 | Classification: Sovereign Semantic Specification |
| 6 | Target Substrate: Content-Addressed Directed Graph (G_S) |
| 7 | Status: RATIFIED FOR M4 (OMEGA_SEMANTICS) |
| 8 | ``` |
| 9 | |
| 10 | --- |
| 11 | |
| 12 | ## 1. Semantic Universe Categories |
| 13 | |
| 14 | Milestone 4 defines eleven first-class semantic object categories: |
| 15 | |
| 16 | ```text |
| 17 | VALUE |
| 18 | TYPE |
| 19 | OPERATION |
| 20 | RELATION |
| 21 | CONSTRAINT |
| 22 | MEMORY |
| 23 | MACHINE |
| 24 | EFFECT |
| 25 | REALIZATION |
| 26 | EVIDENCE |
| 27 | PROOF |
| 28 | ``` |
| 29 | |
| 30 | These categories are ontological primitives of meaning. In any host implementation (such as this bootstrap C scaffolding), host data structures represent temporary computational vessels, not the semantic definition itself. |
| 31 | |
| 32 | --- |
| 33 | |
| 34 | ## 2. Canonical Object Model |
| 35 | |
| 36 | Every entity in OMEGA is an `OMEGA_OBJECT` in the directed semantic graph $G_S = (V, E)$: |
| 37 | |
| 38 | ```text |
| 39 | OMEGA_OBJECT { |
| 40 | semantic_id: SemanticId (32 bytes SHA-256) |
| 41 | kind: SemanticKind (1 byte tag) |
| 42 | attributes: Map<String, Value> (Lexicographically sorted) |
| 43 | relations: SortedSet<SemanticRelation> |
| 44 | constraints: SortedSet<SemanticConstraint> |
| 45 | payload: SemanticPayload (Kind-specific content) |
| 46 | } |
| 47 | ``` |
| 48 | |
| 49 | ### Reference by Semantic Identity |
| 50 | - Pointers inside OMEGA do not reference host virtual memory addresses (`0x7fff...`). |
| 51 | - All cross-object references use the 32-byte cryptographic `SemanticId`. |
| 52 | - An object graph is fully relocatable across processes, machines, network fabrics, and storage media without pointer patching or swizzling. |
| 53 | |
| 54 | --- |
| 55 | |
| 56 | ## 3. Pure Computation vs Physical Effects |
| 57 | |
| 58 | OMEGA maintains an unyielding division between pure mathematical meaning and physical effects: |
| 59 | |
| 60 | 1. **Pure Semantics**: |
| 61 | Mathematical definitions whose evaluation involves zero interaction with the physical universe (e.g. integer arithmetic, boolean logic, bit-slicing). Pure semantic objects require zero capability authority. |
| 62 | |
| 63 | 2. **Physical Effects (`OMEGA_EFFECT`)**: |
| 64 | Descriptions of intended physical interactions (e.g. console telemetry, physical memory frame grants, hardware telemetry readouts). |
| 65 | An `OMEGA_EFFECT` object **does not execute the effect**. It defines: |
| 66 | - Target resource class |
| 67 | - Operation semantics |
| 68 | - Pre- and post-conditions |
| 69 | - Expected invariants |
| 70 | - Required capability reference |
| 71 | |
| 72 | Lowering from an `OMEGA_EFFECT` to execution is performed by submitting an `EFFECT_INTENT` to the Physics M3 Effect Broker, which validates the kernel-private `CAPABILITY` and records an authoritative `EFFECT_RECEIPT`. |