Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

feat(evals): record eval start and completion times in artifacts (#5188)

prha1bbe939f1993
diff --git a/.changeset/eval-artifact-timing.md b/.changeset/eval-artifact-timing.md
new file mode 100644
index 000000000..376d48ea5
--- /dev/null
+++ b/.changeset/eval-artifact-timing.md
@@ -0,0 +1,5 @@
+---
+"eve": patch
+---
+
+`eve eval` artifacts now record each eval's `startedAt` and `completedAt` in `summary.json`, `results.jsonl`, and the per-eval detail file.
diff --git a/docs/evals/running.mdx b/docs/evals/running.mdx
index 4c5242e6f..095f1f619 100644
--- a/docs/evals/running.mdx
+++ b/docs/evals/running.mdx
@@ -41,7 +41,7 @@ With `--verbose`, eve prefixes each line with its eval ID. It streams authored `
## Artifacts
-Each run drops artifacts under `.eve/evals/<timestamp>/`: a run `summary.json`, a `results.jsonl` index, and per-eval assertion results, verdicts, captured event streams, and `t.log` lines under `evals/`. The console output stays tight on purpose; when an eval fails, the artifact has the full story.
+Each run drops artifacts under `.eve/evals/<timestamp>/`: a run `summary.json`, a `results.jsonl` index, and per-eval assertion results, verdicts, start and completion times, captured event streams, and `t.log` lines under `evals/`. The console output stays tight on purpose; when an eval fails, the artifact has the full story.
## CI
diff --git a/packages/eve/src/evals/runner/artifacts.test.ts b/packages/eve/src/evals/runner/artifacts.test.ts
index 587ad8ab5..90ffb84e2 100644
--- a/packages/eve/src/evals/runner/artifacts.test.ts
+++ b/packages/eve/src/evals/runner/artifacts.test.ts
@@ -61,6 +61,18 @@ describe("eval artifacts", () => {
});
});
+ it("records each eval's start and completion time in every JSON artifact", async () => {
+ await writeArtifacts("/tmp/eve-evals", skippedSummary());
+
+ const timing = {
+ startedAt: "2026-01-01T00:00:00.000Z",
+ completedAt: "2026-01-01T00:00:01.000Z",
+ };
+ expect(writtenJson("/tmp/eve-evals/summary.json")).toMatchObject({ evals: [timing] });
+ expect(writtenJson("/tmp/eve-evals/results.jsonl")).toMatchObject(timing);
+ expect(writtenJson("/tmp/eve-evals/evals/runtime/skipped.json")).toMatchObject(timing);
+ });
+
it("keeps assertion diagnostics in the run summary", async () => {
await writeArtifacts("/tmp/eve-evals", judgedSummary());
diff --git a/packages/eve/src/evals/runner/artifacts.ts b/packages/eve/src/evals/runner/artifacts.ts
index 87487a3b7..46bba3e97 100644
--- a/packages/eve/src/evals/runner/artifacts.ts
+++ b/packages/eve/src/evals/runner/artifacts.ts
@@ -77,6 +77,8 @@ function buildSummaryArtifact(summary: EveEvalRunSummary): Record<string, unknow
})),
error: result.error,
skipReason: result.skipReason,
+ startedAt: result.startedAt,
+ completedAt: result.completedAt,
traceContexts: result.result.traceContexts,
})),
};
@@ -91,6 +93,8 @@ function buildResultLine(result: EveEvalResult): Record<string, unknown> {
assertions: result.assertions,
error: result.error,
skipReason: result.skipReason,
+ startedAt: result.startedAt,
+ completedAt: result.completedAt,
traceContexts: result.result.traceContexts,
};
}
@@ -113,6 +117,8 @@ function buildEvalArtifact(result: EveEvalResult): Record<string, unknown> {
assertions: result.assertions,
error: result.error,
skipReason: result.skipReason,
+ startedAt: result.startedAt,
+ completedAt: result.completedAt,
};
}