Multi-model · Rampart PII (14.69 MB q4 · CC-BY-4.0) → DeBERTa-v3 Zero-Shot NLI (70 MB q8 · MIT)

Privacy-First Compliance Triage: Redact Locally, Then Classify

Stage 1 (nationaldesignstudio/rampart, 14.69 MB WASM q4, CC-BY-4.0) detects and replaces personal identifiers with [TYPE_N] tokens. Stage 2 (Xenova/nli-deberta-v3-xsmall, 70 MB WASM q8, reusing shared ../zero-shot-text/worker.js) receives only the redacted payload and scores GDPR, PCI-DSS, HIPAA, and public-safe compliance sensitivity — so raw PII never even reaches the downstream classifier.

1. Two Independent On-Device Models (~84.7 MB Combined)

Zero-PII Stage Boundary: Both models execute in isolated Web Workers with independent loaders and memory Release controls. Stage 2 never sees raw customer text — only the sanitized output produced by Stage 1.

Stage 1 · Rampart PII (14.69 MB WASM q4 · CC-BY-4.0)

Stage 2 · DeBERTa-v3 Zero-Shot NLI (70 MB WASM q8 · MIT)

2. Redaction Firewall & Zero-Shot Compliance Triage

Stage 1 PII redacted–
Top compliance class–
Top NLI score–
Stage 1 / Stage 2 ms–
Stage 2 id2label order–

Stage 1 · Local PII Detection (Stays on Device)

Run Stage 1 (Rampart PII) to highlight detected personal identifiers.

Firewall Handoff · Sanitized Payload Sent to Stage 2

Only this redacted payload is passed to DeBERTa-v3 Zero-Shot NLI.

Stage 2 · Dynamic 3-Way NLI Compliance Scores (from res.classNames)

Zero-shot NLI compliance triage scores with dynamically mapped entailment, neutral, and contradiction probabilities
Rank Compliance Category Score Confidence Entailment Neutral Contradiction
Run the full pipeline above to classify the redacted payload.

3. Inspect Multi-Model Client & Dynamic NLI Mapping

Show the code · rampart.js — ZeroShotComplianceClient (reusing ../zero-shot-text/worker.js)
Show the code · rampart-core.mjs — mapNliClassProbabilities() (dynamic res.classNames lookup)