[
  {
    "scenario": "failed",
    "events": [
      {
        "type": "item/completed",
        "threadId": "",
        "providerThreadId": "",
        "scope": {
          "kind": "turn",
          "turnId": "repro-t1"
        },
        "item": {
          "type": "toolCall",
          "id": "repro-i1",
          "tool": "other",
          "arguments": {
            "key": "sample"
          },
          "status": "completed",
          "result": "{\"key\":\"sample\"}",
          "presentation": {
            "label": {
              "pending": "Running tool",
              "completed": "Ran tool"
            },
            "icon": {
              "glyph": "Toolbox"
            },
            "title": "Lookup record"
          }
        }
      },
      {
        "type": "provider/warning",
        "threadId": "",
        "providerThreadId": "",
        "scope": {
          "kind": "turn",
          "turnId": "repro-t1"
        },
        "category": "general",
        "summary": "The agent stopped the turn",
        "details": "Stop reason: failed"
      },
      {
        "type": "turn/completed",
        "threadId": "",
        "providerThreadId": "",
        "scope": {
          "kind": "turn",
          "turnId": "repro-t1"
        },
        "status": "completed"
      }
    ]
  },
  {
    "scenario": "error",
    "events": [
      {
        "type": "item/completed",
        "threadId": "",
        "providerThreadId": "",
        "scope": {
          "kind": "turn",
          "turnId": "repro-t1"
        },
        "item": {
          "type": "toolCall",
          "id": "repro-i1",
          "tool": "other",
          "arguments": {
            "key": "sample"
          },
          "status": "completed",
          "result": "{\"key\":\"sample\"}",
          "presentation": {
            "label": {
              "pending": "Running tool",
              "completed": "Ran tool"
            },
            "icon": {
              "glyph": "Toolbox"
            },
            "title": "Lookup record"
          }
        }
      },
      {
        "type": "provider/warning",
        "threadId": "",
        "providerThreadId": "",
        "scope": {
          "kind": "turn",
          "turnId": "repro-t1"
        },
        "category": "general",
        "summary": "The agent stopped the turn",
        "details": "Stop reason: error"
      },
      {
        "type": "turn/completed",
        "threadId": "",
        "providerThreadId": "",
        "scope": {
          "kind": "turn",
          "turnId": "repro-t1"
        },
        "status": "completed"
      }
    ]
  },
  {
    "scenario": "missing-terminal-update",
    "events": [
      {
        "type": "item/completed",
        "threadId": "",
        "providerThreadId": "",
        "scope": {
          "kind": "turn",
          "turnId": "repro-t1"
        },
        "item": {
          "type": "toolCall",
          "id": "repro-i1",
          "tool": "other",
          "arguments": {
            "key": "sample"
          },
          "status": "completed",
          "result": "{\"key\":\"sample\"}",
          "presentation": {
            "label": {
              "pending": "Running tool",
              "completed": "Ran tool"
            },
            "icon": {
              "glyph": "Toolbox"
            },
            "title": "Lookup record"
          }
        }
      },
      {
        "type": "turn/completed",
        "threadId": "",
        "providerThreadId": "",
        "scope": {
          "kind": "turn",
          "turnId": "repro-t1"
        },
        "status": "completed"
      }
    ]
  },
  {
    "scenario": "explicit-tool-failure",
    "events": [
      {
        "type": "item/completed",
        "threadId": "",
        "providerThreadId": "",
        "scope": {
          "kind": "turn",
          "turnId": "repro-t1"
        },
        "item": {
          "type": "toolCall",
          "id": "repro-i1",
          "tool": "other",
          "arguments": {
            "key": "sample"
          },
          "status": "failed",
          "result": "Synthetic provider operation could not finish",
          "error": "Synthetic provider operation could not finish",
          "presentation": {
            "label": {
              "pending": "Running tool",
              "completed": "Ran tool"
            },
            "icon": {
              "glyph": "Toolbox"
            },
            "title": "Lookup record"
          }
        }
      }
    ]
  },
  {
    "scenario": "explicit-provider-error",
    "events": [
      {
        "type": "provider/error",
        "threadId": "",
        "providerThreadId": "",
        "scope": {
          "kind": "turn",
          "turnId": "repro-t1"
        },
        "message": "Provider error",
        "detail": "Synthetic provider operation could not finish"
      },
      {
        "type": "turn/completed",
        "threadId": "",
        "providerThreadId": "",
        "scope": {
          "kind": "turn",
          "turnId": "repro-t1"
        },
        "status": "failed"
      }
    ]
  }
]
