Use

Evidence

cmd
hev evidence

Evidence is kit’s sixth data surface, beside traces, the board, orders, peers and hooks. An evidence package holds the proof a run produced: screenshots, short screen recordings and text such as console logs, JSON receipts and diffs, with optional claims about what they show. Validators, browser-use and computer-use runs, and spikes are the usual writers. Capture is explicit: nothing is recorded unless a command adds it.

On OSS, evidence is a folder of self-contained packages under ~/.hev/evidence/. There is no daemon, no model and no web tab: you read packages with hev evidence or in the folder.

Write a package

One step creates and seals a package:

hev evidence put --title "Checkout mobile viewport overflow validation" \
  --order checkout-mobile-fix --source browser-use \
  --tag validation --tag mobile \
  --claim "Submit button stays within 390px viewport" --verdict pass \
  shot.png repro.mp4 console.log
When you finish validating this change, keep the proof with kit: run `hev evidence put` with a --title saying what you checked, --order set to this run's name, --source browser-use (or computer-use, validator, spike, manual), one --claim per acceptance item with --verdict pass, fail or inconclusive, and the screenshots, recordings and logs you captured as files. Never capture a screen showing a credential or client data. Print the package id it returns and put it in your report.
Docs: https://hevkit.com/docs/evidence (all pages: https://hevkit.com/llms.txt)

put prints the package id. -m TEXT adds a text item, and - reads one item from stdin. --claim may be repeated; a --verdict or --criterion pairs with the --claim in the same position, and a single one applies to every claim.

To build a package up during a live run, create it, add items and claims, and seal it:

id=$(hev evidence create --title "Admin billing UAT" --order billing-uat --source computer-use)
hev evidence add "$id" before.png --caption "Initial invoice table" --url http://localhost:3000/billing
hev evidence add "$id" flow.mp4 --caption "Filter and export flow"
hev evidence add "$id" -m "POST /api/export 200 OK" --name export-status.txt
hev evidence claim "$id" "CSV export downloads without 500" --verdict pass
hev evidence seal "$id"

A package is open until it is sealed. A sealed package refuses every change, so add a new package instead.

Flags on put and create: --title (required), --summary, --source (validator, browser-use, computer-use, spike, manual, api), --order (default $HEV_ORDER), --session, --gate, --repo, --branch, --commit, --host, --author, --role (agent or human) and --tag. add also takes --caption, --url, --app, --step, --name and --meta KEY=VALUE. Claims take --verdict (pass, fail, inconclusive, info), --criterion and, on claim, --item ID.

What is accepted

The type of every file is decided by its bytes, never its name or a MIME the caller gives.

ModalityAcceptedCap
imagePNG, JPEG, GIF, WebP, with pixel width and height10 MiB
videoMP4 and MOV (ISO BMFF ftyp), WebM (EBML)100 MiB and 60 seconds
textvalid UTF-8, typed as text/plain, text/markdown, application/json, text/x-diff, text/csv or text/html5 MiB
  • SVG is refused (it can carry scripts); export it as PNG. So are BMP, TIFF, ICO, Matroska, binary files and invalid UTF-8.
  • An image must be whole, not just have a readable header: a PNG needs IHDR first, an IDAT and an IEND, with every chunk inside the file and its CRC matching; a JPEG needs every marker segment inside the file up to the scan and an EOI after it; a GIF needs at least one image, every block inside the file, and its trailer; a WebP’s RIFF size must equal the file size, with every chunk inside it.
  • Video containers are parsed in Go, with no ffmpeg: the duration comes from mvhd (MP4, MOV) or the WebM Info timecode scale and duration. Every MP4/MOV box (top level and inside moov, trak, mdia, minf, stbl and the other container boxes) and every WebM element (the Segment, each Cluster and the blocks inside it) must fit in the file: one that declares more bytes than the file holds is a truncated file and is refused, as is a corrupt container or one over a cap. A WebM written live (a browser’s MediaRecorder: Segment and Cluster of unknown size, no duration) is kept without duration_ms. Packages on this machine have no video poster frame.
  • Text is stored as a file and, at 64 KiB or less, also inlined in the manifest with its line_count.
  • Bounds per package: 64 items, 32 claims, 20 tags (lowercased and deduplicated, 64 bytes each), and per item at most 16 metadata keys of 256 bytes. Titles, summaries, captions and claims have the lengths in the contract.
  • Item names are one plain file name: a name with /, \, .. or a control character is refused. Other characters outside A-Z a-z 0-9 . _ - become -, and the stored name gets a three-digit sequence prefix.

A refused file writes nothing. put checks every file before the package appears, so one bad file leaves no package behind.

Redaction

