{
  "name": "report_promise_context_feedback",
  "title": "Report context relevance corrections",
  "description": "Attach explicit corrections or misses to a get_promise_context or discover_intent receipt. For discover_intent: corrected = returned leads that did not apply, confirmed = returned leads that did (proposal ids for shared and recorded leads), missed = promises that apply but were not returned, adjacent ones included. flagWrong = a teammate's recorded promise that answer served does not hold; the person who recorded it is told. Feedback is telemetry only and never suppresses future context.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "receiptId": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "correctedPromiseIds": {
        "default": [],
        "maxItems": 128,
        "type": "array",
        "items": {
          "type": "string",
          "pattern": "^prom_[a-z0-9]{8,64}$"
        }
      },
      "missedPromiseIds": {
        "default": [],
        "maxItems": 128,
        "type": "array",
        "items": {
          "type": "string",
          "pattern": "^prom_[a-z0-9]{8,64}$"
        }
      },
      "confirmedPromiseIds": {
        "default": [],
        "maxItems": 8,
        "type": "array",
        "items": {
          "type": "string",
          "pattern": "^prom_[a-z0-9]{8,64}$"
        }
      },
      "correctedProposalIds": {
        "default": [],
        "maxItems": 8,
        "type": "array",
        "items": {
          "type": "string",
          "pattern": "^cand_[a-z0-9]{8,64}$"
        }
      },
      "confirmedProposalIds": {
        "default": [],
        "maxItems": 8,
        "type": "array",
        "items": {
          "type": "string",
          "pattern": "^cand_[a-z0-9]{8,64}$"
        }
      },
      "flagWrong": {
        "description": "A teammate's recorded promise this discover_intent answer returned in `recorded` does not hold. Not for your person's own: they change or drop it.",
        "type": "object",
        "properties": {
          "proposalId": {
            "type": "string",
            "pattern": "^cand_[a-z0-9]{8,64}$"
          },
          "reason": {
            "description": "Optional: one plain sentence, in the person's words, on why it does not hold. No source code.",
            "type": "string",
            "minLength": 1,
            "maxLength": 280
          }
        },
        "required": [
          "proposalId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "receiptId"
    ],
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "additionalProperties": false
  },
  "annotations": {
    "readOnlyHint": false,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "execution": {
    "taskSupport": "forbidden"
  }
}