Files and outputs
Each job starts from a fresh copy of the repository. Only two things pass between jobs: the files a step declares, and its typed outputs.
Files
files: on a step lists files or directories it produces. When the job succeeds, they are copied into every job that directly needs it, at the same paths. A job that fails keeps the ones that exist, so you can look at what it left behind.
Outputs
outputs: on a step declares typed values it writes, one file each, in $HOD_OUTPUTS/<name>:
The jobs that directly need this one read them as jobs.<job>.outputs.<name>, type-checked, in if:, image:, env:, services and steps. Later steps of the same job read steps.<id>.outputs.<name>, which needs an id: on the step that writes them.
Each value is at most 16 KiB, and a job's outputs at most 64 KiB: anything bigger belongs in files. A declared output the step didn't write fails the job with missing_output, and a value that isn't of its type with bad_output. Only a job that succeeded has outputs.