Artifacts and the Graph
An Artifact is any reviewable piece of your project: a folder, a single file, selected paths inside a folder (an aspect), or observed external state (a Live URI). You declare each Artifact with an artf statement in a .artf file under .artifactize/, written in the .artf language; its name is unique across the project. Files and subfolders inside .artifactize/ only organize the code for people: one file can declare many Artifacts, and they create no namespace or relationship.
#![allow(unused)]
fn main() {
// .artifactize/guide.artf
artf guide = {
path = "guide/"
parts = [intro, usage]
tags = ["type:docs"]
// Check that every bold term in intro and usage is defined in the glossary.
eval terms : runtime(command = "python3", args = ["check_terms.py", "@{path glossary/terms.txt}", "@{path intro/page.md}", "@{path usage/page.md}"]) = {
title = "Every bold term is defined in the glossary"
}
}
}
Run artifactize config check to validate declarations statically. Syntax errors exit 2 with the file, line, and column; a missing local target prints a note and exits 0 (becoming ERROR/PREPARATION_FAILED only on the evals that use it when verify runs).
Target kinds (path and select)
Every local path is relative to the project root, while a Live target is a URI:
| Declaration | Kind | Target and execution base |
|---|---|---|
path = "src/" (or "./") | Folder | That directory relative to the project root. Commands run in that folder. |
path = "hero.png" | File | That single regular file relative to the project root. Commands run in its containing folder, and @{path name} resolves to the file path (no /suffix). |
path = "src/" + select = ["api", "model.rs"] | Aspect | Selected paths below that project-relative folder, so a cross-cutting slice can be reviewed and reused on its own. |
path = "https://example.com" | Live | External state identified by URI. Artifactize never fetches it itself; it passes @{path name} (or @{path name/suffix}) to your declared read-only commands at the project root. File builtins and artifactsum do not apply, and omitting fingerprint leaves the Live target without a snapshot (no reuse key). |
The target kind is separate from the toolsets the Artifact composes (artf app : files & html), which give it tools and, for a plugin’s, a viewer.
The Artifact Graph and eval dependencies
The Artifact Graph connects inputs to the evals that consume them. Sharing a repository or directory never creates an implicit dependency. Instead:
- Inputs: naming
specin an eval makesspecan input of that specific eval:@{artf spec}in an Agent or Humaninstruction,@{path spec}in a runtime eval’sargs, ordeps = [spec]on a runtime eval. An input is admitted to the review’s tool scope and its fingerprint is part of the eval’s reuse key. A path in a tool declaration is not an eval reference. - Per-eval gating: plain
verifyschedules dependency-first. Ifapp/e2enamese2e-tests(outsideapp’s own reference cycle), thenapp/e2ewaits until every eval ofe2e-tests(and any reference cyclee2e-testsbelongs to) has current passing evidence (WAIT_DEPENDENCY; missing upstream checks run only if they are included in the selection, for example with--recursiveor--all, and a selected waiting Human sign-off can be deferred so downstream checks proceed asPROVISIONAL; see Sign-offs and the end of a Run) and isBLOCKEDif any of them isREDorBLOCKED(naming the root blocking eval inblockedBy). Gates control fresh execution and final satisfaction: ifapp/e2ealready has a matching cached result while its gate isRED,verifycan attach that cached result without runningapp/e2e(statusshows stateBLOCKEDwith actionreuse). Other evals onappthat do not namee2e-testscan still run immediately. - Cycles: Artifacts whose evals name each other directly or through a chain of inputs form a reference cycle. References between peers in a reference cycle do not gate on the peer itself, though an eval that references a cycle peer inherits the cycle’s external gates from outside the cycle (and Human evals still wait for their own Artifact’s machine evals). Note that
config graphcomponents also grouppartscomposition edges: a cycle closed throughpartsrather than mutually named inputs does not remove reference gates. - Human sign-off prerequisite: a Human eval on an Artifact starts only after every non-Human (
runtimeandagent) eval on that same Artifact passes (GREENorPROVISIONAL) and the Human eval’s own upstream dependency gates are satisfied; see Sign-offs and the end of a Run.
Composition (parts)
An Artifact can be made of other Artifacts by listing their names in parts = [combat, physics]. Target path nesting alone never creates composition.
- Verdicts: a whole cannot pass while any of its
parts(recursively) fails. An Artifact withpartsand no evals of its own summarizes its parts’ states and passes once they all pass. - Selection:
artifactize verify gameselectsgameand all of itspartsrecursively. - Reuse: each Artifact’s own
artifactsumexcludes the files of its declaredparts(folder, file, and aspect parts alike), while a whole’s eval reuse keys include all of its parts’ fingerprints; see Fingerprints and Reuse. - Tool visibility: built-in file tools on a whole pass over folder
partsunless the eval also names the part; see Built-in tools for how dynamic and fixed-path tools scope folder, file, and aspect parts.
Basis Artifacts, definitions, and tags
basis = true: marks an Artifact that owns no evals and is accepted as-is (such as an external requirement list or lockfile). Its fingerprint still participates in the reuse keys of evals that name it.- Reviewing
.artifactize/definitions: declare an Artifact whosepathis.artifactize/or a folder or.artffile inside it to review your project’s structure, for example with the built-inartifactizetoolset (artf graph : artifactize = { path = ".artifactize/" }). Its fingerprint follows what the definitions declare once expanded, not their text; see Fingerprints and Reuse. tags:tags = ["type:code"]adds display metadata forstatusandconfig graphwithout being part of the evaluation criteria or the definitions fingerprint.