# WhiteMagic Labs — Company & Technical Dossier (`/company.md`)

> Canonical machine-readable and human-readable overview of WhiteMagic Labs, its open-source agent infrastructure, published evidence and standards work, and commercial and grant funding tracks.
> Last updated: 2026-11-26 · Canonical site: https://www.whitemagic.dev

## 1. Identity & Mission

- **Organization:** WhiteMagic Labs (independent open-source AI systems engineering lab)
- **Founder / Maintainer:** Lucas Bailey (`@lbailey94` / `@aquarianexodus`)
- **Primary Focus:** Deterministic local memory, OS-level capability confinement, and cryptographic session provenance for AI agents.
- **Core License:** MIT (the local core is free, self-hosted, requires no account or cloud dependency, and sends no off-device usage telemetry by default).
- **Engineering Posture:** Rigorous systems security engineering grounded in Linux Landlock LSM kernel boundaries, authenticated encryption, and verifiable receipts. WhiteMagic builds open digital public goods and does not pursue speculative alignment tracks or involuntary restraint frameworks.

## 2. Triquetra Core Architecture

1. **Durable Local Memory & Client-Encrypted Crystals**
   - Local-first memory and session continuity binary (`wm`) with MCP (`stdio` / HTTP) and CLI interfaces across Claude Code, Cursor, Gemini CLI, Codex, and OpenCode.
   - `whitemagic-crystal`: client-side ChaCha20-Poly1305 / AES-256-GCM authenticated encryption for portable agent state with content-addressed IDs, erasure tombstones, and off-store commitment anchors.
2. **Deterministic OS Containment**
   - Linux Landlock LSM filesystem and network capability confinement (`mandalaos-gate-lite` and kernel boundary profiles) enforcing explicit operating scope without requiring a cloud proxy.
3. **Verifiable Cryptographic Provenance**
   - `continuity-receipt` (`continuity-receipt/0.5` normative spec): Ed25519-signed Causal Provenance Receipts (`did:key` + RFC 8785 JCS canonicalization) verifiable completely offline across Python, Rust, and JavaScript reference implementations.

## 3. Published Evidence and Standards Work

- **AGMI Storage Integrity Benchmark (2026-11-17):** In Yasha Khandelwal’s independent reproduction, the default LocalCrystalStore rejected **10 of 10** storage edits on read, including whole-store rollback and erasure resurrection. The commitment anchor was outside the store and out of the attacker’s reach. With the anchor inside the store, **8 of 10** edits were rejected on read. The separate signed-ciphertext audit detected all ten at audit time.
  - Report: https://agentmemoryintegrity.org/stores/whitemagic-crystals.html
  - Reproduction: https://lists.w3.org/Archives/Public/public-ai-agent-memory-interop/2026Nov/0006.html#start
