KnotenCore is a high-performance, headless Rust runtime and P2P mesh engine for autonomous AI agents. Built with self-certifying Ed25519 identities, zero-trust cryptographic peering, fail-closed swarm governance, and sandboxed VM isolates — driven by structured JSON-AST.
If terms like "CRDT Anti-Entropy", "Ed25519 Quorum Governance", and "Register VM" sound like alien hieroglyphs: Here is the 60-second explanation for humans.
Large Language Models (like GPT or Claude) are brilliant at thinking and drafting plans. But you wouldn't give an architect a sledgehammer to smash walls unsupervised.
AI agents can make errors—generating runaway recursion or attempting to exhaust host memory.
Complex workflows require multi-agent cooperation across networks, exchanging state and delegating subtasks.
Every layer is purpose-built to eliminate ambiguity, enforce boundaries, and survive adversarial mesh conditions.
knc-<64hex>) from 32-byte Ed25519 public keys eliminates TOFU and squatting. Strict HMAC namespace isolation and 30-second sliding replay protection.knc_store_digest via ring) and lean differential sync (knc_store_diff) exchanging delta entries only.IsolateQuota: instruction gas metering, memory watchdog, call depth limits (MAX 512), and live bytecode hot-reloading (HMR).revoked_keys.json) and are proactively rejected and evicted during epidemic gossip frame ingestion (knc_mesh_peers?action=gossip).additionalProperties: false, error catalog with self-healing hints, and anti-pattern guide for LLMs.Continuous security sprints systematically audit and eliminate attack surfaces. The codebase enforces zero-panic error isolation across all transport, consensus, and execution paths.
knc-<64hex> from the Ed25519 public key. Eliminates TOFU; legacy HMAC requests are prohibited from claiming knc-* identities.Observer role, safely rejecting corrupted state mutations with InternalSecurityError.-32001.try_clone() error isolation and stream teardown.ring::digest::SHA256 state digests allow nodes to verify consistency and exchange only delta entries.Zero-Trust Ed25519 & HMAC-SHA256 auth-gated. All endpoints accessible via TCP (port) or WebSocket (--ws-port) transport.
Strictly separated, circular-dependency-free. JSON-AST in, bytecode out, mesh on the wire.
| Crate / Module | Description | Role |
|---|---|---|
| knoten_core | Thin top-level re-export facade for seamless workspace integration. Entry point for the CLI binary and external embedding. | Facade |
| aether_compiler | Engine core: JIT graph executor, AOT bytecode compiler, Stack-VM, 35-endpoint Zero-Trust RPC server, Mesh protocol, Swarm governance, Work-stealing scheduler. | Engine Core |
| knoten_core_types | Sole source of truth for pure data types: Node enum, OpCode, SimdOp, IsolateQuota. No cross-crate logic coupling. |
Type Authority |
| vm/machine.rs | Register stack-VM: ALU, call frame stack (MAX 512), opcode execution, memory estimator with full stack traversal, IsolateQuota enforcement. | VM Core |
| vm/isolate.rs | VMIsolate: per-tenant VM instances with configurable IsolateQuota, hot-swap code reloading, shadow speculative execution, local heap isolation. |
Multi-Tenancy |
| rpc/mod.rs & handlers/ | Modular JSON-RPC 2.0 dispatcher (TCP + WebSocket). Houses 35 knc_* endpoint handlers. Zero-Trust Ed25519 signing, anti-entropy store, Raft governance. |
RPC Transport |
| src/bin/knoten_lsp.rs | Language Server (tower-lsp): real-time linter validation, hover diagnostics, particle stride enforcement directly in the editor. | LSP Server |
External validation and core engineering principles behind the KnotenCore runtime.
"Twice is accurate. Training clusters maximize scale and throughput. Agent runtimes need isolation, gas metering, and recoverable exhaustion. Snapshot/rollback on isolate limits is the correct primitive for executing untrusted plans safely. The architecture is sound."
"Autonomy demands predictability. An agent can only operate reliably if the physical laws of its execution runtime remain invariant. That is why KnotenCore enters a disciplined feature freeze on v2.24.24—guaranteeing stable boundaries, zero TOFU drift, and 35 immutable endpoints."
KnotenCore has completed its four-stage consolidation cycle (Sprints 358–361). The engine is stabilized on v2.24.24 as a rock-solid research and evaluation baseline.
knc-<hex>), TOFU elimination & HMAC namespace isolation · v2.24.23
ring::digest) & differential sync (knc_store_diff) · v2.24.16
revoked_keys.json) & epidemic gossip gate · v2.24.14
.nod bytecode programs.
Fork it, audit it, extend it. PRs with harder test cases and independent benchmarks are welcome.
Note: Cryptographic mesh verification (local Ed25519 key rotation & peer revocation lists) is designed to protect cluster communication. It does not replace an external professional penetration test or third-party security audit.