Files
deepseek-harness/snapshots/session/worktree-commit/session.v4.jsonl
T
LegGasai e89dc1d564 Merge commit '1a451ffe2ed7774132e38e8c3e39e35b4e602450' into feat/sandbox-policy-git
# Conflicts:
#	packages/experimental/client-ui-forge/README.i18n.yaml
#	packages/experimental/worktree/README.i18n.yaml
#	packages/experimental/worktree/README.md
#	packages/experimental/worktree/README.zh.md
2026-11-20 12:46:59 +08:00

58 lines
21 KiB
JSON

{"type":"session","version":4,"id":"{{session:1}}","createdAt":0,"cwd":"{{cwd}}","isSeeded":false,"delegationDepth":0}
{"type":"permission/preset","data":{"preset":"workspace-write"}}
{"type":"sandbox/mode","data":{"mode":"workspace-write"}}
{"type":"approval/policy","data":{"policy":"ask"}}
{"type":"agent/inbox/spliced","data":{"target":"next-turn","start":0,"inserted":[{"content":[{"type":"text","text":"Enter a new worktree named committing from HEAD, write note.txt containing exactly \"COMMITTED NOTE\\n\", commit it with git, show the subject of the last commit, and leave the worktree with exit_worktree. Reply exactly COMMIT_OK."}],"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}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt","sections":[{"name":"harness:identity","order":-1000,"state":"active","contentIndex":0},{"name":"deployment:persona-prefix","order":0,"state":"active","contentIndex":1},{"name":"tool:bash","order":1000,"state":"active","contentIndex":2},{"name":"tool:read","order":1100,"state":"active","contentIndex":3},{"name":"tool:write","order":1200,"state":"active","contentIndex":4},{"name":"tool:edit","order":1300,"state":"active","contentIndex":5},{"name":"tool:apply_patch","order":1350,"state":"active","contentIndex":6},{"name":"tool:glob","order":1400,"state":"active","contentIndex":7},{"name":"tool:grep","order":1500,"state":"active","contentIndex":8},{"name":"tool:jobs","order":1600,"state":"active","contentIndex":9},{"name":"tool:web_search","order":2000,"state":"active","contentIndex":10},{"name":"tool:web_fetch","order":2100,"state":"active","contentIndex":11},{"name":"tool:goal","order":2400,"state":"active","contentIndex":12},{"name":"tool:workflow","order":2600,"state":"active","contentIndex":13},{"name":"tool:subagent","order":2800,"state":"active","contentIndex":14}]},"id":"{{message:2}}"}},"surfaceOp":"append"}
{"type":"user/message","data":{"content":[{"type":"text","text":"Enter a new worktree named committing from HEAD, write note.txt containing exactly \"COMMITTED NOTE\\n\", commit it with git, show the subject of the last commit, and leave the worktree with exit_worktree. Reply exactly COMMIT_OK."}],"source":{"kind":"user"},"role":"user","id":"{{message:1}}"},"surfaceOp":"append"}
{"type":"user/message","data":{"content":[{"type":"text","text":"<system-reminder>\nThe following information describes your current session:\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: workspace-write. Any available operation enforced by the DSH file sandbox may modify files under the session workspace: \"{{cwd}}\". Some platform temporary areas may also be writable.\n\nApproval prompts are enabled in this session: operations that require approval may ask through the configured answerers; without an available answerer, the request fails closed.\n\nYou are the root agent. Your name is \"lead\".\n\nTo message other agents, use send_message({ agent: \"<agent-name>\", message: \"...\" }).\nUse list_agents({}) to find your collaborator agents and their names.\n</system-reminder>"}],"source":{"kind":"runtime-context","form":"snapshot","sections":[{"name":"working-directory:current","text":"Current working directory: \"{{cwd}}\"."},{"name":"sandbox:policy","text":"Current DSH file policy: workspace-write. Any available operation enforced by the DSH file sandbox may modify files under the session workspace: \"{{cwd}}\". Some platform temporary areas may also be writable."},{"name":"approval:policy","text":"Approval prompts are enabled in this session: operations that require approval may ask through the configured answerers; without an available answerer, the request fails closed."},{"name":"subagent:identity","text":"You are the root agent. Your name is \"lead\".\n\nTo message other agents, use send_message({ agent: \"<agent-name>\", message: \"...\" }).\nUse list_agents({}) to find your collaborator agents and their names."}]},"role":"user","id":"{{message:3}}"},"surfaceOp":"append"}
{"type":"request/header","data":{"header":{"config":{"provider":"deepseek-official","model":"deepseek-v4-flash","maxTokens":256000,"reasoningEffort":"max"},"adapterDefaults":{"reasoningEffort":true,"maxTokens":true},"tools":"{{tools}}"},"reason":"initial"}}
{"type":"request/context","data":{"provider":"deepseek-official","model":"deepseek-v4-flash","contextWindow":1000000}}
{"type":"session/title","data":{"title":"Enter a new worktree named","messageSeqs":[8],"source":{"kind":"fallback"}}}
{"type":"assistant/message","data":{"turn":1,"step":1,"message":{"role":"assistant","content":[{"type":"tool-call","id":"commit-1","name":"enter_worktree","arguments":"{\"name\":\"committing\",\"from\":\"HEAD\"}"}],"source":{"kind":"model","provider":"deepseek-official","model":"deepseek-v4-flash"},"id":"{{message:4}}"},"usage":{"inputTokens":10,"outputTokens":5},"stream":[{"type":"chunk","time":1794971331522,"chunk":{"type":"block-start","index":0,"blockType":"tool-call"}},{"type":"chunk","time":1794971331523,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"commit-1","name":"enter_worktree","arguments":"{\"name\":\"committing\",\"from\":\"HEAD\"}"}}},{"type":"chunk","time":1794971331523,"chunk":{"type":"usage","usage":{"inputTokens":10,"outputTokens":5}}},{"type":"chunk","time":1794971331523,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}]},"surfaceOp":"append"}
{"type":"tool/call","data":{"turn":1,"step":1,"callId":"commit-1","name":"enter_worktree","arguments":"{\"name\":\"committing\",\"from\":\"HEAD\"}"}}
{"type":"workspace-root/change","data":{"cwd":"{{cwd}}/.agents/worktrees/committing"}}
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"inserted":[{"content":[{"type":"text","text":"The working directory changed from \"{{cwd}}\" to \"{{cwd}}/.agents/worktrees/committing\"."}],"source":{"kind":"working-directory"},"role":"user","id":"{{message:5}}"}]}}
{"type":"plugin:worktree/created","data":{"path":"{{cwd}}/.agents/worktrees/committing","branch":"committing","baseCommit":"86e2ed339bd583c54e29aaf0698fb8fb176ddcbb","repositoryRoot":"{{cwd}}"},"ignorable":true}
{"type":"tool/result","data":{"turn":1,"step":1,"message":{"role":"tool","source":{"kind":"tool","callId":"commit-1"},"toolCallId":"commit-1","content":[{"type":"text","text":"{\"path\":\"{{cwd}}/.agents/worktrees/committing\",\"branch\":\"committing\",\"baseCommit\":\"86e2ed339bd583c54e29aaf0698fb8fb176ddcbb\",\"repositoryRoot\":\"{{cwd}}\",\"created\":true}"}],"isError":false,"id":"{{message:6}}"}},"sourceEventSeqs":[14],"surfaceOp":"append"}
{"type":"step/end","data":{"turn":1,"step":1}}
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"removedCount":1,"inserted":[]}}
{"type":"step/start","data":{"turn":1,"step":2}}
{"type":"user/message","data":{"content":[{"type":"text","text":"The working directory changed from \"{{cwd}}\" to \"{{cwd}}/.agents/worktrees/committing\"."}],"source":{"kind":"working-directory"},"role":"user","id":"{{message:5}}"},"surfaceOp":"append"}
{"type":"user/message","data":{"content":[{"type":"text","text":"<system-reminder>\nThe following information describes your current session. It replaces earlier versions of this context, including any retained in conversation summaries.\n\nCurrent working directory: \"{{cwd}}/.agents/worktrees/committing\".\n\nCurrent DSH file policy: workspace-write. Any available operation enforced by the DSH file sandbox may modify files under the session workspace: \"{{cwd}}/.agents/worktrees/committing\". Additional writable directories: [\"{{cwd}}/.git\"]. On Windows, these additional grants apply to file tools only, not sandboxed processes. Some platform temporary areas may also be writable.\n\nApproval prompts are enabled in this session: operations that require approval may ask through the configured answerers; without an available answerer, the request fails closed.\n\nYou are the root agent. Your name is \"lead\".\n\nTo message other agents, use send_message({ agent: \"<agent-name>\", message: \"...\" }).\nUse list_agents({}) to find your collaborator agents and their names.\n</system-reminder>"}],"source":{"kind":"runtime-context","form":"snapshot","sections":[{"name":"working-directory:current","text":"Current working directory: \"{{cwd}}/.agents/worktrees/committing\"."},{"name":"sandbox:policy","text":"Current DSH file policy: workspace-write. Any available operation enforced by the DSH file sandbox may modify files under the session workspace: \"{{cwd}}/.agents/worktrees/committing\". Additional writable directories: [\"{{cwd}}/.git\"]. On Windows, these additional grants apply to file tools only, not sandboxed processes. Some platform temporary areas may also be writable."},{"name":"approval:policy","text":"Approval prompts are enabled in this session: operations that require approval may ask through the configured answerers; without an available answerer, the request fails closed."},{"name":"subagent:identity","text":"You are the root agent. Your name is \"lead\".\n\nTo message other agents, use send_message({ agent: \"<agent-name>\", message: \"...\" }).\nUse list_agents({}) to find your collaborator agents and their names."}]},"role":"user","id":"{{message:7}}"},"surfaceOp":"append"}
{"type":"assistant/message","data":{"turn":1,"step":2,"message":{"role":"assistant","content":[{"type":"tool-call","id":"commit-2","name":"write","arguments":"{\"file_path\":\"note.txt\",\"content\":\"COMMITTED NOTE\\n\"}"}],"source":{"kind":"model","provider":"deepseek-official","model":"deepseek-v4-flash"},"id":"{{message:8}}"},"usage":{"inputTokens":10,"outputTokens":5},"stream":[{"type":"chunk","time":1794971333475,"chunk":{"type":"block-start","index":0,"blockType":"tool-call"}},{"type":"chunk","time":1794971333475,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"commit-2","name":"write","arguments":"{\"file_path\":\"note.txt\",\"content\":\"COMMITTED NOTE\\n\"}"}}},{"type":"chunk","time":1794971333475,"chunk":{"type":"usage","usage":{"inputTokens":10,"outputTokens":5}}},{"type":"chunk","time":1794971333475,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}]},"surfaceOp":"append"}
{"type":"tool/call","data":{"turn":1,"step":2,"callId":"commit-2","name":"write","arguments":"{\"file_path\":\"note.txt\",\"content\":\"COMMITTED NOTE\\n\"}"}}
{"type":"tool/result","data":{"turn":1,"step":2,"message":{"role":"tool","source":{"kind":"tool","callId":"commit-2"},"toolCallId":"commit-2","content":[{"type":"text","text":"<path>{{cwd}}/.agents/worktrees/committing/note.txt</path>\n<type>file</type>\n<content>\nCreated file\n</content>"}],"isError":false,"id":"{{message:9}}"},"meta":{"operation":"create","path":"{{cwd}}/.agents/worktrees/committing/note.txt","diffs":[]}},"sourceEventSeqs":[25],"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":"tool-call","id":"commit-3","name":"bash","arguments":"{\"command\":\"git add note.txt && git -c core.hooksPath=/dev/null -c commit.gpgSign=false -c user.name='DSH Snapshot' -c user.email=snapshot@example.invalid commit -q -m 'Add note'\",\"description\":\"Commit the note in the worktree\"}"}],"source":{"kind":"model","provider":"deepseek-official","model":"deepseek-v4-flash"},"id":"{{message:10}}"},"usage":{"inputTokens":10,"outputTokens":5},"stream":[{"type":"chunk","time":1794971333510,"chunk":{"type":"block-start","index":0,"blockType":"tool-call"}},{"type":"chunk","time":1794971333510,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"commit-3","name":"bash","arguments":"{\"command\":\"git add note.txt && git -c core.hooksPath=/dev/null -c commit.gpgSign=false -c user.name='DSH Snapshot' -c user.email=snapshot@example.invalid commit -q -m 'Add note'\",\"description\":\"Commit the note in the worktree\"}"}}},{"type":"chunk","time":1794971333510,"chunk":{"type":"usage","usage":{"inputTokens":10,"outputTokens":5}}},{"type":"chunk","time":1794971333510,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}]},"surfaceOp":"append"}
{"type":"tool/call","data":{"turn":1,"step":3,"callId":"commit-3","name":"bash","arguments":"{\"command\":\"git add note.txt && git -c core.hooksPath=/dev/null -c commit.gpgSign=false -c user.name='DSH Snapshot' -c user.email=snapshot@example.invalid commit -q -m 'Add note'\",\"description\":\"Commit the note in the worktree\"}"}}
{"type":"job/registered","data":{"jobId":"{{id:1}}","owner":"{{session:1}}","kind":"bash","label":"git add note.txt && git -c core.hooksPath=/dev/null -c commit.gpgSign=false -c user.name='DSH Snapshot' -c user.email=snapshot@example.invalid commit -q -m 'Add note'","startedAt":1794971333519,"toolCall":{"callId":"commit-3","rootCallId":"commit-3"}}}
{"type":"job/settled","data":{"jobId":"{{id:1}}","owner":"{{session:1}}","kind":"bash","label":"git add note.txt && git -c core.hooksPath=/dev/null -c commit.gpgSign=false -c user.name='DSH Snapshot' -c user.email=snapshot@example.invalid commit -q -m 'Add note'","startedAt":1794971333519,"toolCall":{"callId":"commit-3","rootCallId":"commit-3"},"finishedAt":1794971333613,"status":"completed","cause":"producer","producerReported":true,"detail":"exit code: 0"}}
{"type":"tool/result","data":{"turn":1,"step":3,"message":{"role":"tool","source":{"kind":"tool","callId":"commit-3"},"toolCallId":"commit-3","content":[{"type":"text","text":"(no output)"}],"isError":false,"id":"{{message:11}}"},"meta":{"cwd":"{{cwd}}/.agents/worktrees/committing"}},"sourceEventSeqs":[30],"surfaceOp":"append"}
{"type":"step/end","data":{"turn":1,"step":3}}
{"type":"step/start","data":{"turn":1,"step":4}}
{"type":"assistant/message","data":{"turn":1,"step":4,"message":{"role":"assistant","content":[{"type":"tool-call","id":"commit-4","name":"bash","arguments":"{\"command\":\"git log -1 --format=%s\",\"description\":\"Show the subject of the last commit\"}"}],"source":{"kind":"model","provider":"deepseek-official","model":"deepseek-v4-flash"},"id":"{{message:12}}"},"usage":{"inputTokens":10,"outputTokens":5},"stream":[{"type":"chunk","time":1794971333653,"chunk":{"type":"block-start","index":0,"blockType":"tool-call"}},{"type":"chunk","time":1794971333653,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"commit-4","name":"bash","arguments":"{\"command\":\"git log -1 --format=%s\",\"description\":\"Show the subject of the last commit\"}"}}},{"type":"chunk","time":1794971333653,"chunk":{"type":"usage","usage":{"inputTokens":10,"outputTokens":5}}},{"type":"chunk","time":1794971333653,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}]},"surfaceOp":"append"}
{"type":"tool/call","data":{"turn":1,"step":4,"callId":"commit-4","name":"bash","arguments":"{\"command\":\"git log -1 --format=%s\",\"description\":\"Show the subject of the last commit\"}"}}
{"type":"job/registered","data":{"jobId":"{{id:2}}","owner":"{{session:1}}","kind":"bash","label":"git log -1 --format=%s","startedAt":1794971333662,"toolCall":{"callId":"commit-4","rootCallId":"commit-4"}}}
{"type":"job/settled","data":{"jobId":"{{id:2}}","owner":"{{session:1}}","kind":"bash","label":"git log -1 --format=%s","startedAt":1794971333662,"toolCall":{"callId":"commit-4","rootCallId":"commit-4"},"finishedAt":1794971333820,"status":"completed","cause":"producer","producerReported":true,"detail":"exit code: 0"}}
{"type":"tool/result","data":{"turn":1,"step":4,"message":{"role":"tool","source":{"kind":"tool","callId":"commit-4"},"toolCallId":"commit-4","content":[{"type":"text","text":"Add note\n"}],"isError":false,"id":"{{message:13}}"},"meta":{"cwd":"{{cwd}}/.agents/worktrees/committing"}},"sourceEventSeqs":[37],"surfaceOp":"append"}
{"type":"step/end","data":{"turn":1,"step":4}}
{"type":"step/start","data":{"turn":1,"step":5}}
{"type":"assistant/message","data":{"turn":1,"step":5,"message":{"role":"assistant","content":[{"type":"tool-call","id":"commit-5","name":"exit_worktree","arguments":"{}"}],"source":{"kind":"model","provider":"deepseek-official","model":"deepseek-v4-flash"},"id":"{{message:14}}"},"usage":{"inputTokens":10,"outputTokens":5},"stream":[{"type":"chunk","time":1794971333856,"chunk":{"type":"block-start","index":0,"blockType":"tool-call"}},{"type":"chunk","time":1794971333856,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"commit-5","name":"exit_worktree","arguments":"{}"}}},{"type":"chunk","time":1794971333856,"chunk":{"type":"usage","usage":{"inputTokens":10,"outputTokens":5}}},{"type":"chunk","time":1794971333856,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}]},"surfaceOp":"append"}
{"type":"tool/call","data":{"turn":1,"step":5,"callId":"commit-5","name":"exit_worktree","arguments":"{}"}}
{"type":"workspace-root/change","data":{"cwd":"{{cwd}}"}}
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"inserted":[{"content":[{"type":"text","text":"The working directory changed from \"{{cwd}}/.agents/worktrees/committing\" to \"{{cwd}}\"."}],"source":{"kind":"working-directory"},"role":"user","id":"{{message:15}}"}]}}
{"type":"tool/result","data":{"turn":1,"step":5,"message":{"role":"tool","source":{"kind":"tool","callId":"commit-5"},"toolCallId":"commit-5","content":[{"type":"text","text":"{\"path\":\"{{cwd}}/.agents/worktrees/committing\",\"branch\":\"committing\",\"baseCommit\":\"86e2ed339bd583c54e29aaf0698fb8fb176ddcbb\",\"repositoryRoot\":\"{{cwd}}\"}"}],"isError":false,"id":"{{message:16}}"}},"sourceEventSeqs":[44],"surfaceOp":"append"}
{"type":"step/end","data":{"turn":1,"step":5}}
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"removedCount":1,"inserted":[]}}
{"type":"step/start","data":{"turn":1,"step":6}}
{"type":"user/message","data":{"content":[{"type":"text","text":"The working directory changed from \"{{cwd}}/.agents/worktrees/committing\" to \"{{cwd}}\"."}],"source":{"kind":"working-directory"},"role":"user","id":"{{message:15}}"},"surfaceOp":"append"}
{"type":"user/message","data":{"content":[{"type":"text","text":"<system-reminder>\nThe following information describes your current session. It replaces earlier versions of this context, including any retained in conversation summaries.\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: workspace-write. Any available operation enforced by the DSH file sandbox may modify files under the session workspace: \"{{cwd}}\". Some platform temporary areas may also be writable.\n\nApproval prompts are enabled in this session: operations that require approval may ask through the configured answerers; without an available answerer, the request fails closed.\n\nYou are the root agent. Your name is \"lead\".\n\nTo message other agents, use send_message({ agent: \"<agent-name>\", message: \"...\" }).\nUse list_agents({}) to find your collaborator agents and their names.\n</system-reminder>"}],"source":{"kind":"runtime-context","form":"snapshot","sections":[{"name":"working-directory:current","text":"Current working directory: \"{{cwd}}\"."},{"name":"sandbox:policy","text":"Current DSH file policy: workspace-write. Any available operation enforced by the DSH file sandbox may modify files under the session workspace: \"{{cwd}}\". Some platform temporary areas may also be writable."},{"name":"approval:policy","text":"Approval prompts are enabled in this session: operations that require approval may ask through the configured answerers; without an available answerer, the request fails closed."},{"name":"subagent:identity","text":"You are the root agent. Your name is \"lead\".\n\nTo message other agents, use send_message({ agent: \"<agent-name>\", message: \"...\" }).\nUse list_agents({}) to find your collaborator agents and their names."}]},"role":"user","id":"{{message:17}}"},"surfaceOp":"append"}
{"type":"assistant/message","data":{"turn":1,"step":6,"message":{"role":"assistant","content":[{"type":"text","text":"COMMIT_OK"}],"source":{"kind":"model","provider":"deepseek-official","model":"deepseek-v4-flash"},"id":"{{message:18}}"},"usage":{"inputTokens":10,"outputTokens":5},"stream":[{"type":"chunk","time":1794971333887,"chunk":{"type":"block-start","index":0,"blockType":"text"}},{"type":"chunk","time":1794971333887,"chunk":{"type":"block-end","index":0,"block":{"type":"text","text":"COMMIT_OK"}}},{"type":"chunk","time":1794971333887,"chunk":{"type":"usage","usage":{"inputTokens":10,"outputTokens":5}}},{"type":"chunk","time":1794971333887,"chunk":{"type":"finish","reason":{"kind":"stop"}}}]},"surfaceOp":"append"}
{"type":"step/end","data":{"turn":1,"step":6}}
{"type":"turn/end","data":{"turn":1,"reason":{"kind":"completed"}}}