{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://expandingweb.com/schemas/agent-feedback.json",
    "title": "Agent feedback channel",
    "description": "Configuration for com.expandingweb.agent_feedback: a channel an agent uses to report what stopped it from completing a task. Read by a human. UCP defines no capability for this, so it is published under our own namespace rather than dressed up as a standard one.",
    "type": "object",
    "required": [
        "endpoint",
        "method",
        "fields"
    ],
    "properties": {
        "endpoint": {
            "type": "string",
            "format": "uri",
            "description": "Absolute URL the report is POSTed to."
        },
        "method": {
            "type": "string",
            "const": "POST"
        },
        "authentication": {
            "type": "string",
            "description": "How to authenticate; \"none\" means the channel is open."
        },
        "fields": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "Accepted body fields; \"summary\" is the only required one."
        },
        "kinds": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "Closest-category values accepted in \"kind\". Omit the field if unsure."
        },
        "description": {
            "type": "string"
        }
    },
    "additionalProperties": true
}