AGENTS.md — joy
the doctrine of the home is ~/cyber/AGENTS.md; it applies here first. Claude Code receives both files at session start through ~/.config/cyber/agents-md.nu; other agents read them in order.
nox VM warrior for the cyber battlefield. Build, execute, prove and verify
Trident programs compiled to nox formulas (the soft3 stack). Live deployment
is unsupported.
Built the way trisha is built; trident's CLAUDE.md rules (honesty,
forbidden patterns, review passes, git workflow) apply here too.
Workspace
This repo (~/cyber/joy) is a Cargo workspace, companion to
~/cyber/trident (the compiler) and sibling of ~/cyber/trisha
(the Triton warrior it copies in shape).
Members:
cli/ — binary crate joy (the actual joy command)
rs/ — lib crate joy-rs (Warrior: Runner/Prover/Verifier/Deployer
over cyber-nox)
Each crate uses [lib] path = "lib.rs" or bin path = "main.rs" —
no src/ subdirectory anywhere (trisha convention).
cli/ Binary crate (package name: cyber-joy, binary: joy)
main.rs Entry point + Cli/Command + load_bundle/make_input
error.rs JoyError enum
compile.rs Shared source/project/target/profile resolution via Trident API
build_cmd.rs Atomic bundle/nox export and build JSON-v1 results
run.rs joy run
verify.rs joy verify (--proof zheng / --claim re-execution)
prove.rs joy prove (zheng artifact)
rs/ CPU backend (crate: joy-rs)
lib.rs pub mod formula/target/warrior
formula.rs bracket text <-> nox Reduction arena; subject builder
target.rs canonical nox TerrainConfig + versioned warrior package
warrior.rs Warrior + SecretProvider over nox::reduce; prove/verify
proof.rs ProofArtifact (zheng wire form) + program_hash
tests/
integration.rs end-to-end bundle -> output tests
fixtures/ add.tri + hand-built add.bundle.json
Companion repos
- trident (
~/cyber/trident) — the compiler. ProgramBundle is the
boundary (trident/src/runtime/artifact.rs). joy depends on it via
path = "../trident". Do NOT edit trident from this repo; trident-side
wiring requests go to .claude/trident-wiring.md.
- nox (
~/cyber/nox/rs) — cyber-nox, the execution engine:
reduce(), Tracer, Reduction arena, CallProvider.
- trisha (
~/cyber/trisha) — the Triton warrior; joy copies its
CLI shape and error style.
- Use repo-qualified paths when referencing across repos
(e.g.
joy/rs/warrior.rs vs trident/src/cli/mod.rs).
Implemented runtime and proof boundaries
build compiles .tri sources or projects to deterministic ProgramBundle JSON
or nox assembly. Explicit target overrides the project, then falls back to nox;
debug/release and named project profiles use one compiler path across source
build/run/prove. Publication refuses overwrite unless --force is explicit.
Build supports the joy/cli/v1 result envelope. Other commands retain their
human CLI output and application exit 1 convention.
run accepts bundles, sources/projects and raw nox. Public inputs form the
subject list; secret call witnesses are served sequentially. verify --claim
without a proof is labelled re-execution, not cryptographic verification.
Proof formats and content headers:
zheng-nox-public-execution-v2 (JOYEXEC2): exact verifier-derived CCS,
authenticated public input/output/cost, full witness disclosure and linear
verification. No zero-knowledge or succinctness claim.
joy-nox-public-state-execution-v1 (JOYST001): actual compiled state reads,
all namespace/key/value/root coordinates bound to verified public BBG tables.
--state loads a bounded StateCertificate JSON and may pin the expected root.
joy-nox-ccs-triton7-zk-v3 (JOYZK003): Trisha's real Triton ZK checker for
the verifier-derived Zheng relation. --secret or --zk selects this path.
Hidden queries require all ten authenticated PUBLIC dimension tables, at
most 2048 fields and 32768 CCS gates. Query coordinates remain private;
this is not a hidden/private database protocol.
Execution proofs verify without re-executing nox. Unsupported dynamic
continuations/shapes and resource excess fail explicitly. See
targets/nox/capabilities.json and Zheng's execution specification for limits.
Legacy prove_zheng/verify_zheng/verify_artifact statement APIs do not prove
execution/output. CLI inspection requires --legacy-trace-statement and
refuses IO/state/secret constraints. Legacy recursive TensorMerkle opening
requests remain unsupported; never downgrade a rejected execution proof.
Live deployment, node/database synchronization and a private state database
remain unavailable. cyber is a compatible nox alias, not a live network
connection or authority to modify state.
Execution model
bundle.assembly holds the formula in bracket notation
([5 [[1 3] [1 5]]]) — exactly what trident build --target nox emits.
- Public words bind as
[word_last [... [word_first 0]]]. Compiled source
entries validate exact arity/ranges and reconstruct typed aggregate parameters
before the ordinary body ABI; see trident/reference/nox.md. Native Bool input
uses0=true/1=false. Raw nox programs retain their own subject contract.
- Secret inputs are served sequentially by
SecretProvider to call
patterns (tag 16).
- The
Reduction arena is stack-allocated; execution runs on a
dedicated 256 MiB worker thread. Never call reduce on the main
thread with a big arena.
- Reduction count = trace rows = budget consumed (one row per unit,
by nox design).
CLI contract
specs/cli.md is the CLI contract: implemented baseline plus explicitly
marked target requirements. Cross-repo jobs and acceptance are specified
in cyber/specs/worker.md; do not duplicate node policy in Joy.
joy build <file.tri | project> [--profile NAME] [--emit bundle|nox] [-o PATH] [--force] [--format json-v1]
joy run <bundle.json | file.tri | file.nox> [--input-values 1,2] [--secret 3] [--budget N]
joy prove <input> [--input-values ...] [--secret ...] [--output p.zheng]
joy verify <p.zheng> # self-contained artifact, no re-execution
joy verify <input> --proof <p.zheng> # same, bound to this bundle
joy verify <input> --claim <values> [--input-values ...] # re-execution
joy describe --target nox|cyber emits a versioned JSON target package.
targets/nox/capabilities.json owns runtime capability declarations;
machine values come from Trident's upstream nox contract. CLI --state
accepts authenticated public certificates; cyber supplies no live network binding.
Only build JSON-v1 and describe have versioned machine output. Other stdout
is human-readable; stderr carries progress/diagnostics.
--target accepts nox (terrain) or cyber (battlefield); anything
else is refused with a pointer to trisha.
Forbidden patterns
Same as trisha: no HashMap (use BTreeMap), no .unwrap() outside
tests, no println! in library code, no floating point, no file > 500
lines.
Build & Test
cargo check --workspace --all-targets # zero warnings
cargo test
cargo install --path cli --force # installs `joy` on PATH
Git Workflow
Atomic commits. Conventional prefixes: feat:, fix:, refactor:,
test:, docs:, chore:. Rebuild after commit:
cargo install --path cli --force.
License
Cyber License: Don't trust. Don't fear. Don't beg.
Homonyms
AGENTS
AGENTS.md — cyberia-blog > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. this repo is the project chronicle and the graph assembler.…
cy/AGENTS
AGENTS.md — cy Rules for every coding agent in this repository are the shared doctrine of `~/cyber/cyberia/dev.md` (published as the cyberia/dev page): git, reports, vocabulary, release train, moving a page. Read it first. Nothing is restated here. This repository holds the contract of the agent:…
soft3/AGENTS
AGENTS.md — soft3 > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. what this repo is soft3 owns foundational stack composition contracts and developer…
cyber/AGENTS
AGENTS.md — cyber > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. Git Workflow **Commit by default.** After completing a change, commit it. Don't wait…
cyb/AGENTS
AGENTS.md — cyb > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. Архитектура Bevy — корневой runtime. Один бинарник для всех платформ. Внешние…
cyberia/AGENTS
AGENTS.md — cyberia > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. this repository adds no rules of its own beyond the home's and `cyberia/dev.md`.
soft3/bbg/AGENTS
AGENTS.md — bbg > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. principles for working with AI coding agents across any project. this page is the…
cyb/wysm/AGENTS
AGENTS.md — wysm > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. principles for working with AI coding agents on the cyber wysm runtime. read this and…
neural/trident/AGENTS
AGENTS.md — trident > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. A building block for a cyberstate with superintelligence. Trident is a provable…
cy/sigma/AGENTS
AGENTS.md — sigma Rules for every coding agent here are the shared doctrine of `~/cyber/cyberia/dev.md` (the cyberia/dev page). Nothing is restated. This repository holds the contract of sigma (`README.md`, `specs/`); reports go to `audit/`. The ladder and the registry of parts belong to `soft3`.
neural/rune/AGENTS
AGENTS.md — rune > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. Git Workflow **Commit by default.** After completing a change, commit it. **Atomic…
soft3/lens/AGENTS
AGENTS.md — lens > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. principles for working with AI coding agents across any project. this page is the…
cyb/seer/AGENTS
AGENTS.md — seer > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. seer is a miner. it mines the mint of any chain that pays for focus — every token has…
neural/eidos/AGENTS
AGENTS.md — eidos > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. principles for working with AI coding agents across any project. this page is the…
soft3/zheng/AGENTS
AGENTS.md — zheng > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. principles for working with AI coding agents across any project. this page is the…
soft3/neuron/AGENTS
AGENTS.md — neuron > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. The user's requested canonical specification directory is specs/. docs/ explains the…
soft3/cybernode/AGENTS
AGENTS.md — cybernode > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. cybernode is rung 7 of the soft3 ladder: the node. `rs/` is the crate and the…
soft3/nox/AGENTS
AGENTS.md — nox > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. principles for working with AI coding agents across any project. this page is the…
soft3/mudra/AGENTS
AGENTS.md — mudra > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. principles for working with AI coding agents across any project. this page is the…
cyb/evy/AGENTS
AGENTS.md — evy > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. project evy is a unified-memory, multi-engine, neural-first game engine. selectively…
cyb/honeycrisp/AGENTS
AGENTS.md — honeycrisp > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. auditor mindset the project is supervised by an engineer with 30 years of…
warriors/erga/AGENTS
AGENTS.md — erga > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. Git workflow **Commit by default.** After completing a change, commit it. **Atomic…
soft3/soma/AGENTS
AGENTS.md — soma > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. Local cognitive architecture of one cyber Avatar. A machine that perceives, decides,…
warriors/trisha/AGENTS
AGENTS.md — trisha > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. Triton VM warrior. Execute, prove, verify, deploy Trident programs. Structure Source…
neural/rs/AGENTS
AGENTS.md — rs > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. principles for working with AI coding agents across any project. this page is the…
soft3/strata/trop/AGENTS
AGENTS.md — strata/trop > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. trop — tropical semiring arithmetic for provable optimization. project…
cy/chroma/sigma/AGENTS
AGENTS.md — sigma Rules for every coding agent here are the shared doctrine of `~/cyber/cyberia/dev.md` (the cyberia/dev page). Nothing is restated. This repository holds the contract of sigma (`README.md`, `specs/`); reports go to `audit/`. The ladder and the registry of parts belong to `soft3`.
soft3/strata/kuro/AGENTS
AGENTS.md — strata/kuro > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. kuro (黒) — F₂ tower field arithmetic for binary proving. project structure key…
cyb/honeycrisp/unimem/AGENTS
AGENTS.md — honeycrisp/unimem > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. project: unimem pure Rust memory driver for Apple Silicon.…
soft3/strata/genies/AGENTS
AGENTS.md — strata/genies > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. genies — isogeny group action arithmetic for post-quantum privacy. project…
cyberia/research/events/AGENTS
cyb/honeycrisp/acpu/AGENTS
AGENTS.md — honeycrisp/acpu > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. auditor mindset the project is supervised by an engineer with 30 years of…
cyb/honeycrisp/rane/AGENTS
AGENTS.md — honeycrisp/rane > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. auditor mindset the project is supervised by an engineer with 30 years of…
soft3/strata/nebu/AGENTS
AGENTS.md — strata/nebu > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. principles for working with AI coding agents across any project. this page is…
cyb/honeycrisp/aruminium/AGENTS
AGENTS.md — honeycrisp/aruminium > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. auditor mindset the project is supervised by an engineer with 30 years…
soft3/strata/jali/AGENTS
AGENTS.md — strata/jali > the doctrine of the home is `~/cyber/AGENTS.md`; it applies here first. Claude Code receives both files at session start through `~/.config/cyber/agents-md.nu`; other agents read them in order. jali (जाली) — polynomial ring arithmetic R_q = F_p[x]/(x^n+1) over Goldilocks.…