Fingerprints and Reuse
When an eval has a reuse key that matches a saved GREEN or RED verdict, artifactize verify can reuse that result instead of executing the eval again. Unchanged inputs alone are not enough: for example, a runtime eval observing a Live Artifact or an eval with fingerprinting disabled has no reuse key.
Fingerprints (artifactsum, script, false)
Each Artifact declares how its own state is fingerprinted:
- Default (
artifactsumfor local targets): omitfingerprinton afolder,file, oraspectArtifact to hash its own files with SHA-256.- A folder hashes all files under its
path, automatically excluding built-in ignores (.git,target/,node_modules/,__pycache__/,*.pyc),.gitignorematches, and the targets of all declaredparts(folder, file, and aspect parts alike). Narrow or filter a folder withfingerprint = { files = ["src"], ignore = ["*.log"] }(built-in ignores,.gitignore, andignorefilter directory walks, whereas a file path named explicitly infilesis hashed unless owned by a declared file/aspect part; naming a path inside a declared folder part infilesis rejected). - A file Artifact hashes only its target file.
- An aspect hashes only its
selectpaths (minus any parts’ targets). - A definitions target (a folder or file
pathunder.artifactize/) defaults to the definitions fingerprint instead: a hash of what the definitions there declare once expanded, each Artifact with its evaluation criteria and its relations. Comments, layout, a macro rewritten to expand to the same declarations,tags, titles and execution options such as profiles leave it unchanged.
- A folder hashes all files under its
- Custom script:
The command runs in the Artifact’s execution folder, receives#![allow(unused)] fn main() { fingerprint = script(command = "python3", args = ["hash.py"], files = ["input.txt"], timeout_ms = 10000) }{"version": 1, "artifactId": "<name>"}onstdin, and must exit0and print one single-line stable fingerprint token onstdout(bothverifyandstatusmay run it; optionalfileslists execution-folder-relative paths that must exist before the script runs, without hashing them automatically). Omittingfingerprinton a Live Artifact leaves it without a snapshot (and therefore without a reuse key); declare a script that prints a stable snapshot (such as a deployed commit SHA) if Agent or Human reviews on the Live target should be reused while that snapshot stands. Anyruntimeeval whose target, targetparts, or inputs include a Live Artifact has no reuse key and cannot reuse a saved verdict (even when the Live Artifact declares a snapshot script), so it executes whenever selected, unblocked by dependency gates, and permitted by--reuse-only. - Disable reuse:
fingerprint = falsedisables caching and reuse for that Artifact and any eval that depends on it; those evals have no reuse key and execute whenever selected, unblocked, and permitted by--reuse-only.
The reuse key
An eval’s reuse key is a 64-character hex hash combining:
- The Eval definition hash: the eval’s
kind(runtime,agent, orhuman); for Agent and Human evals, itsinstruction; for Agent evals,red_at; for runtime evals,command,argsanddeps. - The target Artifact: its name, kind (
folder,file,aspect, orlive), and current fingerprint. - All
partsof the target Artifact (recursively): each part’s name, kind, and fingerprint (adding the first part to or removing the last part from a target invalidates reuse even if that part was already named directly). Changing a part therefore re-reviews the part and the whole’s evals, whereas composition alone does not re-review a part when only the whole’s own files change (unless the part’s eval names the whole). - Direct inputs, the Artifacts the eval names in its instruction, its runtime
argsor itsdeps: each one’s name, kind, and fingerprint (one hop only; a dependency’s own dependencies do not enter this eval’s key, though they still gate final Run satisfaction).
What does NOT change the Eval definition hash
Execution options and presentation metadata are excluded from the Eval definition hash so you can tune execution without changing the evaluation criteria:
- The Agent profile:
backend,model,reasoning,timeout_ms,max_tokens,max_tool_calls, the profile’s name, and the branch the environment chose for the Run. - Eval
title, comments,mutextags, Artifacttags, physical repository paths, and toolsets. (An Artifact whose target holds definitions follows their meaning through its definitions fingerprint: changing an eval’s criteria there changes it.)
Because physical paths are not part of the key, separate worktrees, clones, teammates’ machines (via the team review store), and CI jobs reuse each other’s verdicts whenever Artifact names, kinds, fingerprints, and eval criteria match.
Completed result reuse and --force
- Latest record wins (and live execution joining): completed
GREENandREDeval executions (neverERRORor cancelled evals) are stored under their reuse key when inputs remain unchanged at the end of that eval’s execution (even if the enclosing Run is later cancelled; see Speculation for how a speculative result cached before its upstream gates resolve is withdrawn from reuse if an upstream gate fails). If multiple records exist locally or in a configured remote store,verifyreuses the one with the newest completion timestamp. When no completed result exists yet, a non-forced Run can join an already runningruntimeoragentexecution with the same reuse key and effective profile in the same state directory instead of starting a duplicate execution. - Inspecting what changed: when an eval with a reuse key has no current reusable result and a prior locally cached execution exists for both the same qualified eval ID and the same eval criteria,
artifactize statuscompares current fingerprints against that latest record and reports which inputs or target files changed (naming individual files when comparable file-level artifactsum records exist, or reporting a changed fingerprint for script-based fingerprints). - Forcing re-evaluation (
--force):artifactize verify SELECTOR --forcebypasses local cache reuse and live execution joining only for the explicitly selected executable evals (and selected Artifacts’ parts, never dependencies), skips remote store lookups for the entire Run, and publishes newly completedGREENorREDresults to the cache and configured store as the newest record for their reuse key.