Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

Production Agent Systems

Free · sign in to start and track progress

1 · Architecture

  • 1Multi-agent systems
  • 2Durable, long-running agents
  • 3Security and prompt injection

2 · Operating agents

  • 4Compliance and auditability

    Exercise answers

    • Answer: Build a hash-chained audit log and a supervision sampler
    • Answer: Audit hook and retention policy in eve
  • 5Observability and cost
  • 6Continuous improvement
CapstoneProduction-readiness review and hardeningReference implementation

Module 2 · Operating agents · Lesson 4

Compliance and auditability

What a regulated business must be able to show about work its agents do, and how to build the audit trail, sign-off flow and data handling that let it, without overstating what the rules require.

80 min 1 video 3 exercises 7-question quiz Answers
Setup for the exercises:Install Claude CodeNode.js, pnpm and TypeScriptDurable agents with eveGet an OpenRouter keyLocal models with Ollama

By the end of this lesson you can

  • Identify which professional, anti-money-laundering and data-protection obligations bear on an agent's design, and what each does and does not require
  • Design an append-only, tamper-evident audit record for agent actions that supports supervision and reconstruction
  • Decide which decisions are reserved for qualified humans and build sign-off gates around them
  • Size a supervision sample to detect a given error rate with stated confidence
  • Set retention and redaction rules for traces, transcripts and audit logs that respect both record-keeping duties and data minimisation

On this page

  • Intuition: the file note
  • What the rules say, and don't
  • The SRA
  • Anti-money laundering
  • Data protection
  • The audit record
  • Make it tamper-evident
  • Feed it from the harness
  • Traces are not an audit trail
  • Human sign-off where it counts
  • A worked example: sizing a supervision sample
  • Misconceptions and limits
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Intuition: the file note
  2. 02What the rules say, and don't
  3. 03The audit record
  4. 04Human sign-off where it counts
  5. 05A worked example: sizing a supervision sample
  6. 06Misconceptions and limits
  7. 07Connections
  8. 08Summary

Sources & further reading

  • Hallucination-Free? Assessing the Reliability of Leading AI Legal Research ToolsPaper · Magesh, Surani, Dahl, Suzgun, Manning, Ho · Stanford RegLab · 2024Even purpose-built legal AI tools with retrieval hallucinated between 17% and 33% of the time in this study. The empirical case for evidence-backed outputs and meaningful human sign-off.
  • Risk Outlook report: The use of artificial intelligence in the legal marketDocs · Solicitors Regulation Authority · 2023The regulator's view of AI risk. Read the sections on accountability (you can't delegate it to an IT team or a provider), supervision, not trusting a system to judge its own accuracy, and confidentiality.
  • Misuse of AI - Warning noticeDocs · Solicitors Regulation Authority · 2026The SRA's 2026 warning notice. AI use isn't prohibited, but "AI has no separate legal personality" and reliance on AI output is not a defence. Read the confidentiality section before connecting any client data to a model.
  • SRA Code of Conduct for FirmsDocs · Solicitors Regulation AuthorityParagraphs 2.1 (governance, systems and controls), 2.2 (records to demonstrate compliance), 2.5 (material risks) and 4.4 (an effective system for supervising clients' matters). These are what an audit trail serves.
  • The Money Laundering, Terrorist Financing and Transfer of Funds (Information on the Payer) Regulations 2017, regulation 40Docs · legislation.gov.ukRecord-keeping for customer due diligence and transactions, the five-year period, and the duty to delete personal data afterwards. Read alongside regulations 12 (scope) and 28 (CDD measures).
  • Automated decision-making, including profilingDocs · Information Commissioner's OfficeThe ICO's guidance on UK GDPR articles 22A to 22D after the Data (Use and Access) Act 2025. It was a consultation draft when this lesson was written; check its status.
  • SRA approves first AI-driven law firmDocs · Solicitors Regulation Authority · 2025A concrete precedent: the safeguards the SRA looked for (client approval of each step, named accountable solicitors, quality checks, a high-risk task excluded).
  • eve HooksDocs · VercelHooks for audit logs, stream positions as a natural primary key, idempotency keys for effects, and what happens when a hook throws.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 8 more sections
  • 3 hands-on exercises
  • A 7-question quiz
  • Progress, quiz scores and bookmarks