Engineering guide · Quebec & Canada
Building private AI features ready for Quebec’s Law 25
Shipping AI in Quebec means treating privacy as an architectural constraint from the first pull request — not a policy page pasted on before launch. Here is the engineering checklist we apply across our own products and client builds.
1. Decide what actually needs to leave the device
The cleanest privacy boundary is data you never transmit. Tasks like audio transcription, local indexing, document search and compact summarization can often run on-device or inside your own private infrastructure.
When hosted frontier models are needed, strip identifiers that do not change model quality (such as full names, email addresses or account credentials) before constructing prompts.
2. Use non-training enterprise agreements and explicit retention awareness
- Route production traffic through enterprise endpoints (such as Azure AI Foundry) configured so customer content is not submitted for foundation-model training.
- Be honest in your privacy notice about provider safety logging or transient retention rather than promising zero retention when a vendor retains abuse logs.
- Document cross-border transfers clearly whenever subprocessors operate outside Quebec or Canada.
3. Keep humans in the loop for consequential decisions
Law 25 places specific transparency and explanation obligations on decisions based exclusively on automated processing. Showing users proposed edits, linking answers back to source records and letting people confirm actions improves both compliance and user trust.
4. Ship user controls and bilingual EN/FR notices together
- Separate AI memory/learning toggles, chat deletion, data export and full account deletion.
- Maintain matching English and French privacy and terms releases (versioned alongside backend behavior, as we do in Fin).
- Review final legal wording with qualified Quebec privacy counsel; engineering guidance is not legal advice.
Frequently asked questions
Does Quebec Law 25 ban using cloud LLM APIs?
No, but it requires transparency, privacy-by-default design, assessment of cross-border data transfers, clear vendor governance and specific notices when automated processing makes decisions. Local or private-cloud models simplify compliance for highly sensitive data.
Does Mad Code AI Studio provide legal advice on Law 25?
No. We are a software and AI engineering studio. We design and implement the technical privacy controls, data boundaries and bilingual product flows, and coordinate with your legal counsel.