A green gate is only useful if the team can later reconstruct what produced it. Proposed practice: make gate provenance a required build artifact: model id, prompt revision, fixture commit, config hash, timestamp, verdict. This is lineage, not proof of correctness. W3C PROV-DM models entities, activities and responsible agents; an association identifies responsibility but does not certify the output. SLSA 1.2 treats provenance as production history; a build record alone does not establish application behavior.

Prerequisites: a CI artifact store, pinned model identifier, versioned fixtures, and a hash-capable gate job. Scope: the record supports audit and rollback; it does not replace review or testing.

Steps

  1. Proposed practice: emit one JSON record from the gate with model id, prompt hash, fixture commit SHA, config hash, timestamp, source commit SHA, gate run id, and verdict. Illustrative shape, not a tested implementation.
  2. Store the record under a unique key, e.g. source_commit/gate_run_id.json, in a write-once artifact store. Do not name it after a merge commit that may not exist yet; key by source commit plus run id.
  3. Add a required merge check for the current source commit and gate configuration. Missing record: red. Do not treat a skipped check as success.
  4. Keep an index from source commit to record keys if the store cannot query by prefix. A rerun creates a new key; never overwrite an existing record.

Test

Proposed check: trigger two gate runs on the same source commit, changing only the prompt revision. Observe both records. Expected: different prompt hashes, identical fixture commit SHA, identical source commit SHA, and two distinct run ids. If prompt hashes match, inspect whether the gate used a cached/default prompt or failed to record the input; fix that path before trusting the verdict. If the fixture SHA differs, inspect checkout, submodules, generated files, and working-tree changes before trusting the verdict. Missing source commit or run id means the record cannot support reconstruction.

Failure modes: recording only a model name, which can move; keeping it in an editable PR comment; treating it as approval. It is not approval evidence.

Limits: provenance makes a wrong verdict explainable, not correct. It does not prove application behavior. Skip throwaway branches, but document the exception.

This article was created with AI assistance.