The Distilled Principles of Rules as Code (RaC): How to Produce Better Rules

Pim   Willemstein
Pim Willemstein Strategic Advisor, Ministry of Business, Innovation and Employment, Government of New Zealand Read Author Bio || Read All Articles by Pim Willemstein
Ronald G.  Ross
Ronald G. Ross Co-Founder & Principal, Business Rule Solutions, LLC , Executive Editor, Business Rules Journal and Co-Chair, Building Business Capability (BBC) Read Author Bio       || Read All Articles by Ronald G. Ross

Overview

The OECD's Observatory for Public Sector Innovation recently published an important discussion document on the creation and expression of rules in government, "Cracking the Code."[1] Its centerpiece idea is 'rules as code' (RaC), which can be understood in two ways. First, it is an approach for improving the process of creating rules. Second, it literally proposes that governments should deliver rules in a format that can be directly consumed by software and machines — for example, as computer code.

Pim was directly involved in the widely recognized Better rules, better outcomes initiative[2] in New Zealand that provided a key initial spark for the global discussion on RaC. Ron is a principal author of techniques and methods that helped prepare and empower the New Zealand work.[3]

The Cracking the Code paper is fairly lengthy (100+ pages) and necessarily deep and cautious in its analysis. RaC is transformative but still emerging. Its adoption will have wide implications for people developing regulation and needing to interact with regulation. Our aim in this brief piece is to distill the Primer's core principles in order to provide an easy on-ramp to understanding and using RaC, as well as to move the discussion forward. Much remains to be explored about the potential, limitations, and implications of RaC.


Rules as Code (RaC) is a highly innovative idea that addresses how law and regulations are simultaneously produced in natural language and in working computer code. RaC has important implications not only for producing better rules (meaning clear and fit for purpose), but providing also a strong impetus for a powerful new generation of rule-based software platforms (ones better suited for real-world rules produced by governments and businesses).

RaC is a reaction to, and a projection of, the broader on-going digital revolution impacting citizens and businesses.[4] The World Economic Forum has coined the term 'The Fourth Industrial Revolution' to describe the fundamental change in the way we live, work, and where the physical, digital, and biological worlds are merging.

Why RaC?

Figure 1 summarizes what we see as the basic chain of reasoning for RaC. It identifies the urgency for governments to adapt to an accelerating digital world, the form of an appropriate response, the benefits that would accrue, and the conditions required for success.

Figure 1. The Chain of Reasoning Behind Rules as Code

What is RaC?

As indicated in the chain of reasoning, RaC represents a fundamental rethinking of how to give effect to a core responsibility of government — rule-making. It reshapes the interactions of the various stakeholders in the rule-making process, including drafters of laws and regulations, rule writers and analysts, and coders of software.

The essence of RaC can be distilled into six fundamental principles, or core notions, as follows:

(1) Digital Public Infrastructure. RaC makes a case for government to take responsibility for delivery of rules as computer code together with the rules expressed in natural language.

Currently, rules are already codified as part of digital services and software systems, though often not by the issuing government itself. Transparency, avoiding translation problems, and reducing duplication of effort are key objectives for RaC. It is generally accepted in many parts of the world that government should deliver public infrastructure suitable for the digital economy — e.g., for digital identity management. RaC or 'digital' legislation and regulation are similar foundational elements of a digital world and economy.

(2) Better Rules. RaC prescribes an iterative, human-centric, test-driven approach for developing rules.

RaC assumes human-consumable rules will be inherently better (more readable, more complete, more fit for purpose) if simultaneously drafted or interpreted along with a machine-consumable version. The traditional model of rules creation can cause challenges for digital service delivery. The rules can be difficult to understand or navigate, and their logic not robust. These shortcomings can make it difficult for designers and developers to build good digital services so people can easily understand their rights, obligations, and entitlements.

(3) Disambiguation. RaC prescribes clarity and precision in human-consumable rules; therefore, vocabulary coordination in the form of a concept model[5] is essential.

