completed
šŸ”„Regulation-as-code for DApps
Current Project Status
Complete
Amount
Received
$111,100
Amount
Requested
$111,100
Percentage
Received
100.00%
Solution

Community-created open-source platform & DIY manuals for anyone to turn any laws/regs into code for everyone to contribute and build on.

Problem

Nation Building DApps will need to comply with regulations that are not yet available ā€˜as codeā€™ consumable by humans or machines.

Addresses Challenge
Feasibility
Auditability
šŸ”„Regulation-as-code for DApps

<u>Introduction</u>

DApps are global from the beginning, but people and companies are local, subject to local jurisdictions. Cardano and any DApps will need to integrate with a complex web of regulation to bring economic identity to one billion global digital citizens. Regulation needs to be consistent, transparent, accountable, and reusable. The rules should be made digital; Law-as-Code, not Code-as-Law.

We aim to establish a shared platform for Law-as-Code/Rules-as-Code to set the standard for reusable open-source Regulation-as-Code (RAC). Our platform will enable Cardano DApps to integrate with and update different regulations from countries across the globe consistently. This is a first step in the process to consider the rules themselves being stored on chain for immutability, audit trail, etc, creating further community/citizen trust and confidence, i.e.; "Proof of law". A platform anyone can use, contribute to, and rely upon for RAC.

In establishing the platform, we will create easy to follow documentation. We'll guide anyone to help add new regulations to the platform from their jurisdiction. We'll work to unify international treaties (such as FATCA/AML/CTF requirements). The RAC platform will make the development and conformance to regulation far more efficient and transparent for teams. Reduce the potential for inconsistent regulations across the Cardano universe and enable jurisdictions to build upon others' work quickly. Pioneering and leading the ecosystem of where humans and machines are users.

As Cardano Community Hubs establish themselves, well-documented processes, libraries of examples and common code will increase the speed of deployment for new Cardano engineers, developers and designers in developing countries.

In jurisdictions where there are high levels of corruption, and variation in the interpretation of regulations are commonplace, the platform will provide the means to create greater transparency, traceability to law, and appealability.

<u>Why it's important</u>

We know from experience that often, in many countries, internal business systems in government departments do not distinguish the legal rule (legislation/regulation) from operational rules, and this conflict means operational rules can contradict the law. A simple business example of how this solution can help ā€“ a government/nation's Tax authority exposes tax-law-as-code to industry, leading accounting/ERP software providers, i.e.; SAP, Xero, Quickbooks, etc, who are then able to simply integrate with the authority's RAC APIs for 'always current, always relevant, always lawful' verifiable access to tax laws.

Critically, the same disconnect between legal rules and operational rules in developing countries often leads to deeply unjust outcomes for the most vulnerable. It allows space for corruption.

RAC will help here too, provide a means for communities to test government decisions against the law, for better access to social justice, connecting regulators and their systems back to the place where they get their authority from ā€“ the people.

It supports the principles of modular architecture and decentralisation for Cardano DApps ā€“ enabling more than just an encoding of regulations, but encoding of the test suite for regulations.

It reduces cost and complexity for DApp developers and individuals, businesses and institutions. Right now, each time a rule is changed, 3rd party business systems, government, industry, or otherwise, need to go through an expensive onerous software release/change management process.

