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 / visor.md

196 lines · 12065 bytes Raw Blame History Source

Omega Visor V1 — terminal-first semantic interface

Status: V1 (terminal viewport). Start commit ceb68d69b6d0b6b11066d4a64f9fadc3f7bf21b5.

1. What the Visor is

Omega Visor is the human/agent interface for inspecting, constructing, verifying, realizing, executing, comparing and understanding Omega semantic state. It is a viewport over the existing canonical objects, not a second semantic system.

OMEGA
├── Omega Language   (spec/omega-language-v0.md)     surface syntax, disposable
├── Omega Compiler   (src/language/omega_lower.c)     lowers into OmegaGraph
├── Omega Runtime    (src/runtime/)                   resident World, generations
├── Omega Library    (src/omega_library.c)
└── Omega Visor      (src/visor/, tools/omega.c)
       ├── Console            visor_console, visor_parse_command
       ├── Semantic Explorer  visor_semantic
       ├── World Explorer     visor_world
       ├── Machine Explorer   visor_machine
       ├── Evidence Explorer  visor_evidence (+ visor_verify)
       ├── Cortex Explorer    (V3, not built)
       ├── J-Space Explorer   (V3, not built)
       └── Realization Lab    visor_realization

2. Non-negotiable rules (enforced by code and tests)

  1. OmegaGraph is the only source of meaning. Every view derives from canonical objects; nothing in src/visor stores a second copy of semantics.
  2. No second AST. The language parse tree (src/language) is scratch storage that is lowered and discarded; its identity is never used.
  3. The Visor may inspect, propose, construct, simulate, or request. It cannot grant. VisorEffectRequest has no authorized state and no setter (spec/visor-authority.md). The link check tests/visor/check_authority_link.sh fails the build if any console/visor/language object references an authority-mutating runtime symbol.
  4. Effectful work: `Visor -> semantic request -> EffectIntent -> AEGIS/PHYSICS authority -> bounded execution -> receipt`. The console prints that route and refuses to execute.
  5. No hidden reasoning is shown. Output is typed views: objects, verification rows, realizations, cost classes, evidence records, machine models.
  6. tools/omegatool.c is untouched; it remains the qualification/reference tool.
  7. The omega binary is physics-free: it links only the core object set in mk/00-visor-core.mk and builds with PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0.

3. Session model (src/visor/visor.h, lead-owned)

A VisorSession holds one OmegaGraph, named bindings (let x ..., fn ...), the _ last result, and bounded tables of OmegaPrograms and realizations (VisorRealizationEntry). A binding names an object id, a program index or a realization index; visor_resolve accepts _, a name, a 64-hex id or sha256:<hex> and fails closed on anything else.

A realization entry records both subject_id (what the user asked to realize, e.g. an apply) and real.semantic_id (what the existing realizer keyed on, e.g. the operation). Neither is invented; both are shown.

4. Commands (V1)

commandclassbacking API
help, quit, bindings, clearconsolevisor_console
let x: u64 = 7, x + y, fn ...constructionomega_language_eval_line -> OmegaGraph builders
inspect <x>, type <x>, id <x>, graph <x>inspectionvisor_semantic
verify <x>inspectionvisor_verify (existing omega_verify_* only)
machineinspectionvisor_machine
realize <x> [for current.machine], alternatives, compare, why, costinspection / constructionvisor_realization
run <x>pure executionvisor_realization_run_pure -> omega_exec_native_f3; refused when visor_effect_request_classify says authority is required
evidence <x>inspectionvisor_evidence over evidence/ receipts
worldinspectionvisor_world (unattached in the V1 binary; see §6)
effects <x>effect requestvisor_effect_request (unauthorized request only)

Modes: interactive omega; omega --command "<line>" (repeatable); omega --script <file> (- = stdin); --json prints one JSON object per command. JSON is a serialization of the view, never canonical bytes.

Result printed for x + y comes from visor_semantic_eval_u64, which walks the canonical apply and calls the existing omega_eval_pure_binary_uint with the opcode/overflow/width read from the OPERATION object. run executes the realization's machine code. Verify V1 (differential) checks the two agree.

5. Cost and evidence vocabulary

predicted (static model), estimated (machine-model latency), measured (from a receipt), qualified (measured under a qualification run) are four separate slots in VisorCostView; V1 never fills measured or qualified. Evidence scope is reported exactly as the receipt states it (host, qemu, silicon, simulated, or unknown); the Visor never upgrades scope.

5a. Behaviour rules worth knowing

6. Known gaps in V1 (non-claims)

6a. Findings in existing code (found by the Visor lanes; not fixed here)

7. Qualification

tests/visor/qualification/ + tools/qualify_visor.sh (shell glue only; every assertion lives in C tests and .omega-session scripts). Run it on a committed tree: tools/qualify_visor.sh [--skip-regression] [--no-asan] [out-dir]. It rebuilds the Aienux capability library from the commit in aienos.lock (as CI and tools/effect_cap64_receipt.sh do) and records its identity (commit, source tree, lib sha256) in the receipt. Receipts live in evidence/VISOR/ as content-addressed JSON, never overwritten; the tool writes only a new receipt and never edits tracked files (evidence/VISOR/VISOR_V1_QUALIFICATION.md is the frozen summary written by the retired Python glue up to receipt #5):

receiptcommitverdictnote
12785aab…jsonec2ec0bOMEGA_VISOR_V1_FAILfound run arg-count and --script directory defects
4de74cf3…jsond7e8a4cOMEGA_VISOR_V1_PASSafter the fixes; 69 hostile cases, 0 crashes
98a63b2e…json23feaadOMEGA_VISOR_V1_PASSclean tree (tree_dirty=false), same counts as receipt #2
15d6703c…json6627da2OMEGA_VISOR_V1_FAILpre-fix merge of 64-bit effect generations
632ba16d…json8a7d95eOMEGA_VISOR_V1_PASSmerged tree, authority test adapted to 64-bit generations

Scope of every receipt: host-only, this DGX Spark, no GPU/silicon claim, GPU gate suites (m12/m15/m17–m19) not run because the Visor does not touch them. Gates:

OMEGA_VISOR_SEMANTIC_PASS            language golden vectors + semantic inspection tests
OMEGA_VISOR_VERIFY_PASS              verify/evidence tests + end-to-end verify script
OMEGA_VISOR_REALIZE_PASS             machine/realization tests + realize/cost/run script
OMEGA_VISOR_AUTHORITY_ISOLATION_PASS hostile tests + link check
OMEGA_VISOR_REGRESSION_PASS          existing CPU gates unchanged; GPU gates skipped when .spark-quiet exists
OMEGA_VISOR_V1_PASS                  all of the above, recorded in evidence/VISOR/

8. After V1 (documented, not implemented)