What problem does it solve? Legal AI workflows risk citing outdated statutes, unverified case law, or unsupported factual claims. This shared library centralizes the canonical validation modules, hard gates, and procedural checklists that every Polish-law skill in the Lex Machina system must load, eliminating duplicated logic and conflicting rules across 32 skills. ## Core Features & Use Cases - Anti-hallucination hard gates: PRAWO-HARDGATE and ISAP-AUDIT-PROTOCOL forbid citing any statute or case signature from memory and require online verification against ISAP before use. - Validation pipeline modules: MOD-WALIDACJA_v2, HYBRID-VALIDATION, CLAIM-VALIDATION, FAKTY_v2, and CP-GATE enforce claim-to-evidence checks, formal defect detection (BRAKI-FORMALNE), and checkpoint-gated DRAFT/FINAL status before any .docx is generated. - Routing and governance: ACTIVATION-MATRIX resolves trigger-phrase conflicts between skills, DEPENDENCY-GRAPH tracks module consumers, DEDUPLICATION-POLICY prevents stub files, and AUDIT-TRAIL-SPEC defines a SHA-256 hash-chain event log aligned with Article 12 of the EU AI Act. - Use Case: When drafting a court pleading, the pisma-procesowe-v3 skill loads CP-GATE from this library to initialize a checkpoint registry, blocks .docx generation until all checkpoints close, and watermarks incomplete output as DRAFT. ## Quick Start Load the shared library modules by viewing the specific file you need, for example ask the assistant to view shared/PRAWO-HARDGATE.md before analyzing any Polish legal question.