soft3/zheng/specs/cli.md

cli

the zheng command-line face of the proof system. drives the library's five entry points from a shell and emits results as a tape chunk stream.

invocation

zheng <command> [args]

output convention — one channel (stdout), two renderings of the same data:

  • interactive (stdout is a terminal) — styled ANSI: a gradient banner for help, a titled table with colored status for reports. matches the rune / hemera aesthetic. suppressed by NO_COLOR.
  • piped (stdout is not a terminal) — a tape chunk stream (TAPE — Typed Annotated Payload Exchange); every run ends with a render::STATUS chunk carrying the exit code. zheng ... | <tape reader> is always well-formed.
  • exit code0 proof verified, 1 prover/verifier error, 2 usage error.

commands

run — prove a formula end to end

zheng run -e '<formula>' [--object N] [--budget B]

evaluates a nox formula, proves the resulting execution trace, and verifies the proof — one process, no intermediate files.

  • -e '<formula>' — a nox data formula in bracket syntax ([a b c] → right-nested pairs, atoms are u64 decimals). same grammar as the nox CLI. required.
  • --object N — the object noun the formula runs against (atom N). default 0.
  • --budget B — focus budget for reduction. default 1_000_000.

emits a render::STRUCT report chunk (see report below) and a status chunk.

aux-free patterns (arithmetic, bitwise, trivial) prove with no auxiliary data. formulas whose trace needs opening proofs (hash pattern 15, axis pattern 0, look pattern 17) require auxiliary data the general path does not yet derive; run reports a prover error for those. demo hash exercises the hash pattern with correctly derived auxiliary data.

demo — run a built-in program

zheng demo hash

runs a known-good program that exercises a specific pattern with correct auxiliary data, then proves and verifies it. hash proves [15 [1 s]] with the HashAux rate derived from the subject's structural digest.

eval — polynomial commitment demo

zheng eval

commits a small multilinear polynomial, opens it at a point, and verifies the opening via zheng::open / zheng::verify_eval. reports the point, claimed value, and verify result.

pack — serialize a program capsule

zheng pack -e '<formula>' [--object N] [--budget B] -o <file>

writes the program (formula text, object, budget) to <file> as a single tape chunk (see program file format). does not evaluate or prove.

a nox execution trace cannot round-trip on its own — TraceRow columns are crate-private, so a trace has no public reconstruction path. the program is the canonical serializable unit: re-executing it deterministically reproduces the exact trace, so the capsule stores the program and prove re-runs it.

prove — prove a program capsule

zheng prove <file>

reads a program-capsule tape file, re-executes it to reproduce the trace, proves (aux-free), verifies, and reports. a tampered capsule reduces to a different trace (or fails to parse) — reported as an error, not a false pass.

help

zheng help    |    zheng -h    |    zheng --help

report (STRUCT chunk)

honest, cheaply-measurable proof statistics as nested kv pairs:

key meaning
trace_rows number of trace rows proved
groups CCS-structure groups (one accumulator each)
steps total folded steps across all groups
outer_rounds / inner_rounds sumcheck round counts (first group)
verify ok or fail
commit_ms / verify_ms wall-clock timings

proof size in bytes is not reported: Proof::pcs_opening (a lens Opening) has no canonical byte encoding yet. structural counts are reported instead. a .proof file format is reserved for the proof-serialization milestone.

program file format

a single tape chunk, (sigil::BAR, render::STRUCT) (code-with-data), whose payload is encode_nested of three kv pairs:

kv "formula" → text     the bracket-syntax formula
kv "object"  → text     object atom, decimal
kv "budget"  → text     focus budget, decimal

canonical: the kv order is fixed (formula, object, budget) and tape's varint framing is deterministic, so one program encodes to one byte sequence.

