neural/rune/specs/execution.md

three execution modes

← specification index


pure — proven by construction

every reduction in the pure subset has a Nox trace, which has a zheng proof.

|=  [x=@nebu y=@nebu]
(add (mul x x) (mul y y))

reactive — event-driven computation

a hint yields execution until matching data arrives. the kernel is a pure function (subject, event) -> (new-subject, effects) — the event is the witness. Nox is confluent: reduction order does not affect the result. the proof is conditional on the event log — given the sequence of events as witnesses, every step is fully provable.

|=  p=#
|-
=/  e   ~hint:%particle.p
=/  r   !rank.p
?:  (gth r 0.5)
  !cyberlink.p.^truth.+1
$

the runtime parks the trap. when radio delivers a matching event or the cybergraph observes the addressed particle change, the runtime resumes with the event noun in the appropriate subject slot.

host — the only genuine trust boundary

a host call runs native code outside Nox — WASM module, wGPU shader, glia inference. the call returns a noun. the proof system records "host result was N" as a witness; the surrounding pure computation is provable conditional on that witness. the host computation itself carries no Nox trace.

=/  features  ~host:%infer.model.input
=/  ranked    (rank-by-features features)

the proof spectrum is three tiers:

unconditional proof:    any pure digraph reduction, mold normalization, arm lookup
conditional proof       any computation containing hint — proven given the event log
  (event log witnesses):  as witnesses. full provability, external inputs as given
conditional proof       any computation containing host — proven given the host
  (host witnesses):       results as witnesses. trust boundary is the host itself

events are cybergraph-native and verifiable by anyone. host results require trusting the host runtime. the event log is the difference between the two.


eval is intrinsic

Nox has .* — evaluate formula against subject. eval is one digraph, the same kind as add or cons.

=/  src   "(mul x 2)"
=/  ast   (parse src)
=/  form  (lower ast)
.*(.  form)

macros, interpreters, hot patching, runtime DSLs — all are special cases of .*.


instant start

between source becoming available and execution starting, only parsing happens. parse → Nox noun → tree-walk reduction begins immediately. no compilation phase. latency bounded by parsing time — milliseconds for any human-scale program.

instant start enables:

  • REPL-style interaction with the cybergraph
  • agent kernels reacting to events with low latency
  • eval() of dynamically-built formulas
  • hot code reload by subject rewrite
  • dialects evaluated on demand
  • the cyb/robot starting up and being responsive immediately

instant start is non-negotiable. every architectural decision is checked against one question: does this preserve the ability to run the program the moment its source becomes available, with no phase between?

Homonyms

execution
Execution A neuron executes admitted progs through the existing Rune machine. Work pins code, state revision, input, context and a finite allowance. Ward supplies current host authority independently of those data. The exact persisted fields belong to [data](/soft3/neuron/specs/data) and [runtime…
soft3/glia/run/specs/execution
Execution contract How a loaded `.model` turns into output tokens / audio samples / image pixels. The runtime's public API and internal dispatch rules. Load phase Steps: 1. mmap the `.model` file (read-only). 2. Parse text sections (config, tensors, vocab). 3. Validate config schema and tensor…
warriors/erga/.claude/tasks/blake-batch-owner/execution
Blake batch owner execution Stage active: implementation and scoped gates complete; fresh different-vendor CODE review APPROVE received. Research and plan remain the original reviewed snapshots. This execution note records later state without rewriting review inputs. Serves Kadek foundation row 6's…
soft3/radio/.claude/tasks/kadek-memstore-pairs/execution
Execution notes Fresh PLAN v2 APPROVE received; source scope remains the approved two store writers. The original immutable PR32 right-proof.bin will be copied byte-identically into iroh-blobs/src/store/mem/parent_pairs/right-proof.bin for package-safe include_bytes!. This preserves the approved…
warriors/erga/.claude/tasks/rtable-owner/execution
RTable owner execution Stage active; serves Kadek foundation row 6, discovered-from Honeycrisp PR14 and Erga PR1. Implementation base is Erga `14b40d667b7fa927f62f46423cd8096f01cf704f`, Honeycrisp `9cbd48070a136e24711896c930670fcff8a147fc`, Strata `494df7a0973ae10a6cc1c2022e644d70449a29d6`.…
soft3/radio/.claude/tasks/bao-root-policy/execution
Execution notes Approved plan v3 remains frozen. Fresh Opus source-only PLAN review: `/tmp/kadek-bao-root-policy-plan-v3-review.txt`, explicit APPROVE, session99218 exit0 (root receipt). Implementation starts from radio258724bd with exact Hemera23f3bbcf; no commit or release is part of this…

Graph