7. Zero-Knowledge Cryptography

7.4 Local Loopback Viewer & CISO Subprocessor Exemption

chinwag viewer --loopback 127.0.0.1:5487

Why Chinwag's zero-knowledge architecture qualifies for CISO Tier-1 Subprocessor Exemption and how the local chinwag ui viewer decrypts state exclusively on your machine.

7.4 Local Loopback Viewer & CISO Subprocessor Exemption

chinwag viewer --loopback 127.0.0.1:5487

Enterprise security reviews stall for months when an AI dev-tool vendor asks for read/write OAuth scopes to your GitHub repositories or routes plaintext source code through multi-tenant cloud databases.

Chinwag is architected so that Chinwag's cloud relay never possesses your decryption keys and never processes plaintext source code, prompts, diffs, or file paths.


The 5 × 4 Cryptographic Visibility Matrix

Data ArtifactOn Developer / CI HostIn Transit (iroh / Edge / .cwcard.png)On Chinwag Cloud RelayIn GitHub Projects v2 / Linear
Source Code & Git/jj DiffsPlaintext in local Shadow jjX25519MLKEM768 + ChaCha20Poly1305 CiphertextOpaque Ciphertext Only (Zero keys)Never transmitted (or link-only)
Agent Prompts & Bus MessagesPlaintext in local .chinwag/state.crdbCHWGHPKE v2 + Dual K1+K2 Ed25519Opaque Ciphertext Only (0 retention after ACK)Never transmitted
File-Scope Leases & Repo PathsPlaintext globs (crates/auth/**)Keyed BLAKE3 32-byte T_coalesceBlinded 32-Byte Digest OnlyOptional (Configurable per org)
CI Compiler / Stack TracesPlaintext in runner memorySealed in CHWGHPKE v2 envelopeOpaque Ciphertext OnlyPass/Fail status badge only
Weekly Learning FlywheelAuditable via inspect-flywheelSigned 128-Byte numeric struct64B Numeric Counters + 64B SigAggregated ◈ Chips & SURV %

Local Loopback Workbench (chinwag ui)

When you inspect live agent conversations, diffs, .codegraph blast radius, or 176/176 UI gate screenshots in the Chinwag Workbench (chinwag ui), 100% of decryption and rendering happens locally on your machine:

  1. chinwag ui binds strictly to the local loopback interface and reads your local SQLite/CRDB state (.chinwag/state.crdb) and OS Keychain (~/.chinwag/signing/).
  2. Encrypted CHWGHPKE v2 frames arriving from remote teammates or cloud CI runners are verified (0.09ms) and decrypted inside the local Rust process.
  3. No plaintext DOM state, source diff, or session token is ever uploaded to a cloud dashboard.

Why CISOs Grant Tier-1 Subprocessor Exemption

Under GDPR Article 28, SOC 2 Type II, HIPAA, and ISO 27001 frameworks, a cloud transit provider that processes exclusively end-to-end encrypted ciphertext (where the customer holds sole custody of all X25519MLKEM768 private keys in hardware/OS keychains) operates as a zero-knowledge cryptographic conduit:

  • Zero Plaintext Custody: A breach or subpoena of Chinwag's Cloudflare Edge relay yields only X25519MLKEM768 ciphertext and blinded 32-byte BLAKE3 hashes.
  • Zero GitHub Code Read Scope Required: chinwag board init requires only project (for GitHub Projects v2 column updates) or Linear issue state tokens · never repo source-code clone permissions on our cloud servers.
  • Instant Cryptographic Offboarding: Rotating your org vault key via chinwag bond rotate-org-key immediately invalidates all historical key-agreement epochs.

Next Steps