An LLM-Based Agent for Legal Compliance Assessment: Architecture, Memory, and Evaluation in a Canadian and Quebec Context
On the map: LLM agents and tool use → Web, search, and research agents also fits: Social simulation and multi-agent debate
Abstract (arXiv)
Checking whether a text complies with a body of law is slow when done by hand and fragile when done with keyword rules. This paper presents ComplianceAgent, the legal compliance sub-agent of COMPASS, a multi-agent framework that evaluates texts along four axes: digital sovereignty, carbon impact, compliance, and ethics. The agent relies on a large language model that scores a text on a fixed rubric, grounds its judgment in a reference legal corpus, and, when the score falls at or below a critical threshold, runs a corrective chain made of self-healing rewrites, a compliance label, an explainability report, and escalation to a human reviewer. We describe what the language model does at each step, how the memory of the agent is organized, and how the same implementation can be pointed at different reference corpora. We evaluate the agent in a Canadian and Quebec context, on a corpus of thirteen legal instruments that brings together federal and provincial texts, international treaties, and municipal documents of the City of Trois-Rivi`eres. The evaluation relies on a hand-annotated gold standard of fifteen texts and combines classification metrics, a repeated-query stability test, retrieval precision, and a composite score. On this gold standard the agent separates every conforming text from every non-conforming one, its scores remain stable under repeated queries, and the index returns relevant passages.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 11 of its 27 references that are in the map. Submitted 19 Oct 2026.
Builds on
11 of 27 references.
References · 11
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,845
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,559
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 9,360
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,789
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,799
- 2018Model Cards for Model Reportingcited by 1,125
- 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 1,028
- 2023Cognitive Architectures for Language Agentscited by 475
- 2023LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Modelscited by 364
- 2024Large Legal Fictions: Profiling Legal Hallucinations in Large Language Modelscited by 162
- 2026COMPASS: The explainable agentic framework for Sovereignty, Sustainability, Compliance, and Ethicscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026LLM Agents in Law: Taxonomy, Applications, and Challenges
- 2025EU-Agent-Bench: Measuring Illegal Behavior of LLM Agents Under EU Law
- 2026From Norms to Indicators (N2I-RAG): An Agentic Retrieval-Augmented Generation Framework for Legal Indicator Computation
- 2025L-MARS: Legal Multi-Agent System with Agentic Search and Citation-Faithfulness Audit
- 2026REGREACT: Self-Correcting Multi-Agent Pipelines for Structured Regulatory Information Extraction
- 2025Judging by the Rules: Compliance-Aligned Framework for Modern Slavery Statement Monitoring
- 2024Rethinking Legal Compliance Automation: Opportunities with Large Language Models
- 2024LegalAgentBench: Evaluating LLM Agents in Legal Domain