Understand what complior scan does, how the layers work, and what the output means.
complior scan analyzes your code through multiple deterministic layers — from file presence checks to deep AST pattern matching. Result: a compliance score and actionable findings.
Copy
Ask AI
complior scan
Principle: LLM never makes compliance decisions. Layers L1–L4 are fully deterministic (AST + rules). Layer L5 is opt-in and only clarifies uncertain findings.
Security Score is only available via complior eval --security <url> against a live endpoint. Scan analyzes code statically — it cannot test runtime behavior.
Each finding has a severity, layer, EU AI Act article, and a suggested fix:
Copy
Ask AI
F-001 ! HIGH [L1] Art. 26(4) · Agent Passport No Agent Passport found — AI SDK detected but no .complior/agents/*-manifest.json (Art. 26(4)) Fix: Run `complior agent init` to generate an Agent PassportF-002 ! HIGH [L1] Art. 6(2) · High-Risk Domain: Finance Code matches Finance / Credit patterns (Annex III §5(b)). AI system is likely high-risk under EU AI Act Art. 6(2). File: src/data/industry-patterns.ts:43F-020 * MEDIUM [L4] Art. 50(1) · Bare LLM API Call WARNING: OpenAI bare API call — eu-ai-act-OBL-015 Art. 50(1) File: src/data/eval/remediation/owasp-llm05.ts:12 Fix: Wrap LLM calls with complior.wrap() or add AI disclosure
Critical caps: If prohibited practices score = 0, maximum overall is capped at 29. If transparency = 0, capped at 49.
Add flags for deeper analysis. Each tier builds on the previous:
Tier 1: Offline
Tier 1+: LLM
Tier 2: Deep
Tier 2+: Deep + LLM
Tier 3: Cloud
Full
Copy
Ask AI
complior scan
Coverage: 60–70% · Time: 2–5 sec · Dependencies: NoneL1–L4 checks plus Rust-native secret detection (37 patterns). Works completely offline.
Copy
Ask AI
complior scan --llm
Coverage: 70–80% · Time: +5–15 sec · Dependencies: BYOK API keyAdds L5 LLM deep analysis. Findings in the 50–80% confidence zone get confirmed or rejected by LLM.
Coverage: 85–90% · Dependencies: Auto-download + BYOK API keyFull offline analysis: L1–L5 + Semgrep/Bandit/ModelScan. Maximum local depth without cloud.
Copy
Ask AI
complior scan --cloud
Coverage: 90–95% · Dependencies: Cloud accountAdds AI SBOM + CycloneDX, Presidio PII detection (50+ EU types), vendor Art.25 assessment.
Copy
Ask AI
complior scan --deep --llm --cloud
Coverage: 95%+ · All flags combined for maximum analysis depth.