{
  "sha": "bdd781de224f86537a2371576a5cd7ceae788eda",
  "side": "after",
  "events": [
    {
      "at": 0.00002089799999999542,
      "line": "ACP terminal MCP | AFTER | bdd781de22"
    },
    {
      "at": 0.0005150779999999955,
      "line": "Linux x86_64 | Node v26.12.1 | effect 4.1.3"
    },
    {
      "at": 0.0005399749999999983,
      "line": "Real CLI subprocess + real loopback HTTP/SSE peer; fresh synthetic state"
    },
    {
      "at": 0.0005560239999999936,
      "line": ""
    },
    {
      "at": 0.0005674670000000006,
      "line": "CASE: server request ping before successful tool result"
    },
    {
      "at": 0.0021386309999999967,
      "line": "$ node apps/server/src/bin.ts acp-mcp-call echo '{}'"
    },
    {
      "at": 0.169478173,
      "line": "peer <- {\"jsonrpc\":\"2.0\",\"id\":\"t3-cli-0\",\"method\":\"initialize\",\"params\":...}"
    },
    {
      "at": 0.17765190199999997,
      "line": "peer <- {\"jsonrpc\":\"2.0\",\"method\":\"notifications/initialized\"}"
    },
    {
      "at": 0.180348975,
      "line": "peer <- {\"jsonrpc\":\"2.0\",\"id\":\"t3-cli-1\",\"method\":\"tools/call\",\"params\":...}"
    },
    {
      "at": 0.180471108,
      "line": "peer -> {\"jsonrpc\":\"2.0\",\"id\":\"server-ping\",\"method\":\"ping\"}"
    },
    {
      "at": 0.18063358599999998,
      "line": "peer -> {\"jsonrpc\":\"2.0\",\"id\":\"t3-cli-1\",\"result\":{\"content\":[{\"type\":\"text\",\"text\":\"ok\"}]}}"
    },
    {
      "at": 0.183050268,
      "line": "peer <- {\"jsonrpc\":\"2.0\",\"id\":\"server-ping\",\"result\":{}}"
    },
    {
      "at": 0.184802677,
      "line": "peer <- DELETE session"
    },
    {
      "at": 0.18543491899999998,
      "line": "CLI stdout: {\"content\":[{\"type\":\"text\",\"text\":\"ok\"}]}"
    },
    {
      "at": 0.208089248,
      "line": "CLI exit: 0 | handshake: OK | tool result: OK"
    },
    {
      "at": 0.208175282,
      "line": "Matching empty result: RECEIVED"
    },
    {
      "at": 0.208209757,
      "line": ""
    },
    {
      "at": 0.208235536,
      "line": "CASE: server request unsupported/example before successful tool result"
    },
    {
      "at": 0.20863574699999998,
      "line": "$ node apps/server/src/bin.ts acp-mcp-call echo '{}'"
    },
    {
      "at": 0.373334209,
      "line": "peer <- {\"jsonrpc\":\"2.0\",\"id\":\"t3-cli-0\",\"method\":\"initialize\",\"params\":...}"
    },
    {
      "at": 0.381279765,
      "line": "peer <- {\"jsonrpc\":\"2.0\",\"method\":\"notifications/initialized\"}"
    },
    {
      "at": 0.38390133600000004,
      "line": "peer <- {\"jsonrpc\":\"2.0\",\"id\":\"t3-cli-1\",\"method\":\"tools/call\",\"params\":...}"
    },
    {
      "at": 0.38402151399999995,
      "line": "peer -> {\"jsonrpc\":\"2.0\",\"id\":\"server-unsupported\",\"method\":\"unsupported/example\"}"
    },
    {
      "at": 0.384061681,
      "line": "peer -> {\"jsonrpc\":\"2.0\",\"id\":\"t3-cli-1\",\"result\":{\"content\":[{\"type\":\"text\",\"text\":\"ok\"}]}}"
    },
    {
      "at": 0.386786768,
      "line": "peer <- {\"jsonrpc\":\"2.0\",\"id\":\"server-unsupported\",\"error\":{\"code\":-32601,\"message\":\"Method not found\"}}"
    },
    {
      "at": 0.38889453199999996,
      "line": "peer <- DELETE session"
    },
    {
      "at": 0.389589834,
      "line": "CLI stdout: {\"content\":[{\"type\":\"text\",\"text\":\"ok\"}]}"
    },
    {
      "at": 0.408807795,
      "line": "CLI exit: 0 | handshake: OK | tool result: OK"
    },
    {
      "at": 0.408882728,
      "line": "Matching method-not-found response: RECEIVED"
    },
    {
      "at": 0.40889674400000003,
      "line": ""
    },
    {
      "at": 0.408904879,
      "line": "RESULT: expected behavior; both server requests answered"
    }
  ],
  "wire": [
    {
      "case": "ping",
      "direction": "client -> peer",
      "message": {
        "jsonrpc": "2.0",
        "id": "t3-cli-0",
        "method": "initialize",
        "params": {
          "protocolVersion": "2025-06-18",
          "capabilities": {},
          "clientInfo": {
            "name": "t3-code-acp-cli",
            "version": "0.0.0"
          }
        }
      }
    },
    {
      "case": "ping",
      "direction": "client -> peer",
      "message": {
        "jsonrpc": "2.0",
        "method": "notifications/initialized"
      }
    },
    {
      "case": "ping",
      "direction": "client -> peer",
      "message": {
        "jsonrpc": "2.0",
        "id": "t3-cli-1",
        "method": "tools/call",
        "params": {
          "name": "echo",
          "arguments": {}
        }
      }
    },
    {
      "case": "ping",
      "direction": "peer -> client",
      "message": {
        "jsonrpc": "2.0",
        "id": "server-ping",
        "method": "ping"
      }
    },
    {
      "case": "ping",
      "direction": "peer -> client",
      "message": {
        "jsonrpc": "2.0",
        "id": "t3-cli-1",
        "result": {
          "content": [
            {
              "type": "text",
              "text": "ok"
            }
          ]
        }
      }
    },
    {
      "case": "ping",
      "direction": "client -> peer",
      "message": {
        "jsonrpc": "2.0",
        "id": "server-ping",
        "result": {}
      }
    },
    {
      "case": "unsupported/example",
      "direction": "client -> peer",
      "message": {
        "jsonrpc": "2.0",
        "id": "t3-cli-0",
        "method": "initialize",
        "params": {
          "protocolVersion": "2025-06-18",
          "capabilities": {},
          "clientInfo": {
            "name": "t3-code-acp-cli",
            "version": "0.0.0"
          }
        }
      }
    },
    {
      "case": "unsupported/example",
      "direction": "client -> peer",
      "message": {
        "jsonrpc": "2.0",
        "method": "notifications/initialized"
      }
    },
    {
      "case": "unsupported/example",
      "direction": "client -> peer",
      "message": {
        "jsonrpc": "2.0",
        "id": "t3-cli-1",
        "method": "tools/call",
        "params": {
          "name": "echo",
          "arguments": {}
        }
      }
    },
    {
      "case": "unsupported/example",
      "direction": "peer -> client",
      "message": {
        "jsonrpc": "2.0",
        "id": "server-unsupported",
        "method": "unsupported/example"
      }
    },
    {
      "case": "unsupported/example",
      "direction": "peer -> client",
      "message": {
        "jsonrpc": "2.0",
        "id": "t3-cli-1",
        "result": {
          "content": [
            {
              "type": "text",
              "text": "ok"
            }
          ]
        }
      }
    },
    {
      "case": "unsupported/example",
      "direction": "client -> peer",
      "message": {
        "jsonrpc": "2.0",
        "id": "server-unsupported",
        "error": {
          "code": -32601,
          "message": "Method not found"
        }
      }
    }
  ]
}