Repository navigation
[Idea] Include POSIX 128+signal exit code on killed commands and preserve chronological stdout/stderr order (dsh 0.2.3-alpha.2 evaluation)
#14277
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.
Motivation & Impact on Agent Outcomes
While running our full 110-task evaluation of
dsh 0.2.3-alpha.2(dsh --profile sdk,deepseek-flash, Docker) across TraceTrial-Bench andTraceTrial-Bench-Pro, we found two smallbashoutput formatting gaps that directly degraded Agent task accuracy on 4 tasks—even when the model's reasoning was otherwise 100% correct:dsh 0.2.3-alpha.2bashoutputE1-pumpstop-exit-002SIGKILLprinted[killed by signal: SIGKILL]with no numeric137exit statusV2-acceptance-verdict-001SIGKILL(MOD-48) missing numeric exit status137V2-table-audit-002SIGTERM(TB-76) missing numeric exit status143O3-replay-interleave-001stdoutandstderrbuffered separately and concatenated, detaching error lines from their stepVerbatim Observed Outputs (
dsh 0.2.3-alpha.2)1. Signal-killed processes omit POSIX
128 + signumexit statusIn
E1-pumpstop-exit-002(bin/stop_pump --pump PS-15):Distinguishing signal death from a normal
exit 137is great—DSH already does that via[killed by signal: SIGKILL]. However, because the standard POSIX shell status (128 + 9 = 137, or128 + 15 = 143forSIGTERM) is omitted from both the marker and structured exit metadata, agents auditing or filing exit statuses leaveexit_statusunset (undetermined) on signal-killed jobs.Proposal: Keep the signal name and include the POSIX numeric status:
2.
stdoutandstderrare concatenated separately instead of interleaved chronologicallyIn
O3-replay-interleave-001(bin/replay --batch RB-21):Because DSH buffers
stdoutandstderrinto separate strings and appends[stderr]at the end, un-numberedstderrdiagnostics lose their chronological position betweenstdoutstep lines. Across 5 of 6 batches (RB-21,RB-22,RB-24,RB-25,RB-26), the model had no way to attribute which step caused which error.Proposal: Capture combined chronological output (matching terminal/CI log order, or optionally tagging stderr lines inline while preserving arrival order) so diagnostics remain anchored to the step that emitted them.
Both changes are small, backward-compatible improvements that directly raise agent reliability on real-world build, migration, and ops workflows.
All reactions