soft3/conformance/specs.md

conformance specification

field value
version 0.2
status implemented — stack snapshot in soft3
authors mastercyb
date October 2026

canonical encoding

every Conformant type defines exactly one byte sequence as its canonical encoding. canonicity rules:

  1. fixed-width integers in little-endian
  2. variable-length values prefixed by length (varint)
  3. sets and maps in lexicographic order of canonical key encoding
  4. floats forbidden in any Conformant type
  5. nested Conformant values inlined under the same rules

a Conformant impl that admits two encodings of the same value is a bug.

fingerprint

fingerprint(value) = hemera(canonical_encoding(value))

hemera is cyber-hemera 0.3 (Poseidon2 over Goldilocks, 32-byte output); a different output width is a different fingerprint function and does not compile. 32 bytes, Goldilocks-field-aligned, proof-friendly. the fingerprint is the snapshot.

encoding snapshot file

the stack snapshot lives in soft3/conformance/snapshots/encoding.snap (per-crate conformance/ directories adopt the same format as each crate promotes its own types). shape — fingerprints are 64 hex digits, shortened here:

# generated by `cargo conformance --bless`; do not edit by hand
# encoding.snap — canonical encodings
hemera::params@v1               tier=gamma    hb246...0a1e
nebu::Goldilocks@v1             tier=gamma    h5276...e31c
nox::atom@v1                    tier=gamma    h4e3a...cb37

one line per type. one fingerprint per line. tier inline. @vN suffix permits parallel encodings during migration.

mechanism snapshot file

soft3/conformance/snapshots/mechanism.snap (same per-crate convention):

# generated by `cargo conformance --bless`; do not edit by hand
# mechanism.snap — mechanism outputs on fixed scenarios
nox::reduce@v1 :: "spec-add"         tier=gamma    h…
nox::trace@v1 :: "spec-add"          tier=gamma    h…
zheng::verify@v1 :: "quote-add"      tier=gamma    h…

scenario name is the lookup key. the fingerprint binds the mechanism's canonical output bytes for the named scenario — for nox, the reduction outcome and the trace; for zheng, the proof bytes and the verifier's verdicts.

tiers

tier meaning drift in CI bless ceremony
alpha mutable silent rewrite none
beta tracked note commit message notes change
gamma enforced fails build cargo conformance --bless
delta locked fails build --bless --tier delta + commit tag [conformance:delta]
epsilon governed fails build bless + detached signature appended to .snap file

promotion is one-way: alpha → beta → gamma → delta → epsilon. demotion requires the same ceremony as breaking a snapshot at the target tier.

tooling

cargo conformance --check                 # regenerate, compare byte for byte; CI and the release train invoke this
cargo conformance --bless [--tier <t>]    # regenerate snapshots + proof fixtures, print the entry diff
cargo conformance show <substring>        # print current fingerprint and tier of matching keys
cargo conformance manifest                # print the protocol stability root of the current build

a clean checkout has no installed subcommand, so the runner is built from soft3/conformance/rs (cyber-conformance, binary cargo-conformance):

cargo run --locked --manifest-path soft3/conformance/rs/Cargo.toml \
  --bin cargo-conformance -- conformance --check

the crate closes over the stack by path: its siblings (hemera, strata, nox, lens, zheng, tade, bbg, foculus, cybergraph, inf, tru, tok) sit beside soft3 — the release train's origin-default checkout layout. --stack <dir> and --conformance <dir> override the locations.

snapshot directory

