Files
deepseek-harness/examples/acp-agent/tests/snapshots/fs-read/session.jsonl
T
Tianyi Cui 1fd9e2a9ab Pin request-header content in one snapshot scenario
Every session.jsonl fixture embedded the full composed system prompt and
complete tool-schema list in its request/header event (~8 KB on one line,
identical across the suite), so any prompt or tool-schema edit forced a
re-record or hand-edit of every fixture — see the dynamic-workflows PR for
the churn pattern this removes.

Now exactly one scenario (text-turn, flagged pinsHeader) commits and
compares that content verbatim; every other fixture stores and compares it
as {{system}}/{{tools}} tokens via the new pure scrubRequestHeaders
normalizer (applied to both compare sides and to record-mode writes, so a
re-record cannot reintroduce the content). request/header-delta payloads
are scrubbed the same way; config/reason stay verbatim — a model swap
SHOULD churn every fixture, a prompt edit should not. Replay is unaffected:
script derivation reads only assistant/chunk events.

Fixture meta-guards enforce the split: non-pinning fixtures must be fixed
points of the scrub, the pinning fixture must not be, and exactly one
scenario pins. Committed fixtures migrated through the same function.

Docs: pinned-header RFC (implemented/testing), base snapshot RFC + testing
policy + llm-replay module doc/README updated.
2026-07-06 23:41:20 +08:00

87 lines
14 KiB
JSON

