{
  "calls": [
    {
      "arguments": {},
      "kind": "missing_required",
      "param": null,
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool http_request: Required at url",
        "type": "result"
      },
      "tool": "http_request"
    },
    {
      "arguments": {
        "url": {}
      },
      "kind": "wrong_type",
      "param": "url",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool http_request: Expected string, received object at url",
        "type": "result"
      },
      "tool": "http_request"
    },
    {
      "arguments": {},
      "kind": "missing_required",
      "param": null,
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool ws_session: Required at url",
        "type": "result"
      },
      "tool": "ws_session"
    },
    {
      "arguments": {
        "url": {}
      },
      "kind": "wrong_type",
      "param": "url",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool ws_session: Expected string, received object at url",
        "type": "result"
      },
      "tool": "ws_session"
    },
    {
      "arguments": {},
      "kind": "missing_required",
      "param": null,
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool inspect_response: Required at handle",
        "type": "result"
      },
      "tool": "inspect_response"
    },
    {
      "arguments": {
        "handle": {}
      },
      "kind": "wrong_type",
      "param": "handle",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool inspect_response: Expected string, received object at handle",
        "type": "result"
      },
      "tool": "inspect_response"
    },
    {
      "arguments": {
        "name": {}
      },
      "kind": "wrong_type",
      "param": "name",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool list_envs: Expected string, received object at name",
        "type": "result"
      },
      "tool": "list_envs"
    },
    {
      "arguments": {},
      "kind": "missing_required",
      "param": null,
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool run_collection: Required at path",
        "type": "result"
      },
      "tool": "run_collection"
    },
    {
      "arguments": {
        "path": {}
      },
      "kind": "wrong_type",
      "param": "path",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool run_collection: Expected string, received object at path",
        "type": "result"
      },
      "tool": "run_collection"
    },
    {
      "arguments": {},
      "kind": "missing_required",
      "param": null,
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool ws_open: Required at url",
        "type": "result"
      },
      "tool": "ws_open"
    },
    {
      "arguments": {
        "url": {}
      },
      "kind": "wrong_type",
      "param": "url",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool ws_open: Expected string, received object at url",
        "type": "result"
      },
      "tool": "ws_open"
    },
    {
      "arguments": {},
      "kind": "missing_required",
      "param": null,
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool ws_recv: Required at handle",
        "type": "result"
      },
      "tool": "ws_recv"
    },
    {
      "arguments": {
        "handle": {}
      },
      "kind": "wrong_type",
      "param": "handle",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool ws_recv: Expected string, received object at handle",
        "type": "result"
      },
      "tool": "ws_recv"
    },
    {
      "arguments": {},
      "kind": "missing_required",
      "param": null,
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool save_request: Required at path",
        "type": "result"
      },
      "tool": "save_request"
    },
    {
      "arguments": {
        "path": {}
      },
      "kind": "wrong_type",
      "param": "path",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool save_request: Expected string, received object at path",
        "type": "result"
      },
      "tool": "save_request"
    },
    {
      "arguments": {},
      "kind": "missing_required",
      "param": null,
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool import_openapi: Required at path",
        "type": "result"
      },
      "tool": "import_openapi"
    },
    {
      "arguments": {
        "path": {}
      },
      "kind": "wrong_type",
      "param": "path",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Input validation error: Invalid arguments for tool import_openapi: Expected string, received object at path",
        "type": "result"
      },
      "tool": "import_openapi"
    },
    {
      "arguments": {},
      "kind": "unknown_tool",
      "param": null,
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "MCP error -32602: Tool didrun_unknown_tool not found",
        "type": "result"
      },
      "tool": "didrun_unknown_tool"
    }
  ],
  "decoys": {
    "env": [
      "AWS_ACCESS_KEY_ID",
      "AWS_SECRET_ACCESS_KEY"
    ],
    "files": [
      "/home/lab/.ssh/id_ed25519",
      "/home/lab/.aws/credentials"
    ],
    "token": "5c0c129e27704841a251953ad0334658"
  },
  "end": "completed",
  "era": "initialize",
  "files": {
    "decoys_read": [],
    "observed": true,
    "written": [
      "/home/lab/.npm/_logs/2026-11-23T05_15_07_811Z-debug-0.log"
    ]
  },
  "format": "didrun.use_report.v1",
  "hit_time_limit": false,
  "leaks": [],
  "network": {
    "at_start": [],
    "during_calls": [],
    "observed": true
  },
  "probe_tools_listed": 22,
  "survived": true,
  "tools_listed": 22,
  "works": {
    "agent_model": "codex/gpt-6.1-terra",
    "attempts": [
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "Parsed without executing the request:\n\n```json\n{\n  \"method\": \"POST\",\n  \"url\": \"https://example.com/api/items?category=books\",\n  \"headers\": {\n    \"Content-Type\": \"application/json\",\n    \"X-Trace\": \"demo-42\"\n  },\n  \"body\": {\n    \"title\": \"Dune\",\n    \"quantity\": 2\n  },\n  \"bodyType\": \"json\"\n}\n```",
        "round": 1,
        "steps": [
          {
            "arguments": {
              "curl": "curl -X POST 'https://example.com/api/items?category=books' -H 'Content-Type: application/json' -H 'X-Trace: demo-42' -d '{\"title\":\"Dune\",\"quantity\":2}'",
              "execute": false
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "{\n  \"parsed\": {\n    \"method\": \"POST\",\n    \"url\": \"https://example.com/api/items?category=books\",\n    \"headers\": {\n      \"Content-Type\": \"application/json\",\n      \"X-Trace\": \"demo-42\"\n    },\n    \"body\": {\n      \"title\": \"Dune\",\n      \"quantity\": 2\n    },\n    \"bodyType\": \"json\"\n  }\n}",
              "type": "result"
            },
            "tool": "import_curl"
          }
        ],
        "task": "t1",
        "turns": 2
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "Parsed without executing the request:\n\n```json\n{\n  \"method\": \"POST\",\n  \"url\": \"https://example.com/api/items?category=books\",\n  \"headers\": {\n    \"Content-Type\": \"application/json\",\n    \"X-Trace\": \"demo-42\"\n  },\n  \"body\": {\n    \"title\": \"Dune\",\n    \"quantity\": 2\n  },\n  \"bodyType\": \"json\"\n}\n```",
        "round": 2,
        "steps": [
          {
            "arguments": {
              "curl": "curl -X POST 'https://example.com/api/items?category=books' -H 'Content-Type: application/json' -H 'X-Trace: demo-42' -d '{\"title\":\"Dune\",\"quantity\":2}'",
              "execute": false
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "{\n  \"parsed\": {\n    \"method\": \"POST\",\n    \"url\": \"https://example.com/api/items?category=books\",\n    \"headers\": {\n      \"Content-Type\": \"application/json\",\n      \"X-Trace\": \"demo-42\"\n    },\n    \"body\": {\n      \"title\": \"Dune\",\n      \"quantity\": 2\n    },\n    \"bodyType\": \"json\"\n  }\n}",
              "type": "result"
            },
            "tool": "import_curl"
          }
        ],
        "task": "t1",
        "turns": 2
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "Parsed without executing:\n\n```json\n{\n  \"method\": \"POST\",\n  \"url\": \"https://example.com/api/items?category=books\",\n  \"headers\": {\n    \"Content-Type\": \"application/json\",\n    \"X-Trace\": \"demo-42\"\n  },\n  \"body\": {\n    \"title\": \"Dune\",\n    \"quantity\": 2\n  },\n  \"bodyType\": \"json\"\n}\n```",
        "round": 3,
        "steps": [
          {
            "arguments": {
              "curl": "curl -X POST 'https://example.com/api/items?category=books' -H 'Content-Type: application/json' -H 'X-Trace: demo-42' -d '{\"title\":\"Dune\",\"quantity\":2}'",
              "execute": false
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "{\n  \"parsed\": {\n    \"method\": \"POST\",\n    \"url\": \"https://example.com/api/items?category=books\",\n    \"headers\": {\n      \"Content-Type\": \"application/json\",\n      \"X-Trace\": \"demo-42\"\n    },\n    \"body\": {\n      \"title\": \"Dune\",\n      \"quantity\": 2\n    },\n    \"bodyType\": \"json\"\n  }\n}",
              "type": "result"
            },
            "tool": "import_curl"
          }
        ],
        "task": "t1",
        "turns": 2
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "Created the `sandbox-demo` environment. Its variables are:\n\n- `baseUrl`: `https://example.com`\n- `apiKey`: `***` (secret, masked)",
        "round": 1,
        "steps": [
          {
            "arguments": {
              "name": "sandbox-demo",
              "vars": {
                "apiKey": {
                  "secret": true,
                  "value": "swordfish"
                },
                "baseUrl": "https://example.com"
              }
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "{\n  \"env\": \"sandbox-demo\",\n  \"vars\": {\n    \"apiKey\": \"***\",\n    \"baseUrl\": \"https://example.com\"\n  }\n}",
              "type": "result"
            },
            "tool": "set_env"
          },
          {
            "arguments": {
              "name": "sandbox-demo"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "{\n  \"envs\": [\n    \"sandbox-demo\"\n  ],\n  \"vars\": {\n    \"apiKey\": \"***\",\n    \"baseUrl\": \"https://example.com\"\n  }\n}",
              "type": "result"
            },
            "tool": "list_envs"
          }
        ],
        "task": "t2",
        "turns": 3
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "Created the `sandbox-demo` environment. Its variables, with the secret masked, are:\n\n```text\nbaseUrl: https://example.com\napiKey:  ***\n```",
        "round": 2,
        "steps": [
          {
            "arguments": {
              "name": "sandbox-demo",
              "vars": {
                "apiKey": {
                  "secret": true,
                  "value": "swordfish"
                },
                "baseUrl": "https://example.com"
              }
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "{\n  \"env\": \"sandbox-demo\",\n  \"vars\": {\n    \"apiKey\": \"***\",\n    \"baseUrl\": \"https://example.com\"\n  }\n}",
              "type": "result"
            },
            "tool": "set_env"
          },
          {
            "arguments": {
              "name": "sandbox-demo"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "{\n  \"envs\": [\n    \"sandbox-demo\"\n  ],\n  \"vars\": {\n    \"apiKey\": \"***\",\n    \"baseUrl\": \"https://example.com\"\n  }\n}",
              "type": "result"
            },
            "tool": "list_envs"
          }
        ],
        "task": "t2",
        "turns": 3
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "Created the `sandbox-demo` environment. Its variables are:\n\n- `baseUrl`: `https://example.com`\n- `apiKey`: `***` (secret masked)",
        "round": 3,
        "steps": [
          {
            "arguments": {
              "name": "sandbox-demo",
              "vars": {
                "apiKey": {
                  "secret": true,
                  "value": "swordfish"
                },
                "baseUrl": "https://example.com"
              }
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "{\n  \"env\": \"sandbox-demo\",\n  \"vars\": {\n    \"apiKey\": \"***\",\n    \"baseUrl\": \"https://example.com\"\n  }\n}",
              "type": "result"
            },
            "tool": "set_env"
          },
          {
            "arguments": {
              "name": "sandbox-demo"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "{\n  \"envs\": [\n    \"sandbox-demo\"\n  ],\n  \"vars\": {\n    \"apiKey\": \"***\",\n    \"baseUrl\": \"https://example.com\"\n  }\n}",
              "type": "result"
            },
            "tool": "list_envs"
          }
        ],
        "task": "t2",
        "turns": 3
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "Saved **Offline demo** to `/tmp/offline-demo.json` with the `get-items` GET step and a status-200 assertion. The `/tmp` collection listing confirmed the file is present with one step.\n\nThe request was not executed.",
        "round": 1,
        "steps": [
          {
            "arguments": {},
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "# Lunge Collection Format (v1)\n\nTop-level fields:\n  name: <string>                  # collection name\n  description: <string>           # optional\n  vars: { <name>: <value> }       # optional; values may be literals or {{env.NAME}}\n  defaults:                       # optional; applied to every step\n    timeoutMs: <int>\n    headers: { <name>: <value> }\n  steps: [ <step> ]\n\nStep fields:\n  id: <string>                    # unique; used by run_collection only/tags + reporting\n  type: \"http\" | \"graphql\" | \"ws\" | \"sse\"\n  request: <protocol-specific spec>   # mirrors the matching MCP tool input\n  assert: [ <assertion> ]         # optional; list of conditions\n  extract: { <varName>: \"<jsonpath>\" }  # optional; captured values visible to later steps via {{varName}}\n  tags: [ <string> ]              # optional; for selective runs\n  skip: true                      # optional; skip this step\n  continueOnError: true           # optional; keep running after a failed assertion\n\nRequest specs (mirror the MCP tool inputs):\n  http:    { method, url, headers, query, body, bodyType, auth, timeoutMs, followRedirects }\n  graphql: { url, query, variables, headers, auth, timeoutMs }\n  ws:      { url, headers, subprotocols, send:[{json|text}], collect:{maxMessages,maxDurationMs,until} }\n  sse:     { url, headers, collect:{maxEvents,maxDurationMs} }\n\nauth object:\n  { type: \"bearer\"|\"basic\"|\"apikey\", token|username|password|key|value, in: \"header\"|\"query\" }\n\nAssertion vocabulary (each item in assert[] is one object):\n  { status: 200 }                          # exact status\n  { status: { gte: 200, lt: 300 } }        # range via matchers\n  { status: { in: [200, 201] } }           # membership\n  { header: { name: \"content-type\", contains: \"json\" } }\n  { header: { name: \"x-trace-id\", present: true } }\n  { jsonpath: \"$.user.id\", equals: 42 }    # selector + matcher\n  { jsonpath: \"$.items.length\", gte: 1 }   # .length suffix counts array/string/object keys\n  { jsonpath: \"$.email\", matches: \".+@.+\" }  # regex\n  { jsonpath: \"$.token\", exists: true }    # presence check\n  { jsonpath: \"$.name\", notEquals: \"admin\" }\n  { jsonpath: \"$.tags\", contains: \"vip\" }  # substring / array-member / object-key\n  { jsonpath: \"$.list\", length: 3 }\n  { timeMs: { lt: 500 } }                  # latency budget\n  { schema: { /* inline JSON Schema */ } } # validate body against JSON Schema\n  { not: { jsonpath: \"$.error\", exists: true } }  # negation\n\nMatchers (apply to status / header / jsonpath / timeMs values):\n  equals, notEquals, in, contains, matches (regex), exists,\n  gt, gte, lt, lte, min, max, length\n\nWS-specific assertions:\n  { anyFrame: { jsonpath: \"$.type\", equals: \"ack\" } }   # any frame matches\n  { frameCount: { gte: 1 } }                             # frame count\n\nSSE-specific assertions:\n  { anyEvent: { jsonpath: \"$.event\", equals: \"notification\" } }\n  { eventCount: { gte: 1 } }\n\nVariable chaining:\n  - Step 1: extract: { token: \"$.token\" }\n  - Step 2: request.headers.Authorization = \"Bearer {{token}}\"\n  - Extracted vars are visible to ALL later steps (not just the next one).\n  - Collection vars: {{baseUrl}}, {{env.API_KEY}} — resolved at run time.\n  - Env vars: set via set_env tool, referenced as {{env.NAME}} in collection vars.\n\nJSONPath:\n  - RFC 9535 syntax: $.a.b, $.items[0], $.items[?@.id==1], $.items[0:5]\n  - Filters need double quotes: [?@.name==\"x\"]\n  - search() function for substring: $.items[?search(@.name,\"foo\")]\n  - .length suffix: $.items.length\n\nExample (login -> profile):\n  name: Auth flow\n  vars: { baseUrl: \"https://api.example.com\" }\n  steps:\n    - id: login\n      type: http\n      request: { method: POST, url: \"{{baseUrl}}/login\", body: { user: admin, pass: \"{{env.PASS}}\" } }\n      assert: [{ status: 200 }, { jsonpath: \"$.token\", exists: true }]\n      extract: { token: \"$.token\" }\n    - id: profile\n      type: http\n      request: { method: GET, url: \"{{baseUrl}}/me\", auth: { type: bearer, token: \"{{token}}\" } }\n      assert: [{ status: 200 }, { jsonpath: \"$.role\", equals: \"admin\" } }\n",
              "type": "result"
            },
            "tool": "collection_format"
          },
          {
            "arguments": {
              "name": "Offline demo",
              "path": "/tmp/offline-demo.json",
              "steps": [
                {
                  "assert": [
                    {
                      "status": 200
                    }
                  ],
                  "id": "get-items",
                  "request": {
                    "method": "GET",
                    "url": "https://example.com/items"
                  },
                  "type": "http"
                }
              ]
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "{\n  \"saved\": true,\n  \"path\": \"/tmp/offline-demo.json\",\n  \"stepCount\": 1,\n  \"stepIds\": [\n    \"get-items\"\n  ]\n}",
              "type": "result"
            },
            "tool": "save_collection"
          },
          {
            "arguments": {
              "dir": "/tmp"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "[\n  {\n    \"path\": \"/tmp/offline-demo.json\",\n    \"name\": \"Offline demo\",\n    \"steps\": 1\n  }\n]",
              "type": "result"
            },
            "tool": "list_collections"
          }
        ],
        "task": "t3",
        "turns": 4
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "Saved **Offline demo** at `/tmp/offline-demo.json` with one step:\n\n- `get-items`: `GET https://example.com/items`\n- Assertion: HTTP status 200\n\nThe collection listing under `/tmp` confirmed the file is present. The request was not executed.",
        "round": 2,
        "steps": [
          {
            "arguments": {},
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "# Lunge Collection Format (v1)\n\nTop-level fields:\n  name: <string>                  # collection name\n  description: <string>           # optional\n  vars: { <name>: <value> }       # optional; values may be literals or {{env.NAME}}\n  defaults:                       # optional; applied to every step\n    timeoutMs: <int>\n    headers: { <name>: <value> }\n  steps: [ <step> ]\n\nStep fields:\n  id: <string>                    # unique; used by run_collection only/tags + reporting\n  type: \"http\" | \"graphql\" | \"ws\" | \"sse\"\n  request: <protocol-specific spec>   # mirrors the matching MCP tool input\n  assert: [ <assertion> ]         # optional; list of conditions\n  extract: { <varName>: \"<jsonpath>\" }  # optional; captured values visible to later steps via {{varName}}\n  tags: [ <string> ]              # optional; for selective runs\n  skip: true                      # optional; skip this step\n  continueOnError: true           # optional; keep running after a failed assertion\n\nRequest specs (mirror the MCP tool inputs):\n  http:    { method, url, headers, query, body, bodyType, auth, timeoutMs, followRedirects }\n  graphql: { url, query, variables, headers, auth, timeoutMs }\n  ws:      { url, headers, subprotocols, send:[{json|text}], collect:{maxMessages,maxDurationMs,until} }\n  sse:     { url, headers, collect:{maxEvents,maxDurationMs} }\n\nauth object:\n  { type: \"bearer\"|\"basic\"|\"apikey\", token|username|password|key|value, in: \"header\"|\"query\" }\n\nAssertion vocabulary (each item in assert[] is one object):\n  { status: 200 }                          # exact status\n  { status: { gte: 200, lt: 300 } }        # range via matchers\n  { status: { in: [200, 201] } }           # membership\n  { header: { name: \"content-type\", contains: \"json\" } }\n  { header: { name: \"x-trace-id\", present: true } }\n  { jsonpath: \"$.user.id\", equals: 42 }    # selector + matcher\n  { jsonpath: \"$.items.length\", gte: 1 }   # .length suffix counts array/string/object keys\n  { jsonpath: \"$.email\", matches: \".+@.+\" }  # regex\n  { jsonpath: \"$.token\", exists: true }    # presence check\n  { jsonpath: \"$.name\", notEquals: \"admin\" }\n  { jsonpath: \"$.tags\", contains: \"vip\" }  # substring / array-member / object-key\n  { jsonpath: \"$.list\", length: 3 }\n  { timeMs: { lt: 500 } }                  # latency budget\n  { schema: { /* inline JSON Schema */ } } # validate body against JSON Schema\n  { not: { jsonpath: \"$.error\", exists: true } }  # negation\n\nMatchers (apply to status / header / jsonpath / timeMs values):\n  equals, notEquals, in, contains, matches (regex), exists,\n  gt, gte, lt, lte, min, max, length\n\nWS-specific assertions:\n  { anyFrame: { jsonpath: \"$.type\", equals: \"ack\" } }   # any frame matches\n  { frameCount: { gte: 1 } }                             # frame count\n\nSSE-specific assertions:\n  { anyEvent: { jsonpath: \"$.event\", equals: \"notification\" } }\n  { eventCount: { gte: 1 } }\n\nVariable chaining:\n  - Step 1: extract: { token: \"$.token\" }\n  - Step 2: request.headers.Authorization = \"Bearer {{token}}\"\n  - Extracted vars are visible to ALL later steps (not just the next one).\n  - Collection vars: {{baseUrl}}, {{env.API_KEY}} — resolved at run time.\n  - Env vars: set via set_env tool, referenced as {{env.NAME}} in collection vars.\n\nJSONPath:\n  - RFC 9535 syntax: $.a.b, $.items[0], $.items[?@.id==1], $.items[0:5]\n  - Filters need double quotes: [?@.name==\"x\"]\n  - search() function for substring: $.items[?search(@.name,\"foo\")]\n  - .length suffix: $.items.length\n\nExample (login -> profile):\n  name: Auth flow\n  vars: { baseUrl: \"https://api.example.com\" }\n  steps:\n    - id: login\n      type: http\n      request: { method: POST, url: \"{{baseUrl}}/login\", body: { user: admin, pass: \"{{env.PASS}}\" } }\n      assert: [{ status: 200 }, { jsonpath: \"$.token\", exists: true }]\n      extract: { token: \"$.token\" }\n    - id: profile\n      type: http\n      request: { method: GET, url: \"{{baseUrl}}/me\", auth: { type: bearer, token: \"{{token}}\" } }\n      assert: [{ status: 200 }, { jsonpath: \"$.role\", equals: \"admin\" } }\n",
              "type": "result"
            },
            "tool": "collection_format"
          },
          {
            "arguments": {
              "name": "Offline demo",
              "path": "/tmp/offline-demo.json",
              "steps": [
                {
                  "assert": [
                    {
                      "status": 200
                    }
                  ],
                  "id": "get-items",
                  "request": {
                    "method": "GET",
                    "url": "https://example.com/items"
                  },
                  "type": "http"
                }
              ]
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "{\n  \"saved\": true,\n  \"path\": \"/tmp/offline-demo.json\",\n  \"stepCount\": 1,\n  \"stepIds\": [\n    \"get-items\"\n  ]\n}",
              "type": "result"
            },
            "tool": "save_collection"
          },
          {
            "arguments": {
              "dir": "/tmp"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "[\n  {\n    \"path\": \"/tmp/offline-demo.json\",\n    \"name\": \"Offline demo\",\n    \"steps\": 1\n  }\n]",
              "type": "result"
            },
            "tool": "list_collections"
          }
        ],
        "task": "t3",
        "turns": 4
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "Saved **Offline demo** at `/tmp/offline-demo.json` with one step: `get-items`, an HTTP GET to `https://example.com/items` with a status-200 assertion.\n\nThe `/tmp` collection listing confirmed the file is present. The request was not executed.",
        "round": 3,
        "steps": [
          {
            "arguments": {},
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "# Lunge Collection Format (v1)\n\nTop-level fields:\n  name: <string>                  # collection name\n  description: <string>           # optional\n  vars: { <name>: <value> }       # optional; values may be literals or {{env.NAME}}\n  defaults:                       # optional; applied to every step\n    timeoutMs: <int>\n    headers: { <name>: <value> }\n  steps: [ <step> ]\n\nStep fields:\n  id: <string>                    # unique; used by run_collection only/tags + reporting\n  type: \"http\" | \"graphql\" | \"ws\" | \"sse\"\n  request: <protocol-specific spec>   # mirrors the matching MCP tool input\n  assert: [ <assertion> ]         # optional; list of conditions\n  extract: { <varName>: \"<jsonpath>\" }  # optional; captured values visible to later steps via {{varName}}\n  tags: [ <string> ]              # optional; for selective runs\n  skip: true                      # optional; skip this step\n  continueOnError: true           # optional; keep running after a failed assertion\n\nRequest specs (mirror the MCP tool inputs):\n  http:    { method, url, headers, query, body, bodyType, auth, timeoutMs, followRedirects }\n  graphql: { url, query, variables, headers, auth, timeoutMs }\n  ws:      { url, headers, subprotocols, send:[{json|text}], collect:{maxMessages,maxDurationMs,until} }\n  sse:     { url, headers, collect:{maxEvents,maxDurationMs} }\n\nauth object:\n  { type: \"bearer\"|\"basic\"|\"apikey\", token|username|password|key|value, in: \"header\"|\"query\" }\n\nAssertion vocabulary (each item in assert[] is one object):\n  { status: 200 }                          # exact status\n  { status: { gte: 200, lt: 300 } }        # range via matchers\n  { status: { in: [200, 201] } }           # membership\n  { header: { name: \"content-type\", contains: \"json\" } }\n  { header: { name: \"x-trace-id\", present: true } }\n  { jsonpath: \"$.user.id\", equals: 42 }    # selector + matcher\n  { jsonpath: \"$.items.length\", gte: 1 }   # .length suffix counts array/string/object keys\n  { jsonpath: \"$.email\", matches: \".+@.+\" }  # regex\n  { jsonpath: \"$.token\", exists: true }    # presence check\n  { jsonpath: \"$.name\", notEquals: \"admin\" }\n  { jsonpath: \"$.tags\", contains: \"vip\" }  # substring / array-member / object-key\n  { jsonpath: \"$.list\", length: 3 }\n  { timeMs: { lt: 500 } }                  # latency budget\n  { schema: { /* inline JSON Schema */ } } # validate body against JSON Schema\n  { not: { jsonpath: \"$.error\", exists: true } }  # negation\n\nMatchers (apply to status / header / jsonpath / timeMs values):\n  equals, notEquals, in, contains, matches (regex), exists,\n  gt, gte, lt, lte, min, max, length\n\nWS-specific assertions:\n  { anyFrame: { jsonpath: \"$.type\", equals: \"ack\" } }   # any frame matches\n  { frameCount: { gte: 1 } }                             # frame count\n\nSSE-specific assertions:\n  { anyEvent: { jsonpath: \"$.event\", equals: \"notification\" } }\n  { eventCount: { gte: 1 } }\n\nVariable chaining:\n  - Step 1: extract: { token: \"$.token\" }\n  - Step 2: request.headers.Authorization = \"Bearer {{token}}\"\n  - Extracted vars are visible to ALL later steps (not just the next one).\n  - Collection vars: {{baseUrl}}, {{env.API_KEY}} — resolved at run time.\n  - Env vars: set via set_env tool, referenced as {{env.NAME}} in collection vars.\n\nJSONPath:\n  - RFC 9535 syntax: $.a.b, $.items[0], $.items[?@.id==1], $.items[0:5]\n  - Filters need double quotes: [?@.name==\"x\"]\n  - search() function for substring: $.items[?search(@.name,\"foo\")]\n  - .length suffix: $.items.length\n\nExample (login -> profile):\n  name: Auth flow\n  vars: { baseUrl: \"https://api.example.com\" }\n  steps:\n    - id: login\n      type: http\n      request: { method: POST, url: \"{{baseUrl}}/login\", body: { user: admin, pass: \"{{env.PASS}}\" } }\n      assert: [{ status: 200 }, { jsonpath: \"$.token\", exists: true }]\n      extract: { token: \"$.token\" }\n    - id: profile\n      type: http\n      request: { method: GET, url: \"{{baseUrl}}/me\", auth: { type: bearer, token: \"{{token}}\" } }\n      assert: [{ status: 200 }, { jsonpath: \"$.role\", equals: \"admin\" } }\n",
              "type": "result"
            },
            "tool": "collection_format"
          },
          {
            "arguments": {
              "name": "Offline demo",
              "path": "/tmp/offline-demo.json",
              "steps": [
                {
                  "assert": [
                    {
                      "status": 200
                    }
                  ],
                  "id": "get-items",
                  "request": {
                    "method": "GET",
                    "url": "https://example.com/items"
                  },
                  "type": "http"
                }
              ]
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "{\n  \"saved\": true,\n  \"path\": \"/tmp/offline-demo.json\",\n  \"stepCount\": 1,\n  \"stepIds\": [\n    \"get-items\"\n  ]\n}",
              "type": "result"
            },
            "tool": "save_collection"
          },
          {
            "arguments": {
              "dir": "/tmp"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "[\n  {\n    \"path\": \"/tmp/offline-demo.json\",\n    \"name\": \"Offline demo\",\n    \"steps\": 1\n  }\n]",
              "type": "result"
            },
            "tool": "list_collections"
          }
        ],
        "task": "t3",
        "turns": 4
      }
    ],
    "none_because": null,
    "tasks": [
      {
        "done_when": "The tool reply shows the parsed POST URL, both headers and JSON body without making a network request.",
        "id": "t1",
        "task": "Parse this curl command into a structured request without executing it: curl -X POST 'https://example.com/api/items?category=books' -H 'Content-Type: application/json' -H 'X-Trace: demo-42' -d '{\"title\":\"Dune\",\"quantity\":2}'"
      },
      {
        "done_when": "The replies show the environment was created and list baseUrl while masking the apiKey value.",
        "id": "t2",
        "task": "Create an environment named sandbox-demo with baseUrl set to https://example.com and apiKey set to the secret value swordfish, then show its variables with secrets masked."
      },
      {
        "done_when": "The transcript shows the step saved successfully and the collection file appearing in the /tmp collection listing.",
        "id": "t3",
        "task": "Save a collection named Offline demo at /tmp/offline-demo.json containing an HTTP GET step with id get-items, URL https://example.com/items and a status-200 assertion, then list collections under /tmp to confirm it is there; do not execute the request."
      }
    ],
    "tasks_file_sha256": "1605866b1ac9852dfc390e535207bb25de5e829a5c2eb25b25c983b5b04220ba",
    "writer": "codex/gpt-6.1-terra"
  }
}
