gunk-dev/the-valley
the-valley:oc-c0ab31eoutcomeopen

valley self-update installs only a main the integrator landed and signed

State
free to start
Created
2026-11-09 by contributor

Body

`valley self-update` (`selfupdate/`) resolves the tip of a branch with `git ls-remote`, builds that commit, smoke-tests it, and installs it. It never asks where the commit came from. A client that follows a mirror over HTTPS therefore installs whatever the mirror's main holds. The client it installs is the one that runs `valley approve` and review's `[a]pprove`, so whoever can write the mirror can change the operator's approval tool within one timer period.

The integrator signs a transfer statement for every landing, and `valley status` and `pending` already verify those statements against the published signers (`--known-signers`, `refs/the-valley/signers`).

Outcome: self-update installs a commit only when it is a landing the integrator signed for the branch's target, verified against a pinned or published integrator key. That holds whichever URL it fetched from. Anything else is refused and recorded as a failed tip, the way a build or smoke failure is.

Done when self-update refuses a tip that has no valid integrator transfer statement, including one pushed to a mirror by hand, and installs a signed landing as it does today. The signer it trusts must come from configuration the operator controls, not from the repository being fetched.

Comments

No comments.