It also supports the principles of common/shared platforms and "whole of government" architectures for many developed digital nations/jurisdictions, (e.g.; Australian gov policy/framework: <https://www.dta.gov.au/whole-government-architecture>) as well as enabling developing nations to start with equity, transparency, inclusive accountability and human and machine-readable code in the foundations of their RAC.

ā€¢ Greater consolidation of law/rules

ā€¢ Greater consistency of law/rules

ā€¢ Greater access of law/rules

ā€¢ Less fragmentation of law/rules

Starting from a logic model, with an interdisciplinary, multicultural approach, co-drafting in both natural and computer languages creates new opportunities for monitoring and appealing.

Finally, it provides a resource for Cardonians in Community Hubs (in developing and developed nations) to adopt. In particular, those focused on reducing corruption and building trustless systems, will find it easier to communicate with governments and demonstrate their value proposition using the platform.

The platform will support their pitch to institutions that they are currently missing a valuable opportunity to create traceable, trustworthy, and equitable application of legislation across systems. With examples of solutions in hand, they will be able to ask questions such as; How do you audit in real-time? What does the citizen need to appeal the decision? What are the checks, balances, and oversights? How would you know if your system is helping or hurting people?

<u>Addressing the challenge</u>

This solution is a critical foundational service to enable the scaling of development teams, to deliver registry solutions, globally. It puts regulation in reach of new developers, programmers, engineers, designers and other team members adopting block-chain based solutions and reduces multiple costs creating DApps that impact social/financial inclusion and economic development.

A common/shared open-source RAC platform will enable poor nations to open, share and easily interpret law/rules around said themes such as property registration, medical and vaccination, elections voting, licensing & certifications, etc.

The deliverables for this RAC platform establishment project will begin to address the challenge immediately, providing the means for regulations to be used and reused in foundational registry solutions. They include:

ā€¢ MVP Open-Source RAC platform for anyone to use, preloaded with examples which are globally applicable.

ā€¢ Documentation and how tos for the Cardano community to codify the laws and rules they need to comply with in their DApps.

ā€¢ Whitepaper on RAC platform utility and applicability to Web3 communities and registry solutions.

ā€¢ At least one exemplar DApp: open-source MVP based on RAC addressed in the project. We are able to confirm a domestic exemplar ā€“ a public-facing app for vulnerable people to understand their legal eligibility to help build confidence in registering for and getting what they are entitled to, in collaboration with a social services organisation (Citizens Advice Bureau). An exemplar from elsewhere in the Project Catalyst community, working in collaboration with communities such as WADA, LATMO, ETH is to be explored further. Initial discussions point towards a second exemplar being 75% likely.

<u>Challenges and risks</u>

The first community project that uses the RAC platform might have its own challenges which create a risk for the success of platform building, so we will mitigate that by ensuring the first regulations we codify are needed by more than one Cardano project.

This exemplar from the community may well be likely to face the same challenges identified below. Risk can be mitigated in a number of ways to be explored, e.g.; limit scope, chose legislation which is more straightforward or mirrors a domestic example closely, work with a community with similar structures and institutions to Aotearoa, New Zealand.

The risk of getting the encoding wrong is not a new risk for this project as it exists for the DApps themselves, but we have lawyers in the team who are involved in the coding process to mitigate the risk of misinterpretation. We could still get it wrong, but weā€™ll build test cases to continuously test the system and rules. As the community which uses the platform grows, documenting these learnings will provide the foundations to improve the practices and processes and grow the community capabilities continuously. As Gandhi said, ā€œFreedom is not worth having if it doesnā€™t include the freedom to make mistakesā€.

Push back from anyone who says that encoding rules will cause a problem will be mitigated with a range of recent examples of the fact that actually they are all encoded already in some way shape or form, inconsistently. Examples will show that subordinate decisions or automation often, unintentionally, ignores legislation and operational policies where they have not been encoded to be reusable by people and machines. There are often multiple interpretations, multiple implementations, and no ability to know whether or not you've gotten the rules right, whether youā€™re INSIDE government and regulated entities or out.

The domestic exemplar "your legal rights" service will grow public confidence and improve the support available to our most vulnerable and create a greater appetite and requirement for departments to ensure explainability in their systems. We expect departments to not like this much, but we have full legal backing that a community interpretation of the law as code is no less authoritative than a departmental interpretation because only the source legislation is authoritative.

<u>Plan and timeline (roadmap)</u>

The core value of this proposal for the Cardano community is to have RAC as an open platform, a reusable utility, to support all Cardano DApps that rely upon or interact with government rules (legislation or regulation). By having the pure leg/reg as code (prescriptive rules encoded, and judgement base protected and referred to), it makes regulatory compliance more automated, more consistent and easier to build upon.

This technology is not blockchain-based itself at this early stage of establishment of a platform, but rather is a utility to capture and store pertinent rules for and from on-blockchain-based use cases like Smart Contracts.

By having reg/leg as code, it makes it much easier to democratise access to and build of anything that needs to be more likely compliant with leg/reg, reducing the duplication of effort for teams that otherwise would have to individually codify these rules into individual DApps.

The solution this proposal details lays the foundation for regulations themselves to be verifiably stored on-chain to validate authenticity as a next step. By creating and testing an MVP of processes, documentation, beginning to build a RAC community and ways to learn together across countries and cultures, and producing something useful, we will manage expectations and the next step to on-chain will be more impactful.

It is not building an auditing system, but rather a utility to help make other systems more auditable when they can test against the rules, and possibly even capture the relevant rules in decision logs.

We will develop a simple use case of legal eligibility service for citizens, but the platform will then be available (with good documentation) for anyone across the Cardano ecosystem to encode relevant legislation/regulation they need for other applications, to make these rules reusable across the community.

<u>Our roadmap</u>

ā€¢ Achieved after one month:

  1. Cardano community outreach (WADA, LATMO, ETH etc) includes engagement with key stakeholders, to establish a participatory culture and easy way for the community to join in, with 2-3 key Cardano projects. Broader outreach to institutions working on AI and regulation as code projects
  2. Use case discovery - Discovery work on target policy areas, history, understanding phase, aligned to Cardano community needs (at least 2-3 teams to be initial intended users)
  3. Project mapping for 1 x community examplar; relevant reg and 1 x local exemplar; relevant reg
  4. Blog post: technical update
  5. Blog post: pilot scenarios
  6. RAC Whitepaper - first draft (overview of solution concept and architecture)

ā€¢ After three months:

  1. Design brief for the first service - completion of Discovery/Alpha work with several not for profit social service providers internationally and locally (Iwi ā€“ Indigenous tribal entities in Aotearoa New Zealand) to inclusively design an exemplar service for anyone to understand their legal rights to benefits and services in NZ, to help the many people suffering from financial hardship, which has been exacerbated by the COVID pandemic.
  2. Proof-of-concept definition for international and local use cases
  3. Establish the platform and tools for a public commons of legislation and regulation as code, including the rules as code platform, extendable test suite, common variables library, website.
  4. 1st draft of DIY documentation content posted at website.
  5. Formal partnership with legal professional(s) to liaise with Community focused use case.
  6. Blog post: technical update
  7. Encoding complete of first use case: domestic legislation in the first instance, namely key New Zealand benefits legislation (Covid payments, Rates Rebate, Social Security Act) both to establish the platform with something real, and to support and provide the rules platform to support a high-value use case (below).
  8. Blog post: pilot progress.
  9. Alpha phase complete of the legal eligibility service, with public feedback and testing. Lessons learned. Iterations anticipated.
  10. Initial encoding of international use case with Dapps team user testing/feedback

ā€¢ After six months:

  1. Alpha service launched, based on domestic use case
  2. Teams field testing, user research and user feedback
  3. Website/Gitbook outline of DIY documentation content with easy to access or spin up infrastructure for any Dapps teams to use
  4. Encording complete of international use case and user testing with Dapps teams
  5. Live, online workshop schedule produced, with the documentation and support for anyone to get involved and start adding their own leg/red as code into a global commons.
  6. Blog post: How to add your own legislation/regulation into the Cardano Reg as Code platform
  7. Pre-print paper for peer review: "Opportunities for RAC in Pacific nations an Aotearoa, New Zealand Exampleā€
  8. Whitepaper v1 (overview of solution concept and technical architecture)
  9. Deploy domestic / International MVP
  10. Legal eligibility tool is deployed as a Beta domestically and is being used by Citizens Advise Bureau and other social service providers for people every week to better understand their eligibility for services, and feel more confident to get the help they are entitled to.
  11. International exemplar/tool is deployed as a Beta and is being used by Community members

<u>Budget</u>

The requested budget is for wages and expenses for six months of the project. We will deliver the initial RAC platform with two sets of rules encoded (one domestic and one international) with related documentation so Cardano teams can add their own legislation/regulation to the platform. We will also deliver a small domestic service based on the domestic rules use case (ā€œknow your legal eligibilityā€) as a demonstrator for how to use the platform as an MVP within 6 months, for continuous testing and iteration beyond this funding. The service would immediately be used by a major not for profit social services organisation, immediately benefiting tens of thousands of vulnerable people every day.

ā€¢ Software Specification & Engineering: $45,000 USD (45%)

ā€¢ Service Design and User Research: $25,000 USD (25%)

ā€¢ Technical Writing: $7,000 USD (7%)

ā€¢ Community Engagement: $5,000 USD (5%)

ā€¢ Project Management: $7,000 USD (7%)

ā€¢ Software Services & Server Fees: $1000 x 12 months: $12,000 (11%)

  • SUBTOTAL: $101,000

ā€¢ plus 10% fiduciary sponsorship (https://opencollective.com) and office expenses: $10,100

  • TOTAL: $111,100

Budget based on a pro-rata hourly rate spread over up to five team members at any one time. FTE hourly rate of USD$100 adjusted for experience, nature of work, and short term intermittent nature of project.

Further funds will be requested to continue the work beyond this project/period, either through Catalyst or direct funding of the RAC platform (incl. potentially setting up DAO infrastructure).

<u>Team</u>

Our team includes several longstanding Project Catalyst community members, legal, global government and citizens services expertise, along with members of the open-source, open government, global RAC communities:

Pia Andrews (Project Lead and subject matter experts liaison) ā€“ Open [govt|source|data|standards|society] geek, with 20 years experience working at the intersection of government, society and technology, in digital or service transformation of government. Established Rules as Code programs in 4 jurisdictions to date with teams in Australia, Aotearoa New Zealand and Canada, and now establishing a community commons for ANZO. <https://twitter.com/piacandrews>, <http://pipka.org/>, <https://clik.vc/participatorygovernance>, <https://clik.vc/aisandyou>

Jo Allum (Community development, Network co-ordination/design) ā€“ Co-Founder of Venture Centre <https://venturecentre.nz>, community manager and instigator working with several Project Catalyst communities including Community Governance Oversight, Improve and Grow Auditability, Audit Circle, the emerging Cardano Impact Network (network of networks) with the intention to advance the establishment of the ā€˜innovation commonsā€™ for common-good. https://twitter.com/jo_allum

Arama Maitara (Intercultural facilitation expert) ā€“ Intercultural navigator and facilitator with deep experience in establishing shared ways and equitable co-design towards common goals in multiple countries with multiple cultures. https://twitter.com/arama_mataira

Alfred Deeb (Open Government expert) ā€“ An open government and open revolution advocate, Alfred leads an Australian open-source digital innovation company driven by its purpose to help governments become more open, more connected, and more consolidated. <https://salsadigital.com.au/about/team/alfred-deeb>

Tom Barraclough (Legal lead) - Legal eagle with deep experience in the intersection of technology and law, and co-founder of the Digital Legal Systems Lab in Aotearoa New Zealand. https://twitter.com/Tom_Bcgh, <https://clik.vc/lawascode>

Hamish Fraser (RAC Platform Lead) - Hamish is a Legislation as Code researcher and practitioner, developer and builder of great and wonderful legal and policy things. Is currently in the process of co-founding the Digital Legal Systems Lab being set up in Aotearoa New Zealand. <https://twitter.com/verbman>, <https://clik.vc/rulesascode>, <https://clik.vc/hamishrac>

Robert O'Brien (Support and Integration) - Distributed Systems Software Engineer (Financial Systems) and Entrepreneur, working on self-sovereign systems for identity, culture, data and governance. Funded proposals in F5/6/7 including Ricardian Contracts, Bonding Curve and Eastern Town Hall community development. <https://twitter.com/robertobrien>

Sacha Green (CAB liaison) - legal and policy expert, working in the Citizen Advice Bureau New Zealand to help people when they are at their most vulnerable to get the help they need from governments. <https://twitter.com/sachakakariki>

Siobhan McCarthy (Design Lead) - experienced service designers and user researcher, currently finishing her Masters, with an impressive record in private and public sectors. <https://twitter.com/ssibbehh>

Brenda Wallace (developer) - experienced developer including with Rules as Code. <https://twitter.com/BR3NDA>

<u>Progress and development measures</u>

A 6-month project to deliver, success would be measured over 12 months.

1) Engagement with Cardano community and qualtatitive and qualitative research participation.

2) Identification of international use case with global applicability.

