Skip to content

Calibration Evaluation ​

An evaluation records a model's judgment of a task-result figure. A record holds evidence, answers, and human verdicts; a run groups records for comparison.

Responsibilities ​

PartResponsibility
Task-knowledge repositoryTask reference and labeled examples
pi-qdashFetch authoritative task-result evidence
pi-qcalevalAsk the six QCalEval questions and parse answers
Agent RuntimeHydrate context and return a reproducible record
QDash APIPermissions, persistence, runs, and human verdicts

The protocol ​

Each QCalEval question is a separate single-turn request with background, experiment context, question, and figure. Keep the question protocol in pi-qcaleval; hosts must not replace it with an improvised summary. Chat, single-result, and bulk evaluation leave the same record shape.

From task knowledge to the prompt ​

The API derives the task reference from task.md on each read and serves labeled examples. The runtime fetches them as the requesting user. Optional examples apply only to questions that support them. Missing knowledge or examples is recorded rather than invented.

Prompt preview builds the same questions without a model call. A knowledge draft replaces the reference only for the requested evaluation; it does not alter shared task knowledge. See the draft procedure.

The record ​

Preserve exact prompts, model/evaluator identity, evidence references and hashes, knowledge identity, requested versus used examples, answers, and human review. A rerun creates another snapshot; it does not overwrite the earlier judgment.

Comparing runs ​

Join records by target and show whether they evaluated the same task result. Differences in model, knowledge, mode, or examples are part of the comparison. Model assessment is evidence, not permission to update calibration values.

Changing it ​

Change task facts in the knowledge repository, shared hydration in pi-qdash, question/parsing logic in pi-qcaleval, and persistence in the API. Run task ci-pi-packages, task ci-agent-runtime, and affected evaluation API tests. Verify preview/runtime parity, missing evidence, project access, and record reproducibility.

Implementation Files ​

FileResponsibility
agent-runtime/src/evaluate.tsEvaluation and prompt preview
agent-runtime/src/knowledge-context.tsAuthorized knowledge fetching
agent-runtime/src/durable-tools.tsHost metadata on tool results
src/qdash/datamodel/evaluation.pyStored record shape
src/qdash/datamodel/task_knowledge.pyReference derivation

Released under the Apache 2.0 License.