Skip to content

Working with evidence

Evidence is the screenshots behind your rulings and defects, stored in the repository through Git LFS. Passes and evidence explains the model; this page is the commands.

gantry init writes the .gitattributes line that stores the blobs through Git LFS. Check the rest with gantry doctor:

Terminal window
$ gantry doctor
ok git git version 2.54.0 (Apple Git-157)
ok work tree /path/to/project
ok gantry.yaml /path/to/project/gantry.yaml
ok .gitattributes * text=auto eol=lf
ok git-lfs git-lfs/3.8.1 (GitHub; darwin arm64; go 1.27.3)
ok lfs filter git-lfs filter-process

If git-lfs or its filter is missing, install Git LFS and run git lfs install.

Your capture script (XCUITest, adb, Playwright, whatever takes the screenshots) ends by adding them:

Terminal window
$ gantry evidence add shot.png --pass 001 --platform ios \
--device "iPhone 17 Pro" --appearance dark --label 001-ios-01-tab-bar
added 001-ios-01-tab-bar (dd6a29b0257f, 180x180)
git add docs/design/evidence/manifest.yaml and the new blobs under docs/design/evidence/blobs; Git LFS stores the blobs

The label is the frame’s ID; records cite it. The commit is HEAD with a dirty flag. evidence add warns when the project’s .gitattributes would not store the new blobs through Git LFS, and refuses a symlink that points outside its directory.

Then cite the frame: in a defect’s frames, in an amendment’s evidence (gantry amend --evidence 001-ios-01-tab-bar …), or as @evidence:001-ios-01-tab-bar in any record’s body. A frame nothing cites, and that belongs to no pass, is evidence-unreferenced.

Terminal window
$ gantry evidence ls
001-ios-01-tab-bar pulled ios/dark 001 180x180

Each frame is pulled (the real file), pointer (an LFS pointer not yet pulled) or missing. In a clone that has not pulled the blobs, fetch one pass’s frames, then re-hash them against the manifest:

Terminal window
gantry evidence pull --pass 001 # git lfs pull for that pass's pointers
gantry evidence verify --pass 001 # exit 1 on any mismatch

evidence pull prints nothing to pull when every blob is already there.

evidence pull is git lfs pull, and it trusts the checkout the same way: the repository’s own git config chooses its LFS transfer agent, ssh command and credential helper, which run as you. Pull only in a repository you cloned or otherwise trust. Every other command reads git without running anything the repository’s config names. gantry show 001-ios-01-tab-bar prints a frame’s manifest entry.

Lint never needs the blobs: it checks each pointer’s oid and size against the manifest and reports frames that were not pulled by name, as evidence-not-pulled. Check out without LFS for the lint job; run gantry evidence verify in a job that pulls them, if you want the files themselves re-hashed.