{"record":{"id":"7d6d26e0c93a8d47","repo":"t8y2/dbx","slug":"agent-did-not-become-ready-s","errorCode":null,"errorMessage":"agent did not become ready: %s","messagePattern":"agent did not become ready: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"agents/drivers/kingbase-go/bench/agent_compare.go","lineNumber":206,"sourceCode":"\tprocess.command = exec.Command(argv[0], argv[1:]...)\n\tstdin, err := process.command.StdinPipe()\n\tif err != nil {\n\t\treturn nil, 0, err\n\t}\n\tstdout, err := process.command.StdoutPipe()\n\tif err != nil {\n\t\treturn nil, 0, err\n\t}\n\tprocess.command.Stderr = os.Stderr\n\tprocess.stdin = stdin\n\tprocess.reader = bufio.NewScanner(stdout)\n\tprocess.reader.Buffer(make([]byte, 64*1024), 512*1024*1024)\n\tstart := time.Now()\n\tif err := process.command.Start(); err != nil {\n\t\treturn nil, 0, err\n\t}\n\tif !process.reader.Scan() || !strings.Contains(process.reader.Text(), `\"ready\":true`) {\n\t\treturn nil, 0, fmt.Errorf(\"agent did not become ready: %s\", process.reader.Text())\n\t}\n\tstartup := time.Since(start)\n\tgo process.readResponses()\n\treturn process, startup, nil\n}\n\nfunc (process *agentProcess) readResponses() {\n\tfor process.reader.Scan() {\n\t\tvar response agentResponse\n\t\tif json.Unmarshal(process.reader.Bytes(), &response) != nil {\n\t\t\tcontinue\n\t\t}\n\t\tif channel, ok := process.pending.LoadAndDelete(response.ID); ok {\n\t\t\tchannel.(chan agentResponse) <- response\n\t\t}\n\t}\n}\n","sourceCodeStart":188,"sourceCodeEnd":224,"githubUrl":"https://github.com/t8y2/dbx/blob/c0390bff16418b651f4728520d99adf8ce48829a/agents/drivers/kingbase-go/bench/agent_compare.go#L188-L224","documentation":"Returned by startAgent in the kingbase bench harness when the spawned agent process's first stdout line does not contain \"ready\":true — the agent either printed nothing (crashed on startup) or emitted an error/trace instead of the readiness handshake within the first line.","triggerScenarios":"Thrown at agents/drivers/kingbase-go/bench/agent_compare.go:206 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run the agent binary manually with the same env to see its startup output","Check stderr (inherited by the bench) for crash or config errors","Rebuild the agent so it emits the ready handshake on stdout","Verify environment variables required by the agent are set"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c0390bff16418b651f4728520d99adf8ce48829a","analyzedAt":"2026-09-05T23:05:10.900Z","contentChangedAt":"2026-09-05T23:05:10.900Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}