XRAI   xrai://graph/self
v1.0 public · v1.2 draft · 2026-04-23 · cc0 schema · mit parsers

The semantic bus for any time-based stream.

XRAI ingests any stream — ARKit anchors, LiveKit packets, stock ticks, mocap, console logs, biosignals, LLM tool calls, news feeds, sim ticks — through a declarative schema mapping into a sparse semantic encoding, so any decoder (a renderer, a simulator, an agent, a generator, a game engine, a neural renderer) can render, replay, or build from the same bus.

§01 · INGEST
SOURCES → MAPPING → SSE → DECODERS

A neutral semantic middle.

Each source ships a declarative mapping. Each mapping emits sparse deltas keyed by entity path × timeline × ontology component. The wire format is plural; the shape is one. Below: a live transcript of the mapping claude-session-history-v1 ingesting ~/.claude/session-stats/history.jsonl into XRAI SSE at ~4 Hz. This is running right now in your browser.

raw — history.jsonl0 rows/s
sse — xrai-semantic delta0 deltas/s
    §02 · ONTOLOGY
    RFC 0013 · FACETED, LEARNING, SELF-REFERENTIAL

    Eighteen axes. One entry, many readings.

    The master ontology is not a tree. Every component, archetype, and relation is tagged along eighteen independent axes. Decoders filter on axis tuples: a physics simulator subscribes to A13 = classical-newtonian; a cultural historian subscribes to A15 = {social, cultural}; a diffusion renderer subscribes to A9 = latent. The ontology learns — unknown slugs arrive from ingestion, align via embeddings, promote via review.

    A·01
    Identity
    person · place · thing · concept · event · quantity · property · relation · agent · system · process
    A·02
    Temporality
    static · linear · non-linear · live-stream · recorded · snapshot · interval · recurring · counterfactual
    A·03
    Structure
    structured · semi-structured · unstructured · mixed
    A·04
    Topology
    atom · node · edge · hyperedge · graph · hypergraph · tree · lattice · bag · sequence · grid
    A·05
    Scale
    quark · proton · atom · molecule · protein · cell · tissue · organism · super-organism · ecosystem · biome · planet · star · galaxy · cosmos · (+ ling · narrative · digital)
    A·06
    Role
    data · algorithm · model · asset · file · schema · mapping · decoder · blueprint
    A·07
    Grammar
    symbol · referent · signifier · signified · noun · verb · adj · adv · det · prep · conj · interj · numeral
    A·08
    Dimensionality
    0D · 1D-t · 1D-s · 2D · 3D · 4D-spacetime · 4D-video · 5D-feature · ND-tensor
    A·09
    Modality
    text · numeric · image · video · audio · depth · pose · point-cloud · mesh · latent · shader-param · biosignal · haptic · thermal · EM
    A·10
    Provenance
    human · agent · sensor · simulator · generator · derived · inferred · annotated
    A·11
    Unit
    dimensionless · SI.* · ISO-8601 · currency.ISO-4217 · custom.*
    A·12
    Trust
    T1 battle-tested · T2 partially-validated · T3 speculative · T4 benchmarked-external
    A·13
    Physics regime
    newtonian · special-rel · general-rel · quantum-mechanical · quantum-field · statistical · thermodynamic · continuum · lattice · none
    A·14
    Dynamics
    deterministic · stochastic · probabilistic · chaotic · emergent · reductive · adaptive · equilibrium · non-equilibrium
    A·15
    Causality
    physical-law · interaction · force · entropy · free-energy · information · selection · mutation · learning · design · intention · social · cultural
    A·16
    Origin
    innate · genetic · epigenetic · developmental · environmental · learned · cultural · designed · mixed · gene-environment
    A·17
    Expression
    bio: genotype → protein → phenotype → behavior · sw: source → compiled → runtime · phys: law → field → particle · design: concept → spec → product
    A·18
    Emergence
    fundamental · composite · weakly-emergent · strongly-emergent · irreducible
    §03 · STRATA
    QUARK → CULTURE · ONE SCHEMA, ALL SCALES

    Every scale obeys the layer below — and has its own emergent laws.

    A stock tick, a motion-capture joint, a gene expression event, and a quantum orbital land on the same bus with the same delta shape. The difference is which facet tuple they populate. Decoders decide what to do with each stratum: render as space, chart as series, simulate as physics, narrate as story.

    L9
    Culture · society · memes
    A15=cultural A18=strongly-emergent
    L8
    Mind · cognition · language
    A15=learning, intention A18=strongly-emergent
    L7
    Organism · behavior · ecology
    A14=adaptive A15=selection
    L6
    Cell · tissue · organ · system
    A13=continuum / biochem A14=adaptive
    L5
    Biochemistry · metabolism
    A13=statistical A15=free-energy
    L4
    Chemistry · reactions
    A13=quantum-mech A14=stochastic
    L3
    Atomic · molecular
    A13=quantum-mech A5=atomic/molecular
    L2
    Subatomic · fields
    A13=quantum-field A18=fundamental
    L1
    Spacetime · cosmology
    A13=general-rel A5=cosmos
    §04 · DECODERS
    RFC 0012 · PLUGGABLE CONSUMERS

    If it consumes deltas, it can render, replay, or build.

    A decoder declares what ontology components it reads and what it produces — pixels, a simulated world, a downstream stream, a converted file, tokens, actions. A single SSE stream drives many decoders in parallel. Agents and generators are first-class: they can emit back into the bus.

    Unity · VFX Graph

    kind · renderer  ·  rate · 90 hz

    HDRP + VFX Graph draws Portals holograms on iPhone + visionOS. 370+ shader networks wired from SSE components at 11 ms latency.

    consumesHologram, Primitive, Lightproducespixels · display://unity

    3D Gaussian Splatting

    kind · neural  ·  modality · latent + pose

    NeRF-on-the-fly / 3D-GS / diffusion-conditioned renderers pick up any pose + latent stream and render photoreal without re-authoring.

    consumespose_6dof, neural_latent, rgb_imageproducespixels · GPU readback

    LLM scene expander

    kind · generator  ·  bidirectional

    Reads a seed entity + voice intent, writes new SSE deltas. “a mystical forest with floating lights” becomes a subtree of ontology-typed entities.

    consumestext, intent, entity seedproducesSSE · emit() stream

    jARvis · MCP server

    kind · agent  ·  tool_call ↔ tool_result

    Tool calls and chain-of-thought roll onto the bus as deltas. jARvis consumes scene state, emits edits, runs inside Portals or any MCP host.

    consumestool_call, thought, plan_stepproducesactions · SSE · text

    SSE → Rerun .rrd

    kind · bridge  ·  round-trippable

    Replay an XRAI session in the Rerun viewer, or decode an existing .rrd as SSE via the inverse mapping. Zero lock-in.

    consumes*producesrerun .rrd Arrow stream

    xra1.com · force-graph

    kind · replayer + renderer

    This page is a decoder. It reads xrai://graph/self, renders the hypergraph, scrubs the timeline. Try shift-click a node.

    consumesEntity, Relation, EventproducesDOM · svg · canvas
    §05 · LADDER
    GRACEFUL DEGRADATION · T0 ALWAYS WORKS · T22 NEEDS A CLUSTER

    The same entity, rendered from one bit to a universe.

    Any XRAI document must display somewhere. Twenty-three tiers of fallback, from 1-bit existence to multiverse simulation. The host negotiates the highest tier it can render given the installed decoders + bandwidth + power. Every runtime ships T0–T6 as built-ins — worst case any doc is still readable as ASCII + emoji + a color-coded graph. HTTP works on 2G and on fiber; XRAI works on a terminal and on a render farm. Below: the same entity /scene/tree_1 displayed at every tier.

    T·00
    Existence
    1-bit
    T·01
    Binary / DNA
    ACGT · 01101
    sparse alphabet
    T·02
    ASCII label
    [tree_1]
    text
    T·03
    L-system rule
    F→F[+F][-F]F
    grammar
    T·04
    Emoji glyph
    🌳
    Unicode
    T·05
    Color shape
    geom + palette
    T·06
    Node graph
    flowchart
    T·07
    Timeline / chart
    scalar series
    T·08
    3D primitive
    cube / sphere
    T·09
    2D image
    raster
    T·10
    2D video / gif
    looping frames
    T·11
    3D mesh · glTF
    textured geometry
    T·12
    3D animation
    rigged + keyed
    T·13
    360 image
    equirectangular
    T·14
    360 video
    spherical frames
    T·15
    RGBD image
    color + depth
    T·16
    RGBD-stencil · hologram
    MetaVido · Portals
    T·17
    Rerun rrd
    Arrow multimodal
    T·18
    Schema · shader · VFX
    fn frag() {
      col = sdBox(p, r);
      return ring(col);
    }
    executable
    T·19
    Neural world
    3D-GS · NeRF · diffusion
    T·20
    N-dim hypergraph
    ECharts-GL · WebGPU
    T·21
    Quantum · prob cloud
    wavefunction
    T·22
    Universe · multiverse
    full sim · counterfactual

    Every decoder declares produces.tier in its manifest — the host negotiates the best match. Down-tier projection is lossy-but-readable (T22 universe → T6 node graph → T4 🌳). Up-tier synthesis is optional and tagged with provenance.inferred=true so downstream viewers can dim or flag guessed content. T0–T6 are mandatory built-ins.

    §06 · RFCs
    OPEN PROCESS · BDFL YR 1 · FOUNDATION YR 2+

    Change the spec by proposing an RFC.

    Anything that would bump the version touches an RFC. Discussion first, implementation after, rejected RFCs archived with a postscript. No silent drift.

    §07 · LIVE
    DEPLOYED · IN YOUR BROWSER · NO INSTALL

    Three decoders, one bus — running right now.

    Each of these is an XRAI decoder consuming the same SSE bus. Open all three in tabs; they read the same documents. This very page is one of them — the force-graph + html/css decoder rendering xrai://graph/self.

    try jARvis · agent decoder try conf · multi-user hologram try graph · force-directed viewer browse 14 example documents

    The format is DNA, not the organism.

    XRAI stores rules, seeds, and intents — not pixels, not geometry, not the full weight of the world. The software on the edge and in the cloud endows it with its look, dynamics, and interactions. The format itself is as lightweight and generative as the laws of physics.

    read v1.0 specs map (self) project map github
    license   CC0 schema · MIT parsers governance   BDFL yr 1 · foundation yr 2+ paper   CVPR 2026 4D-WM patent   USPTO 2026-04-08 origin   portals · 2026