- **Agent Audit Office Reports #1 & #2 (2026-11-18 & 2026-11-25):** WhiteMagic’s Base ERC-8004 agent (`8453:96639`) received **Grade A** in two consecutive weekly reports for observed endpoint availability and eight qualifying x402 payments from five payer addresses under the report’s criteria.
  - Published ratings (Report #1): https://github.com/AgentAuditOffice/agent-audit-office/blob/main/reports/2026-11-18-report-1/ratings_A.csv
  - Live weekly badge (CC BY 4.0, Agent Audit Office): https://api.agentauditoffice.com/v1/badge/8453:96639.svg · https://agentauditoffice.com/#grade-a
  - Methodology: https://github.com/AgentAuditOffice/agent-audit-office/blob/main/methodology.md
- **Verified by a-un Paid Delivery Check (2026-11-23):** Independent real USDC payment (`0.002 USDC` on Base) to `https://api.whitemagic.dev/notarize` returned `HTTP 200` with valid JSON.
  - Public receipt: https://a-upgradenet.com/verified/rc_91789472b866c27b
- **W3C AI Agent Memory Interoperability Community Group:** Lucas Bailey contributed Use Case 9 to the catalogue's first working draft. It covers non-custodial cryptographic erasure, including read-time rejection of snapshot rollback and the return of erased records.
  - Catalogue: https://lists.w3.org/Archives/Public/public-ai-agent-memory-interop/2026Oct/0071.html#start
- **IETF SCITT Individual Internet-Draft (work in progress):** `draft-bailey-scitt-agent-session-receipt-00` mapping CPR session bundles and `chain_head` commitments onto RFC 9943 / RFC 9942 without modifying base standards.
  - Datatracker: https://datatracker.ietf.org/doc/draft-bailey-scitt-agent-session-receipt/
- **Offline & Hosted Verifier Evidence Index:** https://www.whitemagic.dev/trust

## 4. Open-Source Repositories & Package Registries

- **Core Memory & MCP Server:** https://github.com/lbailey94/whitemagic
  - crates.io: https://crates.io/crates/whitemagic
  - npm: https://www.npmjs.com/package/whitemagic-mcp
  - Docker Hub: https://hub.docker.com/r/lbailey94/whitemagic
  - Official MCP Registry: https://registry.modelcontextprotocol.io/?q=whitemagic
- **Client-Encrypted Memory Crystals SDK:** https://github.com/lbailey94/whitemagic-crystal
  - PyPI: https://pypi.org/project/whitemagic-crystal/
- **Causal Provenance Receipts Spec & Reference Verifiers:** https://github.com/lbailey94/continuity-receipt
  - PyPI (`continuity-receipt`), crates.io (`continuity-receipt`), npm (`continuity-receipt`)
- **Linux Landlock Capability Confinement:** https://github.com/lbailey94/mandalaos-gate-lite
- **Autonomous x402 Payment Client SDK:** https://github.com/lbailey94/whitemagic-pay

## 5. Optional Hosted Services & Commercial Model

The local core is free and MIT-licensed forever. Revenue comes from optional hosted infrastructure, scoped engineering engagements, and non-dilutive public-interest infrastructure grants:

- **Free Hosted Evaluation Paths (No Account Required):**
  - Read-only hosted MCP recall (`https://mcp.whitemagic.dev/mcp` full profile, 59 hosted tools; and compact 2-tool CodeMode at `https://mcp.whitemagic.dev/mcp/codemode` exposing `wm_perceive` + `wm_execute` with `compact=true`, -97.1% tool-schema bytes vs full): Stage 4A `potion-base-8M` hybrid semantic+lexical recall over 428 deduplicated curated records (364 on `next.mcp.whitemagic.dev`). Access via `X-WM-Trial: 1` (10 calls/day anonymous; **30 calls/day** for RFC 9421 Trusted Agent Protocol verified agents), `POST /faucet` on `mcp.`, `api.`, and `next.mcp.` (10-minute pass), flocked cross-lane nano-credit ledger, or instant evaluation key at `https://mcp.whitemagic.dev/keys` (50 recalls/day).
  - Stateless receipt & confinement verification API (`https://api.whitemagic.dev`, 22 OpenAPI paths): keyless `/health`, `/info`, `/openapi.json`, and `/aer1/verify`; `POST /verify` for `continuity-receipt/0.1–0.6` bundles and `POST /verify-confinement` (`?receipt=1` for Ed25519 counter-signature) for `wm-confinement-receipt/1.1` (`bwrap`/Landlock) causal provenance receipts.
- **Prepaid Credit Packs (One-Time Purchase):**
  - Nano Pack: `$5` for `10,000` metered tool calls (`$0.0005/call`) + `128 MB` Memory Crystal vault
  - Pro Swarm Pack: `$20` for `50,000` metered tool calls (`$0.0004/call`) + `512 MB` Memory Crystal vault
  - Citadel Sovereign: `$150` for `500,000` metered tool calls (`$0.0003/call`) + high-throughput swarm lane & notarization
- **x402 Autonomous Micro-Leases (Multi-Rail Discovery at `https://mcp.whitemagic.dev/.well-known/x402`):**
  - `CRYPTO_X402` live on Base Mainnet USDC (accountless): Call Pass (`$0.002` / 60s), Task Lease (`$0.01` / 300s), Swarm Lease (`$0.05` / 900s), Day Pass (`$0.50` / 24h)
  - Node.js `fetch` (`undici`) verified `<8.1 KB` 402 response headers (`8,015 B` on `mcp.whitemagic.dev/mcp`, `7,946 B` on `api.whitemagic.dev/notarize`), preventing `UND_ERR_HEADERS_OVERFLOW` while preserving the full JSON payment guide in the body.
  - `AWS_BILLING_X402` (`aws.agentcorepayments.awsbilling.v1`) supported fail-closed (currently unconfigured); Visa Trusted Agent Protocol (`RFC 9421`) HTTP Message Signatures emit `X-WM-Agent-Verified` and grant `3x` daily trials (`30 calls/day` vs `10` anonymous) without sharing human cookies.
- **Hosted Subscriptions & Scoped Engineering Pilots:**
  - Indie Developer Lane (`$15/mo`), Hosted Node Lease Beta (`$49/mo`), Team Swarm Lane (`$79/mo`), Sovereign Fleet Peering (`$249/mo`)
  - Agent Memory & Provenance Pilot (`$1,500` one-time fixed-scope pilot with written milestones)
  - Enterprise Assurance & Fixed-Scope Integration Engagements: https://www.whitemagic.dev/enterprise
- **Non-Dilutive Public-Interest Grants:** Modular deliverables scoped for public digital infrastructure bodies (such as the Sovereign Tech Fund, OpenSSF / Linux Foundation, and Mozilla Foundation): https://www.whitemagic.dev/support#grant-milestones

## 6. Machine Discovery & Contact

- **Human & Agent Contact:** `lab@whitemagic.dev` · https://www.whitemagic.dev/contact
- **Machine Contact Metadata:** https://www.whitemagic.dev/.well-known/contact.json
- **Live Pricing Rate Card:** https://www.whitemagic.dev/pricing.json
- **API Catalog (RFC 9727):** https://www.whitemagic.dev/.well-known/api-catalog
- **LLM Context Index:** https://www.whitemagic.dev/llms.txt · https://www.whitemagic.dev/llms-full.txt
- **Release Channel Manifest:** https://www.whitemagic.dev/api/install-channels.json
- **Security Policy & Vulnerability Reporting:** https://github.com/lbailey94/whitemagic/security
- **Terms, Privacy & Refund Policy:** https://www.whitemagic.dev/legal
