What a contributor (human or agent) does to push a change and request its integration into a protected ref.
A push that is:
All four are produced by one atomic git push — native git verbs plus one helper for attestation
composition, no git wrapper command.
flake.nix check derivations, locally and
hermetically, via one helper (e.g. nix run .#attest); if any fails, nothing is published.refs/the-valley/attestations/<tree digest>/<signer key hash>.refs/the-valley/integration-requests/<target>/<change>, pointing at the change's head. The
target segment names the protected branch and the last segment names the change; the delta is the
merge base with that branch's tip up to the head. Writing it takes the request grant. Nothing
else is encoded, because a change is a diff targeting a stream and every part of that is already
in git (ida-93e4f91,
integration.md).git push --atomic of the topic branch plus its attestation refs; all land
or none do.post-receive hook emits one bus event per updated
ref; it is a pure projection, no policy and no verification.Run valley review <branch> to review a topic branch already pushed to origin. Choosing [a]sk
runs the checks required by the composed policy, signs their results, and publishes the evidence and
request together. Its success message confirms submission. The integrator decides separately whether
the change can land on origin/main. Review does not wait for that decision or update the local
checkout.
Run valley status <branch> to read the request and recorded result from origin. It reports whether
the change has integrated, awaits a decision, needs attention, or has a newer commit that has not
been submitted. It reads once; run it again for a later result. It does not submit a request, rerun
checks, or update the local checkout. A changed target or new evidence can make an earlier decision
obsolete. Status reports that a new decision is needed when those inputs have changed.
The stored outcome contains no detailed failure reason. For stale or rejected evidence, or an integrator failure, ask the instance operator for the integrator report. A processing failure can happen after the change lands, so that result alone does not prove the change is absent from main.
After integration, status shows how to update the local checkout. For a local main branch that can
advance without a merge, the command is git pull --ff-only origin main. If another branch is
checked out, switch to main first. If local main has diverged, inspect its commits before updating.
The bare repo's pre-receive hook enforces exactly one structural invariant: what a push may write.
It runs on every project a host serves. Topic branches are open to anyone with push access.
Attestation refs are create-only, and the hook reads each new one: its name must be
<tree digest>/<signer key hash>, and every note in it must be about that tree and signed under
that key hash. Each note must open the way a verifier opens it, under the keys the host accepts
evidence from, so a host that names no such keys accepts no attestation. The pusher need not be the
signer, because evidence is relayed. Only a principal holding the request grant may write an
integration request. Every other ref, tags included, takes a named grant of the project. A protected
ref also takes a declared writer. Replacement refs, notes and the rest of the valley's own namespace
take no push. All complex policy lives in the integrator (architecture.md, The
one structural git invariant).