{
  "spec": "LRFS v1.0",
  "spec_section": "LRFS v1.0 §3.1",
  "category": "failure-modes",
  "id": "002-malformed-xmp",
  "description": "XMP packet is syntactically invalid XML — truncated before the closing RDF element. Conformant readers MUST surface a structured parse error, not crash or silently return partial data.",
  "inputs": {
    "xmp_packet_utf8": "<?xpacket begin=\"\ufeff\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"LRFS 1.0\">\n  <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n    <rdf:Description rdf:about=\"\" xmlns:llmind=\"https://llmind.org/ns/1.0/\">\n      <llmind:text>hello"
  },
  "expected_outcome": "parse_error",
  "reason": "The XMP packet is truncated mid-element; no closing `</llmind:text>`, no `</rdf:Description>`, no `</rdf:RDF>`, no `<?xpacket end=\"w\"?>`. A conformant reader must surface this as a structured parse error and must not attempt to return the partial `llmind:text` layer as a valid result."
}
