1{"type": "transcript_start", "provider": "opencode", "protocol": "opencode2-http.sse", "version": "2.0.18", "scenario": "opencode2_revert", "metadata": {"source": "opencode2-spike/recordings/revert.ndjson", "capturedAt": "2026-09-28", "nativeSessionId": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "description": "A real OpenCode 2.0.18 session recorded at the HTTP and SSE boundary by the spike recorder: two turns write reverted.txt, then the thread rolls back to the first. Stages send files: false because T3 restores its own checkpoint. T3's per-turn instructions entry (answered 204, as 2.0.18 does) is written before the thread's first turn."}}
2{"type": "expect_outbound", "label": "event.subscribe", "frame": {"type": "event.subscribe"}}
3{"type": "expect_outbound", "label": "model.list", "frame": {"type": "model.list", "input": {"location[directory]": "<any>"}}}
4{"type": "emit_inbound", "label": "model.list.response", "frame": {"type": "sdk.response", "operation": "model.list", "data": {"location": {"directory": "<work>"}, "data": [{"id": "space-bunny-free", "modelID": "space-bunny-free", "providerID": "opencode", "name": "Space Bunny Free", "compatibility": {"reasoningField": "reasoning_content"}, "package": "@opencode/ai/providers/openai-compatible", "settings": {"apiKey": "public", "baseURL": "https://opencode.ai/zen/v1", "provider": "opencode"}, "capabilities": {"tools": true, "input": ["text", "image", "video"], "output": ["text"]}, "variants": [{"id": "low", "settings": {"reasoningEffort": "low"}}, {"id": "medium", "settings": {"reasoningEffort": "medium"}}, {"id": "high", "settings": {"reasoningEffort": "high"}}, {"id": "xhigh", "settings": {"reasoningEffort": "xhigh"}}, {"id": "max", "settings": {"reasoningEffort": "max"}}], "time": {"released": 1790121600000}, "cost": [{"input": 0, "output": 0, "cache": {"read": 0, "write": 0}}], "status": "active", "enabled": true, "limit": {"context": 1048576, "input": 524288, "output": 524288}}, {"id": "big-pickle", "modelID": "big-pickle", "providerID": "opencode", "family": "big-pickle", "name": "Big Pickle", "compatibility": {"reasoningField": "reasoning_content"}, "package": "@opencode/ai/providers/openai-compatible", "settings": {"apiKey": "public", "baseURL": "https://opencode.ai/zen/v1", "provider": "opencode"}, "capabilities": {"tools": true, "input": ["text"], "output": ["text"]}, "variants": [], "time": {"released": 1760659200000}, "cost": [{"input": 0, "output": 0, "cache": {"read": 0, "write": 0}}], "status": "active", "enabled": true, "limit": {"context": 200000, "input": 160000, "output": 32000}}]}}}
5{"type": "emit_inbound", "label": "server.connected", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b410d001mJ5lqjFqXTbW7y", "type": "server.connected", "data": {}}}}
6{"type": "expect_outbound", "label": "session.create", "frame": {"type": "session.create", "input": "<any>"}}
7{"type": "emit_inbound", "label": "session.create.response", "frame": {"type": "sdk.response", "operation": "session.create", "data": {"data": {"id": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "projectID": "global", "model": {"id": "big-pickle", "providerID": "opencode", "variant": "default"}, "cost": 0, "tokens": {"input": 0, "output": 0, "reasoning": 0, "cache": {"read": 0, "write": 0}}, "time": {"created": 1790657118493, "updated": 1790657118493}, "title": "spike revert", "location": {"directory": "<work>"}}}}}
8{"type": "emit_inbound", "label": "session.created", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b411d0014yaniNS8WiN6zE", "created": 1790657118493, "type": "session.created", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "slug": "witty-canyon", "version": "2.0.18", "projectID": "global", "location": {"directory": "<work>"}, "subpath": "", "title": "spike revert", "model": {"id": "big-pickle", "providerID": "opencode"}}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 0, "version": 1}}}}
9{"type": "expect_outbound", "label": "session.instructions.entry.put", "frame": {"type": "session.instructions.entry.put", "input": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "key": "t3-code", "value": "<any>"}}}
10{"type": "emit_inbound", "label": "session.instructions.entry.put.response", "frame": {"type": "sdk.response", "operation": "session.instructions.entry.put", "data": null}}
11{"type": "expect_outbound", "label": "session.prompt", "frame": {"type": "session.prompt", "input": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "id": "msg_0eb7b4129001B7iaT1f3yLkR28", "text": "<any>"}}}
12{"type": "emit_inbound", "label": "session.prompt.response", "frame": {"type": "sdk.response", "operation": "session.prompt", "data": {"data": {"id": "msg_0eb7b4129001B7iaT1f3yLkR28", "sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "time": {"created": 1790657118506}, "type": "user", "payload": {"text": "Create a file named reverted.txt containing the word ALPHA using the write tool, then reply DONE."}, "delivery": "steer"}}}}
13{"type": "emit_inbound", "label": "session.inbox.enqueued", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b412a0017VZ2v8p3ah9908", "created": 1790657118506, "type": "session.inbox.enqueued", "location": {"directory": "<work>"}, "data": {"inboxID": "msg_0eb7b4129001B7iaT1f3yLkR28", "sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "item": {"type": "user", "payload": {"text": "Create a file named reverted.txt containing the word ALPHA using the write tool, then reply DONE."}, "delivery": "steer"}}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 1, "version": 1}}}}
14{"type": "emit_inbound", "label": "session.execution.started", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b412e001bOpRdBrQkbSVMp", "created": 1790657118510, "type": "session.execution.started", "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus"}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 2, "version": 1}}}}
15{"type": "emit_inbound", "label": "session.instructions.updated", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b413a001xqoWzREtM1bxSc", "created": 1790657118522, "metadata": {"instructions": {"initial": true}}, "type": "session.instructions.updated", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "delta": {"core/environment": "1fb93b6d2754d1e11df271151626ea29363330ef925a66431e89b8f87f4f66a8", "core/date": "bf08b8486572ab3eef677a3c9ee12468e411ae41a8f4d2fb6cf02a6ca73f1986", "core/codemode": "616a7ad8b8e40e8a71eab238dfbbe9eaf0f4a9e6fdad853226d075bfe602e1e6", "core/skill-guidance": "0d001919496102654717308c72635523bf7c3cd99c81e058cc79f2947104f9a5"}}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 3, "version": 2}}}}
16{"type": "emit_inbound", "label": "session.inbox.delivered", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b413e001iF0HkIl4131lx9", "created": 1790657118526, "type": "session.inbox.delivered", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "inboxID": "msg_0eb7b4129001B7iaT1f3yLkR28"}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 4, "version": 1}}}}
17{"type": "emit_inbound", "label": "session.step.started", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4621001PpfIT7TbTMOC3o", "created": 1790657119777, "type": "session.step.started", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "agent": "build", "model": {"id": "big-pickle", "providerID": "opencode", "variant": "default"}, "assistantMessageID": "msg_0eb7b4146001Y63G7t2Pk1IpJJ", "snapshot": "99482b54df6361365fa0ed7363ccf07edaa7fc93", "started": 1790657118562}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 5, "version": 1}}}}
18{"type": "emit_inbound", "label": "session.tool.input.started", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4629001vDeYhyfdppCTJY", "created": 1790657119785, "type": "session.tool.input.started", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b4146001Y63G7t2Pk1IpJJ", "id": "call-146cafaa-f178-4ab4-8008-a118b7518a98", "name": "write"}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 6, "version": 1}}}}
19{"type": "emit_inbound", "label": "session.tool.input.ended", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4676001RW4QaJDxBLgumo", "created": 1790657119862, "type": "session.tool.input.ended", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b4146001Y63G7t2Pk1IpJJ", "id": "call-146cafaa-f178-4ab4-8008-a118b7518a98", "text": "{\"path\":\"reverted.txt\",\"content\":\"ALPHA\\n\"}"}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 7, "version": 1}}}}
20{"type": "emit_inbound", "label": "session.tool.called", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4679001aZnw5iwUvLu09y", "created": 1790657119865, "type": "session.tool.called", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b4146001Y63G7t2Pk1IpJJ", "id": "call-146cafaa-f178-4ab4-8008-a118b7518a98", "input": {"path": "reverted.txt", "content": "ALPHA\n"}, "executed": false}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 8, "version": 1}}}}
21{"type": "emit_inbound", "label": "session.step.streamed", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b467b001zeIGHvSO3fjAqH", "created": 1790657119868, "type": "session.step.streamed", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b4146001Y63G7t2Pk1IpJJ"}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 9, "version": 1}}}}
22{"type": "emit_inbound", "label": "session.tool.success", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4683001gOY1icnL1L3QxE", "created": 1790657119875, "type": "session.tool.success", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b4146001Y63G7t2Pk1IpJJ", "id": "call-146cafaa-f178-4ab4-8008-a118b7518a98", "content": [{"type": "text", "text": "Created file successfully: reverted.txt"}], "metadata": {"truncated": false}, "executed": false}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 10, "version": 2}}}}
23{"type": "emit_inbound", "label": "session.step.ended", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b46a2001FMOJ74ERzgyvWH", "created": 1790657119906, "type": "session.step.ended", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b4146001Y63G7t2Pk1IpJJ", "finish": "tool-calls", "rawFinish": "tool_calls", "cost": 0, "tokens": {"input": 8801, "output": 40, "reasoning": 0, "cache": {"read": 384, "write": 0}}, "snapshot": "d580eac455a946e5bef414d21d0abbfb32eabdae", "files": ["reverted.txt"]}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 11, "version": 1}}}}
24{"type": "emit_inbound", "label": "session.usage.updated", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b46a6001FqCcMFVD4Kn6x4", "created": 1790657119910, "type": "session.usage.updated", "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "cost": 0, "tokens": {"input": 8801, "output": 40, "reasoning": 0, "cache": {"read": 384, "write": 0}}}}}}
25{"type": "emit_inbound", "label": "session.step.started.2", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4b41001DXqoodCWWUDDiE", "created": 1790657121089, "type": "session.step.started", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "agent": "build", "model": {"id": "big-pickle", "providerID": "opencode", "variant": "default"}, "assistantMessageID": "msg_0eb7b46b2001GnMZuEFelqdw4Z", "snapshot": "d580eac455a946e5bef414d21d0abbfb32eabdae", "started": 1790657119945}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 12, "version": 1}}}}
26{"type": "emit_inbound", "label": "session.text.started", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4b4c001A8H90thE772xBC", "created": 1790657121100, "type": "session.text.started", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b46b2001GnMZuEFelqdw4Z", "ordinal": 0}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 13, "version": 1}}}}
27{"type": "emit_inbound", "label": "session.text.delta", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4b54001RcZuNFSEwZvbQ3", "created": 1790657121108, "type": "session.text.delta", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b46b2001GnMZuEFelqdw4Z", "ordinal": 0, "delta": "DONE"}}}}
28{"type": "emit_inbound", "label": "session.text.ended", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4b57001RNxUsI8vWN99K3", "created": 1790657121111, "type": "session.text.ended", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b46b2001GnMZuEFelqdw4Z", "ordinal": 0, "text": "DONE"}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 14, "version": 1}}}}
29{"type": "emit_inbound", "label": "session.step.streamed.2", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4b5a001w4hYVv4N6AhV6y", "created": 1790657121114, "type": "session.step.streamed", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b46b2001GnMZuEFelqdw4Z"}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 15, "version": 1}}}}
30{"type": "emit_inbound", "label": "session.step.ended.2", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4b6c001vwxl0D9IdpNj5l", "created": 1790657121132, "type": "session.step.ended", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b46b2001GnMZuEFelqdw4Z", "finish": "stop", "rawFinish": "stop", "cost": 0, "tokens": {"input": 30, "output": 4, "reasoning": 0, "cache": {"read": 9216, "write": 0}}, "snapshot": "d580eac455a946e5bef414d21d0abbfb32eabdae", "files": []}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 16, "version": 1}}}}
31{"type": "emit_inbound", "label": "session.usage.updated.2", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4b700016FlQ47T6vT5wWI", "created": 1790657121136, "type": "session.usage.updated", "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "cost": 0, "tokens": {"input": 8831, "output": 44, "reasoning": 0, "cache": {"read": 9600, "write": 0}}}}}}
32{"type": "emit_inbound", "label": "session.execution.succeeded", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4b71001ZeYwxZ7kxCeClt", "created": 1790657121137, "type": "session.execution.succeeded", "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus"}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 17, "version": 1}}}}
33{"type": "expect_outbound", "label": "session.prompt.2", "frame": {"type": "session.prompt", "input": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "id": "msg_0eb7b4b79001y4nhrY7WvzIH4b", "text": "<any>"}}}
34{"type": "emit_inbound", "label": "session.prompt.response.2", "frame": {"type": "sdk.response", "operation": "session.prompt", "data": {"data": {"id": "msg_0eb7b4b79001y4nhrY7WvzIH4b", "sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "time": {"created": 1790657121146}, "type": "user", "payload": {"text": "Overwrite reverted.txt so it contains the word BETA using the write tool, then reply DONE."}, "delivery": "steer"}}}}
35{"type": "emit_inbound", "label": "session.inbox.enqueued.2", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4b7a001uuAbLVOFQgFoH7", "created": 1790657121146, "type": "session.inbox.enqueued", "location": {"directory": "<work>"}, "data": {"inboxID": "msg_0eb7b4b79001y4nhrY7WvzIH4b", "sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "item": {"type": "user", "payload": {"text": "Overwrite reverted.txt so it contains the word BETA using the write tool, then reply DONE."}, "delivery": "steer"}}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 18, "version": 1}}}}
36{"type": "emit_inbound", "label": "session.execution.started.2", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4b7d001eTYSFJQzpplVYf", "created": 1790657121149, "type": "session.execution.started", "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus"}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 19, "version": 1}}}}
37{"type": "emit_inbound", "label": "session.inbox.delivered.2", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4b88001uSD2xopMciXtS6", "created": 1790657121160, "type": "session.inbox.delivered", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "inboxID": "msg_0eb7b4b79001y4nhrY7WvzIH4b"}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 20, "version": 1}}}}
38{"type": "emit_inbound", "label": "session.step.started.3", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4f01001YSV3rEN2SIp55c", "created": 1790657122049, "type": "session.step.started", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "agent": "build", "model": {"id": "big-pickle", "providerID": "opencode", "variant": "default"}, "assistantMessageID": "msg_0eb7b4b900014IYY7YZyY6DkUm", "snapshot": "d580eac455a946e5bef414d21d0abbfb32eabdae", "started": 1790657121195}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 21, "version": 1}}}}
39{"type": "emit_inbound", "label": "session.tool.input.started.2", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4f05001pj1eM1uKGLRukC", "created": 1790657122053, "type": "session.tool.input.started", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b4b900014IYY7YZyY6DkUm", "id": "call-4a391b60-0f17-48d3-afa1-b79f4004cae7", "name": "write"}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 22, "version": 1}}}}
40{"type": "emit_inbound", "label": "session.tool.input.ended.2", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4f78001MRq0Ce0HBh764R", "created": 1790657122168, "type": "session.tool.input.ended", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b4b900014IYY7YZyY6DkUm", "id": "call-4a391b60-0f17-48d3-afa1-b79f4004cae7", "text": "{\"path\":\"reverted.txt\",\"content\":\"BETA\\n\"}"}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 23, "version": 1}}}}
41{"type": "emit_inbound", "label": "session.tool.called.2", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4f7b001qvxLxuY6b2Ewut", "created": 1790657122171, "type": "session.tool.called", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b4b900014IYY7YZyY6DkUm", "id": "call-4a391b60-0f17-48d3-afa1-b79f4004cae7", "input": {"path": "reverted.txt", "content": "BETA\n"}, "executed": false}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 24, "version": 1}}}}
42{"type": "emit_inbound", "label": "session.step.streamed.3", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4f7e001pcuDJAVYr6JFcp", "created": 1790657122174, "type": "session.step.streamed", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b4b900014IYY7YZyY6DkUm"}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 25, "version": 1}}}}
43{"type": "emit_inbound", "label": "session.tool.success.2", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4f86001FL7hn8Or8Kifw7", "created": 1790657122182, "type": "session.tool.success", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b4b900014IYY7YZyY6DkUm", "id": "call-4a391b60-0f17-48d3-afa1-b79f4004cae7", "content": [{"type": "text", "text": "Wrote file successfully: reverted.txt"}], "metadata": {"truncated": false}, "executed": false}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 26, "version": 2}}}}
44{"type": "emit_inbound", "label": "session.step.ended.3", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4fae001xhtOoTn0bZSP8W", "created": 1790657122222, "type": "session.step.ended", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b4b900014IYY7YZyY6DkUm", "finish": "tool-calls", "rawFinish": "tool_calls", "cost": 0, "tokens": {"input": 63, "output": 39, "reasoning": 0, "cache": {"read": 9216, "write": 0}}, "snapshot": "aff42fe121ca6ba7ff4cd8ff03b92c4653937c1e", "files": ["reverted.txt"]}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 27, "version": 1}}}}
45{"type": "emit_inbound", "label": "session.usage.updated.3", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b4fb2001In0EV1zpiuDeBL", "created": 1790657122226, "type": "session.usage.updated", "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "cost": 0, "tokens": {"input": 8894, "output": 83, "reasoning": 0, "cache": {"read": 18816, "write": 0}}}}}}
46{"type": "emit_inbound", "label": "session.step.started.4", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b52ff001Pnow2hevlx3iAp", "created": 1790657123072, "type": "session.step.started", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "agent": "build", "model": {"id": "big-pickle", "providerID": "opencode", "variant": "default"}, "assistantMessageID": "msg_0eb7b4fc1001jd3wUmiUPduL54", "snapshot": "aff42fe121ca6ba7ff4cd8ff03b92c4653937c1e", "started": 1790657122266}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 28, "version": 1}}}}
47{"type": "emit_inbound", "label": "session.text.started.2", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b5303001n2LyUg2Lrzvp0c", "created": 1790657123075, "type": "session.text.started", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b4fc1001jd3wUmiUPduL54", "ordinal": 0}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 29, "version": 1}}}}
48{"type": "emit_inbound", "label": "session.text.delta.2", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b5316001jENjxGDnzE35ec", "created": 1790657123094, "type": "session.text.delta", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b4fc1001jd3wUmiUPduL54", "ordinal": 0, "delta": "DONE"}}}}
49{"type": "emit_inbound", "label": "session.text.ended.2", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b5317001aZKstXQjBbe5xi", "created": 1790657123095, "type": "session.text.ended", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b4fc1001jd3wUmiUPduL54", "ordinal": 0, "text": "DONE"}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 30, "version": 1}}}}
50{"type": "emit_inbound", "label": "session.step.streamed.4", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b531a0011GicyMC5xAsJWy", "created": 1790657123098, "type": "session.step.streamed", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b4fc1001jd3wUmiUPduL54"}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 31, "version": 1}}}}
51{"type": "emit_inbound", "label": "session.step.ended.4", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b5328001InlyUFAKg7pkcR", "created": 1790657123112, "type": "session.step.ended", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "assistantMessageID": "msg_0eb7b4fc1001jd3wUmiUPduL54", "finish": "stop", "rawFinish": "stop", "cost": 0, "tokens": {"input": 124, "output": 4, "reasoning": 0, "cache": {"read": 9216, "write": 0}}, "snapshot": "aff42fe121ca6ba7ff4cd8ff03b92c4653937c1e", "files": []}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 32, "version": 1}}}}
52{"type": "emit_inbound", "label": "session.usage.updated.4", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b532c001iSqv9ja5oJJh5r", "created": 1790657123116, "type": "session.usage.updated", "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "cost": 0, "tokens": {"input": 9018, "output": 87, "reasoning": 0, "cache": {"read": 28032, "write": 0}}}}}}
53{"type": "emit_inbound", "label": "session.execution.succeeded.2", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b532e001ZS3mBEHiZ7I7cn", "created": 1790657123118, "type": "session.execution.succeeded", "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus"}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 33, "version": 1}}}}
54{"type": "expect_outbound", "label": "message.list.users.1", "frame": {"type": "message.list", "input": "<any>"}}
55{"type": "emit_inbound", "label": "message.list.users.response.1", "frame": {"type": "sdk.response", "operation": "message.list", "data": {"data": [{"id": "msg_0eb7b4b79001y4nhrY7WvzIH4b", "time": {"created": 1790657121160}, "text": "Overwrite reverted.txt so it contains the word BETA using the write tool, then reply DONE.", "type": "user"}, {"id": "msg_0eb7b4129001B7iaT1f3yLkR28", "time": {"created": 1790657118526}, "text": "Create a file named reverted.txt containing the word ALPHA using the write tool, then reply DONE.", "type": "user"}], "cursor": {"next": "cursor-after-first-page"}}}}
56{"type": "expect_outbound", "label": "message.list.users.1b", "frame": {"type": "message.list", "input": "<any>"}}
57{"type": "emit_inbound", "label": "message.list.users.response.1b", "frame": {"type": "sdk.response", "operation": "message.list", "data": {"data": [], "cursor": {}}}}
58{"type": "expect_outbound", "label": "session.revert.stage.1", "frame": {"type": "session.revert.stage", "input": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "messageID": "msg_0eb7b4b79001y4nhrY7WvzIH4b", "files": false}}}
59{"type": "emit_inbound", "label": "session.revert.stage.response.1", "frame": {"type": "sdk.response", "operation": "session.revert.stage", "data": {"data": {"messageID": "msg_0eb7b4b79001y4nhrY7WvzIH4b", "snapshot": "aff42fe121ca6ba7ff4cd8ff03b92c4653937c1e", "files": []}}}}
60{"type": "emit_inbound", "label": "session.revert.staged", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b5373001KgvYcl3wXRr4ok", "created": 1790657123187, "type": "session.revert.staged", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "revert": {"messageID": "msg_0eb7b4b79001y4nhrY7WvzIH4b", "snapshot": "aff42fe121ca6ba7ff4cd8ff03b92c4653937c1e", "files": []}}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 34, "version": 1}}}}
61{"type": "expect_outbound", "label": "session.revert.commit", "frame": {"type": "session.revert.commit", "input": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus"}}}
62{"type": "emit_inbound", "label": "session.revert.committed", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7b53d8001i9FEBuTU2HtYwD", "created": 1790657123288, "type": "session.revert.committed", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "to": "msg_0eb7b4b79001y4nhrY7WvzIH4b"}, "durable": {"aggregateID": "ses_f1484bef1ffeGfSJ1e2FXLCaus", "seq": 39, "version": 1}}}}
63{"type": "emit_inbound", "label": "session.revert.commit.response", "frame": {"type": "sdk.response", "operation": "session.revert.commit", "data": null}}
64{"type": "expect_outbound", "label": "message.list.2", "frame": {"type": "message.list", "input": "<any>"}}
65{"type": "emit_inbound", "label": "message.list.response.2", "frame": {"type": "sdk.response", "operation": "message.list", "data": {"data": [{"id": "msg_0eb7b4129001B7iaT1f3yLkR28", "time": {"created": 1790657118526}, "text": "Create a file named reverted.txt containing the word ALPHA using the write tool, then reply DONE.", "type": "user"}, {"id": "msg_0eb7b4146001Y63G7t2Pk1IpJJ", "time": {"created": 1790657118562, "streamed": 1790657119868, "completed": 1790657119906}, "type": "assistant", "agent": "build", "model": {"id": "big-pickle", "providerID": "opencode", "variant": "default"}, "content": [{"type": "tool", "id": "call-146cafaa-f178-4ab4-8008-a118b7518a98", "name": "write", "executed": false, "state": {"status": "completed", "input": {"path": "reverted.txt", "content": "ALPHA\n"}, "content": [{"type": "text", "text": "Created file successfully: reverted.txt"}], "metadata": {"truncated": false}}, "time": {"created": 1790657119785, "ran": 1790657119865, "completed": 1790657119875}}], "snapshot": {"start": "99482b54df6361365fa0ed7363ccf07edaa7fc93", "end": "d580eac455a946e5bef414d21d0abbfb32eabdae", "files": ["reverted.txt"]}, "finish": "tool-calls", "rawFinish": "tool_calls", "cost": 0, "tokens": {"input": 8801, "output": 40, "reasoning": 0, "cache": {"read": 384, "write": 0}}}, {"id": "msg_0eb7b46b2001GnMZuEFelqdw4Z", "time": {"created": 1790657119945, "streamed": 1790657121114, "completed": 1790657121132}, "type": "assistant", "agent": "build", "model": {"id": "big-pickle", "providerID": "opencode", "variant": "default"}, "content": [{"type": "text", "text": "DONE"}], "snapshot": {"start": "d580eac455a946e5bef414d21d0abbfb32eabdae", "end": "d580eac455a946e5bef414d21d0abbfb32eabdae", "files": []}, "finish": "stop", "rawFinish": "stop", "cost": 0, "tokens": {"input": 30, "output": 4, "reasoning": 0, "cache": {"read": 9216, "write": 0}}}, {"id": "msg_0eb7b4b71001ZeYwxZ7kxCeClt", "time": {"created": 1790657121137}, "type": "idle", "outcome": "succeeded"}], "cursor": {"previous": "eyJpZCI6Im1zZ18wZWI3YjQxMjkwMDFCN2lhVDFmM3lMa1IyOCIsIm9yZGVyIjoiYXNjIiwiZGlyZWN0aW9uIjoicHJldmlvdXMifQ", "next": "eyJpZCI6Im1zZ18wZWI3YjRiNzEwMDFaZVl3eFo3a3hDZUNsdCIsIm9yZGVyIjoiYXNjIiwiZGlyZWN0aW9uIjoibmV4dCJ9"}}}}
66{"type": "expect_outbound", "label": "message.list.history.2", "frame": {"type": "message.list", "input": "<any>"}}
67{"type": "emit_inbound", "label": "message.list.history.response.2", "frame": {"type": "sdk.response", "operation": "message.list", "data": {"data": [], "cursor": {}}}}
68{"type": "runtime_exit", "status": "success"}