Every text item and every string a person or agent writes into the manifest (title, summary, provenance, item names, captions, URLs, metadata and claims) passes through kit’s secret scrubber before it reaches the disk or a hook event. A found secret becomes [REDACTED:rule#fingerprint]. Text items are marked redacted: true, and the stored sha256 is of the redacted bytes.

On disk

The root is $HEV_EVIDENCE_DIR, else [evidence] dir in ~/.hev/config.toml, else ~/.hev/evidence:

# ~/.hev/config.toml
[evidence]
dir = "~/.hev/evidence"
~/.hev/evidence/
  .lock                          # cross-process lock
  ev_01jd2x8c7k4m5n6p7q8r9s0t1v/
    manifest.json                # EvidencePackage JSON
    001-checkout-390px.png
    002-checkout-submit.mp4
    003-console.log              # redacted text

Directories are 0700 and files 0600, every write is atomic, and one-shot packages are assembled in a staging folder and renamed into place. manifest.json has the same fields as the Pro API’s EvidencePackage (openapi/evidence-v1.yaml), with schema: "hev.evidence.package/v1" and ids ev_ + a lowercase ULID (items evi_, claims clm_).

hev evidence ls [--order NAME] [--session ID] [--repo R] [--gate G] [--source S] [--author A]
                [--state open|sealed] [--modality text|image|video] [--verdict pass|fail|...]
                [--tag T] [--since 7d] [--until 2026-11-20T00:00:00Z] [--limit N] [--json]
hev evidence show ID [--json]
hev evidence get ID [--out DIR] [--json]
hev evidence search QUERY [--also PHRASING]... [the ls filters] [--limit N] [--json]

--source, --modality and --verdict keep packages matching any value given; every --tag given must be on the package. --since and --until take a duration back from now (7d, 36h) or a time.

get checks every item against the sha256 and size in manifest.json and prints the package folder. With --out DIR it copies the manifest and items into DIR. A changed, missing or damaged file fails the command (non-zero) and nothing is copied.

search is word search, not semantic search. A package matches when its title, summary, provenance, tags, a claim, an item’s name, caption, URL, step or metadata, or a text item holds every word of QUERY, or of one --also phrasing (up to seven). Hits are one per package, ranked by how many distinct words matched and then newest first, with up to five matching parts and a snippet each. Images and video are found through their captions, names and claims only. Search uses rg --json to narrow the files to read when ripgrep is on PATH and a Go walk otherwise (HEV_GREP=go forces it); both give the same hits. The command prints a notice saying so on stderr, and --json answers in the EvidenceSearchResponse shape with route: "phrase.scan", engine: "rg" or "go" and semantic: false. Searching by an image or a video (--image, --video) needs Pro and fails with a message saying so.

--json on every command prints the wire shape: EvidencePackage for put, create, add, claim, seal, show and get; {"data": [EvidencePackageSummary], "next_cursor": null} for ls.

Hooks

Writing evidence raises three observe-only hook events on the writing host: evidence-created, evidence-updated and evidence-sealed. Their payload is package and item metadata and redacted claims, never item bytes or text. The Slack feed can post acceptance recordings to its channel.

Disk usage

hev s (or hev status) ends its report with what each surface holds under ~/.hev:

Disk usage (~/.hev): 1.2 GiB
  traces    1.1 GiB
  board     4.2 MiB
  orders    0 B
  peers     0 B
  hooks     12.0 MiB
  evidence  88.3 MiB
  other     1.5 MiB

traces counts ~/.hev/traces and the file archive ~/.hev/archive, board counts ~/.hev/board and ~/.hev/canvas, orders counts ~/.hev/orders and ~/.hev/dispatch, and other is the rest of ~/.hev (config, secrets cache, logs). An evidence folder configured outside ~/.hev is counted as evidence and added to the total. Dispatch worktrees under ~/dispatch and peers state under ~/.local/state/peers-v2 are outside ~/.hev and not counted. The walk does not follow symlinks and stops after a million entries or three seconds; counts are then marked ≥.

Pro

Hosted evidence

On a Pro machine signed in with a kit machine key, hev evidence create, put, add, claim, seal, ls, show and get use the hosted /v1/evidence API. File uploads stream from the input file. The CLI keeps no evidence package mirror. get verifies remote blobs and prints the resource URL. Use --out DIR to export an explicit copy. Requests with an invalid or rejected hosted credential fail. A machine with no hosted configuration uses the local evidence folder described above.

The persistence API accepts direct uploads up to 10 MiB, with a 5 MiB text limit and a 60-second video limit. It checks media from its bytes. Text is redacted before storage, so use the returned SHA-256 when attaching the blob. Image pixels and video frames can still contain sensitive data. With staged uploads enabled, the CLI streams videos over 10 MiB through 100 MiB directly to private S3 storage using a short-lived grant. The API verifies the bytes before attaching the video. The limits endpoint is GET /v1/evidence/blobs.

An open package can be edited or sealed by its owner. API clients send the current strong ETag in If-Match when editing. A stale edit returns 412. An enrolled evaluator can conditionally update only the outcome metadata on an open or sealed package. The content digest, timestamps and blobs remain stable during this update.

Hosted evidence search, federated search and the hosted viewer are future phases. Local search is available on keyless machines.

esc