Stop dumping 50 KB tool outputs into your agent's context window.
Cowrie v1.2 is an open-source zero-copy binary container, MCP virtualization proxy
(cowrie mcp-proxy --virtualize + R2-Compact), and formally verified trust kernel
built at OmenWorks by Femi Adeniran.
git clone https://github.com/Neumenon/cowrie && cowrie mcp-proxy --virtualizeContext-Rot & Agent Token ROI Calculator
Modeled directly from our paired RTX 3090 receipt (-89.1% gross token savings, -94.4% net-new with KV prefix caching).
Full static reference numbers are rendered below for non-JS crawlers and agents.
Static Reference Baseline (10k calls/day × 13,680 tok @ $3/1M): $12,312/mo inline → $1,342/mo Cowrie gross ($10,970/mo saved; $131,640/yr) or $689/mo with prefix caching ($11,623/mo saved).
RTX 3090 Paired Benchmark (Qwen3.5-9B-Q4_K_M)
Runtime: llama-server (RTX 3090, -ngl 99 -c 32768 -fa on -ctk q8_0 -ctv q8_0 --reasoning off --seed 42).
Every single task seals raw payloads in 0.25–1.08 ms, preserves taint across hops (4/4 untrusted injection tasks), and passes all 6 preregistered gates.
| Task | Category | Raw Bytes | Inline Status | Cowrie B2-b | Inline Tok | Cowrie Gross | Inline ms | Cowrie ms |
|---|---|---|---|---|---|---|---|---|
| T01 | atlas_sufficient | 67,335 | PASS | PASS | 24,005 | 558 | 6,795 | 574 |
| T02 | atlas_sufficient | 53,968 | PASS | PASS | 20,546 | 758 | 5,945 | 623 |
| T03 | atlas_sufficient | 50,702 | PASS | PASS | 17,453 | 1,526 | 4,925 | 943 |
| T04 | atlas_sufficient | 18,936 | FAIL | WIN (+1) | 8,511 | 1,237 | 2,566 | 1,177 |
| T05 | deep_json | 67,335 | FAIL | WIN (+1) | 24,030 | 1,451 | 652 | 1,122 |
| T06 | deep_json | 67,895 | PASS | PASS | 22,613 | 1,463 | 6,793 | 1,502 |
| T07 | deep_json | 64,045 | FAIL | WIN (+1) | 20,660 | 1,451 | 6,105 | 1,410 |
| T08 | deep_json | 14,968 | FAIL | WIN (+1) | 7,548 | 1,237 | 2,388 | 1,037 |
| T09 | deep_text | 17,332 | FAIL | WIN (+1) | 7,123 | 1,933 | 2,245 | 1,407 |
| T10 | deep_text | 19,885 | PASS | PASS | 6,949 | 1,670 | 2,220 | 1,120 |
| T11 | deep_text | 18,936 | PASS | PASS | 8,526 | 1,321 | 2,724 | 1,136 |
| T12 | deep_text | 27,540 | PASS | PASS | 9,952 | 1,542 | 3,057 | 1,215 |
| T13 | untrusted_injected | 31,205 | PASS | PASS (taint ok) | 17,779 | 2,271 | 5,108 | 1,312 |
| T14 | untrusted_injected | 21,192 | PASS | PASS (taint ok) | 5,793 | 1,508 | 1,794 | 993 |
| T15 | untrusted_injected | 23,552 | PASS | PASS (taint ok) | 10,816 | 2,468 | 3,159 | 1,259 |
| T16 | untrusted_injected | 18,800 | PASS | PASS (taint ok) | 6,589 | 1,527 | 2,038 | 1,038 |
| TOTAL (16 Paired Tasks) | 11/16 | 16/16 (+5 flips) | 218,893 | 23,921 (-89.1%) | 58,514 ms | 17,868 ms (3.27×) | ||
Mechanically Checked Trust Membrane (Bend 2.0.35)
BendTT Kernel Proofs — 26/26 PASS
Verified in 259.29 ms median across 87 kernel definitions and 121 proof definitions with 0 unsafe blocks, 0 holes, 0 templates.
- Taint & Gate Soundness:
L01–L06b, L15–L19, L25— irrevocable multi-hop taint, fail-closed unknown parents/empty args, forged/expired token rejection. - Prompt-Fence Isolation:
L07–L08, L20–L21— prevents triple/quad-bracket fence breakouts and unsanitized table-header injections. - Canonical Wire & Storage:
L09–L14, L22–L24— canonical roundtrip uniqueness, sorted zonemap exactness, Merkle domain separation, torn WAL vs mid-tamper detection.
Adversarial Controls & Lockstep
Proofs are tested against planted bugs and executed in differential lockstep against native Rust/C-ABI implementations.
- 13/13 Planted False Mutants Rejected: Every weakened spec (
M1–M13) fails kernel verification cleanly. - 2,000/2,000 Lockstep Vectors PASS: Compiled
Bend .mjsverified against Rust/C across Planes A, B, and D. - 8/8 Real C-ABI Bugs Caught & Fixed (F1–F8): Including four-bracket breakout, WAL zombie tombstone reinsert, and tensor-ref boundary escape.
Where Cowrie v1.2 Sits vs. Existing Formats
| Format | Zero-Copy Tensor / Binary | Schema-Optional Dynamic Objects | Agent Context Virtualization | Formal Taint & Fence Proofs |
|---|---|---|---|---|
| Cowrie v1.2 | Yes (typed tensors + R0–R3) | Yes (deterministic canonical wire) | Yes (mcp-proxy --virtualize) | Yes (26/26 BendTT laws) |
| JSON | No (base64 overhead) | Yes | No (context bloat / rot) | No |
| Protobuf / FlatBuffers | Partial (bytes fields) | No (pre-compiled schema required) | No | No |
| Apache Arrow IPC | Columnar batches | Rigid table schemas | No | No |
| MessagePack / CBOR | Raw byte blobs | Yes | No | No |
| Safetensors | Weights only | No (flat tensor headers only) | No | No |
Work With OmenWorks
AI Cost & Context-Rot Audits
Hands-on engineering audits for agentic production teams spending heavily on MCP/tool-output tokens or suffering multi-turn reasoning degradation.
- Trace & Token Forensics: Measure real context-bloat distribution across your agent tool traces.
- Drop-In Virtualization Pilot: Benchmark
cowrie mcp-proxy --virtualizeon paired production tasks with frozen accuracy & latency gates. - Contact: femi@omenworks.dev or hello@omenworks.dev
Open Standards & Reproducibility
OmenWorks develops open-source, permissively licensed wire specifications and formal verification artifacts for the open internet stack.
- Repository: github.com/Neumenon/cowrie
- Founder: Femi Adeniran · @omenworksdev
- Support & Security: support@omenworks.dev