{
  "schema": "vedokrok.public-item.v1",
  "release_id": "MHC-RPUB-20260920-75ad787a",
  "url": "/knowledge/validate-the-output-s-meaning-after-its-shape-passes",
  "id": "MHC-D-RESEARCH-0997",
  "version": "0.1.0",
  "title": "Validate the output's meaning after its shape passes",
  "summary": "A perfectly shaped address can still point to the wrong place.",
  "kind": "pattern",
  "body": "Use structural validation to reject missing fields, invalid types and unexpected properties. Then apply separate checks for identity, permissions, ranges and evidence. A schema verifies the constraints it encodes; it does not automatically verify external facts or the user's intent.",
  "limits": [
    "Some schemas encode substantial business constraints. State exactly which checks ran rather than assuming either that schemas check everything or that they check nothing useful."
  ],
  "topics": [
    "work-03-ai-assurance"
  ],
  "intents": [],
  "source_ids": [
    "RS-0AF99DEAF0CC8607"
  ],
  "evidence": [
    {
      "claim": "JSON Schema can constrain required properties, value types and additional fields in an output object.",
      "source_id": "RS-0AF99DEAF0CC8607",
      "role": "supports",
      "note": "An external fact or business rule is not validated merely because the object satisfies structural constraints that do not encode it.",
      "locator": "Properties; Required Properties; Additional Properties"
    }
  ],
  "use_when": [
    "An AI response is valid JSON and therefore being treated as safe to execute."
  ],
  "avoid_when": [
    "Some schemas encode substantial business constraints. State exactly which checks ran rather than assuming either that schemas check everything or that they check nothing useful."
  ],
  "example": "A recipient field contains a valid string, but the named recipient is outside the approved audience. Parsing success must not authorize sending.",
  "check": "Tests include well-formed but semantically wrong outputs, not only malformed JSON.",
  "recognition": "A perfectly shaped address can still point to the wrong place.",
  "sources": [
    {
      "id": "RS-0AF99DEAF0CC8607",
      "title": "Understanding JSON Schema: object",
      "url": "https://json-schema.org/understanding-json-schema/reference/object"
    }
  ],
  "relations": [
    {
      "from": "MHC-D-RESEARCH-0997",
      "to": "MHC-D-RESEARCH-0998",
      "type": "use_before",
      "url": "/knowledge/approve-the-exact-action-that-will-actually-run"
    }
  ],
  "collections": [
    {
      "id": "RC-620AACFCDEA000D1",
      "title": "Make AI-assisted work earn your trust",
      "url": "/collections/make-ai-assisted-work-earn-your-trust"
    }
  ]
}
