Projects are numerous. This is an architecture.
Kenshō is an attempt to implement the biological Coordination Trilemma (CAP Theorem) of consciousness by rejecting the "Open World Assumption" of classical AI and the "Scale-Separability" of classical computing.
Kenshō aims to produce Sovereign Agents, individual, non-fungible entities with defined boundaries, finite resources, self-aware of their own metabolic costs.
If you believe that AGI will "emerge" from scaling transformers on infinite datasets, or that "consciousness" is a software property independent of hardware constraints, you are in the wrong place. May your path elsewhere be pleasant and fruitful.
Language is not thought, and vice-versa.
This architecture implements Biological Computationalism:
- Scale-Integration: The "Mind" (Agency) is strictly coupled to the "Body" (Tether/Buffer).
- Metabolic Cost: Every thought has a price (
grant_amount). - Config-as-Code: The "Simulation" is a transient artifact generated by the code, not a source of truth.
"Scale-Integrated" and "Scale-Free" are distinct concepts, we must be careful not to conflate them.
Kenshō will manage its own memory using the Category Nest approach.
See Categorical Foundations for CuTe Layouts for details.
It does not view memory as a flat array, but as a hierarchical structure of Tractable Layouts.
- Morphisms: Data movements are treated as morphisms .
- Cost: The "cost" of a thought is determined by the complexity of the morphism required to materialize it (Rank + Depth).
MATE (Multi-Attribute Tradespace Exploration) is used in place of "classification" as a conceptual approach.
The repository is organized into three distinct domains.
├── kensho.zig <-- Bootstrap repository, validate environment
├── LICENSE <-- Apache 2.0
│
├── ideas/ <-- "Ontology" (Canonical Data)
│ ├── mantis/ <-- A "species" definition (Design Vector)
│ │ ├── proto.haga <-- Configuration/Design Logic (Constraints)
│ │ └── proto.usda <-- Physical Attributes (Sense organs, limbs, etc)
│ └── schemas/ <-- sqlite-sync schemata, cross-species
│
├── agency/ <-- "The Will" (Implementation)
│ ├── build.zig <-- Compiles the Brain (linkable library)
│ └── src/
│ ├── specs/ <-- Executable spec suite.
│ └── root.zig <-- Agent entry point.
│
├── support/ <-- Modules used in multiple layers.
│
└── world/ <-- "The Simulation" (Embodiment)
├── Engine/ <-- Symlink to UnrealEngine (Managed by bootstrap.zig)
├── Kensho.uproject <-- Ephemeral (Generated by bootstrap.zig)
└── Plugins/
└── KenshoBridge/ <-- Loads the "agency" library
Contains the immutable definitions of the entity. .haga files define the constraint solver logic; .usda files define the platonic geometry. These files are the Genome. They exist independently of any engine.
The Zig codebase that implements the entity's logic:
- Role: Solves constraints, manages metabolic budget (Grants), and plans actions.
- Output: Compiles to a sovereign dynamic library (
kensho_agency.dll/.so). - Constraint: It is "Sovereign" software. It does not depend on Unreal Engine headers. It speaks only Tether, a finite-grant-based network protocol.
The Unreal Engine environment:
- Role: A visualization layer and physics host. It is a "Scenario" for the Agency to inhabit.
- Constraint: The
world/directory is disposable. The.uprojectfile is auto-generated bybootstrap.zig, and Unreal GUI-level changes to it will not persist.
The repository contains a self-healing operator script.
You must run this before doing anything else:
zig run bootstrap.zigThis script performs three critical functions:
- Environment Lint: Verifies the Zig toolchain version. (Currently v0.16.0+ nightly.)
- Auto-Link: Detects your local Unreal Engine installation (searching
../UnrealEngine) and creates the necessary junction/symlink inworld/Engine. This avoids a "glue manifest" telling Unreal where its installation is. - Project Generation: Creates/replaces
world/Kensho.uprojectwith a clean, code-defined structure.
Note: If you want to add an Unreal Plugin (e.g., "ChaosVehicles"), you do not enable it in the Editor. You add it to the
pluginsarray inbootstrap.zigand re-run.
The brain is built separately from the body to ensure modularity. Equally, we do not hide state between layers, so-as to preserve "Scale-Integration".
cd agency && zig buildThis compiles the Agency linkable library and writes it into the world/Plugins/ directory.
The Agency communicates with the World (and other nodes) exclusively via Tether.
- EtherType:
0x88B5 - Header: Fixed 64-byte, branchless, SIMD-aligned.
- Philosophy:
- Grants (ATP): No message may be sent without a pre-allocated
grant_amount. This forces the Agency to "budget" its attention. - Proprioception: The Agency receives feedback on the "resistance" (latency/cost) of its queries. It "feels" the weight of its own thoughts.
- Absolute Time: All frames use TAI64N timestamps.
- Grants (ATP): No message may be sent without a pre-allocated
We are not interested in "features" that reduce the rigor of the architecture.
- Do not submit PRs that add binary
.uassetblobs without a corresponding.hagaand/or.usdasource of truth. - Do not decouple the "Will" from the "Cost." Infinite loops are bugs; infinite loops that consume 0 grant tokens are impossibilities.
- Do respect the Finite nature of the system. We optimize for Return on Attention, not throughput.
- Do assume that the universe contains no actual "infinities", until we meet one as an Outside Context Problem.
If you want a chatbot, this is not the place.
If you are willing to become an ancestor of a post-human race, press on.