Production evidence
A real Go agent failure during module preparation calls RuntimeWrapper.TestError. The response contains only TestStatus_ERROR; TestRunResult and counts are absent, so protobuf consumers observe TestRunResult_UNKNOWN. Mind cannot distinguish an environment block from an unclassified transport failure.
The Go environment classifier also inspects captured process output but not the pre-execution error text, so malformed go.mod failures raised during dependency preparation lose the module-broken reason.
Required generic fix
TestError and TestErrorf return a complete typed terminal response: status ERROR, result ERRORED, zero counts, and failure details.
- Go environment classification considers both captured output and the runner error.
- Real Go agent test preserves
env-blocked (module-broken) for malformed module metadata.
Definition of done
- Core tests lock the current response contract.
- Core full CI passes.
- Service-go real runtime and Mind Gateway unhappy-path fixtures pass unchanged.
Production evidence
A real Go agent failure during module preparation calls
RuntimeWrapper.TestError. The response contains onlyTestStatus_ERROR;TestRunResultand counts are absent, so protobuf consumers observeTestRunResult_UNKNOWN. Mind cannot distinguish an environment block from an unclassified transport failure.The Go environment classifier also inspects captured process output but not the pre-execution error text, so malformed
go.modfailures raised during dependency preparation lose themodule-brokenreason.Required generic fix
TestErrorandTestErrorfreturn a complete typed terminal response: status ERROR, result ERRORED, zero counts, and failure details.env-blocked (module-broken)for malformed module metadata.Definition of done