Skip to content

Commit 93c878e

Browse files
committed
release(v1.3.1): remediate ASTRA P0/P1 findings, CLI help/npx fixes, WASM receipt, and unified packaging
1 parent de8ec06 commit 93c878e

63 files changed

Lines changed: 761 additions & 383 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎CHANGELOG.md‎

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,33 @@
22

33
All notable changes to Cowrie (`cowrie-ai`) are documented in this file.
44

5-
## [1.3.0] — 2026-11-30
5+
## [1.3.1] — 2026-12-01
6+
7+
### Release, CLI & Packaging Fixes (Supersedes `v1.3.0`)
8+
- **Unified Single-Commit Release (`v1.3.1`):** Cut from one post-fix commit across GitHub Release, annotated tag `v1.3.1`, PyPI wheel/sdist (`cowrie-ai==1.3.1`, `1.3.0` yanked as superseded), and all three websites (`omenworks.dev`, `femiadeniran.com`, `mostlyquantized.com`).
9+
- **CLI Usability Fixes (`crates/cowrie-cli`, `wasm/bin/cowrie.mjs`):**
10+
- Added exit-0 `-h`/`--help` usage handlers to `cowrie lease issue|verify|revoke|digest|rollback`, `cowrie verify-bundle`, `cowrie mcp-proxy`, and `cowrie mcp-config`.
11+
- Refused `cowrie mcp-config --bin npx` fail-closed while npm `cowrie-ai` remains unpublished (`404`), directing users to `--bin cowrie`.
12+
- Fixed `wasm/test_wasm.mjs` to honor `CARGO_TARGET_DIR` when locating `cowrie_core.wasm`.
13+
- **PyPI Metadata & Sdist Completeness:** Added `README.pypi.md` (absolute `v1.3.1` GitHub & raw SVG banner URLs, no `<picture>` tags), added `docs/AUTONOMY-LEASES.md` and `RETRACTION.md` to `MANIFEST.in`, updated `pyproject.toml` authors/summary/Homepage and `crates/cowrie-core/Cargo.toml` / `wasm/package.json` / `CITATION.cff` metadata.
14+
- **Measured `v1.3.1` WASM & Binary Receipt:** Committed [`receipts/receipt_v1_3_wasm_and_binaries.json`](receipts/receipt_v1_3_wasm_and_binaries.json) measuring the stripped `v1.3.1` zero-import `cowrie_core.wasm` (`373,558 B` raw / `138,410 B` = `135.2 KiB` gzip-9; Node v22.20.0 `0.98 ms` cold / `0.42 ms` warm median instantiate, `1.91 µs` verify+CID; `150/150` frozen vectors, `706/706` WASM-applicable harness cases) alongside native `libcowrie_core.so` (`1,101.7 KiB`) and `cowrie` CLI (`1,504.8 KiB`).
15+
- **Evidence, Attribution & Doc Hygiene Corrections:**
16+
- Corrected Lean 4 mutation attribution everywhere from `60 mutants` (which silently included `34` legacy Bend mutants) to **`26` Lean kernel mutants (`LM01`–`LM26`) + `16` constructive refutations (`R1`–`R16`)**, labeled Bend explicitly as **legacy tooling** in `formal/README.md`, `harness/{PHASE1,PHASE2,FINDINGS}.md`, and `reports/COWRIE-BOOK.md`, and removed unlabelled `M01`–`M34` refs from `docs/laws-plain-english.md`.
17+
- Fixed `A2-Split` attribution (`98.2%–100.0%` syntactic KV hit vs `85.1%–99.1%` volatile `request_ts` trailer split across 5 models), `GLM-4.5-Air` parity caveat (`3/3` QA; `46/64` AWQ nondet, native `1/64`), and `S3` capsule full range (including `−8.3 pp` on 4K in-window `SmolLM2-1.7B`).
18+
- Reconciled `receipts/RUN-INDEX.md` and `RUN-INDEX.json` raw receipt verdicts (`REFRAME-W1-FORK-POOL` → `FAIL_THRESHOLD_1.36x_VS_1.35x (32/32 PARITY PASS)`; `QuantTrio/Qwen3.5-35B-A3B-AWQ` explicit override note), redacted `/home/omen/...` and `bendweb-live` paths from served receipts, sanitized and archived `docs/archive/CLOUD-LANE-01.md` and `docs/archive/USES-DEEP-DIVE.md`, repaired all `docs/archive/` links/HTML assets, and sanitized `ROADMAP.md`.
19+
20+
## [1.3.0] — 2026-11-30 *(Superseded by `v1.3.1`)*
621

722
### Distribution & Packaging
8-
- **PyPI & GitHub Release:** Published **`cowrie-ai==1.3.0`** on PyPI (sdist + `manylinux_2_39` wheel, `pip install cowrie-ai==1.3.0`) and [GitHub Release `v1.3.0`](https://github.com/Neumenon/cowrie/releases/tag/v1.3.0) with both assets (`Apache-2.0`). npm `cowrie-ai` and crates.io `cowrie-core`/`cowrie-cli` are not yet published (build from source).
23+
- **PyPI & GitHub Release:** Published **`cowrie-ai==1.3.0`** on PyPI (later yanked in favor of `1.3.1`) and [GitHub Release `v1.3.0`](https://github.com/Neumenon/cowrie/releases/tag/v1.3.0) (`Apache-2.0`). npm `cowrie-ai` and crates.io `cowrie-core`/`cowrie-cli` are not yet published (build from source).
924

1025
### Architecture & Scale Inversion (32K–250K & Big/MoE)
11-
- **Profile E (Edge) / Profile C (Cloud) Split (`python/cowrie/profiles.py`, `docs/PROFILES.md`):** Separated local workstation and multi-tenant cloud serving into explicit, immutable presets sharing one canonical core.
26+
- **Profile E (Edge) / Profile C (Cloud) Split (`python/cowrie/profiles.py`, `docs/PROFILES.md`):** Separated local workstation and single-node multi-tenant cloud serving into explicit, immutable presets sharing one canonical core.
1227
- **Profile E (Edge):** `durable=True` (`fsync` on local `btrfs`/NVMe), `min_statepage_ctx_tokens=4096`, local grammar-gated `B2-b` virtualization (`16 KB`), `A2-Split`, `S3` capsules, and durable single-use nonce ledgers. Edge `32K–250K` (`llama.cpp`, RTX 3090 `Qwen3.5-9B`): **`12.1× → 59.0×`** cold E2E-64, **`73×`** warm (`100%` parity).
1328
- **Profile C (Cloud):** `durable=False` (`/dev/shm` restart/swap or dedicated local NVMe), StatePage hard-gated **OFF** below `32,768` tokens (`65,536` recommended for dense 8B) and hard-gated **OFF** on `overlayfs`, `B2-b` off on cached APIs, and stateless challenge-nonce verification.
14-
- **Scale inversion validated (`receipts/RUN-INDEX.md`):** Confirmed that KV StatePages cross breakeven cleanly at `>= 32K` tokens on both dense (`Llama-3.3-70B-AWQ` **`5.91×`** E2E, `64/64` parity) and pure-attention MoE (`GLM-4.5-Air-AWQ` **`3.30×`**, `Mixtral-46.7B-AWQ` **`3.15×`** `64/64` parity) models while staying sub-breakeven at short contexts (`<= 16K`) and on `overlayfs`. Hybrid `MambaSpec` MoE (`Qwen3.5-35B-A3B`: **`1.30×`** at 32K, `0/64` parity) is fail-closed in `CowrieKVConnectorV1`.
29+
- **Scale inversion validated (`receipts/RUN-INDEX.md`):** Confirmed that KV StatePages cross breakeven cleanly at `>= 32K` tokens on both dense (`Llama-3.3-70B-AWQ` **`5.91×`** E2E, `64/64` parity) and pure-attention MoE (`GLM-4.5-Air-AWQ` **`3.30×`** [`3/3` QA; `46/64` AWQ nondet, native `1/64`], `Mixtral-46.7B-AWQ` **`3.15×`** `64/64` parity) models while staying sub-breakeven at short contexts (`<= 16K`) and on `overlayfs`. Hybrid `MambaSpec` MoE (`Qwen3.5-35B-A3B`: **`1.30×`** at 32K, `0/64` parity) is fail-closed in `CowrieKVConnectorV1`.
1530
- **Native V4 vLLM Connector (`adapters/vllm/cowrie_kv_connector.py`):** Self-describing V4 layout with pinned-slab async staging, split durability policy, Profile E/C admission gates (`<32K` and `overlayfs`), O(1) header probing (3× → 1× Merkle verification per hit), TP>1/PP>1 CID parity fix, and fail-closed `MambaSpec` handling until vLLM exposes exact recurrent-state slot layouts.
16-
- **S3 Semantic Capsules & A2-Split (`python/cowrie/__init__.py`):** Shipped `encode_s3_capsule` / `decode_s3_capsule` for cross-family big-chewer → small-worker knowledge handoff (`+16.7 pp` to `+100 pp` accuracy lift on small workers, `100%` `0x80` taint preservation) and `canonicalize_a2_split` (**`98.2%–100%`** KV hit across 5 models, **`0 B`** KV written, **`0`** extra turns).
31+
- **S3 Semantic Capsules & A2-Split (`python/cowrie/__init__.py`):** Shipped `encode_s3_capsule` / `decode_s3_capsule` for cross-family big-chewer → small-worker knowledge handoff (**`−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; `100%` `0x80` taint preserved [`SEC-10`, `20/20` refused]; query-blind ablation open) and `canonicalize_a2_split` (**`98.2%–100.0%`** syntactic KV hit, **`85.1%–99.1%`** with volatile `request_ts` trailer split across 5 models, **`0 B`** KV written, **`0`** extra turns).
1732

1833
### Security Hardening, Carbon Audit & Autonomy Leases
1934
- **Adversarial Verification (`12/12` Attack Classes / `205/205` Refused; Carbon Audit `9/9` Regressions; Rust `31/31`):**
@@ -25,7 +40,7 @@ All notable changes to Cowrie (`cowrie-ai`) are documented in this file.
2540
- **Taint Below the 16 KB Floor:** Guaranteed `_meta.cowrie` (`cid`, `authority`, `tainted`, `virtualized`) and `BIT_TAINTED (0x80)` survive payloads under `16 KB`, `B2-b` virtualization, `cowrie_get` slices, `A2-Split` canonicalization, `S3` capsules, and omitted-parent `CowrieMemoryStore` summaries.
2641
- **Host Lineage, Secret-Path & Malicious Tool-List Defenses:** Hard-disabled caller-supplied `_cowrie_parents` trust overrides; tightened output classification to default-untrusted for unknown tools (e.g., `get_ticket`); blocked direct and symlink-resolved secret-path reads (`~/.ssh`, `.env`, `/proc/self/environ`, `/etc/shadow`, etc.) unless explicitly allow-listed; pinned MCP `tools/list` canonical hashes to reject mid-session rug-pulls and ignore deceptive server `readOnlyHint: true` annotations; logged every refusal to stderr and `.cwwal`.
2742
- **Honest Security Docs (`docs/SECURITY.md`):** Withdrew all "prompt-injection firewall" claims and documented exact cryptographic/container guarantees vs non-guarantees.
28-
- **Formal Verification:** **Lean 4** (`40` theorems, `60` mutants rejected, `leanchecker --fresh`, zero external deps; see `docs/laws-plain-english.md` and `formal/README.md`).
43+
- **Formal Verification:** **Lean 4** (`40` theorems, `26` Lean kernel mutants `LM01`–`LM26` + `16` constructive refutations `R1`–`R16`, `leanchecker --fresh`, zero external deps; see `docs/laws-plain-english.md`, `formal/README.md`, and `formal/AUDIT.md`).
2944

3045
## [1.2.0] — 2026-11-28
3146

‎CITATION.cff‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ authors:
1010
repository-code: "https://github.com/Neumenon/cowrie"
1111
url: "https://omenworks.dev"
1212
license: Apache-2.0
13-
version: "1.3.0"
14-
date-released: "2026-11-30"
13+
version: "1.3.1"
14+
date-released: "2026-12-01"
1515
keywords:
1616
- canonical-serialization
1717
- ai-infrastructure
@@ -30,5 +30,5 @@ abstract: >-
3030
verified 16 KB-aligned inference state checkpoint format (CWSP StatePages split into Profile E
3131
Edge and Profile C Cloud), S3 semantic handoff capsule format, Capability V2 (COWRIE_CAP_V2) and
3232
tiered Autonomy Lease (COWRIE_LEASE_V1) provenance runtime, and offline audit verifier
33-
(cowrie verify-bundle), verified by 40 Lean 4 theorems (60 mutants rejected) and a 753-case
34-
differential harness.
33+
(cowrie verify-bundle), verified by 40 Lean 4 theorems (26 Lean kernel mutants + 16 constructive
34+
refutations) and a 753-case differential harness.

‎Cargo.lock‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ exclude = ["fuzz"]
77
resolver = "2"
88

99
[workspace.package]
10-
version = "1.3.0"
10+
version = "1.3.1"
1111
edition = "2021"
1212
license = "Apache-2.0"
1313
repository = "https://github.com/Neumenon/cowrie"
14-
homepage = "https://github.com/Neumenon/cowrie"
14+
homepage = "https://omenworks.dev/"
1515
readme = "README.md"
1616
keywords = ["ai", "kv-cache", "llm", "merkle", "security"]
1717
categories = ["encoding", "cryptography", "wasm"]

‎MANIFEST.in‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
include README.md CHANGELOG.md LICENSE Cargo.toml Cargo.lock pyproject.toml setup.py
2-
include docs/SECURITY.md docs/PROFILES.md docs/QUICKSTART.md
1+
include README.md README.pypi.md CHANGELOG.md RETRACTION.md LICENSE Cargo.toml Cargo.lock pyproject.toml setup.py
2+
include docs/SECURITY.md docs/PROFILES.md docs/QUICKSTART.md docs/AUTONOMY-LEASES.md
33
recursive-include crates *.rs *.toml *.h
44
recursive-include python *.py
55
recursive-include adapters/vllm *.py

0 commit comments

Comments
 (0)