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.

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.
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
- 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).
- 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).
- Council of Europe, "Framework Convention on Artificial Intelligence and Human Rights, Democracy and the Rule of Law," CETS 225 (2024).
- 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.
- 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.
- 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.