deferred

  • offline proof serialization (.proof file, standalone verify <file>) — needs a canonical codec for Proof including the lens Opening (cross-repo).
  • raw-trace serialization — blocked on a public TraceRow constructor in nox.
  • general auxiliary-data derivation for hash / axis / look formulas under run.
  • rich render::TABLE output (current report uses render::STRUCT kv pairs).

Homonyms

cli
feature of go-cyber cyber query bandwidth load: query the bandwidth load neuron: query the neuron bandwidth params: query the bostrom/bandwidth module parameters information price: query the bandwidth price total: query the total bandwidth
soft3/cli
soft3 CLI `soft3` — command-line interface to the soft3 stack. commands implementation Rust binary. depends on: `hemera` (particle computation) `bbg` (proof verification) `lens` (Lens opening verification) not yet implemented — scaffold only. blocked on: BBG proof serialisation (serde for…
cyber/cli
warriors/trisha/cli
cli
soft3/hemera/cli
cli
soft3/cybergraph/cli
cli
soft3/zheng/cli
cli
soft3/bbg/cli
cli
soft3/nox/cli
cli
soft3/tru/cli
cli
neural/rune/cli
cli
neural/eidos/cli
cli
soft3/strata/nebu/cli
cli
soft3/cybergraph/specs/cli
cybergraph cli a command-line console for the cyberlink processor: declare intents, seal and link signals, query the graph with inf, and inspect the per-neuron chains. `cybergraph`'s verb is **link** — the CLI is the processor's console, one layer above the bbg state store (`bbg` CLI). scope — the…
neural/trident/src/cli
cli
neural/inf/rs/cli
cli
soft3/strata/trop/cli
cli
soft3/strata/genies/cli
cli
soft3/strata/jali/cli
cli
soft3/bbg/specs/cli
bbg cli a command-line tool for the authenticated state layer: inspect the committed state, apply signals, finalize blocks, and prove/verify records. `bbg`'s verb is **store** — the CLI is the store's console, the way `redb`/`sqlite` ship a shell for their engine. scope — what it is, and is not bbg…
cyb/wysm/crates/cli
The Wasmi CLI Application A lightweight **WebAssembly interpreter CLI** built on top of the [Wasmi crate]. This application provides a command-line interface for executing WebAssembly modules (`.wasm`) and WebAssembly script files (`.wast`). It supports WASI, configurable compilation strategies and…
neural/trident/reference/cli
⌨️ CLI Reference [← Language Reference](/neural/trident/reference/language) Three-Register Flags Trident uses a **three-register** naming model for targets. Each register has two synonyms — one *geeky* (technical) and one *gamy* (metaphorical) — plus a *universal* shorthand for backward…
soft3/glia/run/cli
cli
soft3/strata/kuro/cli
cli
soft3/glia/import/specs/cli
import CLI surface What the `mi` binary (the CLI entry point of the `import` crate) exposes today. Subcommands | Subcommand | Purpose | Source | |---|---|---| | `mi import ` | Convert source directory → `~/llm/.model` | `main.rs::run_import` | | `mi list` | List HF cache entries under…
bootloader/space-pussy/x/resources/client/cli
cli
bootloader/go-cyber/x/graph/client/cli
cli
bootloader/space-pussy/x/bandwidth/client/cli
cli
bootloader/space-pussy/x/dmn/client/cli
cli
bootloader/space-pussy/x/rank/client/cli
cli
bootloader/go-cyber/x/bandwidth/client/cli
cli
bootloader/go-cyber/x/resources/client/cli
cli
bootloader/go-cyber/x/tokenfactory/client/cli
cli
bootloader/go-cyber/x/grid/client/cli
cli
bootloader/go-cyber/x/clock/client/cli
cli
bootloader/go-cyber/x/rank/client/cli
cli
bootloader/space-pussy/x/graph/client/cli
cli
bootloader/space-pussy/x/grid/client/cli
cli
bootloader/go-cyber/x/dmn/client/cli
cli
bootloader/go-cyber/x/liquidity/client/cli
cli

Graph