OMENWORKS GitHub
→ Cowrie v1.3.1 · pip install cowrie-ai==1.3.1 · Autonomy Leases & receipts

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.

Cowrie v1.3.1 · Apache‑2.0 0 external crates 205/205 Security V2 refused 40 Lean 4 theorems · 26 mutants + 16 refutations

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.

TRAINING
Offline Training & Analytical Lakes
Lance, Vortex, Nimble, Parquet & Arrow
WEIGHTS
Static Model Weights
Safetensors & GGUF
RUNTIME
Live AI Context, State & Trust
Cowrie — canonical wire, virtualized context, live StatePages, and deterministic provenance & capability gating

Measured on real hardware.

Every headline figure resolves directly to a reproducible JSON receipt published in the repository.

98.2–100%

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.

llama.cpp + vLLM 0.34.0 · 5 models · 0 B KV written
B2-b gated OFF on cached cloud APIs (Profile E only)
/receipts/a2-split.json ↗ · EXP-A3 ↗ · RETRACTION.md ↗
Profile E (RTX 3090 32K–250K): 12.1×–59.0× cold, 73× warm
Profile C (32K): 70B 5.91× (64/64) · GLM-4.5-Air 3.30× (3/3 QA; 46/64 AWQ nondet, nat 1/64) · Mixtral 3.15× (64/64)
Qwen3.5-35B-A3B: 1.30× at 32K, fail-closed (MambaSpec)
73-entry RUN-INDEX.md ↗
5.91×

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).

205/205

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).

12/12 classes refused · Audit regressions 9/9 · Rust 31/31
135.2 KiB gzipped zero-import WebAssembly (receipt ↗)
docs/SECURITY.md ↗ · AUTONOMY-LEASES.md ↗
Lean 4.34.0 · 0 external deps · leanchecker --fresh
26 Lean kernel mutants + 16 constructive refutations · 753-case harness
docs/laws-plain-english.md ↗ · AUDIT.md ↗
40/40

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.

COWR CANONICAL WIRE · A2-SPLIT RAW JSON (KEY DRIFT) 0.0–0.4% KV hit COWRIE A2-SPLIT (5 MODELS) 98.2–100% syn 85.1–99.1% volatile trailer · 0 B KV · cid:34b

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_ts trailer 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-proxy for provenance, Capability V2, T0/T1/T2 Autonomy Leases, and .cwwal audit logs.
CWSP · 16,384 B HARDWARE ALIGNMENT 16 KB NVMe /dev/shm SHA-NI 5.91× / 59× 70B 32K CLOUD E2E · 250K EDGE COLD (73× WARM) GLM-4.5-Air 3.30× (46/64 AWQ nondet) · Mixtral 3.15×

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.
ZERO EXTERNAL CRATES · <5s OFFLINE BUILD cowrie-core · 150 / 150 frozen vectors Rust & C/C++ ABI 169.8 ns verify Python SDK Lance / Arrow / vLLM WebAssembly (0 imports · 135.2 KiB gzip) 0.98 ms cold / 0.42 ms warm · 1.91 μs verify (v1.3.1)

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.

SECURITY V2 · CARBON AUDIT
web_fetch → shell REFUSED
12/12 classes · 205/205 refused · 9/9 Carbon · 31/31 Rust

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).

AUTONOMY LEASES · COWRIE_LEASE_V1
T0 observe / T1 reversible / T2 co-signed
Single-use or long lease + durable budgets
Checkpoint digest + cowrie lease rollback

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).

LEAN 4 VERIFICATION
Lean 4.34.0 Kernel Replayleanchecker --fresh · 0 external deps
40 / 40
Lean Kernel Mutants & Refutations26 LM01–LM26 rejected + 16 R1–R16 proved
26 + 16
Differential Harness18 pre-ship bugs caught (F1–F18, formal/AUDIT.md)
753

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.

Inspect lean.json →

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).

Claude Code & Cursor (MCP) LangGraph / OpenAI Agents / PydanticAI CowrieKVConnectorV1 (vLLM V4) Cloudflare Workers & Edge WASM llama.cpp & ComfyUI / Diffusers LanceDB & Apache Arrow
Honest Profiles · Profile E vs Profile C

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 Profile E Estimator →
A2-Split syntactic / volatile (5 mod)98.2–100% / 85.1–99.1%
Edge 32K–250K E2E-64 (Profile E)12.1×–59.0× (73× warm)
Cloud 32K 70B / GLM-4.5-Air / Mixtral5.91× / 3.30× (46/64 AWQ) / 3.15×
B2-b on cached cloud APIsGated OFF

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.

Release v1.3.1 →

Engineering Audits

Hands-on trace forensics, Profile E/C workload audits, and Capability V2 boundary pilots for production agent and inference teams.

Get in touch →

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.

Talk to OmenWorks →