{
"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": "98b38602-ae99-4829-879a-b294192d26e7",
"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": "cdf38b145825b77f6b9b8f43c4911841a03bbd86fa6b42d87a7d8ca52a212f72",
"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": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"result": {
"durable": false,
"notices": [],
"revision": "efdb7113-1509-4502-b4c6-9b61280082fb",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42"
},
"seq": 2,
"type": "response",
"version": 1
}
},
{
"direction": "client",
"frame": {
"id": "r3",
"method": "turn.start",
"params": {
"prompt": "Execute the fixture tool, then answer.",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42"
},
"protocol": "magi-code.local-agent",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"id": "r3",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"result": {
"accepted": true,
"run_id": "427b6b7d-4114-4688-8462-3c77e0cf3940"
},
"seq": 3,
"type": "response",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"durable": true,
"message_id": "8fe15a08-3041-4c24-9190-bd453c41681c",
"revision": "b3ff2ef1-85cb-4bab-8e55-58493c252391",
"run_id": "427b6b7d-4114-4688-8462-3c77e0cf3940",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42"
},
"event": "input.persisted",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 4,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"message_id": "d0dc9c4b-1148-406a-9cd2-a7390b516d71",
"part": 0,
"run_id": "427b6b7d-4114-4688-8462-3c77e0cf3940",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42",
"text": "Before tool. "
},
"event": "message.delta",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 5,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"last_part": true,
"message_id": "d0dc9c4b-1148-406a-9cd2-a7390b516d71",
"part": 0,
"partial": true,
"run_id": "427b6b7d-4114-4688-8462-3c77e0cf3940",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42",
"text": "Before tool. "
},
"event": "message.reconcile",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 6,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"activity_id": "1f35d7c0-ef24-4cfd-b890-aaa9f09e20a9",
"kind": "tool",
"name": "code_mode",
"run_id": "427b6b7d-4114-4688-8462-3c77e0cf3940",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42",
"state": "started",
"summary": "started"
},
"event": "activity",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 7,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"last_part": true,
"message_id": "d0dc9c4b-1148-406a-9cd2-a7390b516d71",
"part": 0,
"partial": true,
"run_id": "427b6b7d-4114-4688-8462-3c77e0cf3940",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42",
"text": "Before tool. "
},
"event": "message.reconcile",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 8,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"activity_id": "b77eb7a0-aac0-4472-9b91-de19531e7d2c",
"kind": "tool",
"name": "write effect.txt",
"run_id": "427b6b7d-4114-4688-8462-3c77e0cf3940",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42",
"state": "started",
"summary": "started"
},
"event": "activity",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 9,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"activity_id": "b77eb7a0-aac0-4472-9b91-de19531e7d2c",
"kind": "tool",
"name": "write effect.txt",
"run_id": "427b6b7d-4114-4688-8462-3c77e0cf3940",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42",
"state": "completed",
"summary": "completed"
},
"event": "activity",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 10,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"activity_id": "1f35d7c0-ef24-4cfd-b890-aaa9f09e20a9",
"kind": "tool",
"name": "code_mode",
"run_id": "427b6b7d-4114-4688-8462-3c77e0cf3940",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42",
"state": "completed",
"summary": "completed"
},
"event": "activity",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 11,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"message_id": "2e8d9cf8-93e7-4e19-b6fb-1941b3267a02",
"part": 0,
"run_id": "427b6b7d-4114-4688-8462-3c77e0cf3940",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42",
"text": "\n\n"
},
"event": "message.delta",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 12,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"message_id": "2e8d9cf8-93e7-4e19-b6fb-1941b3267a02",
"part": 1,
"run_id": "427b6b7d-4114-4688-8462-3c77e0cf3940",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42",
"text": "After tool. <redacted> done."
},
"event": "message.delta",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 13,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"last_part": true,
"message_id": "2e8d9cf8-93e7-4e19-b6fb-1941b3267a02",
"part": 0,
"partial": true,
"run_id": "427b6b7d-4114-4688-8462-3c77e0cf3940",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42",
"text": "After tool. <redacted> done."
},
"event": "message.reconcile",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 14,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"last_part": true,
"message_id": "d0dc9c4b-1148-406a-9cd2-a7390b516d71",
"part": 0,
"partial": false,
"run_id": "427b6b7d-4114-4688-8462-3c77e0cf3940",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42",
"text": "Before tool. "
},
"event": "message.reconcile",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 15,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"last_part": true,
"message_id": "2e8d9cf8-93e7-4e19-b6fb-1941b3267a02",
"part": 0,
"partial": false,
"run_id": "427b6b7d-4114-4688-8462-3c77e0cf3940",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42",
"text": "After tool. <redacted> done."
},
"event": "message.reconcile",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 16,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"error_code": null,
"outcome": "completed",
"persistence": "durable",
"revision": "9ecf1af0-bd1e-40d9-aecc-c0889bc45fb5",
"run_id": "427b6b7d-4114-4688-8462-3c77e0cf3940",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42"
},
"event": "run.finished",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 17,
"type": "event",
"version": 1
}
},
{
"direction": "client",
"frame": {
"id": "r4",
"method": "history.page",
"params": {
"cursor": null,
"revision": "9ecf1af0-bd1e-40d9-aecc-c0889bc45fb5",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42"
},
"protocol": "magi-code.local-agent",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"id": "r4",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"result": {
"complete": true,
"entries": [
{
"kind": "user",
"last_part": true,
"message_id": "5e4766b6-f035-4595-b4bd-7cd6beb077f1",
"part": 0,
"partial": false,
"text": "Execute the fixture tool, then answer."
},
{
"kind": "assistant",
"last_part": true,
"message_id": "fb4a2201-9a67-49d6-baa4-c2a2f1d2c3c4",
"part": 0,
"partial": false,
"text": "Before tool. "
},
{
"kind": "activity",
"last_part": true,
"message_id": "cde480c5-55d1-43d2-93a3-06d1f98260e0",
"part": 0,
"partial": false,
"text": "code_mode: completed"
},
{
"kind": "activity",
"last_part": true,
"message_id": "bb17b3e0-6ce9-4952-b46c-0b90f335c3cd",
"part": 0,
"partial": false,
"text": "write effect.txt: completed"
},
{
"kind": "assistant",
"last_part": true,
"message_id": "3a4d27d1-7d72-47f2-8aea-f093b4f2cf9b",
"part": 0,
"partial": false,
"text": "After tool. <redacted> done."
}
],
"next_cursor": null,
"revision": "9ecf1af0-bd1e-40d9-aecc-c0889bc45fb5",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42"
},
"seq": 18,
"type": "response",
"version": 1
}
},
{
"direction": "client",
"frame": {
"id": "r5",
"method": "turn.cancel",
"params": {
"run_id": "427b6b7d-4114-4688-8462-3c77e0cf3940",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42"
},
"protocol": "magi-code.local-agent",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"error": {
"code": "stale_run"
},
"id": "r5",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 19,
"type": "response",
"version": 1
}
},
{
"direction": "client",
"frame": {
"id": "r6",
"method": "approval.answer",
"params": {
"allow": true,
"approval_id": "old",
"run_id": "427b6b7d-4114-4688-8462-3c77e0cf3940",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42"
},
"protocol": "magi-code.local-agent",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"error": {
"code": "stale_approval"
},
"id": "r6",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 20,
"type": "response",
"version": 1
}
},
{
"direction": "client",
"frame": {
"id": "r7",
"method": "turn.start",
"params": {
"prompt": "Independent next prompt.",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42"
},
"protocol": "magi-code.local-agent",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"id": "r7",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"result": {
"accepted": true,
"run_id": "060095c3-750c-4701-abad-0579b7f71434"
},
"seq": 21,
"type": "response",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"durable": true,
"message_id": "c2acdd39-59e1-43c3-b4a9-0a5050e80971",
"revision": "3bc001a1-187a-4b00-98f7-afcc6626c605",
"run_id": "060095c3-750c-4701-abad-0579b7f71434",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42"
},
"event": "input.persisted",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 22,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"message_id": "f5ab25e6-88ad-43e5-9e73-46928e44888b",
"part": 0,
"run_id": "060095c3-750c-4701-abad-0579b7f71434",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42",
"text": "After tool. <redacted> done."
},
"event": "message.delta",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 23,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"last_part": true,
"message_id": "f5ab25e6-88ad-43e5-9e73-46928e44888b",
"part": 0,
"partial": true,
"run_id": "060095c3-750c-4701-abad-0579b7f71434",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42",
"text": "After tool. <redacted> done."
},
"event": "message.reconcile",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 24,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"last_part": true,
"message_id": "f5ab25e6-88ad-43e5-9e73-46928e44888b",
"part": 0,
"partial": false,
"run_id": "060095c3-750c-4701-abad-0579b7f71434",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42",
"text": "After tool. <redacted> done."
},
"event": "message.reconcile",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 25,
"type": "event",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"data": {
"error_code": null,
"outcome": "completed",
"persistence": "durable",
"revision": "1771471a-3271-4198-bb6b-919cbaf48409",
"run_id": "060095c3-750c-4701-abad-0579b7f71434",
"session_id": "8448499e-b6ee-48a7-b7ac-60893ddcfc42"
},
"event": "run.finished",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"seq": 26,
"type": "event",
"version": 1
}
},
{
"direction": "client",
"frame": {
"id": "r8",
"method": "shutdown",
"params": {},
"protocol": "magi-code.local-agent",
"version": 1
}
},
{
"direction": "backend",
"frame": {
"id": "r8",
"instance_id": "98b38602-ae99-4829-879a-b294192d26e7",
"protocol": "magi-code.local-agent",
"result": {
"state": "stopping"
},
"seq": 27,
"type": "response",
"version": 1
}
}
],
"package_version": "0.96.0",
"platform": "macos",
"protocol": "magi-code.local-agent",
"protocol_version": 1,
"scenario": "tool-turn",
"synthetic": true,
"tested_revision": "490c366c35011ea5aa583eb8406a69ec7f869753"
}