{
  "asset": "AI agent approval record checker",
  "inputs_are_worked_examples": true,
  "source_checked": "2026-11-07",
  "model_module": "../engine.mjs",
  "model_sha256": "60d877e3826047df5d3b0423900a0b37290aa56766ba3b0de0feb2cfa36a96a1",
  "publisher": "Basket Connect",
  "asset_url": "https://basketconnect.com/resources/agent-approval-evidence/",
  "source_references": [
    {
      "title": "Model Context Protocol, tool interaction guidance",
      "url": "https://modelcontextprotocol.io/specification/2026-07-28/server/tools",
      "captured": "2026-11-07",
      "scope": "MCP2026-07-28 tool user-interaction guidance; the local approval-record schema is authored here, not a mandated MCP record."
    }
  ],
  "scope": "The Model Context Protocol guidance supports human control of tool use; it does not mandate this record format. Populated fields do not prove identity, authorization, enforcement or an actual outcome. Review those in the real system.",
  "cases": [
    {
      "brand_id": "basketconnect",
      "case_id": "worked-initial-case",
      "inputs": {
        "record": "{\n  \"request_id\": \"example-001\",\n  \"action\": \"Publish edited sizing answer\",\n  \"object_id\": \"example-product-A\",\n  \"before\": \"Previous size description\",\n  \"after\": \"Revised size description\",\n  \"approver\": \"Example reviewer\",\n  \"approved_at\": \"2026-11-01T12:00:00Z\",\n  \"result\": \"not-executed\"\n}"
      },
      "expected_error": null,
      "expected_result": {
        "title": "Approval recorded, execution unconfirmed",
        "summary": "Review Publish edited sizing answer on example-product-A, with the exact before/after change and named approver.",
        "records": [
          [
            "Request",
            "example-001"
          ],
          [
            "Action",
            "Publish edited sizing answer"
          ],
          [
            "Object",
            "example-product-A"
          ],
          [
            "Before",
            "Previous size description"
          ],
          [
            "After",
            "Revised size description"
          ],
          [
            "Approver",
            "Example reviewer"
          ],
          [
            "Approved at",
            "2026-11-01T12:00:00Z"
          ],
          [
            "Declared result",
            "not-executed"
          ]
        ],
        "note": "This checks the supplied record’s shape and event order. Identity, consent, authorization, enforcement and the actual outcome are not verified."
      },
      "scope": "Worked model inputs and expected declared-model behavior, not provider or merchant outcomes."
    },
    {
      "brand_id": "basketconnect",
      "case_id": "api-success-is-not-approval",
      "inputs": {
        "record": "{\"result\": \"success\"}"
      },
      "expected_error": null,
      "expected_result": {
        "title": "Approval evidence is incomplete",
        "summary": "Missing fields: request_id, action, object_id, before, after, approver, approved_at. An API-success message does not supply these approval facts.",
        "records": [
          [
            "request_id",
            "Not supplied"
          ],
          [
            "action",
            "Not supplied"
          ],
          [
            "object_id",
            "Not supplied"
          ],
          [
            "before",
            "Not supplied"
          ],
          [
            "after",
            "Not supplied"
          ],
          [
            "approver",
            "Not supplied"
          ],
          [
            "approved_at",
            "Not supplied"
          ]
        ],
        "note": "A structural record check, not proof that a human approved or a system enforced a control."
      },
      "scope": "Worked model inputs and expected declared-model behavior, not provider or merchant outcomes."
    },
    {
      "brand_id": "basketconnect",
      "case_id": "bad-json",
      "inputs": {
        "record": "not JSON"
      },
      "expected_error": "Enter one valid JSON approval record.",
      "expected_result": null,
      "scope": "Worked model inputs and expected declared-model behavior, not provider or merchant outcomes."
    },
    {
      "brand_id": "basketconnect",
      "case_id": "no-actual-diff",
      "inputs": {
        "record": "{\"request_id\": \"example-001\", \"action\": \"Publish edited sizing answer\", \"object_id\": \"example-product-A\", \"before\": \"Previous size description\", \"after\": \"Previous size description\", \"approver\": \"Example reviewer\", \"approved_at\": \"2026-11-01T12:00:00Z\", \"result\": \"not-executed\"}"
      },
      "expected_error": "Before and after are identical; record the actual intended edit.",
      "expected_result": null,
      "scope": "Worked model inputs and expected declared-model behavior, not provider or merchant outcomes."
    }
  ]
}
