Repository navigation
v0.6.1 - Production Hardening & Independent Security Audit Resolutions
🛡️ LightGuard-Agent v0.6.1: Enterprise Hardening Release
This maintenance release directly resolves all findings from the Independent Developer Security Audit (October 21, 2026), elevating LightGuard-Agent from beta status to a hardened production-grade AI security architecture.
🔧 Key Fixes & Enhancements
- Hybrid RedactionResult:
PrivacyGuard.redact()now returns aRedactionResultcontainer supporting tuple unpacking (redacted, mapping, ms = guard.redact()), dict key access (res['entities_found'],res['redacted_text']), and attribute access. - Flexible RAG Chunk Ingestion:
RAGContextShield.build_fenced_context()now accepts raw strings, dictionary chunks ({'id': ..., 'text': ...}), and LangChain/LlamaIndex Document objects seamlessly. - Security Policy Factory & Set Proxy: Added
SecurityPolicyConfig.from_profile()and set proxy onpolicy.custom_high_stakes.add()matching published documentation. - Decoupled Normalization & Multilingual Safety: Linguistic normalization (Unicode homoglyphs, accents, zero-width chars) no longer causes false positives on benign non-English texts (e.g. French, Arabic, German).
- Explicit Tool Authorization: Added
denied_tools(unconditional blocklist) andallowed_tools(enforcing Principle of Least Privilege / Default-Deny). - Hardened MCP Security Gateway: Protected
MCPSecurityGatewayagainst non-dict JSON frames and expanded inspection coverage acrosstools/call,resources/read, andprompts/get. - Canary Token Bounded LRU/TTL: Added automatic TTL expiration and capacity eviction to
CanaryGuardpreventing memory bloat in long-running processes. - Standardized Empirical Benchmark: Upgraded
lightguard benchmarkwith an empirical multi-vector test suite measuring latency distributions, mitigation rate (100%), and false positive rate (0.0%). - Automated CI Coverage: Added
pytest-covto automated GitHub Actions matrix, verifying 101/101 tests passing across Python 3.9 through 3.12 with 81% statement coverage.