Across 2,226 recorded DS-Bench and DeepSWE rollouts, 14% of apply_patch
calls arrived as {"input": ...} and were rejected for the missing `patch`
property: models trained on the Codex tool send its parameter name
unprompted. The schema now uses `input`; the executor request keeps its
internal `patch` field. Recorded apply-patch sessions, the schema sidecar,
and the catalogs follow.
30 lines
15 KiB
JSON
30 lines
15 KiB
JSON
{"type":"session","version":4,"id":"{{session:1}}","createdAt":1792123129533,"cwd":"{{cwd}}","isSeeded":false,"delegationDepth":0}
|
|
{"type":"permission/preset","data":{"preset":"danger-full-access"}}
|
|
{"type":"sandbox/mode","data":{"mode":"danger-full-access"}}
|
|
{"type":"approval/policy","data":{"policy":"never"}}
|
|
{"type":"agent/inbox/spliced","data":{"target":"next-turn","start":0,"inserted":[{"content":[{"type":"text","text":"Read src/a.ts and src/b.ts, then use one apply_patch call to change alpha to ALPHA in src/a.ts, beta to BETA in src/b.ts, and create src/c.ts containing export const c = 3; followed by a newline. Use no other mutation tool."}],"source":{"kind":"user"},"role":"user","id":"{{message:1}}"}]}}
|
|
{"type":"turn/start","data":{"turn":1}}
|
|
{"type":"agent/inbox/spliced","data":{"target":"next-turn","start":0,"removedCount":1,"inserted":[]}}
|
|
{"type":"step/start","data":{"turn":1,"step":1}}
|
|
{"type":"system/message","data":{"turn":1,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt"},"id":"{{message:2}}"}},"surfaceOp":"append"}
|
|
{"type":"user/message","data":{"content":[{"type":"text","text":"Read src/a.ts and src/b.ts, then use one apply_patch call to change alpha to ALPHA in src/a.ts, beta to BETA in src/b.ts, and create src/c.ts containing export const c = 3; followed by a newline. Use no other mutation tool."}],"source":{"kind":"user"},"role":"user","id":"{{message:1}}"},"surfaceOp":"append"}
|
|
{"type":"user/message","data":{"content":[{"type":"text","text":"Current runtime context. This snapshot supersedes earlier runtime-context snapshots.\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."}],"source":{"kind":"runtime-context","form":"snapshot","sections":[{"name":"working-directory:current","text":"Current working directory: \"{{cwd}}\"."},{"name":"sandbox:policy","text":"Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."},{"name":"approval:policy","text":"Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."}]},"role":"user","id":"{{message:3}}"},"surfaceOp":"append"}
|
|
{"type":"request/header","data":{"header":{"config":{"provider":"deepseek-official","model":"deepseek-v4-pro","maxTokens":256000,"reasoningEffort":"high"},"adapterDefaults":{"reasoningEffort":true,"maxTokens":true},"tools":"{{tools}}"},"reason":"initial"}}
|
|
{"type":"request/context","data":{"provider":"deepseek-official","model":"deepseek-v4-pro","contextWindow":1000000}}
|
|
{"type":"session/title","data":{"title":"Read src/a.ts and src/b.ts, then","messageSeqs":[8],"source":{"kind":"fallback"}}}
|
|
{"type":"assistant/message","data":{"turn":1,"step":1,"message":{"role":"assistant","content":[{"type":"reasoning","text":""},{"type":"text","text":"I'll read both files first."},{"type":"tool-call","id":"call_00_ET_sAQjZt2eo4qL6zTQST4z4876","name":"read","arguments":"{\"file_path\": \"src/a.ts\"}"},{"type":"tool-call","id":"call_01_ET_XRXTdqpJLogZgULXGpAS6979","name":"read","arguments":"{\"file_path\": \"src/b.ts\"}"}],"source":{"kind":"model","provider":"deepseek-official","model":"deepseek-v4-pro","replayState":{"response":{"kind":"deepseek-messages","version":1,"model":"deepseek-v4-pro"},"blocks":[{"type":"reasoning","signature":"4ce02c2c-228d-4e88-9a92-82e0cb375ed7"},{"type":"text"},{"type":"tool-call"},{"type":"tool-call"}]}},"id":"{{message:4}}"},"usage":{"inputTokens":210,"outputTokens":84,"cacheReadTokens":4992,"cacheWriteTokens":0,"totalTokens":5286},"stream":[{"type":"chunk","time":1792123130304,"chunk":{"type":"block-start","index":0,"blockType":"reasoning"}},{"type":"chunk","time":1792123130731,"chunk":{"type":"block-end","index":0,"block":{"type":"reasoning","text":""}}},{"type":"chunk","time":1792123130732,"chunk":{"type":"block-start","index":1,"blockType":"text"}},{"type":"text-chunks","time0":1792123130732,"index":1,"dt":[30,1,42,0,0,28],"texts":["I","'ll"," read"," both"," files"," first","."]},{"type":"chunk","time":1792123130898,"chunk":{"type":"block-end","index":1,"block":{"type":"text","text":"I'll read both files first."}}},{"type":"chunk","time":1792123130899,"chunk":{"type":"block-start","index":2,"blockType":"tool-call"}},{"type":"tool-call-chunks","time0":1792123130899,"index":2,"dt":[],"id":"call_00_ET_sAQjZt2eo4qL6zTQST4z4876","name":"read","args":[""]},{"type":"tool-call-chunks","time0":1792123130938,"index":2,"dt":[1,0,0,0,0,28,0,0,0,34,0],"id":"call_00_ET_sAQjZt2eo4qL6zTQST4z4876","args":["{","\"","file","_path","\"",": ","\"","src","/a",".ts","\"","}"]},{"type":"chunk","time":1792123131070,"chunk":{"type":"block-end","index":2,"block":{"type":"tool-call","id":"call_00_ET_sAQjZt2eo4qL6zTQST4z4876","name":"read","arguments":"{\"file_path\": \"src/a.ts\"}"}}},{"type":"chunk","time":1792123131071,"chunk":{"type":"block-start","index":3,"blockType":"tool-call"}},{"type":"tool-call-chunks","time0":1792123131071,"index":3,"dt":[],"id":"call_01_ET_XRXTdqpJLogZgULXGpAS6979","name":"read","args":[""]},{"type":"tool-call-chunks","time0":1792123131105,"index":3,"dt":[0,0,0,0,40,0,0,0,66,0,0],"id":"call_01_ET_XRXTdqpJLogZgULXGpAS6979","args":["{","\"","file","_path","\"",": ","\"","src","/b",".ts","\"","}"]},{"type":"chunk","time":1792123131251,"chunk":{"type":"block-end","index":3,"block":{"type":"tool-call","id":"call_01_ET_XRXTdqpJLogZgULXGpAS6979","name":"read","arguments":"{\"file_path\": \"src/b.ts\"}"}}},{"type":"chunk","time":1792123131251,"chunk":{"type":"usage","usage":{"inputTokens":210,"outputTokens":84,"cacheReadTokens":4992,"cacheWriteTokens":0,"totalTokens":5286}}},{"type":"chunk","time":1792123131251,"chunk":{"type":"finish","reason":{"kind":"tool-calls"},"replayState":{"response":{"kind":"deepseek-messages","version":1,"model":"deepseek-v4-pro"},"blocks":[{"type":"reasoning","signature":"4ce02c2c-228d-4e88-9a92-82e0cb375ed7"},{"type":"text"},{"type":"tool-call"},{"type":"tool-call"}]}}}]},"surfaceOp":"append"}
|
|
{"type":"tool/call","data":{"turn":1,"step":1,"callId":"call_00_ET_sAQjZt2eo4qL6zTQST4z4876","name":"read","arguments":"{\"file_path\": \"src/a.ts\"}"}}
|
|
{"type":"tool/call","data":{"turn":1,"step":1,"callId":"call_01_ET_XRXTdqpJLogZgULXGpAS6979","name":"read","arguments":"{\"file_path\": \"src/b.ts\"}"}}
|
|
{"type":"tool/result","data":{"turn":1,"step":1,"message":{"role":"tool","source":{"kind":"tool","callId":"call_00_ET_sAQjZt2eo4qL6zTQST4z4876"},"toolCallId":"call_00_ET_sAQjZt2eo4qL6zTQST4z4876","content":[{"type":"text","text":"<path>{{cwd}}/src/a.ts</path>\n<type>file</type>\n<content>\n1: export const alpha = 1;\n\n(End of file - total 1 lines)\n</content>"}],"isError":false,"id":"{{message:5}}"},"meta":{"path":"{{cwd}}/src/a.ts","offset":1,"lines":[{"number":1,"text":"export const alpha = 1;"}],"totalLines":1,"lang":"ts"}},"sourceEventSeqs":[14],"surfaceOp":"append"}
|
|
{"type":"tool/result","data":{"turn":1,"step":1,"message":{"role":"tool","source":{"kind":"tool","callId":"call_01_ET_XRXTdqpJLogZgULXGpAS6979"},"toolCallId":"call_01_ET_XRXTdqpJLogZgULXGpAS6979","content":[{"type":"text","text":"<path>{{cwd}}/src/b.ts</path>\n<type>file</type>\n<content>\n1: export const beta = 2;\n\n(End of file - total 1 lines)\n</content>"}],"isError":false,"id":"{{message:6}}"},"meta":{"path":"{{cwd}}/src/b.ts","offset":1,"lines":[{"number":1,"text":"export const beta = 2;"}],"totalLines":1,"lang":"ts"}},"sourceEventSeqs":[15],"surfaceOp":"append"}
|
|
{"type":"step/end","data":{"turn":1,"step":1}}
|
|
{"type":"step/start","data":{"turn":1,"step":2}}
|
|
{"type":"assistant/message","data":{"turn":1,"step":2,"message":{"role":"assistant","content":[{"type":"reasoning","text":""},{"type":"tool-call","id":"call_00_ET_XIC5uzZvjHRwm86VUzFE0668","name":"apply_patch","arguments":"{\"input\": \"*** Begin Patch\\n*** Update File: src/a.ts\\n@@\\n-export const alpha = 1;\\n+export const ALPHA = 1;\\n*** Update File: src/b.ts\\n@@\\n-export const beta = 2;\\n+export const BETA = 2;\\n*** Add File: src/c.ts\\n+export const c = 3;\\n*** End Patch\"}"}],"source":{"kind":"model","provider":"deepseek-official","model":"deepseek-v4-pro","replayState":{"response":{"kind":"deepseek-messages","version":1,"model":"deepseek-v4-pro"},"blocks":[{"type":"reasoning","signature":"9478688e-dd1d-4246-8ae1-e8951a559a58"},{"type":"tool-call"}]}},"id":"{{message:7}}"},"usage":{"inputTokens":212,"outputTokens":122,"cacheReadTokens":5248,"cacheWriteTokens":0,"totalTokens":5582},"stream":[{"type":"chunk","time":1792123132213,"chunk":{"type":"block-start","index":0,"blockType":"reasoning"}},{"type":"chunk","time":1792123133344,"chunk":{"type":"block-end","index":0,"block":{"type":"reasoning","text":""}}},{"type":"chunk","time":1792123133345,"chunk":{"type":"block-start","index":1,"blockType":"tool-call"}},{"type":"tool-call-chunks","time0":1792123133345,"index":1,"dt":[],"id":"call_00_ET_XIC5uzZvjHRwm86VUzFE0668","name":"apply_patch","args":[""]},{"type":"tool-call-chunks","time0":1792123133360,"index":1,"dt":[0,0,0,0,24,0,0,0,41,1,0,0,0,0,36,0,0,0,0,0,30,0,1,4,0,0,322,0,0,0,0,0,3,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0],"id":"call_00_ET_XIC5uzZvjHRwm86VUzFE0668","args":["{","\"","patch","\"",": ","\"","***"," Begin"," Patch","\\n","***"," Update"," File",":"," src","/a",".ts","\\n","@@","\\n","-","export"," const"," alpha"," ="," ","1",";\\n","+","export"," const"," AL","P","HA"," ="," ","1",";\\n","***"," Update"," File",":"," src","/b",".ts","\\n","@@","\\n","-","export"," const"," beta"," ="," ","2",";\\n","+","export"," const"," B","ETA"," ="," ","2",";\\n","***"," Add"," File",":"," src","/c",".ts","\\n","+","export"," const"," c"," ="," ","3",";\\n","***"," End"," Patch","\"","}"]},{"type":"chunk","time":1792123133965,"chunk":{"type":"block-end","index":1,"block":{"type":"tool-call","id":"call_00_ET_XIC5uzZvjHRwm86VUzFE0668","name":"apply_patch","arguments":"{\"input\": \"*** Begin Patch\\n*** Update File: src/a.ts\\n@@\\n-export const alpha = 1;\\n+export const ALPHA = 1;\\n*** Update File: src/b.ts\\n@@\\n-export const beta = 2;\\n+export const BETA = 2;\\n*** Add File: src/c.ts\\n+export const c = 3;\\n*** End Patch\"}"}}},{"type":"chunk","time":1792123133965,"chunk":{"type":"usage","usage":{"inputTokens":212,"outputTokens":122,"cacheReadTokens":5248,"cacheWriteTokens":0,"totalTokens":5582}}},{"type":"chunk","time":1792123133966,"chunk":{"type":"finish","reason":{"kind":"tool-calls"},"replayState":{"response":{"kind":"deepseek-messages","version":1,"model":"deepseek-v4-pro"},"blocks":[{"type":"reasoning","signature":"9478688e-dd1d-4246-8ae1-e8951a559a58"},{"type":"tool-call"}]}}}]},"surfaceOp":"append"}
|
|
{"type":"tool/call","data":{"turn":1,"step":2,"callId":"call_00_ET_XIC5uzZvjHRwm86VUzFE0668","name":"apply_patch","arguments":"{\"input\": \"*** Begin Patch\\n*** Update File: src/a.ts\\n@@\\n-export const alpha = 1;\\n+export const ALPHA = 1;\\n*** Update File: src/b.ts\\n@@\\n-export const beta = 2;\\n+export const BETA = 2;\\n*** Add File: src/c.ts\\n+export const c = 3;\\n*** End Patch\"}"}}
|
|
{"type":"tool/result","data":{"turn":1,"step":2,"message":{"role":"tool","source":{"kind":"tool","callId":"call_00_ET_XIC5uzZvjHRwm86VUzFE0668"},"toolCallId":"call_00_ET_XIC5uzZvjHRwm86VUzFE0668","content":[{"type":"text","text":"Success. Updated the following files:\nA {{cwd}}/src/c.ts\nM {{cwd}}/src/a.ts\nM {{cwd}}/src/b.ts"}],"isError":false,"id":"{{message:8}}"},"meta":{"diffs":[{"path":"{{cwd}}/src/a.ts","oldText":"export const alpha = 1;","newText":"export const ALPHA = 1;"},{"path":"{{cwd}}/src/b.ts","oldText":"export const beta = 2;","newText":"export const BETA = 2;"}],"stopped":false}},"sourceEventSeqs":[21],"surfaceOp":"append"}
|
|
{"type":"step/end","data":{"turn":1,"step":2}}
|
|
{"type":"step/start","data":{"turn":1,"step":3}}
|
|
{"type":"assistant/message","data":{"turn":1,"step":3,"message":{"role":"assistant","content":[{"type":"reasoning","text":""},{"type":"text","text":"Done. I made all three changes in a single `apply_patch` call:\n\n- `src/a.ts`: `alpha` → `ALPHA`\n- `src/b.ts`: `beta` → `BETA`\n- `src/c.ts`: created with `export const c = 3;` and a trailing newline"}],"source":{"kind":"model","provider":"deepseek-official","model":"deepseek-v4-pro","replayState":{"response":{"kind":"deepseek-messages","version":1,"model":"deepseek-v4-pro"},"blocks":[{"type":"reasoning","signature":"f80d9b0c-e77d-4c8b-acc3-9b90115d935c"},{"type":"text"}]}},"id":"{{message:9}}"},"usage":{"inputTokens":228,"outputTokens":69,"cacheReadTokens":5504,"cacheWriteTokens":0,"totalTokens":5801},"stream":[{"type":"chunk","time":1792123135067,"chunk":{"type":"block-start","index":0,"blockType":"reasoning"}},{"type":"chunk","time":1792123135418,"chunk":{"type":"block-end","index":0,"block":{"type":"reasoning","text":""}}},{"type":"chunk","time":1792123135418,"chunk":{"type":"block-start","index":1,"blockType":"text"}},{"type":"text-chunks","time0":1792123135418,"index":1,"dt":[2,0,0,40,2,5,28,0,4,0,30,0,1,0,0,36,0,0,0,0,1,0,35,0,3,0,0,0,36,2,0,0,0,0,31,0,0,0,1,0,37,1,0,0,0,0,44,0,0,0,0,1,24,1,0,0,0,36,0,0,0,0,0,38,0,0,0],"texts":["Done","."," I"," made"," all"," three"," changes"," in"," a"," single"," `","apply","_p","atch","`"," call",":\n\n","-"," `","src","/a",".ts","`:"," `","alpha","`"," →"," `","AL","P","HA","`\n","-"," `","src","/b",".ts","`:"," `","beta","`"," →"," `","B","ETA","`\n","-"," `","src","/c",".ts","`:"," created"," with"," `","export"," const"," c"," ="," ","3",";","`"," and"," a"," trailing"," new","line"]},{"type":"chunk","time":1792123135857,"chunk":{"type":"block-end","index":1,"block":{"type":"text","text":"Done. I made all three changes in a single `apply_patch` call:\n\n- `src/a.ts`: `alpha` → `ALPHA`\n- `src/b.ts`: `beta` → `BETA`\n- `src/c.ts`: created with `export const c = 3;` and a trailing newline"}}},{"type":"chunk","time":1792123135858,"chunk":{"type":"usage","usage":{"inputTokens":228,"outputTokens":69,"cacheReadTokens":5504,"cacheWriteTokens":0,"totalTokens":5801}}},{"type":"chunk","time":1792123135859,"chunk":{"type":"finish","reason":{"kind":"stop"},"replayState":{"response":{"kind":"deepseek-messages","version":1,"model":"deepseek-v4-pro"},"blocks":[{"type":"reasoning","signature":"f80d9b0c-e77d-4c8b-acc3-9b90115d935c"},{"type":"text"}]}}}]},"surfaceOp":"append"}
|
|
{"type":"step/end","data":{"turn":1,"step":3}}
|
|
{"type":"turn/end","data":{"turn":1,"reason":{"kind":"completed"}}}
|