Clarity and reduction of ambiguity are the focus during development of the concept model, which assists in the same regard during modeling of decision and development of rules. The iterative process of developing the models and rules in a multidisciplinary team drives clarity and precision. The ultimate test is using working code and automated test cases to clearly prove high quality. Running automated test cases will identify any remaining areas of ambiguity or lack of clarity or precision.

(4) Digital Twin. RAC prescribes a digital twin for government rules. Any rule for use by humans must also be available in a form usable by machines — one that is both readable and highly precise.

Why a digital twin of the rules? Historically, rules have been coded by siloed organizations, often ones outside government, who do their own interpretations. There is no way to ensure consistency of intent with dispersed implementations like this. For example, salary and holiday payments to employees might be digitally completed within payroll software. Payroll software, however, must comply with the rules in employment legislation. Without a digital twin there is no way to guarantee fidelity in the payroll software with the source rules from the employment legislation.

(5) Isomorphism. RAC prescribes that every machine-consumable rule should remain tightly coupled with its human-consumable counterpart throughout its lifetime so that changes can be effectively synchronized at all times.

With RAC, a machine-consumable rule isn't a translation of a rule by separate people at a different point in time but is developed in parallel and at the same time. This digital twin remains closely tied to its human-consumable counterpart so that the meaning of the two don't diverge over time.

(6) Interoperability. RaC prescribes that rules rendered for machines should be independent of software platforms.

Government rules must be democratized and easily accessible. Citizens, entrepreneurs, social innovators, software developers, and the systems they develop should be able to "consume" the rules without having to translate the rules. This means considering open-source solutions and avoiding any vendor lock-in for platforms capturing the rules and making rules publicly available. Use of open and widely-accepted standards is a critical success factor for RaC.

Summary

RaC prescribes fundamental innovation in how policy and government rules are developed and the format they are published in. It is a direct reaction to a society that becomes more digital. Though aimed at government, it has implications for any organization creating policy — which is just about every organization in the world.

The fundamental goal of RaC is to eliminate the costly and counterproductive chasm between policy development and its implementation as part of digital services — no matter whether undertaken by government itself or through intermediaries such as a citizen advice bureau, a tax agent, a shipping agent, etc.

RaC aims to make government more responsive and adaptive. If adopted wisely, RaC could result in improvements for government and other organizations in all the following respects.

  • Traceability
  • Visibility
  • Transparency
  • Accessibility
  • Trust
  • Regulatory risk reduction
  • Agility and efficiency
  • Compliance

The bottom line is a dramatically improved experience dealing with government.

Adoption of RaC enables government to be more agile in its policy making processes. It will also create opportunities for innovation in other areas, such as enforcement approaches in government or users outside government such as the FinTech and RegTech industry.

In its most basic form, RaC has already shown its potential for better rules as demonstrated by the New Zealand Better Rules Initiative, OpenFisca in France, the government of New South Wales in Australia, the School of Public Services in Canada, and the legal interoperability team of the European Commission. The benefits of the approach are clear-cut.

As an innovation, RaC is in its earliest stages. It is likely to evolve in exciting and unexpected ways. Nonetheless, the basic logic of the idea, and the case for it in the digital age, is simply compelling.

References

[1] J. Mohun and A. Roberts, "Cracking the code: Rulemaking for humans and machines," OECD Working Papers on Public Governance, No. 42, Paris: OECD Publishing (2020), https://doi.org/10.1787/3afe6ba5-en (also in French)
    Organisation for Economic Cooperation and Development (OECD) Working Papers do not represent the official views of the OECD or of its member countries. The opinions expressed and arguments employed are those of the authors. Working Papers describe preliminary results or research in progress by the author(s) and are published to stimulate discussion on a broad range of issues on which the OECD works. Comments on Working Papers are welcomed, and may be sent to OECD Public Governance Directorate, OECD, 2 rue AndrĂ©-Pascal, 75775 Paris Cedex 16, France.

[2] N. Webster, Better Rules for Government Discovery Report, (2018) https://www.digital.govt.nz/dmsdocument/95-better-rules-for-government-discovery-report/html

[3] The authors gratefully acknowledge significant feedback from Pia Andrews and Nadia Webster in the preparation these principles. The views expressed in this discussion are strictly those of the authors.

