Repository navigation
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
Conversation
…to check that key against GitHub's fingerprints and keep it, then the re-run, instead of the ruleset hint, and a ruleset's refusal on GitHub says what the hint's re-run can still wait at (#1108) Follow-up to #915 (U037), from RV1101's S1 on #1101. A host key ssh refused. Where a `url.<base>.insteadOf` or `url.<base>.pushInsteadOf` rule sends a push over ssh and ssh cannot verify the host's key, ssh says `Host key verification failed.` and the push printed `RULESET_HINT` alone, whose re-run fails the same way. Measured on main at 823624d with the real OpenSSH 9.6 against a fake server: an unknown key under `BatchMode=yes` (which #1101 advises), answered no, and on a `--reuse-empty-repo` re-run, and a changed key with and without `BatchMode=yes`; each exits 2 in under 2 s with the hint alone. `_host_key_remedy` now names the cause, how to see the key's fingerprint (`ssh -T` without `BatchMode=yes`), that it must be one of the fingerprints GitHub publishes (`gh api meta --jq .ssh_key_fingerprints`), and then the re-run, in place of the hint: ssh refused before git sent anything, so no ruleset was asked. A key that CHANGED (`REMOTE HOST IDENTIFICATION HAS CHANGED`) is never told to be accepted as it comes: nothing is accepted, removed or pushed until its fingerprint is checked. The re-run is the one the login remedies name, now shared as `_then_re_run`: the push fails before git sends anything, so the repositories are left empty or holding their seed, and `--reuse-empty-repo` reuses them. The ruleset hint on GitHub. `RULESET_HINT`'s one exit is the `--reuse-empty-repo` re-run, and it did not say what every other remedy into that re-run says (`PROMPTS_STILL_ASK`). The hint is printed under `--local-remote-dir` too, where no prompt can come, and its text is pinned byte for byte beside `family.py`'s and the adoption's, so the words stay in the hint and `_refused_push` appends `RULESET_HINT_PROMPTS` after it on GitHub alone, and not where a login remedy before it has said the same. `_refused_push` takes `local` from both call sites. The two comments that named #1108 now say where it is said. No refusal code: a refused push is printed as `REFUSED pushing ...`, with no code, as the login remedies of #915 and #993 are. Tests: `test_what_a_refused_push_prints` gains the host-key rows and runs every row on GitHub and on disk; two end-to-end tests run the scaffold on GitHub against a fake ssh saying OpenSSH's measured words and against a ruleset hook; `test_ruleset_hint_tracking_branch.py` pins that the scaffold's hint is the last thing it prints under `--local-remote-dir`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideThe PR updates scaffold push-refusal diagnostics to distinguish pre-push SSH host-key failures from ruleset refusals, provide fingerprint-based recovery guidance and safe re-run instructions, and append GitHub-only prompt guidance for genuine ruleset refusals while preserving shared and local hint output. Sequence diagram for SSH host-key push refusalsequenceDiagram
participant Scaffold
participant Git
participant SSH
participant User
participant GitHub
Scaffold->>Git: push
Git->>SSH: connect to host
SSH-->>Git: Host key verification failed.
Git-->>Scaffold: CommandFailed
Scaffold->>Scaffold: _host_key_remedy
Scaffold-->>User: fingerprint-check guidance
User->>SSH: ssh -T with BatchMode omitted
SSH-->>User: show fingerprint and ask
User->>GitHub: gh api meta --jq .ssh_key_fingerprints
GitHub-->>User: published fingerprints
User->>Scaffold: re-run with corrected known_hosts
Scaffold->>Git: push
Sequence diagram for GitHub ruleset refusal guidancesequenceDiagram
participant Scaffold
participant Git
participant Ruleset
participant User
Scaffold->>Git: push
Git->>Ruleset: receive push
Ruleset-->>Git: refuse push
Git-->>Scaffold: CommandFailed
Scaffold->>Scaffold: _login_remedy
Scaffold->>Scaffold: RULESET_HINT.format(repo, tracking)
Scaffold->>Scaffold: RULESET_HINT_PROMPTS
Scaffold-->>User: ruleset hint and GitHub-only prompt guidance
User->>Scaffold: re-run with --reuse-empty-repo
Flow diagram for scaffold push-refusal diagnosticsflowchart TD
A[Push fails] --> B{SSH host-key failure?}
B -->|Yes| C[_host_key_remedy]
C --> D[Check host fingerprint against GitHub]
D --> E[_then_re_run]
B -->|No| F[_login_remedy]
F --> G{Login remedy printed?}
G -->|Yes| H[RULESET_HINT]
G -->|No| I[RULESET_HINT]
I --> J{GitHub mode?}
J -->|Yes| K[RULESET_HINT_PROMPTS]
J -->|No| L[End]
H --> L
K --> L
E --> L
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
(lane openRepoShape-3, 2026-10-21T15:42:34Z) RV1130, independent review of #1130 at 4009b65: NOT READY (one MUST, one SHOULD). MUST M1 - scaffold-project.py:2179-2182 (HOST_KEY_CHECK) and :2281-2283. The changed-key remedy checks the fingerprint ssh printed for the refused push, then says "remove the old key ... and keep the new one (ssh -T ... shows the fingerprint ... and asks whether to keep it)". That ssh -T is a new connection, and the branch never says to answer yes only to a published fingerprint (the unknown-key branch does). Measured with OpenSSH 9.6p1 against W915's fake sshd: with StrictHostKeyChecking accept-new in ssh_config, ssh -T printed only "Warning: Permanently added ... to the list of known hosts." and kept the key without showing or asking. With -o StrictHostKeyChecking=ask first on the command line, ssh showed the fingerprint and asked, even over accept-new in the config or a later -o. The same flag also makes the unknown-key remedy work under StrictHostKeyChecking=yes (your an-unknown-key-checked-strictly case), where ssh -T refuses without asking. Fix: HOST_KEY_CHECK names " SHOULD S1 - the body. "Closes #1108." is line 1; the body ends with the merges table, then Lane, then the robot line. Move it to the end as "Closes #1108", before the Lane line (as #1101 does). closingIssuesReferences is already [1108]. NITs:
Verified:
Left out of scope: (a) a follow-up issue - a re-run's probe of a seeded leg refused for its host key still says "Let git read it" and sends the person to ssh -T with no fingerprint advice; (b) nothing - ssh always refuses a revoked key; (c) nothing - the docs do not list refused-push remedies. Lane 3's plan: a fresh writer makes one fix round for M1, S1 and N1 to N5. HOST_KEY_CHECK names Lane: openreposhape-3 (openRepoShape-3) |
… for names `ssh -T -o StrictHostKeyChecking=ask` first, so ssh shows the fingerprint and asks whatever the person's ssh_config says, and a changed key is kept only on a yes to the fingerprint checked; GitHub's fingerprints come from `gh api --hostname github.com meta`; and `remote:` lines the server sent no longer switch the remedy (#1108) RV1130's review of #1130: - M1: `HOST_KEY_CHECK` names `ssh -T -o StrictHostKeyChecking=ask`, that option first. ssh keeps the first value it is given for an option, so it wins over an ssh_config's `accept-new`, which kept the key without showing or asking (measured, known_hosts 0 -> 98 bytes), over its `yes`, which refused without asking, and over a later `-o`. The changed-key remedy ends "answering yes only to the fingerprint you checked", as the unknown-key remedy does. - N1: `GITHUB_FINGERPRINTS` is `gh api --hostname github.com meta --jq .ssh_key_fingerprints` and says ssh shows each with `SHA256:` before it. - N2: the host-key match skips lines that start with `remote:` (`_without_remote_lines`). - N3, N4, N5: the comments say what `LogLevel=QUIET`, `LogLevel=FATAL` and a revoked key give, `_then_re_run` says "before any ref is updated", and the two comments over `REMOTE_ENV` and `PROMPTS_STILL_ASK` say `_refused_push` appends `RULESET_HINT_PROMPTS`. Tests: `SEE_THE_KEY`, `PUBLISHED` and `CHANGED_HOST_KEY_REMEDY` follow the words; `test_what_a_refused_push_prints` gains a ruleset whose `remote:` lines carry ssh's words, a `\r` among them, and an unknown key beside `remote:` lines that say it changed. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
(lane openRepoShape-3, 2026-10-21T21:10:38Z) RV1130 round 2, #1130 at bc27679: NOT READY for one SHOULD only. M1 is fixed right; no MUST remains. SHOULD S1 - the comments on N2's filter. scaffold-project.py:2281-2283 (_without_remote_lines: "a \r ... stays in it, as git prints it behind its prefix") and tests/test_scaffold_reuse_seeded_legs.py:1720-1722 ("as git prints a server's line behind its
NITs:
Verified:
Lane 3's plan: W1108-FIX makes one more small round. S1: git's real shape in the row at :1727, and both comments reworded to say git prefixes each line, and each part after a \r, with Lane: openreposhape-3 (openRepoShape-3) |
…atchMode=no -o StrictHostKeyChecking=ask` first, so ssh shows the fingerprint and asks over an ssh_config's `BatchMode yes` and a later `-o`, and the filter's comment says git prefixes each part of a server's line after a carriage return with `remote:` (#1108) RV1130's round 2: - N1: `HOST_KEY_CHECK` names `ssh -T -o BatchMode=no -o StrictHostKeyChecking=ask`, both options first, and drops "but `BatchMode=yes`". Measured in a terminal against the fake sshd: with `BatchMode yes` and `StrictHostKeyChecking accept-new` or `yes` in ssh_config, and again with a later `-o BatchMode=yes` and `-o StrictHostKeyChecking=accept-new`, ssh showed the fingerprint and asked; answering no left known_hosts unchanged. `-o StrictHostKeyChecking=ask` alone refused without asking under `BatchMode yes`. - S1: the `_without_remote_lines` docstring and the test comment say git prefixes each line the server sent, and each part after a carriage return in it, with `remote:`; the test row is git's real shape ("remote: see the log \rremote: Host key verification failed. \n", measured with git 2.43 under LC_ALL=C). Tests: `SEE_THE_KEY` follows the words. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
(lane openRepoShape-3, 2026-10-21T21:34:29Z) RV1130c, independent review round 3 of #1130 at 5724035: NOT READY for one SHOULD (one test row and one body cell). The code is right and safe; no MUST. SHOULD S1 - M13 is not equivalent. The body's Mutants table calls it EQUIVALENT "on anything git really prints". M13 swaps output.split("\n") for output.splitlines(), which also splits at \v, \f, \x1c-\x1e, \x85, U+2028 and U+2029, and git starts a new prefix only after \r and \n. Measured, git 2.43 under LC_ALL=C, a pre-receive hook: cat -A shows "remote: ff^LHost key verification failed. $" (and the same for \v, \x1c and U+2028), one remote: prefix over the separator. Through the scaffold's own run() and _host_key_remedy, the head gives the ruleset hint for each such line and M13 gives the host-key remedy. (In the real path the \r row never reaches the filter: run() reads in text mode, which turns git's \r into \n first.) Fix: add "remote: see the log\x0cHost key verification failed. \n" to RULESET_SAYING_HOST_KEY (tests/test_scaffold_reuse_seeded_legs.py:1725-1733), say so in the comment above it, and mark M13 KILLED in the body. Proven in my clone: the row passes at the head (2 passed) and kills M13 (2 failed); without it M13 survives the whole file (121 passed). NITs:
Verified:
Lane 3's plan: a fresh writer makes round 3. S1: the form-feed row goes into RULESET_SAYING_HOST_KEY, the comment above it says so, and M13 is marked KILLED in the body. N1 is taken: the changed-key remedy ends "answering yes only to a fingerprint GitHub publishes, which can be another of its keys than the one you checked", with the docstring and the pin. N2 and N3 are fixed in the body. RV1130c then re-checks that head. The trailer is set in the explicit squash message at landing. #1130 stays a draft with no milestone, and lands after the v1.2.0 tag on a later word. Lane: openreposhape-3 (openRepoShape-3) |
…to a fingerprint GitHub publishes, which can be another of its keys than the one you checked", since ssh asks first about a key type it holds, and a form feed in a server's `remote:` line keeps it one line for the filter (#1108) RV1130's round 3: - N1: after a changed RSA or ECDSA key is checked and `ssh-keygen -R` removes it, `ssh -T` asks about GitHub's ED25519 key, not the key that was checked (ssh asks first about the key types it already holds, RFC 4253 7.1), so the remedy no longer says "the fingerprint you checked"; the docstring and the pin say the same. - S1: the test row `"remote: see the log\x0cHost key verification failed. \n"` is git's real shape for a form feed (git 2.43, `cat -A`: one `remote:` prefix over the separator), and kills the filter's mutant that splits at every separator `str.splitlines` knows. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
(lane openRepoShape-3, 2026-10-21T21:55:16Z) RV1130c, round 3 re-check of #1130 at 631ea7c: READY once CI's tests job passes on 631ea7c. No MUST, no SHOULD, one NIT. NIT - scaffold-project.py:2304-2306, the _host_key_remedy docstring: "the Verified:
Lane 3's plan: the docstring NIT is fixed now in the reviewer's words, in one commit that changes only the docstring. CI's Lane: openreposhape-3 (openRepoShape-3) |
… ssh asked first for the key type it held, and once that key is removed the `ssh -T` asks first for ssh's default, ED25519 (#1108) RV1130c's NIT: the docstring said the `ssh -T` "asks first about a key type ssh holds", which is the push's ssh. After `ssh-keygen -R` ssh holds no key for the host, so the `ssh -T` asks first for its default, ED25519. A docstring alone: no printed word and no test changes. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
|
(lane openRepoShape-3, 2026-10-21T23:39:16Z) #1130 is READY at
Lane: openreposhape-3 (openRepoShape-3) |
|
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 10 hours and 22 minutes by commenting |
… host key is told that key's fix, checked against GitHub's published fingerprints, in place of "Let git read it" (#1137) (#1156) This follows #1130. A `--reuse-empty-repo` re-run over a leg with commits asks git (`git ls-remote`) whether the leg's one commit is the seed. Where a `url.<base>.insteadOf` rule sends that read over ssh and ssh refuses GitHub's host key, the run is refused as `scaffold-remote-exists`, but the remedy was the login fix ("Let git read it", and an `ssh -T` that says whether GitHub takes your key). That is the wrong fix for a refused host key. `_exists_remedy` now gives #1130's host-key fix in a read's words (`_read_host_key_fix`), then the same re-run sentence. For an unknown key it is `HOST_KEY_CHECK` (`ssh -T -o BatchMode=no -o StrictHostKeyChecking=ask`), answered yes only to a fingerprint GitHub publishes (`GITHUB_FINGERPRINTS`). For a changed key it is to accept no key from that host until the fingerprint ssh prints on a second `git ls-remote` of that URL is checked against GitHub's published ones. Any other refused read (a refused ssh key, a closed connection, an https login) keeps the login fix, byte for byte as before. `scaffold-remote-exists` is kept, no refusal code is added and no docs change. The one line `unread` carries is `Host key verification failed.` for an unknown and a changed key alike, so `_held_seed` now returns git's refused read itself (the `CommandFailed`) and the remedy reads its whole output. A new `_host_key_refused(output)` returns `changed`, `unknown` or nothing, skips `remote:` lines with `_without_remote_lines`, and cuts all from a server's `fatal: remote error:` on, so text a server sends cannot steer a read into the host-key fix. `_host_key_remedy`, the push's, uses it too and behaves as before. `tests/test_scaffold_reuse_seeded_legs.py` has 134 passed (121 at the parent). `test_a_leg_whose_read_ssh_refused_the_host_key_for_names_the_key` runs end to end with a fake ssh for an unknown key, one checked strictly, and a changed key. `test_what_a_leg_git_could_not_read_is_told` has 9 rows in-process, among them `remote:` lines alone and two of a server's error packet, which fail without the cut. Each of the mutants run against the whole file is killed. Closes #1137 Lane: openreposhape-3 (openRepoShape-3) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…blems against its source, in the order a person mends them (another repository, a refused name, a moved source, an unanswered entry), so `check`'s first finding is `execute`'s refusal for each pair (#1113) (#1210) **Stacked on #1125.** This PR's base is `fix/1020-bad-id-first-problem` (#1125's branch, head `9549006f`). It lands after #1125 and stays a draft until then. #1125 makes `check`'s first finding `execute`'s first refusal for a bad `id:` or `org:`. This PR extends that rule to the four pairs #1113 measured, which have neither. **Fix round.** The first gate failed six rows of `tests/test_adopt_relative_submodule_url.py` that pinned `check`'s old order on a plan hand-edited into another organisation, the relative url before `plan-not-the-source`, a plan `execute` already refused `plan-not-the-source` first on #1125's head; they now expect `plan-not-the-source` first, and a new row asserts that both commands name it first. ## The rule and the order One generator, `_against_its_source`, asks a plan's four problems against its source in one order, and both commands read it. `execute` refuses its first problem. `check` lists each one, in that order and in its own words, before the split branch and the entries. The order is the one a person mends them in: 1. a plan for another repository (`plan-not-the-source`); 2. a name the naming policy refuses (`naming-unclassified`, or `naming-role-mismatch`); 3. a source that has moved on since `plan` (`plan-stale`); 4. an unanswered entry (`plan-unresolved`). Why this order: - **An unanswered entry last.** Each of the first three is mended by running `plan` again, as its remediation says, and a fresh plan takes back every answer given before. An answer given first would be lost. - **Another repository first.** Nothing in such a plan is this source's own: it is mended by `plan` under the source's own name, or from the source it is about. And `execute` must ask the naming policy nothing about the plan's names, and no remote anything, before it refuses it (#499). `_against_its_source` is a generator, so `execute` asks nothing after the first problem, and that still holds. - **A refused name before a moved source.** The name is mended by `plan` given another `--project`, or after the source is renamed on GitHub. That run reads the source as it is now, so it mends the moved source too. `plan` run again as it was, for the moved source, would leave the name to mend. - **The least change to each command.** The order keeps `execute`'s order for the plan's names (#499, #716) and `check`'s order of a moved source before its entries. Only the pairs that disagreed change. ## Before and after Measured on #1125's head `9549006f` and on this head, with a stub `gh` (exit 97), `GH_TOKEN=bogus`, an empty `GH_CONFIG_DIR`, `GIT_SSH_COMMAND=false`, a proxy that goes nowhere, an empty global git config and `--local-remote-dir`. No run made a leg. `check` exits 1 and `execute` exits 2 in every row. | The plan holds | `check` before | `execute` before | both, here | |---|---|---|---| | a moved source and an unanswered entry (#1113) | `plan-stale` | `plan-unresolved` | `plan-stale` | | another repository and an unanswered entry (#1113) | `plan-unresolved` | `plan-not-the-source` | `plan-not-the-source` | | another repository and a moved source (#1113) | `plan-stale` | `plan-not-the-source` | `plan-not-the-source` | | a refused name and an unanswered entry (#1113) | `plan-unresolved` | `naming-unclassified` | `naming-unclassified` | | a refused name and a moved source (not in #1113's table) | `plan-stale` | `naming-unclassified` | `naming-unclassified` | | all four | `plan-stale` | `plan-not-the-source` | `plan-not-the-source` | | another repository and a refused name | `plan-not-the-source` | `plan-not-the-source` | `plan-not-the-source` (unchanged) | The fifth row is not in #1113's table, but the two commands disagreed there too, and the same rule decides it. The same probe, comparing each command's output before and after, with paths and hashes masked: - A plan with one of the four problems: both commands print the same stderr and stdout before and after. - Both commands' stdout is the same before and after in every row. - `check`'s stderr in each pair row holds the same lines as before, reordered: the same findings and the same remediation lines. - `execute`'s stderr changes in one row only, a moved source beside an unanswered entry: `REFUSED plan-stale`, in its own words, where it said `REFUSED plan-unresolved`. No refusal's code or wording changes, and no code is added. Re-run on this head after the fix round, the probe gives the same: the 24 plans (these 11, and the 13 of the next section) each get one first problem from both commands, no run makes a leg, and the comparison with #1125's head is the one above, line for line. ## #1113's suspected case: a `--work-dir` that cannot be written Measured on #1125's head and on this head, the two commands agree in every row, and nothing here changes it: - **A bad `id:` or `org:` beside a `--work-dir` this user cannot write in** (`chmod 500`): `plan-bad-id` or `unsafe-value` to both. #1125's review round 1 (RV1125's SHOULD-1) made both commands ask the two before `_work_root`, which settled this case. - **Each of the 11 plans above beside the same `--work-dir`:** `adopt-work-dir-unwritable` first to both. ## What changed, in `adopt-project.py` - **`_against_its_source` and `_Unmended` (new).** `_against_its_source` is the rule. It asks: - `_refuse_a_plan_for_another_repository`; - `_check_names`, given the source only where the plan names no other repository, as `check` gave it (#716); - `_refuse_an_unrunnable_plan`. It yields each problem as an `_Unmended`: the `Refusal` `execute` refuses it with, and `check`'s FINDING lines and remediation for it, in `check`'s words as they were. `check` lists an unanswered entry with the entries, each by its path (`_leg_findings`), after the rule's problems. - **`cmd_execute`.** It refuses the first problem, `next(_against_its_source(...))`. Before, it called `_refuse_a_plan_for_another_repository`, `_check_names` and `_refuse_an_unrunnable_plan` in turn. - **`cmd_check`.** It lists the rule's findings right after the Triad advisory, where it listed a moved source. Another repository and the names are no longer listed after the entries. Three things are still asked where they were, and only where no name was refused: - the names' classification lines on stdout; - the findings about what the disk or GitHub will not hold (#863); - the leg question (#798). The remediation lines it prints after its findings follow the findings' order, so the rule's come first. - **`_refuse_an_unrunnable_plan`.** It asks a moved source before an unanswered entry. Its docstring says why. - **`_refuse_a_plan_for_another_repository`.** Unchanged. The rule calls it. ## Tests `tests/test_adopt_plan_against_its_source.py` (new, ASCII only), 11 rows. Each runs `check` and then `execute --yes` on one hand-edited plan, both with the same `--local-remote-dir`, and asserts that no leg is made. - **7 pair rows** (the six pairs and all four). Each asserts: - `check` exits 1 and `execute` exits 2; - both name first the same code, the rule's first; - `check` lists every problem the plan holds, in the rule's order. - **4 controls**, one per code: the plan holds that problem alone, and both commands name it. - **Against #1125's head `9549006f`:** - the 6 pair rows that disagreed fail, each because the two commands named different codes, for example `('plan-stale', 'plan-unresolved') != ('plan-stale', 'plan-stale')`; - the `another-and-name` guard row and the 4 controls pass. - **Here:** 11 passed. `tests/test_adopt_relative_submodule_url.py`, 6 rows changed and 1 new (the fix round): - **The 6 rows** are `test_check_keeps_a_relative_url_its_github_leg_resolves_alike` for `[https]`, `[scp]`, `[scp-other-case]`, `[ssh-port]` and `[ssh-github-443]`, and `test_a_credential_in_the_source_remote_is_never_printed`. - Each hand-edits the plan's `org:` to `otherorg`, so the plan names `otherorg/Thing` and the source is `testorg/Thing`: a plan for another repository. - Each expected `check` to list the relative url first and `plan-not-the-source` after it, `check`'s old order. They now expect `plan-not-the-source` first. Their other assertions are unchanged; the credential is still printed nowhere. - **The new row,** `test_check_names_another_repository_first_as_execute_refuses_it`, runs one such plan. It asserts that `check`, with and without `--local-remote-dir`, lists `plan-not-the-source` and then the url, that `execute` refuses `plan-not-the-source`, and that no leg is made. - **Measured on #1125's head** for the six source remotes: `execute` already refused each such plan `plan-not-the-source`, and its output is the same on both heads. Only `check`'s order changed. No spelling of the source's `origin` reads as another repository: with `org:` left as the source's, `check` passes on both heads, as the rows assert. Both files together, 46 rows: - **Against #1125's head:** 13 failed, 33 passed. The 13 are the 6 pair rows above and the 7 relative-url rows, each on the order: `plan-not-the-source` where the url was expected first, or the url first in the new row. - **Here:** 46 passed. ## Mutants Each was applied to `adopt-project.py`, run against both files (46 rows), and restored, with its sha256 checked (`4c8c1c9e`, the same after each one). Unmutated, the 46 pass. M1-M6 are the first round's; M7 and M8 are the fix round's. | Mutant | Killed by | |---|---| | M1, `execute`: `_refuse_an_unrunnable_plan` asks an unanswered entry before a moved source (pair 1) | 2: `moved-and-unanswered`, `all-four` | | M2, `check`: lists another repository after the entries (pair 2) | 11: `another-and-unanswered`, `another-and-moved`, `another-and-name`, `all-four`, and the 7 relative-url rows | | M3, `check`: lists a moved source before another repository (pair 3) | 3: `another-and-moved`, `name-and-moved`, `all-four` | | M4, `check`: lists a refused name after the entries (pair 4) | 3: `name-and-unanswered`, `name-and-moved`, `all-four` | | M5, `check`: lists a moved source before a refused name (pair 5) | 2: `name-and-moved`, `all-four` | | M6, the rule: asks a refused name before another repository (both commands) | 2: `another-and-name`, `all-four` | | M7, `execute`: asks `_refuse_what_check_finds` before the rule | 8: the pair rows but `another-and-name`, the `plan-stale` control, and the new relative-url row | | M8, `check`: lists all the rule's problems after the entries | 14: the pair rows but `another-and-name`, the `plan-stale` control, and the 7 relative-url rows | ## Gate Run on the scratch merge `743ebe176`: `origin/main` `961640c68` plus this head `90eca4144` (tree `d71d6f00a`, never pushed). It ran in the landing gate's own environment (a stub `gh`, `GH_TOKEN=bogus`, an empty global git config, `EMAIL` set, the `LANES_*` and `GIT_SSH_COMMAND` variables unset), one shard at a time, each started with at least 19G free. The ids were collected from that tree, 4405 + 448 = 4853, and each is in exactly one shard. The file list is the 46 test files W1113's gate named and four more, added in the fix round (50 in all): `test_adopt_c_locale_bytes.py` and `test_adopt_submodule_url_answers.py` (they import helpers and the module-scoped `adopter` fixture from the changed test file, so they sit in its shard, r03), `test_reader_refusals_named.py` (it hand-edits a plan's `org:` and checks `check`'s exact findings) and `test_github_name_limits.py`. Every shard exited 0. | Shard | Result | |---|---| | r01 | 600 passed | | r02 | 613 passed | | r03 | 464 passed, 1 skipped (`test_adopt_plan.py::test_plan_on_medxehr_matches_the_rulings`) | | r04 | 547 passed | | r05 | 599 passed, 19 skipped (all in `test_family_init_values.py`) | | r06 | 542 passed | | r07 | 489 passed | | r08 | 531 passed | | d01 to d07 | 56 passed each (`test_shape_doctor.py`) | | d08 | 53 passed, 3 skipped (`test_shape_doctor.py`) | - **r01 to r08:** 4385 passed, 20 skipped (4405 ids). - **d01 to d08:** 445 passed, 3 skipped (448 ids). - **Total:** 4830 passed, 23 skipped, none failed, none errored. Main has moved since this gate: `origin/main` is `ac5f28d2a` (#1188, #1130 and #1098 landed). They change `scaffold-project.py`, `scripts/family.py` and four test files. None of them is a file this PR changes, a module `adopt-project.py` imports, or one of the 50 gated test files, so the gate was not run again on that tip. The merge-trees below were. ## Merge-trees `git merge-tree --write-tree`, run again on 2026-10-23 at 15:31Z against the current `origin/main`, every one clean: - **`origin/main` `ac5f28d2a`:** clean, tree `1a65ab9bd`. - **#1125 `9549006fe`:** clean. This branch is on it. - **#1177 `5208e874e`** (`fix/1152-plan-and-remote-paths-spelled`, which edits a line of `_refuse_a_plan_for_another_repository`): clean, with this head and three-way on the scratch merge. - **Every open PR that touches `adopt-project.py` or either test file, 25 of them, #1125 and #1177 among them:** clean, both with this head and three-way on the scratch merge of `ac5f28d2a` and this head, `98afb128a` (`git merge-tree --write-tree <that merge> <its head>`). Since the first run, #1207 is new, and #1119, #1189 and #1190 have moved; all four are clean. No open PR touches either test file. The list is in a code block, so that it does not mention each PR: ``` PR head with this head on the scratch merge #1105 b28f40d clean (tree 32fce74c6) clean (tree 490f555f9) #1106 504a1dd clean (tree 3abfa1b6a) clean (tree db57682e9) #1118 2307036 clean (tree 79a3888bf) clean (tree 629f167ca) #1119 195d993 clean (tree a2926127e) clean (tree 6aec4c863) #1120 c55e55e clean (tree 6171a52f8) clean (tree 0cb310664) #1121 1c51737 clean (tree 3acb80467) clean (tree 2771fbfd0) #1122 c01c4d7 clean (tree af9a4c414) clean (tree ef00f52f7) #1123 5c3908f clean (tree eb7cb34b3) clean (tree 4c311748b) #1125 9549006 clean (tree 239df6d) clean (tree 1a65ab9bd) #1141 7a2711d clean (tree e1c8f7169) clean (tree 3afeda790) #1143 7af5fab clean (tree 35cd165de) clean (tree aae00cfc7) #1153 ff33ba1 clean (tree 57da668e8) clean (tree f91ce3d8d) #1154 8a78283 clean (tree 28699ba0c) clean (tree 3e6b1ae98) #1169 1e958ca clean (tree e3ef802be) clean (tree f4566b2c4) #1170 24ee133 clean (tree 94b9291c8) clean (tree 848bb0ed0) #1171 8162b87 clean (tree 65ca8196d) clean (tree f15571ef3) #1177 5208e87 clean (tree 08e3d6a62) clean (tree 111f3c238) #1178 c4beba1 clean (tree 646f02266) clean (tree eae3b5996) #1180 b316f41 clean (tree 25b3d4b6f) clean (tree 85a559171) #1186 07486a4 clean (tree d0fe77836) clean (tree 849f0ef41) #1189 a131fc2 clean (tree 5b1ab0620) clean (tree 9851d22b7) #1190 91a937e clean (tree aa83fae05) clean (tree 18101f50b) #1194 900f77a clean (tree 9d74efa35) clean (tree 46317beae) #1198 d38e4e3 clean (tree 87ca21b8c) clean (tree 7fc45a875) #1207 1c7ca5c clean (tree 1dbab659d) clean (tree 1e44c98f0) ``` ## Left for a follow-up (outside #1113) - **An unanswered entry beside an uncovered path still gives two first problems,** filed as #1197. `check` lists `plan-uncovered` first and `execute` refuses `plan-unresolved` first. Measured the same on #1125's head and on this head. `execute` refuses an unanswered entry before `_refuse_what_check_finds`, while `check` lists it in `_leg_findings`, after the paths and the coverage. Other entry findings ahead of it in `_entry_findings` are likely the same (`plan-unsafe-path` among them), and so is the taken split branch, but those were not measured. Closes #1113 Lane: openreposhape-4 (openRepoShape-4) Co-Authored-By: Claude Opus 5.5 <[email protected]>



What changed
A follow-up outside v1.2.0 (Brett Heap, 2026-10-21T10:32:04Z). It lands only after the v1.2.0 tag, on a later merge word.
This comes from RV1101's S1, the review of #1101 (U037 of #915). Five commits touch three files:
4009b65, the change;bc27679, the fix round after RV1130's review of4009b65(#1130 (comment));5724035, the second round, after RV1130's review ofbc27679(#1130 (comment)); and631ea7c, the third round, after RV1130c's review of5724035(#1130 (comment)); anddee55dc, a docstring, after RV1130c's last NIT (#1130 (comment)). The files arescaffold-project.pyand two test files.On GitHub, the ruleset hint is followed by a paragraph on the prompts its re-run can still wait at
_refused_pushnow printsRULESET_HINT_PROMPTSafterRULESET_HINT, as a paragraph of its own: "The --reuse-empty-repo re-run turns off git's own terminal prompt and no other, ..." (PROMPTS_STILL_ASK). Under--local-remote-dirthe hint is printed alone, byte for byte as before.--local-remote-dirtoo, where no prompt can come. Words in the constant would be printed there.{prompts}) would break the siblings' pins.test_each_hint_takes_two_fields_the_repository_and_the_branchandtest_each_tool_prints_its_own_hint_and_passes_both_fieldshold all three hints to the same two fields, and the byte-for-byte pins call.format(repo=..., tracking=...), which would raiseKeyError. With the append,RULESET_HINTand its pins stay unchanged, and so doFAMILY_RULESET_HINT,ADOPT_RULESET_HINTand theirs.scripts/shape_materialize.pyis not touched._exists_remedy'sstill = "" if local else ...from scaffold-project.py: the--reuse-empty-repohelp, its docs and each remedy that sends a person into that re-run say ssh, a credential helper or askpass can still make it wait, and how to keep it from waiting (#915) #1101._refused_pushtakes a new, requiredlocalargument. Both call sites, the legs' and the root's, passargs.local_remote_dir is not None.--reuse-empty-repore-run without #915's prompt sentence, and a push refused for its ssh host key gets that hint alone #1108, overREMOTE_ENVandPROMPTS_STILL_ASK, now say where it is said: the constant says nothing of it, and_refused_pushappendsRULESET_HINT_PROMPTSafter it, on GitHub alone and where no login remedy has said it already (RV1130's N5).A push refused for its host key gets a host-key remedy in place of the ruleset hint
_host_key_remedy. Where git's output for a push holds OpenSSH'sHost key verification failed.(HOST_KEY_FAILED) in a line of ssh's own, the push prints this remedy and noRULESET_HINT. ssh refused before git sent anything, so no ruleset was asked, and the hint's re-run fails the same way.HOST_KEY_CHECK): "ssh -T -o BatchMode=no -o StrictHostKeyChecking=ask, both options first so that they win over your ssh_config and any later-o, against the user, host and port your rule names, with the rest of what yourGIT_SSH_COMMANDorcore.sshCommandadds", which shows the fingerprint and asks; "answer yes only to a fingerprint GitHub publishes" (GITHUB_FINGERPRINTS: "gh api --hostname github.com meta --jq .ssh_key_fingerprintsprints them, and ssh shows each withSHA256:before it").REMOTE HOST IDENTIFICATION HAS CHANGED,HOST_KEY_CHANGED). The remedy says a machine in the middle of the connection shows this as well as a key GitHub replaced. So it says to "accept no key from that host, and push nothing to it, until you have checked that the fingerprint ssh printed above is one GitHub publishes". Only then: remove the old key (thessh-keygen -Rline ssh printed) and keep the new one (HOST_KEY_CHECK), "answering yes only to a fingerprint GitHub publishes, which can be another of its keys than the one you checked" (round 3 changed these words from "the fingerprint you checked"; see below). It never says to accept the key as it comes.gh repo createmade all three repositories. The fake gh logged 3 creates, then the push was refused, so all three are empty.--through setup.sh) and a new --work-dir or none: it reuses the repositories this run left empty, and a leg whose one commit is the seed this scaffold pushes". When the run was itself that re-run, it is "the same command with a new --work-dir or none". The prompt sentence follows._then_re_run. The login remedies' output is byte for byte what it was, and their rows still pass.REFUSED pushing the spec leg.), and neither of scaffold-project.py: a--reuse-empty-repore-run can stop at a git, ssh or helper prompt on its pushes and seed fetch, and an ssh-rewrite operator's refusal gives git's generic line and a remedy that does not apply #915's and scaffold-project.py: a push whose stored login GitHub rejects (fatal: Authentication failed) is refused with only the ruleset hint, where a push git has no login for is told how to give git one #993's login remedies added one. Every existing code is unchanged, and AGENTS.md is not touched.gh api --hostname github.com meta --jq .ssh_key_fingerprints, not by a docs URL. That is a read over https, outside the ssh connection in doubt, with theghlogin the scaffold already needs, and--hostname github.compins it to the host the scaffold'shttps://github.com/URLs name, whateverGH_HOSTsays. I did not run that command (no realghcall but the PR's own);gh api --helplists--hostname, and RV1130, in round 2, rangh api --hostname github.com meta --jq .ssh_key_fingerprintsonce on its own: exit 0, three fingerprints (ECDSA, ED25519, RSA) printed withoutSHA256:.The fix round (
bc27679), RV1130's thread listHOST_KEY_CHECKnow namesssh -Twith the options below first, and the changed-key remedy ends "answering yes only to the fingerprint you checked", as the unknown-key remedy does. Why, measured below with real ssh in a pseudo-terminal: withStrictHostKeyChecking accept-newin ssh_config, a baressh -Tkept the key without showing the fingerprint or asking (known_hosts 0 to 98 bytes), and withyesit refused without asking, so the unknown-key remedy could not be followed there either. With-o StrictHostKeyChecking=askfirst, ssh showed the fingerprint and asked underaccept-new,yesandask, and over a later-o. Answeringnoleft known_hosts unchanged.GITHUB_FINGERPRINTSisgh api --hostname github.com meta --jq .ssh_key_fingerprints, and says ssh shows each value withSHA256:before it._without_remote_lines: the host-key match skips lines that start withremote:, so words a ruleset's message or a hook carries cannot switch the remedy. It splits at newlines alone. git prefixes each line the server sent, and each part after a carriage return in it, withremote:, so a line that starts with it is the server's from end to end, and a split at newlines alone keeps it whole (round 2's S1 corrects the first wording of this).str.splitlinesalso splits at\v,\f,\x1cto\x1e,\x85, U+2028 and U+2029, where git starts no new prefix; round 3's S1 adds the test row for that.HOST_KEY_FAILEDcomment names three cases, all safe:LogLevel=QUIETprints neither phrase, so the push gets the ruleset hint, as at main;LogLevel=FATALdrops the changed-key banner and keeps the failed line, so a changed key gets the unknown-key remedy, whosessh -Trefuses a changed key again; a revoked key gets the unknown-key remedy too._then_re_rundocstring says "before any ref is updated", where it said "before git sends anything", which is untrue forLOGIN_REFUSED.REMOTE_ENVandPROMPTS_STILL_ASKsay what_refused_pushappends (above).--reuse-empty-repore-run without #915's prompt sentence, and a push refused for its ssh host key gets that hint alone #1108, then the Lane line, then the robot line, as scaffold-project.py: the--reuse-empty-repohelp, its docs and each remedy that sends a person into that re-run say ssh, a credential helper or askpass can still make it wait, and how to keep it from waiting (#915) #1101's did.The second round (
5724035), RV1130's round 2remote:prefix, and the test row had that shape. It does not: git starts a new prefix after every carriage return as well as every newline. Measured with my own probe, git 2.43 underLC_ALL=C, a local bare repository whose pre-receive hook writes "see the log\rHost key verification failed.\n":cat -Aof the push showsremote: see the log ^Mremote: Host key verification failed. $, eight spaces after each part. The row is now"remote: see the log \rremote: Host key verification failed. \n", and the_without_remote_linesdocstring and the test comment say what git does. The behaviour was right before and is unchanged.HOST_KEY_CHECKnamesssh -T -o BatchMode=no -o StrictHostKeyChecking=ask, both options first, so they win over an ssh_config'sBatchMode yesandStrictHostKeyChecking, and over any later-ofromGIT_SSH_COMMANDorcore.sshCommand. The clause "butBatchMode=yes" is gone, since ssh keeps the first value it is given. Measured below.SEE_THE_KEYfollows the words.bc27679and5724035endCo-Authored-By: Claude Sonnet 5.5, and4009b65endsClaude Opus 5.5. Set the one you want in the explicit squash message.The third round (
631ea7c), RV1130c's reviewstr.splitlinesalso splits at\v,\f,\x1cto\x1e,\x85, U+2028 and U+2029, and git starts a newremote:prefix only after\rand\n. RV1130c measured it (git 2.43, a pre-receive hook,cat -A):remote: ff^LHost key verification failed. $, one prefix over the form feed. A split at every separator would cut that server line in two and read its tail as ssh's. SoRULESET_SAYING_HOST_KEYhas a new line,"remote: see the log\x0cHost key verification failed. \n", and the comment above it says git keeps a form feed inside one prefixed line. At631ea7cthe file passes, and M13 fails (below). The behaviour ofscaffold-project.pyis unchanged by this.ssh-keygen -R,ssh -Tasks about GitHub's ED25519 key, not the RSA key the person checked. The old words ("the fingerprint you checked") could name a key ssh would not show. It failed safe (the person answers no, and the next refused push gives the unknown-key remedy), and the new words say so. The_host_key_remedydocstring and the pin inCHANGED_HOST_KEY_REMEDYsay the same; a grep of the tree for the old words found no other pin. RV1130c took the order fromssh -vv's proposal and RFC 4253 section 7.1; I did not re-measure it.gh apiline names the--hostname github.comform, run once, exit 0, and the left-out probe names-o BatchMode=no -o StrictHostKeyChecking=ask.dee55dc), RV1130c's last NIT. The_host_key_remedydocstring said thessh -T"asks first about a key type ssh holds". That is the push's ssh: afterssh-keygen -Rssh holds no key for the host, and thessh -Tasks first for ssh's default, ED25519. It now says the push's ssh asked first for the key type it held, and once that key is removed thessh -Tasks first for ssh's default, ED25519, and it can be sent another key than the push's. A docstring alone: no printed word and no test changed.tests/test_scaffold_reuse_seeded_legs.py(121 passed) andtests/test_repo_hygiene.py(100 passed) were re-run atdee55dc, each alone, under the stub gh. The tests and merge tables below are at631ea7c; the edit is inscaffold-project.py, which no other open PR touches.Left out of scope
only_commitrunsgit ls-remote. When ssh refuses the host key there, the run is still refused asscaffold-remote-existswith the reason "Host key verification failed." and_exists_remedy's "Let git read it" remedy, which names anssh -Tcheck (RV1101's case c). That is not a push and not the ruleset hint, so it is outside this issue. A follow-up could give it the host-key remedy, and thatssh -Tthe same-o BatchMode=no -o StrictHostKeyChecking=ask(RV1130's out-of-scope (a)).family.py'sFAMILY_RULESET_HINTand its refused push. That is another tool, with its own hint.@revokedin known_hosts also ends inHost key verification failed., so it gets the unknown-key remedy. Its cause sentence is then not exact, but its advice is safe, because ssh always refuses a revoked key. Not measured, read from the ssh binary by RV1130.StrictHostKeyChecking=nogoes on past a changed key and prints noHost key verification failed., so that is not this case.docs/cli.mdchange: none of them describes what a refused push prints beyond the hint's own words.--reuse-empty-repore-run without #915's prompt sentence, and a push refused for its ssh host key gets that hint alone #1108 has no "Needs a ruling" or "Documented limit" section.Measurements
Setup:
W1108-scratch/meas/measure1108.py(the scaffold's pushes) andW1108-fix-scratch/meas/ssh_ask.pyandssh_ask2.py(ssh -Talone). Both reuse W915'sfake_sshd.py, run as a ProxyCommand and unchanged. That fake is enough of an ssh server for the real OpenSSH 9.6p1 client to reach its host-key check.fakehost.invalid.Host *hasProxyCommand /bin/false.run_in_a_terminal), with the tests' fake gh first on PATH and then a stub gh that exits 97. The environment also hasGH_TOKEN=bogus, an emptyGH_CONFIG_DIR, a scratchGIT_CONFIG_GLOBALandGIT_CONFIG_NOSYSTEM=1, and every run has a timeout. No real host was reached.pre-receivehook (RULESET_REFUSES). On GitHub they use bare repositories underurl.<path>.insteadOf.The scaffold's pushes, at main
823624d, the first head4009b65, the secondbc27679and the new head5724035. k1, k3 and r3 were re-run atbc27679and again at5724035; the other cases were measured at4009b65and the changes since do not touch their path (k2, k4, k5, r1, r2 not re-run):4009b65bc276795724035BatchMode=yes, first run-o StrictHostKeyChecking=askand--hostname github.com, no hint-o BatchMode=no -o StrictHostKeyChecking=ask, no hintBatchMode=yesBatchMode=yes,--reuse-empty-repore-run--local-remote-dir, ruleset refuses the spec legRound 3 changes the changed-key remedy's last words and one test row, so the k3 row's last words are the old ones, and no push case was re-measured at
631ea7c; the reuse file'sCHANGED_HOST_KEY_REMEDYpin holds the new words.ssh -Tin a pseudo-terminal (real OpenSSH 9.6p1 behind the fake sshd; known_hosts empty, or holding another key for the changed cases; answers typed at the "(yes/no/[fingerprint])" prompt):ssh -T... and ssh_config'sStrictHostKeyCheckingaccept-newyes-o StrictHostKeyChecking=ask,accept-newno: "Host key verification failed."; known_hosts 0 bytes, unchanged-o StrictHostKeyChecking=ask,yes-o StrictHostKeyChecking=ask,ask-o StrictHostKeyChecking=ask -o StrictHostKeyChecking=accept-new,accept-new-o; unchanged-o StrictHostKeyChecking=ask -o StrictHostKeyChecking=yes,yes-o StrictHostKeyChecking=ask -o BatchMode=yes,accept-newBatchMode=yeswith no-o BatchMode=nobefore it wins, which is why that option is named first too)-o StrictHostKeyChecking=ask,accept-newandyesREMOTE HOST IDENTIFICATION HAS CHANGEDbanner, "Host key for fakehost.invalid has changed and you have requested strict checking." and "Host key verification failed."; known_hosts unchanged: the unknown-key remedy'sssh -Trefuses a changed key again-o BatchMode=no -o StrictHostKeyChecking=ask, ssh_configBatchMode yesandaccept-newno: "Host key verification failed."; known_hosts 0 bytes, unchangedBatchMode yesandyes-o BatchMode=yes-o BatchMode=yes -o StrictHostKeyChecking=accept-newaccept-newand noBatchMode-o StrictHostKeyChecking=askalone, ssh_configBatchMode yesandaccept-new-o BatchMode=nois named too-o BatchMode=no -o StrictHostKeyChecking=ask, ssh_configBatchMode yesBatchMode=yes -o LogLevel=QUIET, unknown and changed keyBatchMode=yes -o LogLevel=FATAL, unknown and changed keyUnder
BatchMode=yes, ssh 9.6 printedHost key verification failed.alone for an unknown key. Run directly, it printed the same line with no terminal (setsid). UnderStrictHostKeyChecking=yesit printedNo ED25519 host key is known for ... and you have requested strict checking.first. For a changed key, it printed the banner, the new fingerprint and anssh-keygen -Rline, with BatchMode and without.Tests
Each file ran alone at
631ea7cunder the stub gh, withGH_TOKEN=bogus, an emptyGH_CONFIG_DIR,GIT_SSH_COMMAND=false,GIT_CONFIG_GLOBAL=/dev/nullandEMAILset. The command was/usr/bin/python3 -m pytest -q -p no:cacheprovider --basetemp=<scratch>/bt/<name> -o tmp_path_retention_policy=failed tests/<file>.tests/test_scaffold_reuse_seeded_legs.py4009b65, plus 4 new ids; round 3's row is part of a constant and adds no id)tests/test_ruleset_hint_tracking_branch.pytests/test_cli_reference.pytests/test_readme_sections.pytests/test_repo_hygiene.pytests/test_agents_md_codes.pytests/test_update_add_codes_documented.py,tests/test_no_auto_maintenance.py, the four importers'--collect-onlybc27679(6 passed; 58 passed and 2 skipped; 132 collected), not re-run afterbc27679: rounds 2 and 3 change two constants' words, a docstring, comments and one test rowpyflakes (at
631ea7c):scaffold-project.py0 warnings;test_scaffold_reuse_seeded_legs.py15, the same as at4009b65(the existing "redefinition of unused 'template'" kind).Which tests pin the words: I grepped the tree for
ssh_key_fingerprints,StrictHostKeyChecking,HOST_KEY_CHECK, "shows the fingerprint" and "asks whether to keep it". Onlyscaffold-project.pyandtests/test_scaffold_reuse_seeded_legs.pyhold any (SEE_THE_KEY,PUBLISHEDandCHANGED_HOST_KEY_REMEDYthere, as literals).What the tests pin:
test_what_a_refused_push_printshas 18 rows, each run on GitHub and on disk, so 36 ids. Its host-key rows use OpenSSH's measured words, and the expected output is built from literals. The fix round adds two: a ruleset whoseremote:lines carryHost key verification failed.andREMOTE HOST IDENTIFICATION HAS CHANGED, one after a carriage return and one after a form feed (round 3's S1), which keep the ruleset hint (N2); and an unknown key beside aremote:line that says "changed", which keeps the unknown-key remedy.test_a_push_ssh_refused_the_host_key_for_names_the_key_not_the_ruleset(4 ids) runs the scaffold on GitHub against a fake ssh that says those words. It checks the remedy once, afterREFUSED pushing, and no hint.test_a_ruleset_s_refusal_on_github_says_what_its_re_run_can_wait_atcovers a leg and the root against the ruleset hook. Its stderr must end with the hint's literal, then the paragraph.test_ruleset_hint_tracking_branch.py, the scaffold's hint must be the last thing printed under--local-remote-dir.Mutants
Each mutant was applied with an exact one-occurrence replacement, then its test run (
-k "refused_push_prints or host_key_for_names or ruleset_s_refusal_on_github"in the reuse file, 42 ids, plustest_ruleset_hint_tracking_branch.py -k scaffoldfor the ones that touchlocal). The file was then restored from a saved copy and checked withcmp; its sha256 was the same before and after each batch, andgit show HEAD:scaffold-project.pyequals the saved copy. M1 to M9 were run atbc27679(5, 3 plus 6, 16, 10 plus 6, 5, 1, 1, 16 and 9 failed); M10 to M15 were run again at5724035, with the changed words. Round 3 ran M13, M11, M11b and M15 at631ea7cagainst the WHOLE reuse file (121 ids), each restored and checked withcmpagainst saved copies of both changed files.--local-remote-dirtest_ruleset_hint_tracking_branch.pyHOST_KEY_FAILED = ("failed",))test_ruleset_hint_tracking_branch.pyTrueforlocalTrueforlocalreturnafter the host-key remedy, so the hint follows it-o StrictHostKeyChecking=askdropped fromHOST_KEY_CHECK631ea7c(every changed-key id; 5 failed at5724035with the old words)631ea7cremote:lines againoutput.split("\n")replaced byoutput.splitlines(), so a form feed (or\v,\x1cto\x1e,\x85, U+2028, U+2029) in a server's line cuts it in two631ea7c: 2 failed (the ruleset row with the form-feed line, on GitHub and on disk). At5724035it survived (42 passed in the 42-id run, 121 in the whole file), and the round 2 text called it equivalent; that was wrong (RV1130c's S1).gh api metawithout--hostname github.com-o BatchMode=nodropped fromHOST_KEY_CHECK5724035and631ea7c)Merges
I read the open PR list live at
5724035: 24 open PRs; at631ea7cI re-read each of #1104, #1105 and #1118 (the head, still open) and main (038dafb), and re-ran every merge below. None other than this one touchesscaffold-project.py,tests/test_ruleset_hint_tracking_branch.pyortests/test_scaffold_reuse_seeded_legs.py. Main is now038dafb. The branch is not merged with it, since the landing after the v1.2.0 tag updates the branch.git merge-tree --write-tree)631ea7cwith origin/main038dafbe31a2f79dfd1de89aa8(touchesscripts/shape_materialize.py, whereRULESET_HINTlives)5a5177fbf65c; it does not change the hintb28f40d(the same file)7a076a5ce10b; it does not change the hint2307036(the same file)31ea584ecbfe; it does not change the hintCloses #1108
Lane: openreposhape-3 (openRepoShape-3)
🤖 Generated with Claude Code