Modern economies are held together by innumerable contracts, as recognized by the 2016 Nobel Prize in Economics.2 Contracts are, however, difficult to understand and manage,3 and inherently incomplete.4 This paper argues that the problems of understanding, management and incompleteness can be greatly reduced by codification using the methods of open source collaboration, combining the benefits of «code is law»5 with codified law and contract visualization, leading to what we have chosen to call wise contracts: smart contracts6 that use and extend the wisdom of legal and other experts, iteratively learn from experience, and, echoing our title, work for people and machines.
The «Ricardian Contract» paradigm posits three parts of contracts necessary for full automation and legal enforceability – parameters, code and prose.7 Parameters are the aspects that are specific to the particular contract, for instance deal points such as prices, dates and quantities. A deal point is a fluid notion since any aspect of a contract can become a critical negotiation issue in a particular transaction, but the point is that any aspect of a contract can fit into at least one of these three categories. Smart contracts fulfil the code part and are the subject of a strong movement including Hyperledger8, Corda9, Ethereum10 and variants such as Interledger.11 The prose part, however, has, until now, not been handled efficiently. A number of approaches have been developed, many of which can be classified as document assembly. A recent paper in two parts on «Smart Contract Templates» by Clack, Bakshi and Braine (the «SCT Paper»)12 provides an excellent overview of the issues relating to the codification of the prose.
We extend the SCT Paper by providing some suggested solutions to the issues. By handling the prose of legal contracts using the same infrastructure and methods that are used for software code, it is possible to rapidly and universally codify contract prose.13 CommonAccord14 demonstrates a simple data model for codified prose that allows easy migration of conventional contracts to standards-based prose objects ready for automation via smart contracts. Codified prose also supports the full set of legal and social methods such as setting standards, commenting and rating.15 The codification can begin with a form proposed by a party, with a «standard» form or with modular materials from analytical or document assembly systems.16
The prose objects can optionally integrate presentation and visual elements, supporting the emerging demands for truly human-readable contracts.17 In recent years, in response to the growing complexity of contracts, new approaches such as simplification, visualization and user-centered design have been introduced, even to the world of commercial contracting.18 As uses accumulate, visualization can also provide guidance and feedback on uses.19 The combination of code, codified prose, visual presentation and big data promises a revolution in how contracts are made, managed, and presented.
2.
Codifying Prose ^
Picking up the conversation where the second part of the SCT Paper [Clack et al. 2016(b)] begins, there are five broad requirements for smart contract templates. We pair each requirement with a short word that evokes the idea:
- Editing: Methods to create and edit smart legal agreements, including contract prose and parameters.
- Transmission: Standard formats for storage, retrieval and transmission of smart legal contracts.
- Stamping20: Protocols for legally executing smart legal agreements (with or without signatures).
- Binding: Methods to bind the parameters or deal points of a contract and its corresponding smart contract code to create a smart legal contract, i.e., a legally-enforceable smart contract.
- Enforceability21: Methods to make smart legal contracts available in forms acceptable according to laws and regulations in the appropriate jurisdiction.
2.1.
Abstract Specification of a Prose Object Model ^
The key to templating is what the authors of the SCT Paper refer to as an «abstract specification» for legal templates.22 Such a system would ideally be expressible in a number of «concrete» formats, such as JSON, XML, markdown, etc.23 CommonAccord concretely demonstrates such an «abstract» specification that is simple, extensible and unifying. Technically, the model can be described as records consisting of key/values, with links from one record to another that permit inheritance of other key/values based on «prototype» inheritance.24 This is a technical mouthful. – Operationally, it means that legal templates can be reduced to their constituent parts and assembled into desired forms very simply, as building blocks.
The SCT Paper discusses various design options for storing the parameters – should they be in separate records, with the code or with the prose?25 We suggest that they will ordinarily be best presented as separate records – term sheets for transactions – but that they can also be stored as part of the prose or the code, and that different uses will call for a mix of these approaches.26 For instance, the prose forms can include default parameters or leave the parameters blank. In either case, an author of a contract can override it with a new statement of the parameter. Similarly, prose objects can reference or include code and vice-versa.27 In negotiation, a party can propose changes to an existing prose form by listing the proposed changes. This derivative record can become «the» contract. In practice, key/values that represent parameters, prose or code can all be expressed where it is most convenient.
2.2.
Editing Tools ^
Returning to the SCT Paper’s principles – editing can be done with a variety of tools. In a practical system of transacting, most editing will consist of order-entry: filling in parameters or overriding specific spans of prose. This can be done in transaction systems, such as electronic payment systems and web interfaces. That does not preclude interfaces such as those mentioned by the authors of the SCT Paper, including MS Word and document assembly systems. For management of prose objects and extensive editing, we expect that the tools of software developers, such as IDEs,28 will be preferred. That is what the current authors of CommonAccord use, including Emacs, Visual Studio and Yarn.
2.3.
Presentation and Markup ^
Figure 1. Ease of Human/Computer Readability: Visual-Text-Code Continuum31
2.4.
Transmission ^
Transmission of smart contracts will be done in a variety of methods. Blockchains, including Bitcoin38, Ethereum and Hyperledger, have attracted attention and development efforts for their fraud-reduction aspects. Corda has been used in connection with the SCT Paper work. Interledger is another open standard. Current systems of payment also provide secure pathways for transmission of parameters and other key/values. We note that git, the cryptographically-supported version control system developed by the Linux community, provides a medium of transmission that is very useful for collections of materials and particularly for the «legal» part of legal codification.39
2.5.
Stamping and Signing ^
2.6.
Binding ^
2.7.
Ontologies, Enforceability and Localization – an Object Model of the Legal World ^
Ontologies are the essence of a templating system. In computer science, an «ontology» refers to the formally defined concepts and relationships that describe a domain. They include such things as classes, attributes, relationships and rules.40 In law, these can be thought of as naming conventions and classifications.
In a global economy, contracts frequently cross boundaries between different legal systems. Even the key legal elements necessary to create a contract vary. A critical part of the object model is localization for the jurisdiction. The contract’s choice of law will influence its substance, style and language. In the CommonAccord demonstration materials, jurisdiction has been chosen as the basis to organize contracts and other documents.44
2.8.
Incremental Codification ^
2.9.
Intelligence – Expert, Artificial and Natural ^
3.
Conclusion ^
This paper illustrates how prose objects can serve as the connection between automated systems and human systems. They can provide anchors for a number of forms of explanation and clarification, including layering, graphic representations, layout, style sheets, voice recognition, ratings, commentary and the like – all depending on the needs and expectations of the audience.
4.
References ^
Clack, Christopher D./Bakshi, Vikram A./Braine, Lee, Smart Contract Templates: foundations, design landscape and research directions. Version v2, 3 August 2016(a). https://arxiv.org/abs/1608.00771.
Clack, Christopher D./Bakshi, Vikram A./Braine, Lee, Smart Contract Templates: essential requirements and design options. Version v2, 15 December 2016(b). https://arxiv.org/abs/1612.04496.
Creative Commons, About The Licenses – Creative Commons, http://creativecommons.org/licenses.
De Filippi, Primavera & Hassan, Samer, Blockchain technology as a regulatory technology: From code is law to law is code, First Monday Volume 21, Number 12, 5 December 2016, http://firstmonday.org/ojs/index.php/fm/article/view/7113.
Grigg, Ian, The Ricardian Contract, no date, http://iang.org/papers/ricardian_contract.html.
Haapio, Helena, Designing Readable Contracts: Goodbye to Legal Writing – Welcome to Information Design and Visualization. In: Schweighofer, Erich/Kummer, Franz/Hötzendorfer, Walter (Eds.), Abstraction and Application. Proceedings of the 16th International Legal Informatics Symposium IRIS 2013, Österreichische Computer Gesellschaft OCG, Wien 2013, p. 445–452.
Haapio, Helena, Lawyers as Designers, Engineers and Innovators: Better Legal Documents through Information Design and Visualization. In: Schweighofer, Erich/Kummer, Franz/Hötzendorfer, Walter (Eds.), Transparency. Proceedings of the 17th International Legal Informatics Symposium IRIS 2014, Österreichische Computer Gesellschaft OCG, Wien 2014, p. 451–458.
Haapio, Helena/Barton, Thomas D., Business-Friendly Contracting: How Simplification and Visualization Can Help Bring It to Practice. In: Jacob, Kai/Schindler, Dierk/Strathausen, Roger (Eds.), Liquid Legal – Transforming Legal into a Business Savvy, Information Enabled and Performance Driven Industry, Springer International Publishing 2017, p. 371–396. DOI: 10.1007/978-3-319-45868-7_24.
Haapio, Helena/Plewe, Daniela Alina/de Rooy, Robert, Contract Continuum: From Text to Images, Comics and Code. In: Proceedings of IRIS 2017.
Hart, Oliver/Moore, John, Incomplete Contracts and Renegotiation, Econometrica, Vol. 56, No. 4, 1988, p. 755–785.
IACCM, Commercial Excellence: Ten Pitfalls To Avoid In Contracting. [Booklet] International Association for Contract and Commercial Management 2015, https://www2.iaccm.com/resources/?id=8451.
Lessig, Lawrence, Code and Other Laws of Cyberspace, Basic Books, Inc., New York, NY, 1999.
Lessig, Lawrence, Code Is Law: On Liberty in Cyberspace, Harvard Magazine, 1 January 2000, http://harvardmagazine.com/2000/01/code-is-law-html.
Passera, Stefania, Beyond the Wall of Text: How Information Design Can Make Contracts User-Friendly. In: Marcus, Aaron (Ed.), Design, User Experience, and Usability: Users and Interactions, Springer International Publishing 2015, p. 341–352. DOI: 10.1007/978-3-319-20898-5_33.
Passera, Stefania/Smedlund, Anssi/Liinasuo, Marja, Exploring contract visualization: Clarification and framing strategies to shape collaborative business relationships, Journal of Strategic Contracting and Negotiation, Vol. 2, Issue 1–2, March/June 2016, p. 69–100. DOI: 10.1177/2055563616669739.
The Prize in Economic Sciences 2016. Nobelprize.org. Nobel Media AB 2014. http://www.nobelprize.org/nobel_prizes/economic-sciences/laureates/2016/.
Sztorc, Paul, Upgrading «Smart Contracts» to «Wise Contracts», 15 January 2017, http://bravenewcoin.com/news/upgrading-smart-contracts-to-wise-contracts/.
Waller, Robert/Waller, Jenny/Haapio, Helena/Crag, Gary/Morrisseau, Sandi, Cooperation Through Clarity: Designing Simplified Contracts, Journal of Strategic Contracting and Negotiation, Vol. 2, Issue 1–2, March/June 2016, p. 48–68. DOI: 10.1177/2055563616668893.
- 1 The authors wish to thank Christopher Clack and his co-authors for their valuable comments on an earlier version of this manuscript. Any errors are our own.
- 2 The Prize in Economic Sciences 2016.
- 3 See, e.g., IACCM 2015.
- 4 The theory of incomplete contracts has been pioneered by Oliver Hart and his collaborators. See, e.g., Hart & Moore 1988. The Nobel Prize in Economics 2016 was awarded to Oliver Hart and Bengt Holmström for their contribution to contract theory, including incomplete contracts.
- 5 See, generally, Lessig 1999 and 2000. See also De Filippi & Hassan 2016.
- 6 We reference the work and vocabulary as developed by Clack et al. 2016(a) and 2016(b). We argue – as those authors do – that it is important to ensure that the smart contract is also a legally enforceable contract, a smart legal contract. The authors define the term «smart contract» as an agreement whose execution is both automatable and enforceable (Clack et al. 2016(a), i.e., to include both smart legal contracts and smart contract code. Our use of «wise contracts» is intended to refer to the addition of «wisdom» about contracts» business and legal objectives and how they can be reached. The term «wise contract» has a variety of other usages, including an application written to improve coordination among smart contracts (Sztorc 2017) and arbitration services relating to smart contracts (http://www.wisecontracts.com/).
- 7 Ricardian Contracts is a concept developed by Ian Grigg [Grigg n.d.].
- 8 https://www.hyperledger.org (all Internet sources accessed on 9 January 2017).
- 9 https://www.corda.net.
- 10 https://ethereum.org.
- 11 https://interledger.org. See also Clack et al. 2016(a).
- 12 Clack et al. 2016(a) and (b). The discussion that follows is mostly based on the latter part, Clack et al. 2016(b).
- 13 The set of tools that we reference are very well known among software coders. They principally include plain text, HTML, key/values, file systems, git, and editing IDEs.
- 14 http://www.commonaccord.org/.
- 15 Standardization of terms is a long-standing and widely-practiced activity.
- 16 Analytical systems such as RAVN (https://www.ravn.co.uk), Seal Software (https://www.seal-software.com/), and KM Standards (https://kmstandards.com) generate modular materials from groups of conventional contracts. These modules can be formatted as prose objects.
- 17 See, e.g., Haapio et al. 2017, Haapio 2013 and 2014.
- 18 See, e.g., Passera 2015, Passera et al. 2016, Waller et al. 2016, Haapio/Barton 2017.
- 19 Systems such as RAVN (https://www.ravn.co.uk) have demonstrated the ability to graphically present aggregate information about groups of contracts.
- 20 «Stamping» is our term, the SCT Paper does not provide a one-word label for this principle.
- 21 «Enforceability» is our term, the SCT Paper does not provide a one-word label for this principle, which could also be called «Legitimacy» or «Localization».
- 22 Clack et al. 2016(b), p. 3.
- 23 Id., p. 2.
- 24 On prototype inheritance generally, see https://en.wikipedia.org/wiki/Prototype-based_programming. The CommonAccord variant is described most succinctly at https://github.com/CommonAccord/Cmacc-Org/issues/18. Code that precisely implements the abstract model in a concrete form was done by Primavera De Filippi (Harvard Berkman-Klein, and French CNRS) and is available at https://github.com/CommonAccord/Cmacc-Org/tree/master/vendor/library.
- 25 Clack et al. 2016(b), p. 7.
- 26 E.g., parameters that complete a prose object – a YCombinator form of investment note. http://source.commonaccord.org/index.php?action=source&file=F/Demo/Note_YC/Cap_Discount.md. The source is available at https://github.com/CommonAccord/Cmacc-Source/blob/master/Doc/F/Demo/Note_YC/Cap_Discount.md.
- 27 E.g., a form of bank check that incorporates both the prose elements and quasi-code via hash links http://www.commonaccord.org/index.php?action=doc&file=bqc/fr/bnpp/a5we/Account/Check/00001/06-Accept.md. Linking to code via hashes may facilitate the sharing of specific functions among actors. For instance, in the context of the European Payment Services Directive (Directive (EU) 2015/2366), banks will be required to expose payment APIs. They could collaborate on discrete, standardized functions used via hashed names.
- 28 An IDE is a tool that developers use for doing their work. It can be compared to word processing and document management for legal work. There are many highly developed IDEs, many of them open source. They are very good at handling a large number of files at the same time, which is normally the case when using codified prose. See, generally, https://en.wikipedia.org/wiki/Integrated_development_environment.
- 29 Haapio et al. 2017.
- 30 Id.
- 31 Id. Image used with the kind permission by the co-authors, Daniela Alina Plewe and Robert de Rooy.
- 32 See, e.g., Waller et al. 2016.
- 33 See, e.g., Haapio 2014 and Waller et al. 2016.
- 34 See Creative Commons, http://creativecommons.org/licenses.
- 35 «Taken together, these three layers of licenses ensure that the spectrum of rights isn’t just a legal concept. It’s something that the creators of works can understand, their users can understand, and even the Web itself can understand.» See Creative Commons.
- 36 https://en.wikipedia.org/wiki/HTML.
- 37 Markdown refers to such syntaxes as those used in Wikipedia and on GitHub, https://en.wikipedia.org/wiki/Markdown.
- 38 See, e.g., https://en.wikipedia.org/wiki/Bitcoin.
- 39 Git was originated by Linus Torvalds and developed by the community. https://git-scm.com/.
- 40 For ontology as a computer science term, see, e.g., https://en.wikipedia.org/wiki/Ontology_(information_science).
- 41 http://source.commonaccord.org/index.php?action=doc&file=F/00/Agt/Base/Outline/0.md.
- 42 For instance, this presents an attempt to organize a complete system of legal documents for a variety of jurisdictions, based on a common core. http://source.commonaccord.org/index.php?action=list&file=F/Demo/.
- 43 A demonstration object model for geographic locations – http://source.commonaccord.org/index.php?action=list&file=U/at/.
- 44 http://source.commonaccord.org/index.php?action=list&file=F/Demo/.
- 45 Merchant websites are largely automated, but have terms of use and complaint procedures. Stockmarkets are similarly configured. The system works well most of the time and occasionally a problem arises that is dealt with in conference rooms and courts. The parties learn and incrementally so does the system. The benefit of an open source, generalized approach, such as is offered by smart contracts and by prose objects, is that the learning can be widely and symmetrically shared.