Repository navigation
Highlights — v1.1.0
Zero breaking changes for Core users (0 runtime dependencies preserved and verified via both static transitive import-graph check and isolated clean-room npm pack tarball smoke test in CI).
Modular 3-Export Architecture (package.json exports)
prompt-shield-eval(Core —0runtime deps): L1–L5 deterministic engine,O(N)anti-ReDoS comment scanners, and boundedTaintSessionStore(LRU + TTL).prompt-shield-eval/semantic(optional peeronnxruntime-node): Layer 3.5 Selective Semantic Cascade backed by a real104.2 KBONNX opset-19 INT8 multilingual mini-encoder (DynamicQuantizeLinear+MatMulInteger+LpNormalization) with SHA-256 integrity verification (models/manifest.v1.json), hard25 msAbortControllertimeout, and explicitfailMode: "QUARANTINE" | "FAIL_OPEN".prompt-shield-eval/mcp(optional peer@modelcontextprotocol/sdk): Transport-agnostic ingress/egress guardrail (InMemory& subprocessstdio) with session taint tracking,aegis-agent(HYPERION CH06) 4-tool preset, HITL token verification, strict anti-float /enumargument validation (-32602), and structured audit sink bridge.
Verified Benchmarks (Node v24.20.0, 5/5 Vitest Files / 30/30 Tests PASS)
| Suite | TPR | FPR | Exact Match | Warm p50 |
Warm p99 |
|---|---|---|---|---|---|
Core Deterministic (26 cases, 16/16 IDs) |
100.00% |
0.00% |
100.00% |
0.046 ms |
0.690 ms |
Hybrid Core + L3.5 ONNX INT8 (60 cases) |
100.00% |
0.00% |
100.00% |
0.287 ms (ONNX 0.299 ms) |
0.876 ms (ONNX 0.762 ms) |
MCP Middleware (aegis-agent, 20 hijacks + 20 HITL) |
100.00% (20/20) |
0.00% (0 false blocks) |
20/20 -32602 schema |
0.217 ms |
0.752 ms |
SHA-256 Artifact Checksums (models/manifest.v1.json)
models/semantic-mini-encoder.int8.onnx(104.2 KB):057d4b6895579e7bf2ab15a5fc448843107496df9bf07cc2182d46490d85fa33models/centroids.v1.json:a8648a548b3aa87a4ee35b293492a995bf81104e8f81f4a7cf0f7217268453b7
CI Verification
- GitHub Actions 3-job parallel pipeline (
ci-core29s,ci-semantic-onnx21s,ci-mcp-adapter25s): PASS (https://github.com/vanovri/prompt-shield-eval/actions/runs/44668345769).