Boardroom Answers · Security & Compliance · Compliance, Regulatory & Legal
Compliance Controls as Code: What It Actually Means
The question a Chief Compliance Officer (CCO) asks: “You keep saying your controls live in code. What does that actually mean — how would my compliance team verify a control is operating?”
The short answer
Policy and evidence are the same artefact: the tenant-isolation rule is a test that fails the build, and its audit evidence is the CI history itself — your team can verify a control by reading one file, not requesting one screenshot.
The full executive answer
It means the control and its evidence are the same artefact. Take our most important control, tenant isolation: the policy ("every customer table must have Row Level Security") isn't a paragraph in a policy binder — it's a test file in the repository that scans every database migration and fails the entire build if the policy is violated. The evidence that the control operated isn't a screenshot collected quarterly for an auditor; it's the green CI run on every one of hundreds of commits, timestamped and retained by GitHub. Your compliance team could verify it by reading one test file and one CI history page.
We've organised this deliberately for audit: a control-evidence framework lists each control with its SOC 2 criteria references (CC6.1, CC6.3, C1.1 and so on), its ISO 27001 Annex A references, the implementing code path, and the evidence source. The same pattern covers access control (a declarative role-permission matrix with a test that enforces privilege ordering), change management (nothing reaches production without passing the lint/typecheck/test/build gate — 344 test suites, over 3,500 tests), data retention (a declarative retention policy module that the pruning job reads from, so policy and enforcement can't drift apart), and audit logging (append-only, hash-chained).
Where honesty is due: code can't prove organisational controls — background checks, security training, vendor review cadences are people-processes, and ours are early-stage-thin and being formalised through the SOC 2 readiness engagement starting this quarter. The claim isn't "everything is automated"; it's that the technical control layer produces its own evidence continuously, which typically shortens an audit rather than replacing it.
Grounded in: SOC 2 TSC CC (common criteria) mapping; ISO/IEC 27001:2022 Annex A cross-references; NIST CSF 2.0 GV.PO.
The natural next questions
Related governed answers
- AI regulation is moving faster than any compliance team can track. How do you stay ahead of it — and how do you keep me ahead of it?
- Do you have SOC 2 or ISO 27001? If not, you understand my procurement team will stop reading right there.?
- If a regulator or opposing counsel demands the complete history of a decision made on your platform two years from now, what can you actually produce — and can anyone have edited it?
Want this answered live, on your data?