Skip to content

Latest commit

 

History

History
160 lines (137 loc) · 14.1 KB

README.md

File metadata and controls

160 lines (137 loc) · 14.1 KB

LARQL documentation

Class: CURRENT — index.

Start here

Guide For
Getting started Install, get a model, run, serve and look inside it, with expected output at each step
LQL guide Querying and editing a model with LQL
Glossary What VINDEX3, carrier, representation, lens and the other terms mean
What is VINDEX3? The idea behind the format, in one page
Status What works today and what is still research

Using LARQL

Guide Purpose
Execution Encode, execute, record and serve a VINDEX3 model
Runtime and serving The runtime stack and the OpenAI-compatible HTTP API
Representation Compile smaller representations (represent) and measure their cost (token-bank, measure)
Observation and intervention Run records, lenses, and what they can and can't establish
Plugins Codecs, encoders and backends loaded from shared libraries (--plugin)
CLI guide The broader larql command reference
Python Python bindings

Reference

Everything below is reference material: architecture, specifications, and the project's research record. Research protocols and results keep their own dates and status; a document appearing here does not mean the capability it describes is implemented.

Workspace guide Purpose
Stack architecture Ownership across every root crate and the nested experts workspace
Compute substrate Source description, CPU/Metal traits and V3 execution boundaries
Runtime surfaces KV, LQL, server/router, Factory and Python capability limits
Workspace facts Manifest-derived dependency/feature inventory
Current guide Purpose
What is VINDEX3? Model artifact, executable semantics and evidence
Architecture Ownership, plans, representations and backends
Execution Build, encode, execute, record and serve
Representation Compile packs (represent), measure them (token-bank, measure), candidate authority and evidence/search contracts
Plugins Codecs, encoders and lowering providers loaded from shared libraries (--plugin)
Observation and intervention Carrier/head evidence, lenses and counterfactual boundaries
Status Capability boundaries and current research
Generated facts Versions, schemas, extraction default and CLI inventories
Documentation policy CURRENT, NORMATIVE, RECORD and ARCHIVE authority

Index of the top-level documentation. One line per file; specs that live with their crate are indexed in specs.md. Subdirectories: adr/ (architecture decision records), audits/ (review reports), diagnoses/ (root-cause write-ups), ffn/ (FFN backend docs — weight, sparse, walk, distributed).

Formats, specs and research records

Doc One line
format.md LARQL graph format specification (v0.1.0)
vindex3-format.md VINDEX3 model-system container format — implementation guide (plan/encode/verify semantics), companion to the 3.0 Candidate Specification
vindex3-runtime.md VINDEX3 runtime stack — Vindex3Runtime, LogitsSession, the KV seam, V3 serving over /v1/completions, /v1/chat/completions, /v1/responses
observatory.md LARQL Observatory v0.1 product proposal — HAUSE instrument, local/hosted execution, coordinated views, replay and real-model acceptance
vindex3-observation-contract.md Draft observation contract — canonical taps, event identity, bounded capture, loss accounting, transport, privacy and receipts
head-obs-1-per-head-observation.md HEAD-OBS-1 — pre-registered per-head observation rung: head-sum / source / parity / accounting laws, emergence and precursor witnesses on the INSTRUMENT-1 bank, no causal labels
instrument-1-calibration.md INSTRUMENT-1 — pre-registered calibration of vindex3 observe readers, Anatomist DLA/lens and Observatory against the sealed EDGE-1 bank on Gemma 3 4B (12B replay); case set, readers, questions and forecasts frozen
instrument-1b-lens.md INSTRUMENT-1b — pre-registered: the V3-LENS-1 lens pointed at the emergence write on the INSTRUMENT-1a cases (no new selection); rank/top-1 before, at and after L23 (L35 on 12B)
v3-obs-1-carrier-observation.md Frozen executor-side carrier observation rung for the VINDEX3 Observatory contract: leave_site tap, parity/reconstruction properties, witness map, and capture-cost protocol
v3-head-obs-1-per-head-observation.md Frozen V3-HEAD-OBS-1 rung: per-head distribution and pre-projection output from the one softmax kernel, per-layer coverage on the receipt, the per-head and per-source split identities, and the first HEAD-2 reading
v3-intervene-1-carrier-intervention.md Frozen V3-INTERVENE-1 rung: Zero/Add/Replace on one declared carrier address, vector provenance, the no-op law, receipt fields, and the first causal arm (HEAD-1 CARRIED)
v3-intervene-2-head-intervention.md Closed V3-INTERVENE-2 rung: in-kernel softmax head Zero/Scale/Replace, provenance and the additive-versus-counterfactual comparison
v3-attr-1d-descriptive-support.md ATTR-1D normalization contract for descriptive head/source support
gw-vindex3-walk-phase1.md VINDEX3 graph-walk programme — sealed GW-0 through the operator-aware transition-support successor
gw-head-1.md GW-HEAD-1 — frozen L24H1 necessity/sufficiency result and the boundary before source-key attribution
gw-key-1.md GW-KEY-1 — frozen source-role K/V causality protocol through immutable L24H1
gw-read-1-results.md GW-READ-1 — cached Q/K pass, while V construction, composition and economical execution fail
gw-v2-results.md GW-V2 — sealed 35-cell causal payload surface with no registered early frontier
gw-state-1-results.md GW-STATE-1 — carrier-plus-edge result, with the historical fallback erratum recorded separately
gw-car-1a-results.md GW-CAR-1A — captured-carrier compactness: sparse top-32 clears at 192 bytes; no cheap-construction claim
gw-car-1b.md GW-CAR-1B — original source-design draft and rationale; executable protocol and closed result follow below
gw-car-1b-execution.md GW-CAR-1B — executable capital-cohort protocol: 67 fresh subjects, 20 sources/controls, and a 104-readout simultaneous family
gw-car-1b-results.md GW-CAR-1B — 0/10 registered sources clear; the zero control clears and the top-32 oracle fails on fresh capitals
gw-car-1b-evidence-archive.md GW-CAR-1B — where the 57 raw output files are archived (registry run, R2 object, SHA-256 manifest) and how to retrieve and verify them
gw-transition-support-paths.md GW-TS-1 frozen protocol — semantic transition identity, realization-specific support paths, held-out recurrence and prefix prediction
gw-ts-1-dependencies.md GW-TS-1 dependency freeze — observational prediction and causal attribution fork after ATTR-1D, then rejoin only before executability
prec-diag-a64-op-audit-backfill.md PREC-DIAG A64 operation-level dtype audit (#897) — diagnostic backfill over Gemma 3 and Qwen3; sealed verdicts unchanged (JSON)
prec-diag-qwen3_5-oracle-qualification.md PREC-DIAG oracle qwen3_5 family (#897): text-config loader, f64 patches with a step-by-step recurrence witness, A32r scope, diagnostic A32rec; real-checkpoint A64 qualification (diagnostic, no accuracy)
vindex3-experiments.md Pre-registered VINDEX3 experimental programme (the V2-0..V2-4 gates)
vindex3-ontology-drill.md The four-architecture ontology drill (candidate §17.4) — run 2026-08-30, findings F1–F16
lyrw-v2.md LYRW v2 — the K3 routed-layer physical-layout gate (storage half of K3)
specs.md Pointer page: which spec lives with which crate
knowledge-pipeline.md Stub — placeholder for the knowledge pipeline spec

CLI, language, bindings

Doc One line
cli.md Broader larql CLI guide; VINDEX3 command inventory is in generated facts
lql-guide.md LQL quick-start guide
lql-session-service.md larql serve-session and larql.connect: the restricted, out-of-process session service, its policy, protocol and limits
Python crate Current bindings/build guide; earlier API draft retained as archive

Engine and runtime

Doc One line
inference-engine.md Inference engine — compute substrate (ADR-0022 layout), attention, FFN backends
ffn-graph-layer.md FFN graph layer — mmap walk faster than dense (517 ms vs 535 ms)
ffn-cache.md FFN activation cache — skip recomputation of repeated feature sets
ffn/README.md FFN backend family — WeightFfn, SparseFfn, WalkFfn, distributed sharding
kv-residency-contract.md The KV residency contract — window vs storage vs residency, disentangled
kv-attention-scaling.md KV attention scaling — measurement schema + run hygiene rules
metal-kernel-capabilities.md Dated Phase B audit; current Metal ownership and controls are in the crate README
mech-interp.md Mechanistic-interp surface — hooks, lens, ablation, steering, patching
residual-trace.md Residual stream trace — decomposition, storage, tiered context
multi-modal.md Multi-modal support — Phase 0–2 shipped, phases 3–6 design-only
virtual-experts-dispatch.md Virtual experts — bounded routing into typed, sandboxed WASM compute units
confidence.md Confidence scoring for query results

Extraction and knowledge

Doc One line
weight-extraction.md Weight extraction pipeline — model weights → vindex, no bulk forward passes
training-free-insert.md Training-free knowledge insertion — residual capture + feature writes
validation.md Graph validation — extraction faithfulness checks
circuit-types.md Circuit type analysis — gate/down cosine classifies feature roles
findings.md Research findings from querying Gemma 3 4B weight vectors
walk-boundary-sweep.md Walk boundary sweep — correctness across all layer boundaries

Research programmes and funnels

Doc One line
vindex-factory.md Vindex Factory — recipe-driven, verified, remote-executed builds
model-publishing.md Republishing models — the 2026-08 manual recovery and the recipes it demands
k3-funnel.md K3 adapter ladder — GPT-OSS-20B → Kimi Linear → K3
glm5-flash-funnel.md GLM-5.3-Flash funnel — admission, census, and the GLM53-PHYSICAL 20 tok/s programme (321 B, KDA + DSA + mHC)
dec-funnel.md DEC funnel (v0.5, current) — decoupled attention/weights serving
dec-funnel-v0.4.md DEC funnel v0.4.1 — superseded by dec-funnel.md
dec-funnel-v0.2.md DEC funnel v0.2 — archived; control plane and gates inherited by reference
tts-funnel.md TTS funnel — audio-token output (MOSS-TTS-Realtime), ~1.9× realtime CPU
quant-obs.md Quant-Obs — observer-metric ladder for quantisation error allocation
fleet-routing-extensions.md Fleet routing extensions FR1–FR4 — spec + frozen pre-registrations
fhg.md FHG — Fourier heuristic graph programme (behavioural, model-agnostic)
authority-control-plane.md Authority control plane (EXP-26..38) — layer-mechanism branch closed
kimi-precision-topology.md Kimi Linear 48B — the PRECISION-1 topology, the first complete REPRESENT chain
represent-optimizer-mcp.md REPRESENT as a queryable optimiser — map DAG, MCP surface, and the search ladder to MCTS (design)

Positioning

Doc One line
positioning.md Historical positioning/aim-validation record; current framing is in the stack architecture