Binary infrastructure for live AI.
OmenWorks builds Cowrie v1.3.1—a canonical binary format, verified KV StatePages, Capability V2 & Autonomy Leases, and a zero-dependency runtime verified in Lean 4.
Training has Parquet. Weights have Safetensors. Live AI runs on raw JSON.
Cowrie gives live models a single deterministic format for agent context, inference state, and wire-level trust.
Measured on real hardware.
Every headline figure resolves directly to a reproducible JSON receipt published in the repository.
A2-Split syntactic KV hit (85.1–99.1% volatile trailer)
Across 5 models: 98.2%–100.0% syntactic-variant KV hit and 85.1%–99.1% with volatile request_ts trailer split; 0 B KV written, 0 extra turns.
70B 32K Cloud StatePage E2E
Verified 16 KB KV/SSM StatePages across Profile E (up to 59.0× cold / 73× warm at 250K) and Profile C (≥32K, OFF on overlayfs).
Capability V2 & Autonomy Leases
Enforces out-of-band taint, single-use Capability V2 tokens, T0/T1/T2 autonomy leases with budgets & rollback, and offline audit (not a prompt-injection firewall or OS sandbox).
Lean 4 formal theorems
Machine-checked codec, fence, taint, and container model theorems (26 Lean kernel mutants LM01–LM26 + 16 constructive refutations R1–R16; 18 bugs F1–F18 fixed in formal/AUDIT.md).
One container. Four guarantees.
Caching, context virtualization, live state, and wire security all share a single 34-byte canonical content identity.
Smaller context. Stable caches.
Bijective byte ordering stops key shuffles from busting prefix caches, while heavy tool payloads stay on disk until the model asks for a slice.
- A2-Split prefix stability98.2%–100.0% syntactic KV hit (85.1%–99.1% with volatile
request_tstrailer split) across 5 models with 0 B KV written and 0 extra turns. - Profile-gated virtualizationB2-b virtualizes fresh ≥16 KB tool dumps on local loops (Profile E) and stays OFF on cached cloud APIs (Profile C).
- Stdio MCP proxy & leasesWrap stdio MCP servers with
cowrie mcp-proxyfor provenance, Capability V2, T0/T1/T2 Autonomy Leases, and .cwwal audit logs.
Durable GPU state.
Save completed prefill to verified 16 KB pages so restarts never throw away paid compute.
- Aligned to silicon and NVMe16,384-byte boundaries map cleanly onto Linux O_DIRECT, NVMe atomic writes, and /dev/shm.
- Profile-gated engine supportPersists hybrid SSM+KV in
llama.cpp(Profile E, 12.1×–59.0× cold / 73× warm at 32K–250K) and pure-attention KV at ≥32K in vLLM V4 (Profile C: 70B 5.91× [64/64], GLM-4.5-Air 3.30× [3/3 QA; 46/64 AWQ nondet, native 1/64], Mixtral 3.15× [64/64]; Qwen3.5-35B-A3B 1.30× fail-closed MambaSpec). - Verified on reloadFail-closed C-ABI pins and parallel SHA-NI Merkle checks authenticate every restored page.
One kernel, every runtime.
Ship identical verification semantics from bare-metal GPU hosts down to edge isolates and browsers.
- Zero third-party dependenciesAuditable Rust core compiling offline in under five seconds.
- 135.2 KiB edge WebAssemblyZero host imports (Node v22: 0.98 ms cold / 0.42 ms warm load, 1.91 μs verify+CID; receipt) with 706/706 WASM-applicable cases in the 753-case differential harness.
- Fits beside your existing formatsIngest rows from Lance or Arrow, load weights from Safetensors, and run live state in Cowrie.
Provenance, Leases & Lean 4.
Integrity, capability binding, and bounded autonomy belong in the verified container layer—not a prompt-injection firewall or OS sandbox.
Provenance & Capability V2
Out-of-band 0x80 taint survives sub-16 KB payloads, slices, A2-Split, and S3 capsules; privileged calls require single-use Ed25519 COWRIE_CAP_V2 tokens (durable CWNL0002 or stateless challenge).
Tiered autonomy leases
Bounded local execution with host-pinned workspace roots, content-addressed pre/post-image snapshots, rollback, revocation, and dual-key T2 co-signatures (≤300 s).
Mechanically checked Lean 4 proofs
Forty safety, fence, taint, and canonical wire theorems checked in Lean 4 and cross-checked in differential lockstep against native Rust, Python, and WebAssembly.
Auditability
built into the log.
Every tool boundary, capability decision, lease action, and state transition writes cleanly to a verifiable trail verified 100% offline by cowrie verify-bundle.
Crash-safe .cwwal append logs & EvidenceBundles
Hash-chained canonical records separate power-loss torn tails from mid-log tampering deterministically, verified offline against pinned root keys and TrustBundle lifecycles.
Autonomy lease checkpoints & instant rollback
Review compact COWRIE_LEASE_DIGEST_V1 summaries instead of raw logs, revoke leases locally with zero network calls, and roll back T1 workspace writes via verified snapshots.
Integrates into your stack.
Install via pip install cowrie-ai==1.3.1 (PyPI & GitHub Release v1.3.1; npm and crates.io not published — build from source).
Use A2-Split on cached APIs; gate B2-b to fresh uncached local dumps.
A2-Split preserves prompt-cache prefix hits across 5 models (98.2%–100.0% syntactic; 85.1%–99.1% volatile trailer split) with 0 B KV written and 0 extra turns. B2-b virtualization is gated OFF on prompt-cached cloud APIs (Profile C) and scoped strictly to fresh uncached ≥16 KB local tool dumps in Profile E (RETRACTION.md).
Open Source (v1.3.1)
Apache-2.0 core published on PyPI (pip install cowrie-ai==1.3.1) and GitHub Releases (sdist + manylinux_2_39_x86_64 wheel); build from source for npm/Rust crates.
Engineering Audits
Hands-on trace forensics, Profile E/C workload audits, and Capability V2 boundary pilots for production agent and inference teams.
Enterprise
Closed-source Cowrie Control Plane: KMS/HSM Capability V2 issuance, YAML policy engine, HITL approvals, CRL revocation, and WORM .cwwal / EvidenceBundle vaults verified offline by Apache-2.0 cowrie verify-bundle.