Evaluation Harnesses and Reproducibility › The Run Manifest

Michael BrenndoerferDecember 1, 20262 min read
Language AI HandbookAll chapters
Part 57 of 67Dynamic, Interactive, and Agentic Evaluation
Chapter 436Evaluation Harnesses and Reproducibility › The Run Manifest
Reading section 5 of 18 · The Run Manifest · 2 minSection 5 of 18 · 2 min

Section 5 of 18 · 2 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

The run manifest records the task, prompt, model, grader, harness policy and runtime identities used for this fixture.

The manifest’s digest identifies the recorded configuration. Two attempts can share that configuration and produce different results if a model samples or execution state was not captured.

PythonIn [10]
CollapseExpand
RUN_POLICY = {
    "retries": 0,
    "batching": "one item",
    "response_parse_error": "score zero",
    "bad_reference": "exclude before reporting",
    "report": "accuracy and 95% Wilson interval",
}


@dataclass(frozen=True)
class RunManifest:
    dataset_digest: str
    prompt_name: str
    prompt_version: str
    prompt_digest: str
    model_name: str
    model_revision: str
    model_digest: str
    mock_capability: float
    grader_version: str
    grader_digest: str
    harness_policy_digest: str
    backend_revision: str
    python_version: str
    numpy_version: str

    @classmethod
    def build(
        cls, dataset, prompt, model, grader, backend_revision="mock-backend-1"
    ):
        cfg = model.cfg
        return cls(
            dataset_digest=digest(dataset),
            prompt_name=prompt.name,
            prompt_version=prompt.version,
            prompt_digest=prompt.template_digest(),
            model_name=cfg.name,
            model_revision=cfg.revision,
            model_digest=cfg.config_digest(),
            mock_capability=model.capability,
            grader_version=grader.version,
            grader_digest=grader.policy_digest(),
            harness_policy_digest=digest(RUN_POLICY),
            backend_revision=backend_revision,
            python_version=platform.python_version(),
            numpy_version=np.__version__,
        )

    def manifest_digest(self):
        return digest(asdict(self))


manifest_a = RunManifest.build(dataset, prompt, model_a, grader)
manifest_b = RunManifest.build(dataset, prompt, model_b, grader)
ConsoleOut [11]
CollapseExpand
Run A manifest digest: 7f1151443fcc36468f68e814 ...
Run B manifest digest: 3488e58bf9e4a8744fb10ad4 ...
Shared evaluation inputs match: True

The two manifest identities differ because the model name and mock capability differ. The dataset, prompt content, grader policy, harness policy and backend identity match. The fixture hashes its policy description. A real experiment can additionally bind the running code revision and dependency artifact bytes.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy