VSAVM

Faithful surface realization

This page is a theory note. It expands the topic in short chapters and defines terminology without duplicating the formal specification documents.

The diagram has a transparent background and is intended to be read together with the caption and the sections below.

Related wiki pages: VM, event stream, VSA, bounded closure, consistency contract.

Related specs: DS004, DS011.

Overview

Decoding is a common place where systems silently reintroduce hallucinations. VSAVM treats decoding as surface realization of internal artifacts: if the VM did not derive a claim (or the budget was insufficient to verify it), the realizer is not allowed to present it as an unconditional fact.

Implemented today: deterministic rendering pipeline

The current implementation is intentionally conservative and deterministic. It lives in src/generation/generation-service.mjs and is used when rendering a query result.

  1. Claim selection: take the closure result’s claims (already produced by VM execution and bounded closure).
  2. Claim rendering: convert each claim term into a stable textual form (see ClaimRenderer).
  3. Uncertainty marking: if the closure mode is conditional, add lightweight qualifiers (see UncertaintyMarker).
  4. Mode adaptation: strict = render as-is; conditional = prefix with “Conditional”; indeterminate = return an explicit indeterminate message (see ModeAdapter).
  5. Audit hint: optionally append a short trace note when trace references exist (see TraceExplainer).

Fidelity preservation mechanisms

Fidelity is preserved by construction, not by a separate “truth checker”:

What is realized

The VM can produce a result mode, a set of claims (terms), conflicts, assumptions, and trace references. Today’s realizer focuses on claims-to-text. Higher-level report formatting can be built on top, but the invariant remains: every asserted line must correspond to a checked internal artifact.

Continuation is separate from decoding (DS011)

DS011 adds an optional macro-unit language model that can generate byte continuations under budgets. This is exercised in eval_tinyLLM for fair comparisons against a TensorFlow baseline. Importantly:

Quality assurance and validation

For surface realization, validation is mostly structural:

Why constraints matter

Without constraints, a fluent realizer can add plausible details that were never derived. Constraints turn the correctness contract into an end-to-end property: not only is the internal reasoning checked, but the emitted text is guaranteed to be a rendering of checked state rather than an additional source of information.

Audit and user trust

Faithful realization supports audit. When the user asks why a claim was made, the system can point to the underlying fact identifiers and trace steps. When it cannot justify a claim, it must degrade to conditional or indeterminate outputs rather than inventing.

decoding diagram
Decoding is constrained rendering: it formats checked claims and makes mode/budget limits visible. Continuation (DS011) is a separate optional mechanism and must not be mistaken for a truth source.

References

Natural language generation (Wikipedia) Explainable AI (Wikipedia) Verification and validation (Wikipedia)