Skip to content

An LLM-Based Agent for Legal Compliance Assessment: Architecture, Memory, and Evaluation in a Canadian and Quebec Context

Oct 2026 · 0 citations · 27 references
Computer Science

TL;DR

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, and evaluates the agent in a Canadian and Quebec context.

Abstract

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.

View source

Similar papers

#artificial intelligence Preprint Sep 2026

Legal Research Bench: Measuring End-to-End Reliability in Long-Horizon Legal Research Agents

Legal research is a core and time-consuming legal workflow. Lawyers must identify controlling authority, verify that it remains valid, reconcile statutes and cases, and synthesize a grounded answer. Language model agents are a natural fit for this retrieval-intensive workflow, and automating even part of it would be va...

К. А. Дроздов, Oliver Chen, Langston Nashold et al. · 1 citation · ⚡1
Open access Oct 2026

Citation-Enforced RAG Architecture for Decision Support

Large language models (LLMs) are increasingly being deployed for institutional document synthesis and other reasoning-adjacent tasks. However, hallucinated content becomes an institutional risk when it is incorporated into briefs, policies, or reports. We present a local-first, corpus-restricted retrieval-augmented gen...

Imane Bahji, M. Martínez-Ramón, Ramiro Jordan · 0 citations
#natural language process... Conference Open access Oct 2026

ARCCS: An Automated Regulatory Compliance Checking System

Regulatory compliance checking - deciding whether a target document satisfies the obligations of a regulation - requires interpreting dense legal text, identifying which provisions apply, and grounding each decision in explicit evidence. We present ARCCS, an end-to-end, automated, agentic, and regulation-agnostic Legal...

Giorgos Filandrianos, José Dilson Menezes, Chrysoula Zerva et al. · 0 citations
Preprint Oct 2026

Where Do Legal Factors Live in LLMs?

In case-based legal reasoning, legal professionals identify legally significant fact patterns in a new dispute and compare them with those of decided cases. In AI&Law, HYPO dimensions and CATO factors represent these patterns symbolically, organizing expert knowledge distilled from case narratives as explicit, structur...

Li Zhang, Kevin D. Ashley · 0 citations
#artificial intelligence Preprint Oct 2026

Organising Trajectory Evidence for Language-Model Agent Assurance: Fragments, Methods, and the Residual

Methods for assessing language-model agents include rule checkers over logs, analyses of skill coverage and composition, support checkers, prefix monitors, execution gates, and rare-event estimators. Each observes a different part of a run and makes a claim of a different strength, and no common account says how these...

Xiao-Wei Huang · 0 citations
Conference Open access Sep 2026

UGM-Legal-AI: Question and Answer System for Turkish Customs Legislation

The UGM-Legal-AI system, developed for the application environment of Turkish customs law, offers a reusable pattern for domain-specific legal AI where hallucination control and decision traceability are primary requirements.

Serkan Ayverdi · 0 citations

Related blog posts

Hugging Face Blog Nov 10, 2026

Decision Models in Hugging Face

We’re on a journey to advance and democratize artificial intelligence through open source and open science.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.