Blog · Governing · · 5 min read

Why rules need blueprints before code

Public software often fails because statutory obligations remain vague until late in development. Lawyers write legal duties in prose, while engineers build against concrete interface tickets. Template-guided artifact models turn legal clauses into testable software requirements before a single line of code is written.

Soft watercolor of an architect and a stone mason reviewing an unrolled blueprint on a wooden worktable.

The communication breakdown

Public software often fails because statutory obligations remain vague until late in development; template-guided artifact models turn legal clauses into testable software requirements before a single line of code is written.

When public agencies buy or build automated systems, two teams must agree on what the software does. Legal teams read regulations and draft compliance memos. Engineering teams read technical specifications and write code. Each group uses its own language and methods.

Because neither side shares a common specification tool, important requirements slip through the cracks. Statutes such as the European Union Artificial Intelligence Act2 and the Council of Europe Framework Convention on Artificial Intelligence3 demand verifiable compliance by design. Yet lawyers write general duties while engineers receive tickets that mention database fields and button clicks.

The gap between those two descriptions stays hidden until auditors arrive months later. Fixing misunderstandings after code is deployed costs far more than catching them during initial design. Building public software without an agreed blueprint is like pouring concrete foundation footings while the town hall and the stonemasons argue over the height of the walls.

What we propose

We propose requiring standardized compliance-by-design artifact models in every public procurement tender. An artifact model provides structured templates that both lawyers and developers can read and edit. Teams map every statutory duty to a concrete software specification before programming starts.

Recent empirical work demonstrates that this structured coordination works. Software engineering researchers tested the Artifact Model for Regulatory Requirements Engineering across thirty-seven industry practitioners and ten cross-functional teams.1 When teams used template-guided coordination, their total specification time dropped and the quality of their requirements improved significantly. Standardized templates give legal and engineering viewpoints a shared workspace.

Vague prose compliance versus template-guided artifact models Left panel shows vague legal prose and siloed engineering tickets causing late audit failures and rework. Right panel shows template-guided artifact models translating statutory clauses into shared specifications and automated continuous tests. UNCOORDINATED SPECIFICATION 1. Abstract Legal Memos General mandates without verifiable code limits 2. Siloed Technical Tickets Developers build database schemas without legal tests 3. Late Audit Failure Violations found at launch causing expensive rebuilds TEMPLATE-GUIDED ARTIFACT MODEL 1. Viewpoint Coordination Lawyers and engineers review shared rule templates 2. Testable Specifications Statutory duties become machine-checked assertions 3. Continuous Verification Automated test suites catch compliance drift early Vague prose compliance versus template-guided artifact models Top panel shows uncoordinated legal memos leading to late audit failures. Bottom panel shows template-guided artifact models producing verifiable requirements and automated verification. UNCOORDINATED SPECIFICATION 1. Abstract Legal Memos General mandates lacking code test limits 2. Siloed Technical Tickets Schemas built without statutory tests 3. Late Audit Failure Violations found late force costly rework TEMPLATE-GUIDED ARTIFACT MODEL 1. Viewpoint Coordination Lawyers and engineers share rule models 2. Testable Specifications Statutory duties become code assertions 3. Continuous Verification Automated tests catch rule drift early
Uncoordinated teams translate legal requirements into software late, producing costly compliance failures. Standardized artifact templates coordinate legal and engineering viewpoints upfront, turning statutory rules into automated test suites.

What it takes to build

Adopting artifact models requires three procedural changes during procurement:

First, public tenders must mandate template-guided requirements artifacts as mandatory vendor deliverables. Evaluation criteria must score how clearly a vendor maps legal obligations to executable test assertions.

Second, legal counsel and software architects must conduct joint sign-offs on requirements templates before award. This review confirms that both parties agree on how the software will handle edge cases and statutory boundaries.

Third, delivery contracts must link automated compliance tests to continuous integration suites. If an update modifies statutory logic, the automated test suite must flag the change before release.

The strongest objection

Skeptics argue that filling out structured artifact templates creates unnecessary administrative overhead. Software contractors often claim that template requirements slow down development and duplicate existing user stories.

In practice, the overhead of fixing compliance violations after launch dwarfs the time spent completing templates upfront. The empirical study showed that teams using template-guided coordination spent less total time drafting specifications than teams relying on ad hoc discussions. Clear templates eliminate circular debates about what a regulation requires.

What remains unproven

Structured artifact models bridge viewpoints during early requirements engineering, but two questions remain open:

First, how well do template specifications withstand continuous software updates over years of maintenance? We still need longitudinal studies tracking requirements drift in production government systems.

Second, can automated translation tools assist lawyers without introducing subtle legal errors? Translating statutory language into formal logic still depends on careful human judgment.

Where to start

Public officials can explore concrete next steps in Shared Horizon or review guidance on our page for policy makers to adapt template requirements for your department. Builders running local domain adapters can also read why specialist AI tools need a weight audit and a hard guard.

Sources

  1. Oleksandr Kosenkov, Davide Fucci, Michael Unterkalmsteiner and Daniel Mendez, "Supporting Viewpoint Coordination for Compliance by Design with an Artifact Model for Regulatory Requirements Engineering," arXiv:2611.03631 (2026).
  2. European Union, "Regulation (EU) 2024/1689 of the European Parliament and of the Council laying down harmonised rules on artificial intelligence (Artificial Intelligence Act)," OJ L 2024/1689 (2024).
  3. Council of Europe, "Framework Convention on Artificial Intelligence and Human Rights, Democracy and the Rule of Law," CETS 225 (2024).
  4. Karl Friston, "Life as We Know It," Journal of the Royal Society Interface, vol. 10, no. 86, art. 20130475 (2013), doi.org/10.1098/rsif.2013.0475.
  5. Henk Birkholz, Dave Thaler, Michael Richardson, Ned Smith, and Wei Pan, Remote ATtestation procedureS (RATS) Architecture, IETF RFC 9334 (2023), rfc-editor.org/rfc/rfc9334.
  6. Jack M. Balkin, "Information Fiduciaries and the First Amendment," UC Davis Law Review, vol. 49, no. 4 (2016): 1183-1234, lawreview.law.ucdavis.edu; Elinor Ostrom, Governing the Commons: The Evolution of Institutions for Collective Action, Cambridge University Press (1990), doi.org/10.1017/cbo9780511807763; and Rudolf Meidner, Employee Investment Funds: An Approach to Collective Capital Formation, George Allen & Unwin (1978), archive.org/details/employeeinvestme0000meid.

← All articles

Recent articles

Value ·

Why AI resumes and hiring bots scramble who gets hired

Automated hiring portals scramble who gets hired when job seekers use AI models to rewrite resumes for keyword-scoring bots, displacing qualified workers across occupations. Recognizing real work requires verifiable task receipts, machine-speed mutual net-zero transparency between personal and employer agents, and cooperative ownership as automation grows.

Read · 8 min

Governing ·

Why secret AI models behind lab walls cannot prove they are safe

Keeping stronger AI models hidden inside company walls to build successor systems blinds the public while missing real-world failures that surface strictly in open use. Global transparency requires signed compute receipts, expiring permissions, and machine-speed mutual net-zero transparency across personal and community agents.

Read · 8 min

Seeing ·

Why society needs civic electronic warfare for rogue sensors

Satellite constellations and street sensor fleets have tripled under private corporate ownership while pixel blurring fails against modern AI. Surviving superhuman and corporate-controlled agent swarms requires a public electronic-warfare shield that detects non-participating sensors, alerts participants to information leaks, and expels off-contract espionage from trade networks.

Read · 9 min