Skip to main content

Crate runifold_testkit

Crate runifold_testkit 

Source
Expand description

Deterministic helpers for testing Runifold runtime semantics.

Structs§

EvaluationCase
One immutable evaluation input and its optional reference answer.
EvaluationCaseId
Stable case identity within a dataset.
EvaluationCaseResult
Output-free per-case evaluation result.
EvaluationDataset
Versioned, duplicate-free evaluation dataset.
EvaluationFailure
Safe per-case execution or scorer failure.
EvaluationMetrics
Non-sensitive resource evidence for one successful target execution.
EvaluationOutput
Target output plus optional Run/Trace correlation.
EvaluationReport
Deterministic candidate evaluation report.
EvaluationRunner
Concurrent deterministic evaluation orchestrator.
EvaluationScore
One persisted per-case score.
EvaluationScoreSummary
Aggregate score statistics.
FaultController
Shared deterministic fault plan and execution counters.
FaultInjectingModel
Model wrapper applying one queued fault per invocation.
FaultInjectingTool
Tool wrapper applying named, one-based invocation faults.
FileEvaluationRepository
Filesystem-backed immutable JSON evaluation repository.
FnScorer
Closure-backed asynchronous scorer.
GoldenTrace
Versioned, serializable execution trace for behavioral regression tests.
JsonExactMatchScorer
Deterministic JSON equality scorer.
JsonRuleScorer
Weighted deterministic scorer for structured outputs.
JudgeRubric
Versioned rubric for a structured model judge.
MetricRegression
One baseline-to-candidate score comparison.
ModelJudgeScorer
Canonical-model-backed structured LLM judge.
ModelScenario
Accumulates a scripted provider event sequence without network access.
RecoveryHarness
Reconstructs runtime state from one factory while preserving external fixtures such as stores, fault counters, and cassette servers.
RegressionComparison
Complete relative regression decision.
RegressionPolicy
Allowed relative quality drops.
RetrievalCaseMetrics
Metrics for one ranked retrieval case.
RetrievalEvaluationCase
One versionable retrieval-quality case.
RetrievalEvaluationReport
Macro-averaged retrieval-quality report.
RetrievalEvaluationRunner
Deterministic evaluator for any provider-neutral retriever.
RunScenario
An isolated root run with deterministic event collection.
ScoreValue
Validated score value and optional evaluator rationale.
ScriptedModel
A deterministic, queue-backed model adapter.
TokenOverlapScorer
Deterministic lexical overlap scorer for string reference answers.
ToolFault
Fault applied to one named Tool invocation.
WeightedJsonRule
One weighted deterministic JSON-output rule.

Enums§

EvaluationError
Evaluation configuration or execution failure.
EvaluationFailureStage
Evaluation failure stage.
EvaluationStoreError
Evaluation artifact repository failure.
GoldenTraceMismatch
Typed golden-trace comparison failure.
JsonRule
Deterministic rule over a target JSON output.
ModelFault
Fault applied to one model invocation.
RetrievalEvaluationError
Invalid dataset or failed retrieval evaluation.
ScenarioAssertionError
Typed failure from a scenario assertion.

Traits§

EvaluationRepository
Versioned dataset and candidate-report repository.
EvaluationScorer
Asynchronous scorer boundary.
EvaluationTarget
Asynchronous system-under-evaluation boundary.

Type Aliases§

EvaluationFuture
Owned asynchronous evaluation operation.
FaultScenario
Fluent scenario name for FaultController.