SUM EQUITIES

SUM — Verifiable Bidirectional Knowledge Distillation

Cryptographic provenance for AI knowledge transforms. Every transform — render, extract, compose, slider — emits a signed receipt anyone can verify offline. Six-regime compliance validators (EU AI Act, GDPR, HIPAA, SOC 2, ISO 27001, PCI DSS) and a layered sum verify --explain output landed in v0.7.0; current release is v0.8.1. Same bytes verify identically in Python, Node, and modern browsers.

Beta ★ 9 · last commit 1 month ago · 91 commits / 30d Verified Jun 22, 2026

The shipped SUM web UI — the 'SUM · Universal Knowledge Engine' page with Text/File input tabs, a sample text box, and the Target Density slider (Tags / SUM / Short / Article / Essay / Book) that drives the distillation.

CI PyPI — sum-engine

A cross-runtime trust surface for LLM-rendered text.

SUM focuses on one load-bearing claim: Python, Node, and modern browsers produce byte-identical Ed25519 signatures over the same JCS-canonical bytes for signed render receipts.

Each hosted render returns a detached-JWS receipt (sum.render_receipt.v1) that can be verified offline against JWKS.

View RepositoryPyPI: sum-engineLive demo (worker)Proof Boundary


What Ships Today

  • sum-engine on PyPIpip install 'sum-engine[sieve]'sum attest, sum verify, sum render, sum resolve, sum ledger, sum inspect, sum schema, plus the v0.7.0 additions: sum transform list / apply <name> (registry-dispatched transforms with sum.transform_receipt.v1), sum verify --explain (layered per-dimension report), and sum compliance check --regime <id> (six-regime validator). 170 catalogued features in docs/FEATURE_CATALOG.md (151 production, 18 scaffolded, 1 designed), sourced from meta/repo_manifest.json at v0.8.1. The v0.8.0 pip install 'sum-engine[verify]' extra — a dependency-light (cryptography + joserfc, no numpy/torch) receipt verifier that checks SUM’s signed receipts and replays a meaning-risk certificate’s conformal bound offline.
  • Cloudflare Worker APIs (/api/render, /api/transform, /api/complete, /api/qid) plus verification surfaces (/.well-known/jwks.json, /.well-known/revoked-kids.json). Per-IP rate limiter + BYO-key gate on public LLM-axis routes (5/24h operator-keyed demo, 100/hr with BYO key).
  • Browser demo for in-browser attest/verify; same bytes verify under the Node verifier in standalone_verifier/.
  • Cross-runtime trust triangle in CI (make xruntime + make xruntime-adversarial) — K1–K4 valid-input agreement, A1–A6 rejection-class equivalence, plus the 20-fixture transform K-matrix locking accept + reject for sum.transform_receipt.v1 across Python ↔ Node ↔ browser.
  • MCP server (sum-mcp) exposing extract / attest / verify / inspect / schema over stdio.
  • Multi-provider cascadeLiveLLMAdapter.from_model routes by model-id prefix across OpenAI / Anthropic (Worker) / HF Inference Providers / NVIDIA NIM / Groq / Cerebras / Ollama / llama.cpp / local: (Modal, Fireworks, vLLM-on-anything). Free-tier options first-class.
  • Replay-defense window — opt-in signed_at_out_of_window check on all four verifier surfaces (Python render / Python transform / JS render / JS transform). Default-off preserves archival use.
  • Negative-control corpus (T5) — 20 hand-authored documents across five failure modes; runner exits 1 when the bench succeeds on inputs it should fail on.

Truthfulness Boundary (Explicit)

SUM makes a hard distinction between:

  • Mechanically proven surfaces (canonical codec, cross-runtime signature equivalence, verifier parity), and
  • Empirical LLM behavior (extraction quality, slider preservation, narrative round-trip fidelity).

The full LLM narrative round-trip (text → LLM-extract → axioms → LLM-generate → prose' → LLM-extract → axioms') was closed empirically across three measured corpora on 2026-04-28 under a two-layer intervention (canonical-first generator prompt + constrained-decoding extractor + lemma-exclusion of source-predicate lemmas from the canonical-padding set). Combined results: seed_v1 recall 1.0000 / drift 0.00%, seed_v2 0.9750 / 5.00%, seed_long_paragraphs 0.9972 / 0.57%. The unprompted baseline (no intervention) stands at the documented 107.75% drift / 0.12 recall on seed_v1 — preserved as the “no-intervention” reference point. Empirical closure on three corpora is not the same as corpus-independent proof: the deterministic round-trip is mechanically proven (§1.1); the LLM round-trip is closed empirically (§2.5). Full attribution and bench receipts in docs/PROOF_BOUNDARY.md.

Technical Surface

  • Core package: Python 3.10+ (sum-engine)
  • Trust/verification: Ed25519 + JCS canonicalization + detached JWS receipts
  • Runtime parity: Python CLI verifier, Node verifier, in-browser verifier
  • Infra: Cloudflare Worker for hosted render/verification endpoints
  • Protocol surfaces: CanonicalBundle format, render receipts, MCP tool server

Why It Matters

SUM is built for cases where downstream systems need proof that output was produced and signed by a specific issuer under a reproducible canonical format — without pretending that cryptographic attestation alone proves semantic truth.

That explicit separation between attestation guarantees and semantic-quality benchmarks is the core product stance.

License

Apache 2.0.

Repository README

We couldn't load this repository's README from GitHub right now. You can view it directly on GitHub instead.

View README on GitHub

Related work