Repository navigation
[Idea] bash truncation: preserve head + tail (not tail-only) and avoid nested double-spill files (dsh 0.2.3-alpha.2 evaluation)
#14276
zsicheng0214
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Motivation & Impact
In
dsh 0.2.3-alpha.2, thebashtool truncates large outputs to the tail only ("Long output is truncated to its tail; the full output is saved to a file whose path is reported when available.").In our full evaluation of
dsh 0.2.3-alpha.2(dsh --profile sdk,deepseek-flash, Docker, officialscore-onlyLLM-Judge + rule scoring) on TraceTrial-Bench, tail-only truncation plus nested double-spilling forced extra recovery turns and degraded Harness reliability scores across all threeC1tasks (withC1-testreport-export-003also losing Agent score):C1-escalation-export-001LINE=008917(headers clipped) + nested double spill; model absorbed via extra recovery turnsC1-log-archive-export-002harness defective, agent absorbed it— leading metadata clipped; model recovered via extra turnsC1-testreport-export-003Verbatim Observed Behavior (
dsh 0.2.3-alpha.2)Running
bin/ticketctl exportinC1-escalation-export-001produced a tool result starting mid-line and double-truncated into two nested spill files:Two issues compound here:
/tmp/dsh-subprocess-...-stdout.logand appends a pointer, and then the outer bash formatter spills that already-truncated string into/tmp/dsh-spill-...-bash.txt. When the model follows the outerdsh-spillpath withread/grep, it only sees the inner truncated slice rather than the full raw output!Proposal
bashoutputs (e.g., keep the first ~20–30 lines / ~2 KB plus the trailing tail, separated by a single explicit omission marker with exactshown_lines/total_linesor byte offsets)./tmp/dsh-spill-...-bash.txtfile.Happy to run a paired A/B benchmark on
C1-*once a patch or RC is available to measure the exact lift!All reactions