← Files Flows by plugin.spaceARCHIVED FILE

flows.schema.json

32.8 KB · Nov 30, 2026 · 00:17 UTC

↓ Download file

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Flows document",
  "description": "Version 1 user-flow document. Runtime validation also checks unique IDs, graph references and image paths.",
  "type": "object",
  "required": [
    "version",
    "id",
    "name",
    "startNode",
    "nodes",
    "edges"
  ],
  "properties": {
    "version": {
      "const": 1
    },
    "id": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]{1,100}$"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "description": {
      "type": "string",
      "maxLength": 8000
    },
    "startNode": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]{1,100}$"
    },
    "nodes": {
      "type": "array",
      "minItems": 1,
      "maxItems": 500,
      "items": {
        "type": "object",
        "required": [
          "id",
          "type",
          "title",
          "position",
          "source"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9_-]{1,100}$"
          },
          "type": {
            "enum": [
              "screen",
              "action",
              "decision",
              "state"
            ]
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "description": {
            "type": "string",
            "maxLength": 8000
          },
          "actor": {
            "type": "string",
            "maxLength": 100
          },
          "position": {
            "type": "object",
            "required": [
              "x",
              "y"
            ],
            "properties": {
              "x": {
                "type": "number",
                "minimum": -100000,
                "maximum": 100000
              },
              "y": {
                "type": "number",
                "minimum": -100000,
                "maximum": 100000
              }
            }
          },
          "source": {
            "type": "object",
            "required": [
              "kind"
            ],
            "properties": {
              "kind": {
                "enum": [
                  "proposed",
                  "inferred",
                  "observed"
                ]
              },
              "reference": {
                "type": "string",
                "maxLength": 8000
              }
            }
          },
          "screenshot": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "description": "Relative image path within the document directory; no URLs, parent traversal, or escaping symlinks."
          },
          "preview": {
            "type": "object",
            "properties": {
              "brand": {
                "type": "string",
                "maxLength": 1000
              },
              "eyebrow": {
                "type": "string",
                "maxLength": 1000
              },
              "title": {
                "type": "string",
                "maxLength": 1000
              },
              "description": {
                "type": "string",
                "maxLength": 1000
              },
              "actionLabel": {
                "type": "string",
                "maxLength": 1000
              },
              "variant": {
                "enum": [
                  "default",
                  "commerce",
                  "success"
                ]
              },
              "fields": {
                "type": "array",
                "maxItems": 20,
                "items": {
                  "type": "object",
                  "required": [
                    "label",
                    "value"
                  ],
                  "properties": {
                    "label": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "value": {
                      "type": "string",
                      "maxLength": 500
                    }
                  }
                }
              },
              "items": {
                "type": "array",
                "maxItems": 20,
                "items": {
                  "type": "object",
                  "required": [
                    "label",
                    "value"
                  ],
                  "properties": {
                    "label": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "value": {
                      "type": "string",
                      "maxLength": 500
                    }
                  }
                }
              }
            }
          },
          "screenshots": {
            "type": "object",
            "maxProperties": 32,
            "propertyNames": {
              "type": "string",
              "pattern": "^[a-zA-Z0-9_-]{1,100}$"
            },
            "additionalProperties": {
              "type": "object",
              "required": [
                "path",
                "width",
                "height",
                "viewport",
                "capturedAt",
                "method"
              ],
              "properties": {
                "path": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                },
                "width": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 30000
                },
                "height": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 30000
                },
                "viewport": {
                  "type": "object",
                  "required": [
                    "width",
                    "height"
                  ],
                  "properties": {
                    "width": {
                      "type": "integer",
                      "minimum": 240,
                      "maximum": 3840
                    },
                    "height": {
                      "type": "integer",
                      "minimum": 240,
                      "maximum": 3840
                    }
                  }
                },
                "capturedAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "method": {
                  "enum": [
                    "playwright",
                    "browser",
                    "import"
                  ]
                },
                "url": {
                  "type": "string",
                  "maxLength": 2000,
                  "pattern": "^https?://"
                }
              }
            }
          },
          "test": {
            "type": "object",
            "description": "Evidence-based browser test instructions collected while mapping. Use test data only.",
            "properties": {
              "action": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000,
                "pattern": "\\S"
              },
              "assertion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000,
                "pattern": "\\S"
              },
              "userRoleIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/qualityId"
                },
                "uniqueItems": true,
                "minItems": 1,
                "description": "Explicit test participants drawn from the flow userRoleIds. A route uses the intersection of its node and edge restrictions; omit to inherit the assigned flow roles."
              }
            }
          },
          "evaluations": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/mappedEvaluation"
            },
            "description": "Mapped qualitative questions and expectations. Output-quality is an explicit request for human expert review, never inferred from a technical actor."
          }
        }
      }
    },
    "edges": {
      "type": "array",
      "maxItems": 2000,
      "items": {
        "type": "object",
        "required": [
          "id",
          "source",
          "target",
          "label"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9_-]{1,100}$"
          },
          "source": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9_-]{1,100}$"
          },
          "target": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9_-]{1,100}$"
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "condition": {
            "type": "string",
            "maxLength": 1000
          },
          "parallel": {
            "type": "boolean",
            "description": "True only for work that actually runs alongside the selected continuation, such as a background task. Ordinary exits are mutually exclusive alternatives."
          },
          "test": {
            "type": "object",
            "description": "Evidence-based browser action for this transition.",
            "properties": {
              "action": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000,
                "pattern": "\\S"
              },
              "userRoleIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/qualityId"
                },
                "uniqueItems": true,
                "minItems": 1,
                "description": "Explicit test participants drawn from the flow userRoleIds. A route uses the intersection of its node and edge restrictions; omit to inherit the assigned flow roles."
              }
            }
          }
        }
      }
    },
    "captureSettings": {
      "type": "object",
      "required": [
        "profiles",
        "fullPage",
        "colorScheme"
      ],
      "properties": {
        "profiles": {
          "type": "array",
          "minItems": 1,
          "maxItems": 16,
          "items": {
            "type": "object",
            "required": [
              "id",
              "name",
              "width",
              "height",
              "enabled",
              "isMobile",
              "hasTouch"
            ],
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^[a-zA-Z0-9_-]{1,100}$"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 60
              },
              "width": {
                "type": "integer",
                "minimum": 240,
                "maximum": 3840
              },
              "height": {
                "type": "integer",
                "minimum": 240,
                "maximum": 3840
              },
              "enabled": {
                "type": "boolean"
              },
              "isMobile": {
                "type": "boolean"
              },
              "hasTouch": {
                "type": "boolean"
              }
            }
          }
        },
        "fullPage": {
          "type": "boolean"
        },
        "colorScheme": {
          "enum": [
            "light",
            "dark"
          ]
        }
      }
    },
    "application": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9_-]{1,100}$"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "icon": {
          "type": "string",
          "maxLength": 90000,
          "pattern": "^data:image/(png|jpeg|webp|gif|x-icon|vnd.microsoft.icon|svg\\+xml);base64,[A-Za-z0-9+/]+={0,2}$",
          "description": "Optional safe inline project favicon, at most 64 KB. SVG must not contain scripts or external references."
        }
      }
    },
    "testScenarios": {
      "type": "object",
      "required": [
        "version",
        "source",
        "cases",
        "warnings",
        "coverage"
      ],
      "properties": {
        "version": {
          "const": 1
        },
        "source": {
          "const": "flow-map"
        },
        "cases": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "id",
              "name",
              "status",
              "nodeIds",
              "edgeIds",
              "preconditions",
              "warnings",
              "steps"
            ],
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^[a-zA-Z0-9_-]{1,100}$"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "pattern": "\\S"
              },
              "status": {
                "const": "draft"
              },
              "nodeIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-zA-Z0-9_-]{1,100}$"
                }
              },
              "edgeIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-zA-Z0-9_-]{1,100}$"
                }
              },
              "preconditions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000,
                  "pattern": "\\S"
                }
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000,
                  "pattern": "\\S"
                }
              },
              "steps": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "kind",
                    "prompt",
                    "source"
                  ],
                  "properties": {
                    "kind": {
                      "enum": [
                        "action",
                        "assertion"
                      ]
                    },
                    "prompt": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 1000,
                      "pattern": "\\S"
                    },
                    "nodeId": {
                      "type": "string",
                      "pattern": "^[a-zA-Z0-9_-]{1,100}$"
                    },
                    "edgeId": {
                      "type": "string",
                      "pattern": "^[a-zA-Z0-9_-]{1,100}$"
                    },
                    "source": {
                      "enum": [
                        "mapped",
                        "derived"
                      ]
                    }
                  }
                }
              },
              "termination": {
                "enum": [
                  "terminal",
                  "cycle",
                  "depth-limit"
                ]
              },
              "userRoleIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/qualityId"
                },
                "uniqueItems": true,
                "description": "Assigned flow roles narrowed by explicit route restrictions. Empty means unclassified; this is not a permission certification."
              }
            }
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "pattern": "\\S"
          }
        },
        "coverage": {
          "type": "object",
          "required": [
            "coveredEdgeIds",
            "uncoveredEdgeIds",
            "unreachableNodeIds",
            "truncated"
          ],
          "properties": {
            "coveredEdgeIds": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[a-zA-Z0-9_-]{1,100}$"
              }
            },
            "uncoveredEdgeIds": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[a-zA-Z0-9_-]{1,100}$"
              }
            },
            "unreachableNodeIds": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[a-zA-Z0-9_-]{1,100}$"
              }
            },
            "truncated": {
              "type": "boolean"
            }
          }
        },
        "quality": {
          "$ref": "#/$defs/qualitySuggestions"
        },
        "userRoles": {
          "$ref": "#/$defs/generatedUserRoles"
        }
      },
      "description": "Deterministic draft scenarios generated from the mapped graph. Regenerated on save; these are not execution results."
    },
    "userStories": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/mappedUserStory"
      },
      "description": "Mapped actor, goal and benefit with graph references. Provided means a supplied requirement, not a validated user need; inferred means a hypothesis for review."
    },
    "roleAudit": {
      "type": "object",
      "description": "Evidence-backed inventory of product user roles. Assign this flow separately with userRoleIds; role definitions do not grant Flows account access.",
      "required": [
        "version",
        "roles",
        "warnings"
      ],
      "properties": {
        "version": {
          "const": 1
        },
        "roles": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "id",
              "name",
              "source",
              "permissions"
            ],
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^[a-zA-Z0-9_-]{1,100}$"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "\\S"
              },
              "description": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000,
                "pattern": "\\S"
              },
              "source": {
                "type": "object",
                "required": [
                  "kind",
                  "reference"
                ],
                "properties": {
                  "kind": {
                    "enum": [
                      "provided",
                      "inferred",
                      "observed",
                      "proposed"
                    ]
                  },
                  "reference": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000,
                    "pattern": "\\S"
                  }
                }
              },
              "permissions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "access",
                    "source"
                  ],
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 1000,
                      "pattern": "\\S"
                    },
                    "access": {
                      "enum": [
                        "allowed",
                        "denied",
                        "conditional"
                      ]
                    },
                    "condition": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 1000,
                      "pattern": "\\S"
                    },
                    "source": {
                      "type": "object",
                      "required": [
                        "kind",
                        "reference"
                      ],
                      "properties": {
                        "kind": {
                          "enum": [
                            "provided",
                            "inferred",
                            "observed",
                            "proposed"
                          ]
                        },
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1000,
                          "pattern": "\\S"
                        }
                      }
                    },
                    "nodeIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-zA-Z0-9_-]{1,100}$"
                      },
                      "uniqueItems": true
                    },
                    "edgeIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-zA-Z0-9_-]{1,100}$"
                      },
                      "uniqueItems": true
                    }
                  },
                  "allOf": [
                    {
                      "if": {
                        "properties": {
                          "access": {
                            "const": "conditional"
                          }
                        }
                      },
                      "then": {
                        "required": [
                          "condition"
                        ]
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "pattern": "\\S"
          }
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {
              "roles": {
                "maxItems": 0
              }
            }
          },
          "then": {
            "properties": {
              "warnings": {
                "minItems": 1
              }
            }
          }
        }
      ]
    },
    "userRoleIds": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[a-zA-Z0-9_-]{1,100}$"
      },
      "uniqueItems": true,
      "description": "Roles participating in this flow, referencing roleAudit.roles. Empty means unclassified."
    }
  },
  "$defs": {
    "qualityId": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]{1,100}$"
    },
    "qualityText": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000,
      "pattern": "\\S"
    },
    "qualityFocus": {
      "enum": [
        "comprehension",
        "decision",
        "recovery",
        "feedback",
        "effort",
        "output-quality"
      ]
    },
    "qualitySource": {
      "type": "object",
      "required": [
        "kind"
      ],
      "properties": {
        "kind": {
          "enum": [
            "provided",
            "inferred"
          ]
        },
        "reference": {
          "$ref": "#/$defs/qualityText"
        }
      }
    },
    "mappedUserStory": {
      "type": "object",
      "required": [
        "id",
        "actor",
        "goal",
        "benefit",
        "nodeIds",
        "source"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/qualityId"
        },
        "actor": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100,
          "pattern": "\\S"
        },
        "goal": {
          "$ref": "#/$defs/qualityText"
        },
        "benefit": {
          "$ref": "#/$defs/qualityText"
        },
        "context": {
          "$ref": "#/$defs/qualityText"
        },
        "nodeIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/qualityId"
          },
          "minItems": 1
        },
        "edgeIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/qualityId"
          }
        },
        "acceptanceCriteria": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/qualityText"
          }
        },
        "source": {
          "$ref": "#/$defs/qualitySource"
        }
      }
    },
    "mappedEvaluation": {
      "type": "object",
      "required": [
        "id",
        "focus",
        "expectation",
        "source"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/qualityId"
        },
        "focus": {
          "$ref": "#/$defs/qualityFocus"
        },
        "expectation": {
          "$ref": "#/$defs/qualityText"
        },
        "task": {
          "$ref": "#/$defs/qualityText"
        },
        "rationale": {
          "$ref": "#/$defs/qualityText"
        },
        "source": {
          "$ref": "#/$defs/qualitySource"
        }
      }
    },
    "qualityUseCase": {
      "type": "object",
      "required": [
        "id",
        "title",
        "source",
        "story",
        "nodeIds",
        "edgeIds",
        "scenarioIds",
        "acceptanceCriteria",
        "questions"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/qualityId"
        },
        "title": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1200,
          "pattern": "\\S"
        },
        "source": {
          "enum": [
            "provided",
            "inferred"
          ]
        },
        "sourceReference": {
          "$ref": "#/$defs/qualityGeneratedText"
        },
        "nodeIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/qualityId"
          }
        },
        "edgeIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/qualityId"
          }
        },
        "scenarioIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/qualityId"
          }
        },
        "questions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/qualityGeneratedText"
          }
        },
        "story": {
          "type": "object",
          "required": [
            "actor",
            "goal",
            "benefit"
          ],
          "properties": {
            "actor": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "\\S"
            },
            "goal": {
              "$ref": "#/$defs/qualityGeneratedText"
            },
            "benefit": {
              "$ref": "#/$defs/qualityGeneratedText"
            },
            "context": {
              "$ref": "#/$defs/qualityGeneratedText"
            }
          }
        },
        "acceptanceCriteria": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/qualityGeneratedText"
          }
        },
        "userRoleIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/qualityId"
          },
          "uniqueItems": true,
          "description": "Union of explicit roles from the linked generated scenarios."
        }
      }
    },
    "qualityEvaluation": {
      "type": "object",
      "required": [
        "id",
        "title",
        "focus",
        "status",
        "source",
        "nodeIds",
        "edgeIds",
        "scenarioIds",
        "useCaseIds",
        "rationale",
        "task",
        "expectation",
        "method",
        "criteria",
        "evidenceToCollect",
        "questions"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/qualityId"
        },
        "title": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1200,
          "pattern": "\\S"
        },
        "source": {
          "enum": [
            "provided",
            "inferred"
          ]
        },
        "sourceReference": {
          "$ref": "#/$defs/qualityGeneratedText"
        },
        "nodeIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/qualityId"
          }
        },
        "edgeIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/qualityId"
          }
        },
        "scenarioIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/qualityId"
          }
        },
        "questions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/qualityGeneratedText"
          }
        },
        "focus": {
          "$ref": "#/$defs/qualityFocus"
        },
        "status": {
          "const": "draft"
        },
        "useCaseIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/qualityId"
          }
        },
        "rationale": {
          "$ref": "#/$defs/qualityGeneratedText"
        },
        "task": {
          "$ref": "#/$defs/qualityGeneratedText"
        },
        "expectation": {
          "$ref": "#/$defs/qualityGeneratedText"
        },
        "method": {
          "enum": [
            "usability-session",
            "expert-review"
          ]
        },
        "criteria": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "id",
              "question",
              "meetsExpectation",
              "needsWork"
            ],
            "properties": {
              "id": {
                "$ref": "#/$defs/qualityId"
              },
              "question": {
                "$ref": "#/$defs/qualityGeneratedText"
              },
              "meetsExpectation": {
                "$ref": "#/$defs/qualityGeneratedText"
              },
              "needsWork": {
                "$ref": "#/$defs/qualityGeneratedText"
              }
            }
          }
        },
        "evidenceToCollect": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/qualityGeneratedText"
          }
        },
        "userRoleIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/qualityId"
          },
          "uniqueItems": true,
          "description": "Union of explicit roles from the linked generated scenarios."
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {
              "focus": {
                "const": "output-quality"
              }
            },
            "required": [
              "focus"
            ]
          },
          "then": {
            "properties": {
              "method": {
                "const": "expert-review"
              }
            }
          }
        }
      ]
    },
    "qualitySuggestions": {
      "type": "object",
      "required": [
        "version",
        "status",
        "useCases",
        "evaluations",
        "warnings"
      ],
      "properties": {
        "version": {
          "const": 1
        },
        "status": {
          "const": "draft"
        },
        "useCases": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/qualityUseCase"
          }
        },
        "evaluations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/qualityEvaluation"
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/qualityGeneratedText"
          }
        },
        "userRoles": {
          "$ref": "#/$defs/generatedUserRoles"
        }
      },
      "description": "Draft study suggestions and rubric anchors derived from the mapped source. These are not observations, ratings or evaluation results."
    },
    "qualityGeneratedText": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4000,
      "pattern": "\\S"
    },
    "generatedUserRoles": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "$ref": "#/$defs/qualityId"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "\\S"
          }
        }
      }
    }
  },
  "dependentRequired": {
    "roleAudit": [
      "userRoleIds"
    ],
    "userRoleIds": [
      "roleAudit"
    ]
  }
}

SHA-256: d42c465ce4b938284b6c6ac93c27326997a912741158da3e7635cb554d3273ee