VibeScript Hub · Live Playground · Dev Docs (API) · Execution Profiles · QDNF map

Loading core language specification (vibescript-core.md)...

Normative Extension A: Omni-Scale Coordinate System (OCS) & Cosmic Primitives (OCS-10–OCS-13)

The Omni-Scale Coordinate System (OCS) (`crates/vibe/src/cosmic/`) defines the normative spatial, relativistic, and cosmological coordinate semantics for VibeScript (`vibe-0.1` and `vibe-0.03`). It spans 15 hierarchical scale levels from `L-2` (Planck quantum foam, $10^{-35}\text{ m}$) through `L3` (planetary WGS84 geodesy) to `L12` (FLRW cosmological horizon, $10^{26}\text{ m}$).

A.1 27 Cosmic Bytecode Opcodes (0xA0–0xBA) & NQuin Pose Opcodes (0x50–0x55)

Programs that declare using Cosmic; gain compile-time access to 27 cosmic bytecode opcodes (`0xA0`–`0xBA`) inside the stack VM (`VBC1`), alongside five NQuin predicate modality opcodes in `qualia-core-db`:

Opcode Range / ID Mnemonic / Kernel Normative Contract & ExactnessProfile
0xA0–0xA7 WGS84 ↔ ECEF ↔ ENU & ICRS → ITRS Closed-form Bowring geodetic conversion (`geodetic_to_ecef`, `ecef_to_geodetic`, `ecef_to_enu`) and IAU 2006/2000B precession-nutation + Earth Rotation Angle (`icrs_to_itrs`). ExactnessProfile::CertifiedBand.
0xA8–0xAF apply_lorentz_boost_into & Minkowski 4-Vectors Proper orthochronous Lorentz transformation $\Lambda(\boldsymbol{\beta}) \in \mathrm{SO}^+(1,3)$ (`OCS-10`). Enforces subluminal invariant $|\boldsymbol{\beta}| < 1$, computes $\gamma = (1 - \beta^2)^{-1/2}$, and preserves spacetime interval $s^2 = -(ct)^2 + x^2 + y^2 + z^2$.
0xB0–0xB6 Flat $\Lambda\text{CDM}$ Gauss–Kronrod $G_7/K_{15}$ Quadrature Cosmological redshift $1 + z = a(t_{\text{obs}})/a(t_{\text{emit}})$, comoving distance $\chi(z)$ via 15-point Gauss–Kronrod $G_7/K_{15}$ quadrature ($H_0 = 67.4\text{ km/s/Mpc}$, $\Omega_{m,0} = 0.315$), and `intercept_vector_comoving` (`OCS-12`) with `BeyondCosmologicalHorizon` guard.
0xB7–0xBA FloatingOrigin & 10D Observer Frustum (OCS-13) Decomposes multi-parsec coordinates into a 64-bit realm anchor + camera-relative local delta and projects 10D observer fibers into the WebGPU volumetric frustum without precision loss.
0x50–0x55 (NQuin) OP_COSMIC_POSE (`0x50`), OP_REALM_TRANSIT (`0x51`), OP_OBSERVER_FIBER (`0x53`), OP_MICRO_POSE (`0x54`), OP_ELEMENT_COLLAPSE (`0x55`) 48-byte Super-Quin predicate opcodes encoding world-line states, cross-scale realm transits, and observer frame fibers inside the 42 MiB Sentinel arena.

A.2 USRI & 16-Byte CB-USRI Grounding (MSB=0 Context Tokens)

Every cosmic coordinate is canonically identified either by a textual Universal Spatial Reference Identifier (`urn:omni:v1:<level>:<realm-path>`) or by a 16-byte compact binary header (`CompactBinaryUsri` / `CB-USRI`). When stored in an `NQuin`, the `context` word carries a 56-bit FNV-1a realm hash in bits `[0..55]` with `MSB=0` (sensitivity class in bits `[56..63]`), while inline object tokens mask hashes to 60 bits (`MSB=0`) to preserve the `resolver.rs` type-tag invariant.

Normative Extension B: Compile-Time Identifier Fabric Firewall (IDF-04 — Rules F5-A through F5-F)

