{
  "profile": "rbx.participant-authoring.1",
  "types": [
    {
      "id": "urn:example:redbook:measurement:Measurement",
      "key": "Measurement",
      "primitive": "element",
      "level": "type",
      "parent": null,
      "area": "Portable participant authoring acceptance",
      "label": "Measurement",
      "description": "Custom acceptance vocabulary; not a supplied core type.",
      "fields": {
        "measurementContext": {
          "kind": "reference",
          "description": "Acceptance fixture field.",
          "required": true
        },
        "value": {
          "kind": "decimal",
          "description": "Acceptance fixture field.",
          "required": true
        },
        "note": {
          "kind": "string",
          "description": "Acceptance fixture field.",
          "required": false,
          "default": ""
        }
      },
      "slots": {},
      "traits": [],
      "openSlots": false
    },
    {
      "id": "urn:example:redbook:measurement:CalibratedMeasurement",
      "key": "CalibratedMeasurement",
      "primitive": "element",
      "level": "specialization",
      "parent": "urn:example:redbook:measurement:Measurement",
      "area": "Portable participant authoring acceptance",
      "label": "CalibratedMeasurement",
      "description": "Custom acceptance vocabulary; not a supplied core type.",
      "fields": {
        "calibration": {
          "kind": "string",
          "description": "Acceptance fixture field.",
          "required": true,
          "default": "factory"
        }
      },
      "slots": {},
      "traits": [],
      "openSlots": false
    },
    {
      "id": "urn:example:redbook:measurement:MeasuredSubject",
      "key": "MeasuredSubject",
      "primitive": "relationship",
      "level": "type",
      "parent": null,
      "area": "Portable participant authoring acceptance",
      "label": "MeasuredSubject",
      "description": "Custom acceptance vocabulary; not a supplied core type.",
      "fields": {
        "measurementContext": {
          "kind": "reference",
          "description": "Acceptance fixture field.",
          "required": true
        },
        "note": {
          "kind": "string",
          "description": "Acceptance fixture field.",
          "required": false,
          "default": ""
        }
      },
      "slots": {
        "measurement": {
          "min": 1,
          "max": 1,
          "allowedTypes": [
            "urn:example:redbook:measurement:Measurement"
          ],
          "ordered": true,
          "unique": true
        },
        "subject": {
          "min": 1,
          "max": 1,
          "allowedTypes": [
            "urn:example:redbook:measurement:Specimen"
          ],
          "ordered": true,
          "unique": true
        }
      },
      "traits": [],
      "openSlots": false
    },
    {
      "id": "urn:example:redbook:measurement:Specimen",
      "key": "Specimen",
      "primitive": "element",
      "level": "type",
      "parent": null,
      "area": "Portable participant authoring acceptance",
      "label": "Specimen",
      "description": "Custom acceptance vocabulary; not a supplied core type.",
      "fields": {
        "name": {
          "kind": "string",
          "description": "Acceptance fixture field.",
          "required": true
        }
      },
      "slots": {},
      "traits": [],
      "openSlots": false
    },
    {
      "id": "urn:example:redbook:measurement:DocumentedMeasuredSubject",
      "key": "DocumentedMeasuredSubject",
      "primitive": "relationship",
      "level": "specialization",
      "parent": "urn:example:redbook:measurement:MeasuredSubject",
      "area": "Portable participant authoring acceptance",
      "label": "Documented measured subject",
      "description": "Valid direct specialization of a custom CRT.",
      "fields": {
        "method": {
          "kind": "string",
          "description": "Current method description.",
          "required": true,
          "default": "instrument"
        }
      },
      "slots": {},
      "traits": [],
      "openSlots": false
    },
    {
      "id": "urn:example:redbook:measurement:ExperimentRun",
      "key": "ExperimentRun",
      "primitive": "element",
      "level": "type",
      "parent": null,
      "area": "Portable participant authoring acceptance",
      "label": "Experiment Run",
      "description": "Deliberately recorded custom experiment event.",
      "fields": {
        "measurementContext": {
          "kind": "reference",
          "description": "Acceptance fixture field.",
          "required": true
        },
        "value": {
          "kind": "decimal",
          "description": "Acceptance fixture field.",
          "required": true
        },
        "note": {
          "kind": "string",
          "description": "Acceptance fixture field.",
          "required": false,
          "default": ""
        }
      },
      "slots": {},
      "traits": [],
      "openSlots": false
    },
    {
      "id": "urn:example:redbook:measurement:PersonalNote",
      "key": "PersonalNote",
      "primitive": "element",
      "level": "type",
      "parent": null,
      "area": "Acceptance cases",
      "label": "PersonalNote",
      "description": "Portable public authoring acceptance definition.",
      "fields": {
        "text": {
          "kind": "string",
          "required": true,
          "description": "Authored value."
        }
      },
      "slots": {},
      "traits": [],
      "openSlots": false
    },
    {
      "id": "urn:example:redbook:measurement:LinkedNote",
      "key": "LinkedNote",
      "primitive": "element",
      "level": "type",
      "parent": null,
      "area": "Acceptance cases",
      "label": "LinkedNote",
      "description": "Portable public authoring acceptance definition.",
      "fields": {
        "text": {
          "kind": "string",
          "required": true,
          "description": "Authored value."
        }
      },
      "slots": {},
      "traits": [],
      "openSlots": false
    },
    {
      "id": "urn:example:redbook:measurement:CyclicNode",
      "key": "CyclicNode",
      "primitive": "element",
      "level": "type",
      "parent": null,
      "area": "Acceptance cases",
      "label": "CyclicNode",
      "description": "Portable public authoring acceptance definition.",
      "fields": {
        "peer": {
          "kind": "reference",
          "required": true,
          "description": "Authored value."
        }
      },
      "slots": {},
      "traits": [],
      "openSlots": false
    },
    {
      "id": "urn:example:redbook:measurement:LaboratoryReading",
      "key": "LaboratoryReading",
      "primitive": "element",
      "level": "specialization",
      "parent": "urn:redbook:type:post",
      "area": "Acceptance cases",
      "label": "LaboratoryReading",
      "description": "Portable public authoring acceptance definition.",
      "fields": {
        "temperature": {
          "kind": "decimal",
          "required": true,
          "description": "Authored value."
        },
        "note": {
          "kind": "string",
          "required": false,
          "description": "Authored value."
        }
      },
      "slots": {},
      "traits": [],
      "openSlots": false
    },
    {
      "id": "urn:example:redbook:measurement:NoteContext",
      "key": "NoteContext",
      "primitive": "relationship",
      "level": "type",
      "parent": null,
      "area": "Acceptance cases",
      "label": "NoteContext",
      "description": "Portable public authoring acceptance definition.",
      "fields": {},
      "slots": {
        "note": {
          "allowedTypes": [
            "urn:example:redbook:measurement:LinkedNote"
          ],
          "min": 1,
          "max": 1,
          "ordered": true,
          "unique": true
        },
        "context": {
          "allowedTypes": [],
          "min": 1,
          "max": 1,
          "ordered": true,
          "unique": true
        }
      },
      "traits": [],
      "openSlots": false
    }
  ],
  "actions": [
    {
      "name": "urn:example:redbook:measurement:record",
      "description": "Record or revise an explicitly scoped measurement under the selected Digital.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "contextId": {
            "type": "string"
          },
          "subjectId": {
            "type": "string"
          },
          "value": {
            "type": "object",
            "properties": {
              "$rb": {
                "const": "decimal"
              },
              "value": {
                "type": "string",
                "pattern": "^[+-]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?$"
              }
            },
            "required": [
              "$rb",
              "value"
            ],
            "additionalProperties": false
          },
          "measurementType": {
            "type": "string"
          },
          "denyByPolicy": {
            "type": "boolean"
          },
          "relationshipType": {
            "type": "string"
          }
        },
        "required": [
          "contextId",
          "subjectId",
          "value"
        ],
        "additionalProperties": false
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "measurementId": {
            "type": "string"
          },
          "relationshipId": {
            "type": "string"
          }
        },
        "required": [
          "measurementId",
          "relationshipId"
        ],
        "additionalProperties": false
      },
      "policyContextResolver": {
        "id": "urn:example:redbook:measurement:scope",
        "clauses": [
          {
            "op": "input",
            "path": [
              "contextId"
            ]
          }
        ]
      },
      "scope": {
        "contextInputPath": [
          "contextId"
        ],
        "recordContext": {
          "kind": "property",
          "property": "measurementContext"
        }
      },
      "referenceInputs": [
        [
          "subjectId"
        ]
      ],
      "rules": [
        {
          "id": "measurement",
          "typeId": "urn:example:redbook:measurement:Measurement",
          "includeSpecializations": true,
          "operations": [
            "create",
            "patch",
            "unset",
            "remove"
          ],
          "properties": [
            "value",
            "note",
            "",
            "__proto__",
            "constructor"
          ],
          "slots": [],
          "members": [
            "title",
            "categories",
            "tags"
          ],
          "editAuthority": "contributor"
        },
        {
          "id": "association",
          "typeId": "urn:example:redbook:measurement:MeasuredSubject",
          "includeSpecializations": true,
          "operations": [
            "create",
            "patch",
            "unset",
            "remove"
          ],
          "properties": [
            "note"
          ],
          "slots": [
            "measurement",
            "subject"
          ],
          "members": [
            "title",
            "categories",
            "tags"
          ],
          "editAuthority": "contributor"
        }
      ],
      "participation": {
        "basis": "policy"
      }
    },
    {
      "name": "urn:example:redbook:measurement:revise",
      "description": "Record or revise an explicitly scoped measurement under the selected Digital.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "contextId": {
            "type": "string"
          },
          "subjectId": {
            "type": "string"
          },
          "value": {
            "type": "object",
            "properties": {
              "$rb": {
                "const": "decimal"
              },
              "value": {
                "type": "string",
                "pattern": "^[+-]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?$"
              }
            },
            "required": [
              "$rb",
              "value"
            ],
            "additionalProperties": false
          },
          "measurementType": {
            "type": "string"
          },
          "denyByPolicy": {
            "type": "boolean"
          },
          "measurementId": {
            "type": "string"
          },
          "relationshipId": {
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "relationshipType": {
            "type": "string"
          }
        },
        "required": [
          "contextId",
          "subjectId",
          "value",
          "measurementId",
          "relationshipId",
          "note"
        ],
        "additionalProperties": false
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "measurementId": {
            "type": "string"
          },
          "relationshipId": {
            "type": "string"
          }
        },
        "required": [
          "measurementId",
          "relationshipId"
        ],
        "additionalProperties": false
      },
      "policyContextResolver": {
        "id": "urn:example:redbook:measurement:scope",
        "clauses": [
          {
            "op": "input",
            "path": [
              "contextId"
            ]
          }
        ]
      },
      "scope": {
        "contextInputPath": [
          "contextId"
        ],
        "recordContext": {
          "kind": "property",
          "property": "measurementContext"
        }
      },
      "referenceInputs": [
        [
          "subjectId"
        ]
      ],
      "rules": [
        {
          "id": "measurement",
          "typeId": "urn:example:redbook:measurement:Measurement",
          "includeSpecializations": true,
          "operations": [
            "create",
            "patch",
            "unset",
            "remove"
          ],
          "properties": [
            "value",
            "note",
            "",
            "__proto__",
            "constructor"
          ],
          "slots": [],
          "members": [
            "title",
            "categories",
            "tags"
          ],
          "editAuthority": "contributor"
        },
        {
          "id": "association",
          "typeId": "urn:example:redbook:measurement:MeasuredSubject",
          "includeSpecializations": true,
          "operations": [
            "create",
            "patch",
            "unset",
            "remove"
          ],
          "properties": [
            "note"
          ],
          "slots": [
            "measurement",
            "subject"
          ],
          "members": [
            "title",
            "categories",
            "tags"
          ],
          "editAuthority": "contributor"
        }
      ],
      "participation": {
        "basis": "policy"
      }
    },
    {
      "name": "urn:example:redbook:measurement:exercise",
      "description": "Acceptance-only adversarial boundary probes.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "contextId": {
            "type": "string"
          },
          "subjectId": {
            "type": "string"
          },
          "value": {
            "type": "object",
            "properties": {
              "$rb": {
                "const": "decimal"
              },
              "value": {
                "type": "string",
                "pattern": "^[+-]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?$"
              }
            },
            "required": [
              "$rb",
              "value"
            ],
            "additionalProperties": false
          },
          "measurementType": {
            "type": "string"
          },
          "denyByPolicy": {
            "type": "boolean"
          },
          "case": {
            "type": "string"
          },
          "measurementId": {
            "type": "string"
          },
          "relationshipId": {
            "type": "string"
          },
          "targetId": {
            "type": "string"
          },
          "otherContextId": {
            "type": "string"
          },
          "relationshipType": {
            "type": "string"
          },
          "stageEvent": {
            "type": "boolean"
          }
        },
        "required": [
          "contextId",
          "subjectId",
          "value",
          "case"
        ],
        "additionalProperties": false
      },
      "outputSchema": {
        "type": "object"
      },
      "policyContextResolver": {
        "id": "urn:example:redbook:measurement:scope",
        "clauses": [
          {
            "op": "input",
            "path": [
              "contextId"
            ]
          }
        ]
      },
      "scope": {
        "contextInputPath": [
          "contextId"
        ],
        "recordContext": {
          "kind": "property",
          "property": "measurementContext"
        }
      },
      "referenceInputs": [
        [
          "subjectId"
        ]
      ],
      "rules": [
        {
          "id": "measurement",
          "typeId": "urn:example:redbook:measurement:Measurement",
          "includeSpecializations": true,
          "operations": [
            "create",
            "patch",
            "unset",
            "remove"
          ],
          "properties": [
            "value",
            "note",
            "",
            "__proto__",
            "constructor"
          ],
          "slots": [],
          "members": [
            "title",
            "categories",
            "tags"
          ],
          "editAuthority": "contributor"
        },
        {
          "id": "association",
          "typeId": "urn:example:redbook:measurement:MeasuredSubject",
          "includeSpecializations": true,
          "operations": [
            "create",
            "patch",
            "unset",
            "remove"
          ],
          "properties": [
            "note"
          ],
          "slots": [
            "measurement",
            "subject"
          ],
          "members": [
            "title",
            "categories",
            "tags"
          ],
          "editAuthority": "contributor"
        },
        {
          "id": "restricted-association",
          "typeId": "urn:example:redbook:measurement:MeasuredSubject",
          "includeSpecializations": false,
          "operations": [
            "create",
            "patch",
            "unset",
            "remove"
          ],
          "properties": [
            "note"
          ],
          "slots": [
            "subject"
          ],
          "members": [
            "title",
            "categories",
            "tags"
          ],
          "editAuthority": "contributor"
        },
        {
          "id": "root-only",
          "typeId": "urn:example:redbook:measurement:Measurement",
          "includeSpecializations": false,
          "operations": [
            "create",
            "patch",
            "unset",
            "remove"
          ],
          "properties": [
            "value",
            "note",
            "",
            "__proto__",
            "constructor"
          ],
          "slots": [],
          "members": [
            "title",
            "categories",
            "tags"
          ],
          "editAuthority": "contributor"
        }
      ],
      "participation": {
        "basis": "policy"
      }
    },
    {
      "name": "urn:example:redbook:measurement:record-event",
      "description": "Explicitly record one experiment event.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "contextId": {
            "type": "string"
          },
          "subjectId": {
            "type": "string"
          },
          "value": {
            "type": "object",
            "properties": {
              "$rb": {
                "const": "decimal"
              },
              "value": {
                "type": "string",
                "pattern": "^[+-]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?$"
              }
            },
            "required": [
              "$rb",
              "value"
            ],
            "additionalProperties": false
          },
          "measurementType": {
            "type": "string"
          },
          "denyByPolicy": {
            "type": "boolean"
          },
          "relationshipType": {
            "type": "string"
          }
        },
        "required": [
          "contextId",
          "subjectId",
          "value"
        ],
        "additionalProperties": false
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "eventId": {
            "type": "string"
          }
        },
        "required": [
          "eventId"
        ],
        "additionalProperties": false
      },
      "policyContextResolver": {
        "id": "urn:example:redbook:measurement:scope",
        "clauses": [
          {
            "op": "input",
            "path": [
              "contextId"
            ]
          }
        ]
      },
      "scope": {
        "contextInputPath": [
          "contextId"
        ],
        "recordContext": {
          "kind": "property",
          "property": "measurementContext"
        }
      },
      "referenceInputs": [
        [
          "subjectId"
        ]
      ],
      "rules": [
        {
          "id": "event",
          "typeId": "urn:example:redbook:measurement:ExperimentRun",
          "includeSpecializations": false,
          "operations": [
            "recordEvent",
            "patch"
          ],
          "properties": [
            "value",
            "note",
            "",
            "__proto__",
            "constructor"
          ],
          "slots": [],
          "members": [
            "title",
            "categories",
            "tags"
          ],
          "editAuthority": "contributor"
        }
      ],
      "participation": {
        "basis": "policy"
      }
    },
    {
      "name": "urn:example:redbook:measurement:personal-note",
      "description": "Public personal-note acceptance path.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "contextId": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "contextId",
          "text"
        ],
        "additionalProperties": false
      },
      "outputSchema": {
        "type": "object"
      },
      "policyContextResolver": {
        "id": "urn:example:redbook:measurement:scope-personal-note",
        "clauses": [
          {
            "op": "input",
            "path": [
              "contextId"
            ]
          }
        ]
      },
      "scope": {
        "contextInputPath": [
          "contextId"
        ],
        "recordContext": {
          "kind": "creator"
        }
      },
      "participation": {
        "basis": "owner"
      },
      "referenceInputs": [],
      "rules": [
        {
          "id": "note",
          "typeId": "urn:example:redbook:measurement:PersonalNote",
          "includeSpecializations": false,
          "operations": [
            "create",
            "patch",
            "unset",
            "remove"
          ],
          "properties": [
            "text"
          ],
          "slots": [],
          "members": [],
          "editAuthority": "contributor"
        }
      ]
    },
    {
      "name": "urn:example:redbook:measurement:linked-note",
      "description": "Public linked-note acceptance path.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "contextId": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "targetId": {
            "type": "string"
          },
          "skipBinding": {
            "type": "boolean"
          }
        },
        "required": [
          "contextId",
          "text"
        ],
        "additionalProperties": false
      },
      "outputSchema": {
        "type": "object"
      },
      "policyContextResolver": {
        "id": "urn:example:redbook:measurement:scope-linked-note",
        "clauses": [
          {
            "op": "input",
            "path": [
              "contextId"
            ]
          }
        ]
      },
      "scope": {
        "contextInputPath": [
          "contextId"
        ],
        "recordContext": {
          "kind": "relationship",
          "typeId": "urn:example:redbook:measurement:NoteContext",
          "recordSlot": "note",
          "contextSlot": "context"
        }
      },
      "participation": {
        "basis": "policy"
      },
      "referenceInputs": [],
      "rules": [
        {
          "id": "note",
          "typeId": "urn:example:redbook:measurement:LinkedNote",
          "includeSpecializations": false,
          "operations": [
            "create",
            "patch",
            "unset",
            "remove"
          ],
          "properties": [
            "text"
          ],
          "slots": [],
          "members": [],
          "editAuthority": "contributor"
        },
        {
          "id": "binding",
          "typeId": "urn:example:redbook:measurement:NoteContext",
          "includeSpecializations": false,
          "operations": [
            "create",
            "patch",
            "unset",
            "remove"
          ],
          "properties": [],
          "slots": [
            "note",
            "context"
          ],
          "members": [],
          "editAuthority": "contributor"
        }
      ]
    },
    {
      "name": "urn:example:redbook:measurement:cyclic-pair",
      "description": "Public cyclic-pair acceptance path.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "contextId": {
            "type": "string"
          },
          "failure": {
            "enum": [
              "unused",
              "unreserved",
              "duplicate",
              "read-incomplete",
              "perform-incomplete"
            ]
          }
        },
        "required": [
          "contextId"
        ],
        "additionalProperties": false
      },
      "outputSchema": {
        "type": "object"
      },
      "policyContextResolver": {
        "id": "urn:example:redbook:measurement:scope-cyclic-pair",
        "clauses": [
          {
            "op": "input",
            "path": [
              "contextId"
            ]
          }
        ]
      },
      "scope": {
        "contextInputPath": [
          "contextId"
        ],
        "recordContext": {
          "kind": "creator"
        }
      },
      "participation": {
        "basis": "owner"
      },
      "referenceInputs": [],
      "rules": [
        {
          "id": "node",
          "typeId": "urn:example:redbook:measurement:CyclicNode",
          "includeSpecializations": false,
          "operations": [
            "create",
            "patch",
            "unset",
            "remove"
          ],
          "properties": [
            "peer"
          ],
          "slots": [],
          "members": [],
          "editAuthority": "contributor"
        }
      ]
    },
    {
      "name": "urn:example:redbook:measurement:laboratory-reading",
      "description": "Public laboratory-reading acceptance path.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "contextId": {
            "type": "string"
          },
          "temperature": {
            "type": "object",
            "properties": {
              "$rb": {
                "const": "decimal"
              },
              "value": {
                "type": "string"
              }
            },
            "required": [
              "$rb",
              "value"
            ],
            "additionalProperties": false
          },
          "id": {
            "type": "string"
          },
          "failure": {
            "enum": [
              "core-write",
              "primitive-create",
              "missing-required",
              "edit-withdrawn",
              "bad-temperature",
              "core-input"
            ]
          }
        },
        "required": [
          "contextId",
          "temperature"
        ],
        "additionalProperties": false
      },
      "outputSchema": {
        "type": "object"
      },
      "policyContextResolver": {
        "id": "urn:example:redbook:measurement:scope-laboratory-reading",
        "clauses": [
          {
            "op": "input",
            "path": [
              "contextId"
            ]
          }
        ]
      },
      "scope": {
        "contextInputPath": [
          "contextId"
        ],
        "recordContext": {
          "kind": "creator"
        }
      },
      "participation": {
        "basis": "owner"
      },
      "referenceInputs": [],
      "rules": [
        {
          "id": "reading",
          "typeId": "urn:example:redbook:measurement:LaboratoryReading",
          "includeSpecializations": false,
          "operations": [
            "patch",
            "unset"
          ],
          "properties": [
            "temperature",
            "note"
          ],
          "slots": [],
          "members": [],
          "editAuthority": "contributor"
        }
      ]
    },
    {
      "name": "urn:example:redbook:measurement:member-note",
      "description": "Public member-note acceptance path.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "contextId": {
            "type": "string"
          },
          "value": {
            "type": "object",
            "properties": {
              "$rb": {
                "const": "decimal"
              },
              "value": {
                "type": "string"
              }
            },
            "required": [
              "$rb",
              "value"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "contextId",
          "value"
        ],
        "additionalProperties": false
      },
      "outputSchema": {
        "type": "object"
      },
      "policyContextResolver": {
        "id": "urn:example:redbook:measurement:scope-member-note",
        "clauses": [
          {
            "op": "input",
            "path": [
              "contextId"
            ]
          }
        ]
      },
      "scope": {
        "contextInputPath": [
          "contextId"
        ],
        "recordContext": {
          "kind": "property",
          "property": "measurementContext"
        }
      },
      "participation": {
        "basis": "active-members"
      },
      "referenceInputs": [],
      "rules": [
        {
          "id": "measurement",
          "typeId": "urn:example:redbook:measurement:Measurement",
          "includeSpecializations": false,
          "operations": [
            "create",
            "patch",
            "unset",
            "remove"
          ],
          "properties": [
            "value",
            "note"
          ],
          "slots": [],
          "members": [],
          "editAuthority": "contributor"
        }
      ]
    },
    {
      "name": "urn:example:redbook:measurement:revise-event",
      "description": "Revise current custom event content while preserving its original observation.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "contextId": {
            "type": "string"
          },
          "subjectId": {
            "type": "string"
          },
          "value": {
            "type": "object",
            "properties": {
              "$rb": {
                "const": "decimal"
              },
              "value": {
                "type": "string",
                "pattern": "^[+-]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?$"
              }
            },
            "required": [
              "$rb",
              "value"
            ],
            "additionalProperties": false
          },
          "measurementType": {
            "type": "string"
          },
          "denyByPolicy": {
            "type": "boolean"
          },
          "relationshipType": {
            "type": "string"
          },
          "eventId": {
            "type": "string"
          }
        },
        "required": [
          "contextId",
          "subjectId",
          "value",
          "eventId"
        ],
        "additionalProperties": false
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "eventId": {
            "type": "string"
          }
        },
        "required": [
          "eventId"
        ],
        "additionalProperties": false
      },
      "policyContextResolver": {
        "id": "urn:example:redbook:measurement:scope",
        "clauses": [
          {
            "op": "input",
            "path": [
              "contextId"
            ]
          }
        ]
      },
      "scope": {
        "contextInputPath": [
          "contextId"
        ],
        "recordContext": {
          "kind": "property",
          "property": "measurementContext"
        }
      },
      "referenceInputs": [
        [
          "subjectId"
        ]
      ],
      "rules": [
        {
          "id": "event",
          "typeId": "urn:example:redbook:measurement:ExperimentRun",
          "includeSpecializations": false,
          "operations": [
            "patch"
          ],
          "properties": [
            "value",
            "note",
            "",
            "__proto__",
            "constructor"
          ],
          "slots": [],
          "members": [
            "title",
            "categories",
            "tags"
          ],
          "editAuthority": "contributor"
        }
      ],
      "participation": {
        "basis": "policy"
      }
    }
  ]
}
