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.
Set up once
Section titled “Set up once”gantry init writes the .gitattributes line that stores the blobs
through Git LFS. Check the rest with gantry doctor:
$ gantry doctorok git git version 2.54.0 (Apple Git-157)ok work tree /path/to/projectok gantry.yaml /path/to/project/gantry.yamlok .gitattributes * text=auto eol=lfok git-lfs git-lfs/3.8.1 (GitHub; darwin arm64; go 1.27.3)ok lfs filter git-lfs filter-processIf git-lfs or its filter is missing, install Git LFS and run
git lfs install.
Add frames
Section titled “Add frames”Your capture script (XCUITest, adb, Playwright, whatever takes the screenshots) ends by adding them:
$ gantry evidence add shot.png --pass 001 --platform ios \ --device "iPhone 17 Pro" --appearance dark --label 001-ios-01-tab-baradded 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 blobsThe 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.
List, pull and verify
Section titled “List, pull and verify”$ gantry evidence ls001-ios-01-tab-bar pulled ios/dark 001 180x180Each 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:
gantry evidence pull --pass 001 # git lfs pull for that pass's pointersgantry evidence verify --pass 001 # exit 1 on any mismatchevidence 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.