To enforce the Qualia Decentralized Network Fabric (QDNF) constitutional invariant (handle ≠ human), the compiler pass vibe::check::fabric_guard (`crates/vibe/src/check/fabric_guard.rs`) inspects all AST declarations, type casts, record literals, and binary joins prior to bytecode emission. Violations abort compilation with `DiagCode::E100` and attach a machine-applicable `FabricSuggestedFix` JSON payload:

Rule Violation Identifier Static Rejection Condition Required Remediation (`FabricSuggestedFix`)
F5-A did_as_who Casting a `Did` (`did:key`, `did:web`, `did:q42`) to `NaturalAgent` or binding a DID directly to a `who` / `natural_agent` record slot. natural_agent_with_instrument_binding: model the DID as a rotatable `Instrument` on the `living-SHACL` plane bound by a revocable delegation edge.
F5-B vc_verified_as_truth Casting `VerifiableCredential` verification output directly to `Truth` / `Fact` (`vc_verified as Truth`). claim_opinion_evidence: wrap the verified credential in a subjective logic `ClaimOpinion` on the `artifact-OWL` plane.
F5-C qrc_or_observer_as_person_join_key Joining `Who` / `NaturalAgent` records on a spatial `QrcCoordinate`, `USRI`, or `ObserverFrame` key. spatiotemporal_handle_join: join on `SpatiotemporalHandle` (`artifact-OWL`) without collapsing co-location into person identity.
F5-D biometric_instance_as_who Casting a `BiometricInstance` sensor template to `NaturalAgent` or using biometrics as an immutable person key. biometric_family_with_consent: model as a consent-leased `Instrument` (`instrumentKind: "BiometricInstance"`) on `living-SHACL`.
F5-E natural_agent_as_owl_thing Typing a living `NaturalAgent` as an `owl:Thing` / `OwlThing` monotonic open-world class. living_shacl_natural_agent: keep `NaturalAgent` on the context-gated, revocable `living-SHACL` plane.
F5-F ai_agent_or_same_as_person_collapse Casting `AiAgent` / `MachineDeviceId` to `NaturalAgent`, emitting `owl:sameAs` across person nodes, or invoking prohibited surveillance/fusion functions (`person_score`, `identity_confidence`, `same_person`). instrument_with_sponsor_natural_agent: keep autonomous agents as `Instrument` nodes linked to a sponsoring human `NaturalAgent`; delete probabilistic person-fusion calls.

Normative Extension C: VibeScript vibe-0.03 Physics, Quantum & Etalon Continuum Bindings

The vibe-0.03 dialect profile extends the capability catalog for deterministic multi-physics, quantum electronic structure, and 10D spatial containers:

  • Quantum Statevector & Hamiltonian Circuits (Quantum.*): Compiles Variational Quantum Eigensolver (VQE) ansätze, Trotterized Hamiltonian evolution operators, and Hartree-Fock / DFT analytical molecular integrals (`STO-3G`, `def2-SVP`, Obara-Saika / Rys quadrature, DIIS RHF/UHF SCF convergence to $10^{-8}\text{ E}_{\text{h}}$). StateVector outputs map deterministically to `did:q42` topological `NQuin` pointers (`MSB=1` in `object`) scheduled via the `qualia-q-forge` QGroup heuristic.
  • 10D Binary Containers (Container10D, M64, EMF64): Binds `.10d` living container chunks (`PROC1` procedural CSG/SDF, `EONT1` embedded ontology, `MRP1` material response, `SKL1` PGA bone hierarchy) together with 64-byte aligned 10D manifold state records (`M64`) and 4D electromagnetic field volumetric tensors (`EMF64`).
  • etalon-sim Multi-Physics Continuum: Executes inside a deterministic 64 Hz (`15.625 ms`) fixed-timestep loop coupling 3D SDF + Exact B-Rep XPBD rigid/soft-body dynamics, Rank-2 Cauchy stress fracture cleavage, Projective Geometric Algebra ($\mathbf{Cl}(3,0,1)$) motor skinning, and Holosonic 3D wavefield synthesis under `ExactnessProfile::DeterministicBounded`.