{"action":"created","comment":{"url":"https://api.github.com/repos/oughtinc/patchwork/pulls/comments/197629798","pull_request_review_id":131413247,"id":197629798,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NzYyOTc5OA==","diff_hunk":"@@ -113,6 +113,21 @@ def is_own_ancestor(self, db: Datastore) -> bool:\n             context = context.parent\n         return False\n \n+    def can_fulfill_promise(self, db: Datastore, promise: Address) -> bool:\n+        workspace = db.dereference(self.workspace_link)\n+        return promise in [workspace.answer_promise,\n+                           workspace.final_workspace_promise]\n+\n+    def can_advance_promise(self, db: Datastore, promise: Address) -> bool:\n+        workspace = db.dereference(self.workspace_link)\n+        promisee_contexts = \\\n+            (Context(args[0], db)","path":"patchwork/context.py","position":null,"original_position":12,"commit_id":"b93ccac779a2b475ac2b83df383e592242893f86","original_commit_id":"f12e149efc1011307b7fe89ab4ab9dee4490d580","user":{"login":"rmoehn","id":311879,"node_id":"MDQ6VXNlcjMxMTg3OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/311879?v=4","gravatar_id":"","url":"https://api.github.com/users/rmoehn","html_url":"https://github.com/rmoehn","followers_url":"https://api.github.com/users/rmoehn/followers","following_url":"https://api.github.com/users/rmoehn/following{/other_user}","gists_url":"https://api.github.com/users/rmoehn/gists{/gist_id}","starred_url":"https://api.github.com/users/rmoehn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmoehn/subscriptions","organizations_url":"https://api.github.com/users/rmoehn/orgs","repos_url":"https://api.github.com/users/rmoehn/repos","events_url":"https://api.github.com/users/rmoehn/events{/privacy}","received_events_url":"https://api.github.com/users/rmoehn/received_events","type":"User","site_admin":false},"body":"`Workspace` wouldn't be a good place for these methods, but I avoided the dirty instantiation anyway. See 65a13d9.","created_at":"2018-06-24T06:33:54Z","updated_at":"2018-06-24T06:33:54Z","html_url":"https://github.com/oughtinc/patchwork/pull/8#discussion_r197629798","pull_request_url":"https://api.github.com/repos/oughtinc/patchwork/pulls/8","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/oughtinc/patchwork/pulls/comments/197629798"},"html":{"href":"https://github.com/oughtinc/patchwork/pull/8#discussion_r197629798"},"pull_request":{"href":"https://api.github.com/repos/oughtinc/patchwork/pulls/8"}},"in_reply_to_id":196980668},"pull_request":{"url":"https://api.github.com/repos/oughtinc/patchwork/pulls/8","id":195992406,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1OTkyNDA2","html_url":"https://github.com/oughtinc/patchwork/pull/8","diff_url":"https://github.com/oughtinc/patchwork/pull/8.diff","patch_url":"https://github.com/oughtinc/patchwork/pull/8.patch","issue_url":"https://api.github.com/repos/oughtinc/patchwork/issues/8","number":8,"state":"open","locked":false,"title":"Feature laziness with clean history","user":{"login":"rmoehn","id":311879,"node_id":"MDQ6VXNlcjMxMTg3OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/311879?v=4","gravatar_id":"","url":"https://api.github.com/users/rmoehn","html_url":"https://github.com/rmoehn","followers_url":"https://api.github.com/users/rmoehn/followers","following_url":"https://api.github.com/users/rmoehn/following{/other_user}","gists_url":"https://api.github.com/users/rmoehn/gists{/gist_id}","starred_url":"https://api.github.com/users/rmoehn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmoehn/subscriptions","organizations_url":"https://api.github.com/users/rmoehn/orgs","repos_url":"https://api.github.com/users/rmoehn/repos","events_url":"https://api.github.com/users/rmoehn/events{/privacy}","received_events_url":"https://api.github.com/users/rmoehn/received_events","type":"User","site_admin":false},"body":"This is the same as `feat-laziness`, but with the intermediate steps squashed. This way the history shows only the changes that matter in the end.","created_at":"2018-06-20T00:24:43Z","updated_at":"2018-06-24T06:33:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f0f121b3ce93780d67d017c5790464012db65c9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/oughtinc/patchwork/pulls/8/commits","review_comments_url":"https://api.github.com/repos/oughtinc/patchwork/pulls/8/comments","review_comment_url":"https://api.github.com/repos/oughtinc/patchwork/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oughtinc/patchwork/issues/8/comments","statuses_url":"https://api.github.com/repos/oughtinc/patchwork/statuses/b93ccac779a2b475ac2b83df383e592242893f86","head":{"label":"rmoehn:feat-laziness-clean","ref":"feat-laziness-clean","sha":"b93ccac779a2b475ac2b83df383e592242893f86","user":{"login":"rmoehn","id":311879,"node_id":"MDQ6VXNlcjMxMTg3OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/311879?v=4","gravatar_id":"","url":"https://api.github.com/users/rmoehn","html_url":"https://github.com/rmoehn","followers_url":"https://api.github.com/users/rmoehn/followers","following_url":"https://api.github.com/users/rmoehn/following{/other_user}","gists_url":"https://api.github.com/users/rmoehn/gists{/gist_id}","starred_url":"https://api.github.com/users/rmoehn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmoehn/subscriptions","organizations_url":"https://api.github.com/users/rmoehn/orgs","repos_url":"https://api.github.com/users/rmoehn/repos","events_url":"https://api.github.com/users/rmoehn/events{/privacy}","received_events_url":"https://api.github.com/users/rmoehn/received_events","type":"User","site_admin":false},"repo":{"id":134937276,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ5MzcyNzY=","name":"patchwork","full_name":"rmoehn/patchwork","owner":{"login":"rmoehn","id":311879,"node_id":"MDQ6VXNlcjMxMTg3OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/311879?v=4","gravatar_id":"","url":"https://api.github.com/users/rmoehn","html_url":"https://github.com/rmoehn","followers_url":"https://api.github.com/users/rmoehn/followers","following_url":"https://api.github.com/users/rmoehn/following{/other_user}","gists_url":"https://api.github.com/users/rmoehn/gists{/gist_id}","starred_url":"https://api.github.com/users/rmoehn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmoehn/subscriptions","organizations_url":"https://api.github.com/users/rmoehn/orgs","repos_url":"https://api.github.com/users/rmoehn/repos","events_url":"https://api.github.com/users/rmoehn/events{/privacy}","received_events_url":"https://api.github.com/users/rmoehn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rmoehn/patchwork","description":"HCH with immutable contexts and explicit data store","fork":true,"url":"https://api.github.com/repos/rmoehn/patchwork","forks_url":"https://api.github.com/repos/rmoehn/patchwork/forks","keys_url":"https://api.github.com/repos/rmoehn/patchwork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rmoehn/patchwork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rmoehn/patchwork/teams","hooks_url":"https://api.github.com/repos/rmoehn/patchwork/hooks","issue_events_url":"https://api.github.com/repos/rmoehn/patchwork/issues/events{/number}","events_url":"https://api.github.com/repos/rmoehn/patchwork/events","assignees_url":"https://api.github.com/repos/rmoehn/patchwork/assignees{/user}","branches_url":"https://api.github.com/repos/rmoehn/patchwork/branches{/branch}","tags_url":"https://api.github.com/repos/rmoehn/patchwork/tags","blobs_url":"https://api.github.com/repos/rmoehn/patchwork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rmoehn/patchwork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rmoehn/patchwork/git/refs{/sha}","trees_url":"https://api.github.com/repos/rmoehn/patchwork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rmoehn/patchwork/statuses/{sha}","languages_url":"https://api.github.com/repos/rmoehn/patchwork/languages","stargazers_url":"https://api.github.com/repos/rmoehn/patchwork/stargazers","contributors_url":"https://api.github.com/repos/rmoehn/patchwork/contributors","subscribers_url":"https://api.github.com/repos/rmoehn/patchwork/subscribers","subscription_url":"https://api.github.com/repos/rmoehn/patchwork/subscription","commits_url":"https://api.github.com/repos/rmoehn/patchwork/commits{/sha}","git_commits_url":"https://api.github.com/repos/rmoehn/patchwork/git/commits{/sha}","comments_url":"https://api.github.com/repos/rmoehn/patchwork/comments{/number}","issue_comment_url":"https://api.github.com/repos/rmoehn/patchwork/issues/comments{/number}","contents_url":"https://api.github.com/repos/rmoehn/patchwork/contents/{+path}","compare_url":"https://api.github.com/repos/rmoehn/patchwork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rmoehn/patchwork/merges","archive_url":"https://api.github.com/repos/rmoehn/patchwork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rmoehn/patchwork/downloads","issues_url":"https://api.github.com/repos/rmoehn/patchwork/issues{/number}","pulls_url":"https://api.github.com/repos/rmoehn/patchwork/pulls{/number}","milestones_url":"https://api.github.com/repos/rmoehn/patchwork/milestones{/number}","notifications_url":"https://api.github.com/repos/rmoehn/patchwork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rmoehn/patchwork/labels{/name}","releases_url":"https://api.github.com/repos/rmoehn/patchwork/releases{/id}","deployments_url":"https://api.github.com/repos/rmoehn/patchwork/deployments","created_at":"2018-05-26T06:56:52Z","updated_at":"2018-06-09T07:11:28Z","pushed_at":"2018-06-24T06:24:42Z","git_url":"git://github.com/rmoehn/patchwork.git","ssh_url":"git@github.com:rmoehn/patchwork.git","clone_url":"https://github.com/rmoehn/patchwork.git","svn_url":"https://github.com/rmoehn/patchwork","homepage":"","size":460,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"oughtinc:master","ref":"master","sha":"ff9311d235aaa5af9025cd7abb318bffe9f1521b","user":{"login":"oughtinc","id":18450167,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NDUwMTY3","avatar_url":"https://avatars2.githubusercontent.com/u/18450167?v=4","gravatar_id":"","url":"https://api.github.com/users/oughtinc","html_url":"https://github.com/oughtinc","followers_url":"https://api.github.com/users/oughtinc/followers","following_url":"https://api.github.com/users/oughtinc/following{/other_user}","gists_url":"https://api.github.com/users/oughtinc/gists{/gist_id}","starred_url":"https://api.github.com/users/oughtinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oughtinc/subscriptions","organizations_url":"https://api.github.com/users/oughtinc/orgs","repos_url":"https://api.github.com/users/oughtinc/repos","events_url":"https://api.github.com/users/oughtinc/events{/privacy}","received_events_url":"https://api.github.com/users/oughtinc/received_events","type":"Organization","site_admin":false},"repo":{"id":131786711,"node_id":"MDEwOlJlcG9zaXRvcnkxMzE3ODY3MTE=","name":"patchwork","full_name":"oughtinc/patchwork","owner":{"login":"oughtinc","id":18450167,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NDUwMTY3","avatar_url":"https://avatars2.githubusercontent.com/u/18450167?v=4","gravatar_id":"","url":"https://api.github.com/users/oughtinc","html_url":"https://github.com/oughtinc","followers_url":"https://api.github.com/users/oughtinc/followers","following_url":"https://api.github.com/users/oughtinc/following{/other_user}","gists_url":"https://api.github.com/users/oughtinc/gists{/gist_id}","starred_url":"https://api.github.com/users/oughtinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oughtinc/subscriptions","organizations_url":"https://api.github.com/users/oughtinc/orgs","repos_url":"https://api.github.com/users/oughtinc/repos","events_url":"https://api.github.com/users/oughtinc/events{/privacy}","received_events_url":"https://api.github.com/users/oughtinc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oughtinc/patchwork","description":"HCH with immutable contexts and explicit data store","fork":false,"url":"https://api.github.com/repos/oughtinc/patchwork","forks_url":"https://api.github.com/repos/oughtinc/patchwork/forks","keys_url":"https://api.github.com/repos/oughtinc/patchwork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oughtinc/patchwork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oughtinc/patchwork/teams","hooks_url":"https://api.github.com/repos/oughtinc/patchwork/hooks","issue_events_url":"https://api.github.com/repos/oughtinc/patchwork/issues/events{/number}","events_url":"https://api.github.com/repos/oughtinc/patchwork/events","assignees_url":"https://api.github.com/repos/oughtinc/patchwork/assignees{/user}","branches_url":"https://api.github.com/repos/oughtinc/patchwork/branches{/branch}","tags_url":"https://api.github.com/repos/oughtinc/patchwork/tags","blobs_url":"https://api.github.com/repos/oughtinc/patchwork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oughtinc/patchwork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oughtinc/patchwork/git/refs{/sha}","trees_url":"https://api.github.com/repos/oughtinc/patchwork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oughtinc/patchwork/statuses/{sha}","languages_url":"https://api.github.com/repos/oughtinc/patchwork/languages","stargazers_url":"https://api.github.com/repos/oughtinc/patchwork/stargazers","contributors_url":"https://api.github.com/repos/oughtinc/patchwork/contributors","subscribers_url":"https://api.github.com/repos/oughtinc/patchwork/subscribers","subscription_url":"https://api.github.com/repos/oughtinc/patchwork/subscription","commits_url":"https://api.github.com/repos/oughtinc/patchwork/commits{/sha}","git_commits_url":"https://api.github.com/repos/oughtinc/patchwork/git/commits{/sha}","comments_url":"https://api.github.com/repos/oughtinc/patchwork/comments{/number}","issue_comment_url":"https://api.github.com/repos/oughtinc/patchwork/issues/comments{/number}","contents_url":"https://api.github.com/repos/oughtinc/patchwork/contents/{+path}","compare_url":"https://api.github.com/repos/oughtinc/patchwork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oughtinc/patchwork/merges","archive_url":"https://api.github.com/repos/oughtinc/patchwork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oughtinc/patchwork/downloads","issues_url":"https://api.github.com/repos/oughtinc/patchwork/issues{/number}","pulls_url":"https://api.github.com/repos/oughtinc/patchwork/pulls{/number}","milestones_url":"https://api.github.com/repos/oughtinc/patchwork/milestones{/number}","notifications_url":"https://api.github.com/repos/oughtinc/patchwork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oughtinc/patchwork/labels{/name}","releases_url":"https://api.github.com/repos/oughtinc/patchwork/releases{/id}","deployments_url":"https://api.github.com/repos/oughtinc/patchwork/deployments","created_at":"2018-05-02T02:20:34Z","updated_at":"2018-06-21T00:31:35Z","pushed_at":"2018-06-24T06:24:44Z","git_url":"git://github.com/oughtinc/patchwork.git","ssh_url":"git@github.com:oughtinc/patchwork.git","clone_url":"https://github.com/oughtinc/patchwork.git","svn_url":"https://github.com/oughtinc/patchwork","homepage":"","size":443,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/oughtinc/patchwork/pulls/8"},"html":{"href":"https://github.com/oughtinc/patchwork/pull/8"},"issue":{"href":"https://api.github.com/repos/oughtinc/patchwork/issues/8"},"comments":{"href":"https://api.github.com/repos/oughtinc/patchwork/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/oughtinc/patchwork/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/oughtinc/patchwork/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oughtinc/patchwork/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/oughtinc/patchwork/statuses/b93ccac779a2b475ac2b83df383e592242893f86"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"rmoehn"}}