Module: eval
Classes
EvalComparisonError
Extends
Error
Constructors
Constructor
new EvalComparisonError(
code,message):EvalComparisonError
Parameters
code
message
string
Returns
Overrides
Error.constructor
Properties
~effect/ErrorReporter/attributes?
readonlyoptional~effect/ErrorReporter/attributes?:ReadonlyRecord<string,unknown>
Inherited from
Error.~effect/ErrorReporter/attributes
~effect/ErrorReporter/ignore?
readonlyoptional~effect/ErrorReporter/ignore?:boolean
Inherited from
Error.~effect/ErrorReporter/ignore
~effect/ErrorReporter/severity?
readonlyoptional~effect/ErrorReporter/severity?:Severity
Inherited from
Error.~effect/ErrorReporter/severity
~effect/Runtime/errorExitCode?
readonlyoptional~effect/Runtime/errorExitCode?:number
Inherited from
Error.~effect/Runtime/errorExitCode
~effect/Runtime/errorReported?
readonlyoptional~effect/Runtime/errorReported?:boolean
Inherited from
Error.~effect/Runtime/errorReported
cause?
optionalcause?:unknown
Inherited from
Error.cause
code
readonlycode:EvalComparisonErrorCode
message
message:
string
Inherited from
Error.message
name
name:
string
Inherited from
Error.name
stack?
optionalstack?:string
Inherited from
Error.stack
stackTraceLimit
staticstackTraceLimit:number
The Error.stackTraceLimit property specifies the number of stack frames
collected by a stack trace (whether generated by new Error().stack or
Error.captureStackTrace(obj)).
The default value is 10 but may be set to any valid JavaScript number. Changes
will affect any stack trace captured after the value has been changed.
If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
Inherited from
Error.stackTraceLimit
Methods
captureStackTrace()
staticcaptureStackTrace(targetObject,constructorOpt?):void
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
Parameters
targetObject
object
constructorOpt?
Function
Returns
void
Inherited from
Error.captureStackTrace
prepareStackTrace()
staticprepareStackTrace(err,stackTraces):any
Parameters
err
Error
stackTraces
CallSite[]
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Error.prepareStackTrace
EvalConfigError
Extends
CodedError<EvalConfigErrorCode>
Constructors
Constructor
new EvalConfigError(
code,message):EvalConfigError
Parameters
code
message
string
Returns
Overrides
CodedError<EvalConfigErrorCode>.constructor
Properties
~effect/ErrorReporter/attributes?
readonlyoptional~effect/ErrorReporter/attributes?:ReadonlyRecord<string,unknown>
Inherited from
CodedError.~effect/ErrorReporter/attributes
~effect/ErrorReporter/ignore?
readonlyoptional~effect/ErrorReporter/ignore?:boolean
Inherited from
CodedError.~effect/ErrorReporter/ignore
~effect/ErrorReporter/severity?
readonlyoptional~effect/ErrorReporter/severity?:Severity
Inherited from
CodedError.~effect/ErrorReporter/severity
~effect/Runtime/errorExitCode?
readonlyoptional~effect/Runtime/errorExitCode?:number
Inherited from
CodedError.~effect/Runtime/errorExitCode
~effect/Runtime/errorReported?
readonlyoptional~effect/Runtime/errorReported?:boolean
Inherited from
CodedError.~effect/Runtime/errorReported
cause?
optionalcause?:unknown
Inherited from
CodedError.cause
code
readonlycode:EvalConfigErrorCode
Inherited from
CodedError.code
message
message:
string
Inherited from
CodedError.message
name
name:
string
Inherited from
CodedError.name
stack?
optionalstack?:string
Inherited from
CodedError.stack
stackTraceLimit
staticstackTraceLimit:number
The Error.stackTraceLimit property specifies the number of stack frames
collected by a stack trace (whether generated by new Error().stack or
Error.captureStackTrace(obj)).
The default value is 10 but may be set to any valid JavaScript number. Changes
will affect any stack trace captured after the value has been changed.
If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
Inherited from
CodedError.stackTraceLimit
Methods
captureStackTrace()
staticcaptureStackTrace(targetObject,constructorOpt?):void
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
Parameters
targetObject
object
constructorOpt?
Function
Returns
void
Inherited from
CodedError.captureStackTrace
prepareStackTrace()
staticprepareStackTrace(err,stackTraces):any
Parameters
err
Error
stackTraces
CallSite[]
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
CodedError.prepareStackTrace
EvalDefinitionError
Extends
CodedError<EvalDefinitionErrorCode>
Constructors
Constructor
new EvalDefinitionError(
code,message):EvalDefinitionError
Parameters
code
message
string
Returns
Overrides
CodedError<EvalDefinitionErrorCode>.constructor
Properties
~effect/ErrorReporter/attributes?
readonlyoptional~effect/ErrorReporter/attributes?:ReadonlyRecord<string,unknown>
Inherited from
CodedError.~effect/ErrorReporter/attributes
~effect/ErrorReporter/ignore?
readonlyoptional~effect/ErrorReporter/ignore?:boolean
Inherited from
CodedError.~effect/ErrorReporter/ignore
~effect/ErrorReporter/severity?
readonlyoptional~effect/ErrorReporter/severity?:Severity
Inherited from
CodedError.~effect/ErrorReporter/severity
~effect/Runtime/errorExitCode?
readonlyoptional~effect/Runtime/errorExitCode?:number
Inherited from
CodedError.~effect/Runtime/errorExitCode
~effect/Runtime/errorReported?
readonlyoptional~effect/Runtime/errorReported?:boolean
Inherited from
CodedError.~effect/Runtime/errorReported
cause?
optionalcause?:unknown
Inherited from
CodedError.cause
code
readonlycode:EvalDefinitionErrorCode
Inherited from
CodedError.code
message
message:
string
Inherited from
CodedError.message
name
name:
string
Inherited from
CodedError.name
stack?
optionalstack?:string
Inherited from
CodedError.stack
stackTraceLimit
staticstackTraceLimit:number
The Error.stackTraceLimit property specifies the number of stack frames
collected by a stack trace (whether generated by new Error().stack or
Error.captureStackTrace(obj)).
The default value is 10 but may be set to any valid JavaScript number. Changes
will affect any stack trace captured after the value has been changed.
If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
Inherited from
CodedError.stackTraceLimit
Methods
captureStackTrace()
staticcaptureStackTrace(targetObject,constructorOpt?):void
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
Parameters
targetObject
object
constructorOpt?
Function
Returns
void
Inherited from
CodedError.captureStackTrace
prepareStackTrace()
staticprepareStackTrace(err,stackTraces):any
Parameters
err
Error
stackTraces
CallSite[]
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
CodedError.prepareStackTrace
EvalDiscoveryError
Extends
CodedError<EvalDiscoveryErrorCode>
Constructors
Constructor
new EvalDiscoveryError(
code,message,sourcePath?):EvalDiscoveryError
Parameters
code
message
string
sourcePath?
string
Returns
Overrides
CodedError<EvalDiscoveryErrorCode>.constructor
Properties
~effect/ErrorReporter/attributes?
readonlyoptional~effect/ErrorReporter/attributes?:ReadonlyRecord<string,unknown>
Inherited from
CodedError.~effect/ErrorReporter/attributes
~effect/ErrorReporter/ignore?
readonlyoptional~effect/ErrorReporter/ignore?:boolean
Inherited from
CodedError.~effect/ErrorReporter/ignore
~effect/ErrorReporter/severity?
readonlyoptional~effect/ErrorReporter/severity?:Severity
Inherited from
CodedError.~effect/ErrorReporter/severity
~effect/Runtime/errorExitCode?
readonlyoptional~effect/Runtime/errorExitCode?:number
Inherited from
CodedError.~effect/Runtime/errorExitCode
~effect/Runtime/errorReported?
readonlyoptional~effect/Runtime/errorReported?:boolean
Inherited from
CodedError.~effect/Runtime/errorReported
cause?
optionalcause?:unknown
Inherited from
CodedError.cause
code
readonlycode:EvalDiscoveryErrorCode
Inherited from
CodedError.code
message
message:
string
Inherited from
CodedError.message
name
name:
string
Inherited from
CodedError.name
sourcePath?
readonlyoptionalsourcePath?:string
stack?
optionalstack?:string
Inherited from
CodedError.stack
stackTraceLimit
staticstackTraceLimit:number
The Error.stackTraceLimit property specifies the number of stack frames
collected by a stack trace (whether generated by new Error().stack or
Error.captureStackTrace(obj)).
The default value is 10 but may be set to any valid JavaScript number. Changes
will affect any stack trace captured after the value has been changed.
If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
Inherited from
CodedError.stackTraceLimit
Methods
captureStackTrace()
staticcaptureStackTrace(targetObject,constructorOpt?):void
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
Parameters
targetObject
object
constructorOpt?
Function
Returns
void
Inherited from
CodedError.captureStackTrace
prepareStackTrace()
staticprepareStackTrace(err,stackTraces):any
Parameters
err
Error
stackTraces
CallSite[]
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
CodedError.prepareStackTrace
EvalFixtureError
Extends
CodedError<EvalFixtureErrorCode>
Constructors
Constructor
new EvalFixtureError(
code,message):EvalFixtureError
Parameters
code
message
string
Returns
Overrides
CodedError<EvalFixtureErrorCode>.constructor
Properties
~effect/ErrorReporter/attributes?
readonlyoptional~effect/ErrorReporter/attributes?:ReadonlyRecord<string,unknown>
Inherited from
CodedError.~effect/ErrorReporter/attributes
~effect/ErrorReporter/ignore?
readonlyoptional~effect/ErrorReporter/ignore?:boolean
Inherited from
CodedError.~effect/ErrorReporter/ignore
~effect/ErrorReporter/severity?
readonlyoptional~effect/ErrorReporter/severity?:Severity
Inherited from
CodedError.~effect/ErrorReporter/severity
~effect/Runtime/errorExitCode?
readonlyoptional~effect/Runtime/errorExitCode?:number
Inherited from
CodedError.~effect/Runtime/errorExitCode
~effect/Runtime/errorReported?
readonlyoptional~effect/Runtime/errorReported?:boolean
Inherited from
CodedError.~effect/Runtime/errorReported
cause?
optionalcause?:unknown
Inherited from
CodedError.cause
code
readonlycode:EvalFixtureErrorCode
Inherited from
CodedError.code
message
message:
string
Inherited from
CodedError.message
name
name:
string
Inherited from
CodedError.name
stack?
optionalstack?:string
Inherited from
CodedError.stack
stackTraceLimit
staticstackTraceLimit:number
The Error.stackTraceLimit property specifies the number of stack frames
collected by a stack trace (whether generated by new Error().stack or
Error.captureStackTrace(obj)).
The default value is 10 but may be set to any valid JavaScript number. Changes
will affect any stack trace captured after the value has been changed.
If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
Inherited from
CodedError.stackTraceLimit
Methods
captureStackTrace()
staticcaptureStackTrace(targetObject,constructorOpt?):void
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
Parameters
targetObject
object
constructorOpt?
Function
Returns
void
Inherited from
CodedError.captureStackTrace
prepareStackTrace()
staticprepareStackTrace(err,stackTraces):any
Parameters
err
Error
stackTraces
CallSite[]
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
CodedError.prepareStackTrace
EvalHarnessError
Extends
CodedError<EvalHarnessErrorCode>
Constructors
Constructor
new EvalHarnessError(
code,message):EvalHarnessError
Parameters
code
message
string
Returns
Overrides
CodedError<EvalHarnessErrorCode>.constructor
Properties
~effect/ErrorReporter/attributes?
readonlyoptional~effect/ErrorReporter/attributes?:ReadonlyRecord<string,unknown>
Inherited from
CodedError.~effect/ErrorReporter/attributes
~effect/ErrorReporter/ignore?
readonlyoptional~effect/ErrorReporter/ignore?:boolean
Inherited from
CodedError.~effect/ErrorReporter/ignore
~effect/ErrorReporter/severity?
readonlyoptional~effect/ErrorReporter/severity?:Severity
Inherited from
CodedError.~effect/ErrorReporter/severity
~effect/Runtime/errorExitCode?
readonlyoptional~effect/Runtime/errorExitCode?:number
Inherited from
CodedError.~effect/Runtime/errorExitCode
~effect/Runtime/errorReported?
readonlyoptional~effect/Runtime/errorReported?:boolean
Inherited from
CodedError.~effect/Runtime/errorReported
cause?
optionalcause?:unknown
Inherited from
CodedError.cause
code
readonlycode:EvalHarnessErrorCode
Inherited from
CodedError.code
message
message:
string
Inherited from
CodedError.message
name
name:
string
Inherited from
CodedError.name
stack?
optionalstack?:string
Inherited from
CodedError.stack
stackTraceLimit
staticstackTraceLimit:number
The Error.stackTraceLimit property specifies the number of stack frames
collected by a stack trace (whether generated by new Error().stack or
Error.captureStackTrace(obj)).
The default value is 10 but may be set to any valid JavaScript number. Changes
will affect any stack trace captured after the value has been changed.
If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
Inherited from
CodedError.stackTraceLimit
Methods
captureStackTrace()
staticcaptureStackTrace(targetObject,constructorOpt?):void
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
Parameters
targetObject
object
constructorOpt?
Function
Returns
void
Inherited from
CodedError.captureStackTrace
prepareStackTrace()
staticprepareStackTrace(err,stackTraces):any
Parameters
err
Error
stackTraces
CallSite[]
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
CodedError.prepareStackTrace
EvalRunStoreError
Extends
CodedError<EvalRunStoreErrorCode>
Constructors
Constructor
new EvalRunStoreError(
code,message):EvalRunStoreError
Parameters
code
message
string
Returns
Overrides
CodedError<EvalRunStoreErrorCode>.constructor
Properties
~effect/ErrorReporter/attributes?
readonlyoptional~effect/ErrorReporter/attributes?:ReadonlyRecord<string,unknown>
Inherited from
CodedError.~effect/ErrorReporter/attributes
~effect/ErrorReporter/ignore?
readonlyoptional~effect/ErrorReporter/ignore?:boolean
Inherited from
CodedError.~effect/ErrorReporter/ignore
~effect/ErrorReporter/severity?
readonlyoptional~effect/ErrorReporter/severity?:Severity
Inherited from
CodedError.~effect/ErrorReporter/severity
~effect/Runtime/errorExitCode?
readonlyoptional~effect/Runtime/errorExitCode?:number
Inherited from
CodedError.~effect/Runtime/errorExitCode
~effect/Runtime/errorReported?
readonlyoptional~effect/Runtime/errorReported?:boolean
Inherited from
CodedError.~effect/Runtime/errorReported
cause?
optionalcause?:unknown
Inherited from
CodedError.cause
code
readonlycode:EvalRunStoreErrorCode
Inherited from
CodedError.code
message
message:
string
Inherited from
CodedError.message
name
name:
string
Inherited from
CodedError.name
stack?
optionalstack?:string
Inherited from
CodedError.stack
stackTraceLimit
staticstackTraceLimit:number
The Error.stackTraceLimit property specifies the number of stack frames
collected by a stack trace (whether generated by new Error().stack or
Error.captureStackTrace(obj)).
The default value is 10 but may be set to any valid JavaScript number. Changes
will affect any stack trace captured after the value has been changed.
If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
Inherited from
CodedError.stackTraceLimit
Methods
captureStackTrace()
staticcaptureStackTrace(targetObject,constructorOpt?):void
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
Parameters
targetObject
object
constructorOpt?
Function
Returns
void
Inherited from
CodedError.captureStackTrace
prepareStackTrace()
staticprepareStackTrace(err,stackTraces):any
Parameters
err
Error
stackTraces
CallSite[]
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
CodedError.prepareStackTrace
EvalRunWriter
One writer owns one run directory; every other process creates its own run.
Implements
EvalTrialWriter
Constructors
Constructor
new EvalRunWriter(
directory,record):EvalRunWriter
Parameters
directory
string
record
Returns
Accessors
directory
Get Signature
get directory():
string
Returns
string
record
Get Signature
get record():
EvalRunRecord
Returns
Methods
appendEvent()
appendEvent(
event):Promise<EvalRunEvent>
Parameters
event
Returns
Promise<EvalRunEvent>
close()
close():
Promise<void>
Returns
Promise<void>
finish()
finish(
summary):Promise<EvalRunRecord>
Parameters
summary
Returns
Promise<EvalRunRecord>
writeArtifactFile()
writeArtifactFile(
relativePath,contents):Promise<string>
Parameters
relativePath
string
contents
string
Returns
Promise<string>
Implementation of
EvalTrialWriter.writeArtifactFile
writeTrial()
writeTrial(
trial):Promise<EvalTrialRecord>
Parameters
trial
Returns
Promise<EvalTrialRecord>
Implementation of
EvalTrialWriter.writeTrial
Interfaces
ClaudeSemanticGraderRawOutput
Properties
provenance
readonlyprovenance:string
request
readonlyrequest:string
stderr
readonlystderr:string
stdout
readonlystdout:string
ClaudeSemanticGraderRun
Properties
raw
readonlyraw:ClaudeSemanticGraderRawOutput
result?
readonlyoptionalresult?:EvalScriptOutcome
CreateEvalRunOptions
Properties
artifact
readonlyartifact:EvalArtifactBinding
now?
readonlyoptionalnow?: () =>Date
Returns
Date
probeProcess?
readonlyoptionalprobeProcess?: (pid) =>boolean
Parameters
pid
number
Returns
boolean
projectRoot
readonlyprojectRoot:string
provenance
readonlyprovenance:EvalRunProvenance
runId?
readonlyoptionalrunId?:string
runsDir?
readonlyoptionalrunsDir?:string
DiscoveredEvalSuite
Properties
sourcePath
readonlysourcePath:string
suite
readonlysuite:EvalSuite
DiscoverEvalSuitesOptions
Extends
Properties
config?
readonlyoptionalconfig?:NormalizedEvalConfig
Inherited from
FindEvalSuiteFilesOptions.config
importSuiteModule?
readonlyoptionalimportSuiteModule?: (sourcePath) =>Promise<unknown>
Internal
Deterministic module-loading seam for tests and alternative loaders.
Parameters
sourcePath
string
Returns
Promise<unknown>
projectRoot
readonlyprojectRoot:string
Inherited from
FindEvalSuiteFilesOptions.projectRoot
EvalActivationEvidence
Properties
activated
readonlyactivated: readonlystring[]
level
readonlylevel:ActivationEvidence
EvalArtifactBinding
Properties
manifestPath
readonlymanifestPath:string
source
readonlysource:"explicit"|"run-owned"
targetDigests
readonlytargetDigests:Readonly<Record<string,string>>
EvalAssertionAggregate
Properties
assertionId
readonlyassertionId:string
fail
readonlyfail:number
inconclusive
readonlyinconclusive:number
kind
readonlykind:EvalAssertionKind
pass
readonlypass:number
EvalAssertionResult
Properties
assertionId
readonlyassertionId:string
detail
readonlydetail:string
evidence
readonlyevidence:ActivationEvidence
kind
readonlykind:EvalAssertionKind
outcome
readonlyoutcome:EvalAssertionOutcome
EvalCase
Properties
assertions
readonlyassertions: readonlyEvalAssertion[]
digest
readonlydigest:string
fixture
readonlyfixture:EvalFixture
hosts
readonlyhosts:Readonly<Record<string,EvalHostBinding>>
id
readonlyid:string
invocation
readonlyinvocation:EvalInvocation
prompt
readonlyprompt:string
trials
readonlytrials:number
EvalCaseAggregate
Properties
assertions
readonlyassertions: readonlyEvalAssertionAggregate[]
caseDigest
readonlycaseDigest:string
caseId
readonlycaseId:string
fail
readonlyfail:number
fixtureDigest
readonlyfixtureDigest:string
harnessFailures
readonlyharnessFailures:number
host
readonlyhost:string
inconclusive
readonlyinconclusive:number
model
readonlymodel:string
outcome
readonlyoutcome:EvalAssertionOutcome
pass
readonlypass:number
targetDigest
readonlytargetDigest:string
trials
readonlytrials:number
EvalCaseInput
Properties
assertions
readonlyassertions: readonlyEvalAssertion[]
fixture
readonlyfixture:string|EvalFixtureInput
hosts
readonlyhosts:Readonly<Record<string,EvalHostBinding>>
id
readonlyid:string
invocation
readonlyinvocation:EvalInvocation
prompt
readonlyprompt:string
trials?
readonlyoptionaltrials?:number
EvalComparableRow
Properties
baseline
readonlybaseline:EvalConditionMetrics
candidate
readonlycandidate:EvalConditionMetrics
caseId
readonlycaseId:string
comparable
readonlycomparable:true
delta
readonlydelta:EvalComparisonDelta
evidence
readonlyevidence:EvalComparisonEvidence
host
readonlyhost:string
model
readonlymodel:string
EvalComparisonDelta
Properties
meanDurationMs
readonlymeanDurationMs:number
passes
readonlypasses:number
passRate
readonlypassRate:number
reliability?
readonlyoptionalreliability?:EvalReliability
totalTokens?
readonlyoptionaltotalTokens?:number
trials
readonlytrials:number
EvalComparisonOptions
Properties
baseline
readonlybaseline:EvalComparisonSide
candidate
readonlycandidate:EvalComparisonSide
sampleSize?
readonlyoptionalsampleSize?:number
EvalComparisonSide
One side of a comparison, derived solely from its durable run and trial records.
Properties
run
readonlyrun:EvalRunRecord
trials
readonlytrials: readonlyEvalTrialRecord[]
EvalComparisonSummary
Properties
comparable
readonlycomparable:number
nonComparable
readonlynonComparable:number
reliability
readonlyreliability:number
smoke
readonlysmoke:number
EvalComparisonUsage
Properties
inputTokens
readonlyinputTokens:number
outputTokens
readonlyoutputTokens:number
recordedTrials
readonlyrecordedTrials:number
totalTokens
readonlytotalTokens:number
EvalConditionMetrics
Properties
durationMs
readonlydurationMs:number
evidence
readonlyevidence:EvalComparisonEvidence
fail
readonlyfail:number
harnessFailures
readonlyharnessFailures:number
inconclusive
readonlyinconclusive:number
meanDurationMs
readonlymeanDurationMs:number
outcome
readonlyoutcome:EvalAssertionOutcome
passes
readonlypasses:number
passRate
readonlypassRate:number
provenance
readonlyprovenance:EvalConditionProvenance
reliability?
readonlyoptionalreliability?:EvalReliability
runId
readonlyrunId:string
trials
readonlytrials:number
usage?
readonlyoptionalusage?:EvalComparisonUsage
EvalConfigInput
Properties
include?
readonlyoptionalinclude?: readonlystring[]
runsDir?
readonlyoptionalrunsDir?:string
semanticGrader?
readonlyoptionalsemanticGrader?:EvalSemanticGraderInput
EvalDraftConversion
Properties
case
readonlycase:EvalCase
provenance
readonlyprovenance:EvalDraftProvenance
EvalDraftConversionOptions
Properties
fixture
readonlyfixture:string|EvalFixtureInput
hosts
readonlyhosts:Readonly<Record<string,EvalHostBinding>>
trials?
readonlyoptionaltrials?:number
EvalDraftProvenance
Draft origin kept for alignment only; the recorded response is deliberately dropped.
Properties
epoch
readonlyepoch:PlaygroundEpochIdentity
fixtureDigest
readonlyfixtureDigest:string
target
readonlytarget:PlaygroundTarget
EvalEvidenceOptions
Extended by
ExpectMcpCallOptionsExpectNoMcpCallOptionsExpectNoSkillActivationOptionsExpectOutcomeOptionsExpectSkillActivationOptions
Properties
minimumEvidence?
readonlyoptionalminimumEvidence?:ActivationEvidence
EvalExitCodeAssertion
Properties
expected
readonlyexpected:number
id
readonlyid:string
kind
readonlykind:"exit-code"
minimumEvidence
readonlyminimumEvidence:ActivationEvidence
EvalFileGraderSpec
Properties
contains?
readonlyoptionalcontains?:string
exists
readonlyexists:boolean
id
readonlyid:string
kind
readonlykind:"file"
path
readonlypath:string
EvalFixture
A fixture path plus the exact file allowlist a trial copy may contain.
Properties
git
readonlygit:boolean
include
readonlyinclude: readonlystring[]
path
readonlypath:string
EvalFixtureInput
Properties
git?
readonlyoptionalgit?:boolean
include?
readonlyoptionalinclude?: readonlystring[]
path
readonlypath:string
EvalFixturePlan
Properties
digest
readonlydigest:string
entries
readonlyentries: readonlyEvalFixturePlanEntry[]
git
readonlygit:boolean
sourcePath
readonlysourcePath:string
EvalFixturePlanEntry
Properties
executable
readonlyexecutable:boolean
path
readonlypath:string
sha256
readonlysha256:string
EvalGraderContext
Properties
artifactRoot
readonlyartifactRoot:string
fixturePath
readonlyfixturePath:string
prompt
readonlyprompt:string
EvalGraderFailure
Properties
id
readonlyid:string
message
readonlymessage:string
EvalGraderRun
Properties
failures
readonlyfailures: readonlyEvalGraderFailure[]
results
readonlyresults:Readonly<Record<string,EvalScriptOutcome>>
EvalHarnessFailure
A defect in Agent Bundle or the host tooling, never evidence about the plugin.
Properties
code
readonlycode:EvalHarnessFailureCode
message
readonlymessage:string
stage
readonlystage:EvalHarnessFailureStage
EvalHostBinding
Properties
model
readonlymodel:string
EvalInvocation
Properties
mode
readonlymode:EvalInvocationMode
skill?
readonlyoptionalskill?:string
EvalJsonSchemaGraderSpec
Properties
id
readonlyid:string
kind
readonlykind:"json-schema"
path
readonlypath:string
schema
readonlyschema:Readonly<Record<string,unknown>>
EvalMcpCallAssertion
Properties
atLeast
readonlyatLeast:number
id
readonlyid:string
kind
readonlykind:"mcp-call"
minimumEvidence
readonlyminimumEvidence:ActivationEvidence
server
readonlyserver:string
tool
readonlytool:string
EvalMcpCallRecord
Properties
server
readonlyserver:string
tool
readonlytool:string
EvalMcpEvidence
Properties
calls
readonlycalls: readonlyEvalMcpCallRecord[]
level
readonlylevel:ActivationEvidence
EvalNoMcpCallAssertion
Properties
id
readonlyid:string
kind
readonlykind:"no-mcp-call"
minimumEvidence
readonlyminimumEvidence:ActivationEvidence
server
readonlyserver:string
tool?
readonlyoptionaltool?:string
EvalNonComparableCause
Properties
baseline
readonlybaseline:string
candidate
readonlycandidate:string
code
readonlycode:EvalNonComparableReason
message
readonlymessage:string
EvalNonComparableRow
Properties
baseline?
readonlyoptionalbaseline?:EvalConditionMetrics
candidate?
readonlyoptionalcandidate?:EvalConditionMetrics
caseId
readonlycaseId:string
causes
readonlycauses: readonlyEvalNonComparableCause[]
comparable
readonlycomparable:false
host
readonlyhost:string
model?
readonlyoptionalmodel?:string
EvalNoSkillActivationAssertion
Properties
id
readonlyid:string
kind
readonlykind:"no-skill-activation"
minimumEvidence
readonlyminimumEvidence:ActivationEvidence
skill?
readonlyoptionalskill?:string
EvalOutcomeAssertion
Properties
id
readonlyid:string
kind
readonlykind:"outcome"
minimumEvidence
readonlyminimumEvidence:ActivationEvidence
script
readonlyscript:string
EvalPluginFailure
A defect the trial observed in the plugin under test.
Properties
code
readonlycode:EvalPluginFailureCode
message
readonlymessage:string
EvalProcessEvidence
Properties
exitCode?
readonlyoptionalexitCode?:number
level
readonlylevel:ActivationEvidence
timedOut
readonlytimedOut:boolean
EvalProcessProbe
Properties
args
readonlyargs: readonlystring[]
command
readonlycommand:string
mcpCallLog?
readonlyoptionalmcpCallLog?:string
Fixture-relative JSONL log of { server, tool } records the probed process wrote.
timeoutMs?
readonlyoptionaltimeoutMs?:number
EvalReliability
Only a condition with reliability evidence carries pass@k and pass^k.
Properties
passAtK
readonlypassAtK:number
passPowerK
readonlypassPowerK:number
sampleSize
readonlysampleSize:number
EvalRepositoryGraderSpec
Properties
cleanWorktree?
readonlyoptionalcleanWorktree?:boolean
id
readonlyid:string
kind
readonlykind:"repository"
minimumCommits?
readonlyoptionalminimumCommits?:number
EvalRunEvent
Properties
kind
readonlykind:string
payload
readonlypayload:JsonValue
sequence
readonlysequence:number
timestamp
readonlytimestamp:string
EvalRunEventInput
Properties
kind
readonlykind:string
payload
readonlypayload:unknown
EvalRunEventsRead
Properties
events
readonlyevents: readonlyEvalRunEvent[]
incompleteTrailingRecord?
readonlyoptionalincompleteTrailingRecord?:string
EvalRunOwner
Properties
createdAt
readonlycreatedAt:string
nonce
readonlynonce:string
pid
readonlypid:number
EvalRunProvenance
Properties
agentBundleVersion
readonlyagentBundleVersion:string
harness
readonlyharness:string
projectRevision
readonlyprojectRevision:string
EvalRunRecord
Properties
agentBundleVersion
readonlyagentBundleVersion:string
artifact
readonlyartifact:EvalArtifactBinding
completedAt?
readonlyoptionalcompletedAt?:string
createdAt
readonlycreatedAt:string
harness
readonlyharness:string
id
readonlyid:string
projectRevision
readonlyprojectRevision:string
summary?
readonlyoptionalsummary?:EvalRunSummary
EvalRunSummary
Properties
cases
readonlycases:number
fail
readonlyfail:number
inconclusive
readonlyinconclusive:number
pass
readonlypass:number
trials
readonlytrials:number
EvalScriptEvidence
Properties
level
readonlylevel:ActivationEvidence
results
readonlyresults:Readonly<Record<string,EvalScriptOutcome>>
EvalScriptGraderSpec
Properties
id
readonlyid:string
kind
readonlykind:"script"
script
readonlyscript:string
suiteDir
readonlysuiteDir:string
EvalScriptOutcome
Properties
detail
readonlydetail:string
outcome
readonlyoutcome:EvalAssertionOutcome
EvalSemanticGraderInput
Properties
harness?
readonlyoptionalharness?:string
model?
readonlyoptionalmodel?:string
EvalSemanticGraderProvenance
The server-owned semantic grader identity used to produce a semantic outcome.
Properties
contractRevision
readonlycontractRevision:string
id
readonlyid:string
model
readonlymodel:string
EvalSkillActivationAssertion
Properties
id
readonlyid:string
kind
readonlykind:"skill-activation"
minimumEvidence
readonlyminimumEvidence:ActivationEvidence
skill
readonlyskill:string
EvalSuite
Properties
cases
readonlycases: readonlyEvalCase[]
digest
readonlydigest:string
name
readonlyname:string
EvalSuiteInput
Properties
cases
readonlycases: readonly (EvalCase|EvalCaseInput)[]
name
readonlyname:string
EvalTrialEvidence
Properties
mcp
readonlymcp:EvalMcpEvidence
process
readonlyprocess:EvalProcessEvidence
scripts
readonlyscripts:EvalScriptEvidence
skillActivation
readonlyskillActivation:EvalActivationEvidence
EvalTrialInvocationProvenance
A safe, authored invocation identity; it deliberately never carries a command or path.
Properties
mode
readonlymode:"none"|"automatic"|"explicit"
skill?
readonlyoptionalskill?:string
EvalTrialProvenance
Alignment data observed by a trial, limited to safe model, version, and authored identity values.
Properties
hostCliVersion?
readonlyoptionalhostCliVersion?:string
invocation
readonlyinvocation:EvalTrialInvocationProvenance
semanticGrader
readonlysemanticGrader:EvalTrialSemanticGraderProvenance
EvalTrialRecord
Properties
assertions
readonlyassertions: readonlyEvalAssertionResult[]
caseDigest
readonlycaseDigest:string
caseId
readonlycaseId:string
completedAt
readonlycompletedAt:string
durationMs
readonlydurationMs:number
evidence
readonlyevidence:EvalTrialEvidence
fixtureDigest
readonlyfixtureDigest:string
harnessFailure?
readonlyoptionalharnessFailure?:EvalHarnessFailure
host
readonlyhost:string
id
readonlyid:string
model
readonlymodel:string
outcome
readonlyoutcome:EvalAssertionOutcome
pluginFailure?
readonlyoptionalpluginFailure?:EvalPluginFailure
prompt
readonlyprompt:string
provenance
readonlyprovenance:EvalTrialProvenance
rawArtifacts
readonlyrawArtifacts: readonlystring[]
startedAt
readonlystartedAt:string
targetDigest
readonlytargetDigest:string
trialIndex
readonlytrialIndex:number
usage?
readonlyoptionalusage?:EvalTrialUsage
Omitted when the host did not emit normalized token counts.
EvalTrialUsage
Normalized token counts reported by a host; absent means that host reported no usable usage.
Properties
inputTokens
readonlyinputTokens:number
outputTokens
readonlyoutputTokens:number
EvalUnrecordedSemanticGraderProvenance
A semantic grader ran but its identity was not safe or complete enough to compare.
Properties
state
readonlystate:"unrecorded"
ExpectMcpCallOptions
server is the MCP server name as the host trace records it and tool the
wire tool name; both are inferred from literals so tool checks against the
project's registered tools of that server (see EvalMcpToolConstraint).
Extends
Type Parameters
Server
Server extends string = string
Tool
Tool extends string = string
Properties
atLeast?
readonlyoptionalatLeast?:number
minimumEvidence?
readonlyoptionalminimumEvidence?:ActivationEvidence
Inherited from
EvalEvidenceOptions.minimumEvidence
server
readonlyserver:Server
tool
readonlytool:EvalMcpToolConstraint<Server,Tool> |Tool&EvalMcpToolConstraint<Server,Tool>
ExpectNoMcpCallOptions
Extends
Type Parameters
Server
Server extends string = string
Tool
Tool extends string = string
Properties
minimumEvidence?
readonlyoptionalminimumEvidence?:ActivationEvidence
Inherited from
EvalEvidenceOptions.minimumEvidence
server
readonlyserver:Server
tool?
readonlyoptionaltool?:EvalMcpToolConstraint<Server,Tool> |Tool&EvalMcpToolConstraint<Server,Tool>
ExpectNoSkillActivationOptions
Extends
Properties
minimumEvidence?
readonlyoptionalminimumEvidence?:ActivationEvidence
Inherited from
EvalEvidenceOptions.minimumEvidence
skill?
readonlyoptionalskill?:string
ExpectOutcomeOptions
Extends
Properties
minimumEvidence?
readonlyoptionalminimumEvidence?:ActivationEvidence
Inherited from
EvalEvidenceOptions.minimumEvidence
script
readonlyscript:string
ExpectSkillActivationOptions
Extends
Properties
minimumEvidence?
readonlyoptionalminimumEvidence?:ActivationEvidence
Inherited from
EvalEvidenceOptions.minimumEvidence
skill
readonlyskill:string
FindEvalSuiteFilesOptions
Extended by
Properties
config?
readonlyoptionalconfig?:NormalizedEvalConfig
projectRoot
readonlyprojectRoot:string
ListEvalRunsOptions
Properties
projectRoot
readonlyprojectRoot:string
runsDir?
readonlyoptionalrunsDir?:string
MaterializedEvalFixture
Properties
digest
readonlydigest:string
path
readonlypath:string
MaterializeEvalFixtureOptions
Properties
destination
readonlydestination:string
plan
readonlyplan:EvalFixturePlan
NormalizedEvalConfig
Properties
diagnostics
readonlydiagnostics: readonlyDiagnostic[]
include
readonlyinclude: readonlystring[]
runsDir
readonlyrunsDir:string
semanticGrader?
readonlyoptionalsemanticGrader?:NormalizedEvalSemanticGrader
NormalizedEvalSemanticGrader
Properties
harness
readonlyharness:"claude"
model
readonlymodel:string
PlanEvalFixtureOptions
Properties
baseDir
readonlybaseDir:string
fixture
readonlyfixture:EvalFixture
PreparedEvalArtifact
Properties
binding
readonlybinding:EvalArtifactBinding
manifest
readonlymanifest:ArtifactManifest
root
readonlyroot:string
PrepareEvalArtifactOptions
Properties
artifact?
readonlyoptionalartifact?:string
An explicit already-built artifact root. Nothing is ever guessed from an ambient output directory.
configPath?
readonlyoptionalconfigPath?:string
projectRoot
readonlyprojectRoot:string
registry?
readonlyoptionalregistry?:TargetRegistry
runDirectory
readonlyrunDirectory:string
targets?
readonlyoptionaltargets?: readonlystring[]
ReproduceEvalTrialAssertionsOptions
Properties
directory
readonlydirectory:string
evalCase
readonlyevalCase:EvalCase
trial
readonlytrial:EvalTrialRecord
RunClaudeSemanticGraderOptions
Extends
ClaudeProcessOptions
Properties
assertions
readonlyassertions: readonlyEvalAssertion[]
environment
readonlyenvironment:ProcessEnv
gracePeriodMs?
readonlyoptionalgracePeriodMs?:number
Inherited from
ClaudeProcessOptions.gracePeriodMs
maxOutputBytes?
readonlyoptionalmaxOutputBytes?:number
Inherited from
ClaudeProcessOptions.maxOutputBytes
model
readonlymodel:string
response
readonlyresponse:string
run?
readonlyoptionalrun?:NativeClaudeProcessRunner
Injected for tests; production always spawns the installed CLI.
Inherited from
ClaudeProcessOptions.run
signal?
readonlyoptionalsignal?:AbortSignal
Inherited from
ClaudeProcessOptions.signal
task
readonlytask:string
timeoutMs?
readonlyoptionaltimeoutMs?:number
Inherited from
ClaudeProcessOptions.timeoutMs
trace
readonlytrace: readonlyClaudeTraceEvent[]
workspacePath
readonlyworkspacePath:string
RunDeterministicTrialOptions
Properties
activation?
readonlyoptionalactivation?:EvalActivationEvidence
Supplied by a future host harness; the deterministic harness cannot observe activation.
artifact
readonlyartifact:PreparedEvalArtifact
evalCase
readonlyevalCase:EvalCase
fixturePlan
readonlyfixturePlan:EvalFixturePlan
graders?
readonlyoptionalgraders?: readonlyEvalGraderSpec[]
host
readonlyhost:string
now?
readonlyoptionalnow?: () =>Date
Returns
Date
probe?
readonlyoptionalprobe?:EvalProcessProbe
suiteDir
readonlysuiteDir:string
target?
readonlyoptionaltarget?:string
trialIndex
readonlytrialIndex:number
workspaceRoot
readonlyworkspaceRoot:string
writer
readonlywriter:EvalRunWriter
Type Aliases
ActivationEvidence
ActivationEvidence =
"inferred"|"observed"|"unavailable"
The evidence strength a harness can honestly claim for one observation channel.
EvalAlignmentFacet
EvalAlignmentFacet =
"case"|"fixture"|"harness"|"host-cli-version"|"invocation"|"model"|"semantic-grader-identity"
The facets that must align before a delta is allowed. The artifact target digest is deliberately absent: it is the thing under comparison, not an alignment requirement.
EvalAssertion
EvalAssertion =
EvalExitCodeAssertion|EvalMcpCallAssertion|EvalNoMcpCallAssertion|EvalNoSkillActivationAssertion|EvalOutcomeAssertion|EvalSkillActivationAssertion
EvalAssertionKind
EvalAssertionKind =
"exit-code"|"mcp-call"|"no-mcp-call"|"no-skill-activation"|"outcome"|"skill-activation"
EvalAssertionOutcome
EvalAssertionOutcome =
"fail"|"inconclusive"|"pass"
EvalComparisonErrorCode
EvalComparisonErrorCode =
"EVAL_COMPARISON_SAMPLE_INVALID"|"EVAL_COMPARISON_USAGE_INVALID"
EvalComparisonEvidence
EvalComparisonEvidence =
"reliability"|"smoke"
EvalComparisonRow
EvalComparisonRow =
EvalComparableRow|EvalNonComparableRow
EvalConfigErrorCode
EvalConfigErrorCode =
"EVAL_CONFIG_INVALID"|"EVAL_CREDENTIAL_REJECTED"|"EVAL_INCLUDE_INVALID"|"EVAL_RUNS_DIR_INVALID"
EvalDefinitionErrorCode
EvalDefinitionErrorCode =
"EVAL_ASSERTION_INVALID"|"EVAL_CASE_INVALID"|"EVAL_CREDENTIAL_REJECTED"|"EVAL_DRAFT_INVALID"|"EVAL_FIXTURE_INVALID"|"EVAL_HOST_INVALID"|"EVAL_INVOCATION_INVALID"|"EVAL_PROMPT_INVALID"|"EVAL_SUITE_INVALID"|"EVAL_TRIALS_INVALID"
EvalDiscoveryErrorCode
EvalDiscoveryErrorCode =
"EVAL_SUITE_DUPLICATE"|"EVAL_SUITE_EXPORT_INVALID"|"EVAL_SUITE_LOAD_FAILED"
EvalFixtureErrorCode
EvalFixtureErrorCode =
"EVAL_FIXTURE_DESTINATION_EXISTS"|"EVAL_FIXTURE_ENTRY_UNSUPPORTED"|"EVAL_FIXTURE_GIT_FAILED"|"EVAL_FIXTURE_SOURCE_INVALID"
EvalGraderFunction
EvalGraderFunction = (
context) =>EvalScriptOutcome|Promise<EvalScriptOutcome>
Parameters
context
Returns
EvalScriptOutcome | Promise<EvalScriptOutcome>
EvalGraderSpec
EvalGraderSpec =
EvalFileGraderSpec|EvalJsonSchemaGraderSpec|EvalRepositoryGraderSpec|EvalScriptGraderSpec
EvalHarnessErrorCode
EvalHarnessErrorCode =
"EVAL_ARTIFACT_INVALID"|"EVAL_ARTIFACT_MISSING"|"EVAL_ARTIFACT_TARGET_MISSING"|"EVAL_HARNESS_INPUT_INVALID"|"EVAL_MODEL_BACKED_UNSUPPORTED"
EvalHarnessFailureCode
EvalHarnessFailureCode =
"EVAL_ARTIFACT_UNAVAILABLE"|"EVAL_FIXTURE_UNAVAILABLE"|"EVAL_GRADER_FAILED"|"EVAL_PROCESS_UNAVAILABLE"|"EVAL_TRACE_UNAVAILABLE"
EvalHarnessFailureStage
EvalHarnessFailureStage =
"artifact"|"fixture"|"grader"|"preflight"|"trace"
EvalInvocationMode
EvalInvocationMode =
"automatic"|"explicit"|"none"
EvalMcpToolConstraint
EvalMcpToolConstraint<
Server,Tool> =ServerextendsRegisteredMcpServerName?stringextendsTool?string:RegisteredMcpRouteName<"tool",Server> &string:string
The constraint an MCP-call assertion's tool must satisfy for Server.
Once the generated .agent-bundle/routes.d.ts registers the project's
routes and server is a literal naming one of the project's own compiled
MCP servers, a literal tool must be one of that server's registered tool
names (find for tool:curator/find) — a typo is rejected naming the
alternatives. A server outside the registration (an assertion about a
third-party MCP server the host also exposes), a value typed string, or an
unregistered project keeps string, exactly as before. The & string
reduces the alias instantiation to a literal union so a rejection lists the
server's tool names.
Type Parameters
Server
Server extends string
Tool
Tool
EvalNonComparableReason
EvalNonComparableReason =
"case-mismatch"|"fixture-mismatch"|"harness-mismatch"|"host-cli-version-mismatch"|"invocation-mismatch"|"missing-baseline"|"missing-candidate"|"model-mismatch"|"no-gradable-trials"|"semantic-grader-identity-mismatch"
EvalPluginFailureCode
EvalPluginFailureCode =
"EVAL_PLUGIN_ASSERTION_FAILED"|"EVAL_PLUGIN_PROCESS_FAILED"|"EVAL_PLUGIN_TIMED_OUT"
EvalRecordedUsage
EvalRecordedUsage =
EvalTrialUsage
EvalRunStoreErrorCode
EvalRunStoreErrorCode =
"EVAL_RUN_CLOSED"|"EVAL_RUN_CORRUPT"|"EVAL_RUN_EXISTS"|"EVAL_RUN_ID_INVALID"|"EVAL_RUN_NOT_FOUND"|"EVAL_RUN_OWNED"|"EVAL_RUN_RECORD_INVALID"
EvalTrialRecordInput
EvalTrialRecordInput =
EvalTrialRecord
EvalTrialSemanticGraderProvenance
EvalTrialSemanticGraderProvenance =
EvalSemanticGraderProvenance|EvalUnrecordedSemanticGraderProvenance|null
Variables
aggregateEvalTrials
constaggregateEvalTrials: (trials) => readonlyEvalCaseAggregate[]
Parameters
trials
readonly EvalTrialRecord[]
Returns
readonly EvalCaseAggregate[]
claudeSemanticGraderContractRevision
constclaudeSemanticGraderContractRevision:"v1"="v1"
Revision of the server-owned semantic grader request/result contract.
claudeSemanticGraderId
constclaudeSemanticGraderId:"claude-semantic"="claude-semantic"
Server-owned result identity; authored graders and expectations may never claim it.
compareEvalRuns
constcompareEvalRuns: (options) =>EvalComparison
Aligns a baseline run with a candidate run condition by condition. A condition is one case on one host; every other facet must align before a delta is produced, and a mismatch is labeled non-comparable instead of being folded into one.
Parameters
options
Returns
createEvalRun
constcreateEvalRun: (options) =>Promise<EvalRunWriter>
Parameters
options
Returns
Promise<EvalRunWriter>
defaultEvalInclude
constdefaultEvalInclude: readonlystring[]
defaultEvalRunsDir
constdefaultEvalRunsDir:".agent-bundle/runs"=".agent-bundle/runs"
defineEvalSuite
constdefineEvalSuite: (value) =>EvalSuite
Parameters
value
Returns
discoverEvalSuites
constdiscoverEvalSuites: (options) =>Promise<readonlyDiscoveredEvalSuite[]>
Parameters
options
Returns
Promise<readonly DiscoveredEvalSuite[]>
evalCaseFromDraft
constevalCaseFromDraft: (draft,options) =>EvalDraftConversion
Converts the frozen Playground draft shape. The recorded durable outcome is intentionally discarded so a promoted prompt can never carry a reference answer.
Parameters
draft
DraftEvalCase
options
Returns
evalReliabilityMinimumTrials
constevalReliabilityMinimumTrials:3=3
Fewer trials than this is a smoke check, so no reliability number is reported for it.
evalScriptGraderSpec
constevalScriptGraderSpec: (script,suiteDir) =>EvalScriptGraderSpec
Parameters
script
string
suiteDir
string
Returns
evalTargetDigests
constevalTargetDigests: (manifest) =>Readonly<Record<string,string>>
One digest per selected host projection. Every host reads the same composite root, so each digest covers the manifest's whole file table; the host name keeps the identities distinct.
Parameters
manifest
Returns
Readonly<Record<string, string>>
evidenceRank
constevidenceRank: (evidence) =>number
Parameters
evidence
Returns
number
expectExitCode
constexpectExitCode: (expected,options?) =>EvalExitCodeAssertion
Parameters
expected
number
options?
Returns
expectMcpCall
constexpectMcpCall: <Server,Tool>(options) =>EvalMcpCallAssertion
Type Parameters
Server
Server extends string
Tool
Tool extends string
Parameters
options
ExpectMcpCallOptions<Server, Tool>
Returns
expectNoMcpCall
constexpectNoMcpCall: <Server,Tool>(options) =>EvalNoMcpCallAssertion
Type Parameters
Server
Server extends string
Tool
Tool extends string
Parameters
options
ExpectNoMcpCallOptions<Server, Tool>
Returns
expectNoSkillActivation
constexpectNoSkillActivation: (options?) =>EvalNoSkillActivationAssertion
Parameters
options?
ExpectNoSkillActivationOptions
Returns
EvalNoSkillActivationAssertion
expectOutcome
constexpectOutcome: (options) =>EvalOutcomeAssertion
Parameters
options
Returns
expectSkillActivation
constexpectSkillActivation: (options) =>EvalSkillActivationAssertion
Parameters
options
Returns
findEvalSuiteFiles
constfindEvalSuiteFiles: (options) =>Promise<readonlystring[]>
Parameters
options
Returns
Promise<readonly string[]>
isEvalScriptOutcome
constisEvalScriptOutcome: (value) =>value is EvalScriptOutcome
Validates the result shape shared by authored and server-owned graders.
Parameters
value
unknown
Returns
value is EvalScriptOutcome
listEvalRuns
constlistEvalRuns: (options) =>Promise<readonlystring[]>
Parameters
options
Returns
Promise<readonly string[]>
loadEvalSuite
constloadEvalSuite: (sourcePath,importSuiteModule?) =>Promise<DiscoveredEvalSuite>
Parameters
sourcePath
string
importSuiteModule?
(path) => Promise<unknown>
Returns
Promise<DiscoveredEvalSuite>
materializeEvalFixture
constmaterializeEvalFixture: (options) =>Promise<MaterializedEvalFixture>
Creates one trial-owned workspace; a second trial always receives its own copy.
Parameters
options
Returns
Promise<MaterializedEvalFixture>
normalizeEvalCase
constnormalizeEvalCase: (value) =>EvalCase
Parameters
value
Returns
normalizeEvalConfig
constnormalizeEvalConfig: (value) =>NormalizedEvalConfig
Parameters
value
unknown
Returns
parseClaudeSemanticGraderResult
constparseClaudeSemanticGraderResult: (value) =>EvalScriptOutcome|undefined
Strictly accepts the one schema the server asks the configured Claude grader to return.
Parameters
value
string
Returns
EvalScriptOutcome | undefined
parseClaudeSemanticGraderStream
constparseClaudeSemanticGraderStream: (raw) =>EvalScriptOutcome|undefined
Parses only a complete stream with exactly one successful terminal result envelope.
Parameters
raw
string
Returns
EvalScriptOutcome | undefined
parseEvalSuite
constparseEvalSuite: (value) =>EvalSuite
Re-derives a suite loaded from disk so a hand-written object cannot impersonate an authored one.
Parameters
value
unknown
Returns
planEvalFixture
constplanEvalFixture: (options) =>Promise<EvalFixturePlan>
Records the exact allowlisted content of a fixture once, so every trial of a case copies the same bytes and reports the same digest.
Parameters
options
Returns
Promise<EvalFixturePlan>
prepareEvalArtifact
constprepareEvalArtifact: (options) =>Promise<PreparedEvalArtifact>
Explicit artifacts are read exactly where the author pointed. Current-source runs build exactly one immutable copy inside the run directory that every trial shares.
Parameters
options
Returns
Promise<PreparedEvalArtifact>
readEvalRun
constreadEvalRun: (directory) =>Promise<EvalRunRecord>
Parameters
directory
string
Returns
Promise<EvalRunRecord>
readEvalRunEvents
constreadEvalRunEvents: (directory) =>Promise<EvalRunEventsRead>
A torn final append is the only tolerated damage: it is skipped and reported, while any complete malformed record makes the run corrupt.
Parameters
directory
string
Returns
Promise<EvalRunEventsRead>
readEvalTrials
constreadEvalTrials: (directory,options?) =>Promise<readonlyEvalTrialRecord[]>
Parameters
directory
string
options?
ReadEvalTrialsOptions
Returns
Promise<readonly EvalTrialRecord[]>
reproduceEvalTrialAssertions
constreproduceEvalTrialAssertions: (options) =>Promise<readonlyEvalAssertionResult[]>
Re-derives a trial's displayed conclusions from its persisted raw evidence artifact.
Parameters
options
ReproduceEvalTrialAssertionsOptions
Returns
Promise<readonly EvalAssertionResult[]>
resolveEvalAssertion
constresolveEvalAssertion: (assertion,evidence) =>EvalAssertionResult
Parameters
assertion
evidence
Returns
resolveEvalAssertions
constresolveEvalAssertions: (assertions,evidence) => readonlyEvalAssertionResult[]
Parameters
assertions
readonly EvalAssertion[]
evidence
Returns
readonly EvalAssertionResult[]
runClaudeSemanticGrader
construnClaudeSemanticGrader: (options) =>Promise<ClaudeSemanticGraderRun>
Uses the already-preflighted Claude CLI as a model grader. The command and request are server-owned: it receives no plugin directory, hook flags, authored command, or provider credentials.
Parameters
options
RunClaudeSemanticGraderOptions
Returns
Promise<ClaudeSemanticGraderRun>
runDeterministicTrial
construnDeterministicTrial: (options) =>Promise<EvalTrialRecord>
Runs one model-free trial: a fresh fixture, an optional artifact-owned process probe, deterministic graders, and evidence-backed assertion resolution.
Parameters
options
Returns
Promise<EvalTrialRecord>
runEvalGrader
construnEvalGrader: (spec,context) =>Promise<EvalScriptOutcome>
Parameters
spec
context
Returns
Promise<EvalScriptOutcome>
runEvalGraders
construnEvalGraders: (specs,context) =>Promise<EvalGraderRun>
A grader defect never becomes plugin evidence: it is reported and its result stays inconclusive.
Parameters
specs
readonly EvalGraderSpec[]
context
Returns
Promise<EvalGraderRun>
satisfiesEvidence
constsatisfiesEvidence: (available,minimum) =>boolean
Parameters
available
minimum
Returns
boolean
summarizeEvalRun
constsummarizeEvalRun: (aggregates) =>EvalRunSummary
Parameters
aggregates
readonly EvalCaseAggregate[]
Returns
References
CodexCommandInput
Re-exports CodexCommandInput
CodexCommandResult
Re-exports CodexCommandResult
CodexCommandRunner
Re-exports CodexCommandRunner
CodexEvalHarness
Re-exports CodexEvalHarness
createCodexEvalHarness
Re-exports createCodexEvalHarness
createEvalHarness
Re-exports createEvalHarness
EvalComparison
Re-exports EvalComparison
EvalHarness
Re-exports EvalHarness
EvalSemanticGrader
Re-exports EvalSemanticGrader
EvalSemanticGraderContext
Re-exports EvalSemanticGraderContext
EvalSemanticGraderSpec
Re-exports EvalSemanticGraderSpec
runClaudeTrial
Re-exports runClaudeTrial
RunClaudeTrialOptions
Re-exports RunClaudeTrialOptions
runCodexEvalTrial
Re-exports runCodexEvalTrial
RunCodexEvalTrialOptions
Re-exports RunCodexEvalTrialOptions