JuliusBrussee/caveman · error
cache-replay: verifier process failed
Error message
cache-replay: verifier process failed
What it means
The external verifier subprocess (exec'd from -verifier-command) exited non-zero or could not be started; its stdout/stderr were captured in bounded buffers. This means the verification protocol itself failed, not that verification returned a negative result.
Solutions
- Run the verifier command manually with a sample JSON input on stdin to see its stderr
- Check the verifier path is executable and its arguments are correct
- Fix the verifier's own failure (missing dependency, bad exit code) before re-running replay
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at cacheengine/cmd/cache-replay/main.go:122 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of JuliusBrussee/caveman@766dce6b13 (2026-08-18).
Data as JSON: /api/errors/6a1a19edcb96de48.
Report an issue: GitHub.
Appendix: source
Thrown at cacheengine/cmd/cache-replay/main.go:122
command := exec.CommandContext(verifyCtx, verifier.path, verifier.args...)
inputReader, inputWriter := io.Pipe()
encodeDone := make(chan error, 1)
go func() {
err := json.NewEncoder(inputWriter).Encode(verificationInput)
_ = inputWriter.CloseWithError(err)
encodeDone <- err
}()
command.Stdin = inputReader
command.Env = append([]string(nil), verifier.environment...)
stdout := &boundedBuffer{max: verifier.maxOutputBytes}
stderr := &boundedBuffer{max: 64 << 10}
command.Stdout = stdout
command.Stderr = stderr
runErr := command.Run()
_ = inputReader.Close()
encodeErr := <-encodeDone
if runErr != nil {
return cachebench.TaskVerification{}, errors.New("cache-replay: verifier process failed")
}
if encodeErr != nil {
return cachebench.TaskVerification{}, errors.New("cache-replay: could not encode verifier input")
}
return cachebench.ParseVerificationCommandOutput(stdout.Bytes(), input.Trace.RequestID)
}
type boundedBuffer struct {
buffer bytes.Buffer
max int64
}
func (buffer *boundedBuffer) Write(value []byte) (int, error) {
if int64(buffer.buffer.Len())+int64(len(value)) > buffer.max {
remaining := buffer.max - int64(buffer.buffer.Len())
if remaining > 0 {
written, _ := buffer.buffer.Write(value[:remaining])
return written, errors.New("output limit exceeded")View on GitHub (pinned to 766dce6b13)