Defines exactly what a contributor (human or agent) does to push a change and request its integration into a protected ref.
This is the protocol that the trust model (verification) and the integrator (integration) both consume. It is intentionally tight; mechanisms for the integrator's queue, conflict resolution, and issue tracking are out of scope and have their own placeholder documents.
A push that is:
These four properties are produced by one atomic git push, with no git wrapper command. The contributor uses native git verbs and one helper for attestation composition.
The contributor commits as normal. The commit is SSH-signed using modern git's native commit signing — git config gpg.format ssh and a commit.gpgsign = true setting. No GPG. The signature establishes who made this commit.
The repo's flake.nix declares a set of derivations as the canonical checks — checks.<system>.unit, .lint, .integration, whatever the repo wants. Each runs in the Nix sandbox; effectful checks are wrapped as nixosTest VMs so they are pure derivations from the outside.
The contributor runs them via a single helper (e.g. nix run .#attest). All must succeed. If any fails, the helper exits non-zero and nothing is published.
The helper assembles a structured claim about what ran:
{
"subject_commit": "<commit-sha>",
"issued_at": "<rfc3339>",
"checks": [
{
"kind": "pure",
"tool": "sha256:<attestation-tool-derivation>",
"inputs": ["sha256:..."],
"derivation": "sha256:...",
"output": "sha256:...",
"result": "success"
},
...
]
}
The attestation makes no claim about intent to integrate. That is signaled by the ref namespace in step 6.
The helper signs the attestation with the contributor's SSH key (same key as the commit signature). The signed attestation is submitted to a Tessera-backed transparency log; the log returns an inclusion proof. The proof is appended to the signed attestation as a sidecar field.
The tlog gives the system non-repudiation and external auditability: anyone can verify the attestation was logged, when, with what content, and that the log itself is internally consistent. This is independent of and complementary to re-derivation witnessing (see verification) — the tlog proves the attestation exists and is unchanged; re-derivation proves the computation it describes actually produces the claimed result.
The signed attestation (with inclusion proof) is added as a git blob, and a ref is created:
refs/the-valley/attestations/<commit-sha> → attestation blob
This makes the attestation distributable by standard git fetch and trivially lookupable by commit SHA. The naming pattern mirrors gittuf's convention without adopting gittuf as a dependency.
A second ref is set, pointing at the topic commit:
refs/the-valley/integration-requests/<request-name> → topic-commit-sha
Pushing to this namespace is the contributor's signal: please integrate this commit into the target branch declared by repository policy. Without this ref push, the topic branch is just a backup; no integrator reacts.
git push --atomic origin \
refs/heads/topic/<name> \
refs/the-valley/attestations/<commit-sha> \
refs/the-valley/integration-requests/<request-name>
Either all three refs land or none do. No wrapper command — this is native git.
The bare repo's post-receive hook fires once. For each updated ref, it emits a corresponding event onto the bus:
refs/heads/* → ref-updatedrefs/the-valley/attestations/* → attestation-published, carrying the attestation blobrefs/the-valley/integration-requests/* → integration-requestedThe hook is a pure projection from git to bus. It performs no policy and no verification — those are the integrator's job.
The bare repo enforces one structural invariant via a pre-receive hook:
refs/heads/<protected>.The complex policy lives in the integrator. The git boundary enforces only the minimum needed for the controller pattern to work.
| Property | Source |
|---|---|
| Who made the commit | SSH commit signature |
| Who made the attestation | SSH signature on the attestation blob (same key) |
| What checks ran and what they produced | Attestation content (derivation hashes) |
| External tamper evidence | Tessera tlog inclusion proof |
| Lookup by commit | refs/the-valley/attestations/<commit-sha> ref |
| Intent to integrate | refs/the-valley/integration-requests/* ref namespace |
| Atomicity | git push --atomic |
refs/the-valley/policy ref carrying a signed configuration.See openquestions.md — items raised here live under Identity & trust bootstrapping, Storage, retention, and evolution, and Verification specifics.