{
"fixture_version": 1,
"frames": [
{
"direction": "client",
"frame": {
"id": "r1",
"method": "initialize",
"params": {
"required_capabilities": [
"turn.start",
"turn.cancel",
"approval.answer"
]
},
"protocol": "magi-code.local-agent",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"id": "r1",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"result": {
"capabilities": [
"initialize",
"status",
"shutdown",
"session.create",
"session.open",
"history.page",
"turn.start",
"turn.cancel",
"approval.answer"
],
"limits": {
"content_chunk_bytes": 16384,
"frame_bytes": 65536,
"history_page_bytes": 32768,
"history_page_entries": 100,
"id_bytes": 64,
"json_depth": 32,
"output_deadline_ms": 2000,
"pending_responses": 32,
"prompt_bytes": 16384,
"requests_per_child": 4096
},
"status": {
"context_id": "cd4fa843cc3aa02c40521f3da04ed302754334662ac932dcd96af0e2511128a4",
"model": "fixture-model",
"provider": "fixture",
"readiness": "ready",
"run_id": null,
"session_id": null,
"state": "idle"
}
},
"seq": 1,
"type": "response",
"version": 1
}
},
{
"direction": "client",
"frame": {
"id": "r2",
"method": "session.create",
"params": {},
"protocol": "magi-code.local-agent",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"id": "r2",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"result": {
"durable": false,
"notices": [],
"revision": "c14488ea-e0db-40db-956e-ef0c637365ee",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67"
},
"seq": 2,
"type": "response",
"version": 1
}
},
{
"direction": "client",
"frame": {
"id": "r3",
"method": "turn.start",
"params": {
"prompt": "One protected command.",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67"
},
"protocol": "magi-code.local-agent",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"id": "r3",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"result": {
"accepted": true,
"run_id": "a585d7ac-a063-44f2-8a7c-989ecf18b68e"
},
"seq": 3,
"type": "response",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"durable": true,
"message_id": "75eef64f-7cab-491f-9e38-2aace1022312",
"revision": "76642f8d-f524-4291-9856-f965cf2a8b0d",
"run_id": "a585d7ac-a063-44f2-8a7c-989ecf18b68e",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67"
},
"event": "input.persisted",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"seq": 4,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"message_id": "ab9b70c1-84dc-4eba-80e7-c5bd93c8e1b1",
"part": 0,
"run_id": "a585d7ac-a063-44f2-8a7c-989ecf18b68e",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67",
"text": "Before tool. "
},
"event": "message.delta",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"seq": 5,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"last_part": true,
"message_id": "ab9b70c1-84dc-4eba-80e7-c5bd93c8e1b1",
"part": 0,
"partial": true,
"run_id": "a585d7ac-a063-44f2-8a7c-989ecf18b68e",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67",
"text": "Before tool. "
},
"event": "message.reconcile",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"seq": 6,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"activity_id": "8cbb5877-21c0-4b54-81d5-01021ace1ee1",
"kind": "tool",
"name": "bash printf x >> effect.txt",
"run_id": "a585d7ac-a063-44f2-8a7c-989ecf18b68e",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67",
"state": "started",
"summary": "started"
},
"event": "activity",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"seq": 7,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"last_part": true,
"message_id": "ab9b70c1-84dc-4eba-80e7-c5bd93c8e1b1",
"part": 0,
"partial": true,
"run_id": "a585d7ac-a063-44f2-8a7c-989ecf18b68e",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67",
"text": "Before tool. "
},
"event": "message.reconcile",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"seq": 8,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"approval_id": "0ec9786d-71cb-4c65-a058-2183a76ff396",
"expires_in_ms": 60000,
"run_id": "a585d7ac-a063-44f2-8a7c-989ecf18b68e",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67",
"summary": "printf x >> effect.txt"
},
"event": "approval.requested",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"seq": 9,
"type": "event",
"version": 1
}
},
{
"direction": "client",
"frame": {
"id": "r4",
"method": "status",
"params": {},
"protocol": "magi-code.local-agent",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"id": "r4",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"result": {
"context_id": "cd4fa843cc3aa02c40521f3da04ed302754334662ac932dcd96af0e2511128a4",
"model": "fixture-model",
"provider": "fixture",
"readiness": "ready",
"run_id": "a585d7ac-a063-44f2-8a7c-989ecf18b68e",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67",
"state": "running"
},
"seq": 10,
"type": "response",
"version": 1
}
},
{
"direction": "client",
"frame": {
"id": "r5",
"method": "approval.answer",
"params": {
"allow": true,
"approval_id": "00000000-0000-0000-0000-000000000000",
"run_id": "a585d7ac-a063-44f2-8a7c-989ecf18b68e",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67"
},
"protocol": "magi-code.local-agent",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"error": {
"code": "stale_approval"
},
"id": "r5",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"seq": 11,
"type": "response",
"version": 1
}
},
{
"direction": "client",
"frame": {
"id": "r6",
"method": "approval.answer",
"params": {
"allow": true,
"approval_id": "0ec9786d-71cb-4c65-a058-2183a76ff396",
"run_id": "a585d7ac-a063-44f2-8a7c-989ecf18b68e",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67"
},
"protocol": "magi-code.local-agent",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"id": "r6",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"result": {
"recorded": true
},
"seq": 12,
"type": "response",
"version": 1
}
},
{
"direction": "client",
"frame": {
"id": "r7",
"method": "approval.answer",
"params": {
"allow": true,
"approval_id": "0ec9786d-71cb-4c65-a058-2183a76ff396",
"run_id": "a585d7ac-a063-44f2-8a7c-989ecf18b68e",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67"
},
"protocol": "magi-code.local-agent",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"error": {
"code": "stale_approval"
},
"id": "r7",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"seq": 13,
"type": "response",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"activity_id": "8cbb5877-21c0-4b54-81d5-01021ace1ee1",
"kind": "tool",
"name": "bash printf x >> effect.txt",
"run_id": "a585d7ac-a063-44f2-8a7c-989ecf18b68e",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67",
"state": "completed",
"summary": "completed"
},
"event": "activity",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"seq": 14,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"message_id": "ac030562-b951-4f1f-94fd-776976a44040",
"part": 0,
"run_id": "a585d7ac-a063-44f2-8a7c-989ecf18b68e",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67",
"text": "\n\n"
},
"event": "message.delta",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"seq": 15,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"message_id": "ac030562-b951-4f1f-94fd-776976a44040",
"part": 1,
"run_id": "a585d7ac-a063-44f2-8a7c-989ecf18b68e",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67",
"text": "After tool."
},
"event": "message.delta",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"seq": 16,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"last_part": true,
"message_id": "ac030562-b951-4f1f-94fd-776976a44040",
"part": 0,
"partial": true,
"run_id": "a585d7ac-a063-44f2-8a7c-989ecf18b68e",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67",
"text": "After tool."
},
"event": "message.reconcile",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"seq": 17,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"last_part": true,
"message_id": "ab9b70c1-84dc-4eba-80e7-c5bd93c8e1b1",
"part": 0,
"partial": false,
"run_id": "a585d7ac-a063-44f2-8a7c-989ecf18b68e",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67",
"text": "Before tool. "
},
"event": "message.reconcile",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"seq": 18,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"last_part": true,
"message_id": "ac030562-b951-4f1f-94fd-776976a44040",
"part": 0,
"partial": false,
"run_id": "a585d7ac-a063-44f2-8a7c-989ecf18b68e",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67",
"text": "After tool."
},
"event": "message.reconcile",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"seq": 19,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"error_code": null,
"outcome": "completed",
"persistence": "durable",
"revision": "6ba75c42-f370-4f03-94a9-c5202cb38c7a",
"run_id": "a585d7ac-a063-44f2-8a7c-989ecf18b68e",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67"
},
"event": "run.finished",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"seq": 20,
"type": "event",
"version": 1
}
},
{
"direction": "client",
"frame": {
"id": "r8",
"method": "approval.answer",
"params": {
"allow": true,
"approval_id": "0ec9786d-71cb-4c65-a058-2183a76ff396",
"run_id": "a585d7ac-a063-44f2-8a7c-989ecf18b68e",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67"
},
"protocol": "magi-code.local-agent",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"error": {
"code": "stale_approval"
},
"id": "r8",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"seq": 21,
"type": "response",
"version": 1
}
},
{
"direction": "client",
"frame": {
"id": "r9",
"method": "history.page",
"params": {
"revision": "6ba75c42-f370-4f03-94a9-c5202cb38c7a",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67"
},
"protocol": "magi-code.local-agent",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"id": "r9",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"result": {
"complete": true,
"entries": [
{
"kind": "user",
"last_part": true,
"message_id": "caea7545-7945-4733-9a83-ea3d474dc5e2",
"part": 0,
"partial": false,
"text": "One protected command."
},
{
"kind": "assistant",
"last_part": true,
"message_id": "798b2adb-a58b-4e15-923c-b371818b02b8",
"part": 0,
"partial": false,
"text": "Before tool. "
},
{
"kind": "activity",
"last_part": true,
"message_id": "9141091b-7dda-4d95-8260-7c71d0309ae2",
"part": 0,
"partial": false,
"text": "bash printf x >> effect.txt: completed"
},
{
"kind": "assistant",
"last_part": true,
"message_id": "99e15a52-0244-4549-9e75-6de06abb0da3",
"part": 0,
"partial": false,
"text": "After tool."
}
],
"next_cursor": null,
"revision": "6ba75c42-f370-4f03-94a9-c5202cb38c7a",
"session_id": "881e39dd-2a43-4f67-9ad9-68cd50991d67"
},
"seq": 22,
"type": "response",
"version": 1
}
},
{
"direction": "client",
"frame": {
"id": "r10",
"method": "shutdown",
"params": {},
"protocol": "magi-code.local-agent",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"id": "r10",
"instance_id": "f28d2fdd-24bb-4c4c-922f-aaddae63f557",
"protocol": "magi-code.local-agent",
"result": {
"state": "stopping"
},
"seq": 23,
"type": "response",
"version": 1
}
}
],
"package_version": "0.96.0",
"platform": "macos",
"protocol": "magi-code.local-agent",
"protocol_version": 1,
"scenario": "approval-allow",
"synthetic": true,
"tested_revision": "490c366c35011ea5aa583eb8406a69ec7f869753"
}