Gnosis is a quantum topological engine capable of orchestrating the next generation of software. Everything—from the compiler to the application's reactive core—is now a graph.
Oh my God, Betti! Look at the size of her Bule. It is so big. [scoff] She looks like none of those graph guys' girlfriends.
Gnosis is a functional, logic-based quantum programming language and compiler built on the Wallington Rotation and topological pipeline primitives (FORK, RACE, FOLD, VENT). It eliminates traditional imperative control flow in favor of pure computational topology. The language is the topology and the AST is the graph.
Does your baby have a big Buley? Tap dat graf.
Gnosis is not just another programming language. It is a paradigm shift towards a future where computation is expressed as pure data flow, where the structure of the program is its own execution model, and where the boundaries between logic, data, and control are dissolved.
Gnosis operates on the covering space of execution paths, tracking the system's state via its first Betti number (
-
FORK: Branch execution into parallel superpositions. Increases$\beta_1$ . -
RACE: Collapse to the fastest valid path. Maintains homotopy equivalence. -
FOLD/COLLAPSE: Deterministically merge independent paths back into a scalar state. -
VENT/TUNNEL: Dissipate waste heat by shedding unproductive paths. -
INTERFERE: Apply constructive or destructive interference between wave function amplitudes.
Gnosis provides a unified architecture for high-performance, verified computation:
- Gnosis Graph Language (GGL): A Cypher-inspired ASCII-art syntax for drawing execution graphs.
- Betty/Betti Compiler: A self-hosting compilation pipeline that translates graphs into binary flows.
- Vectorized Runtime: A "hella-optimized" Rust-based WebAssembly engine that evaluates topologies using the Aeon Flow 10-byte wire format with zero overhead.
-
Formal Verification: Natively integrated with
aeon-logicto prove topological invariants and quantum bounds ($\beta_1$ ) at compile time. -
Statistical Measurement: Integrated with
twokeysfor Tukey-style Exploratory Data Analysis (EDA) inside the wave function. -
3D Compatibility Runtime:
Renderernodes can route 3D scene workloads through theaeon-3dtopology compat layer (fork/race/fold/vent) to reduce sequential render-loop pressure.
Gnosis is capable of expressing the most complex software architectures as pure data flow:
- Topological AI: Full Transformer-style forward passes (Attention, Residuals, Softmax) implemented as fractal superpositions.
.gg-Native Neural Runtime:NeuralEngine/GPUEngine/WebNNEnginerun directly on.ggtopology source. The canonical first module istopic_domain_transformer.ggfor topic-domain transformer flows.- Reactive Kernels: The core server loops and navigation engines of
aeon-fluxandaeon-shellredefined as continuous topological transitions. - Self-Hosted Logic: The Gnosis compiler is itself a Gnosis topology, proving the system is closed under self-application.
- Native Auth Topologies: UCAN issuance/verification/delegation, ZK encryption/decryption, and custodial action checks are available as native runtime labels.
- src: Compiler, runtime, and module tooling internals.
Test your quantum topologies in real-time with linting, validation, and typeahead:
bun run startRun REPL in verbose mascot mode:
bun run start -- --verboseCrash/panic output in the REPL now leads with the Betti mascot motto:
[Engine Crash] Baby's Got Stack: <error details>
Execute .gg files directly through the bare-metal runtime:
bun ./bin/gnosis.js run your_app.ggExecute with the native frame runtime (gnosis_runtime WASM) enabled:
bun ./bin/gnosis.js native your_app.gg
# or
bun ./bin/gnosis.js run your_app.gg --nativeExecute .gg test files with the built-in test runner:
bun ./bin/gnosis.js test path/to/topology.test.gg
bun ./bin/gnosis.js test topic_domain_transformer.test.ggUse the canonical topic-domain module by default, or load a specific .gg file:
import { NeuralEngine } from '@affectively/gnosis';
const engine = new NeuralEngine();
await engine.init(); // loads canonical topic_domain_transformer.gg when available
await engine.loadTopologyFile('./my_module.gg');Route a renderer node to 3D/topology mode by setting type and optional collapse controls:
(render:Renderer {type: "3d", collapse: "race", budgetMs: "8"})
Renderer resolves @affectively/aeon-3d when available and falls back to the local gnosis compat engine in development.
Use built-in topology tooling to run Aeon Logic checks and measure branch/file complexity:
# Formal correctness + complexity summary
gnosis analyze path/to/topology.gg
# Lint-style gate (non-zero exit on formal violations)
gnosis lint path/to/topology.gg
# Verify + generate TLA+ bridge artifacts
gnosis verify path/to/topology.gg --tla-out tla/generated
# Print generated TLA+ spec and TLC config to stdout
gnosis verify path/to/topology.gg --tla
# Auto-format and fix structural style
gnosis --fix path/to/topology.gg
# Machine-readable JSON output
gnosis lint path/to/topology.gg --json
# SARIF output for code-scanning systems
gnosis lint path/to/topology.gg --sarif
# Runtime capability gating (Cloudflare Workers, Node, Bun)
gnosis lint path/to/topology.gg --target workersBuley Number is a composite complexity score based on branch structure (FORK/RACE/INTERFERE), graph shape, and source size.
When --target is set, Gnosis enforces host capability compatibility (for example, net.udp and net.tcp.server are rejected for workers).
Built-in labels for first-class auth workflows:
UCANIdentityUCANIssueUCANVerifyUCANDelegateUCANRequireZKEncryptZKDecryptCustodialSignerZKSyncEnvelopeZKMaterializeEnvelopeHALTAttestationVerifyZKExecutionGate
UCANVerify can emit executionAuth into the payload. When executionAuth.enforce=true, runtime edge execution is capability-checked at primitive level (fork, race, fold, vent, etc.) using resource-scoped UCAN capabilities.
zkMode (required|preferred|off) provides selective default-on ZK behavior for sensitive domains (delegation context, custodial payloads, cross-boundary sync, and private materialization) without forcing encryption on all runtime edges.
For sensitive sync/materialization PROCESS flows, compiler/runtime auto-injection can insert ZKSyncEnvelope and ZKMaterializeEnvelope wrapper nodes implicitly from topology properties.
For HALT-backed confidential execution, HALTAttestationVerify checks attestation signature/policy gates (measurement, hashes, age, TCB), and ZKExecutionGate validates a full execution envelope (attestation + public signal hash + replay nonce + proof verifier hook). ZKExecutionGate can verify proofs through a callback or via EVM JSON-RPC (verifierRpcUrl + verifierAddress).
For TypeScript/JavaScript Sonar-style analysis:
# Analyze a file or directory
gnosis analyze src
# Apply quality gates
gnosis analyze src --max-cognitive 30 --max-cyclomatic 20 --max-function-lines 120
# Export JSON or SARIF
gnosis analyze src --json
gnosis analyze src --sarifThis repository ships with GitHub Actions CI at .github/workflows/ci.yml that:
- builds the compiler/CLI
- lints core
.ggtopologies with Aeon Logic - runs TypeScript complexity analysis
- uploads SARIF to GitHub code scanning
- uploads
reports/*.jsonandreports/*.sarifas build artifacts
The TypeScript-based Betty compiler is the bootstrap. The Gnosis-based Betti is the future. We keep both in the repository to maintain the chain of topological verification.
Copyright (c) 2026 Taylor Buley. All rights reserved. Non-commercial use only.