3) Documentation of process and practice, challenges and opportunities being updated regularly.

4) Meeting deliverables deadlines (see roadmap/timeline above).

6) 100+ people contributing to the RAC with new leg/reg by 6 months after platform launch.

7) At least 5 applications built on top of the platform.

8) 5000 vulnerable people use the domestic ADpp (directly or indirectly) to identify their legal eligibility for support services within 12 months.

9) A 5% increase in first year of people getting their eligible benefits from domestic DApp.

10) Community engagement with government departments requesting support to improve the explainability and veracity of at least 2 key gov systems.

<u>Success criteria</u>

The project will be successful if it provides utility to its first co-developer/users domestically and international Project Catalyst community members. We will be successful if by both qualitative and quantative measures we have been able to help the Cardano community members weā€™ve engaged to participate in the pilot, domestically and internationally, to encode regulation and begin to feel confident doing so. We will ask them to qualify using questions such as; Does it help grow Cardano community capability, increase demand for and confidence in RAC as a utility, (rather than hardcoded into systems)? Is the documentation sufficient to provide open digital infrastructure to build upon by anyone?

Success would also see engagement from Institutions working on ADM/AI projects engaged in the project and supporting its continuation, providing for checks and balances for automated decision making and high veracity AI which can be leveraged by research institutes globally.

