Evidence of a run
Every run keeps a record of what happened to it in evidence.jsonl in its run folder: one line per
event, in the order they happened. Lines are only added, never changed. Every line carries the
hash of the line before it and its own hash, so a line that was changed, added, removed or moved
can be found.
- Run events: queued, created, started, stopped (also: waiting for approval), resumed, cancelled, failed, completed.
- Step events: started, given to a model (and the model before it, after a fallback), its tool
profile worked out for a try (
step.profiled, from version 3: the profile's id, version and hash, and what the agent cannot hold, never its rules), tried again (after an outage or a usage limit), a tool that was refused, approved or rejected, failed, completed. - A local test is marked. The
run.createdevent of a run started with--local-testhaslocalTest: true. Such a run never gets a delivery contract: see "Use only promoted versions". - What is in it: ids, names, times, who asked (an account id, the command line, a watcher or the Foundry), the model, the exit code, and for every finished step the path, SHA-256 and size of its log or transcript. What is not: the task, prompts, outputs, error texts, notes, tokens or keys. Logs are named, not copied.
- A shell step whose id has the word
testortests(for examplerun_tests) is recorded as a test run, passed or failed. - Older builds. Evidence version 3 adds
step.profiled. Version 2 lines are read as before. A Foundry from before this change refuses the evidence of a run that has version 3 lines, so it cannot verify that run. Version 7 addspackSha256to a policy denial (the pack that denied, when known) and allows a policystep.deniedwithout a step, for a denial about the whole run. Versions 1 to 6 are read as before; a delivery validator that only knows version 6 refuses version 7 lines. Version 8 addslocalTesttorun.created, set only for a run started with--local-test. Versions 1 to 7 are read as before, and a run from version 7 is never marked. A delivery validator that only knows version 7 refuses version 8 lines, so update it before you use the Foundry for delivery. Version 9 adds the eventgovernance.decided, written by a run that is checked for governance (see "Governance of a component"). Versions 1 to 8 are read as before. A delivery validator that only knows version 8 refuses version 9 lines, so the validator is 1.2.0 from this change on: update the pin first. Version 10 adds the eventrun.autonomy(see "Autonomy levels"). Versions 1 to 9 are read as before. A delivery validator that only knows version 9 refuses version 10 lines, so the validator is 1.3.0 from this change on: update the pin first. Version 11 addsresumed: trueto the eventrun.autonomy, written when a resumed run has another level than before (see "Autonomy levels"). Versions 1 to 10 are read as before. A delivery validator that only knows version 10 refuses version 11 lines, so the validator is 1.4.0 from this change on: update the pin first. - It never stops a run. If the file cannot be written, the live log says so once
(
! evidence: …) and the run goes on without more evidence. The run folder then gets the empty fileevidence.incomplete: the record of this run is not whole, it is not continued, and the run gets no manifest. - The manifest. When a run ends (succeeded, failed or cancelled),
evidence.jsonis written in the run folder: the status and times, the flow and the hash of its definition, the number of events and the hash of the last one, the base and final commit, the models, approvals and test results, every log and transcript with its hash, and the pull request when the run was started for one. For a run that changed code,evidence.diffholds the diff between the two commits (stored secrets hidden) and the manifest has its hash. The manifest holds no task, output, note or key. - If the manifest cannot be written, the live log says
! evidence: no manifest was written (…); this run cannot be verified, and there is noevidence.json. The run and its result are not changed. - Resume: a resumed run adds to the same file. Its manifest and diff are removed while it goes on, and written again when it ends. Runs made before this have no file and work as before; when such a run is resumed it gets events from then on, but no manifest.
- A step of a user's run cannot write these files.
Privacy and how long evidence is kept.
- Stored secrets (the saved credentials and key variables) are hidden in every event before it is written, with the same filter as for logs. Events hold no prompt, no output and no tool arguments. If the stored credentials cannot be read, the evidence of the run stops (see "It never stops a run") and the run gets no manifest.
- Before the manifest is written, the events and the manifest are checked for stored secrets once more. If one is found (for example a secret that was saved while the run was going), no manifest is written and the live log says why.
evidence.diffholds the code the run changed, with stored secrets hidden. Treat it like the workspace: whoever can read the run folder can read that code.- Evidence is kept as long as its run. A normal clean-up removes only workspaces, so the logs the
evidence needs stay and the run can still be verified.
scf clean --purgeremoves the run with its evidence. - To remove evidence earlier than the run, add
--evidence-older-than <days>toscf clean(evidenceOlderThanDaysinPOST /api/clean). It applies to the runs the clean-up handles (see--older-than) that ended at least that many days ago. All evidence files of such a run go together (evidence.json,evidence.diff,evidence.jsonl,evidence.incomplete); the run, its logs and its page stay.scf evidence verifythen says· no evidence. Without the option nothing changes. - Runs made before evidence existed keep working everywhere; they have no evidence files, and
scf evidence verifysays so (· no evidence).
Read the evidence through the API. GET /api/runs/:id/evidence (or scf runs evidence <run-id>
against a server) answers for one run:
state:availablewhen the run has a manifest that can be read, elsenot_availablewith areason. A run made before evidence existed, a run that has not ended and a run whose evidence was removed all answernot_availablewith status 200; the run page and every other call work as before.verification: the result of the same check asscf evidence verify(status,verified,explanation, the checks, and the first failure when there is one).manifest: whatevidence.jsonsays.artifacts: the files the manifest names (the diff last), each with its path inside the run folder, SHA-256, size, whether the evidence needs it, and what the check found (ok,changed,missing,unreadable).
The answer never holds the content of a file, a path of the server, a prompt or an output. The
changes and the transcripts of a run stay behind their own calls and rules
(GET /api/runs/:id/diff, GET /api/runs/:id/transcript/:n). An administrator may read the
evidence of any run. A user may read the evidence of their own runs, without the models, the
policies and the ids of accounts; any other run answers "run not found", the same as a run that
does not exist.
Check the evidence of a run. scf evidence verify <run-id> reads the run folder and says
whether the evidence is still what was written. It needs no server and no network.
$ scf evidence verify 20260131-120000-ab12
✔ verified · run 20260131-120000-ab12
Verified: 8 events in an unbroken chain, 3 files unchanged.
events: 8, last hash 5d0c…
manifest: sha256 91f2… (succeeded, written 2026-01-31T12:00:02.600Z)
- It checks, in this order: the manifest; the event file; every line of the chain; that the
events end where the manifest says; that the manifest says what the events say; the flow
definition in
run.json; and every log, transcript and diff the manifest names. - Not verified names the first thing that is wrong, for example
Not verified: evidence.jsonl, line 5: was changed (its hash is not the hash of its content).orNot verified: logs/002-run_tests.log was changed. - A file that is gone: a log or transcript is needed, so the run is not verified. The diff is
optional: the run still verifies, and the line says
1 optional file is no longer there (evidence.diff); that is allowed.A file that was changed is never allowed. - Nothing to verify: a run made before evidence existed or whose evidence a clean-up removed (
· no evidence), or a run that has not ended or could not be finalized (■ not finalized). - Exit code: 0 verified, 1 not verified, 2 nothing to verify.
--jsonprints the whole result (status, the first failure with its code, every check and every file) for a script.--runs-dir <dir>reads another runs folder. - Slowest test files (#989). When the run has
test-times.json(see Time of each test file under the test steps), the Evidence section of the Details tab shows a Slowest test files table below the Context sources: up to 10 files, slowest first, with the time, the number of tests and the result (Passed, Failed or Skipped). Under the table, a line gives the suite total (tests, files, time and worst result), and says how many of the files are shown. A run without the file shows nothing extra. A file that cannot be used shows one sentence and no table. Entries that are not well formed are left out. Names are shown as plain text. A user sees the same table for their own runs only, with folder paths hidden; an administrator sees the names as they are written. The data is also available asGET /api/runs/:id/test-timesand asscf runs test-times <id>. A test step that runs again without a usable report clears the earlier times.