{"type":"session","version":0,"id":"24177f05-da18-4ef2-8ac5-dec6975f05ee","createdAt":1783279355666,"cwd":"/tmp/acp-snap-cwd-Zo3aiO"}
{"type":"turn/start","seq":0,"time":1783279355670,"data":{"turn":1,"trigger":{"kind":"message","source":{"kind":"user"}}}}
{"type":"user/message","seq":1,"time":1783279355671,"data":{"content":[{"type":"text","text":"Use the read tool (NOT bash) to read the file greeting.txt in the current directory, then reply with exactly the single word DONE."}],"source":{"kind":"user"}},"surfaceOp":"append"}
{"type":"step/start","seq":2,"time":1783279355673,"data":{"turn":1,"step":1}}
{"type":"request/header","seq":3,"time":1783279355673,"data":{"header":{"config":{"model":"deepseek-v4-flash"},"system":"{{system}}","tools":"{{tools}}"},"reason":"initial"}}
{"type":"assistant/chunk","seq":4,"time":1783279356329,"data":{"turn":1,"step":1,"chunk":{"type":"block-start","index":0,"blockType":"reasoning"}}}
{"type":"assistant/chunk","seq":5,"time":1783279356330,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":"The"}}}
{"type":"assistant/chunk","seq":6,"time":1783279356465,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":" user"}}}
{"type":"assistant/chunk","seq":7,"time":1783279356493,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":" wants"}}}
{"type":"assistant/chunk","seq":8,"time":1783279356493,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":" me"}}}
{"type":"assistant/chunk","seq":9,"time":1783279356493,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":" to"}}}
{"type":"assistant/chunk","seq":10,"time":1783279356493,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":" read"}}}
{"type":"assistant/chunk","seq":11,"time":1783279356493,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":" the"}}}
{"type":"assistant/chunk","seq":12,"time":1783279356521,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":" file"}}}
{"type":"assistant/chunk","seq":13,"time":1783279356521,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":" greeting"}}}
{"type":"assistant/chunk","seq":14,"time":1783279356521,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":".txt"}}}
{"type":"assistant/chunk","seq":15,"time":1783279356522,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":" using"}}}
{"type":"assistant/chunk","seq":16,"time":1783279356522,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":" the"}}}
{"type":"assistant/chunk","seq":17,"time":1783279356549,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":" read"}}}
{"type":"assistant/chunk","seq":18,"time":1783279356550,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":" tool"}}}
{"type":"assistant/chunk","seq":19,"time":1783279356550,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":" ("}}}
{"type":"assistant/chunk","seq":20,"time":1783279356581,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":"not"}}}
{"type":"assistant/chunk","seq":21,"time":1783279356581,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":" bash"}}}
{"type":"assistant/chunk","seq":22,"time":1783279356581,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":"),"}}}
{"type":"assistant/chunk","seq":23,"time":1783279356610,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":" then"}}}
{"type":"assistant/chunk","seq":24,"time":1783279356610,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":" reply"}}}
{"type":"assistant/chunk","seq":25,"time":1783279356610,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":" with"}}}
{"type":"assistant/chunk","seq":26,"time":1783279356610,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":" exactly"}}}
{"type":"assistant/chunk","seq":27,"time":1783279356637,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":" \""}}}
{"type":"assistant/chunk","seq":28,"time":1783279356665,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":"D"}}}
{"type":"assistant/chunk","seq":29,"time":1783279356665,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":"ONE"}}}
{"type":"assistant/chunk","seq":30,"time":1783279356665,"data":{"turn":1,"step":1,"chunk":{"type":"reasoning-delta","index":0,"text":"\"."}}}
{"type":"assistant/chunk","seq":31,"time":1783279356750,"data":{"turn":1,"step":1,"chunk":{"type":"block-start","index":1,"blockType":"tool-call"}}}
{"type":"assistant/chunk","seq":32,"time":1783279356751,"data":{"turn":1,"step":1,"chunk":{"type":"tool-call-delta","index":1,"id":"call_00_koseLJcNvQwBvDj0H8Py0459","name":"read","argumentsDelta":""}}}
{"type":"assistant/chunk","seq":33,"time":1783279356751,"data":{"turn":1,"step":1,"chunk":{"type":"tool-call-delta","index":1,"id":"call_00_koseLJcNvQwBvDj0H8Py0459","name":"read","argumentsDelta":"{"}}}
{"type":"assistant/chunk","seq":34,"time":1783279356751,"data":{"turn":1,"step":1,"chunk":{"type":"tool-call-delta","index":1,"id":"call_00_koseLJcNvQwBvDj0H8Py0459","name":"read","argumentsDelta":"\""}}}
{"type":"assistant/chunk","seq":35,"time":1783279356777,"data":{"turn":1,"step":1,"chunk":{"type":"tool-call-delta","index":1,"id":"call_00_koseLJcNvQwBvDj0H8Py0459","name":"read","argumentsDelta":"file"}}}
{"type":"assistant/chunk","seq":36,"time":1783279356777,"data":{"turn":1,"step":1,"chunk":{"type":"tool-call-delta","index":1,"id":"call_00_koseLJcNvQwBvDj0H8Py0459","name":"read","argumentsDelta":"_path"}}}
{"type":"assistant/chunk","seq":37,"time":1783279356777,"data":{"turn":1,"step":1,"chunk":{"type":"tool-call-delta","index":1,"id":"call_00_koseLJcNvQwBvDj0H8Py0459","name":"read","argumentsDelta":"\""}}}
{"type":"assistant/chunk","seq":38,"time":1783279356777,"data":{"turn":1,"step":1,"chunk":{"type":"tool-call-delta","index":1,"id":"call_00_koseLJcNvQwBvDj0H8Py0459","name":"read","argumentsDelta":": "}}}
{"type":"assistant/chunk","seq":39,"time":1783279356806,"data":{"turn":1,"step":1,"chunk":{"type":"tool-call-delta","index":1,"id":"call_00_koseLJcNvQwBvDj0H8Py0459","name":"read","argumentsDelta":"\""}}}
{"type":"assistant/chunk","seq":40,"time":1783279356806,"data":{"turn":1,"step":1,"chunk":{"type":"tool-call-delta","index":1,"id":"call_00_koseLJcNvQwBvDj0H8Py0459","name":"read","argumentsDelta":"gre"}}}
{"type":"assistant/chunk","seq":41,"time":1783279356834,"data":{"turn":1,"step":1,"chunk":{"type":"tool-call-delta","index":1,"id":"call_00_koseLJcNvQwBvDj0H8Py0459","name":"read","argumentsDelta":"eting"}}}
{"type":"assistant/chunk","seq":42,"time":1783279356834,"data":{"turn":1,"step":1,"chunk":{"type":"tool-call-delta","index":1,"id":"call_00_koseLJcNvQwBvDj0H8Py0459","name":"read","argumentsDelta":".txt"}}}
{"type":"assistant/chunk","seq":43,"time":1783279356834,"data":{"turn":1,"step":1,"chunk":{"type":"tool-call-delta","index":1,"id":"call_00_koseLJcNvQwBvDj0H8Py0459","name":"read","argumentsDelta":"\""}}}
{"type":"assistant/chunk","seq":44,"time":1783279356862,"data":{"turn":1,"step":1,"chunk":{"type":"tool-call-delta","index":1,"id":"call_00_koseLJcNvQwBvDj0H8Py0459","name":"read","argumentsDelta":"}"}}}
{"type":"assistant/chunk","seq":45,"time":1783279356893,"data":{"turn":1,"step":1,"chunk":{"type":"block-end","index":0,"block":{"type":"reasoning","text":"The user wants me to read the file greeting.txt using the read tool (not bash), then reply with exactly \"DONE\"."}}}}
{"type":"assistant/chunk","seq":46,"time":1783279356893,"data":{"turn":1,"step":1,"chunk":{"type":"block-end","index":1,"block":{"type":"tool-call","id":"call_00_koseLJcNvQwBvDj0H8Py0459","name":"read","arguments":"{\"file_path\": \"greeting.txt\"}"}}}}
{"type":"assistant/chunk","seq":47,"time":1783279356894,"data":{"turn":1,"step":1,"chunk":{"type":"usage","usage":{"inputTokens":2109,"outputTokens":72,"cacheReadTokens":0,"reasoningTokens":26}}}}
{"type":"assistant/chunk","seq":48,"time":1783279356894,"data":{"turn":1,"step":1,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}}
{"type":"assistant/message","seq":49,"time":1783279356896,"data":{"turn":1,"step":1,"content":[{"type":"reasoning","text":"The user wants me to read the file greeting.txt using the read tool (not bash), then reply with exactly \"DONE\"."},{"type":"tool-call","id":"call_00_koseLJcNvQwBvDj0H8Py0459","name":"read","arguments":"{\"file_path\": \"greeting.txt\"}"}],"usage":{"inputTokens":2109,"outputTokens":72,"cacheReadTokens":0,"reasoningTokens":26}},"sourceEventSeqs":[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"surfaceOp":"append"}
{"type":"tool/call","seq":50,"time":1783279356896,"data":{"turn":1,"step":1,"callId":"call_00_koseLJcNvQwBvDj0H8Py0459","name":"read","arguments":"{\"file_path\": \"greeting.txt\"}"}}
{"type":"tool/result","seq":51,"time":1783279356901,"data":{"turn":1,"step":1,"callId":"call_00_koseLJcNvQwBvDj0H8Py0459","content":[{"type":"text","text":"<path>/tmp/acp-snap-cwd-Zo3aiO/greeting.txt</path>\n<type>file</type>\n<content>\n1: hello\n\n(End of file - total 1 lines)\n</content>"}],"isError":false},"sourceEventSeqs":[50],"surfaceOp":"append"}
{"type":"step/end","seq":52,"time":1783279356901,"data":{"turn":1,"step":1}}
{"type":"step/start","seq":53,"time":1783279356901,"data":{"turn":1,"step":2}}
{"type":"assistant/chunk","seq":54,"time":1783279357409,"data":{"turn":1,"step":2,"chunk":{"type":"block-start","index":0,"blockType":"reasoning"}}}
{"type":"assistant/chunk","seq":55,"time":1783279357409,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":"The"}}}
{"type":"assistant/chunk","seq":56,"time":1783279357578,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":" file"}}}
{"type":"assistant/chunk","seq":57,"time":1783279357606,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":" contains"}}}
{"type":"assistant/chunk","seq":58,"time":1783279357606,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":" \""}}}
{"type":"assistant/chunk","seq":59,"time":1783279357634,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":"hello"}}}
{"type":"assistant/chunk","seq":60,"time":1783279357635,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":"\"."}}}
{"type":"assistant/chunk","seq":61,"time":1783279357635,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":" Now"}}}
{"type":"assistant/chunk","seq":62,"time":1783279357662,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":" I"}}}
{"type":"assistant/chunk","seq":63,"time":1783279357663,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":" need"}}}
{"type":"assistant/chunk","seq":64,"time":1783279357694,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":" to"}}}
{"type":"assistant/chunk","seq":65,"time":1783279357694,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":" reply"}}}
{"type":"assistant/chunk","seq":66,"time":1783279357694,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":" with"}}}
{"type":"assistant/chunk","seq":67,"time":1783279357695,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":" exactly"}}}
{"type":"assistant/chunk","seq":68,"time":1783279357695,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":" the"}}}
{"type":"assistant/chunk","seq":69,"time":1783279357695,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":" single"}}}
{"type":"assistant/chunk","seq":70,"time":1783279357723,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":" word"}}}
{"type":"assistant/chunk","seq":71,"time":1783279357723,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":" \""}}}
{"type":"assistant/chunk","seq":72,"time":1783279357724,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":"D"}}}
{"type":"assistant/chunk","seq":73,"time":1783279357724,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":"ONE"}}}
{"type":"assistant/chunk","seq":74,"time":1783279357724,"data":{"turn":1,"step":2,"chunk":{"type":"reasoning-delta","index":0,"text":"\"."}}}
{"type":"assistant/chunk","seq":75,"time":1783279357751,"data":{"turn":1,"step":2,"chunk":{"type":"block-start","index":1,"blockType":"text"}}}
{"type":"assistant/chunk","seq":76,"time":1783279357751,"data":{"turn":1,"step":2,"chunk":{"type":"text-delta","index":1,"text":"D"}}}
{"type":"assistant/chunk","seq":77,"time":1783279357751,"data":{"turn":1,"step":2,"chunk":{"type":"text-delta","index":1,"text":"ONE"}}}
{"type":"assistant/chunk","seq":78,"time":1783279357752,"data":{"turn":1,"step":2,"chunk":{"type":"block-end","index":0,"block":{"type":"reasoning","text":"The file contains \"hello\". Now I need to reply with exactly the single word \"DONE\"."}}}}
{"type":"assistant/chunk","seq":79,"time":1783279357752,"data":{"turn":1,"step":2,"chunk":{"type":"block-end","index":1,"block":{"type":"text","text":"DONE"}}}}
{"type":"assistant/chunk","seq":80,"time":1783279357752,"data":{"turn":1,"step":2,"chunk":{"type":"usage","usage":{"inputTokens":192,"outputTokens":23,"cacheReadTokens":2048,"reasoningTokens":20}}}}
{"type":"assistant/chunk","seq":81,"time":1783279357752,"data":{"turn":1,"step":2,"chunk":{"type":"finish","reason":{"kind":"stop"}}}}
{"type":"assistant/message","seq":82,"time":1783279357753,"data":{"turn":1,"step":2,"content":[{"type":"reasoning","text":"The file contains \"hello\". Now I need to reply with exactly the single word \"DONE\"."},{"type":"text","text":"DONE"}],"usage":{"inputTokens":192,"outputTokens":23,"cacheReadTokens":2048,"reasoningTokens":20}},"sourceEventSeqs":[54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81],"surfaceOp":"append"}
{"type":"step/end","seq":83,"time":1783279357753,"data":{"turn":1,"step":2}}
{"type":"turn/end","seq":84,"time":1783279357753,"data":{"turn":1,"reason":{"kind":"completed"}}}