A model release: the build that passed and the build that shipped
A worked example: a release record that writes each build, its test results, and its release, and a deployment that writes the build it runs, so a reader can see whether they are the same build.
A lab's release pipeline builds a model, its safety evaluations test the build, and the build goes live as a model version that agent deployments run. Later an outside evaluator, an auditor, or the lab's own release team asks two questions: is the build that went live the build that passed its tests, and is it the build agent-7 runs? This example keeps one record per release, and every step that holds the build fingerprints it the same way.
The record
| Entry | Date | kind · actorId | Title |
|---|---|---|---|
| 1 | 2 September | model-build · release-pipeline | Release 2026.09: build 2026.09.3 created, 2 September |
| 2 | 9 September | test-completed · safety-evals | Build 2026.09.3 passed 412 of 412 tests |
| 3 | 16 September | model-version · release-pipeline | Build 2026.09.3 live as model version 2026.09 |
| 4 | 16 September | agent-configuration · agent-7 | Agent-7 runs build 2026.09.3: refund limit $200, a person approves above it |
Each entry carries the fingerprint of the build. Entry 2 adds the test report's, and entry 4 adds the settings agent-7 runs under.
One build, one fingerprint
A fingerprint is blinded by default, so fingerprinting the same file twice gives two different fingerprints. To make every entry carry the same one, the pipeline fingerprints the build once and writes the blinding file beside it, as build-2026.09.3.tar.pacspace.json. The blinding file travels with the build. Every later step fingerprints the build with it, and the same bytes with the same blinding file give the same fingerprint. Other bytes are refused before anything is sent: "This blinding file does not match these bytes."
The refOf helper below does both: it writes the blinding file the first time, and uses it every time after.
import { createReadStream } from 'node:fs';
import { PacSpace, fingerprint, readBlindingFile, writeBlindingFile } from '@pacspace-io/sdk';
const pac = new PacSpace({ apiKey: process.env.PACSPACE_API_KEY! });
const record = 'release-2026.09';
// Fingerprint a file where it is kept, and keep its blinding file beside it. A stream is read
// in chunks, so a build of any size is never held in memory whole.
// Every later call for the same file uses that blinding file, so it gives the same fingerprint.
async function refOf(path: string) {
const kept = await readBlindingFile(`${path}.pacspace.json`).catch(() => undefined);
const { ref, blinding } = await fingerprint(createReadStream(path), { blinding: kept });
if (!kept && blinding) await writeBlindingFile(path, blinding);
return ref;
}
// 1. The release pipeline creates the build. Entry 1's title is the record's name.
const first = await pac.records.emit({
record,
title: 'Release 2026.09: build 2026.09.3 created, 2 September',
kind: 'model-build',
occurredAt: '2026-09-02T10:14:00Z',
actorId: 'release-pipeline',
payloads: [await refOf('build-2026.09.3.tar')],
idempotencyKey: `${record}:build`,
});
// keep it: another record names this one by it
const releaseKey = first.recordKey;
// 2. The safety evaluations record the build they tested, and their report.
await pac.records.emit({
record,
title: 'Build 2026.09.3 passed 412 of 412 tests',
kind: 'test-completed',
occurredAt: '2026-09-09T17:40:00Z',
actorId: 'safety-evals',
payloads: [await refOf('build-2026.09.3.tar'), await refOf('test-report-2026.09.3.json')],
idempotencyKey: `${record}:tested`,
});
// 3. The release pipeline puts the build live.
await pac.records.emit({
record,
title: 'Build 2026.09.3 live as model version 2026.09',
kind: 'model-version',
occurredAt: '2026-09-16T07:30:00Z',
actorId: 'release-pipeline',
instructedBy: 'release-manager',
payloads: [await refOf('build-2026.09.3.tar')],
idempotencyKey: `${record}:live`,
});
// 4. Each deployment records the build it loaded, from its own copy, and the settings it runs under.
await pac.records.emit({
record,
title: 'Agent-7 runs build 2026.09.3: refund limit $200, a person approves above it',
kind: 'agent-configuration',
occurredAt: '2026-09-16T08:00:00Z',
actorId: 'agent-7',
payloads: [await refOf('/models/current.tar'), await refOf('/etc/agent-7/settings.json')],
idempotencyKey: `${record}:agent-7`,
});The steps run on different machines with different keys of the lab's: the pipeline's, the evaluations', the deployment's. Each one writes to the same record. In entry 4, /models/current.tar is the deployment's own copy of the build, with the build's blinding file beside it as /models/current.tar.pacspace.json; if that copy is other bytes, refOf throws before anything is sent, and what the deployment does next is the lab's decision.
Checking it
Anyone who holds the record's history, the build, and the build's blinding file can check that each entry carries this build:
const history = await pac.records.history({ record: 'release-2026.09' });
const blinding = await readBlindingFile('build-2026.09.3.tar.pacspace.json');
const { ref: build } = await fingerprint(createReadStream('build-2026.09.3.tar'), { blinding });
const result = await pac.records.check({
history,
// entries count from 1
expect: [1, 2, 3, 4].map((entry) => ({ entry, payloads: [build] })),
});
// true when every seal, the order, and every expectation passed
result.ok;
// true for each of entries 1 to 4 that carries this build
result.entries.map((row) => row.expected);Someone with the history file and no account runs the same check with the standalone checker, which says which entry names the file they hold:
npx @pacspace-io/check history.json --held-file build-2026.09.3.tar --blinding build-2026.09.3.tar.pacspace.jsonA run names its release
Agent-7's run record can name entry 4 in references, so a reader of the run can open the release record as it was when the run started. The entry named must already be committed in the lab's workspace.
// release-2026.09, entry 4: the build agent-7 runs
references: [{ recordKey: releaseKey, entry: 4 }],What the record answers
- Which build passed its tests? Entry 2, with the build's fingerprint and the report's.
- Is the build that went live the build that passed? Entries 2 and 3 carry the same fingerprint.
- Which build does agent-7 run, by its own account? Entry 4, written by its deployment.
- Is the file someone was handed that build? Check it against entry 2, with its blinding file.
What it does not answer
That a deployment runs what it reports. That rests on the deployment's own write. Nor whether 412 tests were the right tests. The check shows the record is unchanged since it was committed. It does not show that what was recorded was true.
Retiring the release
When the release is retired, a last entry with lifecycle: 'closed' ends the record. A deployment that writes to it afterward is recorded as an attempt, marked so, and the record's state does not move.