{
  "$schema":"https://json-schema.org/draft/2020-12/schema",
  "title":"Agent Friendly website feedback",
  "type":"object",
  "required":["domain","kind","message"],
  "properties":{
    "domain":{"type":"string","description":"Verified domain receiving the feedback"},
    "kind":{"enum":["human","agent"],"description":"Self-reported source, not a verified identity"},
    "agent_name":{"type":"string","minLength":1,"maxLength":80},
    "topic":{"enum":["Clarity","Navigation","Product information","Accessibility","Checkout","Other"],"default":"Other"},
    "message":{"type":"string","minLength":1,"maxLength":3000,"description":"One concrete observation; omit private customer information"},
    "page_url":{"type":"string","format":"uri","pattern":"^https://","description":"Optional affected page on the same domain"}
  },
  "allOf":[{"if":{"properties":{"kind":{"const":"agent"}}},"then":{"required":["agent_name"]}}]
}
