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 processor, not the store

two consoles, two layers:

  • bbg (bbg cli) is the raw state store — apply is insert, prove opens a key. it sees dimensions and roots.
  • cybergraph is the processor on top — it runs the full lifecycle (validate → order → apply), keeps the per-neuron signal chains, and answers inf queries. cybergraph link is bbg apply plus chain ordering; cybergraph query is datalog, where bbg prove is a single opening.

use bbg to debug state; use cybergraph to drive and query the graph. it does not decide what to link — that is the soma runtime above it (see the whitepaper).

store — signal-first, the canonical envelope log

cybergraph state is a fold of the signal log (see storage), and the log is tape frames — here the envelope signal (neuron, links, prev, step, network), the canonical wire form foculus mints and radio carries:

cybergraph --store <dir> <command>
  <dir>/log        append-only tape stream — envelope signal / intent / finalize frames
  <dir>/checkpoint latest root + height cache

open replays the log through the processor — each signal frame goes through link (chain_append → bbg.insert), rebuilding both the chains and the state; intent frames replay through intend; finalize markers advance the block. this reuses foculus's frame codec (decode_signals / encode_signal_frame) — the envelope shape, distinct from the bbg CLI's lower state-application log. JSON appears only as a --json output view, never the log.

commands

lifecycle — the write verbs

cybergraph intend --neuron H --scope H [--h0 N]     declare an unsealed intent → prints its key
cybergraph link   --neuron H --from H --to H        atomic one-shot submit
                  [--token H --amount N --valence V]
cybergraph seal   --intent KEY --neuron H --from H --to H [...]   seal a declared intent

link and seal build a signal from the cyberlink flags; the CLI auto-fills the chain fields — step = the neuron's chain length, prev = its head hash, network = the neuron's private network — so the operator supplies only content. the signal is ordered (equivocation / step / prev) then applied. Release 0: no STARK, box_moves empty; the seal binding (σ ⊢ scope) is not yet enforced (see the whitepaper).

read

cybergraph query '<inf script>'    run an inf datalog query over the graph; print rows
cybergraph chain <neuron>          show a neuron's signal chain — step, prev, link count
cybergraph intents                 list declared (unsealed) intents

query is the headline: it runs the inf engine (parse → plan → eval) over the relations cybergraph exposes (the relation schema) — particles, neurons, axons, focus, karma, signals. examples:

?[p, s] := focus{particle: p, score: s} :sort -s :limit 10       # top particles by focus
?[to]   := axons{from: 0x02…, to}                                # what 0x02 links to
?[n, k] := karma{neuron: n, k}, gt(k, 1000)                      # high-karma neurons

inspect

cybergraph root      BBG_root (hex)
cybergraph stats     graph statistics (node_count, relation_sizes, max_degree, diameter_bound)

output & exit codes

--json on every command for scripting; exit 0 ok, 1 not-found, 2 rejected (equivocation / double-spend), 3 bad input.

implementable now vs deferred

buildable against today's API: intend, link, seal, query, chain, intents, root, stats. it reuses foculus's tape codec (envelope frames) and the inf evaluator cybergraph already wires (inf-eval over BbgSource). deps: cybergraph + foculus (frames, default-features = false — no network stack) + clap.

deferred:

  • watch <filter> — subscribe is in-process; a one-shot CLI cannot stream future events. this needs a serve/daemon mode, or a log-tail that replays and follows. left for a later release.
  • seal binding enforcementseal accepts an unproven signal today; σ ⊢ scope_hash lands with the proof path.
  • provable queryquery returns plain rows; Lens-opening-backed proofs over the root arrive with lens serde (soft3 blocker #1).

crate + conventions

  • new binary crate cybergraph/cli (sibling of the lib), bin cybergraph; the library stays untouched.
  • args via clap; installed by scripts/install-bins.sh alongside bbg / cy / mudra; built with RUSTC_BOOTSTRAP=1.
  • the chain-field auto-fill (step/prev/network) is the CLI's ergonomic layer; the library keeps requiring an explicit, correct signal.

open questions

  1. binary name — cybergraph (explicit, matches bbg) vs a short cg. proposal: cybergraph, add a cg symlink in install-bins.
  2. watch/serve — is a long-running cybergraph daemon in scope for the CLI, or does that belong to cy / soma? proposal: keep the CLI one-shot; a daemon is soma's concern.
  3. authoring beyond one cyberlink — link builds a single-link signal; multi-link signals and box moves need either repeated flags or a frame-file input (link --frame <file>). proposal: one-link flags now, --frame import later, sharing the bbg CLI's frame reader.

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
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/zheng/specs/cli
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 output convention — one channel (stdout), two renderings of the same data: **interactive** (stdout is a terminal) — styled ANSI: a gradient…
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