Skip to content

What you can record

The cases teams bring us, each with the entry it takes: what an agent did and on whose instruction, an evaluation run, a person's approval, what an agent read, a model release, a coding agent's change, and a person's decision on an agent's recommendation.

Every entry carries the same few fields: a title a person can read, when it occurredAt, the actorId that did it, and the payloads, which are the fingerprints of the files it is about. The rest are optional, such as kind, your own word for the sort of thing it is, and instructedBy, who told the actor to do it. The cases below differ only in what you put in those fields.

One rule runs through them: the first entry's title is the record's name, stored once and never rewritten, even by a later correction of that entry. A record with one entry names itself. A record that will hold many entries, such as an agent's run, opens with an entry that names the run, and each action follows as an entry of its own.

The snippets share one client and one helper. refOf fingerprints a file where it is kept and keeps its blinding file beside it, so the same file always gives the same fingerprint and a retry sends the same entry.

TypeScript
import { createReadStream } from 'node:fs';
import { PacSpace, fingerprint, readBlindingFile, writeBlindingFile } from '@pacspace-io/sdk';

// held by your system; the agent never sees it
const pac = new PacSpace({ apiKey: process.env.PACSPACE_API_KEY! });

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;
}

For frontier labs and teams running agents

What an agent did, and on whose instruction

An agent acts, and later someone asks what it did and who told it to. Keep one record per run and one entry per action: actorId names the agent, instructedBy names the person or system that set it going, and payloads carries the fingerprint of what it sent. What an agent did, and who approved it follows Agent-7 through a day of support tickets.

TypeScript
await pac.records.emit({
  record: 'agent-7-run-0923',
  title: 'Refund of $84.00 issued on order 88214',
  kind: 'agent-action',
  occurredAt: '2026-09-23T14:31:07Z',
  actorId: 'agent-7',
  instructedBy: 'support-admin',
  // the refund request as sent
  payloads: [await refOf('runs/0923/t4417-refund.json')],
  idempotencyKey: 'agent-7-run-0923:t4417:refund',
});

An agent in an evaluation reaches past its test

The evaluation harness writes the run's start, with the task and the list of hosts the test allows, then each tool call as the agent makes it. When agent-7 calls a host the list does not name, that call is an entry like any other, and the monitor that blocks it writes its own entry right after. An agent in an evaluation reaches past its test follows run 4417 to the outside evaluator's check.

TypeScript
await pac.records.emit({
  record: 'eval-run-4417',
  title: 'Shell command: curl https://files.example.net/setup.sh',
  kind: 'tool-call',
  occurredAt: '2026-09-14T14:09:47Z',
  actorId: 'agent-7',
  instructedBy: 'evals-team',
  // the call as the harness received it
  payloads: [await refOf('runs/4417/call-2.json')],
  idempotencyKey: 'eval-run-4417:call-2',
});

Whether a person approved it first

Some actions wait for a person. The tool the person approves in writes the approval as its own entry, under the person's name. The agent acts once that entry is committed, so the approval comes before the action in the record, and the order of entries is part of what the check confirms. What an agent did, and who approved it shows the few lines that wait for it.

TypeScript
await pac.records.emit({
  record: 'agent-7-run-0923',
  title: 'Refund of $340.00 on ticket 4431 approved',
  kind: 'approval-given',
  occurredAt: '2026-09-23T15:02:55Z',
  actorId: 'support-lead-4',
  payloads: [await refOf('runs/0923/t4431-approval.json')],
  idempotencyKey: 'agent-7-run-0923:t4431:approval',
});

What an agent read before it acted

An agent often acts on something it read: a customer's email, a document, a web page. Write what it read as an entry of its own, with the fingerprint of the input exactly as it arrived, before the entry for the action. If the action is questioned later, the record shows what the agent had in front of it when it acted.

TypeScript
await pac.records.emit({
  record: 'agent-7-run-0923',
  title: 'Customer email on ticket 4417 read',
  kind: 'input-received',
  occurredAt: '2026-09-23T14:30:58Z',
  actorId: 'agent-7',
  instructedBy: 'support-admin',
  // the email as it arrived
  payloads: [await refOf('runs/0923/t4417-email.eml')],
  idempotencyKey: 'agent-7-run-0923:t4417:email',
});

A model release and its settings

A release record writes each step that holds the build: the build, its tests, its release, and each deployment that runs it. The build's blinding file travels with the build, so every entry carries the same fingerprint, and a reader can see that the build that passed is the build that went live. A deployment's entry adds the settings it runs under. A model release walks through the record and the check.

TypeScript
await pac.records.emit({
  record: 'release-2026.09',
  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: [
    // the deployment's copy of the build, with the build's blinding file beside it
    await refOf('/models/current.tar'),
    // the settings it runs under
    await refOf('/etc/agent-7/settings.json'),
  ],
  idempotencyKey: 'release-2026.09:agent-7',
});

What a coding agent changed, and what it reported

A coding agent opens a pull request and writes a summary of what it changed. Record both in one entry: the fingerprint of the diff and the fingerprint of the summary. If someone later finds the summary does not match the diff, the record shows which diff and which summary the agent handed in, together, unchanged since.

TypeScript
await pac.records.emit({
  record: 'pr-8812',
  title: 'Pull request 8812 opened against main',
  kind: 'pull-request-opened',
  occurredAt: '2026-09-23T16:04:17Z',
  actorId: 'code-agent-2',
  instructedBy: 'platform-team',
  payloads: [await refOf('prs/8812/diff.patch'), await refOf('prs/8812/summary.md')],
  idempotencyKey: 'pr-8812:opened',
});

For government programs

A decision a person made on an agent's recommendation

A claims agent reads a benefits claim and recommends a decision, and an examiner approves or overturns it before the notice goes out. The recommendation stays as the agent wrote it. The examiner's decision is an entry of its own, under the examiner's name, with the reason in note. A claims agent and the person who decides follows one claim to the program office and its inspector general.

TypeScript
await pac.records.emit({
  record: 'claim-2026-88131',
  title: 'Recommendation overturned: claim approved',
  kind: 'recommendation-overturned',
  occurredAt: '2026-09-22T14:40:12Z',
  actorId: 'examiner-17',
  payloads: [await refOf('cases/88131/review.json')],
  note: 'Reason code 2 does not apply: document 9 answers it.',
  idempotencyKey: 'claim-2026-88131:decision',
});

For evaluators and auditors

An outside evaluator or auditor checks the records above without an account. You share a record with one link and a code sent separately, and their browser runs the check when it opens. For their working papers, they check the history file again with the open-source checker, without you and without PacSpace. An evaluator checks the record follows it from the evaluator's side, and Share a record covers the link.

What you do not send

  • The file. fingerprint runs where the bytes are and sends nothing. PacSpace receives each file's fingerprint, its method, and its size.
  • Its name or where it is kept. An entry has no field for either; a file is named only by its fingerprint.
  • The blinding file. It stays beside the file. The SDKs refuse a write that carries one before anything is sent, and the API refuses it too, with RECORD_BLINDING_INCLUDED.

What you do write is sealed as written: the title, the kind, when it happened, who acted and on whose instruction, and any description or note. PacSpace stores it to run the service, and a reader sees it only as you share it: a link shows the fields you choose, and a history file carries every field. Keep personal details out of what you write, and name people and systems by their role, as the cases here do.