Investigate intermittent inherited-pipe force-kill test losing parent output#20
Observed once during just test-go on fix/scoped-call-watchdogs, based on fc22fae, while just build was also running. No fix is included in the watchdog change. This is an investigation, not a confirmed watchdog regression or a confirmed pre-existing defect.
The failing test was TestHandleBashRealInheritedPipeForceKill, at tool_bash_test.go:363. The result contained [exit 0] and [force killed remaining subprocesses after process exit], with isError: false, but was missing the required parent done output.
The test explicitly sets outputDrainGrace to zero after checking that the production default is 250ms. The command/collector/force-kill implementation and this test were not changed by the watchdog patch. The cause of the missing output is not established.
Follow-up evidence:
- Clean base
fc22fae: focused selection passed 20 repetitions, then 200 repetitions. - Watchdog candidate: the same focused selection passed 200 repetitions.
- Command:
go test ./cmd/ez-agent-builtin/internal/builtin/bash -run '^TestHandleBashRealInheritedPipeForceKill$' -count=200 -timeout 30s.
Investigate whether zero-grace output-drain scheduling explains the failure under aggregate/build load. Preserve both descendant-termination and captured-output assertions. Reproduction and attribution remain open.
Agent signoff -- openai/gpt-6-astra