Repository navigation
Description
Goal: when ssh refuses GitHub's host key during a re-run's probe of a leg, the person gets the host-key remedy #1130 gives a refused push. That remedy says to check the key against GitHub's published fingerprints before keeping it, where the probe now gives the login remedy.
Filed by lane openRepoShape-3 from RV1130, the independent review of #1130 (closes #1108), at #1130's head 4009b655.
- scaffold-project.py: a push ssh refused the host's key for names how to check that key against GitHub's fingerprints, not the ruleset hint, and the hint on GitHub says what its re-run can still wait at (#1108) #1130 tells a push refused for its ssh host key apart from a ruleset refusal, and gives it a host-key remedy.
- W1108, its writer, left the probe out of scope, and RV1130 judged it a low-priority follow-up.
- This issue is outside v1.2.0 (Brett Heap, 2026-10-21T10:32:04Z: "leave the follow-ups out of v1.2.0").
The probe's host-key failure gets the login remedy
State. A --reuse-empty-repo re-run over a leg that exists with commits asks git (git ls-remote) whether the leg's one commit is the seed this scaffold pushes. When git cannot read the leg, the run refuses scaffold-remote-exists. _exists_remedy's unread branch (scaffold-project.py:858-866 at main 823624d) then says "Let git read it". Its ssh clause (SSH_KEY_CLAUSE, ending in SSH_KEY_CHECK) sends the person to "ssh -T against the user, host and port your rule names", which "says whether GitHub takes yours".
What happens. Take a git config whose url.<base>.insteadOf rule sends https://github.com/ over ssh, run with GIT_SSH_COMMAND='ssh -o BatchMode=yes', the setting #1101 advises so that no prompt waits.
- Unknown key. Where ssh does not know GitHub's host key, the probe fails with
Host key verification failed.and gets the login remedy.- Its
ssh -Tthen asks whether to keep the host's key. - Nothing says to check that key against GitHub's published fingerprints first.
- Its
- Changed key. Where the key changed, ssh prints
REMOTE HOST IDENTIFICATION HAS CHANGED, and the remedy is the same.- Its
ssh -Trefuses the changed key again, and nothing says how to check and replace it. - Suppose ssh_config holds
StrictHostKeyChecking accept-newand the person removes the old key. The host is then new, andssh -Tkeeps whatever key it is sent, without showing it or asking. RV1130 measured this with OpenSSH 9.6p1 against a fake sshd.
- Its
- Revoked key. A revoked key (
REVOKED HOST KEY DETECTED) also ends inHost key verification failed.. ssh always refuses a revoked key, so the advice is safe there, but the cause it names is not exact.
Direction.
- Once scaffold-project.py: a push ssh refused the host's key for names how to check that key against GitHub's fingerprints, not the ruleset hint, and the hint on GitHub says what its re-run can still wait at (#1108) #1130 lands, measure the probe's output at main first, with the harness from W915 and W1108.
- Then, where
unreadcarries ssh's host-key words, theunreadbranch gives scaffold-project.py: a push ssh refused the host's key for names how to check that key against GitHub's fingerprints, not the ruleset hint, and the hint on GitHub says what its re-run can still wait at (#1108) #1130's host-key remedy in place of the login remedy, and keeps its re-run sentence. That remedy includesssh -T -o StrictHostKeyChecking=ask, and answering yes only to a fingerprint checked against GitHub's, which RV1130's M1 on scaffold-project.py: a push ssh refused the host's key for names how to check that key against GitHub's fingerprints, not the ruleset hint, and the hint on GitHub says what its re-run can still wait at (#1108) #1130 asks for. - Keep
scaffold-remote-exists, and add no new code.
Size: S.
Lane: openreposhape-3 (openRepoShape-3)
Activity
brettheap commentedon Oct 22, 2026
CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-10-22T12:19:17Z, for #1137
Logged in
lanes/log/openRepoShape-3.mdat490c9216bbcebab9dce5e69459073c5c30f39c6a.The three reads (lane-collision-protocol Rule 1):
scaffold-project.py: text a server sends in an error packet no longer…