{
  "sha": "6f21b0f02a8e128374e2a44a48f8b45b270be9f7",
  "side": "before",
  "events": [
    {
      "at": 0.00002766300000000399,
      "line": "ACP terminal MCP | BEFORE | 6f21b0f02a"
    },
    {
      "at": 0.0007114520000000013,
      "line": "Linux x86_64 | Node v26.12.1 | effect 4.1.3"
    },
    {
      "at": 0.0007511980000000023,
      "line": "Real CLI subprocess + real loopback HTTP/SSE peer; fresh synthetic state"
    },
    {
      "at": 0.0007718470000000011,
      "line": ""
    },
    {
      "at": 0.0007889390000000063,
      "line": "CASE: server request ping before successful tool result"
    },
    {
      "at": 0.003081716,
      "line": "$ node apps/server/src/bin.ts acp-mcp-call echo '{}'"
    },
    {
      "at": 0.170882502,
      "line": "peer <- {\"jsonrpc\":\"2.0\",\"id\":\"t3-cli-0\",\"method\":\"initialize\",\"params\":...}"
    },
    {
      "at": 0.180325573,
      "line": "peer <- {\"jsonrpc\":\"2.0\",\"method\":\"notifications/initialized\"}"
    },
    {
      "at": 0.182531063,
      "line": "peer <- {\"jsonrpc\":\"2.0\",\"id\":\"t3-cli-1\",\"method\":\"tools/call\",\"params\":...}"
    },
    {
      "at": 0.182650169,
      "line": "peer -> {\"jsonrpc\":\"2.0\",\"id\":\"server-ping\",\"method\":\"ping\"}"
    },
    {
      "at": 0.182780597,
      "line": "peer -> {\"jsonrpc\":\"2.0\",\"id\":\"t3-cli-1\",\"result\":{\"content\":[{\"type\":\"text\",\"text\":\"ok\"}]}}"
    },
    {
      "at": 0.18486834300000002,
      "line": "peer <- DELETE session"
    },
    {
      "at": 0.18560258899999998,
      "line": "CLI stdout: {\"content\":[{\"type\":\"text\",\"text\":\"ok\"}]}"
    },
    {
      "at": 0.206440898,
      "line": "CLI exit: 0 | handshake: OK | tool result: OK"
    },
    {
      "at": 0.20654150899999998,
      "line": "Matching empty result: MISSING"
    },
    {
      "at": 0.206559504,
      "line": ""
    },
    {
      "at": 0.206570956,
      "line": "CASE: server request unsupported/example before successful tool result"
    },
    {
      "at": 0.206866437,
      "line": "$ node apps/server/src/bin.ts acp-mcp-call echo '{}'"
    },
    {
      "at": 0.386727257,
      "line": "peer <- {\"jsonrpc\":\"2.0\",\"id\":\"t3-cli-0\",\"method\":\"initialize\",\"params\":...}"
    },
    {
      "at": 0.395168503,
      "line": "peer <- {\"jsonrpc\":\"2.0\",\"method\":\"notifications/initialized\"}"
    },
    {
      "at": 0.397986487,
      "line": "peer <- {\"jsonrpc\":\"2.0\",\"id\":\"t3-cli-1\",\"method\":\"tools/call\",\"params\":...}"
    },
    {
      "at": 0.39807191000000003,
      "line": "peer -> {\"jsonrpc\":\"2.0\",\"id\":\"server-unsupported\",\"method\":\"unsupported/example\"}"
    },
    {
      "at": 0.398111014,
      "line": "peer -> {\"jsonrpc\":\"2.0\",\"id\":\"t3-cli-1\",\"result\":{\"content\":[{\"type\":\"text\",\"text\":\"ok\"}]}}"
    },
    {
      "at": 0.400911625,
      "line": "peer <- DELETE session"
    },
    {
      "at": 0.401608218,
      "line": "CLI stdout: {\"content\":[{\"type\":\"text\",\"text\":\"ok\"}]}"
    },
    {
      "at": 0.432784919,
      "line": "CLI exit: 0 | handshake: OK | tool result: OK"
    },
    {
      "at": 0.432862046,
      "line": "Matching method-not-found response: MISSING"
    },
    {
      "at": 0.43287706400000003,
      "line": ""
    },
    {
      "at": 0.43288525,
      "line": "RESULT: defect reproduced; interleaved server requests dropped"
    }
  ],
  "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": "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"
            }
          ]
        }
      }
    }
  ]
}