[4] For an overview refer to M. Basu, "Four things you should know about rules as code," GovInsider, March 3, 2020, https://govinsider.asia/inclusive-gov/four-things-you-should-know-about-rules-as-code/

[5] For a quick introduction to concept models, see Ronald G. Ross, "What Is a Concept Model?" Business Rules Journal, Vol. 15, No. 10, (Oct. 2014) URL: http://www.brcommunity.com/a2014/b779.html
    For comprehensive discussion see Ronald G. Ross, Business Knowledge Blueprints: Enabling Your Data to Speak the Language of the Business 2nd ed., Business Rule Solutions (2020), 280 pp.

# # #

Standard citation for this article:


citations icon
Pim Willemstein and Ronald G. Ross, "The Distilled Principles of Rules as Code (RaC): How to Produce Better Rules" Business Rules Journal, Vol. 22, No. 2, (Feb. 2021)
URL: http://www.brcommunity.com/a2021/c059.html

About our Contributor(s):


Pim   Willemstein
Pim Willemstein Strategic Advisor, Ministry of Business, Innovation and Employment, Government of New Zealand

Pim's professional career spans private, government and R&D sectors and he combines a strong technical foundation with in-depth understanding of organisational and business objectives. With over 15 years experience with digital systems in government, as well as innovation and change management processes Pim is a strategist and thought leader who supports the transition to a customer centric digital government.

Pim joined Ministry of Business Innovation and Employment as a Strategic Advisor within the Better for Business team in 2016, with previous experience as digital consultant within Inland Revenue. Better for Business a 10 agency initiaative committed to improving the business customer experience with government. Better for Business is about understanding the needs of NZ's businesses and helping government deliver services in better and smarter ways.

Pim is particularly interested in the "machine readable world" which paves the way for frictionless customer experiences with government. How can artificial intelligence, machine-consumable rules and blockchain be used to support service delivery in a joined up government? In 2019, "Better rules, better outcomes" was identified by the OECD Observatory of Public Sector Innovation as one of the 2019 global innovation trends in government.

Pim holds an MBA from LaTrobe University as well as a Master of Science degree from the University of Utrecht in his native country the Netherlands.

Read All Articles by Pim Willemstein
Ronald  G. Ross
Ronald G. Ross Co-Founder & Principal, Business Rule Solutions, LLC , Executive Editor, Business Rules Journal and Co-Chair, Building Business Capability (BBC)

Ronald G. Ross is Principal and Co-Founder of Business Rule Solutions, LLC, where he actively develops and applies the BRS Methodology including RuleSpeak®, DecisionSpeak and TableSpeak.

Ron is recognized internationally as the "father of business rules." He is the author of ten professional books including the groundbreaking first book on business rules The Business Rule Book in 1994. His newest are:


Ron serves as Executive Editor of BRCommunity.com and its flagship publication, Business Rules Journal. He is a sought-after speaker at conferences world-wide. More than 50,000 people have heard him speak; many more have attended his seminars and read his books.

Ron has served as Chair of the annual International Business Rules & Decisions Forum conference since 1997, now part of the Building Business Capability (BBC) conference where he serves as Co-Chair. He was a charter member of the Business Rules Group (BRG) in the 1980s, and an editor of its Business Motivation Model (BMM) standard and the Business Rules Manifesto. He is active in OMG standards development, with core involvement in SBVR.

Ron holds a BA from Rice University and an MS in information science from Illinois Institute of Technology. Find Ron's blog on http://www.brsolutions.com/category/blog/. For more information about Ron visit www.RonRoss.info. Tweets: @Ronald_G_Ross

Read All Articles by Ronald G. Ross
Subscribe to the eBRJ Newsletter
In The Spotlight
 Silvie  Spreeuwenberg
 Ronald G. Ross

Online Interactive Training Series

In response to a great many requests, Business Rule Solutions now offers at-a-distance learning options. No travel, no backlogs, no hassles. Same great instructors, but with schedules, content and pricing designed to meet the special needs of busy professionals.