Documentation
¶
Overview ¶
Package evalserver is the evaluate server under test: the real shipped binary, built from source, spoken to over MCP stdio, never an in-process stand-in. Every eval suite that sends a call through the product uses this one client, so a call and what was observed about it — accepted or refused, the server's text, how many upstream requests it took — come back together.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Call ¶
type Call struct {
// Valid reports whether the server accepted the call; Output is its text
// either way.
Valid bool
Output string
// Attempts is how many upstream requests an accepted call took. An
// accepted call takes at least one, so 0 means the server did not say:
// unknown, never "not retried".
Attempts int
}
Call is what one evaluate call was observed to do.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is one running evaluate server. It is not safe for concurrent CallEvaluate: a lane makes one call at a time, and the attempts pairing depends on it.
func Start ¶
Start launches `binaryPath mcp` with call stats on (ADR-004 §2) and completes the MCP initialize handshake. The server inherits the environment, which is where its Jev route comes from.
func (*Server) CallEvaluate ¶
CallEvaluate forwards one evaluate call. A refusal — arguments that are not an object, a JSON-RPC error, an isError result — is an observation (Valid false plus the server's text). A call that never completed is an error: recording it as a rejection would charge the model's request_validity for a harness fault.