path written by read by --check
conformance/snapshots/encoding.snap bless yes, byte for byte
conformance/snapshots/mechanism.snap bless yes, byte for byte
conformance/snapshots/manifest.snap bless yes, byte for byte — counts and root
conformance/snapshots/provenance.toml bless no — the sibling revisions and date of the last bless
conformance/fixtures/nox/*.nox hand input programs
conformance/fixtures/zheng/*.proof bless committed proof wire bytes, verified by the current verifier

each .snap file is a pure function of its entries: two comment lines, then one line per entry sorted by key, the key column padded to the longest key.

check

--check regenerates every entry from the current build and compares each file with the committed bytes. any difference is explained entry by entry:

change fails
entry added or removed always — the stable surface changed shape
fingerprint drift at gamma, delta, epsilon (as committed); reported as a note at alpha/beta
tier changed always — promotion and demotion are bless ceremonies
bytes differ, entries equal always — hand edit
manifest root differs, entries equal always — hand edit
fixture on disk read by no surface always
invariant violated always (below)

invariants hold independently of the snapshot: hemera agrees with its own published vectors (hemera/vectors/hemera.json; the tree section is the fixed-chunk tree, fixed_chunk_root), intt(ntt(x)) = x, fixture programs that state an outcome (result, cost, error, halt) produce it, every freshly produced proof verifies, and every committed proof fixture verifies under the current verifier.

bless

--bless regenerates the snapshots, rewrites the proof fixtures from the current prover, deletes fixtures no surface reads, records provenance.toml, and prints every change (added, removed, drift, retier). it writes nothing when an invariant fails, or when a change touches an entry above the allowed tier: gamma by default, --tier delta for delta entries (with the [conformance:delta] commit tag); epsilon entries never move without a detached governance signature. snapshots are blessed from the stack at its origin default branches — never from integration lines — and committed in the same pull request as the change that moved them.

surfaces

owner encodings mechanisms
hemera params hash (published vectors, sponge rate boundaries 55/56/57/112 bytes, 1000-byte ramp), hash_secret (= hash, invariant), keyed_hash, derive_key, tree::root_hash (content-defined) and tree::fixed_chunk_root across the 4 KiB chunk boundary, the raw permutation
nebu (strata) Goldilocks (canonical reduction) add/sub/mul over edge×edge and ramp×ramp, neg/square/pow7/inv, exp, sqrt + legendre, batch_inv, ntt (8, 32), multilinear_eval, bytes_to_field_elements, Fp2/Fp3/Fp4
nox atom, pair, tree, wire push/request/response reduce (outcome: result tree + cost, halt, or error kind) and trace (the rows zheng proves) for every fixtures/nox/*.nox program — the pattern spec's test vectors and one per pattern — and every nox/jets/*.nox formula
zheng ProofParams::default, Statement per scenario: commit (fresh proof wire bytes) and verify (verdict on the committed fixture plus nine single-bit tamperings). scenarios: three trace proofs without opening rows, the hash-binding proof [15 [1 42]], the Brakedown PCS open/verify_eval
tade every chunk constructor, LEB128 varints the incremental reader in 7-byte feeds, through Molecule and back
cybergraph — a file's particle, bbg::axon_id, bbg::balance_key, private_network, Scope::hash, Signal::hash and content_id, the bbg root after two signals pass the link verb

zheng's ZHENGPF1 profiles (0 public, 3 state-public, and the rest) live on the 0.4 integration line, not on zheng's default branch; each enters this surface as a commit/verify scenario pair when it lands there.

manifest construction

manifest_root = hemera(
  canonical_encoding(
    sort_by_name(all_encoding_snapshots ∪ all_mechanism_snapshots)
  )
)

the manifest binds the entire conformance state of the workspace into a single 32-byte root. a verifier that holds the root and a zheng proof learns the workspace's stability fingerprint at that git revision.

dependencies

crate role
hemera fingerprint function
nox mechanism simulator (deterministic VM)
zheng proves a manifest; manifest root is public input

conformance depends downward only. soft3 re-exports verify_conformance(root, proof) for clients that check a manifest without running the harness.

non-goals

conformance asserts that encodings and mechanism outputs do not drift. it does not assert correctness — a stable-but-wrong encoding still passes conformance. correctness lives in each crate's own test suite. conformance is the layer beneath correctness: it guarantees that yesterday's correct answer and today's are the same answer.

status

implemented in rs/ as cyber-conformance 0.2 with the cargo-conformance runner; the release train's conformance-snapshot gate runs --check (soft3 specs/releases.md). first bless: 2026-10-10, from the origin default branches recorded in snapshots/provenance.toml; evidence in audit/conformance-first-bless-2026-10-10.md. every entry starts at tier gamma.

next: per-crate Conformant adoption (mudra candidate), the ZHENGPF1 profile scenarios when they reach zheng's default branch, and a zheng proof over the manifest root.

Homonyms

specs
specs
cyber/specs
soft3/nox/specs
nox reference canonical specification of the nox virtual machine. this is the source of truth — when code and reference disagree, fix reference first, then propagate to code. specifications | page | scope | status | |------|-------|--------| | vm.md | overview, field, hash, algebra polymorphism,…
soft3/hemera/specs
Hemera: A Permanent Hash Primitive for Planetary-Scale Collective Intelligence | field | value | |----------|--------------------------------| | version | 2.0 | | status | Decision Record | | authors | mastercyb | | date | March 2026 | Abstract Hemera is the cryptographic hash primitive for cyber,…
soft3/bbg/specs
specs
neural/rune/specs
rune language specification rune K140 — working spec, mutations expected see [../README.md](/neural/rune/readme) for project overview and implementation status. specification | file | what it covers | |------|----------------| | [subject.md](/neural/rune/specs/subject) | the subject noun — the…
soft3/mudra/specs
mudra reference canonical specification for seven cryptographic primitives. each module proves a property. each module has its own security assumption. they share no cryptographic code with each other. modules | module | proves | security assumption | spec |…
cyberia/cyberia-my/specs
specs
soft3/cybergraph/specs
cybergraph specs cybergraph is exactly its structure, nothing more and nothing less: a cybergraph is built from signals; a signal is built from cyberlinks; each has a fixed, finite set of fields. these specs define those fields — one article per field — plus the two emergents that appear when you…
soft3/tru/specs
tru specs the build map for tru — the convergence vm. one pipeline, `.graph` → φ* → Δφ* → reward, specified across four layers. focusing computes φ*; compilation freezes it into a model; **economics is why any of it runs** — the proven focus shift Δφ* is what a neuron self-mints against. this index…
cyb/evy/specs
specs
neural/eidos/specs
eidos reference canonical specification of the eidos proof assistant. this is the source of truth — when code and reference disagree, fix reference first, then propagate to code. specifications | page | scope | status | |------|-------|--------| | terms.md | CIC term syntax, encoding as nox nouns,…
soft3/foculus/specs
specs
neural/inf/specs
inf specs — what canonical specification for inf, proof language #10 of the cyber stack (Infer — Horn clauses, relation/inference). the declarative twin of rune; sibling of Rs, Trident|Tri, Bt, Ten. specs/ is the source of truth. when specs/ and rs/ (implementation) disagree, resolve in specs/…
warriors/erga/specs
erga — specification What the application must do, and the invariants it may not break. The [docs](/warriors/erga/docs) explain how it does it. 1. purpose Mine Autolykos v2 on Apple Silicon and pay the proceeds to a wallet the user controls, with one visible action and no configuration required. 2.…
soft3/radio/specs
specs
soft3/zheng/specs
zheng: polynomial proof system one IOP: SuperSpartan + sumcheck (CCS constraints, O(N) prover, O(log N) verifier). one folding: HyperNova (CCS-native, ~30 field ops per fold, one decider at the end). one hash: hemera (~3 calls per proof — binding, Fiat-Shamir seed, domain separation). five…
warriors/joy/specs
specs
cyb/seer/specs
seer specs the contracts of seer, the miner of the mint. two pages: the mining loop and its boundary, and the first method that runs it. | spec | defines | status | |---|---|---| | [interface.md](/cyb/seer/specs/interface) | scope (existing→existing, no new files), inputs from tru and the…
cyb/wysm/specs
wysm reference canonical specification of the cyber wysm runtime. this is the source of truth — when code and reference disagree, fix reference first, then propagate to code. `wysm` is cyber's name for its wasm runtime. `wasm`/`WASM` is the WebAssembly format. `wasmi` is the upstream project this…
soft3/lens/specs
lens reference canonical specification for polynomial commitment — five lenses for five algebras. the trait three operations. commit is O(N). open produces a proof. verify checks the proof. all transparent (no trusted setup), all post-quantum. see trait for the full specification. naming convention…
soft3/mir/specs
specs
cy/sigma/specs
specs
soft3/strata/nebu/specs
nebu specification canonical reference for the Goldilocks prime field, its arithmetic, and its hardware. spec pages | page | defines | |------|---------| | field | prime, elements, arithmetic, properties, why Goldilocks | | ntt | Number Theoretic Transform, roots of unity, butterfly, Cooley-Tukey |…
cyb/honeycrisp/acpu/specs
acpu — API specification pure Rust driver for Apple Silicon CPU compute. direct access to every useful compute unit in M1–M4: matrix coprocessor, vector engine, numeric extensions, atomics, memory system, performance counters. zero external dependencies — only inline assembly and system calls.…
cyb/prysm/molecules/specs
specs
cy/chroma/sigma/specs
specs
cyb/honeycrisp/unimem/specs
unimem: Zero-Copy Memory Driver for Apple Silicon Goal Single pinned buffer visible to CPU, GPU, AMX, and ANE — zero copies between pipeline stages. The memory layer for inference on unified memory. v1 adds NVMe DMA via DEXT — full zero-copy from disk to compute. Why this exists Every inference…
soft3/strata/trop/specs
trop specification canonical reference for tropical semiring arithmetic: the (min, +) semiring, its matrix algebra, and dual certificate verification. spec pages | page | defines | |------|---------| | [semiring](/soft3/strata/trop/specs/semiring) | tropical semiring axioms, (min, +) definition,…
soft3/glia/run/specs
cyb-llm runtime specification Canonical spec for the cyb-llm runtime. Defines what models we run, how we represent them, how we execute them. Every backend (wgpu, metal, cpu, ane) is verified against this spec. Code disagreeing with spec is a bug. Spec disagreeing with reality is a spec bug — fix…
cyb/honeycrisp/rane/specs
specs
cyb/prysm/chroma/specs
chroma cyb's UI is a **3×3 grid**: eight fixed overlay elements ("chroma") arranged around a central renderer slot ("spacetime"). Each chroma owns a fixed screen position, a single semantic role, and a strictly typed cyberlink interface. Chromas never share state directly — every interaction…
soft3/glia/import/specs
import crate specification How external model formats become canonical `.model` files. Scope `import` reads source models (GGUF, safetensors, ONNX, HF PyTorch, MLX), normalizes naming, shapes, dtypes, and config, and writes the canonical `.model` file consumed by [run/](/soft3/glia/run).…
cyb/prysm/system/specs
specs
soft3/strata/genies/specs
genies specification canonical reference for isogeny group action arithmetic: F_q field operations, supersingular curves, isogeny computation, and class group action. spec pages | page | defines | |------|---------| | [prime](/soft3/strata/genies/specs/prime) | CSIDH prime form, selection criteria,…
soft3/strata/jali/specs
jali reference canonical specification for polynomial ring arithmetic R_q = F_p[x]/(x^n+1) over Goldilocks. what jali is jali (जाली — lattice/mesh) is the fifth execution algebra for cyber. polynomial ring elements are structured vectors of n Goldilocks field elements with multiplication defined by…
cyb/honeycrisp/aruminium/specs
aruminium — API specification pure Rust driver for Apple Metal GPU. direct objc_msgSend FFI, zero external dependencies, only macOS system frameworks. concepts | concept | what it is | |---------|-----------| | device | a Metal GPU — discovered at runtime, owns all GPU resources | | buffer |…
cyb/prysm/atoms/specs
specs
soft3/strata/kuro/specs
kuro specification canonical reference for the F₂ tower field, its arithmetic, packed operations, and hardware targets. spec pages | page | defines | |------|---------| | [field](/soft3/strata/kuro/specs/field) | tower levels, all field operations, properties, cost model vs Goldilocks | |…

Graph