{"id":1278,"date":"2022-03-04T23:07:24","date_gmt":"2022-03-04T23:07:24","guid":{"rendered":"https:\/\/ifmbanm.com\/blog\/?p=1278"},"modified":"2022-03-04T23:07:24","modified_gmt":"2022-03-04T23:07:24","slug":"law-as-code","status":"publish","type":"post","link":"https:\/\/ifmbanm.com\/blog\/?p=1278","title":{"rendered":"Law as code"},"content":{"rendered":"\n<p>I remember Lessig talking about this.  What if we treated the law (as regards technology products, anyway) as if it were a set of regression tests that all new code had to pass?  So, you express the legal constraint in some sort of test-able way that the authors of the law agree constitutes a valid expression (&#8220;all users of the software must be able to easily erase any record of the history of their usage of the software&#8221; => a test spec: sign up as a user, do some things, find the mechanism to erase history (perhaps limited by number of clicks or time involved or &#8230; to provide a metric of &#8220;easily&#8221;), execute it, verify that history is in fact unobtainable.<\/p>\n\n\n\n<p>As the law evolves, the test suite evolves.  As the software evolves, it is constantly re-tested against the latest version of the test suite.<\/p>\n\n\n\n<p>Legal terms, such as &#8220;reasonable&#8221;, &#8220;easily&#8221;, &#8230; tend to be well-defined within the context of the law.  As such, they&#8217;re like shortcuts, and perhaps can be implemented using something like Prolog.<\/p>\n\n\n\n<p>no, wait: Lessig&#8217;s formulation was &#8220;code as law&#8221;, precisely the opposite: the embedding of social values, etc, into technological artifacts (consciously or not).<\/p>\n\n\n\n<p>cf: &#8220;smart contracts&#8221; in blockchain.  otoh, witness the lack of transparency in machine learning, which can result in seemingly arbitrary decisions and classifications with no explanation of their rationale.  Interesting reading in &#8220;The Expansion of Algorithmic Governance: From Code is Law to Law is Code&#8221;, Hassan and de Filippi, <a href=\"https:\/\/journals.openedition.org\/factsreports\/4518\">https:\/\/journals.openedition.org\/factsreports\/4518<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I remember Lessig talking about this. What if we treated the law (as regards technology products, anyway) as if it were a set of regression tests that all new code had to pass? So, you express the legal constraint in some sort of test-able way that the authors of the law agree constitutes a valid [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/ifmbanm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1278"}],"collection":[{"href":"https:\/\/ifmbanm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ifmbanm.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ifmbanm.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ifmbanm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1278"}],"version-history":[{"count":1,"href":"https:\/\/ifmbanm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1278\/revisions"}],"predecessor-version":[{"id":1279,"href":"https:\/\/ifmbanm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1278\/revisions\/1279"}],"wp:attachment":[{"href":"https:\/\/ifmbanm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ifmbanm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ifmbanm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}