AI organisations that would love to leverage legislation and regulation as code to ensure more high veracity and more trustworthy use of AI in their DApps engage and contribute to the project and establishment of the platform. They see and value the benefits of ignificantly increasing the agility and 'speed to market' or 'speed to change' of laws/rules.

A developing community of practice and use of the platform in more developing countries to build DApps for the disenfranchised and vulnerable who have suffered from the inequities in developed and developing countries.

Ultimately the project will be deemed successful if it lays the foundation for regulations themselves be verifiably stored on chain to validate authenticity. It would also provide the auditable infrastucture/means to distribute rewards to the contributors to opensource people-powered RAC.

New project. Not previously funded in Catalyst.

close

Playlist

  • EP2: epoch_length

    Authored by: Darlington Kofa

    3m 24s
    Darlington Kofa
  • EP1: 'd' parameter

    Authored by: Darlington Kofa

    4m 3s
    Darlington Kofa
  • EP3: key_deposit

    Authored by: Darlington Kofa

    3m 48s
    Darlington Kofa
  • EP4: epoch_no

    Authored by: Darlington Kofa

    2m 16s
    Darlington Kofa
  • EP5: max_block_size

    Authored by: Darlington Kofa

    3m 14s
    Darlington Kofa
  • EP6: pool_deposit

    Authored by: Darlington Kofa

    3m 19s
    Darlington Kofa
  • EP7: max_tx_size

    Authored by: Darlington Kofa

    4m 59s
    Darlington Kofa
0:00
/
~0:00