# OmenWorks — Cowrie v1.3.1

> Binary infrastructure for live AI. OmenWorks builds Cowrie—a zero-dependency canonical binary container (`COWR`/`CWRF`), verified KV StatePages split into Edge (`Profile E`) and Cloud (`Profile C`), `S3` semantic capsules, Capability V2 provenance runtime, tiered Autonomy Leases (`COWRIE_LEASE_V1`), and offline `cowrie verify-bundle` auditor.

## Architecture (`v1.3.1`, Apache-2.0)
- **Canonical `COWR` Wire & `A2-Split`:** Bijective key-order-invariant frames (`169.8 ns` zero-alloc C verify, `receipt_v1_1_hardening.json`); `A2-Split` achieves **`98.2%–100.0%`** syntactic KV hit (**`85.1%–99.1%`** with volatile `request_ts` trailer split) across 5 models (`llama.cpp` + `vLLM 0.34.0`), **`0 B`** KV written, **`0`** extra turns (`receipt_exp_b2_a2_multi_engine.json`, `receipt_exp_a3_canonical_prefix.json`).
- **Two Explicit StatePage Profiles (`docs/PROFILES.md`):**
  - **Profile E (Edge Workstation):** `durable=True` (`btrfs`/NVMe), `>= 4K` context. RTX 3090 `Qwen3.5-9B` (`llama.cpp`, `32K → 250K`): TTFT `76.7× → 175.6×`, E2E-64 **`12.1× → 59.0×`** cold (**`73×`** warm; 64K row `19.7×` cold), `KL=0.00`, `100%` parity (`receipt_reframe_edge_32k_250k_3090.json`).
  - **Profile C (Single-Node Multi-Tenant Serving):** `durable=False` (`/dev/shm` or dedicated NVMe), hard-gated **OFF `< 32K`** (`< 64K` dense 8B) and **OFF on `overlayfs`**, fail-closed on vLLM `MambaSpec` hybrids. Blackwell `vLLM 0.34.0` V4 `32K`: 70B dense (`Llama-3.3-70B-AWQ`) **`5.91×`** E2E (`15.37×` TTFT, `64/64`), `GLM-4.5-Air` **`3.30×`** (`3/3` QA; `46/64` AWQ nondet, native `1/64`), `Mixtral-46.7B-AWQ` **`3.15×`** (`64/64`), `Qwen3.5-35B-A3B` **`1.30×`** at 32K and **fail-closed** (`MambaSpec`) (`receipt_reframe_cloud_big_moe_blackwell.json`).
- **`S3` Semantic Capsules:** `~2 KB` wire vs `907 MB` raw KV: `100%` on `Qwen2.5-14B → Qwen2.5-1.5B` (`4K` & `32K`); `−8.3 pp` on 4K in-window `SmolLM2-1.7B` (`95.8% → 87.5%`), `0 pp` to `+33.3 pp` on 32K–64K in-window edge workers, and `0% → 100%` (`+100 pp`) when context exceeds the worker's native window (`SmolLM2-1.7B` 32K, `Qwen2.5-1.5B` 64K) with `100%` `0x80` taint preserved (`receipts/RUN-INDEX.md`).
- **Capability V2, Audit Hardening, Autonomy Leases & Offline Audit (`docs/SECURITY.md`, `docs/AUTONOMY-LEASES.md`):** Single-use Ed25519 `COWRIE_CAP_V2\0` tokens, session taint root (`COWRIE_TAINT_SET_V1`), durable `CWNL0002` nonce ledger / `StatelessChallengeVerifier`, pinned MCP `tools/list`, symlink-resolved secret-path blocking, `.cwwal` audit logs, offline `cowrie verify-bundle`, and tiered **Autonomy Leases (`COWRIE_LEASE_V1`)** (T0 observe, T1 reversible workspace writes, T2 irreversible/external with optional dual-key `<=300 s` co-signature; single-use or long lease, durable budgets, checkpoint digest, and content-addressed `cowrie lease rollback`). Verified: **`12/12` attack classes, `205/205` attacks refused** (`receipt_security_v1_3_summary.json`), audit regressions **`9/9`**, Rust **`31/31`**. **Honest scope:** Cowrie is a verified container, provenance ledger, autonomy-lease runtime, and capability boundary — **not** a prompt-injection firewall or OS sandbox.
- **Formal & Differential Verification:** **`40` Lean 4 theorems** (`26` Lean kernel mutants `LM01`–`LM26` + `16` constructive refutations `R1`–`R16`, zero external deps, `leanchecker --fresh`, `receipt_v1_2_formal_lean.json`; `18` bugs `F1–F18` fixed in `formal/AUDIT.md`), `753`-case differential harness (`0` disagreements; `706/706` WASM-applicable), zero-import `cowrie_core.wasm` (`135.2 KiB` gzipped / `364.8 KiB` raw; Node v22 `0.98 ms` cold / `0.42 ms` warm load, `1.91 µs` verify+CID; `receipt_v1_3_wasm_and_binaries.json`).

## Claim Corrections ([`RETRACTION.md`](https://github.com/Neumenon/cowrie/blob/v1.3.1/RETRACTION.md))
- Earlier `v1.2` benchmark and marketing claims are formally retired in [`RETRACTION.md`](https://github.com/Neumenon/cowrie/blob/v1.3.1/RETRACTION.md). Clean 80-task `B2-b` (`receipt_exp_a2_accuracy_confidence.json`): `−89.4%` gross total / `−94.8%` net-new tokens, `2.48×` wall time, accuracy parity under test (`70/80` vs `62/80`, `p = 0.1338`). `B2-b` is gated **OFF** on prompt-cached cloud APIs (`Profile C`, where `2.34×–4.05×` output inflation adds `+86.5%` to `+153.7%` cost per `receipt_exp_b1_b2b_multi_engine.json`); use `A2-Split` there instead.

## Install, Release & Source
- **PyPI (`v1.3.1`, published):** `pip install cowrie-ai==1.3.1` (sdist + `manylinux_2_39_x86_64` wheel, Apache-2.0; `1.3.0` superseded).
- **GitHub Release `v1.3.1`:** https://github.com/Neumenon/cowrie/releases/tag/v1.3.1 (wheel, sdist, `SHA256SUMS.txt`).
- **Other registries:** npm `cowrie-ai` and crates.io `cowrie-core`/`cowrie-cli` are **not published** — build from source at https://github.com/Neumenon/cowrie. Do not install bare `cowrie` (unrelated honeypot) or retired legacy codec packages (`Neumenon/cowrie-legacy`).
- **Pages:** https://omenworks.dev/ · https://omenworks.dev/benchmarks · https://omenworks.dev/estimator · https://omenworks.dev/log
- **Connected Channels:** https://femiadeniran.com/ · https://mostlyquantized.com/ · https://huggingface.co/OmenWorks · https://www.youtube.com/@omenworksdev · https://x.com/Phenomenon_One · hello@omenworks.dev
